OSDN Git Service

2001-12-15 Benjamin Kosnik <bkoz@redhat.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=no
2955   fi
2956 else
2957   enable_clocale=no
2958 fi
2959
2960
2961   enable_clocale_flag=$enable_clocale
2962
2963       if test x$enable_clocale_flag = xno; then
2964     case x${target_os} in
2965       xlinux* | xgnu*)
2966         cat > conftest.$ac_ext <<EOF
2967 #line 2968 "configure"
2968 #include "confdefs.h"
2969
2970         #include <features.h>
2971         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2972           ok
2973         #endif
2974         
2975 EOF
2976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2977   egrep "ok" >/dev/null 2>&1; then
2978   rm -rf conftest*
2979   enable_clocale_flag=gnu
2980 else
2981   rm -rf conftest*
2982   enable_clocale_flag=generic
2983 fi
2984 rm -f conftest*
2985
2986         ;;
2987       *)
2988         enable_clocale_flag=generic
2989         ;;
2990     esac
2991   fi
2992
2993     case x${enable_clocale_flag} in
2994     xgeneric)
2995       echo "$ac_t""generic" 1>&6
2996
2997       # Don't use gettext.
2998       USE_NLS=no
2999
3000       CLOCALE_H=config/locale/c_locale_generic.h
3001       CLOCALE_CC=config/locale/c_locale_generic.cc
3002       CCODECVT_H=config/locale/codecvt_specializations_generic.h
3003       CCOLLATE_CC=config/locale/collate_members_generic.cc
3004       CCTYPE_CC=config/locale/ctype_members_generic.cc
3005       CMESSAGES_H=config/locale/messages_members_generic.h
3006       CMESSAGES_CC=config/locale/messages_members_generic.cc
3007       CMONEY_CC=config/locale/moneypunct_members_generic.cc
3008       CNUMERIC_CC=config/locale/numpunct_members_generic.cc
3009       CTIME_CC=config/locale/time_members_generic.cc
3010       ;;
3011     xgnu)
3012       echo "$ac_t""gnu" 1>&6
3013
3014       # Declare intention to use gettext, and add support for specific
3015       # languages.
3016       # For some reason, ALL_LINGUAS has to be before AM_GNU_GETTEXT
3017       ALL_LINGUAS="de fr"
3018       # Don't call AM_GNU_GETTEXT here. Instead, assume glibc.
3019       # Need to deal with MSGFMT, USE_NLS, and glibcpp_[P,M]OFILES
3020       USE_NLS=yes
3021
3022       # Export the build objects.
3023       for ling in $ALL_LINGUAS; do \
3024         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3025         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3026       done
3027       
3028       
3029
3030       CLOCALE_H=config/locale/c_locale_gnu.h
3031       CLOCALE_CC=config/locale/c_locale_gnu.cc
3032       CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
3033       CCOLLATE_CC=config/locale/collate_members_gnu.cc
3034       CCTYPE_CC=config/locale/ctype_members_gnu.cc
3035       CMESSAGES_H=config/locale/messages_members_gnu.h
3036       CMESSAGES_CC=config/locale/messages_members_gnu.cc
3037       CMONEY_CC=config/locale/moneypunct_members_gnu.cc
3038       CNUMERIC_CC=config/locale/numpunct_members_gnu.cc
3039       CTIME_CC=config/locale/time_members_gnu.cc
3040       ;;
3041     xieee_1003.1)
3042       echo "$ac_t""generic" 1>&6
3043
3044       # Don't use gettext.
3045       USE_NLS=no
3046
3047       CLOCALE_H=config/locale/c_locale_ieee_1003.1-200x.h
3048       CLOCALE_CC=config/locale/c_locale_ieee_1003.1-200x.cc
3049       CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
3050       CCOLLATE_CC=config/locale/collate_members_generic.cc
3051       CCTYPE_CC=config/locale/ctype_members_generic.cc
3052       CMESSAGES_H=config/locale/messages_members_ieee_1003.1-200x.h
3053       CMESSAGES_CC=config/locale/messages_members_ieee_1003.1-200x.cc
3054       CMONEY_CC=config/locale/moneypunct_members_generic.cc
3055       CNUMERIC_CC=config/locale/numpunct_members_generic.cc
3056       CTIME_CC=config/locale/time_members_generic.cc
3057       ;;
3058     *)
3059       echo "$enable_clocale is an unknown locale package" 1>&2
3060       exit 1
3061       ;;
3062   esac
3063
3064   # This is where the testsuite looks for locale catalogs, using the
3065   # -DLOCALEDIR define during testsuite compilation.
3066   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3067   
3068
3069   
3070   
3071   
3072   
3073   
3074   
3075   
3076   
3077   
3078   
3079   
3080
3081 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3082 if test "${enable_c_mbchar+set}" = set; then
3083   enableval="$enable_c_mbchar"
3084   case "$enableval" in
3085  yes) enable_c_mbchar=yes ;;
3086  no)  enable_c_mbchar=no ;;
3087  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3088  esac
3089 else
3090   enable_c_mbchar=yes
3091 fi
3092
3093   
3094   # Check whether --enable-c99 or --disable-c99 was given.
3095 if test "${enable_c99+set}" = set; then
3096   enableval="$enable_c99"
3097     case "$enableval" in
3098    yes) enable_c99=yes ;;
3099    no)  enable_c99=no ;;
3100    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3101    esac
3102 else
3103   enable_c99=yes
3104 fi
3105  
3106   
3107   ac_ext=C
3108 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3109 ac_cpp='$CXXCPP $CPPFLAGS'
3110 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3111 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3112 cross_compiling=$ac_cv_prog_cxx_cross
3113
3114
3115   # Check for the existence of <math.h> functions used if C99 is enabled.
3116   ac_c99_math=yes;
3117   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3118 echo "configure:3119: checking for ISO C99 support in <math.h>" >&5
3119   cat > conftest.$ac_ext <<EOF
3120 #line 3121 "configure"
3121 #include "confdefs.h"
3122 #include <math.h>
3123 int main() {
3124 fpclassify(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 isfinite(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 isinf(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 isnan(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 isnormal(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 signbit(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 isgreater(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 isgreaterequal(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 isless(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 islessequal(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   cat > conftest.$ac_ext <<EOF
3290 #line 3291 "configure"
3291 #include "confdefs.h"
3292 #include <math.h>
3293 int main() {
3294 islessgreater(0.0,0.0);
3295 ; return 0; }
3296 EOF
3297 if { (eval echo configure:3298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3298   :
3299 else
3300   echo "configure: failed program was:" >&5
3301   cat conftest.$ac_ext >&5
3302   rm -rf conftest*
3303   ac_c99_math=no
3304 fi
3305 rm -f conftest*
3306   cat > conftest.$ac_ext <<EOF
3307 #line 3308 "configure"
3308 #include "confdefs.h"
3309 #include <math.h>
3310 int main() {
3311 isunordered(0.0,0.0);
3312 ; return 0; }
3313 EOF
3314 if { (eval echo configure:3315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3315   :
3316 else
3317   echo "configure: failed program was:" >&5
3318   cat conftest.$ac_ext >&5
3319   rm -rf conftest*
3320   ac_c99_math=no
3321 fi
3322 rm -f conftest*
3323   echo "$ac_t""$ac_c99_math" 1>&6
3324
3325   # Check for the existence in <stdio.h> of vscanf, et. al.
3326   ac_c99_stdio=yes;
3327   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3328 echo "configure:3329: checking for ISO C99 support in <stdio.h>" >&5
3329   cat > conftest.$ac_ext <<EOF
3330 #line 3331 "configure"
3331 #include "confdefs.h"
3332 #include <stdio.h>
3333 int main() {
3334 snprintf("12", 0, "%i");
3335 ; return 0; }
3336 EOF
3337 if { (eval echo configure:3338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3338   :
3339 else
3340   echo "configure: failed program was:" >&5
3341   cat conftest.$ac_ext >&5
3342   rm -rf conftest*
3343   ac_c99_stdio=no
3344 fi
3345 rm -f conftest*
3346   cat > conftest.$ac_ext <<EOF
3347 #line 3348 "configure"
3348 #include "confdefs.h"
3349 #include <stdio.h>
3350                   #include <stdarg.h>
3351                   void foo(char* fmt, ...)
3352                   {va_list args; va_start(args, fmt);
3353                   vfscanf(stderr, "%i", args);}
3354 int main() {
3355
3356 ; return 0; }
3357 EOF
3358 if { (eval echo configure:3359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3359   :
3360 else
3361   echo "configure: failed program was:" >&5
3362   cat conftest.$ac_ext >&5
3363   rm -rf conftest*
3364   ac_c99_stdio=no
3365 fi
3366 rm -f conftest*
3367   cat > conftest.$ac_ext <<EOF
3368 #line 3369 "configure"
3369 #include "confdefs.h"
3370 #include <stdio.h>
3371                   #include <stdarg.h>
3372                   void foo(char* fmt, ...)
3373                   {va_list args; va_start(args, fmt);
3374                   vscanf("%i", args);}
3375 int main() {
3376
3377 ; return 0; }
3378 EOF
3379 if { (eval echo configure:3380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3380   :
3381 else
3382   echo "configure: failed program was:" >&5
3383   cat conftest.$ac_ext >&5
3384   rm -rf conftest*
3385   ac_c99_stdio=no
3386 fi
3387 rm -f conftest*
3388   cat > conftest.$ac_ext <<EOF
3389 #line 3390 "configure"
3390 #include "confdefs.h"
3391 #include <stdio.h>
3392                   #include <stdarg.h>
3393                   void foo(char* fmt, ...)
3394                   {va_list args; va_start(args, fmt);
3395                   vsnprintf(fmt, 0, "%i", args);}
3396 int main() {
3397
3398 ; return 0; }
3399 EOF
3400 if { (eval echo configure:3401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3401   :
3402 else
3403   echo "configure: failed program was:" >&5
3404   cat conftest.$ac_ext >&5
3405   rm -rf conftest*
3406   ac_c99_stdio=no
3407 fi
3408 rm -f conftest*
3409   cat > conftest.$ac_ext <<EOF
3410 #line 3411 "configure"
3411 #include "confdefs.h"
3412 #include <stdio.h>
3413                   #include <stdarg.h>
3414                   void foo(char* fmt, ...)
3415                   {va_list args; va_start(args, fmt);
3416                   vsscanf(fmt, "%i", args);}
3417 int main() {
3418
3419 ; return 0; }
3420 EOF
3421 if { (eval echo configure:3422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3422   :
3423 else
3424   echo "configure: failed program was:" >&5
3425   cat conftest.$ac_ext >&5
3426   rm -rf conftest*
3427   ac_c99_stdio=no
3428 fi
3429 rm -f conftest*
3430   echo "$ac_t""$ac_c99_stdio" 1>&6
3431
3432   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3433   ac_c99_stdlib=yes;
3434   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3435 echo "configure:3436: checking for lldiv_t declaration" >&5
3436   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3437   echo $ac_n "(cached) $ac_c" 1>&6
3438 else
3439   
3440   cat > conftest.$ac_ext <<EOF
3441 #line 3442 "configure"
3442 #include "confdefs.h"
3443 #include <stdlib.h>
3444 int main() {
3445  lldiv_t mydivt;
3446 ; return 0; }
3447 EOF
3448 if { (eval echo configure:3449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3449   rm -rf conftest*
3450   ac_c99_lldiv_t=yes
3451 else
3452   echo "configure: failed program was:" >&5
3453   cat conftest.$ac_ext >&5
3454   rm -rf conftest*
3455   ac_c99_lldiv_t=no
3456 fi
3457 rm -f conftest*
3458   
3459 fi
3460
3461   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3462
3463   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3464 echo "configure:3465: checking for ISO C99 support in <stdlib.h>" >&5
3465   cat > conftest.$ac_ext <<EOF
3466 #line 3467 "configure"
3467 #include "confdefs.h"
3468 #include <stdlib.h>
3469 int main() {
3470 char* tmp; strtof("gnu", &tmp);
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 char* tmp; strtold("gnu", &tmp);
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 llabs(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 lldiv(10,1);
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   cat > conftest.$ac_ext <<EOF
3534 #line 3535 "configure"
3535 #include "confdefs.h"
3536 #include <stdlib.h>
3537 int main() {
3538 atoll("10");
3539 ; return 0; }
3540 EOF
3541 if { (eval echo configure:3542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3542   :
3543 else
3544   echo "configure: failed program was:" >&5
3545   cat conftest.$ac_ext >&5
3546   rm -rf conftest*
3547   ac_c99_stdlib=no
3548 fi
3549 rm -f conftest*
3550   cat > conftest.$ac_ext <<EOF
3551 #line 3552 "configure"
3552 #include "confdefs.h"
3553 #include <stdlib.h>
3554 int main() {
3555 _Exit(0);
3556 ; return 0; }
3557 EOF
3558 if { (eval echo configure:3559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3559   :
3560 else
3561   echo "configure: failed program was:" >&5
3562   cat conftest.$ac_ext >&5
3563   rm -rf conftest*
3564   ac_c99_stdlib=no
3565 fi
3566 rm -f conftest*
3567   if test x"$ac_c99_lldiv_t" = x"no"; then
3568     ac_c99_stdlib=no; 
3569   fi; 
3570   echo "$ac_t""$ac_c99_stdlib" 1>&6
3571
3572   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3573   # XXX the wchar.h checks should be rolled into the general C99 bits.
3574   ac_c99_wchar=yes;
3575   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3576 echo "configure:3577: checking for additional ISO C99 support in <wchar.h>" >&5
3577   cat > conftest.$ac_ext <<EOF
3578 #line 3579 "configure"
3579 #include "confdefs.h"
3580 #include <wchar.h>
3581 int main() {
3582 wcstold(L"10.0", NULL);
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   cat > conftest.$ac_ext <<EOF
3595 #line 3596 "configure"
3596 #include "confdefs.h"
3597 #include <wchar.h>
3598 int main() {
3599 wcstoll(L"10", NULL, 10);
3600 ; return 0; }
3601 EOF
3602 if { (eval echo configure:3603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3603   :
3604 else
3605   echo "configure: failed program was:" >&5
3606   cat conftest.$ac_ext >&5
3607   rm -rf conftest*
3608   ac_c99_wchar=no
3609 fi
3610 rm -f conftest*
3611   cat > conftest.$ac_ext <<EOF
3612 #line 3613 "configure"
3613 #include "confdefs.h"
3614 #include <wchar.h>
3615 int main() {
3616 wcstoull(L"10", NULL, 10);
3617 ; return 0; }
3618 EOF
3619 if { (eval echo configure:3620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3620   :
3621 else
3622   echo "configure: failed program was:" >&5
3623   cat conftest.$ac_ext >&5
3624   rm -rf conftest*
3625   ac_c99_wchar=no
3626 fi
3627 rm -f conftest*
3628   echo "$ac_t""$ac_c99_wchar" 1>&6
3629
3630   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3631 echo "configure:3632: checking for enabled ISO C99 support" >&5
3632   if test x"$ac_c99_math" = x"no" ||
3633      test x"$ac_c99_stdio" = x"no" ||
3634      test x"$ac_c99_stdlib" = x"no" ||
3635      test x"$ac_c99_wchar" = x"no"; then
3636     enable_c99=no; 
3637   fi; 
3638   echo "$ac_t""$enable_c99" 1>&6
3639
3640   # Option parsed, now set things appropriately
3641   if test x"$enable_c99" = x"yes"; then
3642     cat >> confdefs.h <<\EOF
3643 #define _GLIBCPP_USE_C99 1
3644 EOF
3645
3646   fi
3647
3648   ac_ext=c
3649 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3650 ac_cpp='$CPP $CPPFLAGS'
3651 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3652 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3653 cross_compiling=$ac_cv_prog_cc_cross
3654
3655
3656   
3657   # Check whether --enable-long-long or --disable-long-long was given.
3658 if test "${enable_long_long+set}" = set; then
3659   enableval="$enable_long_long"
3660     case "$enableval" in
3661    yes) enable_long_long=yes ;;
3662    no)  enable_long_long=no ;;
3663    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3664    esac
3665 else
3666   enable_long_long=yes
3667 fi
3668
3669   
3670   ac_ext=C
3671 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3672 ac_cpp='$CXXCPP $CPPFLAGS'
3673 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3674 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3675 cross_compiling=$ac_cv_prog_cxx_cross
3676
3677
3678   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3679 echo "configure:3680: checking for enabled long long I/O support" >&5
3680   # iostreams require strtoll, strtoull to compile
3681   cat > conftest.$ac_ext <<EOF
3682 #line 3683 "configure"
3683 #include "confdefs.h"
3684 #include <stdlib.h>
3685 int main() {
3686 char* tmp; strtoll("gnu", &tmp, 10);
3687 ; return 0; }
3688 EOF
3689 if { (eval echo configure:3690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3690   :
3691 else
3692   echo "configure: failed program was:" >&5
3693   cat conftest.$ac_ext >&5
3694   rm -rf conftest*
3695   enable_long_long=no
3696 fi
3697 rm -f conftest*
3698   cat > conftest.$ac_ext <<EOF
3699 #line 3700 "configure"
3700 #include "confdefs.h"
3701 #include <stdlib.h>
3702 int main() {
3703 char* tmp; strtoull("gnu", &tmp, 10);
3704 ; return 0; }
3705 EOF
3706 if { (eval echo configure:3707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3707   :
3708 else
3709   echo "configure: failed program was:" >&5
3710   cat conftest.$ac_ext >&5
3711   rm -rf conftest*
3712   enable_long_long=no
3713 fi
3714 rm -f conftest*
3715
3716   # Option parsed, now set things appropriately
3717   if test x"$enable_long_long" = xyes; then
3718     cat >> confdefs.h <<\EOF
3719 #define _GLIBCPP_USE_LONG_LONG 1
3720 EOF
3721
3722   fi
3723   echo "$ac_t""$enable_long_long" 1>&6
3724
3725   ac_ext=c
3726 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3727 ac_cpp='$CPP $CPPFLAGS'
3728 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3729 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3730 cross_compiling=$ac_cv_prog_cc_cross
3731
3732
3733 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3734 echo "configure:3735: checking for c header strategy to use" >&5
3735 # Check whether --enable-cheaders or --disable-cheaders was given.
3736 if test "${enable_cheaders+set}" = set; then
3737   enableval="$enable_cheaders"
3738   
3739   case "$enableval" in
3740    c) 
3741         enable_cheaders=c 
3742         ;;
3743    c_std)  
3744         enable_cheaders=c_std 
3745         ;;
3746    c_shadow)  
3747         enable_cheaders=c_shadow 
3748         ;;
3749    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3750         ;;
3751   esac
3752 else
3753   enable_cheaders=c_std
3754 fi
3755
3756   echo "$ac_t""$enable_cheaders" 1>&6
3757
3758     case "$enable_cheaders" in
3759     c_shadow) 
3760         CSHADOW_FLAGS="-fno-builtin"
3761         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3762         cat >> confdefs.h <<\EOF
3763 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3764 EOF
3765
3766         ;;
3767     c_std)   
3768         CSHADOW_FLAGS=""
3769         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3770         ;;
3771     c)   
3772         CSHADOW_FLAGS=""
3773         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3774         ;;
3775   esac
3776
3777   
3778   
3779   
3780
3781 if test "$enable_cheaders" = c_shadow; then
3782   GLIBCPP_USE_CSHADOW_TRUE=
3783   GLIBCPP_USE_CSHADOW_FALSE='#'
3784 else
3785   GLIBCPP_USE_CSHADOW_TRUE='#'
3786   GLIBCPP_USE_CSHADOW_FALSE=
3787 fi
3788
3789
3790   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3791 echo "configure:3792: checking for thread model used by GCC" >&5
3792   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3793   echo "$ac_t""$target_thread_file" 1>&6
3794
3795   if test $target_thread_file != single; then
3796     cat >> confdefs.h <<\EOF
3797 #define HAVE_GTHR_DEFAULT 1
3798 EOF
3799
3800     cat >> confdefs.h <<\EOF
3801 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3802 EOF
3803
3804   fi
3805
3806   glibcpp_thread_h=gthr-$target_thread_file.h
3807   
3808
3809 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3810 if test "${enable_cxx_flags+set}" = set; then
3811   enableval="$enable_cxx_flags"
3812   case "x$enableval" in
3813  xyes)   
3814         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3815  xno|x)  
3816         enable_cxx_flags='' ;;
3817  *)      
3818         enable_cxx_flags="$enableval" ;;
3819  esac
3820 else
3821   enable_cxx_flags='none'
3822 fi
3823
3824
3825 if test "$enable_cxx_flags" = "none"; then 
3826   enable_cxx_flags=''; 
3827 fi
3828
3829 if test -n "$enable_cxx_flags"; then
3830     for f in $enable_cxx_flags; do
3831         case "$f" in
3832             -fhonor-std)  ;;
3833             -*)  ;;
3834             *)   # and we're trying to pass /what/ exactly?
3835                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3836         esac
3837     done
3838 fi
3839 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3840
3841
3842
3843   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3844 echo "configure:3845: checking for exception model to use" >&5
3845   
3846   ac_ext=C
3847 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3848 ac_cpp='$CXXCPP $CPPFLAGS'
3849 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3850 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3851 cross_compiling=$ac_cv_prog_cxx_cross
3852
3853   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3854 if test "${enable_sjlj_exceptions+set}" = set; then
3855   enableval="$enable_sjlj_exceptions"
3856   :
3857 else
3858                        cat > conftest.$ac_ext << EOF
3859 #line 3860 "configure"
3860 struct S { ~S(); };
3861 void bar();
3862 void foo()
3863 {
3864   S s;
3865   bar();
3866 }
3867 EOF
3868    old_CXXFLAGS="$CXXFLAGS"  
3869    CXXFLAGS=-S
3870    if { (eval echo configure:3871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3871      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3872        enable_sjlj_exceptions=yes
3873      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3874        enable_sjlj_exceptions=no
3875      fi
3876    fi
3877    CXXFLAGS="$old_CXXFLAGS"
3878    rm -f conftest*
3879 fi
3880
3881    if test x$enable_sjlj_exceptions = xyes; then
3882      cat >> confdefs.h <<\EOF
3883 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3884 EOF
3885
3886      ac_exception_model_name=sjlj
3887    elif test x$enable_sjlj_exceptions = xno; then
3888      ac_exception_model_name="call frame"
3889    else
3890      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3891    fi
3892    ac_ext=c
3893 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3894 ac_cpp='$CPP $CPPFLAGS'
3895 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3896 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3897 cross_compiling=$ac_cv_prog_cc_cross
3898
3899    echo "$ac_t""$ac_exception_model_name" 1>&6
3900
3901 # Check whether --enable-concept-checks or --disable-concept-checks was given.
3902 if test "${enable_concept_checks+set}" = set; then
3903   enableval="$enable_concept_checks"
3904   case "$enableval" in
3905  yes) enable_concept_checks=yes ;;
3906  no)  enable_concept_checks=no ;;
3907  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
3908  esac
3909 else
3910   enable_concept_checks=no
3911 fi
3912 if test x"$enable_concept_checks" = xyes; then
3913   cat >> confdefs.h <<\EOF
3914 #define _GLIBCPP_CONCEPT_CHECKS 1
3915 EOF
3916
3917 fi
3918
3919
3920
3921 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
3922
3923   # This lets us hard-code the functionality we know
3924   # we'll have in the cross target environment. "Let" is a
3925   # sugar-coated word placed on an especially dull and tedious hack, actually.
3926   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
3927   # that involve linking can't be used:
3928   # "cannot open sim-crt0.o"
3929   # "cannot open crt0.o"
3930   # etc. All this is because there currently exists no unified,
3931   # consistent way for top level CC information to be passed down
3932   # to target directories: newlib includes, newlib linking info,
3933   # libgloss versus newlib crt0.o, etc. When all of this is done, all
3934   # of this hokey, excessive AC_DEFINE junk for crosses can be removed.
3935
3936   # We are being configured with some form of cross compiler.
3937   GLIBCPP_IS_CROSS_COMPILING=1
3938
3939   # If Canadian cross, then don't pick up tools from the build
3940   # directory.
3941   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
3942     CANADIAN=yes
3943   else
3944     CANADIAN=no
3945   fi
3946
3947   # Construct crosses by hand, eliminating bits that need ld...
3948   # GLIBCPP_CHECK_COMPILER_FEATURES
3949   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
3950   # GLIBCPP_CHECK_MATH_SUPPORT
3951
3952   case "$target_alias" in
3953     *-linux*)
3954       # Check for available headers.
3955       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3956         machine/endian.h machine/param.h sys/machine.h sys/types.h \
3957         fp.h locale.h float.h inttypes.h
3958 do
3959 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3960 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3961 echo "configure:3962: checking for $ac_hdr" >&5
3962 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3963   echo $ac_n "(cached) $ac_c" 1>&6
3964 else
3965   cat > conftest.$ac_ext <<EOF
3966 #line 3967 "configure"
3967 #include "confdefs.h"
3968 #include <$ac_hdr>
3969 EOF
3970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3971 { (eval echo configure:3972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3973 if test -z "$ac_err"; then
3974   rm -rf conftest*
3975   eval "ac_cv_header_$ac_safe=yes"
3976 else
3977   echo "$ac_err" >&5
3978   echo "configure: failed program was:" >&5
3979   cat conftest.$ac_ext >&5
3980   rm -rf conftest*
3981   eval "ac_cv_header_$ac_safe=no"
3982 fi
3983 rm -f conftest*
3984 fi
3985 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3986   echo "$ac_t""yes" 1>&6
3987     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3988   cat >> confdefs.h <<EOF
3989 #define $ac_tr_hdr 1
3990 EOF
3991  
3992 else
3993   echo "$ac_t""no" 1>&6
3994 fi
3995 done
3996
3997       SECTION_FLAGS='-ffunction-sections -fdata-sections'
3998       
3999       
4000   # If we're not using GNU ld, then there's no point in even trying these
4001   # tests.  Check for that first.  We should have already tested for gld
4002   # by now (in libtool), but require it now just to be safe...
4003   SECTION_LDFLAGS=''
4004   OPT_LDFLAGS=''
4005   
4006
4007   # Set --gc-sections.
4008   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4009     # GNU ld it is!  Joy and bunny rabbits!
4010
4011     # All these tests are for C++; save the language and the compiler flags.
4012     # Need to do this so that g++ won't try to link in libstdc++
4013     ac_test_CFLAGS="${CFLAGS+set}"
4014     ac_save_CFLAGS="$CFLAGS"
4015     CFLAGS='-x c++  -Wl,--gc-sections'
4016
4017     # Check for -Wl,--gc-sections
4018     # XXX This test is broken at the moment, as symbols required for
4019     # linking are now in libsupc++ (not built yet.....). In addition, 
4020     # this test has cored on solaris in the past. In addition,
4021     # --gc-sections doesn't really work at the moment (keeps on discarding
4022     # used sections, first .eh_frame and now some of the glibc sections for
4023     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4024     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4025 echo "configure:4026: checking for ld that supports -Wl,--gc-sections" >&5
4026     if test "$cross_compiling" = yes; then
4027   ac_sectionLDflags=yes
4028 else
4029   cat > conftest.$ac_ext <<EOF
4030 #line 4031 "configure"
4031 #include "confdefs.h"
4032
4033      int main(void) 
4034      {
4035        try { throw 1; }
4036        catch (...) { };
4037        return 0;
4038      }
4039     
4040 EOF
4041 if { (eval echo configure:4042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4042 then
4043   ac_sectionLDflags=yes
4044 else
4045   echo "configure: failed program was:" >&5
4046   cat conftest.$ac_ext >&5
4047   rm -fr conftest*
4048   ac_sectionLFflags=no
4049 fi
4050 rm -fr conftest*
4051 fi
4052
4053     if test "$ac_test_CFLAGS" = set; then
4054       CFLAGS="$ac_save_CFLAGS"
4055     else
4056       # this is the suspicious part
4057       CFLAGS=''
4058     fi
4059     if test "$ac_sectionLDflags" = "yes"; then
4060       SECTION_LDFLAGS='-Wl,--gc-sections'
4061     fi
4062     echo "$ac_t""$ac_sectionLDflags" 1>&6
4063   fi
4064
4065   # Set linker optimization flags.
4066   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
4067      test x"$enable_debug" = x"no"; then
4068     OPT_LDFLAGS='-Wl,-O1'
4069   fi
4070
4071   
4072   
4073
4074       
4075     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4076 echo "configure:4077: checking for main in -lm" >&5
4077 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4078 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4079   echo $ac_n "(cached) $ac_c" 1>&6
4080 else
4081   ac_save_LIBS="$LIBS"
4082 LIBS="-lm  $LIBS"
4083 cat > conftest.$ac_ext <<EOF
4084 #line 4085 "configure"
4085 #include "confdefs.h"
4086
4087 int main() {
4088 main()
4089 ; return 0; }
4090 EOF
4091 if { (eval echo configure:4092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4092   rm -rf conftest*
4093   eval "ac_cv_lib_$ac_lib_var=yes"
4094 else
4095   echo "configure: failed program was:" >&5
4096   cat conftest.$ac_ext >&5
4097   rm -rf conftest*
4098   eval "ac_cv_lib_$ac_lib_var=no"
4099 fi
4100 rm -f conftest*
4101 LIBS="$ac_save_LIBS"
4102
4103 fi
4104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4105   echo "$ac_t""yes" 1>&6
4106     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4107     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4108   cat >> confdefs.h <<EOF
4109 #define $ac_tr_lib 1
4110 EOF
4111
4112   LIBS="-lm $LIBS"
4113
4114 else
4115   echo "$ac_t""no" 1>&6
4116 fi
4117
4118   for ac_func in nan copysignf
4119 do
4120 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4121 echo "configure:4122: checking for $ac_func" >&5
4122 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4123   echo $ac_n "(cached) $ac_c" 1>&6
4124 else
4125   cat > conftest.$ac_ext <<EOF
4126 #line 4127 "configure"
4127 #include "confdefs.h"
4128 /* System header to define __stub macros and hopefully few prototypes,
4129     which can conflict with char $ac_func(); below.  */
4130 #include <assert.h>
4131 /* Override any gcc2 internal prototype to avoid an error.  */
4132 /* We use char because int might match the return type of a gcc2
4133     builtin and then its argument prototype would still apply.  */
4134 char $ac_func();
4135
4136 int main() {
4137
4138 /* The GNU C library defines this for functions which it implements
4139     to always fail with ENOSYS.  Some functions are actually named
4140     something starting with __ and the normal name is an alias.  */
4141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4142 choke me
4143 #else
4144 $ac_func();
4145 #endif
4146
4147 ; return 0; }
4148 EOF
4149 if { (eval echo configure:4150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4150   rm -rf conftest*
4151   eval "ac_cv_func_$ac_func=yes"
4152 else
4153   echo "configure: failed program was:" >&5
4154   cat conftest.$ac_ext >&5
4155   rm -rf conftest*
4156   eval "ac_cv_func_$ac_func=no"
4157 fi
4158 rm -f conftest*
4159 fi
4160
4161 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4162   echo "$ac_t""yes" 1>&6
4163     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4164   cat >> confdefs.h <<EOF
4165 #define $ac_tr_func 1
4166 EOF
4167  
4168 else
4169   echo "$ac_t""no" 1>&6
4170 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4171 fi
4172 done
4173
4174
4175
4176           USE_COMPLEX_LONG_DOUBLE=no
4177   if test x$ac_cv_func_copysignl = x"yes"; then
4178     USE_COMPLEX_LONG_DOUBLE=yes
4179     for ac_func in signbitl
4180 do
4181 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4182 echo "configure:4183: checking for $ac_func" >&5
4183 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4184   echo $ac_n "(cached) $ac_c" 1>&6
4185 else
4186   cat > conftest.$ac_ext <<EOF
4187 #line 4188 "configure"
4188 #include "confdefs.h"
4189 /* System header to define __stub macros and hopefully few prototypes,
4190     which can conflict with char $ac_func(); below.  */
4191 #include <assert.h>
4192 /* Override any gcc2 internal prototype to avoid an error.  */
4193 /* We use char because int might match the return type of a gcc2
4194     builtin and then its argument prototype would still apply.  */
4195 char $ac_func();
4196
4197 int main() {
4198
4199 /* The GNU C library defines this for functions which it implements
4200     to always fail with ENOSYS.  Some functions are actually named
4201     something starting with __ and the normal name is an alias.  */
4202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4203 choke me
4204 #else
4205 $ac_func();
4206 #endif
4207
4208 ; return 0; }
4209 EOF
4210 if { (eval echo configure:4211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4211   rm -rf conftest*
4212   eval "ac_cv_func_$ac_func=yes"
4213 else
4214   echo "configure: failed program was:" >&5
4215   cat conftest.$ac_ext >&5
4216   rm -rf conftest*
4217   eval "ac_cv_func_$ac_func=no"
4218 fi
4219 rm -f conftest*
4220 fi
4221
4222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4223   echo "$ac_t""yes" 1>&6
4224     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4225   cat >> confdefs.h <<EOF
4226 #define $ac_tr_func 1
4227 EOF
4228  
4229 else
4230   echo "$ac_t""no" 1>&6
4231 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4232 fi
4233 done
4234
4235
4236   fi
4237
4238   
4239
4240       
4241
4242       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4243 echo "configure:4244: checking for mbstate_t" >&5
4244   cat > conftest.$ac_ext <<EOF
4245 #line 4246 "configure"
4246 #include "confdefs.h"
4247 #include <wchar.h>
4248 int main() {
4249 mbstate_t teststate;
4250 ; return 0; }
4251 EOF
4252 if { (eval echo configure:4253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4253   rm -rf conftest*
4254   have_mbstate_t=yes
4255 else
4256   echo "configure: failed program was:" >&5
4257   cat conftest.$ac_ext >&5
4258   rm -rf conftest*
4259   have_mbstate_t=no
4260 fi
4261 rm -f conftest*
4262   echo "$ac_t""$have_mbstate_t" 1>&6
4263   if test x"$have_mbstate_t" = xyes; then
4264     cat >> confdefs.h <<\EOF
4265 #define HAVE_MBSTATE_T 1
4266 EOF
4267
4268   fi
4269
4270     for ac_hdr in wchar.h
4271 do
4272 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4273 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4274 echo "configure:4275: checking for $ac_hdr" >&5
4275 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4276   echo $ac_n "(cached) $ac_c" 1>&6
4277 else
4278   cat > conftest.$ac_ext <<EOF
4279 #line 4280 "configure"
4280 #include "confdefs.h"
4281 #include <$ac_hdr>
4282 EOF
4283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4284 { (eval echo configure:4285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4286 if test -z "$ac_err"; then
4287   rm -rf conftest*
4288   eval "ac_cv_header_$ac_safe=yes"
4289 else
4290   echo "$ac_err" >&5
4291   echo "configure: failed program was:" >&5
4292   cat conftest.$ac_ext >&5
4293   rm -rf conftest*
4294   eval "ac_cv_header_$ac_safe=no"
4295 fi
4296 rm -f conftest*
4297 fi
4298 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4299   echo "$ac_t""yes" 1>&6
4300     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4301   cat >> confdefs.h <<EOF
4302 #define $ac_tr_hdr 1
4303 EOF
4304  ac_has_wchar_h=yes
4305 else
4306   echo "$ac_t""no" 1>&6
4307 ac_has_wchar_h=no
4308 fi
4309 done
4310
4311   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4312 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4313 echo "configure:4314: checking for wctype.h" >&5
4314 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4315   echo $ac_n "(cached) $ac_c" 1>&6
4316 else
4317   cat > conftest.$ac_ext <<EOF
4318 #line 4319 "configure"
4319 #include "confdefs.h"
4320 #include <wctype.h>
4321 EOF
4322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4323 { (eval echo configure:4324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4324 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4325 if test -z "$ac_err"; then
4326   rm -rf conftest*
4327   eval "ac_cv_header_$ac_safe=yes"
4328 else
4329   echo "$ac_err" >&5
4330   echo "configure: failed program was:" >&5
4331   cat conftest.$ac_ext >&5
4332   rm -rf conftest*
4333   eval "ac_cv_header_$ac_safe=no"
4334 fi
4335 rm -f conftest*
4336 fi
4337 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4338   echo "$ac_t""yes" 1>&6
4339   ac_has_wctype_h=yes
4340 else
4341   echo "$ac_t""no" 1>&6
4342 ac_has_wctype_h=no
4343 fi
4344
4345   
4346     if test x"$ac_has_wchar_h" = xyes &&
4347      test x"$ac_has_wctype_h" = xyes &&
4348      test x"$enable_c_mbchar" != xno; then
4349       
4350             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4351 echo "configure:4352: checking for WCHAR_MIN and WCHAR_MAX" >&5
4352     cat > conftest.$ac_ext <<EOF
4353 #line 4354 "configure"
4354 #include "confdefs.h"
4355 #include <wchar.h>
4356 int main() {
4357 int i = WCHAR_MIN; int j = WCHAR_MAX;
4358 ; return 0; }
4359 EOF
4360 if { (eval echo configure:4361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4361   rm -rf conftest*
4362   has_wchar_minmax=yes
4363 else
4364   echo "configure: failed program was:" >&5
4365   cat conftest.$ac_ext >&5
4366   rm -rf conftest*
4367   has_wchar_minmax=no
4368 fi
4369 rm -f conftest*
4370     echo "$ac_t""$has_wchar_minmax" 1>&6
4371     
4372             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4373 echo "configure:4374: checking for WEOF" >&5
4374     cat > conftest.$ac_ext <<EOF
4375 #line 4376 "configure"
4376 #include "confdefs.h"
4377
4378       #include <wchar.h>
4379       #include <stddef.h>
4380 int main() {
4381 wint_t i = WEOF;
4382 ; return 0; }
4383 EOF
4384 if { (eval echo configure:4385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4385   rm -rf conftest*
4386   has_weof=yes
4387 else
4388   echo "configure: failed program was:" >&5
4389   cat conftest.$ac_ext >&5
4390   rm -rf conftest*
4391   has_weof=no
4392 fi
4393 rm -f conftest*
4394     echo "$ac_t""$has_weof" 1>&6
4395   
4396         ac_wfuncs=yes
4397     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4398 do
4399 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4400 echo "configure:4401: checking for $ac_func" >&5
4401 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4402   echo $ac_n "(cached) $ac_c" 1>&6
4403 else
4404   cat > conftest.$ac_ext <<EOF
4405 #line 4406 "configure"
4406 #include "confdefs.h"
4407 /* System header to define __stub macros and hopefully few prototypes,
4408     which can conflict with char $ac_func(); below.  */
4409 #include <assert.h>
4410 /* Override any gcc2 internal prototype to avoid an error.  */
4411 /* We use char because int might match the return type of a gcc2
4412     builtin and then its argument prototype would still apply.  */
4413 char $ac_func();
4414
4415 int main() {
4416
4417 /* The GNU C library defines this for functions which it implements
4418     to always fail with ENOSYS.  Some functions are actually named
4419     something starting with __ and the normal name is an alias.  */
4420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4421 choke me
4422 #else
4423 $ac_func();
4424 #endif
4425
4426 ; return 0; }
4427 EOF
4428 if { (eval echo configure:4429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4429   rm -rf conftest*
4430   eval "ac_cv_func_$ac_func=yes"
4431 else
4432   echo "configure: failed program was:" >&5
4433   cat conftest.$ac_ext >&5
4434   rm -rf conftest*
4435   eval "ac_cv_func_$ac_func=no"
4436 fi
4437 rm -f conftest*
4438 fi
4439
4440 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4441   echo "$ac_t""yes" 1>&6
4442     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4443   cat >> confdefs.h <<EOF
4444 #define $ac_tr_func 1
4445 EOF
4446  
4447 else
4448   echo "$ac_t""no" 1>&6
4449 \
4450     ac_wfuncs=no
4451 fi
4452 done
4453
4454   
4455         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4456     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4457     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4458     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4459     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4460     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4461 do
4462 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4463 echo "configure:4464: checking for $ac_func" >&5
4464 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4465   echo $ac_n "(cached) $ac_c" 1>&6
4466 else
4467   cat > conftest.$ac_ext <<EOF
4468 #line 4469 "configure"
4469 #include "confdefs.h"
4470 /* System header to define __stub macros and hopefully few prototypes,
4471     which can conflict with char $ac_func(); below.  */
4472 #include <assert.h>
4473 /* Override any gcc2 internal prototype to avoid an error.  */
4474 /* We use char because int might match the return type of a gcc2
4475     builtin and then its argument prototype would still apply.  */
4476 char $ac_func();
4477
4478 int main() {
4479
4480 /* The GNU C library defines this for functions which it implements
4481     to always fail with ENOSYS.  Some functions are actually named
4482     something starting with __ and the normal name is an alias.  */
4483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4484 choke me
4485 #else
4486 $ac_func();
4487 #endif
4488
4489 ; return 0; }
4490 EOF
4491 if { (eval echo configure:4492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4492   rm -rf conftest*
4493   eval "ac_cv_func_$ac_func=yes"
4494 else
4495   echo "configure: failed program was:" >&5
4496   cat conftest.$ac_ext >&5
4497   rm -rf conftest*
4498   eval "ac_cv_func_$ac_func=no"
4499 fi
4500 rm -f conftest*
4501 fi
4502
4503 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4504   echo "$ac_t""yes" 1>&6
4505     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4506   cat >> confdefs.h <<EOF
4507 #define $ac_tr_func 1
4508 EOF
4509  
4510 else
4511   echo "$ac_t""no" 1>&6
4512 \
4513     ac_wfuncs=no
4514 fi
4515 done
4516
4517
4518     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4519 echo "configure:4520: checking for ISO C99 wchar_t support" >&5
4520     if test x"$has_weof" = xyes &&
4521        test x"$has_wchar_minmax" = xyes &&
4522        test x"$ac_wfuncs" = xyes; then
4523       ac_isoC99_wchar_t=yes
4524     else
4525       ac_isoC99_wchar_t=no
4526     fi
4527     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4528   
4529             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4530 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4531 echo "configure:4532: checking for iconv.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 <iconv.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_iconv_h=yes
4558 else
4559   echo "$ac_t""no" 1>&6
4560 ac_has_iconv_h=no
4561 fi
4562
4563     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4564 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4565 echo "configure:4566: checking for langinfo.h" >&5
4566 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4567   echo $ac_n "(cached) $ac_c" 1>&6
4568 else
4569   cat > conftest.$ac_ext <<EOF
4570 #line 4571 "configure"
4571 #include "confdefs.h"
4572 #include <langinfo.h>
4573 EOF
4574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4575 { (eval echo configure:4576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4577 if test -z "$ac_err"; then
4578   rm -rf conftest*
4579   eval "ac_cv_header_$ac_safe=yes"
4580 else
4581   echo "$ac_err" >&5
4582   echo "configure: failed program was:" >&5
4583   cat conftest.$ac_ext >&5
4584   rm -rf conftest*
4585   eval "ac_cv_header_$ac_safe=no"
4586 fi
4587 rm -f conftest*
4588 fi
4589 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4590   echo "$ac_t""yes" 1>&6
4591   ac_has_langinfo_h=yes
4592 else
4593   echo "$ac_t""no" 1>&6
4594 ac_has_langinfo_h=no
4595 fi
4596
4597
4598         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4599 echo "configure:4600: checking for iconv in -liconv" >&5
4600 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4601 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4602   echo $ac_n "(cached) $ac_c" 1>&6
4603 else
4604   ac_save_LIBS="$LIBS"
4605 LIBS="-liconv  $LIBS"
4606 cat > conftest.$ac_ext <<EOF
4607 #line 4608 "configure"
4608 #include "confdefs.h"
4609 /* Override any gcc2 internal prototype to avoid an error.  */
4610 /* We use char because int might match the return type of a gcc2
4611     builtin and then its argument prototype would still apply.  */
4612 char iconv();
4613
4614 int main() {
4615 iconv()
4616 ; return 0; }
4617 EOF
4618 if { (eval echo configure:4619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4619   rm -rf conftest*
4620   eval "ac_cv_lib_$ac_lib_var=yes"
4621 else
4622   echo "configure: failed program was:" >&5
4623   cat conftest.$ac_ext >&5
4624   rm -rf conftest*
4625   eval "ac_cv_lib_$ac_lib_var=no"
4626 fi
4627 rm -f conftest*
4628 LIBS="$ac_save_LIBS"
4629
4630 fi
4631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4632   echo "$ac_t""yes" 1>&6
4633   libiconv="-liconv"
4634 else
4635   echo "$ac_t""no" 1>&6
4636 fi
4637
4638     ac_save_LIBS="$LIBS"
4639     LIBS="$LIBS $libiconv"
4640
4641     for ac_func in iconv_open iconv_close iconv nl_langinfo
4642 do
4643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4644 echo "configure:4645: checking for $ac_func" >&5
4645 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4646   echo $ac_n "(cached) $ac_c" 1>&6
4647 else
4648   cat > conftest.$ac_ext <<EOF
4649 #line 4650 "configure"
4650 #include "confdefs.h"
4651 /* System header to define __stub macros and hopefully few prototypes,
4652     which can conflict with char $ac_func(); below.  */
4653 #include <assert.h>
4654 /* Override any gcc2 internal prototype to avoid an error.  */
4655 /* We use char because int might match the return type of a gcc2
4656     builtin and then its argument prototype would still apply.  */
4657 char $ac_func();
4658
4659 int main() {
4660
4661 /* The GNU C library defines this for functions which it implements
4662     to always fail with ENOSYS.  Some functions are actually named
4663     something starting with __ and the normal name is an alias.  */
4664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4665 choke me
4666 #else
4667 $ac_func();
4668 #endif
4669
4670 ; return 0; }
4671 EOF
4672 if { (eval echo configure:4673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4673   rm -rf conftest*
4674   eval "ac_cv_func_$ac_func=yes"
4675 else
4676   echo "configure: failed program was:" >&5
4677   cat conftest.$ac_ext >&5
4678   rm -rf conftest*
4679   eval "ac_cv_func_$ac_func=no"
4680 fi
4681 rm -f conftest*
4682 fi
4683
4684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4685   echo "$ac_t""yes" 1>&6
4686     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4687   cat >> confdefs.h <<EOF
4688 #define $ac_tr_func 1
4689 EOF
4690  \
4691     ac_XPG2funcs=yes
4692 else
4693   echo "$ac_t""no" 1>&6
4694 ac_XPG2funcs=no
4695 fi
4696 done
4697
4698   
4699     LIBS="$ac_save_LIBS"
4700
4701     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4702 echo "configure:4703: checking for XPG2 wchar_t support" >&5
4703     if test x"$ac_has_iconv_h" = xyes &&
4704        test x"$ac_has_langinfo_h" = xyes &&
4705        test x"$ac_XPG2funcs" = xyes; then
4706       ac_XPG2_wchar_t=yes
4707     else
4708       ac_XPG2_wchar_t=no
4709     fi
4710     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4711   
4712             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4713 echo "configure:4714: checking for enabled wchar_t specializations" >&5
4714     if test x"$ac_isoC99_wchar_t" = xyes &&
4715        test x"$ac_XPG2_wchar_t" = xyes; then
4716       cat >> confdefs.h <<\EOF
4717 #define _GLIBCPP_USE_WCHAR_T 1
4718 EOF
4719
4720       echo "$ac_t"""yes"" 1>&6
4721     else
4722       echo "$ac_t"""no"" 1>&6
4723     fi
4724   else
4725         echo "configure: warning: wchar_t support disabled." 1>&2
4726   fi
4727
4728       os_include_dir="config/os/gnu-linux"
4729       cat >> confdefs.h <<\EOF
4730 #define HAVE_COPYSIGN 1
4731 EOF
4732
4733       cat >> confdefs.h <<\EOF
4734 #define HAVE_COPYSIGNF 1
4735 EOF
4736
4737       cat >> confdefs.h <<\EOF
4738 #define HAVE_FINITEF 1
4739 EOF
4740
4741       cat >> confdefs.h <<\EOF
4742 #define HAVE_FREXPF 1
4743 EOF
4744
4745       cat >> confdefs.h <<\EOF
4746 #define HAVE_HYPOTF 1
4747 EOF
4748
4749       cat >> confdefs.h <<\EOF
4750 #define HAVE_SINCOS 1
4751 EOF
4752
4753       cat >> confdefs.h <<\EOF
4754 #define HAVE_SINCOSF 1
4755 EOF
4756
4757       if test x"long_double_math_on_this_cpu" = x"yes"; then
4758         cat >> confdefs.h <<\EOF
4759 #define HAVE_HYPOTL 1
4760 EOF
4761
4762       fi
4763       ;;
4764     *-hpux*)
4765       # Check for available headers.
4766       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4767         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4768         fp.h locale.h float.h inttypes.h
4769 do
4770 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4771 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4772 echo "configure:4773: checking for $ac_hdr" >&5
4773 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4774   echo $ac_n "(cached) $ac_c" 1>&6
4775 else
4776   cat > conftest.$ac_ext <<EOF
4777 #line 4778 "configure"
4778 #include "confdefs.h"
4779 #include <$ac_hdr>
4780 EOF
4781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4782 { (eval echo configure:4783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4784 if test -z "$ac_err"; then
4785   rm -rf conftest*
4786   eval "ac_cv_header_$ac_safe=yes"
4787 else
4788   echo "$ac_err" >&5
4789   echo "configure: failed program was:" >&5
4790   cat conftest.$ac_ext >&5
4791   rm -rf conftest*
4792   eval "ac_cv_header_$ac_safe=no"
4793 fi
4794 rm -f conftest*
4795 fi
4796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4797   echo "$ac_t""yes" 1>&6
4798     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4799   cat >> confdefs.h <<EOF
4800 #define $ac_tr_hdr 1
4801 EOF
4802  
4803 else
4804   echo "$ac_t""no" 1>&6
4805 fi
4806 done
4807
4808       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4809       
4810       
4811   # If we're not using GNU ld, then there's no point in even trying these
4812   # tests.  Check for that first.  We should have already tested for gld
4813   # by now (in libtool), but require it now just to be safe...
4814   SECTION_LDFLAGS=''
4815   OPT_LDFLAGS=''
4816   
4817
4818   # Set --gc-sections.
4819   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4820     # GNU ld it is!  Joy and bunny rabbits!
4821
4822     # All these tests are for C++; save the language and the compiler flags.
4823     # Need to do this so that g++ won't try to link in libstdc++
4824     ac_test_CFLAGS="${CFLAGS+set}"
4825     ac_save_CFLAGS="$CFLAGS"
4826     CFLAGS='-x c++  -Wl,--gc-sections'
4827
4828     # Check for -Wl,--gc-sections
4829     # XXX This test is broken at the moment, as symbols required for
4830     # linking are now in libsupc++ (not built yet.....). In addition, 
4831     # this test has cored on solaris in the past. In addition,
4832     # --gc-sections doesn't really work at the moment (keeps on discarding
4833     # used sections, first .eh_frame and now some of the glibc sections for
4834     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4835     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4836 echo "configure:4837: checking for ld that supports -Wl,--gc-sections" >&5
4837     if test "$cross_compiling" = yes; then
4838   ac_sectionLDflags=yes
4839 else
4840   cat > conftest.$ac_ext <<EOF
4841 #line 4842 "configure"
4842 #include "confdefs.h"
4843
4844      int main(void) 
4845      {
4846        try { throw 1; }
4847        catch (...) { };
4848        return 0;
4849      }
4850     
4851 EOF
4852 if { (eval echo configure:4853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4853 then
4854   ac_sectionLDflags=yes
4855 else
4856   echo "configure: failed program was:" >&5
4857   cat conftest.$ac_ext >&5
4858   rm -fr conftest*
4859   ac_sectionLFflags=no
4860 fi
4861 rm -fr conftest*
4862 fi
4863
4864     if test "$ac_test_CFLAGS" = set; then
4865       CFLAGS="$ac_save_CFLAGS"
4866     else
4867       # this is the suspicious part
4868       CFLAGS=''
4869     fi
4870     if test "$ac_sectionLDflags" = "yes"; then
4871       SECTION_LDFLAGS='-Wl,--gc-sections'
4872     fi
4873     echo "$ac_t""$ac_sectionLDflags" 1>&6
4874   fi
4875
4876   # Set linker optimization flags.
4877   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
4878      test x"$enable_debug" = x"no"; then
4879     OPT_LDFLAGS='-Wl,-O1'
4880   fi
4881
4882   
4883   
4884
4885       
4886     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4887 echo "configure:4888: checking for main in -lm" >&5
4888 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4890   echo $ac_n "(cached) $ac_c" 1>&6
4891 else
4892   ac_save_LIBS="$LIBS"
4893 LIBS="-lm  $LIBS"
4894 cat > conftest.$ac_ext <<EOF
4895 #line 4896 "configure"
4896 #include "confdefs.h"
4897
4898 int main() {
4899 main()
4900 ; return 0; }
4901 EOF
4902 if { (eval echo configure:4903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4903   rm -rf conftest*
4904   eval "ac_cv_lib_$ac_lib_var=yes"
4905 else
4906   echo "configure: failed program was:" >&5
4907   cat conftest.$ac_ext >&5
4908   rm -rf conftest*
4909   eval "ac_cv_lib_$ac_lib_var=no"
4910 fi
4911 rm -f conftest*
4912 LIBS="$ac_save_LIBS"
4913
4914 fi
4915 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4916   echo "$ac_t""yes" 1>&6
4917     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4918     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4919   cat >> confdefs.h <<EOF
4920 #define $ac_tr_lib 1
4921 EOF
4922
4923   LIBS="-lm $LIBS"
4924
4925 else
4926   echo "$ac_t""no" 1>&6
4927 fi
4928
4929   for ac_func in nan copysignf
4930 do
4931 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4932 echo "configure:4933: checking for $ac_func" >&5
4933 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4934   echo $ac_n "(cached) $ac_c" 1>&6
4935 else
4936   cat > conftest.$ac_ext <<EOF
4937 #line 4938 "configure"
4938 #include "confdefs.h"
4939 /* System header to define __stub macros and hopefully few prototypes,
4940     which can conflict with char $ac_func(); below.  */
4941 #include <assert.h>
4942 /* Override any gcc2 internal prototype to avoid an error.  */
4943 /* We use char because int might match the return type of a gcc2
4944     builtin and then its argument prototype would still apply.  */
4945 char $ac_func();
4946
4947 int main() {
4948
4949 /* The GNU C library defines this for functions which it implements
4950     to always fail with ENOSYS.  Some functions are actually named
4951     something starting with __ and the normal name is an alias.  */
4952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4953 choke me
4954 #else
4955 $ac_func();
4956 #endif
4957
4958 ; return 0; }
4959 EOF
4960 if { (eval echo configure:4961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4961   rm -rf conftest*
4962   eval "ac_cv_func_$ac_func=yes"
4963 else
4964   echo "configure: failed program was:" >&5
4965   cat conftest.$ac_ext >&5
4966   rm -rf conftest*
4967   eval "ac_cv_func_$ac_func=no"
4968 fi
4969 rm -f conftest*
4970 fi
4971
4972 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4973   echo "$ac_t""yes" 1>&6
4974     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4975   cat >> confdefs.h <<EOF
4976 #define $ac_tr_func 1
4977 EOF
4978  
4979 else
4980   echo "$ac_t""no" 1>&6
4981 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4982 fi
4983 done
4984
4985
4986
4987           USE_COMPLEX_LONG_DOUBLE=no
4988   if test x$ac_cv_func_copysignl = x"yes"; then
4989     USE_COMPLEX_LONG_DOUBLE=yes
4990     for ac_func in signbitl
4991 do
4992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4993 echo "configure:4994: checking for $ac_func" >&5
4994 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4995   echo $ac_n "(cached) $ac_c" 1>&6
4996 else
4997   cat > conftest.$ac_ext <<EOF
4998 #line 4999 "configure"
4999 #include "confdefs.h"
5000 /* System header to define __stub macros and hopefully few prototypes,
5001     which can conflict with char $ac_func(); below.  */
5002 #include <assert.h>
5003 /* Override any gcc2 internal prototype to avoid an error.  */
5004 /* We use char because int might match the return type of a gcc2
5005     builtin and then its argument prototype would still apply.  */
5006 char $ac_func();
5007
5008 int main() {
5009
5010 /* The GNU C library defines this for functions which it implements
5011     to always fail with ENOSYS.  Some functions are actually named
5012     something starting with __ and the normal name is an alias.  */
5013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5014 choke me
5015 #else
5016 $ac_func();
5017 #endif
5018
5019 ; return 0; }
5020 EOF
5021 if { (eval echo configure:5022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5022   rm -rf conftest*
5023   eval "ac_cv_func_$ac_func=yes"
5024 else
5025   echo "configure: failed program was:" >&5
5026   cat conftest.$ac_ext >&5
5027   rm -rf conftest*
5028   eval "ac_cv_func_$ac_func=no"
5029 fi
5030 rm -f conftest*
5031 fi
5032
5033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5034   echo "$ac_t""yes" 1>&6
5035     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5036   cat >> confdefs.h <<EOF
5037 #define $ac_tr_func 1
5038 EOF
5039  
5040 else
5041   echo "$ac_t""no" 1>&6
5042 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5043 fi
5044 done
5045
5046
5047   fi
5048
5049   
5050
5051       
5052
5053       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5054 echo "configure:5055: checking for mbstate_t" >&5
5055   cat > conftest.$ac_ext <<EOF
5056 #line 5057 "configure"
5057 #include "confdefs.h"
5058 #include <wchar.h>
5059 int main() {
5060 mbstate_t teststate;
5061 ; return 0; }
5062 EOF
5063 if { (eval echo configure:5064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5064   rm -rf conftest*
5065   have_mbstate_t=yes
5066 else
5067   echo "configure: failed program was:" >&5
5068   cat conftest.$ac_ext >&5
5069   rm -rf conftest*
5070   have_mbstate_t=no
5071 fi
5072 rm -f conftest*
5073   echo "$ac_t""$have_mbstate_t" 1>&6
5074   if test x"$have_mbstate_t" = xyes; then
5075     cat >> confdefs.h <<\EOF
5076 #define HAVE_MBSTATE_T 1
5077 EOF
5078
5079   fi
5080
5081     for ac_hdr in wchar.h
5082 do
5083 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5084 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5085 echo "configure:5086: checking for $ac_hdr" >&5
5086 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5087   echo $ac_n "(cached) $ac_c" 1>&6
5088 else
5089   cat > conftest.$ac_ext <<EOF
5090 #line 5091 "configure"
5091 #include "confdefs.h"
5092 #include <$ac_hdr>
5093 EOF
5094 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5095 { (eval echo configure:5096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5096 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5097 if test -z "$ac_err"; then
5098   rm -rf conftest*
5099   eval "ac_cv_header_$ac_safe=yes"
5100 else
5101   echo "$ac_err" >&5
5102   echo "configure: failed program was:" >&5
5103   cat conftest.$ac_ext >&5
5104   rm -rf conftest*
5105   eval "ac_cv_header_$ac_safe=no"
5106 fi
5107 rm -f conftest*
5108 fi
5109 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5110   echo "$ac_t""yes" 1>&6
5111     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5112   cat >> confdefs.h <<EOF
5113 #define $ac_tr_hdr 1
5114 EOF
5115  ac_has_wchar_h=yes
5116 else
5117   echo "$ac_t""no" 1>&6
5118 ac_has_wchar_h=no
5119 fi
5120 done
5121
5122   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
5123 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
5124 echo "configure:5125: checking for wctype.h" >&5
5125 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5126   echo $ac_n "(cached) $ac_c" 1>&6
5127 else
5128   cat > conftest.$ac_ext <<EOF
5129 #line 5130 "configure"
5130 #include "confdefs.h"
5131 #include <wctype.h>
5132 EOF
5133 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5134 { (eval echo configure:5135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5135 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5136 if test -z "$ac_err"; then
5137   rm -rf conftest*
5138   eval "ac_cv_header_$ac_safe=yes"
5139 else
5140   echo "$ac_err" >&5
5141   echo "configure: failed program was:" >&5
5142   cat conftest.$ac_ext >&5
5143   rm -rf conftest*
5144   eval "ac_cv_header_$ac_safe=no"
5145 fi
5146 rm -f conftest*
5147 fi
5148 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5149   echo "$ac_t""yes" 1>&6
5150   ac_has_wctype_h=yes
5151 else
5152   echo "$ac_t""no" 1>&6
5153 ac_has_wctype_h=no
5154 fi
5155
5156   
5157     if test x"$ac_has_wchar_h" = xyes &&
5158      test x"$ac_has_wctype_h" = xyes &&
5159      test x"$enable_c_mbchar" != xno; then
5160       
5161             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5162 echo "configure:5163: checking for WCHAR_MIN and WCHAR_MAX" >&5
5163     cat > conftest.$ac_ext <<EOF
5164 #line 5165 "configure"
5165 #include "confdefs.h"
5166 #include <wchar.h>
5167 int main() {
5168 int i = WCHAR_MIN; int j = WCHAR_MAX;
5169 ; return 0; }
5170 EOF
5171 if { (eval echo configure:5172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5172   rm -rf conftest*
5173   has_wchar_minmax=yes
5174 else
5175   echo "configure: failed program was:" >&5
5176   cat conftest.$ac_ext >&5
5177   rm -rf conftest*
5178   has_wchar_minmax=no
5179 fi
5180 rm -f conftest*
5181     echo "$ac_t""$has_wchar_minmax" 1>&6
5182     
5183             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5184 echo "configure:5185: checking for WEOF" >&5
5185     cat > conftest.$ac_ext <<EOF
5186 #line 5187 "configure"
5187 #include "confdefs.h"
5188
5189       #include <wchar.h>
5190       #include <stddef.h>
5191 int main() {
5192 wint_t i = WEOF;
5193 ; return 0; }
5194 EOF
5195 if { (eval echo configure:5196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5196   rm -rf conftest*
5197   has_weof=yes
5198 else
5199   echo "configure: failed program was:" >&5
5200   cat conftest.$ac_ext >&5
5201   rm -rf conftest*
5202   has_weof=no
5203 fi
5204 rm -f conftest*
5205     echo "$ac_t""$has_weof" 1>&6
5206   
5207         ac_wfuncs=yes
5208     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5209 do
5210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5211 echo "configure:5212: checking for $ac_func" >&5
5212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5213   echo $ac_n "(cached) $ac_c" 1>&6
5214 else
5215   cat > conftest.$ac_ext <<EOF
5216 #line 5217 "configure"
5217 #include "confdefs.h"
5218 /* System header to define __stub macros and hopefully few prototypes,
5219     which can conflict with char $ac_func(); below.  */
5220 #include <assert.h>
5221 /* Override any gcc2 internal prototype to avoid an error.  */
5222 /* We use char because int might match the return type of a gcc2
5223     builtin and then its argument prototype would still apply.  */
5224 char $ac_func();
5225
5226 int main() {
5227
5228 /* The GNU C library defines this for functions which it implements
5229     to always fail with ENOSYS.  Some functions are actually named
5230     something starting with __ and the normal name is an alias.  */
5231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5232 choke me
5233 #else
5234 $ac_func();
5235 #endif
5236
5237 ; return 0; }
5238 EOF
5239 if { (eval echo configure:5240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5240   rm -rf conftest*
5241   eval "ac_cv_func_$ac_func=yes"
5242 else
5243   echo "configure: failed program was:" >&5
5244   cat conftest.$ac_ext >&5
5245   rm -rf conftest*
5246   eval "ac_cv_func_$ac_func=no"
5247 fi
5248 rm -f conftest*
5249 fi
5250
5251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5252   echo "$ac_t""yes" 1>&6
5253     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5254   cat >> confdefs.h <<EOF
5255 #define $ac_tr_func 1
5256 EOF
5257  
5258 else
5259   echo "$ac_t""no" 1>&6
5260 \
5261     ac_wfuncs=no
5262 fi
5263 done
5264
5265   
5266         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5267     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5268     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5269     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5270     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5271     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5272 do
5273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5274 echo "configure:5275: checking for $ac_func" >&5
5275 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5276   echo $ac_n "(cached) $ac_c" 1>&6
5277 else
5278   cat > conftest.$ac_ext <<EOF
5279 #line 5280 "configure"
5280 #include "confdefs.h"
5281 /* System header to define __stub macros and hopefully few prototypes,
5282     which can conflict with char $ac_func(); below.  */
5283 #include <assert.h>
5284 /* Override any gcc2 internal prototype to avoid an error.  */
5285 /* We use char because int might match the return type of a gcc2
5286     builtin and then its argument prototype would still apply.  */
5287 char $ac_func();
5288
5289 int main() {
5290
5291 /* The GNU C library defines this for functions which it implements
5292     to always fail with ENOSYS.  Some functions are actually named
5293     something starting with __ and the normal name is an alias.  */
5294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5295 choke me
5296 #else
5297 $ac_func();
5298 #endif
5299
5300 ; return 0; }
5301 EOF
5302 if { (eval echo configure:5303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5303   rm -rf conftest*
5304   eval "ac_cv_func_$ac_func=yes"
5305 else
5306   echo "configure: failed program was:" >&5
5307   cat conftest.$ac_ext >&5
5308   rm -rf conftest*
5309   eval "ac_cv_func_$ac_func=no"
5310 fi
5311 rm -f conftest*
5312 fi
5313
5314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5315   echo "$ac_t""yes" 1>&6
5316     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5317   cat >> confdefs.h <<EOF
5318 #define $ac_tr_func 1
5319 EOF
5320  
5321 else
5322   echo "$ac_t""no" 1>&6
5323 \
5324     ac_wfuncs=no
5325 fi
5326 done
5327
5328
5329     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5330 echo "configure:5331: checking for ISO C99 wchar_t support" >&5
5331     if test x"$has_weof" = xyes &&
5332        test x"$has_wchar_minmax" = xyes &&
5333        test x"$ac_wfuncs" = xyes; then
5334       ac_isoC99_wchar_t=yes
5335     else
5336       ac_isoC99_wchar_t=no
5337     fi
5338     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5339   
5340             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5341 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5342 echo "configure:5343: checking for iconv.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 <iconv.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_iconv_h=yes
5369 else
5370   echo "$ac_t""no" 1>&6
5371 ac_has_iconv_h=no
5372 fi
5373
5374     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5375 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5376 echo "configure:5377: checking for langinfo.h" >&5
5377 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5378   echo $ac_n "(cached) $ac_c" 1>&6
5379 else
5380   cat > conftest.$ac_ext <<EOF
5381 #line 5382 "configure"
5382 #include "confdefs.h"
5383 #include <langinfo.h>
5384 EOF
5385 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5386 { (eval echo configure:5387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5387 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5388 if test -z "$ac_err"; then
5389   rm -rf conftest*
5390   eval "ac_cv_header_$ac_safe=yes"
5391 else
5392   echo "$ac_err" >&5
5393   echo "configure: failed program was:" >&5
5394   cat conftest.$ac_ext >&5
5395   rm -rf conftest*
5396   eval "ac_cv_header_$ac_safe=no"
5397 fi
5398 rm -f conftest*
5399 fi
5400 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5401   echo "$ac_t""yes" 1>&6
5402   ac_has_langinfo_h=yes
5403 else
5404   echo "$ac_t""no" 1>&6
5405 ac_has_langinfo_h=no
5406 fi
5407
5408
5409         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5410 echo "configure:5411: checking for iconv in -liconv" >&5
5411 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5413   echo $ac_n "(cached) $ac_c" 1>&6
5414 else
5415   ac_save_LIBS="$LIBS"
5416 LIBS="-liconv  $LIBS"
5417 cat > conftest.$ac_ext <<EOF
5418 #line 5419 "configure"
5419 #include "confdefs.h"
5420 /* Override any gcc2 internal prototype to avoid an error.  */
5421 /* We use char because int might match the return type of a gcc2
5422     builtin and then its argument prototype would still apply.  */
5423 char iconv();
5424
5425 int main() {
5426 iconv()
5427 ; return 0; }
5428 EOF
5429 if { (eval echo configure:5430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5430   rm -rf conftest*
5431   eval "ac_cv_lib_$ac_lib_var=yes"
5432 else
5433   echo "configure: failed program was:" >&5
5434   cat conftest.$ac_ext >&5
5435   rm -rf conftest*
5436   eval "ac_cv_lib_$ac_lib_var=no"
5437 fi
5438 rm -f conftest*
5439 LIBS="$ac_save_LIBS"
5440
5441 fi
5442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5443   echo "$ac_t""yes" 1>&6
5444   libiconv="-liconv"
5445 else
5446   echo "$ac_t""no" 1>&6
5447 fi
5448
5449     ac_save_LIBS="$LIBS"
5450     LIBS="$LIBS $libiconv"
5451
5452     for ac_func in iconv_open iconv_close iconv nl_langinfo
5453 do
5454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5455 echo "configure:5456: checking for $ac_func" >&5
5456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5457   echo $ac_n "(cached) $ac_c" 1>&6
5458 else
5459   cat > conftest.$ac_ext <<EOF
5460 #line 5461 "configure"
5461 #include "confdefs.h"
5462 /* System header to define __stub macros and hopefully few prototypes,
5463     which can conflict with char $ac_func(); below.  */
5464 #include <assert.h>
5465 /* Override any gcc2 internal prototype to avoid an error.  */
5466 /* We use char because int might match the return type of a gcc2
5467     builtin and then its argument prototype would still apply.  */
5468 char $ac_func();
5469
5470 int main() {
5471
5472 /* The GNU C library defines this for functions which it implements
5473     to always fail with ENOSYS.  Some functions are actually named
5474     something starting with __ and the normal name is an alias.  */
5475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5476 choke me
5477 #else
5478 $ac_func();
5479 #endif
5480
5481 ; return 0; }
5482 EOF
5483 if { (eval echo configure:5484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5484   rm -rf conftest*
5485   eval "ac_cv_func_$ac_func=yes"
5486 else
5487   echo "configure: failed program was:" >&5
5488   cat conftest.$ac_ext >&5
5489   rm -rf conftest*
5490   eval "ac_cv_func_$ac_func=no"
5491 fi
5492 rm -f conftest*
5493 fi
5494
5495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5496   echo "$ac_t""yes" 1>&6
5497     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5498   cat >> confdefs.h <<EOF
5499 #define $ac_tr_func 1
5500 EOF
5501  \
5502     ac_XPG2funcs=yes
5503 else
5504   echo "$ac_t""no" 1>&6
5505 ac_XPG2funcs=no
5506 fi
5507 done
5508
5509   
5510     LIBS="$ac_save_LIBS"
5511
5512     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5513 echo "configure:5514: checking for XPG2 wchar_t support" >&5
5514     if test x"$ac_has_iconv_h" = xyes &&
5515        test x"$ac_has_langinfo_h" = xyes &&
5516        test x"$ac_XPG2funcs" = xyes; then
5517       ac_XPG2_wchar_t=yes
5518     else
5519       ac_XPG2_wchar_t=no
5520     fi
5521     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5522   
5523             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5524 echo "configure:5525: checking for enabled wchar_t specializations" >&5
5525     if test x"$ac_isoC99_wchar_t" = xyes &&
5526        test x"$ac_XPG2_wchar_t" = xyes; then
5527       cat >> confdefs.h <<\EOF
5528 #define _GLIBCPP_USE_WCHAR_T 1
5529 EOF
5530
5531       echo "$ac_t"""yes"" 1>&6
5532     else
5533       echo "$ac_t"""no"" 1>&6
5534     fi
5535   else
5536         echo "configure: warning: wchar_t support disabled." 1>&2
5537   fi
5538
5539       os_include_dir="config/os/hpux"
5540       cat >> confdefs.h <<\EOF
5541 #define HAVE_COPYSIGN 1
5542 EOF
5543
5544       cat >> confdefs.h <<\EOF
5545 #define HAVE_COPYSIGNF 1
5546 EOF
5547
5548       cat >> confdefs.h <<\EOF
5549 #define HAVE_FINITEF 1
5550 EOF
5551
5552       cat >> confdefs.h <<\EOF
5553 #define HAVE_FREXPF 1
5554 EOF
5555
5556       cat >> confdefs.h <<\EOF
5557 #define HAVE_HYPOT 1
5558 EOF
5559
5560       cat >> confdefs.h <<\EOF
5561 #define HAVE_SINCOS 1
5562 EOF
5563
5564       cat >> confdefs.h <<\EOF
5565 #define HAVE_SINCOSF 1
5566 EOF
5567
5568       ;;
5569     *)
5570       os_include_dir="config/os/newlib"
5571       cat >> confdefs.h <<\EOF
5572 #define HAVE_HYPOT 1
5573 EOF
5574
5575       ;;
5576   esac
5577
5578   # GLIBCPP_CHECK_STDLIB_SUPPORT
5579   cat >> confdefs.h <<\EOF
5580 #define HAVE_STRTOF 1
5581 EOF
5582         
5583   cat >> confdefs.h <<\EOF
5584 #define HAVE_STRTOLD 1
5585 EOF
5586         
5587   # AC_FUNC_MMAP
5588   cat >> confdefs.h <<\EOF
5589 #define HAVE_MMAP 1
5590 EOF
5591
5592
5593   cat >> confdefs.h <<\EOF
5594 #define HAVE_ACOSF 1
5595 EOF
5596
5597   cat >> confdefs.h <<\EOF
5598 #define HAVE_ASINF 1
5599 EOF
5600
5601   cat >> confdefs.h <<\EOF
5602 #define HAVE_ATAN2F 1
5603 EOF
5604
5605   cat >> confdefs.h <<\EOF
5606 #define HAVE_ATANF 1
5607 EOF
5608
5609   cat >> confdefs.h <<\EOF
5610 #define HAVE_CEILF 1
5611 EOF
5612
5613   cat >> confdefs.h <<\EOF
5614 #define HAVE_COPYSIGN 1
5615 EOF
5616
5617   cat >> confdefs.h <<\EOF
5618 #define HAVE_COPYSIGNF 1
5619 EOF
5620
5621   cat >> confdefs.h <<\EOF
5622 #define HAVE_COSF 1
5623 EOF
5624
5625   cat >> confdefs.h <<\EOF
5626 #define HAVE_COSHF 1
5627 EOF
5628
5629   cat >> confdefs.h <<\EOF
5630 #define HAVE_EXPF 1
5631 EOF
5632
5633   cat >> confdefs.h <<\EOF
5634 #define HAVE_FABSF 1
5635 EOF
5636
5637   cat >> confdefs.h <<\EOF
5638 #define HAVE_FINITE 1
5639 EOF
5640
5641   cat >> confdefs.h <<\EOF
5642 #define HAVE_FINITEF 1
5643 EOF
5644
5645   cat >> confdefs.h <<\EOF
5646 #define HAVE_FLOORF 1
5647 EOF
5648
5649   cat >> confdefs.h <<\EOF
5650 #define HAVE_FMODF 1
5651 EOF
5652
5653   cat >> confdefs.h <<\EOF
5654 #define HAVE_FREXPF 1
5655 EOF
5656
5657   cat >> confdefs.h <<\EOF
5658 #define HAVE_ISINF 1
5659 EOF
5660
5661   cat >> confdefs.h <<\EOF
5662 #define HAVE_ISINFF 1
5663 EOF
5664
5665   cat >> confdefs.h <<\EOF
5666 #define HAVE_ISNAN 1
5667 EOF
5668
5669   cat >> confdefs.h <<\EOF
5670 #define HAVE_ISNANF 1
5671 EOF
5672
5673   cat >> confdefs.h <<\EOF
5674 #define HAVE_LDEXPF 1
5675 EOF
5676
5677   cat >> confdefs.h <<\EOF
5678 #define HAVE_LOG10F 1
5679 EOF
5680
5681   cat >> confdefs.h <<\EOF
5682 #define HAVE_LOGF 1
5683 EOF
5684
5685   cat >> confdefs.h <<\EOF
5686 #define HAVE_MODFF 1
5687 EOF
5688
5689   cat >> confdefs.h <<\EOF
5690 #define HAVE_POWF 1
5691 EOF
5692
5693   cat >> confdefs.h <<\EOF
5694 #define HAVE_SINF 1
5695 EOF
5696
5697   cat >> confdefs.h <<\EOF
5698 #define HAVE_SINHF 1
5699 EOF
5700
5701   cat >> confdefs.h <<\EOF
5702 #define HAVE_SQRTF 1
5703 EOF
5704
5705   cat >> confdefs.h <<\EOF
5706 #define HAVE_TANF 1
5707 EOF
5708
5709   cat >> confdefs.h <<\EOF
5710 #define HAVE_TANHF 1
5711 EOF
5712
5713
5714   # At some point, we should differentiate between architectures
5715   # like x86, which have long double versions, and alpha/powerpc/etc.,
5716   # which don't. For the time being, punt.
5717   if test x"long_double_math_on_this_cpu" = x"yes"; then
5718     cat >> confdefs.h <<\EOF
5719 #define HAVE_ACOSL 1
5720 EOF
5721
5722     cat >> confdefs.h <<\EOF
5723 #define HAVE_ASINL 1
5724 EOF
5725
5726     cat >> confdefs.h <<\EOF
5727 #define HAVE_ATAN2L 1
5728 EOF
5729
5730     cat >> confdefs.h <<\EOF
5731 #define HAVE_ATANL 1
5732 EOF
5733
5734     cat >> confdefs.h <<\EOF
5735 #define HAVE_CEILL 1
5736 EOF
5737
5738     cat >> confdefs.h <<\EOF
5739 #define HAVE_COPYSIGNL 1
5740 EOF
5741
5742     cat >> confdefs.h <<\EOF
5743 #define HAVE_COSL 1
5744 EOF
5745
5746     cat >> confdefs.h <<\EOF
5747 #define HAVE_COSHL 1
5748 EOF
5749
5750     cat >> confdefs.h <<\EOF
5751 #define HAVE_EXPL 1
5752 EOF
5753
5754     cat >> confdefs.h <<\EOF
5755 #define HAVE_FABSL 1
5756 EOF
5757
5758     cat >> confdefs.h <<\EOF
5759 #define HAVE_FINITEL 1
5760 EOF
5761
5762     cat >> confdefs.h <<\EOF
5763 #define HAVE_FLOORL 1
5764 EOF
5765
5766     cat >> confdefs.h <<\EOF
5767 #define HAVE_FMODL 1
5768 EOF
5769
5770     cat >> confdefs.h <<\EOF
5771 #define HAVE_FREXPL 1
5772 EOF
5773
5774     cat >> confdefs.h <<\EOF
5775 #define HAVE_ISINFL 1
5776 EOF
5777
5778     cat >> confdefs.h <<\EOF
5779 #define HAVE_ISNANL 1
5780 EOF
5781
5782     cat >> confdefs.h <<\EOF
5783 #define HAVE_LDEXPL 1
5784 EOF
5785
5786     cat >> confdefs.h <<\EOF
5787 #define HAVE_LOG10L 1
5788 EOF
5789
5790     cat >> confdefs.h <<\EOF
5791 #define HAVE_LOGL 1
5792 EOF
5793
5794     cat >> confdefs.h <<\EOF
5795 #define HAVE_MODFL 1
5796 EOF
5797
5798     cat >> confdefs.h <<\EOF
5799 #define HAVE_POWL 1
5800 EOF
5801
5802     cat >> confdefs.h <<\EOF
5803 #define HAVE_SINCOSL 1
5804 EOF
5805
5806     cat >> confdefs.h <<\EOF
5807 #define HAVE_SINL 1
5808 EOF
5809
5810     cat >> confdefs.h <<\EOF
5811 #define HAVE_SINHL 1
5812 EOF
5813
5814     cat >> confdefs.h <<\EOF
5815 #define HAVE_SQRTL 1
5816 EOF
5817
5818     cat >> confdefs.h <<\EOF
5819 #define HAVE_TANL 1
5820 EOF
5821
5822     cat >> confdefs.h <<\EOF
5823 #define HAVE_TANHL 1
5824 EOF
5825
5826   fi
5827 else
5828
5829   # We are being configured natively. We can do more elaborate tests
5830   # that include AC_TRY_COMPILE now, as the linker is assumed to be
5831   # working.
5832   GLIBCPP_IS_CROSS_COMPILING=0
5833   CANADIAN=no
5834
5835   # Check for available headers.
5836   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
5837   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
5838 do
5839 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5840 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5841 echo "configure:5842: checking for $ac_hdr" >&5
5842 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5843   echo $ac_n "(cached) $ac_c" 1>&6
5844 else
5845   cat > conftest.$ac_ext <<EOF
5846 #line 5847 "configure"
5847 #include "confdefs.h"
5848 #include <$ac_hdr>
5849 EOF
5850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5851 { (eval echo configure:5852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5853 if test -z "$ac_err"; then
5854   rm -rf conftest*
5855   eval "ac_cv_header_$ac_safe=yes"
5856 else
5857   echo "$ac_err" >&5
5858   echo "configure: failed program was:" >&5
5859   cat conftest.$ac_ext >&5
5860   rm -rf conftest*
5861   eval "ac_cv_header_$ac_safe=no"
5862 fi
5863 rm -f conftest*
5864 fi
5865 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5866   echo "$ac_t""yes" 1>&6
5867     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5868   cat >> confdefs.h <<EOF
5869 #define $ac_tr_hdr 1
5870 EOF
5871  
5872 else
5873   echo "$ac_t""no" 1>&6
5874 fi
5875 done
5876
5877
5878   
5879   # All these tests are for C++; save the language and the compiler flags.
5880   # The CXXFLAGS thing is suspicious, but based on similar bits previously
5881   # found in GLIBCPP_CONFIGURE.
5882   
5883   ac_ext=C
5884 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5885 ac_cpp='$CXXCPP $CPPFLAGS'
5886 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5887 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5888 cross_compiling=$ac_cv_prog_cxx_cross
5889
5890   ac_test_CXXFLAGS="${CXXFLAGS+set}"
5891   ac_save_CXXFLAGS="$CXXFLAGS"
5892
5893   # Check for maintainer-mode bits.
5894   if test x"$USE_MAINTAINER_MODE" = xno; then
5895     WERROR=''
5896   else
5897     WERROR='-Werror'
5898   fi
5899
5900   # Check for -ffunction-sections -fdata-sections
5901   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
5902 echo "configure:5903: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
5903   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
5904   cat > conftest.$ac_ext <<EOF
5905 #line 5906 "configure"
5906 #include "confdefs.h"
5907
5908 int main() {
5909 int foo;
5910   
5911 ; return 0; }
5912 EOF
5913 if { (eval echo configure:5914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5914   rm -rf conftest*
5915   ac_fdsections=yes
5916 else
5917   echo "configure: failed program was:" >&5
5918   cat conftest.$ac_ext >&5
5919   rm -rf conftest*
5920   ac_fdsections=no
5921 fi
5922 rm -f conftest*
5923   if test "$ac_test_CXXFLAGS" = set; then
5924     CXXFLAGS="$ac_save_CXXFLAGS"
5925   else
5926     # this is the suspicious part
5927     CXXFLAGS=''
5928   fi
5929   if test x"$ac_fdsections" = x"yes" &&
5930      test x"$enable_debug" = x"no"; then
5931     SECTION_FLAGS='-ffunction-sections -fdata-sections'
5932   fi
5933   echo "$ac_t""$ac_fdsections" 1>&6
5934
5935   ac_ext=c
5936 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5937 ac_cpp='$CPP $CPPFLAGS'
5938 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5939 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5940 cross_compiling=$ac_cv_prog_cc_cross
5941
5942   
5943   
5944
5945   
5946   # If we're not using GNU ld, then there's no point in even trying these
5947   # tests.  Check for that first.  We should have already tested for gld
5948   # by now (in libtool), but require it now just to be safe...
5949   SECTION_LDFLAGS=''
5950   OPT_LDFLAGS=''
5951   
5952
5953   # Set --gc-sections.
5954   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
5955     # GNU ld it is!  Joy and bunny rabbits!
5956
5957     # All these tests are for C++; save the language and the compiler flags.
5958     # Need to do this so that g++ won't try to link in libstdc++
5959     ac_test_CFLAGS="${CFLAGS+set}"
5960     ac_save_CFLAGS="$CFLAGS"
5961     CFLAGS='-x c++  -Wl,--gc-sections'
5962
5963     # Check for -Wl,--gc-sections
5964     # XXX This test is broken at the moment, as symbols required for
5965     # linking are now in libsupc++ (not built yet.....). In addition, 
5966     # this test has cored on solaris in the past. In addition,
5967     # --gc-sections doesn't really work at the moment (keeps on discarding
5968     # used sections, first .eh_frame and now some of the glibc sections for
5969     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5970     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5971 echo "configure:5972: checking for ld that supports -Wl,--gc-sections" >&5
5972     if test "$cross_compiling" = yes; then
5973   ac_sectionLDflags=yes
5974 else
5975   cat > conftest.$ac_ext <<EOF
5976 #line 5977 "configure"
5977 #include "confdefs.h"
5978
5979      int main(void) 
5980      {
5981        try { throw 1; }
5982        catch (...) { };
5983        return 0;
5984      }
5985     
5986 EOF
5987 if { (eval echo configure:5988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5988 then
5989   ac_sectionLDflags=yes
5990 else
5991   echo "configure: failed program was:" >&5
5992   cat conftest.$ac_ext >&5
5993   rm -fr conftest*
5994   ac_sectionLFflags=no
5995 fi
5996 rm -fr conftest*
5997 fi
5998
5999     if test "$ac_test_CFLAGS" = set; then
6000       CFLAGS="$ac_save_CFLAGS"
6001     else
6002       # this is the suspicious part
6003       CFLAGS=''
6004     fi
6005     if test "$ac_sectionLDflags" = "yes"; then
6006       SECTION_LDFLAGS='-Wl,--gc-sections'
6007     fi
6008     echo "$ac_t""$ac_sectionLDflags" 1>&6
6009   fi
6010
6011   # Set linker optimization flags.
6012   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
6013      test x"$enable_debug" = x"no"; then
6014     OPT_LDFLAGS='-Wl,-O1'
6015   fi
6016
6017   
6018   
6019
6020   
6021       
6022   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
6023 echo "configure:6024: checking for __builtin_abs declaration" >&5
6024   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
6025     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
6026   echo $ac_n "(cached) $ac_c" 1>&6
6027 else
6028   
6029       
6030       ac_ext=C
6031 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6032 ac_cpp='$CXXCPP $CPPFLAGS'
6033 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6034 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6035 cross_compiling=$ac_cv_prog_cxx_cross
6036
6037       cat > conftest.$ac_ext <<EOF
6038 #line 6039 "configure"
6039 #include "confdefs.h"
6040 #include <math.h>
6041 int main() {
6042  __builtin_abs(0);
6043 ; return 0; }
6044 EOF
6045 if { (eval echo configure:6046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6046   rm -rf conftest*
6047   glibcpp_cv_func___builtin_abs_use=yes
6048 else
6049   echo "configure: failed program was:" >&5
6050   cat conftest.$ac_ext >&5
6051   rm -rf conftest*
6052   glibcpp_cv_func___builtin_abs_use=no
6053 fi
6054 rm -f conftest*
6055       ac_ext=c
6056 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6057 ac_cpp='$CPP $CPPFLAGS'
6058 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6059 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6060 cross_compiling=$ac_cv_prog_cc_cross
6061
6062     
6063 fi
6064
6065   fi
6066   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
6067   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
6068     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
6069 echo "configure:6070: checking for __builtin_abs linkage" >&5
6070     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
6071       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
6072   echo $ac_n "(cached) $ac_c" 1>&6
6073 else
6074   
6075         cat > conftest.$ac_ext <<EOF
6076 #line 6077 "configure"
6077 #include "confdefs.h"
6078 #include <math.h>
6079 int main() {
6080  __builtin_abs(0);
6081 ; return 0; }
6082 EOF
6083 if { (eval echo configure:6084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6084   rm -rf conftest*
6085   glibcpp_cv_func___builtin_abs_link=yes
6086 else
6087   echo "configure: failed program was:" >&5
6088   cat conftest.$ac_ext >&5
6089   rm -rf conftest*
6090   glibcpp_cv_func___builtin_abs_link=no
6091 fi
6092 rm -f conftest*
6093       
6094 fi
6095
6096     fi
6097     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
6098     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
6099       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6100       cat >> confdefs.h <<EOF
6101 #define ${ac_tr_func} 1
6102 EOF
6103
6104     fi
6105   fi
6106
6107   
6108   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
6109 echo "configure:6110: checking for __builtin_fabsf declaration" >&5
6110   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
6111     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
6112   echo $ac_n "(cached) $ac_c" 1>&6
6113 else
6114   
6115       
6116       ac_ext=C
6117 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6118 ac_cpp='$CXXCPP $CPPFLAGS'
6119 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6120 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6121 cross_compiling=$ac_cv_prog_cxx_cross
6122
6123       cat > conftest.$ac_ext <<EOF
6124 #line 6125 "configure"
6125 #include "confdefs.h"
6126 #include <math.h>
6127 int main() {
6128  __builtin_fabsf(0);
6129 ; return 0; }
6130 EOF
6131 if { (eval echo configure:6132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6132   rm -rf conftest*
6133   glibcpp_cv_func___builtin_fabsf_use=yes
6134 else
6135   echo "configure: failed program was:" >&5
6136   cat conftest.$ac_ext >&5
6137   rm -rf conftest*
6138   glibcpp_cv_func___builtin_fabsf_use=no
6139 fi
6140 rm -f conftest*
6141       ac_ext=c
6142 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6143 ac_cpp='$CPP $CPPFLAGS'
6144 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6145 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6146 cross_compiling=$ac_cv_prog_cc_cross
6147
6148     
6149 fi
6150
6151   fi
6152   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
6153   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
6154     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
6155 echo "configure:6156: checking for __builtin_fabsf linkage" >&5
6156     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
6157       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
6158   echo $ac_n "(cached) $ac_c" 1>&6
6159 else
6160   
6161         cat > conftest.$ac_ext <<EOF
6162 #line 6163 "configure"
6163 #include "confdefs.h"
6164 #include <math.h>
6165 int main() {
6166  __builtin_fabsf(0);
6167 ; return 0; }
6168 EOF
6169 if { (eval echo configure:6170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6170   rm -rf conftest*
6171   glibcpp_cv_func___builtin_fabsf_link=yes
6172 else
6173   echo "configure: failed program was:" >&5
6174   cat conftest.$ac_ext >&5
6175   rm -rf conftest*
6176   glibcpp_cv_func___builtin_fabsf_link=no
6177 fi
6178 rm -f conftest*
6179       
6180 fi
6181
6182     fi
6183     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
6184     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
6185       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6186       cat >> confdefs.h <<EOF
6187 #define ${ac_tr_func} 1
6188 EOF
6189
6190     fi
6191   fi
6192
6193   
6194   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
6195 echo "configure:6196: checking for __builtin_fabs declaration" >&5
6196   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
6197     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
6198   echo $ac_n "(cached) $ac_c" 1>&6
6199 else
6200   
6201       
6202       ac_ext=C
6203 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6204 ac_cpp='$CXXCPP $CPPFLAGS'
6205 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6206 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6207 cross_compiling=$ac_cv_prog_cxx_cross
6208
6209       cat > conftest.$ac_ext <<EOF
6210 #line 6211 "configure"
6211 #include "confdefs.h"
6212 #include <math.h>
6213 int main() {
6214  __builtin_fabs(0);
6215 ; return 0; }
6216 EOF
6217 if { (eval echo configure:6218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6218   rm -rf conftest*
6219   glibcpp_cv_func___builtin_fabs_use=yes
6220 else
6221   echo "configure: failed program was:" >&5
6222   cat conftest.$ac_ext >&5
6223   rm -rf conftest*
6224   glibcpp_cv_func___builtin_fabs_use=no
6225 fi
6226 rm -f conftest*
6227       ac_ext=c
6228 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6229 ac_cpp='$CPP $CPPFLAGS'
6230 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6231 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6232 cross_compiling=$ac_cv_prog_cc_cross
6233
6234     
6235 fi
6236
6237   fi
6238   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
6239   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
6240     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
6241 echo "configure:6242: checking for __builtin_fabs linkage" >&5
6242     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
6243       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
6244   echo $ac_n "(cached) $ac_c" 1>&6
6245 else
6246   
6247         cat > conftest.$ac_ext <<EOF
6248 #line 6249 "configure"
6249 #include "confdefs.h"
6250 #include <math.h>
6251 int main() {
6252  __builtin_fabs(0);
6253 ; return 0; }
6254 EOF
6255 if { (eval echo configure:6256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6256   rm -rf conftest*
6257   glibcpp_cv_func___builtin_fabs_link=yes
6258 else
6259   echo "configure: failed program was:" >&5
6260   cat conftest.$ac_ext >&5
6261   rm -rf conftest*
6262   glibcpp_cv_func___builtin_fabs_link=no
6263 fi
6264 rm -f conftest*
6265       
6266 fi
6267
6268     fi
6269     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
6270     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
6271       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6272       cat >> confdefs.h <<EOF
6273 #define ${ac_tr_func} 1
6274 EOF
6275
6276     fi
6277   fi
6278
6279   
6280   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
6281 echo "configure:6282: checking for __builtin_fabsl declaration" >&5
6282   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
6283     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
6284   echo $ac_n "(cached) $ac_c" 1>&6
6285 else
6286   
6287       
6288       ac_ext=C
6289 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6290 ac_cpp='$CXXCPP $CPPFLAGS'
6291 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6292 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6293 cross_compiling=$ac_cv_prog_cxx_cross
6294
6295       cat > conftest.$ac_ext <<EOF
6296 #line 6297 "configure"
6297 #include "confdefs.h"
6298 #include <math.h>
6299 int main() {
6300  __builtin_fabsl(0);
6301 ; return 0; }
6302 EOF
6303 if { (eval echo configure:6304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6304   rm -rf conftest*
6305   glibcpp_cv_func___builtin_fabsl_use=yes
6306 else
6307   echo "configure: failed program was:" >&5
6308   cat conftest.$ac_ext >&5
6309   rm -rf conftest*
6310   glibcpp_cv_func___builtin_fabsl_use=no
6311 fi
6312 rm -f conftest*
6313       ac_ext=c
6314 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6315 ac_cpp='$CPP $CPPFLAGS'
6316 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6317 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6318 cross_compiling=$ac_cv_prog_cc_cross
6319
6320     
6321 fi
6322
6323   fi
6324   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
6325   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
6326     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
6327 echo "configure:6328: checking for __builtin_fabsl linkage" >&5
6328     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
6329       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
6330   echo $ac_n "(cached) $ac_c" 1>&6
6331 else
6332   
6333         cat > conftest.$ac_ext <<EOF
6334 #line 6335 "configure"
6335 #include "confdefs.h"
6336 #include <math.h>
6337 int main() {
6338  __builtin_fabsl(0);
6339 ; return 0; }
6340 EOF
6341 if { (eval echo configure:6342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6342   rm -rf conftest*
6343   glibcpp_cv_func___builtin_fabsl_link=yes
6344 else
6345   echo "configure: failed program was:" >&5
6346   cat conftest.$ac_ext >&5
6347   rm -rf conftest*
6348   glibcpp_cv_func___builtin_fabsl_link=no
6349 fi
6350 rm -f conftest*
6351       
6352 fi
6353
6354     fi
6355     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
6356     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
6357       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6358       cat >> confdefs.h <<EOF
6359 #define ${ac_tr_func} 1
6360 EOF
6361
6362     fi
6363   fi
6364
6365   
6366   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
6367 echo "configure:6368: checking for __builtin_labs declaration" >&5
6368   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
6369     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
6370   echo $ac_n "(cached) $ac_c" 1>&6
6371 else
6372   
6373       
6374       ac_ext=C
6375 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6376 ac_cpp='$CXXCPP $CPPFLAGS'
6377 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6378 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6379 cross_compiling=$ac_cv_prog_cxx_cross
6380
6381       cat > conftest.$ac_ext <<EOF
6382 #line 6383 "configure"
6383 #include "confdefs.h"
6384 #include <math.h>
6385 int main() {
6386  __builtin_labs(0);
6387 ; return 0; }
6388 EOF
6389 if { (eval echo configure:6390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6390   rm -rf conftest*
6391   glibcpp_cv_func___builtin_labs_use=yes
6392 else
6393   echo "configure: failed program was:" >&5
6394   cat conftest.$ac_ext >&5
6395   rm -rf conftest*
6396   glibcpp_cv_func___builtin_labs_use=no
6397 fi
6398 rm -f conftest*
6399       ac_ext=c
6400 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6401 ac_cpp='$CPP $CPPFLAGS'
6402 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6403 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6404 cross_compiling=$ac_cv_prog_cc_cross
6405
6406     
6407 fi
6408
6409   fi
6410   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
6411   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
6412     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
6413 echo "configure:6414: checking for __builtin_labs linkage" >&5
6414     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
6415       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
6416   echo $ac_n "(cached) $ac_c" 1>&6
6417 else
6418   
6419         cat > conftest.$ac_ext <<EOF
6420 #line 6421 "configure"
6421 #include "confdefs.h"
6422 #include <math.h>
6423 int main() {
6424  __builtin_labs(0);
6425 ; return 0; }
6426 EOF
6427 if { (eval echo configure:6428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6428   rm -rf conftest*
6429   glibcpp_cv_func___builtin_labs_link=yes
6430 else
6431   echo "configure: failed program was:" >&5
6432   cat conftest.$ac_ext >&5
6433   rm -rf conftest*
6434   glibcpp_cv_func___builtin_labs_link=no
6435 fi
6436 rm -f conftest*
6437       
6438 fi
6439
6440     fi
6441     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
6442     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
6443       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6444       cat >> confdefs.h <<EOF
6445 #define ${ac_tr_func} 1
6446 EOF
6447
6448     fi
6449   fi
6450
6451
6452   
6453   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
6454 echo "configure:6455: checking for __builtin_sqrtf declaration" >&5
6455   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
6456     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
6457   echo $ac_n "(cached) $ac_c" 1>&6
6458 else
6459   
6460       
6461       ac_ext=C
6462 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6463 ac_cpp='$CXXCPP $CPPFLAGS'
6464 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6465 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6466 cross_compiling=$ac_cv_prog_cxx_cross
6467
6468       cat > conftest.$ac_ext <<EOF
6469 #line 6470 "configure"
6470 #include "confdefs.h"
6471 #include <math.h>
6472 int main() {
6473  __builtin_sqrtf(0);
6474 ; return 0; }
6475 EOF
6476 if { (eval echo configure:6477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6477   rm -rf conftest*
6478   glibcpp_cv_func___builtin_sqrtf_use=yes
6479 else
6480   echo "configure: failed program was:" >&5
6481   cat conftest.$ac_ext >&5
6482   rm -rf conftest*
6483   glibcpp_cv_func___builtin_sqrtf_use=no
6484 fi
6485 rm -f conftest*
6486       ac_ext=c
6487 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6488 ac_cpp='$CPP $CPPFLAGS'
6489 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6490 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6491 cross_compiling=$ac_cv_prog_cc_cross
6492
6493     
6494 fi
6495
6496   fi
6497   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
6498   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
6499     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
6500 echo "configure:6501: checking for __builtin_sqrtf linkage" >&5
6501     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
6502       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
6503   echo $ac_n "(cached) $ac_c" 1>&6
6504 else
6505   
6506         cat > conftest.$ac_ext <<EOF
6507 #line 6508 "configure"
6508 #include "confdefs.h"
6509 #include <math.h>
6510 int main() {
6511  __builtin_sqrtf(0);
6512 ; return 0; }
6513 EOF
6514 if { (eval echo configure:6515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6515   rm -rf conftest*
6516   glibcpp_cv_func___builtin_sqrtf_link=yes
6517 else
6518   echo "configure: failed program was:" >&5
6519   cat conftest.$ac_ext >&5
6520   rm -rf conftest*
6521   glibcpp_cv_func___builtin_sqrtf_link=no
6522 fi
6523 rm -f conftest*
6524       
6525 fi
6526
6527     fi
6528     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
6529     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
6530       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6531       cat >> confdefs.h <<EOF
6532 #define ${ac_tr_func} 1
6533 EOF
6534
6535     fi
6536   fi
6537
6538   
6539   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
6540 echo "configure:6541: checking for __builtin_sqrt declaration" >&5
6541   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
6542     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
6543   echo $ac_n "(cached) $ac_c" 1>&6
6544 else
6545   
6546       
6547       ac_ext=C
6548 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6549 ac_cpp='$CXXCPP $CPPFLAGS'
6550 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6551 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6552 cross_compiling=$ac_cv_prog_cxx_cross
6553
6554       cat > conftest.$ac_ext <<EOF
6555 #line 6556 "configure"
6556 #include "confdefs.h"
6557 #include <math.h>
6558 int main() {
6559  __builtin_sqrt(0);
6560 ; return 0; }
6561 EOF
6562 if { (eval echo configure:6563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6563   rm -rf conftest*
6564   glibcpp_cv_func___builtin_sqrt_use=yes
6565 else
6566   echo "configure: failed program was:" >&5
6567   cat conftest.$ac_ext >&5
6568   rm -rf conftest*
6569   glibcpp_cv_func___builtin_sqrt_use=no
6570 fi
6571 rm -f conftest*
6572       ac_ext=c
6573 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6574 ac_cpp='$CPP $CPPFLAGS'
6575 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6576 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6577 cross_compiling=$ac_cv_prog_cc_cross
6578
6579     
6580 fi
6581
6582   fi
6583   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
6584   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
6585     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
6586 echo "configure:6587: checking for __builtin_sqrt linkage" >&5
6587     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
6588       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
6589   echo $ac_n "(cached) $ac_c" 1>&6
6590 else
6591   
6592         cat > conftest.$ac_ext <<EOF
6593 #line 6594 "configure"
6594 #include "confdefs.h"
6595 #include <math.h>
6596 int main() {
6597  __builtin_sqrt(0);
6598 ; return 0; }
6599 EOF
6600 if { (eval echo configure:6601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6601   rm -rf conftest*
6602   glibcpp_cv_func___builtin_sqrt_link=yes
6603 else
6604   echo "configure: failed program was:" >&5
6605   cat conftest.$ac_ext >&5
6606   rm -rf conftest*
6607   glibcpp_cv_func___builtin_sqrt_link=no
6608 fi
6609 rm -f conftest*
6610       
6611 fi
6612
6613     fi
6614     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
6615     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
6616       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6617       cat >> confdefs.h <<EOF
6618 #define ${ac_tr_func} 1
6619 EOF
6620
6621     fi
6622   fi
6623
6624   
6625   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
6626 echo "configure:6627: checking for __builtin_sqrtl declaration" >&5
6627   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
6628     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
6629   echo $ac_n "(cached) $ac_c" 1>&6
6630 else
6631   
6632       
6633       ac_ext=C
6634 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6635 ac_cpp='$CXXCPP $CPPFLAGS'
6636 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6637 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6638 cross_compiling=$ac_cv_prog_cxx_cross
6639
6640       cat > conftest.$ac_ext <<EOF
6641 #line 6642 "configure"
6642 #include "confdefs.h"
6643 #include <math.h>
6644 int main() {
6645  __builtin_sqrtl(0);
6646 ; return 0; }
6647 EOF
6648 if { (eval echo configure:6649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6649   rm -rf conftest*
6650   glibcpp_cv_func___builtin_sqrtl_use=yes
6651 else
6652   echo "configure: failed program was:" >&5
6653   cat conftest.$ac_ext >&5
6654   rm -rf conftest*
6655   glibcpp_cv_func___builtin_sqrtl_use=no
6656 fi
6657 rm -f conftest*
6658       ac_ext=c
6659 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6660 ac_cpp='$CPP $CPPFLAGS'
6661 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6662 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6663 cross_compiling=$ac_cv_prog_cc_cross
6664
6665     
6666 fi
6667
6668   fi
6669   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
6670   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
6671     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
6672 echo "configure:6673: checking for __builtin_sqrtl linkage" >&5
6673     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
6674       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
6675   echo $ac_n "(cached) $ac_c" 1>&6
6676 else
6677   
6678         cat > conftest.$ac_ext <<EOF
6679 #line 6680 "configure"
6680 #include "confdefs.h"
6681 #include <math.h>
6682 int main() {
6683  __builtin_sqrtl(0);
6684 ; return 0; }
6685 EOF
6686 if { (eval echo configure:6687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6687   rm -rf conftest*
6688   glibcpp_cv_func___builtin_sqrtl_link=yes
6689 else
6690   echo "configure: failed program was:" >&5
6691   cat conftest.$ac_ext >&5
6692   rm -rf conftest*
6693   glibcpp_cv_func___builtin_sqrtl_link=no
6694 fi
6695 rm -f conftest*
6696       
6697 fi
6698
6699     fi
6700     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
6701     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
6702       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6703       cat >> confdefs.h <<EOF
6704 #define ${ac_tr_func} 1
6705 EOF
6706
6707     fi
6708   fi
6709
6710
6711   
6712   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
6713 echo "configure:6714: checking for __builtin_sinf declaration" >&5
6714   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
6715     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
6716   echo $ac_n "(cached) $ac_c" 1>&6
6717 else
6718   
6719       
6720       ac_ext=C
6721 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6722 ac_cpp='$CXXCPP $CPPFLAGS'
6723 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6724 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6725 cross_compiling=$ac_cv_prog_cxx_cross
6726
6727       cat > conftest.$ac_ext <<EOF
6728 #line 6729 "configure"
6729 #include "confdefs.h"
6730 #include <math.h>
6731 int main() {
6732  __builtin_sinf(0);
6733 ; return 0; }
6734 EOF
6735 if { (eval echo configure:6736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6736   rm -rf conftest*
6737   glibcpp_cv_func___builtin_sinf_use=yes
6738 else
6739   echo "configure: failed program was:" >&5
6740   cat conftest.$ac_ext >&5
6741   rm -rf conftest*
6742   glibcpp_cv_func___builtin_sinf_use=no
6743 fi
6744 rm -f conftest*
6745       ac_ext=c
6746 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6747 ac_cpp='$CPP $CPPFLAGS'
6748 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6749 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6750 cross_compiling=$ac_cv_prog_cc_cross
6751
6752     
6753 fi
6754
6755   fi
6756   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
6757   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
6758     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
6759 echo "configure:6760: checking for __builtin_sinf linkage" >&5
6760     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
6761       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
6762   echo $ac_n "(cached) $ac_c" 1>&6
6763 else
6764   
6765         cat > conftest.$ac_ext <<EOF
6766 #line 6767 "configure"
6767 #include "confdefs.h"
6768 #include <math.h>
6769 int main() {
6770  __builtin_sinf(0);
6771 ; return 0; }
6772 EOF
6773 if { (eval echo configure:6774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6774   rm -rf conftest*
6775   glibcpp_cv_func___builtin_sinf_link=yes
6776 else
6777   echo "configure: failed program was:" >&5
6778   cat conftest.$ac_ext >&5
6779   rm -rf conftest*
6780   glibcpp_cv_func___builtin_sinf_link=no
6781 fi
6782 rm -f conftest*
6783       
6784 fi
6785
6786     fi
6787     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
6788     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
6789       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6790       cat >> confdefs.h <<EOF
6791 #define ${ac_tr_func} 1
6792 EOF
6793
6794     fi
6795   fi
6796
6797   
6798   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
6799 echo "configure:6800: checking for __builtin_sin declaration" >&5
6800   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
6801     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
6802   echo $ac_n "(cached) $ac_c" 1>&6
6803 else
6804   
6805       
6806       ac_ext=C
6807 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6808 ac_cpp='$CXXCPP $CPPFLAGS'
6809 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6810 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6811 cross_compiling=$ac_cv_prog_cxx_cross
6812
6813       cat > conftest.$ac_ext <<EOF
6814 #line 6815 "configure"
6815 #include "confdefs.h"
6816 #include <math.h>
6817 int main() {
6818  __builtin_sin(0);
6819 ; return 0; }
6820 EOF
6821 if { (eval echo configure:6822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6822   rm -rf conftest*
6823   glibcpp_cv_func___builtin_sin_use=yes
6824 else
6825   echo "configure: failed program was:" >&5
6826   cat conftest.$ac_ext >&5
6827   rm -rf conftest*
6828   glibcpp_cv_func___builtin_sin_use=no
6829 fi
6830 rm -f conftest*
6831       ac_ext=c
6832 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6833 ac_cpp='$CPP $CPPFLAGS'
6834 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6835 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6836 cross_compiling=$ac_cv_prog_cc_cross
6837
6838     
6839 fi
6840
6841   fi
6842   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
6843   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
6844     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
6845 echo "configure:6846: checking for __builtin_sin linkage" >&5
6846     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
6847       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
6848   echo $ac_n "(cached) $ac_c" 1>&6
6849 else
6850   
6851         cat > conftest.$ac_ext <<EOF
6852 #line 6853 "configure"
6853 #include "confdefs.h"
6854 #include <math.h>
6855 int main() {
6856  __builtin_sin(0);
6857 ; return 0; }
6858 EOF
6859 if { (eval echo configure:6860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6860   rm -rf conftest*
6861   glibcpp_cv_func___builtin_sin_link=yes
6862 else
6863   echo "configure: failed program was:" >&5
6864   cat conftest.$ac_ext >&5
6865   rm -rf conftest*
6866   glibcpp_cv_func___builtin_sin_link=no
6867 fi
6868 rm -f conftest*
6869       
6870 fi
6871
6872     fi
6873     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
6874     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
6875       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6876       cat >> confdefs.h <<EOF
6877 #define ${ac_tr_func} 1
6878 EOF
6879
6880     fi
6881   fi
6882
6883   
6884   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
6885 echo "configure:6886: checking for __builtin_sinl declaration" >&5
6886   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
6887     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
6888   echo $ac_n "(cached) $ac_c" 1>&6
6889 else
6890   
6891       
6892       ac_ext=C
6893 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6894 ac_cpp='$CXXCPP $CPPFLAGS'
6895 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6896 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6897 cross_compiling=$ac_cv_prog_cxx_cross
6898
6899       cat > conftest.$ac_ext <<EOF
6900 #line 6901 "configure"
6901 #include "confdefs.h"
6902 #include <math.h>
6903 int main() {
6904  __builtin_sinl(0);
6905 ; return 0; }
6906 EOF
6907 if { (eval echo configure:6908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6908   rm -rf conftest*
6909   glibcpp_cv_func___builtin_sinl_use=yes
6910 else
6911   echo "configure: failed program was:" >&5
6912   cat conftest.$ac_ext >&5
6913   rm -rf conftest*
6914   glibcpp_cv_func___builtin_sinl_use=no
6915 fi
6916 rm -f conftest*
6917       ac_ext=c
6918 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6919 ac_cpp='$CPP $CPPFLAGS'
6920 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6921 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6922 cross_compiling=$ac_cv_prog_cc_cross
6923
6924     
6925 fi
6926
6927   fi
6928   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
6929   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
6930     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
6931 echo "configure:6932: checking for __builtin_sinl linkage" >&5
6932     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
6933       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
6934   echo $ac_n "(cached) $ac_c" 1>&6
6935 else
6936   
6937         cat > conftest.$ac_ext <<EOF
6938 #line 6939 "configure"
6939 #include "confdefs.h"
6940 #include <math.h>
6941 int main() {
6942  __builtin_sinl(0);
6943 ; return 0; }
6944 EOF
6945 if { (eval echo configure:6946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6946   rm -rf conftest*
6947   glibcpp_cv_func___builtin_sinl_link=yes
6948 else
6949   echo "configure: failed program was:" >&5
6950   cat conftest.$ac_ext >&5
6951   rm -rf conftest*
6952   glibcpp_cv_func___builtin_sinl_link=no
6953 fi
6954 rm -f conftest*
6955       
6956 fi
6957
6958     fi
6959     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
6960     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
6961       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6962       cat >> confdefs.h <<EOF
6963 #define ${ac_tr_func} 1
6964 EOF
6965
6966     fi
6967   fi
6968
6969
6970   
6971   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
6972 echo "configure:6973: checking for __builtin_cosf declaration" >&5
6973   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
6974     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
6975   echo $ac_n "(cached) $ac_c" 1>&6
6976 else
6977   
6978       
6979       ac_ext=C
6980 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6981 ac_cpp='$CXXCPP $CPPFLAGS'
6982 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6983 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6984 cross_compiling=$ac_cv_prog_cxx_cross
6985
6986       cat > conftest.$ac_ext <<EOF
6987 #line 6988 "configure"
6988 #include "confdefs.h"
6989 #include <math.h>
6990 int main() {
6991  __builtin_cosf(0);
6992 ; return 0; }
6993 EOF
6994 if { (eval echo configure:6995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6995   rm -rf conftest*
6996   glibcpp_cv_func___builtin_cosf_use=yes
6997 else
6998   echo "configure: failed program was:" >&5
6999   cat conftest.$ac_ext >&5
7000   rm -rf conftest*
7001   glibcpp_cv_func___builtin_cosf_use=no
7002 fi
7003 rm -f conftest*
7004       ac_ext=c
7005 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7006 ac_cpp='$CPP $CPPFLAGS'
7007 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7008 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7009 cross_compiling=$ac_cv_prog_cc_cross
7010
7011     
7012 fi
7013
7014   fi
7015   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
7016   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
7017     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
7018 echo "configure:7019: checking for __builtin_cosf linkage" >&5
7019     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
7020       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
7021   echo $ac_n "(cached) $ac_c" 1>&6
7022 else
7023   
7024         cat > conftest.$ac_ext <<EOF
7025 #line 7026 "configure"
7026 #include "confdefs.h"
7027 #include <math.h>
7028 int main() {
7029  __builtin_cosf(0);
7030 ; return 0; }
7031 EOF
7032 if { (eval echo configure:7033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7033   rm -rf conftest*
7034   glibcpp_cv_func___builtin_cosf_link=yes
7035 else
7036   echo "configure: failed program was:" >&5
7037   cat conftest.$ac_ext >&5
7038   rm -rf conftest*
7039   glibcpp_cv_func___builtin_cosf_link=no
7040 fi
7041 rm -f conftest*
7042       
7043 fi
7044
7045     fi
7046     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
7047     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
7048       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7049       cat >> confdefs.h <<EOF
7050 #define ${ac_tr_func} 1
7051 EOF
7052
7053     fi
7054   fi
7055
7056   
7057   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
7058 echo "configure:7059: checking for __builtin_cos declaration" >&5
7059   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
7060     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
7061   echo $ac_n "(cached) $ac_c" 1>&6
7062 else
7063   
7064       
7065       ac_ext=C
7066 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7067 ac_cpp='$CXXCPP $CPPFLAGS'
7068 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7069 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7070 cross_compiling=$ac_cv_prog_cxx_cross
7071
7072       cat > conftest.$ac_ext <<EOF
7073 #line 7074 "configure"
7074 #include "confdefs.h"
7075 #include <math.h>
7076 int main() {
7077  __builtin_cos(0);
7078 ; return 0; }
7079 EOF
7080 if { (eval echo configure:7081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7081   rm -rf conftest*
7082   glibcpp_cv_func___builtin_cos_use=yes
7083 else
7084   echo "configure: failed program was:" >&5
7085   cat conftest.$ac_ext >&5
7086   rm -rf conftest*
7087   glibcpp_cv_func___builtin_cos_use=no
7088 fi
7089 rm -f conftest*
7090       ac_ext=c
7091 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7092 ac_cpp='$CPP $CPPFLAGS'
7093 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7094 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7095 cross_compiling=$ac_cv_prog_cc_cross
7096
7097     
7098 fi
7099
7100   fi
7101   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
7102   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
7103     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
7104 echo "configure:7105: checking for __builtin_cos linkage" >&5
7105     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
7106       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
7107   echo $ac_n "(cached) $ac_c" 1>&6
7108 else
7109   
7110         cat > conftest.$ac_ext <<EOF
7111 #line 7112 "configure"
7112 #include "confdefs.h"
7113 #include <math.h>
7114 int main() {
7115  __builtin_cos(0);
7116 ; return 0; }
7117 EOF
7118 if { (eval echo configure:7119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7119   rm -rf conftest*
7120   glibcpp_cv_func___builtin_cos_link=yes
7121 else
7122   echo "configure: failed program was:" >&5
7123   cat conftest.$ac_ext >&5
7124   rm -rf conftest*
7125   glibcpp_cv_func___builtin_cos_link=no
7126 fi
7127 rm -f conftest*
7128       
7129 fi
7130
7131     fi
7132     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
7133     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
7134       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7135       cat >> confdefs.h <<EOF
7136 #define ${ac_tr_func} 1
7137 EOF
7138
7139     fi
7140   fi
7141
7142   
7143   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
7144 echo "configure:7145: checking for __builtin_cosl declaration" >&5
7145   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
7146     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
7147   echo $ac_n "(cached) $ac_c" 1>&6
7148 else
7149   
7150       
7151       ac_ext=C
7152 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7153 ac_cpp='$CXXCPP $CPPFLAGS'
7154 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7155 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7156 cross_compiling=$ac_cv_prog_cxx_cross
7157
7158       cat > conftest.$ac_ext <<EOF
7159 #line 7160 "configure"
7160 #include "confdefs.h"
7161 #include <math.h>
7162 int main() {
7163  __builtin_cosl(0);
7164 ; return 0; }
7165 EOF
7166 if { (eval echo configure:7167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7167   rm -rf conftest*
7168   glibcpp_cv_func___builtin_cosl_use=yes
7169 else
7170   echo "configure: failed program was:" >&5
7171   cat conftest.$ac_ext >&5
7172   rm -rf conftest*
7173   glibcpp_cv_func___builtin_cosl_use=no
7174 fi
7175 rm -f conftest*
7176       ac_ext=c
7177 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7178 ac_cpp='$CPP $CPPFLAGS'
7179 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7180 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7181 cross_compiling=$ac_cv_prog_cc_cross
7182
7183     
7184 fi
7185
7186   fi
7187   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
7188   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
7189     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
7190 echo "configure:7191: checking for __builtin_cosl linkage" >&5
7191     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
7192       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
7193   echo $ac_n "(cached) $ac_c" 1>&6
7194 else
7195   
7196         cat > conftest.$ac_ext <<EOF
7197 #line 7198 "configure"
7198 #include "confdefs.h"
7199 #include <math.h>
7200 int main() {
7201  __builtin_cosl(0);
7202 ; return 0; }
7203 EOF
7204 if { (eval echo configure:7205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7205   rm -rf conftest*
7206   glibcpp_cv_func___builtin_cosl_link=yes
7207 else
7208   echo "configure: failed program was:" >&5
7209   cat conftest.$ac_ext >&5
7210   rm -rf conftest*
7211   glibcpp_cv_func___builtin_cosl_link=no
7212 fi
7213 rm -f conftest*
7214       
7215 fi
7216
7217     fi
7218     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
7219     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
7220       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7221       cat >> confdefs.h <<EOF
7222 #define ${ac_tr_func} 1
7223 EOF
7224
7225     fi
7226   fi
7227
7228
7229               dummyvar=no
7230   if test x$dummyvar = x"yes"; then
7231     cat >> confdefs.h <<\EOF
7232 #define HAVE___BUILTIN_ABS 1
7233 EOF
7234
7235     cat >> confdefs.h <<\EOF
7236 #define HAVE___BUILTIN_LABS 1
7237 EOF
7238
7239     cat >> confdefs.h <<\EOF
7240 #define HAVE___BUILTIN_COS 1
7241 EOF
7242
7243     cat >> confdefs.h <<\EOF
7244 #define HAVE___BUILTIN_COSF 1
7245 EOF
7246
7247     cat >> confdefs.h <<\EOF
7248 #define HAVE___BUILTIN_COSL 1
7249 EOF
7250
7251     cat >> confdefs.h <<\EOF
7252 #define HAVE___BUILTIN_FABS 1
7253 EOF
7254
7255     cat >> confdefs.h <<\EOF
7256 #define HAVE___BUILTIN_FABSF 1
7257 EOF
7258
7259     cat >> confdefs.h <<\EOF
7260 #define HAVE___BUILTIN_FABSL 1
7261 EOF
7262
7263     cat >> confdefs.h <<\EOF
7264 #define HAVE___BUILTIN_SIN 1
7265 EOF
7266
7267     cat >> confdefs.h <<\EOF
7268 #define HAVE___BUILTIN_SINF 1
7269 EOF
7270
7271     cat >> confdefs.h <<\EOF
7272 #define HAVE___BUILTIN_SINL 1
7273 EOF
7274
7275     cat >> confdefs.h <<\EOF
7276 #define HAVE___BUILTIN_SQRT 1
7277 EOF
7278
7279     cat >> confdefs.h <<\EOF
7280 #define HAVE___BUILTIN_SQRTF 1
7281 EOF
7282
7283     cat >> confdefs.h <<\EOF
7284 #define HAVE___BUILTIN_SQRTL 1
7285 EOF
7286
7287   fi
7288
7289   
7290   ac_test_CXXFLAGS="${CXXFLAGS+set}"
7291   ac_save_CXXFLAGS="$CXXFLAGS"
7292   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
7293
7294     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
7295 echo "configure:7296: checking for sin in -lm" >&5
7296 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
7297 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7298   echo $ac_n "(cached) $ac_c" 1>&6
7299 else
7300   ac_save_LIBS="$LIBS"
7301 LIBS="-lm  $LIBS"
7302 cat > conftest.$ac_ext <<EOF
7303 #line 7304 "configure"
7304 #include "confdefs.h"
7305 /* Override any gcc2 internal prototype to avoid an error.  */
7306 /* We use char because int might match the return type of a gcc2
7307     builtin and then its argument prototype would still apply.  */
7308 char sin();
7309
7310 int main() {
7311 sin()
7312 ; return 0; }
7313 EOF
7314 if { (eval echo configure:7315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7315   rm -rf conftest*
7316   eval "ac_cv_lib_$ac_lib_var=yes"
7317 else
7318   echo "configure: failed program was:" >&5
7319   cat conftest.$ac_ext >&5
7320   rm -rf conftest*
7321   eval "ac_cv_lib_$ac_lib_var=no"
7322 fi
7323 rm -f conftest*
7324 LIBS="$ac_save_LIBS"
7325
7326 fi
7327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7328   echo "$ac_t""yes" 1>&6
7329   libm="-lm"
7330 else
7331   echo "$ac_t""no" 1>&6
7332 fi
7333
7334   ac_save_LIBS="$LIBS"
7335   LIBS="$LIBS $libm"
7336
7337     
7338   
7339   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
7340 echo "configure:7341: checking for isinf declaration" >&5
7341   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
7342     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
7343   echo $ac_n "(cached) $ac_c" 1>&6
7344 else
7345   
7346       
7347       ac_ext=C
7348 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7349 ac_cpp='$CXXCPP $CPPFLAGS'
7350 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7351 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7352 cross_compiling=$ac_cv_prog_cxx_cross
7353
7354       cat > conftest.$ac_ext <<EOF
7355 #line 7356 "configure"
7356 #include "confdefs.h"
7357 #include <math.h>
7358                       #ifdef HAVE_IEEEFP_H
7359                       #include <ieeefp.h>
7360                       #endif
7361                      
7362 int main() {
7363  isinf(0);
7364 ; return 0; }
7365 EOF
7366 if { (eval echo configure:7367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7367   rm -rf conftest*
7368   glibcpp_cv_func_isinf_use=yes
7369 else
7370   echo "configure: failed program was:" >&5
7371   cat conftest.$ac_ext >&5
7372   rm -rf conftest*
7373   glibcpp_cv_func_isinf_use=no
7374 fi
7375 rm -f conftest*
7376       ac_ext=c
7377 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7378 ac_cpp='$CPP $CPPFLAGS'
7379 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7380 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7381 cross_compiling=$ac_cv_prog_cc_cross
7382
7383     
7384 fi
7385
7386   fi
7387   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
7388
7389   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
7390     for ac_func in isinf
7391 do
7392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7393 echo "configure:7394: checking for $ac_func" >&5
7394 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7395   echo $ac_n "(cached) $ac_c" 1>&6
7396 else
7397   cat > conftest.$ac_ext <<EOF
7398 #line 7399 "configure"
7399 #include "confdefs.h"
7400 /* System header to define __stub macros and hopefully few prototypes,
7401     which can conflict with char $ac_func(); below.  */
7402 #include <assert.h>
7403 /* Override any gcc2 internal prototype to avoid an error.  */
7404 /* We use char because int might match the return type of a gcc2
7405     builtin and then its argument prototype would still apply.  */
7406 char $ac_func();
7407
7408 int main() {
7409
7410 /* The GNU C library defines this for functions which it implements
7411     to always fail with ENOSYS.  Some functions are actually named
7412     something starting with __ and the normal name is an alias.  */
7413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7414 choke me
7415 #else
7416 $ac_func();
7417 #endif
7418
7419 ; return 0; }
7420 EOF
7421 if { (eval echo configure:7422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7422   rm -rf conftest*
7423   eval "ac_cv_func_$ac_func=yes"
7424 else
7425   echo "configure: failed program was:" >&5
7426   cat conftest.$ac_ext >&5
7427   rm -rf conftest*
7428   eval "ac_cv_func_$ac_func=no"
7429 fi
7430 rm -f conftest*
7431 fi
7432
7433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7434   echo "$ac_t""yes" 1>&6
7435     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7436   cat >> confdefs.h <<EOF
7437 #define $ac_tr_func 1
7438 EOF
7439  
7440 else
7441   echo "$ac_t""no" 1>&6
7442 fi
7443 done
7444     
7445   else
7446     
7447   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
7448 echo "configure:7449: checking for _isinf declaration" >&5
7449   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
7450     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
7451   echo $ac_n "(cached) $ac_c" 1>&6
7452 else
7453   
7454       
7455       ac_ext=C
7456 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7457 ac_cpp='$CXXCPP $CPPFLAGS'
7458 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7459 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7460 cross_compiling=$ac_cv_prog_cxx_cross
7461
7462       cat > conftest.$ac_ext <<EOF
7463 #line 7464 "configure"
7464 #include "confdefs.h"
7465 #include <math.h>
7466                       #ifdef HAVE_IEEEFP_H
7467                       #include <ieeefp.h>
7468                       #endif
7469                      
7470 int main() {
7471  _isinf(0);
7472 ; return 0; }
7473 EOF
7474 if { (eval echo configure:7475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7475   rm -rf conftest*
7476   glibcpp_cv_func__isinf_use=yes
7477 else
7478   echo "configure: failed program was:" >&5
7479   cat conftest.$ac_ext >&5
7480   rm -rf conftest*
7481   glibcpp_cv_func__isinf_use=no
7482 fi
7483 rm -f conftest*
7484       ac_ext=c
7485 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7486 ac_cpp='$CPP $CPPFLAGS'
7487 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7488 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7489 cross_compiling=$ac_cv_prog_cc_cross
7490
7491     
7492 fi
7493
7494   fi
7495   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
7496
7497     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
7498       for ac_func in _isinf
7499 do
7500 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7501 echo "configure:7502: checking for $ac_func" >&5
7502 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7503   echo $ac_n "(cached) $ac_c" 1>&6
7504 else
7505   cat > conftest.$ac_ext <<EOF
7506 #line 7507 "configure"
7507 #include "confdefs.h"
7508 /* System header to define __stub macros and hopefully few prototypes,
7509     which can conflict with char $ac_func(); below.  */
7510 #include <assert.h>
7511 /* Override any gcc2 internal prototype to avoid an error.  */
7512 /* We use char because int might match the return type of a gcc2
7513     builtin and then its argument prototype would still apply.  */
7514 char $ac_func();
7515
7516 int main() {
7517
7518 /* The GNU C library defines this for functions which it implements
7519     to always fail with ENOSYS.  Some functions are actually named
7520     something starting with __ and the normal name is an alias.  */
7521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7522 choke me
7523 #else
7524 $ac_func();
7525 #endif
7526
7527 ; return 0; }
7528 EOF
7529 if { (eval echo configure:7530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7530   rm -rf conftest*
7531   eval "ac_cv_func_$ac_func=yes"
7532 else
7533   echo "configure: failed program was:" >&5
7534   cat conftest.$ac_ext >&5
7535   rm -rf conftest*
7536   eval "ac_cv_func_$ac_func=no"
7537 fi
7538 rm -f conftest*
7539 fi
7540
7541 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7542   echo "$ac_t""yes" 1>&6
7543     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7544   cat >> confdefs.h <<EOF
7545 #define $ac_tr_func 1
7546 EOF
7547  
7548 else
7549   echo "$ac_t""no" 1>&6
7550 fi
7551 done
7552     
7553     fi
7554   fi
7555
7556   
7557   
7558   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
7559 echo "configure:7560: checking for isnan declaration" >&5
7560   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
7561     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
7562   echo $ac_n "(cached) $ac_c" 1>&6
7563 else
7564   
7565       
7566       ac_ext=C
7567 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7568 ac_cpp='$CXXCPP $CPPFLAGS'
7569 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7570 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7571 cross_compiling=$ac_cv_prog_cxx_cross
7572
7573       cat > conftest.$ac_ext <<EOF
7574 #line 7575 "configure"
7575 #include "confdefs.h"
7576 #include <math.h>
7577                       #ifdef HAVE_IEEEFP_H
7578                       #include <ieeefp.h>
7579                       #endif
7580                      
7581 int main() {
7582  isnan(0);
7583 ; return 0; }
7584 EOF
7585 if { (eval echo configure:7586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7586   rm -rf conftest*
7587   glibcpp_cv_func_isnan_use=yes
7588 else
7589   echo "configure: failed program was:" >&5
7590   cat conftest.$ac_ext >&5
7591   rm -rf conftest*
7592   glibcpp_cv_func_isnan_use=no
7593 fi
7594 rm -f conftest*
7595       ac_ext=c
7596 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7597 ac_cpp='$CPP $CPPFLAGS'
7598 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7599 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7600 cross_compiling=$ac_cv_prog_cc_cross
7601
7602     
7603 fi
7604
7605   fi
7606   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
7607
7608   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
7609     for ac_func in isnan
7610 do
7611 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7612 echo "configure:7613: checking for $ac_func" >&5
7613 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7614   echo $ac_n "(cached) $ac_c" 1>&6
7615 else
7616   cat > conftest.$ac_ext <<EOF
7617 #line 7618 "configure"
7618 #include "confdefs.h"
7619 /* System header to define __stub macros and hopefully few prototypes,
7620     which can conflict with char $ac_func(); below.  */
7621 #include <assert.h>
7622 /* Override any gcc2 internal prototype to avoid an error.  */
7623 /* We use char because int might match the return type of a gcc2
7624     builtin and then its argument prototype would still apply.  */
7625 char $ac_func();
7626
7627 int main() {
7628
7629 /* The GNU C library defines this for functions which it implements
7630     to always fail with ENOSYS.  Some functions are actually named
7631     something starting with __ and the normal name is an alias.  */
7632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7633 choke me
7634 #else
7635 $ac_func();
7636 #endif
7637
7638 ; return 0; }
7639 EOF
7640 if { (eval echo configure:7641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7641   rm -rf conftest*
7642   eval "ac_cv_func_$ac_func=yes"
7643 else
7644   echo "configure: failed program was:" >&5
7645   cat conftest.$ac_ext >&5
7646   rm -rf conftest*
7647   eval "ac_cv_func_$ac_func=no"
7648 fi
7649 rm -f conftest*
7650 fi
7651
7652 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7653   echo "$ac_t""yes" 1>&6
7654     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7655   cat >> confdefs.h <<EOF
7656 #define $ac_tr_func 1
7657 EOF
7658  
7659 else
7660   echo "$ac_t""no" 1>&6
7661 fi
7662 done
7663     
7664   else
7665     
7666   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
7667 echo "configure:7668: checking for _isnan declaration" >&5
7668   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
7669     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
7670   echo $ac_n "(cached) $ac_c" 1>&6
7671 else
7672   
7673       
7674       ac_ext=C
7675 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7676 ac_cpp='$CXXCPP $CPPFLAGS'
7677 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7678 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7679 cross_compiling=$ac_cv_prog_cxx_cross
7680
7681       cat > conftest.$ac_ext <<EOF
7682 #line 7683 "configure"
7683 #include "confdefs.h"
7684 #include <math.h>
7685                       #ifdef HAVE_IEEEFP_H
7686                       #include <ieeefp.h>
7687                       #endif
7688                      
7689 int main() {
7690  _isnan(0);
7691 ; return 0; }
7692 EOF
7693 if { (eval echo configure:7694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7694   rm -rf conftest*
7695   glibcpp_cv_func__isnan_use=yes
7696 else
7697   echo "configure: failed program was:" >&5
7698   cat conftest.$ac_ext >&5
7699   rm -rf conftest*
7700   glibcpp_cv_func__isnan_use=no
7701 fi
7702 rm -f conftest*
7703       ac_ext=c
7704 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7705 ac_cpp='$CPP $CPPFLAGS'
7706 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7707 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7708 cross_compiling=$ac_cv_prog_cc_cross
7709
7710     
7711 fi
7712
7713   fi
7714   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
7715
7716     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
7717       for ac_func in _isnan
7718 do
7719 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7720 echo "configure:7721: checking for $ac_func" >&5
7721 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7722   echo $ac_n "(cached) $ac_c" 1>&6
7723 else
7724   cat > conftest.$ac_ext <<EOF
7725 #line 7726 "configure"
7726 #include "confdefs.h"
7727 /* System header to define __stub macros and hopefully few prototypes,
7728     which can conflict with char $ac_func(); below.  */
7729 #include <assert.h>
7730 /* Override any gcc2 internal prototype to avoid an error.  */
7731 /* We use char because int might match the return type of a gcc2
7732     builtin and then its argument prototype would still apply.  */
7733 char $ac_func();
7734
7735 int main() {
7736
7737 /* The GNU C library defines this for functions which it implements
7738     to always fail with ENOSYS.  Some functions are actually named
7739     something starting with __ and the normal name is an alias.  */
7740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7741 choke me
7742 #else
7743 $ac_func();
7744 #endif
7745
7746 ; return 0; }
7747 EOF
7748 if { (eval echo configure:7749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7749   rm -rf conftest*
7750   eval "ac_cv_func_$ac_func=yes"
7751 else
7752   echo "configure: failed program was:" >&5
7753   cat conftest.$ac_ext >&5
7754   rm -rf conftest*
7755   eval "ac_cv_func_$ac_func=no"
7756 fi
7757 rm -f conftest*
7758 fi
7759
7760 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7761   echo "$ac_t""yes" 1>&6
7762     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7763   cat >> confdefs.h <<EOF
7764 #define $ac_tr_func 1
7765 EOF
7766  
7767 else
7768   echo "$ac_t""no" 1>&6
7769 fi
7770 done
7771     
7772     fi
7773   fi
7774
7775   
7776   
7777   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
7778 echo "configure:7779: checking for finite declaration" >&5
7779   if test x${glibcpp_cv_func_finite_use+set} != xset; then
7780     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
7781   echo $ac_n "(cached) $ac_c" 1>&6
7782 else
7783   
7784       
7785       ac_ext=C
7786 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7787 ac_cpp='$CXXCPP $CPPFLAGS'
7788 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7789 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7790 cross_compiling=$ac_cv_prog_cxx_cross
7791
7792       cat > conftest.$ac_ext <<EOF
7793 #line 7794 "configure"
7794 #include "confdefs.h"
7795 #include <math.h>
7796                       #ifdef HAVE_IEEEFP_H
7797                       #include <ieeefp.h>
7798                       #endif
7799                      
7800 int main() {
7801  finite(0);
7802 ; return 0; }
7803 EOF
7804 if { (eval echo configure:7805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7805   rm -rf conftest*
7806   glibcpp_cv_func_finite_use=yes
7807 else
7808   echo "configure: failed program was:" >&5
7809   cat conftest.$ac_ext >&5
7810   rm -rf conftest*
7811   glibcpp_cv_func_finite_use=no
7812 fi
7813 rm -f conftest*
7814       ac_ext=c
7815 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7816 ac_cpp='$CPP $CPPFLAGS'
7817 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7818 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7819 cross_compiling=$ac_cv_prog_cc_cross
7820
7821     
7822 fi
7823
7824   fi
7825   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
7826
7827   if test x$glibcpp_cv_func_finite_use = x"yes"; then
7828     for ac_func in finite
7829 do
7830 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7831 echo "configure:7832: checking for $ac_func" >&5
7832 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7833   echo $ac_n "(cached) $ac_c" 1>&6
7834 else
7835   cat > conftest.$ac_ext <<EOF
7836 #line 7837 "configure"
7837 #include "confdefs.h"
7838 /* System header to define __stub macros and hopefully few prototypes,
7839     which can conflict with char $ac_func(); below.  */
7840 #include <assert.h>
7841 /* Override any gcc2 internal prototype to avoid an error.  */
7842 /* We use char because int might match the return type of a gcc2
7843     builtin and then its argument prototype would still apply.  */
7844 char $ac_func();
7845
7846 int main() {
7847
7848 /* The GNU C library defines this for functions which it implements
7849     to always fail with ENOSYS.  Some functions are actually named
7850     something starting with __ and the normal name is an alias.  */
7851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7852 choke me
7853 #else
7854 $ac_func();
7855 #endif
7856
7857 ; return 0; }
7858 EOF
7859 if { (eval echo configure:7860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7860   rm -rf conftest*
7861   eval "ac_cv_func_$ac_func=yes"
7862 else
7863   echo "configure: failed program was:" >&5
7864   cat conftest.$ac_ext >&5
7865   rm -rf conftest*
7866   eval "ac_cv_func_$ac_func=no"
7867 fi
7868 rm -f conftest*
7869 fi
7870
7871 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7872   echo "$ac_t""yes" 1>&6
7873     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7874   cat >> confdefs.h <<EOF
7875 #define $ac_tr_func 1
7876 EOF
7877  
7878 else
7879   echo "$ac_t""no" 1>&6
7880 fi
7881 done
7882     
7883   else
7884     
7885   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
7886 echo "configure:7887: checking for _finite declaration" >&5
7887   if test x${glibcpp_cv_func__finite_use+set} != xset; then
7888     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
7889   echo $ac_n "(cached) $ac_c" 1>&6
7890 else
7891   
7892       
7893       ac_ext=C
7894 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7895 ac_cpp='$CXXCPP $CPPFLAGS'
7896 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7897 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7898 cross_compiling=$ac_cv_prog_cxx_cross
7899
7900       cat > conftest.$ac_ext <<EOF
7901 #line 7902 "configure"
7902 #include "confdefs.h"
7903 #include <math.h>
7904                       #ifdef HAVE_IEEEFP_H
7905                       #include <ieeefp.h>
7906                       #endif
7907                      
7908 int main() {
7909  _finite(0);
7910 ; return 0; }
7911 EOF
7912 if { (eval echo configure:7913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7913   rm -rf conftest*
7914   glibcpp_cv_func__finite_use=yes
7915 else
7916   echo "configure: failed program was:" >&5
7917   cat conftest.$ac_ext >&5
7918   rm -rf conftest*
7919   glibcpp_cv_func__finite_use=no
7920 fi
7921 rm -f conftest*
7922       ac_ext=c
7923 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7924 ac_cpp='$CPP $CPPFLAGS'
7925 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7926 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7927 cross_compiling=$ac_cv_prog_cc_cross
7928
7929     
7930 fi
7931
7932   fi
7933   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
7934
7935     if test x$glibcpp_cv_func__finite_use = x"yes"; then
7936       for ac_func in _finite
7937 do
7938 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7939 echo "configure:7940: checking for $ac_func" >&5
7940 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7941   echo $ac_n "(cached) $ac_c" 1>&6
7942 else
7943   cat > conftest.$ac_ext <<EOF
7944 #line 7945 "configure"
7945 #include "confdefs.h"
7946 /* System header to define __stub macros and hopefully few prototypes,
7947     which can conflict with char $ac_func(); below.  */
7948 #include <assert.h>
7949 /* Override any gcc2 internal prototype to avoid an error.  */
7950 /* We use char because int might match the return type of a gcc2
7951     builtin and then its argument prototype would still apply.  */
7952 char $ac_func();
7953
7954 int main() {
7955
7956 /* The GNU C library defines this for functions which it implements
7957     to always fail with ENOSYS.  Some functions are actually named
7958     something starting with __ and the normal name is an alias.  */
7959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7960 choke me
7961 #else
7962 $ac_func();
7963 #endif
7964
7965 ; return 0; }
7966 EOF
7967 if { (eval echo configure:7968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7968   rm -rf conftest*
7969   eval "ac_cv_func_$ac_func=yes"
7970 else
7971   echo "configure: failed program was:" >&5
7972   cat conftest.$ac_ext >&5
7973   rm -rf conftest*
7974   eval "ac_cv_func_$ac_func=no"
7975 fi
7976 rm -f conftest*
7977 fi
7978
7979 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7980   echo "$ac_t""yes" 1>&6
7981     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7982   cat >> confdefs.h <<EOF
7983 #define $ac_tr_func 1
7984 EOF
7985  
7986 else
7987   echo "$ac_t""no" 1>&6
7988 fi
7989 done
7990     
7991     fi
7992   fi
7993
7994   
7995   
7996   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
7997 echo "configure:7998: checking for copysign declaration" >&5
7998   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
7999     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
8000   echo $ac_n "(cached) $ac_c" 1>&6
8001 else
8002   
8003       
8004       ac_ext=C
8005 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8006 ac_cpp='$CXXCPP $CPPFLAGS'
8007 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8008 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8009 cross_compiling=$ac_cv_prog_cxx_cross
8010
8011       cat > conftest.$ac_ext <<EOF
8012 #line 8013 "configure"
8013 #include "confdefs.h"
8014 #include <math.h>
8015 int main() {
8016  copysign(0, 0);
8017 ; return 0; }
8018 EOF
8019 if { (eval echo configure:8020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8020   rm -rf conftest*
8021   glibcpp_cv_func_copysign_use=yes
8022 else
8023   echo "configure: failed program was:" >&5
8024   cat conftest.$ac_ext >&5
8025   rm -rf conftest*
8026   glibcpp_cv_func_copysign_use=no
8027 fi
8028 rm -f conftest*
8029       ac_ext=c
8030 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8031 ac_cpp='$CPP $CPPFLAGS'
8032 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8033 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8034 cross_compiling=$ac_cv_prog_cc_cross
8035
8036     
8037 fi
8038
8039   fi
8040   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
8041
8042   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
8043     for ac_func in copysign
8044 do
8045 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8046 echo "configure:8047: checking for $ac_func" >&5
8047 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8048   echo $ac_n "(cached) $ac_c" 1>&6
8049 else
8050   cat > conftest.$ac_ext <<EOF
8051 #line 8052 "configure"
8052 #include "confdefs.h"
8053 /* System header to define __stub macros and hopefully few prototypes,
8054     which can conflict with char $ac_func(); below.  */
8055 #include <assert.h>
8056 /* Override any gcc2 internal prototype to avoid an error.  */
8057 /* We use char because int might match the return type of a gcc2
8058     builtin and then its argument prototype would still apply.  */
8059 char $ac_func();
8060
8061 int main() {
8062
8063 /* The GNU C library defines this for functions which it implements
8064     to always fail with ENOSYS.  Some functions are actually named
8065     something starting with __ and the normal name is an alias.  */
8066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8067 choke me
8068 #else
8069 $ac_func();
8070 #endif
8071
8072 ; return 0; }
8073 EOF
8074 if { (eval echo configure:8075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8075   rm -rf conftest*
8076   eval "ac_cv_func_$ac_func=yes"
8077 else
8078   echo "configure: failed program was:" >&5
8079   cat conftest.$ac_ext >&5
8080   rm -rf conftest*
8081   eval "ac_cv_func_$ac_func=no"
8082 fi
8083 rm -f conftest*
8084 fi
8085
8086 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8087   echo "$ac_t""yes" 1>&6
8088     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8089   cat >> confdefs.h <<EOF
8090 #define $ac_tr_func 1
8091 EOF
8092  
8093 else
8094   echo "$ac_t""no" 1>&6
8095 fi
8096 done
8097     
8098   else
8099     
8100   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
8101 echo "configure:8102: checking for _copysign declaration" >&5
8102   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
8103     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
8104   echo $ac_n "(cached) $ac_c" 1>&6
8105 else
8106   
8107       
8108       ac_ext=C
8109 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8110 ac_cpp='$CXXCPP $CPPFLAGS'
8111 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8112 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8113 cross_compiling=$ac_cv_prog_cxx_cross
8114
8115       cat > conftest.$ac_ext <<EOF
8116 #line 8117 "configure"
8117 #include "confdefs.h"
8118 #include <math.h>
8119 int main() {
8120  _copysign(0, 0);
8121 ; return 0; }
8122 EOF
8123 if { (eval echo configure:8124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8124   rm -rf conftest*
8125   glibcpp_cv_func__copysign_use=yes
8126 else
8127   echo "configure: failed program was:" >&5
8128   cat conftest.$ac_ext >&5
8129   rm -rf conftest*
8130   glibcpp_cv_func__copysign_use=no
8131 fi
8132 rm -f conftest*
8133       ac_ext=c
8134 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8135 ac_cpp='$CPP $CPPFLAGS'
8136 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8137 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8138 cross_compiling=$ac_cv_prog_cc_cross
8139
8140     
8141 fi
8142
8143   fi
8144   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
8145
8146     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
8147       for ac_func in _copysign
8148 do
8149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8150 echo "configure:8151: checking for $ac_func" >&5
8151 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8152   echo $ac_n "(cached) $ac_c" 1>&6
8153 else
8154   cat > conftest.$ac_ext <<EOF
8155 #line 8156 "configure"
8156 #include "confdefs.h"
8157 /* System header to define __stub macros and hopefully few prototypes,
8158     which can conflict with char $ac_func(); below.  */
8159 #include <assert.h>
8160 /* Override any gcc2 internal prototype to avoid an error.  */
8161 /* We use char because int might match the return type of a gcc2
8162     builtin and then its argument prototype would still apply.  */
8163 char $ac_func();
8164
8165 int main() {
8166
8167 /* The GNU C library defines this for functions which it implements
8168     to always fail with ENOSYS.  Some functions are actually named
8169     something starting with __ and the normal name is an alias.  */
8170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8171 choke me
8172 #else
8173 $ac_func();
8174 #endif
8175
8176 ; return 0; }
8177 EOF
8178 if { (eval echo configure:8179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8179   rm -rf conftest*
8180   eval "ac_cv_func_$ac_func=yes"
8181 else
8182   echo "configure: failed program was:" >&5
8183   cat conftest.$ac_ext >&5
8184   rm -rf conftest*
8185   eval "ac_cv_func_$ac_func=no"
8186 fi
8187 rm -f conftest*
8188 fi
8189
8190 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8191   echo "$ac_t""yes" 1>&6
8192     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8193   cat >> confdefs.h <<EOF
8194 #define $ac_tr_func 1
8195 EOF
8196  
8197 else
8198   echo "$ac_t""no" 1>&6
8199 fi
8200 done
8201     
8202     fi
8203   fi
8204
8205   
8206   
8207   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
8208 echo "configure:8209: checking for sincos declaration" >&5
8209   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
8210     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
8211   echo $ac_n "(cached) $ac_c" 1>&6
8212 else
8213   
8214       
8215       ac_ext=C
8216 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8217 ac_cpp='$CXXCPP $CPPFLAGS'
8218 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8219 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8220 cross_compiling=$ac_cv_prog_cxx_cross
8221
8222       cat > conftest.$ac_ext <<EOF
8223 #line 8224 "configure"
8224 #include "confdefs.h"
8225 #include <math.h>
8226 int main() {
8227  sincos(0, 0, 0);
8228 ; return 0; }
8229 EOF
8230 if { (eval echo configure:8231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8231   rm -rf conftest*
8232   glibcpp_cv_func_sincos_use=yes
8233 else
8234   echo "configure: failed program was:" >&5
8235   cat conftest.$ac_ext >&5
8236   rm -rf conftest*
8237   glibcpp_cv_func_sincos_use=no
8238 fi
8239 rm -f conftest*
8240       ac_ext=c
8241 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8242 ac_cpp='$CPP $CPPFLAGS'
8243 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8244 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8245 cross_compiling=$ac_cv_prog_cc_cross
8246
8247     
8248 fi
8249
8250   fi
8251   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
8252
8253   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
8254     for ac_func in sincos
8255 do
8256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8257 echo "configure:8258: checking for $ac_func" >&5
8258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8259   echo $ac_n "(cached) $ac_c" 1>&6
8260 else
8261   cat > conftest.$ac_ext <<EOF
8262 #line 8263 "configure"
8263 #include "confdefs.h"
8264 /* System header to define __stub macros and hopefully few prototypes,
8265     which can conflict with char $ac_func(); below.  */
8266 #include <assert.h>
8267 /* Override any gcc2 internal prototype to avoid an error.  */
8268 /* We use char because int might match the return type of a gcc2
8269     builtin and then its argument prototype would still apply.  */
8270 char $ac_func();
8271
8272 int main() {
8273
8274 /* The GNU C library defines this for functions which it implements
8275     to always fail with ENOSYS.  Some functions are actually named
8276     something starting with __ and the normal name is an alias.  */
8277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8278 choke me
8279 #else
8280 $ac_func();
8281 #endif
8282
8283 ; return 0; }
8284 EOF
8285 if { (eval echo configure:8286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8286   rm -rf conftest*
8287   eval "ac_cv_func_$ac_func=yes"
8288 else
8289   echo "configure: failed program was:" >&5
8290   cat conftest.$ac_ext >&5
8291   rm -rf conftest*
8292   eval "ac_cv_func_$ac_func=no"
8293 fi
8294 rm -f conftest*
8295 fi
8296
8297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8298   echo "$ac_t""yes" 1>&6
8299     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8300   cat >> confdefs.h <<EOF
8301 #define $ac_tr_func 1
8302 EOF
8303  
8304 else
8305   echo "$ac_t""no" 1>&6
8306 fi
8307 done
8308     
8309   else
8310     
8311   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
8312 echo "configure:8313: checking for _sincos declaration" >&5
8313   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
8314     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
8315   echo $ac_n "(cached) $ac_c" 1>&6
8316 else
8317   
8318       
8319       ac_ext=C
8320 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8321 ac_cpp='$CXXCPP $CPPFLAGS'
8322 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8323 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8324 cross_compiling=$ac_cv_prog_cxx_cross
8325
8326       cat > conftest.$ac_ext <<EOF
8327 #line 8328 "configure"
8328 #include "confdefs.h"
8329 #include <math.h>
8330 int main() {
8331  _sincos(0, 0, 0);
8332 ; return 0; }
8333 EOF
8334 if { (eval echo configure:8335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8335   rm -rf conftest*
8336   glibcpp_cv_func__sincos_use=yes
8337 else
8338   echo "configure: failed program was:" >&5
8339   cat conftest.$ac_ext >&5
8340   rm -rf conftest*
8341   glibcpp_cv_func__sincos_use=no
8342 fi
8343 rm -f conftest*
8344       ac_ext=c
8345 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8346 ac_cpp='$CPP $CPPFLAGS'
8347 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8348 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8349 cross_compiling=$ac_cv_prog_cc_cross
8350
8351     
8352 fi
8353
8354   fi
8355   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
8356
8357     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
8358       for ac_func in _sincos
8359 do
8360 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8361 echo "configure:8362: checking for $ac_func" >&5
8362 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8363   echo $ac_n "(cached) $ac_c" 1>&6
8364 else
8365   cat > conftest.$ac_ext <<EOF
8366 #line 8367 "configure"
8367 #include "confdefs.h"
8368 /* System header to define __stub macros and hopefully few prototypes,
8369     which can conflict with char $ac_func(); below.  */
8370 #include <assert.h>
8371 /* Override any gcc2 internal prototype to avoid an error.  */
8372 /* We use char because int might match the return type of a gcc2
8373     builtin and then its argument prototype would still apply.  */
8374 char $ac_func();
8375
8376 int main() {
8377
8378 /* The GNU C library defines this for functions which it implements
8379     to always fail with ENOSYS.  Some functions are actually named
8380     something starting with __ and the normal name is an alias.  */
8381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8382 choke me
8383 #else
8384 $ac_func();
8385 #endif
8386
8387 ; return 0; }
8388 EOF
8389 if { (eval echo configure:8390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8390   rm -rf conftest*
8391   eval "ac_cv_func_$ac_func=yes"
8392 else
8393   echo "configure: failed program was:" >&5
8394   cat conftest.$ac_ext >&5
8395   rm -rf conftest*
8396   eval "ac_cv_func_$ac_func=no"
8397 fi
8398 rm -f conftest*
8399 fi
8400
8401 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8402   echo "$ac_t""yes" 1>&6
8403     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8404   cat >> confdefs.h <<EOF
8405 #define $ac_tr_func 1
8406 EOF
8407  
8408 else
8409   echo "$ac_t""no" 1>&6
8410 fi
8411 done
8412     
8413     fi
8414   fi
8415
8416   
8417   
8418   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
8419 echo "configure:8420: checking for fpclass declaration" >&5
8420   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
8421     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
8422   echo $ac_n "(cached) $ac_c" 1>&6
8423 else
8424   
8425       
8426       ac_ext=C
8427 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8428 ac_cpp='$CXXCPP $CPPFLAGS'
8429 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8430 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8431 cross_compiling=$ac_cv_prog_cxx_cross
8432
8433       cat > conftest.$ac_ext <<EOF
8434 #line 8435 "configure"
8435 #include "confdefs.h"
8436 #include <math.h>
8437                       #ifdef HAVE_IEEEFP_H
8438                       #include <ieeefp.h>
8439                       #endif
8440                      
8441 int main() {
8442  fpclass(0);
8443 ; return 0; }
8444 EOF
8445 if { (eval echo configure:8446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8446   rm -rf conftest*
8447   glibcpp_cv_func_fpclass_use=yes
8448 else
8449   echo "configure: failed program was:" >&5
8450   cat conftest.$ac_ext >&5
8451   rm -rf conftest*
8452   glibcpp_cv_func_fpclass_use=no
8453 fi
8454 rm -f conftest*
8455       ac_ext=c
8456 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8457 ac_cpp='$CPP $CPPFLAGS'
8458 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8459 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8460 cross_compiling=$ac_cv_prog_cc_cross
8461
8462     
8463 fi
8464
8465   fi
8466   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
8467
8468   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
8469     for ac_func in fpclass
8470 do
8471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8472 echo "configure:8473: checking for $ac_func" >&5
8473 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8474   echo $ac_n "(cached) $ac_c" 1>&6
8475 else
8476   cat > conftest.$ac_ext <<EOF
8477 #line 8478 "configure"
8478 #include "confdefs.h"
8479 /* System header to define __stub macros and hopefully few prototypes,
8480     which can conflict with char $ac_func(); below.  */
8481 #include <assert.h>
8482 /* Override any gcc2 internal prototype to avoid an error.  */
8483 /* We use char because int might match the return type of a gcc2
8484     builtin and then its argument prototype would still apply.  */
8485 char $ac_func();
8486
8487 int main() {
8488
8489 /* The GNU C library defines this for functions which it implements
8490     to always fail with ENOSYS.  Some functions are actually named
8491     something starting with __ and the normal name is an alias.  */
8492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8493 choke me
8494 #else
8495 $ac_func();
8496 #endif
8497
8498 ; return 0; }
8499 EOF
8500 if { (eval echo configure:8501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8501   rm -rf conftest*
8502   eval "ac_cv_func_$ac_func=yes"
8503 else
8504   echo "configure: failed program was:" >&5
8505   cat conftest.$ac_ext >&5
8506   rm -rf conftest*
8507   eval "ac_cv_func_$ac_func=no"
8508 fi
8509 rm -f conftest*
8510 fi
8511
8512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8513   echo "$ac_t""yes" 1>&6
8514     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8515   cat >> confdefs.h <<EOF
8516 #define $ac_tr_func 1
8517 EOF
8518  
8519 else
8520   echo "$ac_t""no" 1>&6
8521 fi
8522 done
8523     
8524   else
8525     
8526   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
8527 echo "configure:8528: checking for _fpclass declaration" >&5
8528   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
8529     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
8530   echo $ac_n "(cached) $ac_c" 1>&6
8531 else
8532   
8533       
8534       ac_ext=C
8535 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8536 ac_cpp='$CXXCPP $CPPFLAGS'
8537 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8538 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8539 cross_compiling=$ac_cv_prog_cxx_cross
8540
8541       cat > conftest.$ac_ext <<EOF
8542 #line 8543 "configure"
8543 #include "confdefs.h"
8544 #include <math.h>
8545                       #ifdef HAVE_IEEEFP_H
8546                       #include <ieeefp.h>
8547                       #endif
8548                      
8549 int main() {
8550  _fpclass(0);
8551 ; return 0; }
8552 EOF
8553 if { (eval echo configure:8554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8554   rm -rf conftest*
8555   glibcpp_cv_func__fpclass_use=yes
8556 else
8557   echo "configure: failed program was:" >&5
8558   cat conftest.$ac_ext >&5
8559   rm -rf conftest*
8560   glibcpp_cv_func__fpclass_use=no
8561 fi
8562 rm -f conftest*
8563       ac_ext=c
8564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8565 ac_cpp='$CPP $CPPFLAGS'
8566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8568 cross_compiling=$ac_cv_prog_cc_cross
8569
8570     
8571 fi
8572
8573   fi
8574   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
8575
8576     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
8577       for ac_func in _fpclass
8578 do
8579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8580 echo "configure:8581: checking for $ac_func" >&5
8581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8582   echo $ac_n "(cached) $ac_c" 1>&6
8583 else
8584   cat > conftest.$ac_ext <<EOF
8585 #line 8586 "configure"
8586 #include "confdefs.h"
8587 /* System header to define __stub macros and hopefully few prototypes,
8588     which can conflict with char $ac_func(); below.  */
8589 #include <assert.h>
8590 /* Override any gcc2 internal prototype to avoid an error.  */
8591 /* We use char because int might match the return type of a gcc2
8592     builtin and then its argument prototype would still apply.  */
8593 char $ac_func();
8594
8595 int main() {
8596
8597 /* The GNU C library defines this for functions which it implements
8598     to always fail with ENOSYS.  Some functions are actually named
8599     something starting with __ and the normal name is an alias.  */
8600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8601 choke me
8602 #else
8603 $ac_func();
8604 #endif
8605
8606 ; return 0; }
8607 EOF
8608 if { (eval echo configure:8609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8609   rm -rf conftest*
8610   eval "ac_cv_func_$ac_func=yes"
8611 else
8612   echo "configure: failed program was:" >&5
8613   cat conftest.$ac_ext >&5
8614   rm -rf conftest*
8615   eval "ac_cv_func_$ac_func=no"
8616 fi
8617 rm -f conftest*
8618 fi
8619
8620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8621   echo "$ac_t""yes" 1>&6
8622     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8623   cat >> confdefs.h <<EOF
8624 #define $ac_tr_func 1
8625 EOF
8626  
8627 else
8628   echo "$ac_t""no" 1>&6
8629 fi
8630 done
8631     
8632     fi
8633   fi
8634
8635   
8636   
8637   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
8638 echo "configure:8639: checking for qfpclass declaration" >&5
8639   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
8640     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
8641   echo $ac_n "(cached) $ac_c" 1>&6
8642 else
8643   
8644       
8645       ac_ext=C
8646 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8647 ac_cpp='$CXXCPP $CPPFLAGS'
8648 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8649 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8650 cross_compiling=$ac_cv_prog_cxx_cross
8651
8652       cat > conftest.$ac_ext <<EOF
8653 #line 8654 "configure"
8654 #include "confdefs.h"
8655 #include <math.h>
8656                       #ifdef HAVE_IEEEFP_H
8657                       #include <ieeefp.h>
8658                       #endif
8659                      
8660 int main() {
8661  qfpclass(0);
8662 ; return 0; }
8663 EOF
8664 if { (eval echo configure:8665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8665   rm -rf conftest*
8666   glibcpp_cv_func_qfpclass_use=yes
8667 else
8668   echo "configure: failed program was:" >&5
8669   cat conftest.$ac_ext >&5
8670   rm -rf conftest*
8671   glibcpp_cv_func_qfpclass_use=no
8672 fi
8673 rm -f conftest*
8674       ac_ext=c
8675 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8676 ac_cpp='$CPP $CPPFLAGS'
8677 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8678 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8679 cross_compiling=$ac_cv_prog_cc_cross
8680
8681     
8682 fi
8683
8684   fi
8685   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
8686
8687   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
8688     for ac_func in qfpclass
8689 do
8690 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8691 echo "configure:8692: checking for $ac_func" >&5
8692 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8693   echo $ac_n "(cached) $ac_c" 1>&6
8694 else
8695   cat > conftest.$ac_ext <<EOF
8696 #line 8697 "configure"
8697 #include "confdefs.h"
8698 /* System header to define __stub macros and hopefully few prototypes,
8699     which can conflict with char $ac_func(); below.  */
8700 #include <assert.h>
8701 /* Override any gcc2 internal prototype to avoid an error.  */
8702 /* We use char because int might match the return type of a gcc2
8703     builtin and then its argument prototype would still apply.  */
8704 char $ac_func();
8705
8706 int main() {
8707
8708 /* The GNU C library defines this for functions which it implements
8709     to always fail with ENOSYS.  Some functions are actually named
8710     something starting with __ and the normal name is an alias.  */
8711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8712 choke me
8713 #else
8714 $ac_func();
8715 #endif
8716
8717 ; return 0; }
8718 EOF
8719 if { (eval echo configure:8720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8720   rm -rf conftest*
8721   eval "ac_cv_func_$ac_func=yes"
8722 else
8723   echo "configure: failed program was:" >&5
8724   cat conftest.$ac_ext >&5
8725   rm -rf conftest*
8726   eval "ac_cv_func_$ac_func=no"
8727 fi
8728 rm -f conftest*
8729 fi
8730
8731 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8732   echo "$ac_t""yes" 1>&6
8733     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8734   cat >> confdefs.h <<EOF
8735 #define $ac_tr_func 1
8736 EOF
8737  
8738 else
8739   echo "$ac_t""no" 1>&6
8740 fi
8741 done
8742     
8743   else
8744     
8745   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
8746 echo "configure:8747: checking for _qfpclass declaration" >&5
8747   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
8748     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
8749   echo $ac_n "(cached) $ac_c" 1>&6
8750 else
8751   
8752       
8753       ac_ext=C
8754 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8755 ac_cpp='$CXXCPP $CPPFLAGS'
8756 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8757 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8758 cross_compiling=$ac_cv_prog_cxx_cross
8759
8760       cat > conftest.$ac_ext <<EOF
8761 #line 8762 "configure"
8762 #include "confdefs.h"
8763 #include <math.h>
8764                       #ifdef HAVE_IEEEFP_H
8765                       #include <ieeefp.h>
8766                       #endif
8767                      
8768 int main() {
8769  _qfpclass(0);
8770 ; return 0; }
8771 EOF
8772 if { (eval echo configure:8773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8773   rm -rf conftest*
8774   glibcpp_cv_func__qfpclass_use=yes
8775 else
8776   echo "configure: failed program was:" >&5
8777   cat conftest.$ac_ext >&5
8778   rm -rf conftest*
8779   glibcpp_cv_func__qfpclass_use=no
8780 fi
8781 rm -f conftest*
8782       ac_ext=c
8783 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8784 ac_cpp='$CPP $CPPFLAGS'
8785 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8786 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8787 cross_compiling=$ac_cv_prog_cc_cross
8788
8789     
8790 fi
8791
8792   fi
8793   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
8794
8795     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
8796       for ac_func in _qfpclass
8797 do
8798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8799 echo "configure:8800: checking for $ac_func" >&5
8800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8801   echo $ac_n "(cached) $ac_c" 1>&6
8802 else
8803   cat > conftest.$ac_ext <<EOF
8804 #line 8805 "configure"
8805 #include "confdefs.h"
8806 /* System header to define __stub macros and hopefully few prototypes,
8807     which can conflict with char $ac_func(); below.  */
8808 #include <assert.h>
8809 /* Override any gcc2 internal prototype to avoid an error.  */
8810 /* We use char because int might match the return type of a gcc2
8811     builtin and then its argument prototype would still apply.  */
8812 char $ac_func();
8813
8814 int main() {
8815
8816 /* The GNU C library defines this for functions which it implements
8817     to always fail with ENOSYS.  Some functions are actually named
8818     something starting with __ and the normal name is an alias.  */
8819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8820 choke me
8821 #else
8822 $ac_func();
8823 #endif
8824
8825 ; return 0; }
8826 EOF
8827 if { (eval echo configure:8828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8828   rm -rf conftest*
8829   eval "ac_cv_func_$ac_func=yes"
8830 else
8831   echo "configure: failed program was:" >&5
8832   cat conftest.$ac_ext >&5
8833   rm -rf conftest*
8834   eval "ac_cv_func_$ac_func=no"
8835 fi
8836 rm -f conftest*
8837 fi
8838
8839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8840   echo "$ac_t""yes" 1>&6
8841     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8842   cat >> confdefs.h <<EOF
8843 #define $ac_tr_func 1
8844 EOF
8845  
8846 else
8847   echo "$ac_t""no" 1>&6
8848 fi
8849 done
8850     
8851     fi
8852   fi
8853
8854   
8855   
8856   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
8857 echo "configure:8858: checking for hypot declaration" >&5
8858   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
8859     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
8860   echo $ac_n "(cached) $ac_c" 1>&6
8861 else
8862   
8863       
8864       ac_ext=C
8865 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8866 ac_cpp='$CXXCPP $CPPFLAGS'
8867 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8868 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8869 cross_compiling=$ac_cv_prog_cxx_cross
8870
8871       cat > conftest.$ac_ext <<EOF
8872 #line 8873 "configure"
8873 #include "confdefs.h"
8874 #include <math.h>
8875 int main() {
8876  hypot(0, 0);
8877 ; return 0; }
8878 EOF
8879 if { (eval echo configure:8880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8880   rm -rf conftest*
8881   glibcpp_cv_func_hypot_use=yes
8882 else
8883   echo "configure: failed program was:" >&5
8884   cat conftest.$ac_ext >&5
8885   rm -rf conftest*
8886   glibcpp_cv_func_hypot_use=no
8887 fi
8888 rm -f conftest*
8889       ac_ext=c
8890 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8891 ac_cpp='$CPP $CPPFLAGS'
8892 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8893 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8894 cross_compiling=$ac_cv_prog_cc_cross
8895
8896     
8897 fi
8898
8899   fi
8900   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
8901
8902   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
8903     for ac_func in hypot
8904 do
8905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8906 echo "configure:8907: checking for $ac_func" >&5
8907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8908   echo $ac_n "(cached) $ac_c" 1>&6
8909 else
8910   cat > conftest.$ac_ext <<EOF
8911 #line 8912 "configure"
8912 #include "confdefs.h"
8913 /* System header to define __stub macros and hopefully few prototypes,
8914     which can conflict with char $ac_func(); below.  */
8915 #include <assert.h>
8916 /* Override any gcc2 internal prototype to avoid an error.  */
8917 /* We use char because int might match the return type of a gcc2
8918     builtin and then its argument prototype would still apply.  */
8919 char $ac_func();
8920
8921 int main() {
8922
8923 /* The GNU C library defines this for functions which it implements
8924     to always fail with ENOSYS.  Some functions are actually named
8925     something starting with __ and the normal name is an alias.  */
8926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8927 choke me
8928 #else
8929 $ac_func();
8930 #endif
8931
8932 ; return 0; }
8933 EOF
8934 if { (eval echo configure:8935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8935   rm -rf conftest*
8936   eval "ac_cv_func_$ac_func=yes"
8937 else
8938   echo "configure: failed program was:" >&5
8939   cat conftest.$ac_ext >&5
8940   rm -rf conftest*
8941   eval "ac_cv_func_$ac_func=no"
8942 fi
8943 rm -f conftest*
8944 fi
8945
8946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8947   echo "$ac_t""yes" 1>&6
8948     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8949   cat >> confdefs.h <<EOF
8950 #define $ac_tr_func 1
8951 EOF
8952  
8953 else
8954   echo "$ac_t""no" 1>&6
8955 fi
8956 done
8957     
8958   else
8959     
8960   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
8961 echo "configure:8962: checking for _hypot declaration" >&5
8962   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
8963     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
8964   echo $ac_n "(cached) $ac_c" 1>&6
8965 else
8966   
8967       
8968       ac_ext=C
8969 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8970 ac_cpp='$CXXCPP $CPPFLAGS'
8971 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8972 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8973 cross_compiling=$ac_cv_prog_cxx_cross
8974
8975       cat > conftest.$ac_ext <<EOF
8976 #line 8977 "configure"
8977 #include "confdefs.h"
8978 #include <math.h>
8979 int main() {
8980  _hypot(0, 0);
8981 ; return 0; }
8982 EOF
8983 if { (eval echo configure:8984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8984   rm -rf conftest*
8985   glibcpp_cv_func__hypot_use=yes
8986 else
8987   echo "configure: failed program was:" >&5
8988   cat conftest.$ac_ext >&5
8989   rm -rf conftest*
8990   glibcpp_cv_func__hypot_use=no
8991 fi
8992 rm -f conftest*
8993       ac_ext=c
8994 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8995 ac_cpp='$CPP $CPPFLAGS'
8996 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8997 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8998 cross_compiling=$ac_cv_prog_cc_cross
8999
9000     
9001 fi
9002
9003   fi
9004   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
9005
9006     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
9007       for ac_func in _hypot
9008 do
9009 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9010 echo "configure:9011: checking for $ac_func" >&5
9011 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9012   echo $ac_n "(cached) $ac_c" 1>&6
9013 else
9014   cat > conftest.$ac_ext <<EOF
9015 #line 9016 "configure"
9016 #include "confdefs.h"
9017 /* System header to define __stub macros and hopefully few prototypes,
9018     which can conflict with char $ac_func(); below.  */
9019 #include <assert.h>
9020 /* Override any gcc2 internal prototype to avoid an error.  */
9021 /* We use char because int might match the return type of a gcc2
9022     builtin and then its argument prototype would still apply.  */
9023 char $ac_func();
9024
9025 int main() {
9026
9027 /* The GNU C library defines this for functions which it implements
9028     to always fail with ENOSYS.  Some functions are actually named
9029     something starting with __ and the normal name is an alias.  */
9030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9031 choke me
9032 #else
9033 $ac_func();
9034 #endif
9035
9036 ; return 0; }
9037 EOF
9038 if { (eval echo configure:9039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9039   rm -rf conftest*
9040   eval "ac_cv_func_$ac_func=yes"
9041 else
9042   echo "configure: failed program was:" >&5
9043   cat conftest.$ac_ext >&5
9044   rm -rf conftest*
9045   eval "ac_cv_func_$ac_func=no"
9046 fi
9047 rm -f conftest*
9048 fi
9049
9050 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9051   echo "$ac_t""yes" 1>&6
9052     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9053   cat >> confdefs.h <<EOF
9054 #define $ac_tr_func 1
9055 EOF
9056  
9057 else
9058   echo "$ac_t""no" 1>&6
9059 fi
9060 done
9061     
9062     fi
9063   fi
9064
9065
9066     
9067   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
9068 echo "configure:9069: checking for float trig functions" >&5
9069   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
9070   echo $ac_n "(cached) $ac_c" 1>&6
9071 else
9072   
9073     
9074     ac_ext=C
9075 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9076 ac_cpp='$CXXCPP $CPPFLAGS'
9077 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9078 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9079 cross_compiling=$ac_cv_prog_cxx_cross
9080
9081     cat > conftest.$ac_ext <<EOF
9082 #line 9083 "configure"
9083 #include "confdefs.h"
9084 #include <math.h>
9085 int main() {
9086  `for x in acosf asinf atanf \
9087                                           cosf sinf tanf \
9088                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
9089 ; return 0; }
9090 EOF
9091 if { (eval echo configure:9092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9092   rm -rf conftest*
9093   glibcpp_cv_func_float_trig_use=yes
9094 else
9095   echo "configure: failed program was:" >&5
9096   cat conftest.$ac_ext >&5
9097   rm -rf conftest*
9098   glibcpp_cv_func_float_trig_use=no
9099 fi
9100 rm -f conftest*
9101     ac_ext=c
9102 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9103 ac_cpp='$CPP $CPPFLAGS'
9104 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9105 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9106 cross_compiling=$ac_cv_prog_cc_cross
9107
9108 fi
9109
9110   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
9111   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
9112     for ac_func in acosf asinf atanf \
9113                                           cosf sinf tanf \
9114                                           coshf sinhf tanhf
9115 do
9116 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9117 echo "configure:9118: checking for $ac_func" >&5
9118 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9119   echo $ac_n "(cached) $ac_c" 1>&6
9120 else
9121   cat > conftest.$ac_ext <<EOF
9122 #line 9123 "configure"
9123 #include "confdefs.h"
9124 /* System header to define __stub macros and hopefully few prototypes,
9125     which can conflict with char $ac_func(); below.  */
9126 #include <assert.h>
9127 /* Override any gcc2 internal prototype to avoid an error.  */
9128 /* We use char because int might match the return type of a gcc2
9129     builtin and then its argument prototype would still apply.  */
9130 char $ac_func();
9131
9132 int main() {
9133
9134 /* The GNU C library defines this for functions which it implements
9135     to always fail with ENOSYS.  Some functions are actually named
9136     something starting with __ and the normal name is an alias.  */
9137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9138 choke me
9139 #else
9140 $ac_func();
9141 #endif
9142
9143 ; return 0; }
9144 EOF
9145 if { (eval echo configure:9146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9146   rm -rf conftest*
9147   eval "ac_cv_func_$ac_func=yes"
9148 else
9149   echo "configure: failed program was:" >&5
9150   cat conftest.$ac_ext >&5
9151   rm -rf conftest*
9152   eval "ac_cv_func_$ac_func=no"
9153 fi
9154 rm -f conftest*
9155 fi
9156
9157 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9158   echo "$ac_t""yes" 1>&6
9159     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9160   cat >> confdefs.h <<EOF
9161 #define $ac_tr_func 1
9162 EOF
9163  
9164 else
9165   echo "$ac_t""no" 1>&6
9166 fi
9167 done
9168
9169   fi
9170
9171   
9172   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
9173 echo "configure:9174: checking for float round functions" >&5
9174   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
9175   echo $ac_n "(cached) $ac_c" 1>&6
9176 else
9177   
9178     
9179     ac_ext=C
9180 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9181 ac_cpp='$CXXCPP $CPPFLAGS'
9182 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9183 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9184 cross_compiling=$ac_cv_prog_cxx_cross
9185
9186     cat > conftest.$ac_ext <<EOF
9187 #line 9188 "configure"
9188 #include "confdefs.h"
9189 #include <math.h>
9190 int main() {
9191  `for x in ceilf floorf; do echo "$x (0);"; done` 
9192 ; return 0; }
9193 EOF
9194 if { (eval echo configure:9195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9195   rm -rf conftest*
9196   glibcpp_cv_func_float_round_use=yes
9197 else
9198   echo "configure: failed program was:" >&5
9199   cat conftest.$ac_ext >&5
9200   rm -rf conftest*
9201   glibcpp_cv_func_float_round_use=no
9202 fi
9203 rm -f conftest*
9204     ac_ext=c
9205 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9206 ac_cpp='$CPP $CPPFLAGS'
9207 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9208 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9209 cross_compiling=$ac_cv_prog_cc_cross
9210
9211 fi
9212
9213   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
9214   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
9215     for ac_func in ceilf floorf
9216 do
9217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9218 echo "configure:9219: checking for $ac_func" >&5
9219 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9220   echo $ac_n "(cached) $ac_c" 1>&6
9221 else
9222   cat > conftest.$ac_ext <<EOF
9223 #line 9224 "configure"
9224 #include "confdefs.h"
9225 /* System header to define __stub macros and hopefully few prototypes,
9226     which can conflict with char $ac_func(); below.  */
9227 #include <assert.h>
9228 /* Override any gcc2 internal prototype to avoid an error.  */
9229 /* We use char because int might match the return type of a gcc2
9230     builtin and then its argument prototype would still apply.  */
9231 char $ac_func();
9232
9233 int main() {
9234
9235 /* The GNU C library defines this for functions which it implements
9236     to always fail with ENOSYS.  Some functions are actually named
9237     something starting with __ and the normal name is an alias.  */
9238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9239 choke me
9240 #else
9241 $ac_func();
9242 #endif
9243
9244 ; return 0; }
9245 EOF
9246 if { (eval echo configure:9247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9247   rm -rf conftest*
9248   eval "ac_cv_func_$ac_func=yes"
9249 else
9250   echo "configure: failed program was:" >&5
9251   cat conftest.$ac_ext >&5
9252   rm -rf conftest*
9253   eval "ac_cv_func_$ac_func=no"
9254 fi
9255 rm -f conftest*
9256 fi
9257
9258 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9259   echo "$ac_t""yes" 1>&6
9260     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9261   cat >> confdefs.h <<EOF
9262 #define $ac_tr_func 1
9263 EOF
9264  
9265 else
9266   echo "$ac_t""no" 1>&6
9267 fi
9268 done
9269
9270   fi
9271
9272   
9273   
9274   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
9275 echo "configure:9276: checking for isnanf declaration" >&5
9276   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
9277     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
9278   echo $ac_n "(cached) $ac_c" 1>&6
9279 else
9280   
9281       
9282       ac_ext=C
9283 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9284 ac_cpp='$CXXCPP $CPPFLAGS'
9285 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9286 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9287 cross_compiling=$ac_cv_prog_cxx_cross
9288
9289       cat > conftest.$ac_ext <<EOF
9290 #line 9291 "configure"
9291 #include "confdefs.h"
9292 #include <math.h>
9293                       #ifdef HAVE_IEEEFP_H
9294                       #include <ieeefp.h>
9295                       #endif
9296                      
9297 int main() {
9298  isnanf(0);
9299 ; return 0; }
9300 EOF
9301 if { (eval echo configure:9302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9302   rm -rf conftest*
9303   glibcpp_cv_func_isnanf_use=yes
9304 else
9305   echo "configure: failed program was:" >&5
9306   cat conftest.$ac_ext >&5
9307   rm -rf conftest*
9308   glibcpp_cv_func_isnanf_use=no
9309 fi
9310 rm -f conftest*
9311       ac_ext=c
9312 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9313 ac_cpp='$CPP $CPPFLAGS'
9314 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9315 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9316 cross_compiling=$ac_cv_prog_cc_cross
9317
9318     
9319 fi
9320
9321   fi
9322   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
9323
9324   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
9325     for ac_func in isnanf
9326 do
9327 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9328 echo "configure:9329: checking for $ac_func" >&5
9329 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9330   echo $ac_n "(cached) $ac_c" 1>&6
9331 else
9332   cat > conftest.$ac_ext <<EOF
9333 #line 9334 "configure"
9334 #include "confdefs.h"
9335 /* System header to define __stub macros and hopefully few prototypes,
9336     which can conflict with char $ac_func(); below.  */
9337 #include <assert.h>
9338 /* Override any gcc2 internal prototype to avoid an error.  */
9339 /* We use char because int might match the return type of a gcc2
9340     builtin and then its argument prototype would still apply.  */
9341 char $ac_func();
9342
9343 int main() {
9344
9345 /* The GNU C library defines this for functions which it implements
9346     to always fail with ENOSYS.  Some functions are actually named
9347     something starting with __ and the normal name is an alias.  */
9348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9349 choke me
9350 #else
9351 $ac_func();
9352 #endif
9353
9354 ; return 0; }
9355 EOF
9356 if { (eval echo configure:9357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9357   rm -rf conftest*
9358   eval "ac_cv_func_$ac_func=yes"
9359 else
9360   echo "configure: failed program was:" >&5
9361   cat conftest.$ac_ext >&5
9362   rm -rf conftest*
9363   eval "ac_cv_func_$ac_func=no"
9364 fi
9365 rm -f conftest*
9366 fi
9367
9368 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9369   echo "$ac_t""yes" 1>&6
9370     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9371   cat >> confdefs.h <<EOF
9372 #define $ac_tr_func 1
9373 EOF
9374  
9375 else
9376   echo "$ac_t""no" 1>&6
9377 fi
9378 done
9379     
9380   else
9381     
9382   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
9383 echo "configure:9384: checking for _isnanf declaration" >&5
9384   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
9385     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
9386   echo $ac_n "(cached) $ac_c" 1>&6
9387 else
9388   
9389       
9390       ac_ext=C
9391 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9392 ac_cpp='$CXXCPP $CPPFLAGS'
9393 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9394 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9395 cross_compiling=$ac_cv_prog_cxx_cross
9396
9397       cat > conftest.$ac_ext <<EOF
9398 #line 9399 "configure"
9399 #include "confdefs.h"
9400 #include <math.h>
9401                       #ifdef HAVE_IEEEFP_H
9402                       #include <ieeefp.h>
9403                       #endif
9404                      
9405 int main() {
9406  _isnanf(0);
9407 ; return 0; }
9408 EOF
9409 if { (eval echo configure:9410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9410   rm -rf conftest*
9411   glibcpp_cv_func__isnanf_use=yes
9412 else
9413   echo "configure: failed program was:" >&5
9414   cat conftest.$ac_ext >&5
9415   rm -rf conftest*
9416   glibcpp_cv_func__isnanf_use=no
9417 fi
9418 rm -f conftest*
9419       ac_ext=c
9420 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9421 ac_cpp='$CPP $CPPFLAGS'
9422 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9423 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9424 cross_compiling=$ac_cv_prog_cc_cross
9425
9426     
9427 fi
9428
9429   fi
9430   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
9431
9432     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
9433       for ac_func in _isnanf
9434 do
9435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9436 echo "configure:9437: checking for $ac_func" >&5
9437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9438   echo $ac_n "(cached) $ac_c" 1>&6
9439 else
9440   cat > conftest.$ac_ext <<EOF
9441 #line 9442 "configure"
9442 #include "confdefs.h"
9443 /* System header to define __stub macros and hopefully few prototypes,
9444     which can conflict with char $ac_func(); below.  */
9445 #include <assert.h>
9446 /* Override any gcc2 internal prototype to avoid an error.  */
9447 /* We use char because int might match the return type of a gcc2
9448     builtin and then its argument prototype would still apply.  */
9449 char $ac_func();
9450
9451 int main() {
9452
9453 /* The GNU C library defines this for functions which it implements
9454     to always fail with ENOSYS.  Some functions are actually named
9455     something starting with __ and the normal name is an alias.  */
9456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9457 choke me
9458 #else
9459 $ac_func();
9460 #endif
9461
9462 ; return 0; }
9463 EOF
9464 if { (eval echo configure:9465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9465   rm -rf conftest*
9466   eval "ac_cv_func_$ac_func=yes"
9467 else
9468   echo "configure: failed program was:" >&5
9469   cat conftest.$ac_ext >&5
9470   rm -rf conftest*
9471   eval "ac_cv_func_$ac_func=no"
9472 fi
9473 rm -f conftest*
9474 fi
9475
9476 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9477   echo "$ac_t""yes" 1>&6
9478     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9479   cat >> confdefs.h <<EOF
9480 #define $ac_tr_func 1
9481 EOF
9482  
9483 else
9484   echo "$ac_t""no" 1>&6
9485 fi
9486 done
9487     
9488     fi
9489   fi
9490
9491   
9492   
9493   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
9494 echo "configure:9495: checking for isinff declaration" >&5
9495   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
9496     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
9497   echo $ac_n "(cached) $ac_c" 1>&6
9498 else
9499   
9500       
9501       ac_ext=C
9502 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9503 ac_cpp='$CXXCPP $CPPFLAGS'
9504 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9505 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9506 cross_compiling=$ac_cv_prog_cxx_cross
9507
9508       cat > conftest.$ac_ext <<EOF
9509 #line 9510 "configure"
9510 #include "confdefs.h"
9511 #include <math.h>
9512                       #ifdef HAVE_IEEEFP_H
9513                       #include <ieeefp.h>
9514                       #endif
9515                      
9516 int main() {
9517  isinff(0);
9518 ; return 0; }
9519 EOF
9520 if { (eval echo configure:9521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9521   rm -rf conftest*
9522   glibcpp_cv_func_isinff_use=yes
9523 else
9524   echo "configure: failed program was:" >&5
9525   cat conftest.$ac_ext >&5
9526   rm -rf conftest*
9527   glibcpp_cv_func_isinff_use=no
9528 fi
9529 rm -f conftest*
9530       ac_ext=c
9531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9532 ac_cpp='$CPP $CPPFLAGS'
9533 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9534 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9535 cross_compiling=$ac_cv_prog_cc_cross
9536
9537     
9538 fi
9539
9540   fi
9541   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
9542
9543   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
9544     for ac_func in isinff
9545 do
9546 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9547 echo "configure:9548: checking for $ac_func" >&5
9548 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9549   echo $ac_n "(cached) $ac_c" 1>&6
9550 else
9551   cat > conftest.$ac_ext <<EOF
9552 #line 9553 "configure"
9553 #include "confdefs.h"
9554 /* System header to define __stub macros and hopefully few prototypes,
9555     which can conflict with char $ac_func(); below.  */
9556 #include <assert.h>
9557 /* Override any gcc2 internal prototype to avoid an error.  */
9558 /* We use char because int might match the return type of a gcc2
9559     builtin and then its argument prototype would still apply.  */
9560 char $ac_func();
9561
9562 int main() {
9563
9564 /* The GNU C library defines this for functions which it implements
9565     to always fail with ENOSYS.  Some functions are actually named
9566     something starting with __ and the normal name is an alias.  */
9567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9568 choke me
9569 #else
9570 $ac_func();
9571 #endif
9572
9573 ; return 0; }
9574 EOF
9575 if { (eval echo configure:9576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9576   rm -rf conftest*
9577   eval "ac_cv_func_$ac_func=yes"
9578 else
9579   echo "configure: failed program was:" >&5
9580   cat conftest.$ac_ext >&5
9581   rm -rf conftest*
9582   eval "ac_cv_func_$ac_func=no"
9583 fi
9584 rm -f conftest*
9585 fi
9586
9587 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9588   echo "$ac_t""yes" 1>&6
9589     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9590   cat >> confdefs.h <<EOF
9591 #define $ac_tr_func 1
9592 EOF
9593  
9594 else
9595   echo "$ac_t""no" 1>&6
9596 fi
9597 done
9598     
9599   else
9600     
9601   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
9602 echo "configure:9603: checking for _isinff declaration" >&5
9603   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
9604     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
9605   echo $ac_n "(cached) $ac_c" 1>&6
9606 else
9607   
9608       
9609       ac_ext=C
9610 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9611 ac_cpp='$CXXCPP $CPPFLAGS'
9612 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9613 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9614 cross_compiling=$ac_cv_prog_cxx_cross
9615
9616       cat > conftest.$ac_ext <<EOF
9617 #line 9618 "configure"
9618 #include "confdefs.h"
9619 #include <math.h>
9620                       #ifdef HAVE_IEEEFP_H
9621                       #include <ieeefp.h>
9622                       #endif
9623                      
9624 int main() {
9625  _isinff(0);
9626 ; return 0; }
9627 EOF
9628 if { (eval echo configure:9629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9629   rm -rf conftest*
9630   glibcpp_cv_func__isinff_use=yes
9631 else
9632   echo "configure: failed program was:" >&5
9633   cat conftest.$ac_ext >&5
9634   rm -rf conftest*
9635   glibcpp_cv_func__isinff_use=no
9636 fi
9637 rm -f conftest*
9638       ac_ext=c
9639 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9640 ac_cpp='$CPP $CPPFLAGS'
9641 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9642 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9643 cross_compiling=$ac_cv_prog_cc_cross
9644
9645     
9646 fi
9647
9648   fi
9649   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
9650
9651     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
9652       for ac_func in _isinff
9653 do
9654 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9655 echo "configure:9656: checking for $ac_func" >&5
9656 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9657   echo $ac_n "(cached) $ac_c" 1>&6
9658 else
9659   cat > conftest.$ac_ext <<EOF
9660 #line 9661 "configure"
9661 #include "confdefs.h"
9662 /* System header to define __stub macros and hopefully few prototypes,
9663     which can conflict with char $ac_func(); below.  */
9664 #include <assert.h>
9665 /* Override any gcc2 internal prototype to avoid an error.  */
9666 /* We use char because int might match the return type of a gcc2
9667     builtin and then its argument prototype would still apply.  */
9668 char $ac_func();
9669
9670 int main() {
9671
9672 /* The GNU C library defines this for functions which it implements
9673     to always fail with ENOSYS.  Some functions are actually named
9674     something starting with __ and the normal name is an alias.  */
9675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9676 choke me
9677 #else
9678 $ac_func();
9679 #endif
9680
9681 ; return 0; }
9682 EOF
9683 if { (eval echo configure:9684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9684   rm -rf conftest*
9685   eval "ac_cv_func_$ac_func=yes"
9686 else
9687   echo "configure: failed program was:" >&5
9688   cat conftest.$ac_ext >&5
9689   rm -rf conftest*
9690   eval "ac_cv_func_$ac_func=no"
9691 fi
9692 rm -f conftest*
9693 fi
9694
9695 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9696   echo "$ac_t""yes" 1>&6
9697     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9698   cat >> confdefs.h <<EOF
9699 #define $ac_tr_func 1
9700 EOF
9701  
9702 else
9703   echo "$ac_t""no" 1>&6
9704 fi
9705 done
9706     
9707     fi
9708   fi
9709
9710   
9711   
9712   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
9713 echo "configure:9714: checking for atan2f declaration" >&5
9714   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
9715     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
9716   echo $ac_n "(cached) $ac_c" 1>&6
9717 else
9718   
9719       
9720       ac_ext=C
9721 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9722 ac_cpp='$CXXCPP $CPPFLAGS'
9723 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9724 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9725 cross_compiling=$ac_cv_prog_cxx_cross
9726
9727       cat > conftest.$ac_ext <<EOF
9728 #line 9729 "configure"
9729 #include "confdefs.h"
9730 #include <math.h>
9731 int main() {
9732  atan2f(0, 0);
9733 ; return 0; }
9734 EOF
9735 if { (eval echo configure:9736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9736   rm -rf conftest*
9737   glibcpp_cv_func_atan2f_use=yes
9738 else
9739   echo "configure: failed program was:" >&5
9740   cat conftest.$ac_ext >&5
9741   rm -rf conftest*
9742   glibcpp_cv_func_atan2f_use=no
9743 fi
9744 rm -f conftest*
9745       ac_ext=c
9746 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9747 ac_cpp='$CPP $CPPFLAGS'
9748 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9749 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9750 cross_compiling=$ac_cv_prog_cc_cross
9751
9752     
9753 fi
9754
9755   fi
9756   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
9757
9758   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
9759     for ac_func in atan2f
9760 do
9761 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9762 echo "configure:9763: checking for $ac_func" >&5
9763 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9764   echo $ac_n "(cached) $ac_c" 1>&6
9765 else
9766   cat > conftest.$ac_ext <<EOF
9767 #line 9768 "configure"
9768 #include "confdefs.h"
9769 /* System header to define __stub macros and hopefully few prototypes,
9770     which can conflict with char $ac_func(); below.  */
9771 #include <assert.h>
9772 /* Override any gcc2 internal prototype to avoid an error.  */
9773 /* We use char because int might match the return type of a gcc2
9774     builtin and then its argument prototype would still apply.  */
9775 char $ac_func();
9776
9777 int main() {
9778
9779 /* The GNU C library defines this for functions which it implements
9780     to always fail with ENOSYS.  Some functions are actually named
9781     something starting with __ and the normal name is an alias.  */
9782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9783 choke me
9784 #else
9785 $ac_func();
9786 #endif
9787
9788 ; return 0; }
9789 EOF
9790 if { (eval echo configure:9791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9791   rm -rf conftest*
9792   eval "ac_cv_func_$ac_func=yes"
9793 else
9794   echo "configure: failed program was:" >&5
9795   cat conftest.$ac_ext >&5
9796   rm -rf conftest*
9797   eval "ac_cv_func_$ac_func=no"
9798 fi
9799 rm -f conftest*
9800 fi
9801
9802 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9803   echo "$ac_t""yes" 1>&6
9804     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9805   cat >> confdefs.h <<EOF
9806 #define $ac_tr_func 1
9807 EOF
9808  
9809 else
9810   echo "$ac_t""no" 1>&6
9811 fi
9812 done
9813     
9814   else
9815     
9816   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
9817 echo "configure:9818: checking for _atan2f declaration" >&5
9818   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
9819     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
9820   echo $ac_n "(cached) $ac_c" 1>&6
9821 else
9822   
9823       
9824       ac_ext=C
9825 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9826 ac_cpp='$CXXCPP $CPPFLAGS'
9827 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9828 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9829 cross_compiling=$ac_cv_prog_cxx_cross
9830
9831       cat > conftest.$ac_ext <<EOF
9832 #line 9833 "configure"
9833 #include "confdefs.h"
9834 #include <math.h>
9835 int main() {
9836  _atan2f(0, 0);
9837 ; return 0; }
9838 EOF
9839 if { (eval echo configure:9840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9840   rm -rf conftest*
9841   glibcpp_cv_func__atan2f_use=yes
9842 else
9843   echo "configure: failed program was:" >&5
9844   cat conftest.$ac_ext >&5
9845   rm -rf conftest*
9846   glibcpp_cv_func__atan2f_use=no
9847 fi
9848 rm -f conftest*
9849       ac_ext=c
9850 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9851 ac_cpp='$CPP $CPPFLAGS'
9852 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9853 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9854 cross_compiling=$ac_cv_prog_cc_cross
9855
9856     
9857 fi
9858
9859   fi
9860   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
9861
9862     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
9863       for ac_func in _atan2f
9864 do
9865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9866 echo "configure:9867: checking for $ac_func" >&5
9867 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9868   echo $ac_n "(cached) $ac_c" 1>&6
9869 else
9870   cat > conftest.$ac_ext <<EOF
9871 #line 9872 "configure"
9872 #include "confdefs.h"
9873 /* System header to define __stub macros and hopefully few prototypes,
9874     which can conflict with char $ac_func(); below.  */
9875 #include <assert.h>
9876 /* Override any gcc2 internal prototype to avoid an error.  */
9877 /* We use char because int might match the return type of a gcc2
9878     builtin and then its argument prototype would still apply.  */
9879 char $ac_func();
9880
9881 int main() {
9882
9883 /* The GNU C library defines this for functions which it implements
9884     to always fail with ENOSYS.  Some functions are actually named
9885     something starting with __ and the normal name is an alias.  */
9886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9887 choke me
9888 #else
9889 $ac_func();
9890 #endif
9891
9892 ; return 0; }
9893 EOF
9894 if { (eval echo configure:9895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9895   rm -rf conftest*
9896   eval "ac_cv_func_$ac_func=yes"
9897 else
9898   echo "configure: failed program was:" >&5
9899   cat conftest.$ac_ext >&5
9900   rm -rf conftest*
9901   eval "ac_cv_func_$ac_func=no"
9902 fi
9903 rm -f conftest*
9904 fi
9905
9906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9907   echo "$ac_t""yes" 1>&6
9908     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9909   cat >> confdefs.h <<EOF
9910 #define $ac_tr_func 1
9911 EOF
9912  
9913 else
9914   echo "$ac_t""no" 1>&6
9915 fi
9916 done
9917     
9918     fi
9919   fi
9920
9921   
9922   
9923   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
9924 echo "configure:9925: checking for fabsf declaration" >&5
9925   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
9926     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
9927   echo $ac_n "(cached) $ac_c" 1>&6
9928 else
9929   
9930       
9931       ac_ext=C
9932 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9933 ac_cpp='$CXXCPP $CPPFLAGS'
9934 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9935 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9936 cross_compiling=$ac_cv_prog_cxx_cross
9937
9938       cat > conftest.$ac_ext <<EOF
9939 #line 9940 "configure"
9940 #include "confdefs.h"
9941 #include <math.h>
9942                       #ifdef HAVE_IEEEFP_H
9943                       #include <ieeefp.h>
9944                       #endif
9945                      
9946 int main() {
9947  fabsf(0);
9948 ; return 0; }
9949 EOF
9950 if { (eval echo configure:9951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9951   rm -rf conftest*
9952   glibcpp_cv_func_fabsf_use=yes
9953 else
9954   echo "configure: failed program was:" >&5
9955   cat conftest.$ac_ext >&5
9956   rm -rf conftest*
9957   glibcpp_cv_func_fabsf_use=no
9958 fi
9959 rm -f conftest*
9960       ac_ext=c
9961 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9962 ac_cpp='$CPP $CPPFLAGS'
9963 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9964 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9965 cross_compiling=$ac_cv_prog_cc_cross
9966
9967     
9968 fi
9969
9970   fi
9971   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
9972
9973   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
9974     for ac_func in fabsf
9975 do
9976 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9977 echo "configure:9978: checking for $ac_func" >&5
9978 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9979   echo $ac_n "(cached) $ac_c" 1>&6
9980 else
9981   cat > conftest.$ac_ext <<EOF
9982 #line 9983 "configure"
9983 #include "confdefs.h"
9984 /* System header to define __stub macros and hopefully few prototypes,
9985     which can conflict with char $ac_func(); below.  */
9986 #include <assert.h>
9987 /* Override any gcc2 internal prototype to avoid an error.  */
9988 /* We use char because int might match the return type of a gcc2
9989     builtin and then its argument prototype would still apply.  */
9990 char $ac_func();
9991
9992 int main() {
9993
9994 /* The GNU C library defines this for functions which it implements
9995     to always fail with ENOSYS.  Some functions are actually named
9996     something starting with __ and the normal name is an alias.  */
9997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9998 choke me
9999 #else
10000 $ac_func();
10001 #endif
10002
10003 ; return 0; }
10004 EOF
10005 if { (eval echo configure:10006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10006   rm -rf conftest*
10007   eval "ac_cv_func_$ac_func=yes"
10008 else
10009   echo "configure: failed program was:" >&5
10010   cat conftest.$ac_ext >&5
10011   rm -rf conftest*
10012   eval "ac_cv_func_$ac_func=no"
10013 fi
10014 rm -f conftest*
10015 fi
10016
10017 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10018   echo "$ac_t""yes" 1>&6
10019     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10020   cat >> confdefs.h <<EOF
10021 #define $ac_tr_func 1
10022 EOF
10023  
10024 else
10025   echo "$ac_t""no" 1>&6
10026 fi
10027 done
10028     
10029   else
10030     
10031   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
10032 echo "configure:10033: checking for _fabsf declaration" >&5
10033   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
10034     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
10035   echo $ac_n "(cached) $ac_c" 1>&6
10036 else
10037   
10038       
10039       ac_ext=C
10040 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10041 ac_cpp='$CXXCPP $CPPFLAGS'
10042 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10043 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10044 cross_compiling=$ac_cv_prog_cxx_cross
10045
10046       cat > conftest.$ac_ext <<EOF
10047 #line 10048 "configure"
10048 #include "confdefs.h"
10049 #include <math.h>
10050                       #ifdef HAVE_IEEEFP_H
10051                       #include <ieeefp.h>
10052                       #endif
10053                      
10054 int main() {
10055  _fabsf(0);
10056 ; return 0; }
10057 EOF
10058 if { (eval echo configure:10059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10059   rm -rf conftest*
10060   glibcpp_cv_func__fabsf_use=yes
10061 else
10062   echo "configure: failed program was:" >&5
10063   cat conftest.$ac_ext >&5
10064   rm -rf conftest*
10065   glibcpp_cv_func__fabsf_use=no
10066 fi
10067 rm -f conftest*
10068       ac_ext=c
10069 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10070 ac_cpp='$CPP $CPPFLAGS'
10071 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10072 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10073 cross_compiling=$ac_cv_prog_cc_cross
10074
10075     
10076 fi
10077
10078   fi
10079   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
10080
10081     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
10082       for ac_func in _fabsf
10083 do
10084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10085 echo "configure:10086: checking for $ac_func" >&5
10086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10087   echo $ac_n "(cached) $ac_c" 1>&6
10088 else
10089   cat > conftest.$ac_ext <<EOF
10090 #line 10091 "configure"
10091 #include "confdefs.h"
10092 /* System header to define __stub macros and hopefully few prototypes,
10093     which can conflict with char $ac_func(); below.  */
10094 #include <assert.h>
10095 /* Override any gcc2 internal prototype to avoid an error.  */
10096 /* We use char because int might match the return type of a gcc2
10097     builtin and then its argument prototype would still apply.  */
10098 char $ac_func();
10099
10100 int main() {
10101
10102 /* The GNU C library defines this for functions which it implements
10103     to always fail with ENOSYS.  Some functions are actually named
10104     something starting with __ and the normal name is an alias.  */
10105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10106 choke me
10107 #else
10108 $ac_func();
10109 #endif
10110
10111 ; return 0; }
10112 EOF
10113 if { (eval echo configure:10114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10114   rm -rf conftest*
10115   eval "ac_cv_func_$ac_func=yes"
10116 else
10117   echo "configure: failed program was:" >&5
10118   cat conftest.$ac_ext >&5
10119   rm -rf conftest*
10120   eval "ac_cv_func_$ac_func=no"
10121 fi
10122 rm -f conftest*
10123 fi
10124
10125 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10126   echo "$ac_t""yes" 1>&6
10127     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10128   cat >> confdefs.h <<EOF
10129 #define $ac_tr_func 1
10130 EOF
10131  
10132 else
10133   echo "$ac_t""no" 1>&6
10134 fi
10135 done
10136     
10137     fi
10138   fi
10139
10140   
10141   
10142   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
10143 echo "configure:10144: checking for fmodf declaration" >&5
10144   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
10145     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
10146   echo $ac_n "(cached) $ac_c" 1>&6
10147 else
10148   
10149       
10150       ac_ext=C
10151 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10152 ac_cpp='$CXXCPP $CPPFLAGS'
10153 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10154 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10155 cross_compiling=$ac_cv_prog_cxx_cross
10156
10157       cat > conftest.$ac_ext <<EOF
10158 #line 10159 "configure"
10159 #include "confdefs.h"
10160 #include <math.h>
10161 int main() {
10162  fmodf(0, 0);
10163 ; return 0; }
10164 EOF
10165 if { (eval echo configure:10166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10166   rm -rf conftest*
10167   glibcpp_cv_func_fmodf_use=yes
10168 else
10169   echo "configure: failed program was:" >&5
10170   cat conftest.$ac_ext >&5
10171   rm -rf conftest*
10172   glibcpp_cv_func_fmodf_use=no
10173 fi
10174 rm -f conftest*
10175       ac_ext=c
10176 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10177 ac_cpp='$CPP $CPPFLAGS'
10178 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10179 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10180 cross_compiling=$ac_cv_prog_cc_cross
10181
10182     
10183 fi
10184
10185   fi
10186   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
10187
10188   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
10189     for ac_func in fmodf
10190 do
10191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10192 echo "configure:10193: checking for $ac_func" >&5
10193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10194   echo $ac_n "(cached) $ac_c" 1>&6
10195 else
10196   cat > conftest.$ac_ext <<EOF
10197 #line 10198 "configure"
10198 #include "confdefs.h"
10199 /* System header to define __stub macros and hopefully few prototypes,
10200     which can conflict with char $ac_func(); below.  */
10201 #include <assert.h>
10202 /* Override any gcc2 internal prototype to avoid an error.  */
10203 /* We use char because int might match the return type of a gcc2
10204     builtin and then its argument prototype would still apply.  */
10205 char $ac_func();
10206
10207 int main() {
10208
10209 /* The GNU C library defines this for functions which it implements
10210     to always fail with ENOSYS.  Some functions are actually named
10211     something starting with __ and the normal name is an alias.  */
10212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10213 choke me
10214 #else
10215 $ac_func();
10216 #endif
10217
10218 ; return 0; }
10219 EOF
10220 if { (eval echo configure:10221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10221   rm -rf conftest*
10222   eval "ac_cv_func_$ac_func=yes"
10223 else
10224   echo "configure: failed program was:" >&5
10225   cat conftest.$ac_ext >&5
10226   rm -rf conftest*
10227   eval "ac_cv_func_$ac_func=no"
10228 fi
10229 rm -f conftest*
10230 fi
10231
10232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10233   echo "$ac_t""yes" 1>&6
10234     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10235   cat >> confdefs.h <<EOF
10236 #define $ac_tr_func 1
10237 EOF
10238  
10239 else
10240   echo "$ac_t""no" 1>&6
10241 fi
10242 done
10243     
10244   else
10245     
10246   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
10247 echo "configure:10248: checking for _fmodf declaration" >&5
10248   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
10249     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
10250   echo $ac_n "(cached) $ac_c" 1>&6
10251 else
10252   
10253       
10254       ac_ext=C
10255 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10256 ac_cpp='$CXXCPP $CPPFLAGS'
10257 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10258 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10259 cross_compiling=$ac_cv_prog_cxx_cross
10260
10261       cat > conftest.$ac_ext <<EOF
10262 #line 10263 "configure"
10263 #include "confdefs.h"
10264 #include <math.h>
10265 int main() {
10266  _fmodf(0, 0);
10267 ; return 0; }
10268 EOF
10269 if { (eval echo configure:10270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10270   rm -rf conftest*
10271   glibcpp_cv_func__fmodf_use=yes
10272 else
10273   echo "configure: failed program was:" >&5
10274   cat conftest.$ac_ext >&5
10275   rm -rf conftest*
10276   glibcpp_cv_func__fmodf_use=no
10277 fi
10278 rm -f conftest*
10279       ac_ext=c
10280 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10281 ac_cpp='$CPP $CPPFLAGS'
10282 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10283 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10284 cross_compiling=$ac_cv_prog_cc_cross
10285
10286     
10287 fi
10288
10289   fi
10290   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
10291
10292     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
10293       for ac_func in _fmodf
10294 do
10295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10296 echo "configure:10297: checking for $ac_func" >&5
10297 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10298   echo $ac_n "(cached) $ac_c" 1>&6
10299 else
10300   cat > conftest.$ac_ext <<EOF
10301 #line 10302 "configure"
10302 #include "confdefs.h"
10303 /* System header to define __stub macros and hopefully few prototypes,
10304     which can conflict with char $ac_func(); below.  */
10305 #include <assert.h>
10306 /* Override any gcc2 internal prototype to avoid an error.  */
10307 /* We use char because int might match the return type of a gcc2
10308     builtin and then its argument prototype would still apply.  */
10309 char $ac_func();
10310
10311 int main() {
10312
10313 /* The GNU C library defines this for functions which it implements
10314     to always fail with ENOSYS.  Some functions are actually named
10315     something starting with __ and the normal name is an alias.  */
10316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10317 choke me
10318 #else
10319 $ac_func();
10320 #endif
10321
10322 ; return 0; }
10323 EOF
10324 if { (eval echo configure:10325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10325   rm -rf conftest*
10326   eval "ac_cv_func_$ac_func=yes"
10327 else
10328   echo "configure: failed program was:" >&5
10329   cat conftest.$ac_ext >&5
10330   rm -rf conftest*
10331   eval "ac_cv_func_$ac_func=no"
10332 fi
10333 rm -f conftest*
10334 fi
10335
10336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10337   echo "$ac_t""yes" 1>&6
10338     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10339   cat >> confdefs.h <<EOF
10340 #define $ac_tr_func 1
10341 EOF
10342  
10343 else
10344   echo "$ac_t""no" 1>&6
10345 fi
10346 done
10347     
10348     fi
10349   fi
10350
10351   
10352   
10353   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
10354 echo "configure:10355: checking for frexpf declaration" >&5
10355   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
10356     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
10357   echo $ac_n "(cached) $ac_c" 1>&6
10358 else
10359   
10360       
10361       ac_ext=C
10362 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10363 ac_cpp='$CXXCPP $CPPFLAGS'
10364 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10365 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10366 cross_compiling=$ac_cv_prog_cxx_cross
10367
10368       cat > conftest.$ac_ext <<EOF
10369 #line 10370 "configure"
10370 #include "confdefs.h"
10371 #include <math.h>
10372 int main() {
10373  frexpf(0, 0);
10374 ; return 0; }
10375 EOF
10376 if { (eval echo configure:10377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10377   rm -rf conftest*
10378   glibcpp_cv_func_frexpf_use=yes
10379 else
10380   echo "configure: failed program was:" >&5
10381   cat conftest.$ac_ext >&5
10382   rm -rf conftest*
10383   glibcpp_cv_func_frexpf_use=no
10384 fi
10385 rm -f conftest*
10386       ac_ext=c
10387 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10388 ac_cpp='$CPP $CPPFLAGS'
10389 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10390 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10391 cross_compiling=$ac_cv_prog_cc_cross
10392
10393     
10394 fi
10395
10396   fi
10397   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
10398
10399   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
10400     for ac_func in frexpf
10401 do
10402 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10403 echo "configure:10404: checking for $ac_func" >&5
10404 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10405   echo $ac_n "(cached) $ac_c" 1>&6
10406 else
10407   cat > conftest.$ac_ext <<EOF
10408 #line 10409 "configure"
10409 #include "confdefs.h"
10410 /* System header to define __stub macros and hopefully few prototypes,
10411     which can conflict with char $ac_func(); below.  */
10412 #include <assert.h>
10413 /* Override any gcc2 internal prototype to avoid an error.  */
10414 /* We use char because int might match the return type of a gcc2
10415     builtin and then its argument prototype would still apply.  */
10416 char $ac_func();
10417
10418 int main() {
10419
10420 /* The GNU C library defines this for functions which it implements
10421     to always fail with ENOSYS.  Some functions are actually named
10422     something starting with __ and the normal name is an alias.  */
10423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10424 choke me
10425 #else
10426 $ac_func();
10427 #endif
10428
10429 ; return 0; }
10430 EOF
10431 if { (eval echo configure:10432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10432   rm -rf conftest*
10433   eval "ac_cv_func_$ac_func=yes"
10434 else
10435   echo "configure: failed program was:" >&5
10436   cat conftest.$ac_ext >&5
10437   rm -rf conftest*
10438   eval "ac_cv_func_$ac_func=no"
10439 fi
10440 rm -f conftest*
10441 fi
10442
10443 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10444   echo "$ac_t""yes" 1>&6
10445     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10446   cat >> confdefs.h <<EOF
10447 #define $ac_tr_func 1
10448 EOF
10449  
10450 else
10451   echo "$ac_t""no" 1>&6
10452 fi
10453 done
10454     
10455   else
10456     
10457   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
10458 echo "configure:10459: checking for _frexpf declaration" >&5
10459   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
10460     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
10461   echo $ac_n "(cached) $ac_c" 1>&6
10462 else
10463   
10464       
10465       ac_ext=C
10466 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10467 ac_cpp='$CXXCPP $CPPFLAGS'
10468 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10469 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10470 cross_compiling=$ac_cv_prog_cxx_cross
10471
10472       cat > conftest.$ac_ext <<EOF
10473 #line 10474 "configure"
10474 #include "confdefs.h"
10475 #include <math.h>
10476 int main() {
10477  _frexpf(0, 0);
10478 ; return 0; }
10479 EOF
10480 if { (eval echo configure:10481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10481   rm -rf conftest*
10482   glibcpp_cv_func__frexpf_use=yes
10483 else
10484   echo "configure: failed program was:" >&5
10485   cat conftest.$ac_ext >&5
10486   rm -rf conftest*
10487   glibcpp_cv_func__frexpf_use=no
10488 fi
10489 rm -f conftest*
10490       ac_ext=c
10491 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10492 ac_cpp='$CPP $CPPFLAGS'
10493 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10494 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10495 cross_compiling=$ac_cv_prog_cc_cross
10496
10497     
10498 fi
10499
10500   fi
10501   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
10502
10503     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
10504       for ac_func in _frexpf
10505 do
10506 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10507 echo "configure:10508: checking for $ac_func" >&5
10508 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10509   echo $ac_n "(cached) $ac_c" 1>&6
10510 else
10511   cat > conftest.$ac_ext <<EOF
10512 #line 10513 "configure"
10513 #include "confdefs.h"
10514 /* System header to define __stub macros and hopefully few prototypes,
10515     which can conflict with char $ac_func(); below.  */
10516 #include <assert.h>
10517 /* Override any gcc2 internal prototype to avoid an error.  */
10518 /* We use char because int might match the return type of a gcc2
10519     builtin and then its argument prototype would still apply.  */
10520 char $ac_func();
10521
10522 int main() {
10523
10524 /* The GNU C library defines this for functions which it implements
10525     to always fail with ENOSYS.  Some functions are actually named
10526     something starting with __ and the normal name is an alias.  */
10527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10528 choke me
10529 #else
10530 $ac_func();
10531 #endif
10532
10533 ; return 0; }
10534 EOF
10535 if { (eval echo configure:10536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10536   rm -rf conftest*
10537   eval "ac_cv_func_$ac_func=yes"
10538 else
10539   echo "configure: failed program was:" >&5
10540   cat conftest.$ac_ext >&5
10541   rm -rf conftest*
10542   eval "ac_cv_func_$ac_func=no"
10543 fi
10544 rm -f conftest*
10545 fi
10546
10547 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10548   echo "$ac_t""yes" 1>&6
10549     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10550   cat >> confdefs.h <<EOF
10551 #define $ac_tr_func 1
10552 EOF
10553  
10554 else
10555   echo "$ac_t""no" 1>&6
10556 fi
10557 done
10558     
10559     fi
10560   fi
10561
10562   
10563   
10564   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
10565 echo "configure:10566: checking for hypotf declaration" >&5
10566   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
10567     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
10568   echo $ac_n "(cached) $ac_c" 1>&6
10569 else
10570   
10571       
10572       ac_ext=C
10573 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10574 ac_cpp='$CXXCPP $CPPFLAGS'
10575 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10576 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10577 cross_compiling=$ac_cv_prog_cxx_cross
10578
10579       cat > conftest.$ac_ext <<EOF
10580 #line 10581 "configure"
10581 #include "confdefs.h"
10582 #include <math.h>
10583 int main() {
10584  hypotf(0, 0);
10585 ; return 0; }
10586 EOF
10587 if { (eval echo configure:10588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10588   rm -rf conftest*
10589   glibcpp_cv_func_hypotf_use=yes
10590 else
10591   echo "configure: failed program was:" >&5
10592   cat conftest.$ac_ext >&5
10593   rm -rf conftest*
10594   glibcpp_cv_func_hypotf_use=no
10595 fi
10596 rm -f conftest*
10597       ac_ext=c
10598 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10599 ac_cpp='$CPP $CPPFLAGS'
10600 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10601 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10602 cross_compiling=$ac_cv_prog_cc_cross
10603
10604     
10605 fi
10606
10607   fi
10608   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
10609
10610   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
10611     for ac_func in hypotf
10612 do
10613 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10614 echo "configure:10615: checking for $ac_func" >&5
10615 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10616   echo $ac_n "(cached) $ac_c" 1>&6
10617 else
10618   cat > conftest.$ac_ext <<EOF
10619 #line 10620 "configure"
10620 #include "confdefs.h"
10621 /* System header to define __stub macros and hopefully few prototypes,
10622     which can conflict with char $ac_func(); below.  */
10623 #include <assert.h>
10624 /* Override any gcc2 internal prototype to avoid an error.  */
10625 /* We use char because int might match the return type of a gcc2
10626     builtin and then its argument prototype would still apply.  */
10627 char $ac_func();
10628
10629 int main() {
10630
10631 /* The GNU C library defines this for functions which it implements
10632     to always fail with ENOSYS.  Some functions are actually named
10633     something starting with __ and the normal name is an alias.  */
10634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10635 choke me
10636 #else
10637 $ac_func();
10638 #endif
10639
10640 ; return 0; }
10641 EOF
10642 if { (eval echo configure:10643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10643   rm -rf conftest*
10644   eval "ac_cv_func_$ac_func=yes"
10645 else
10646   echo "configure: failed program was:" >&5
10647   cat conftest.$ac_ext >&5
10648   rm -rf conftest*
10649   eval "ac_cv_func_$ac_func=no"
10650 fi
10651 rm -f conftest*
10652 fi
10653
10654 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10655   echo "$ac_t""yes" 1>&6
10656     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10657   cat >> confdefs.h <<EOF
10658 #define $ac_tr_func 1
10659 EOF
10660  
10661 else
10662   echo "$ac_t""no" 1>&6
10663 fi
10664 done
10665     
10666   else
10667     
10668   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
10669 echo "configure:10670: checking for _hypotf declaration" >&5
10670   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
10671     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
10672   echo $ac_n "(cached) $ac_c" 1>&6
10673 else
10674   
10675       
10676       ac_ext=C
10677 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10678 ac_cpp='$CXXCPP $CPPFLAGS'
10679 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10680 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10681 cross_compiling=$ac_cv_prog_cxx_cross
10682
10683       cat > conftest.$ac_ext <<EOF
10684 #line 10685 "configure"
10685 #include "confdefs.h"
10686 #include <math.h>
10687 int main() {
10688  _hypotf(0, 0);
10689 ; return 0; }
10690 EOF
10691 if { (eval echo configure:10692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10692   rm -rf conftest*
10693   glibcpp_cv_func__hypotf_use=yes
10694 else
10695   echo "configure: failed program was:" >&5
10696   cat conftest.$ac_ext >&5
10697   rm -rf conftest*
10698   glibcpp_cv_func__hypotf_use=no
10699 fi
10700 rm -f conftest*
10701       ac_ext=c
10702 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10703 ac_cpp='$CPP $CPPFLAGS'
10704 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10705 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10706 cross_compiling=$ac_cv_prog_cc_cross
10707
10708     
10709 fi
10710
10711   fi
10712   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
10713
10714     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
10715       for ac_func in _hypotf
10716 do
10717 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10718 echo "configure:10719: checking for $ac_func" >&5
10719 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10720   echo $ac_n "(cached) $ac_c" 1>&6
10721 else
10722   cat > conftest.$ac_ext <<EOF
10723 #line 10724 "configure"
10724 #include "confdefs.h"
10725 /* System header to define __stub macros and hopefully few prototypes,
10726     which can conflict with char $ac_func(); below.  */
10727 #include <assert.h>
10728 /* Override any gcc2 internal prototype to avoid an error.  */
10729 /* We use char because int might match the return type of a gcc2
10730     builtin and then its argument prototype would still apply.  */
10731 char $ac_func();
10732
10733 int main() {
10734
10735 /* The GNU C library defines this for functions which it implements
10736     to always fail with ENOSYS.  Some functions are actually named
10737     something starting with __ and the normal name is an alias.  */
10738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10739 choke me
10740 #else
10741 $ac_func();
10742 #endif
10743
10744 ; return 0; }
10745 EOF
10746 if { (eval echo configure:10747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10747   rm -rf conftest*
10748   eval "ac_cv_func_$ac_func=yes"
10749 else
10750   echo "configure: failed program was:" >&5
10751   cat conftest.$ac_ext >&5
10752   rm -rf conftest*
10753   eval "ac_cv_func_$ac_func=no"
10754 fi
10755 rm -f conftest*
10756 fi
10757
10758 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10759   echo "$ac_t""yes" 1>&6
10760     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10761   cat >> confdefs.h <<EOF
10762 #define $ac_tr_func 1
10763 EOF
10764  
10765 else
10766   echo "$ac_t""no" 1>&6
10767 fi
10768 done
10769     
10770     fi
10771   fi
10772
10773   
10774   
10775   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
10776 echo "configure:10777: checking for ldexpf declaration" >&5
10777   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
10778     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
10779   echo $ac_n "(cached) $ac_c" 1>&6
10780 else
10781   
10782       
10783       ac_ext=C
10784 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10785 ac_cpp='$CXXCPP $CPPFLAGS'
10786 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10787 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10788 cross_compiling=$ac_cv_prog_cxx_cross
10789
10790       cat > conftest.$ac_ext <<EOF
10791 #line 10792 "configure"
10792 #include "confdefs.h"
10793 #include <math.h>
10794 int main() {
10795  ldexpf(0, 0);
10796 ; return 0; }
10797 EOF
10798 if { (eval echo configure:10799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10799   rm -rf conftest*
10800   glibcpp_cv_func_ldexpf_use=yes
10801 else
10802   echo "configure: failed program was:" >&5
10803   cat conftest.$ac_ext >&5
10804   rm -rf conftest*
10805   glibcpp_cv_func_ldexpf_use=no
10806 fi
10807 rm -f conftest*
10808       ac_ext=c
10809 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10810 ac_cpp='$CPP $CPPFLAGS'
10811 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10812 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10813 cross_compiling=$ac_cv_prog_cc_cross
10814
10815     
10816 fi
10817
10818   fi
10819   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
10820
10821   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
10822     for ac_func in ldexpf
10823 do
10824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10825 echo "configure:10826: checking for $ac_func" >&5
10826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10827   echo $ac_n "(cached) $ac_c" 1>&6
10828 else
10829   cat > conftest.$ac_ext <<EOF
10830 #line 10831 "configure"
10831 #include "confdefs.h"
10832 /* System header to define __stub macros and hopefully few prototypes,
10833     which can conflict with char $ac_func(); below.  */
10834 #include <assert.h>
10835 /* Override any gcc2 internal prototype to avoid an error.  */
10836 /* We use char because int might match the return type of a gcc2
10837     builtin and then its argument prototype would still apply.  */
10838 char $ac_func();
10839
10840 int main() {
10841
10842 /* The GNU C library defines this for functions which it implements
10843     to always fail with ENOSYS.  Some functions are actually named
10844     something starting with __ and the normal name is an alias.  */
10845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10846 choke me
10847 #else
10848 $ac_func();
10849 #endif
10850
10851 ; return 0; }
10852 EOF
10853 if { (eval echo configure:10854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10854   rm -rf conftest*
10855   eval "ac_cv_func_$ac_func=yes"
10856 else
10857   echo "configure: failed program was:" >&5
10858   cat conftest.$ac_ext >&5
10859   rm -rf conftest*
10860   eval "ac_cv_func_$ac_func=no"
10861 fi
10862 rm -f conftest*
10863 fi
10864
10865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10866   echo "$ac_t""yes" 1>&6
10867     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10868   cat >> confdefs.h <<EOF
10869 #define $ac_tr_func 1
10870 EOF
10871  
10872 else
10873   echo "$ac_t""no" 1>&6
10874 fi
10875 done
10876     
10877   else
10878     
10879   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
10880 echo "configure:10881: checking for _ldexpf declaration" >&5
10881   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
10882     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
10883   echo $ac_n "(cached) $ac_c" 1>&6
10884 else
10885   
10886       
10887       ac_ext=C
10888 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10889 ac_cpp='$CXXCPP $CPPFLAGS'
10890 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10891 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10892 cross_compiling=$ac_cv_prog_cxx_cross
10893
10894       cat > conftest.$ac_ext <<EOF
10895 #line 10896 "configure"
10896 #include "confdefs.h"
10897 #include <math.h>
10898 int main() {
10899  _ldexpf(0, 0);
10900 ; return 0; }
10901 EOF
10902 if { (eval echo configure:10903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10903   rm -rf conftest*
10904   glibcpp_cv_func__ldexpf_use=yes
10905 else
10906   echo "configure: failed program was:" >&5
10907   cat conftest.$ac_ext >&5
10908   rm -rf conftest*
10909   glibcpp_cv_func__ldexpf_use=no
10910 fi
10911 rm -f conftest*
10912       ac_ext=c
10913 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10914 ac_cpp='$CPP $CPPFLAGS'
10915 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10916 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10917 cross_compiling=$ac_cv_prog_cc_cross
10918
10919     
10920 fi
10921
10922   fi
10923   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
10924
10925     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
10926       for ac_func in _ldexpf
10927 do
10928 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10929 echo "configure:10930: checking for $ac_func" >&5
10930 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10931   echo $ac_n "(cached) $ac_c" 1>&6
10932 else
10933   cat > conftest.$ac_ext <<EOF
10934 #line 10935 "configure"
10935 #include "confdefs.h"
10936 /* System header to define __stub macros and hopefully few prototypes,
10937     which can conflict with char $ac_func(); below.  */
10938 #include <assert.h>
10939 /* Override any gcc2 internal prototype to avoid an error.  */
10940 /* We use char because int might match the return type of a gcc2
10941     builtin and then its argument prototype would still apply.  */
10942 char $ac_func();
10943
10944 int main() {
10945
10946 /* The GNU C library defines this for functions which it implements
10947     to always fail with ENOSYS.  Some functions are actually named
10948     something starting with __ and the normal name is an alias.  */
10949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10950 choke me
10951 #else
10952 $ac_func();
10953 #endif
10954
10955 ; return 0; }
10956 EOF
10957 if { (eval echo configure:10958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10958   rm -rf conftest*
10959   eval "ac_cv_func_$ac_func=yes"
10960 else
10961   echo "configure: failed program was:" >&5
10962   cat conftest.$ac_ext >&5
10963   rm -rf conftest*
10964   eval "ac_cv_func_$ac_func=no"
10965 fi
10966 rm -f conftest*
10967 fi
10968
10969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10970   echo "$ac_t""yes" 1>&6
10971     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10972   cat >> confdefs.h <<EOF
10973 #define $ac_tr_func 1
10974 EOF
10975  
10976 else
10977   echo "$ac_t""no" 1>&6
10978 fi
10979 done
10980     
10981     fi
10982   fi
10983
10984   
10985   
10986   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
10987 echo "configure:10988: checking for logf declaration" >&5
10988   if test x${glibcpp_cv_func_logf_use+set} != xset; then
10989     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
10990   echo $ac_n "(cached) $ac_c" 1>&6
10991 else
10992   
10993       
10994       ac_ext=C
10995 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10996 ac_cpp='$CXXCPP $CPPFLAGS'
10997 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10998 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10999 cross_compiling=$ac_cv_prog_cxx_cross
11000
11001       cat > conftest.$ac_ext <<EOF
11002 #line 11003 "configure"
11003 #include "confdefs.h"
11004 #include <math.h>
11005                       #ifdef HAVE_IEEEFP_H
11006                       #include <ieeefp.h>
11007                       #endif
11008                      
11009 int main() {
11010  logf(0);
11011 ; return 0; }
11012 EOF
11013 if { (eval echo configure:11014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11014   rm -rf conftest*
11015   glibcpp_cv_func_logf_use=yes
11016 else
11017   echo "configure: failed program was:" >&5
11018   cat conftest.$ac_ext >&5
11019   rm -rf conftest*
11020   glibcpp_cv_func_logf_use=no
11021 fi
11022 rm -f conftest*
11023       ac_ext=c
11024 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11025 ac_cpp='$CPP $CPPFLAGS'
11026 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11027 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11028 cross_compiling=$ac_cv_prog_cc_cross
11029
11030     
11031 fi
11032
11033   fi
11034   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
11035
11036   if test x$glibcpp_cv_func_logf_use = x"yes"; then
11037     for ac_func in logf
11038 do
11039 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11040 echo "configure:11041: checking for $ac_func" >&5
11041 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11042   echo $ac_n "(cached) $ac_c" 1>&6
11043 else
11044   cat > conftest.$ac_ext <<EOF
11045 #line 11046 "configure"
11046 #include "confdefs.h"
11047 /* System header to define __stub macros and hopefully few prototypes,
11048     which can conflict with char $ac_func(); below.  */
11049 #include <assert.h>
11050 /* Override any gcc2 internal prototype to avoid an error.  */
11051 /* We use char because int might match the return type of a gcc2
11052     builtin and then its argument prototype would still apply.  */
11053 char $ac_func();
11054
11055 int main() {
11056
11057 /* The GNU C library defines this for functions which it implements
11058     to always fail with ENOSYS.  Some functions are actually named
11059     something starting with __ and the normal name is an alias.  */
11060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11061 choke me
11062 #else
11063 $ac_func();
11064 #endif
11065
11066 ; return 0; }
11067 EOF
11068 if { (eval echo configure:11069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11069   rm -rf conftest*
11070   eval "ac_cv_func_$ac_func=yes"
11071 else
11072   echo "configure: failed program was:" >&5
11073   cat conftest.$ac_ext >&5
11074   rm -rf conftest*
11075   eval "ac_cv_func_$ac_func=no"
11076 fi
11077 rm -f conftest*
11078 fi
11079
11080 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11081   echo "$ac_t""yes" 1>&6
11082     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11083   cat >> confdefs.h <<EOF
11084 #define $ac_tr_func 1
11085 EOF
11086  
11087 else
11088   echo "$ac_t""no" 1>&6
11089 fi
11090 done
11091     
11092   else
11093     
11094   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
11095 echo "configure:11096: checking for _logf declaration" >&5
11096   if test x${glibcpp_cv_func__logf_use+set} != xset; then
11097     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
11098   echo $ac_n "(cached) $ac_c" 1>&6
11099 else
11100   
11101       
11102       ac_ext=C
11103 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11104 ac_cpp='$CXXCPP $CPPFLAGS'
11105 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11106 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11107 cross_compiling=$ac_cv_prog_cxx_cross
11108
11109       cat > conftest.$ac_ext <<EOF
11110 #line 11111 "configure"
11111 #include "confdefs.h"
11112 #include <math.h>
11113                       #ifdef HAVE_IEEEFP_H
11114                       #include <ieeefp.h>
11115                       #endif
11116                      
11117 int main() {
11118  _logf(0);
11119 ; return 0; }
11120 EOF
11121 if { (eval echo configure:11122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11122   rm -rf conftest*
11123   glibcpp_cv_func__logf_use=yes
11124 else
11125   echo "configure: failed program was:" >&5
11126   cat conftest.$ac_ext >&5
11127   rm -rf conftest*
11128   glibcpp_cv_func__logf_use=no
11129 fi
11130 rm -f conftest*
11131       ac_ext=c
11132 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11133 ac_cpp='$CPP $CPPFLAGS'
11134 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11135 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11136 cross_compiling=$ac_cv_prog_cc_cross
11137
11138     
11139 fi
11140
11141   fi
11142   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
11143
11144     if test x$glibcpp_cv_func__logf_use = x"yes"; then
11145       for ac_func in _logf
11146 do
11147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11148 echo "configure:11149: checking for $ac_func" >&5
11149 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11150   echo $ac_n "(cached) $ac_c" 1>&6
11151 else
11152   cat > conftest.$ac_ext <<EOF
11153 #line 11154 "configure"
11154 #include "confdefs.h"
11155 /* System header to define __stub macros and hopefully few prototypes,
11156     which can conflict with char $ac_func(); below.  */
11157 #include <assert.h>
11158 /* Override any gcc2 internal prototype to avoid an error.  */
11159 /* We use char because int might match the return type of a gcc2
11160     builtin and then its argument prototype would still apply.  */
11161 char $ac_func();
11162
11163 int main() {
11164
11165 /* The GNU C library defines this for functions which it implements
11166     to always fail with ENOSYS.  Some functions are actually named
11167     something starting with __ and the normal name is an alias.  */
11168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11169 choke me
11170 #else
11171 $ac_func();
11172 #endif
11173
11174 ; return 0; }
11175 EOF
11176 if { (eval echo configure:11177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11177   rm -rf conftest*
11178   eval "ac_cv_func_$ac_func=yes"
11179 else
11180   echo "configure: failed program was:" >&5
11181   cat conftest.$ac_ext >&5
11182   rm -rf conftest*
11183   eval "ac_cv_func_$ac_func=no"
11184 fi
11185 rm -f conftest*
11186 fi
11187
11188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11189   echo "$ac_t""yes" 1>&6
11190     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11191   cat >> confdefs.h <<EOF
11192 #define $ac_tr_func 1
11193 EOF
11194  
11195 else
11196   echo "$ac_t""no" 1>&6
11197 fi
11198 done
11199     
11200     fi
11201   fi
11202
11203   
11204   
11205   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
11206 echo "configure:11207: checking for log10f declaration" >&5
11207   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
11208     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
11209   echo $ac_n "(cached) $ac_c" 1>&6
11210 else
11211   
11212       
11213       ac_ext=C
11214 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11215 ac_cpp='$CXXCPP $CPPFLAGS'
11216 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11217 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11218 cross_compiling=$ac_cv_prog_cxx_cross
11219
11220       cat > conftest.$ac_ext <<EOF
11221 #line 11222 "configure"
11222 #include "confdefs.h"
11223 #include <math.h>
11224                       #ifdef HAVE_IEEEFP_H
11225                       #include <ieeefp.h>
11226                       #endif
11227                      
11228 int main() {
11229  log10f(0);
11230 ; return 0; }
11231 EOF
11232 if { (eval echo configure:11233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11233   rm -rf conftest*
11234   glibcpp_cv_func_log10f_use=yes
11235 else
11236   echo "configure: failed program was:" >&5
11237   cat conftest.$ac_ext >&5
11238   rm -rf conftest*
11239   glibcpp_cv_func_log10f_use=no
11240 fi
11241 rm -f conftest*
11242       ac_ext=c
11243 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11244 ac_cpp='$CPP $CPPFLAGS'
11245 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11246 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11247 cross_compiling=$ac_cv_prog_cc_cross
11248
11249     
11250 fi
11251
11252   fi
11253   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
11254
11255   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
11256     for ac_func in log10f
11257 do
11258 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11259 echo "configure:11260: checking for $ac_func" >&5
11260 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11261   echo $ac_n "(cached) $ac_c" 1>&6
11262 else
11263   cat > conftest.$ac_ext <<EOF
11264 #line 11265 "configure"
11265 #include "confdefs.h"
11266 /* System header to define __stub macros and hopefully few prototypes,
11267     which can conflict with char $ac_func(); below.  */
11268 #include <assert.h>
11269 /* Override any gcc2 internal prototype to avoid an error.  */
11270 /* We use char because int might match the return type of a gcc2
11271     builtin and then its argument prototype would still apply.  */
11272 char $ac_func();
11273
11274 int main() {
11275
11276 /* The GNU C library defines this for functions which it implements
11277     to always fail with ENOSYS.  Some functions are actually named
11278     something starting with __ and the normal name is an alias.  */
11279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11280 choke me
11281 #else
11282 $ac_func();
11283 #endif
11284
11285 ; return 0; }
11286 EOF
11287 if { (eval echo configure:11288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11288   rm -rf conftest*
11289   eval "ac_cv_func_$ac_func=yes"
11290 else
11291   echo "configure: failed program was:" >&5
11292   cat conftest.$ac_ext >&5
11293   rm -rf conftest*
11294   eval "ac_cv_func_$ac_func=no"
11295 fi
11296 rm -f conftest*
11297 fi
11298
11299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11300   echo "$ac_t""yes" 1>&6
11301     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11302   cat >> confdefs.h <<EOF
11303 #define $ac_tr_func 1
11304 EOF
11305  
11306 else
11307   echo "$ac_t""no" 1>&6
11308 fi
11309 done
11310     
11311   else
11312     
11313   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
11314 echo "configure:11315: checking for _log10f declaration" >&5
11315   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
11316     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
11317   echo $ac_n "(cached) $ac_c" 1>&6
11318 else
11319   
11320       
11321       ac_ext=C
11322 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11323 ac_cpp='$CXXCPP $CPPFLAGS'
11324 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11325 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11326 cross_compiling=$ac_cv_prog_cxx_cross
11327
11328       cat > conftest.$ac_ext <<EOF
11329 #line 11330 "configure"
11330 #include "confdefs.h"
11331 #include <math.h>
11332                       #ifdef HAVE_IEEEFP_H
11333                       #include <ieeefp.h>
11334                       #endif
11335                      
11336 int main() {
11337  _log10f(0);
11338 ; return 0; }
11339 EOF
11340 if { (eval echo configure:11341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11341   rm -rf conftest*
11342   glibcpp_cv_func__log10f_use=yes
11343 else
11344   echo "configure: failed program was:" >&5
11345   cat conftest.$ac_ext >&5
11346   rm -rf conftest*
11347   glibcpp_cv_func__log10f_use=no
11348 fi
11349 rm -f conftest*
11350       ac_ext=c
11351 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11352 ac_cpp='$CPP $CPPFLAGS'
11353 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11354 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11355 cross_compiling=$ac_cv_prog_cc_cross
11356
11357     
11358 fi
11359
11360   fi
11361   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
11362
11363     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
11364       for ac_func in _log10f
11365 do
11366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11367 echo "configure:11368: checking for $ac_func" >&5
11368 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11369   echo $ac_n "(cached) $ac_c" 1>&6
11370 else
11371   cat > conftest.$ac_ext <<EOF
11372 #line 11373 "configure"
11373 #include "confdefs.h"
11374 /* System header to define __stub macros and hopefully few prototypes,
11375     which can conflict with char $ac_func(); below.  */
11376 #include <assert.h>
11377 /* Override any gcc2 internal prototype to avoid an error.  */
11378 /* We use char because int might match the return type of a gcc2
11379     builtin and then its argument prototype would still apply.  */
11380 char $ac_func();
11381
11382 int main() {
11383
11384 /* The GNU C library defines this for functions which it implements
11385     to always fail with ENOSYS.  Some functions are actually named
11386     something starting with __ and the normal name is an alias.  */
11387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11388 choke me
11389 #else
11390 $ac_func();
11391 #endif
11392
11393 ; return 0; }
11394 EOF
11395 if { (eval echo configure:11396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11396   rm -rf conftest*
11397   eval "ac_cv_func_$ac_func=yes"
11398 else
11399   echo "configure: failed program was:" >&5
11400   cat conftest.$ac_ext >&5
11401   rm -rf conftest*
11402   eval "ac_cv_func_$ac_func=no"
11403 fi
11404 rm -f conftest*
11405 fi
11406
11407 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11408   echo "$ac_t""yes" 1>&6
11409     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11410   cat >> confdefs.h <<EOF
11411 #define $ac_tr_func 1
11412 EOF
11413  
11414 else
11415   echo "$ac_t""no" 1>&6
11416 fi
11417 done
11418     
11419     fi
11420   fi
11421
11422   
11423   
11424   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
11425 echo "configure:11426: checking for modff declaration" >&5
11426   if test x${glibcpp_cv_func_modff_use+set} != xset; then
11427     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
11428   echo $ac_n "(cached) $ac_c" 1>&6
11429 else
11430   
11431       
11432       ac_ext=C
11433 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11434 ac_cpp='$CXXCPP $CPPFLAGS'
11435 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11436 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11437 cross_compiling=$ac_cv_prog_cxx_cross
11438
11439       cat > conftest.$ac_ext <<EOF
11440 #line 11441 "configure"
11441 #include "confdefs.h"
11442 #include <math.h>
11443 int main() {
11444  modff(0, 0);
11445 ; return 0; }
11446 EOF
11447 if { (eval echo configure:11448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11448   rm -rf conftest*
11449   glibcpp_cv_func_modff_use=yes
11450 else
11451   echo "configure: failed program was:" >&5
11452   cat conftest.$ac_ext >&5
11453   rm -rf conftest*
11454   glibcpp_cv_func_modff_use=no
11455 fi
11456 rm -f conftest*
11457       ac_ext=c
11458 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11459 ac_cpp='$CPP $CPPFLAGS'
11460 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11461 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11462 cross_compiling=$ac_cv_prog_cc_cross
11463
11464     
11465 fi
11466
11467   fi
11468   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
11469
11470   if test x$glibcpp_cv_func_modff_use = x"yes"; then
11471     for ac_func in modff
11472 do
11473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11474 echo "configure:11475: checking for $ac_func" >&5
11475 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11476   echo $ac_n "(cached) $ac_c" 1>&6
11477 else
11478   cat > conftest.$ac_ext <<EOF
11479 #line 11480 "configure"
11480 #include "confdefs.h"
11481 /* System header to define __stub macros and hopefully few prototypes,
11482     which can conflict with char $ac_func(); below.  */
11483 #include <assert.h>
11484 /* Override any gcc2 internal prototype to avoid an error.  */
11485 /* We use char because int might match the return type of a gcc2
11486     builtin and then its argument prototype would still apply.  */
11487 char $ac_func();
11488
11489 int main() {
11490
11491 /* The GNU C library defines this for functions which it implements
11492     to always fail with ENOSYS.  Some functions are actually named
11493     something starting with __ and the normal name is an alias.  */
11494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11495 choke me
11496 #else
11497 $ac_func();
11498 #endif
11499
11500 ; return 0; }
11501 EOF
11502 if { (eval echo configure:11503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11503   rm -rf conftest*
11504   eval "ac_cv_func_$ac_func=yes"
11505 else
11506   echo "configure: failed program was:" >&5
11507   cat conftest.$ac_ext >&5
11508   rm -rf conftest*
11509   eval "ac_cv_func_$ac_func=no"
11510 fi
11511 rm -f conftest*
11512 fi
11513
11514 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11515   echo "$ac_t""yes" 1>&6
11516     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11517   cat >> confdefs.h <<EOF
11518 #define $ac_tr_func 1
11519 EOF
11520  
11521 else
11522   echo "$ac_t""no" 1>&6
11523 fi
11524 done
11525     
11526   else
11527     
11528   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
11529 echo "configure:11530: checking for _modff declaration" >&5
11530   if test x${glibcpp_cv_func__modff_use+set} != xset; then
11531     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
11532   echo $ac_n "(cached) $ac_c" 1>&6
11533 else
11534   
11535       
11536       ac_ext=C
11537 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11538 ac_cpp='$CXXCPP $CPPFLAGS'
11539 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11540 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11541 cross_compiling=$ac_cv_prog_cxx_cross
11542
11543       cat > conftest.$ac_ext <<EOF
11544 #line 11545 "configure"
11545 #include "confdefs.h"
11546 #include <math.h>
11547 int main() {
11548  _modff(0, 0);
11549 ; return 0; }
11550 EOF
11551 if { (eval echo configure:11552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11552   rm -rf conftest*
11553   glibcpp_cv_func__modff_use=yes
11554 else
11555   echo "configure: failed program was:" >&5
11556   cat conftest.$ac_ext >&5
11557   rm -rf conftest*
11558   glibcpp_cv_func__modff_use=no
11559 fi
11560 rm -f conftest*
11561       ac_ext=c
11562 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11563 ac_cpp='$CPP $CPPFLAGS'
11564 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11565 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11566 cross_compiling=$ac_cv_prog_cc_cross
11567
11568     
11569 fi
11570
11571   fi
11572   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
11573
11574     if test x$glibcpp_cv_func__modff_use = x"yes"; then
11575       for ac_func in _modff
11576 do
11577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11578 echo "configure:11579: checking for $ac_func" >&5
11579 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11580   echo $ac_n "(cached) $ac_c" 1>&6
11581 else
11582   cat > conftest.$ac_ext <<EOF
11583 #line 11584 "configure"
11584 #include "confdefs.h"
11585 /* System header to define __stub macros and hopefully few prototypes,
11586     which can conflict with char $ac_func(); below.  */
11587 #include <assert.h>
11588 /* Override any gcc2 internal prototype to avoid an error.  */
11589 /* We use char because int might match the return type of a gcc2
11590     builtin and then its argument prototype would still apply.  */
11591 char $ac_func();
11592
11593 int main() {
11594
11595 /* The GNU C library defines this for functions which it implements
11596     to always fail with ENOSYS.  Some functions are actually named
11597     something starting with __ and the normal name is an alias.  */
11598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11599 choke me
11600 #else
11601 $ac_func();
11602 #endif
11603
11604 ; return 0; }
11605 EOF
11606 if { (eval echo configure:11607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11607   rm -rf conftest*
11608   eval "ac_cv_func_$ac_func=yes"
11609 else
11610   echo "configure: failed program was:" >&5
11611   cat conftest.$ac_ext >&5
11612   rm -rf conftest*
11613   eval "ac_cv_func_$ac_func=no"
11614 fi
11615 rm -f conftest*
11616 fi
11617
11618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11619   echo "$ac_t""yes" 1>&6
11620     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11621   cat >> confdefs.h <<EOF
11622 #define $ac_tr_func 1
11623 EOF
11624  
11625 else
11626   echo "$ac_t""no" 1>&6
11627 fi
11628 done
11629     
11630     fi
11631   fi
11632
11633   
11634   
11635   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
11636 echo "configure:11637: checking for powf declaration" >&5
11637   if test x${glibcpp_cv_func_powf_use+set} != xset; then
11638     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
11639   echo $ac_n "(cached) $ac_c" 1>&6
11640 else
11641   
11642       
11643       ac_ext=C
11644 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11645 ac_cpp='$CXXCPP $CPPFLAGS'
11646 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11647 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11648 cross_compiling=$ac_cv_prog_cxx_cross
11649
11650       cat > conftest.$ac_ext <<EOF
11651 #line 11652 "configure"
11652 #include "confdefs.h"
11653 #include <math.h>
11654 int main() {
11655  powf(0, 0);
11656 ; return 0; }
11657 EOF
11658 if { (eval echo configure:11659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11659   rm -rf conftest*
11660   glibcpp_cv_func_powf_use=yes
11661 else
11662   echo "configure: failed program was:" >&5
11663   cat conftest.$ac_ext >&5
11664   rm -rf conftest*
11665   glibcpp_cv_func_powf_use=no
11666 fi
11667 rm -f conftest*
11668       ac_ext=c
11669 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11670 ac_cpp='$CPP $CPPFLAGS'
11671 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11672 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11673 cross_compiling=$ac_cv_prog_cc_cross
11674
11675     
11676 fi
11677
11678   fi
11679   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
11680
11681   if test x$glibcpp_cv_func_powf_use = x"yes"; then
11682     for ac_func in powf
11683 do
11684 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11685 echo "configure:11686: checking for $ac_func" >&5
11686 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11687   echo $ac_n "(cached) $ac_c" 1>&6
11688 else
11689   cat > conftest.$ac_ext <<EOF
11690 #line 11691 "configure"
11691 #include "confdefs.h"
11692 /* System header to define __stub macros and hopefully few prototypes,
11693     which can conflict with char $ac_func(); below.  */
11694 #include <assert.h>
11695 /* Override any gcc2 internal prototype to avoid an error.  */
11696 /* We use char because int might match the return type of a gcc2
11697     builtin and then its argument prototype would still apply.  */
11698 char $ac_func();
11699
11700 int main() {
11701
11702 /* The GNU C library defines this for functions which it implements
11703     to always fail with ENOSYS.  Some functions are actually named
11704     something starting with __ and the normal name is an alias.  */
11705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11706 choke me
11707 #else
11708 $ac_func();
11709 #endif
11710
11711 ; return 0; }
11712 EOF
11713 if { (eval echo configure:11714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11714   rm -rf conftest*
11715   eval "ac_cv_func_$ac_func=yes"
11716 else
11717   echo "configure: failed program was:" >&5
11718   cat conftest.$ac_ext >&5
11719   rm -rf conftest*
11720   eval "ac_cv_func_$ac_func=no"
11721 fi
11722 rm -f conftest*
11723 fi
11724
11725 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11726   echo "$ac_t""yes" 1>&6
11727     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11728   cat >> confdefs.h <<EOF
11729 #define $ac_tr_func 1
11730 EOF
11731  
11732 else
11733   echo "$ac_t""no" 1>&6
11734 fi
11735 done
11736     
11737   else
11738     
11739   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
11740 echo "configure:11741: checking for _powf declaration" >&5
11741   if test x${glibcpp_cv_func__powf_use+set} != xset; then
11742     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
11743   echo $ac_n "(cached) $ac_c" 1>&6
11744 else
11745   
11746       
11747       ac_ext=C
11748 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11749 ac_cpp='$CXXCPP $CPPFLAGS'
11750 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11751 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11752 cross_compiling=$ac_cv_prog_cxx_cross
11753
11754       cat > conftest.$ac_ext <<EOF
11755 #line 11756 "configure"
11756 #include "confdefs.h"
11757 #include <math.h>
11758 int main() {
11759  _powf(0, 0);
11760 ; return 0; }
11761 EOF
11762 if { (eval echo configure:11763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11763   rm -rf conftest*
11764   glibcpp_cv_func__powf_use=yes
11765 else
11766   echo "configure: failed program was:" >&5
11767   cat conftest.$ac_ext >&5
11768   rm -rf conftest*
11769   glibcpp_cv_func__powf_use=no
11770 fi
11771 rm -f conftest*
11772       ac_ext=c
11773 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11774 ac_cpp='$CPP $CPPFLAGS'
11775 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11776 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11777 cross_compiling=$ac_cv_prog_cc_cross
11778
11779     
11780 fi
11781
11782   fi
11783   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
11784
11785     if test x$glibcpp_cv_func__powf_use = x"yes"; then
11786       for ac_func in _powf
11787 do
11788 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11789 echo "configure:11790: checking for $ac_func" >&5
11790 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11791   echo $ac_n "(cached) $ac_c" 1>&6
11792 else
11793   cat > conftest.$ac_ext <<EOF
11794 #line 11795 "configure"
11795 #include "confdefs.h"
11796 /* System header to define __stub macros and hopefully few prototypes,
11797     which can conflict with char $ac_func(); below.  */
11798 #include <assert.h>
11799 /* Override any gcc2 internal prototype to avoid an error.  */
11800 /* We use char because int might match the return type of a gcc2
11801     builtin and then its argument prototype would still apply.  */
11802 char $ac_func();
11803
11804 int main() {
11805
11806 /* The GNU C library defines this for functions which it implements
11807     to always fail with ENOSYS.  Some functions are actually named
11808     something starting with __ and the normal name is an alias.  */
11809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11810 choke me
11811 #else
11812 $ac_func();
11813 #endif
11814
11815 ; return 0; }
11816 EOF
11817 if { (eval echo configure:11818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11818   rm -rf conftest*
11819   eval "ac_cv_func_$ac_func=yes"
11820 else
11821   echo "configure: failed program was:" >&5
11822   cat conftest.$ac_ext >&5
11823   rm -rf conftest*
11824   eval "ac_cv_func_$ac_func=no"
11825 fi
11826 rm -f conftest*
11827 fi
11828
11829 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11830   echo "$ac_t""yes" 1>&6
11831     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11832   cat >> confdefs.h <<EOF
11833 #define $ac_tr_func 1
11834 EOF
11835  
11836 else
11837   echo "$ac_t""no" 1>&6
11838 fi
11839 done
11840     
11841     fi
11842   fi
11843
11844   
11845   
11846   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
11847 echo "configure:11848: checking for sqrtf declaration" >&5
11848   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
11849     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
11850   echo $ac_n "(cached) $ac_c" 1>&6
11851 else
11852   
11853       
11854       ac_ext=C
11855 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11856 ac_cpp='$CXXCPP $CPPFLAGS'
11857 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11858 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11859 cross_compiling=$ac_cv_prog_cxx_cross
11860
11861       cat > conftest.$ac_ext <<EOF
11862 #line 11863 "configure"
11863 #include "confdefs.h"
11864 #include <math.h>
11865                       #ifdef HAVE_IEEEFP_H
11866                       #include <ieeefp.h>
11867                       #endif
11868                      
11869 int main() {
11870  sqrtf(0);
11871 ; return 0; }
11872 EOF
11873 if { (eval echo configure:11874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11874   rm -rf conftest*
11875   glibcpp_cv_func_sqrtf_use=yes
11876 else
11877   echo "configure: failed program was:" >&5
11878   cat conftest.$ac_ext >&5
11879   rm -rf conftest*
11880   glibcpp_cv_func_sqrtf_use=no
11881 fi
11882 rm -f conftest*
11883       ac_ext=c
11884 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11885 ac_cpp='$CPP $CPPFLAGS'
11886 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11887 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11888 cross_compiling=$ac_cv_prog_cc_cross
11889
11890     
11891 fi
11892
11893   fi
11894   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
11895
11896   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
11897     for ac_func in sqrtf
11898 do
11899 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11900 echo "configure:11901: checking for $ac_func" >&5
11901 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11902   echo $ac_n "(cached) $ac_c" 1>&6
11903 else
11904   cat > conftest.$ac_ext <<EOF
11905 #line 11906 "configure"
11906 #include "confdefs.h"
11907 /* System header to define __stub macros and hopefully few prototypes,
11908     which can conflict with char $ac_func(); below.  */
11909 #include <assert.h>
11910 /* Override any gcc2 internal prototype to avoid an error.  */
11911 /* We use char because int might match the return type of a gcc2
11912     builtin and then its argument prototype would still apply.  */
11913 char $ac_func();
11914
11915 int main() {
11916
11917 /* The GNU C library defines this for functions which it implements
11918     to always fail with ENOSYS.  Some functions are actually named
11919     something starting with __ and the normal name is an alias.  */
11920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11921 choke me
11922 #else
11923 $ac_func();
11924 #endif
11925
11926 ; return 0; }
11927 EOF
11928 if { (eval echo configure:11929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11929   rm -rf conftest*
11930   eval "ac_cv_func_$ac_func=yes"
11931 else
11932   echo "configure: failed program was:" >&5
11933   cat conftest.$ac_ext >&5
11934   rm -rf conftest*
11935   eval "ac_cv_func_$ac_func=no"
11936 fi
11937 rm -f conftest*
11938 fi
11939
11940 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11941   echo "$ac_t""yes" 1>&6
11942     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11943   cat >> confdefs.h <<EOF
11944 #define $ac_tr_func 1
11945 EOF
11946  
11947 else
11948   echo "$ac_t""no" 1>&6
11949 fi
11950 done
11951     
11952   else
11953     
11954   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
11955 echo "configure:11956: checking for _sqrtf declaration" >&5
11956   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
11957     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
11958   echo $ac_n "(cached) $ac_c" 1>&6
11959 else
11960   
11961       
11962       ac_ext=C
11963 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11964 ac_cpp='$CXXCPP $CPPFLAGS'
11965 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11966 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11967 cross_compiling=$ac_cv_prog_cxx_cross
11968
11969       cat > conftest.$ac_ext <<EOF
11970 #line 11971 "configure"
11971 #include "confdefs.h"
11972 #include <math.h>
11973                       #ifdef HAVE_IEEEFP_H
11974                       #include <ieeefp.h>
11975                       #endif
11976                      
11977 int main() {
11978  _sqrtf(0);
11979 ; return 0; }
11980 EOF
11981 if { (eval echo configure:11982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11982   rm -rf conftest*
11983   glibcpp_cv_func__sqrtf_use=yes
11984 else
11985   echo "configure: failed program was:" >&5
11986   cat conftest.$ac_ext >&5
11987   rm -rf conftest*
11988   glibcpp_cv_func__sqrtf_use=no
11989 fi
11990 rm -f conftest*
11991       ac_ext=c
11992 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11993 ac_cpp='$CPP $CPPFLAGS'
11994 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11995 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11996 cross_compiling=$ac_cv_prog_cc_cross
11997
11998     
11999 fi
12000
12001   fi
12002   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
12003
12004     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
12005       for ac_func in _sqrtf
12006 do
12007 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12008 echo "configure:12009: checking for $ac_func" >&5
12009 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12010   echo $ac_n "(cached) $ac_c" 1>&6
12011 else
12012   cat > conftest.$ac_ext <<EOF
12013 #line 12014 "configure"
12014 #include "confdefs.h"
12015 /* System header to define __stub macros and hopefully few prototypes,
12016     which can conflict with char $ac_func(); below.  */
12017 #include <assert.h>
12018 /* Override any gcc2 internal prototype to avoid an error.  */
12019 /* We use char because int might match the return type of a gcc2
12020     builtin and then its argument prototype would still apply.  */
12021 char $ac_func();
12022
12023 int main() {
12024
12025 /* The GNU C library defines this for functions which it implements
12026     to always fail with ENOSYS.  Some functions are actually named
12027     something starting with __ and the normal name is an alias.  */
12028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12029 choke me
12030 #else
12031 $ac_func();
12032 #endif
12033
12034 ; return 0; }
12035 EOF
12036 if { (eval echo configure:12037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12037   rm -rf conftest*
12038   eval "ac_cv_func_$ac_func=yes"
12039 else
12040   echo "configure: failed program was:" >&5
12041   cat conftest.$ac_ext >&5
12042   rm -rf conftest*
12043   eval "ac_cv_func_$ac_func=no"
12044 fi
12045 rm -f conftest*
12046 fi
12047
12048 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12049   echo "$ac_t""yes" 1>&6
12050     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12051   cat >> confdefs.h <<EOF
12052 #define $ac_tr_func 1
12053 EOF
12054  
12055 else
12056   echo "$ac_t""no" 1>&6
12057 fi
12058 done
12059     
12060     fi
12061   fi
12062
12063   
12064   
12065   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
12066 echo "configure:12067: checking for sincosf declaration" >&5
12067   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
12068     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
12069   echo $ac_n "(cached) $ac_c" 1>&6
12070 else
12071   
12072       
12073       ac_ext=C
12074 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12075 ac_cpp='$CXXCPP $CPPFLAGS'
12076 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12077 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12078 cross_compiling=$ac_cv_prog_cxx_cross
12079
12080       cat > conftest.$ac_ext <<EOF
12081 #line 12082 "configure"
12082 #include "confdefs.h"
12083 #include <math.h>
12084 int main() {
12085  sincosf(0, 0, 0);
12086 ; return 0; }
12087 EOF
12088 if { (eval echo configure:12089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12089   rm -rf conftest*
12090   glibcpp_cv_func_sincosf_use=yes
12091 else
12092   echo "configure: failed program was:" >&5
12093   cat conftest.$ac_ext >&5
12094   rm -rf conftest*
12095   glibcpp_cv_func_sincosf_use=no
12096 fi
12097 rm -f conftest*
12098       ac_ext=c
12099 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12100 ac_cpp='$CPP $CPPFLAGS'
12101 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12102 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12103 cross_compiling=$ac_cv_prog_cc_cross
12104
12105     
12106 fi
12107
12108   fi
12109   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
12110
12111   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
12112     for ac_func in sincosf
12113 do
12114 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12115 echo "configure:12116: checking for $ac_func" >&5
12116 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12117   echo $ac_n "(cached) $ac_c" 1>&6
12118 else
12119   cat > conftest.$ac_ext <<EOF
12120 #line 12121 "configure"
12121 #include "confdefs.h"
12122 /* System header to define __stub macros and hopefully few prototypes,
12123     which can conflict with char $ac_func(); below.  */
12124 #include <assert.h>
12125 /* Override any gcc2 internal prototype to avoid an error.  */
12126 /* We use char because int might match the return type of a gcc2
12127     builtin and then its argument prototype would still apply.  */
12128 char $ac_func();
12129
12130 int main() {
12131
12132 /* The GNU C library defines this for functions which it implements
12133     to always fail with ENOSYS.  Some functions are actually named
12134     something starting with __ and the normal name is an alias.  */
12135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12136 choke me
12137 #else
12138 $ac_func();
12139 #endif
12140
12141 ; return 0; }
12142 EOF
12143 if { (eval echo configure:12144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12144   rm -rf conftest*
12145   eval "ac_cv_func_$ac_func=yes"
12146 else
12147   echo "configure: failed program was:" >&5
12148   cat conftest.$ac_ext >&5
12149   rm -rf conftest*
12150   eval "ac_cv_func_$ac_func=no"
12151 fi
12152 rm -f conftest*
12153 fi
12154
12155 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12156   echo "$ac_t""yes" 1>&6
12157     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12158   cat >> confdefs.h <<EOF
12159 #define $ac_tr_func 1
12160 EOF
12161  
12162 else
12163   echo "$ac_t""no" 1>&6
12164 fi
12165 done
12166     
12167   else
12168     
12169   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
12170 echo "configure:12171: checking for _sincosf declaration" >&5
12171   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
12172     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
12173   echo $ac_n "(cached) $ac_c" 1>&6
12174 else
12175   
12176       
12177       ac_ext=C
12178 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12179 ac_cpp='$CXXCPP $CPPFLAGS'
12180 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12181 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12182 cross_compiling=$ac_cv_prog_cxx_cross
12183
12184       cat > conftest.$ac_ext <<EOF
12185 #line 12186 "configure"
12186 #include "confdefs.h"
12187 #include <math.h>
12188 int main() {
12189  _sincosf(0, 0, 0);
12190 ; return 0; }
12191 EOF
12192 if { (eval echo configure:12193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12193   rm -rf conftest*
12194   glibcpp_cv_func__sincosf_use=yes
12195 else
12196   echo "configure: failed program was:" >&5
12197   cat conftest.$ac_ext >&5
12198   rm -rf conftest*
12199   glibcpp_cv_func__sincosf_use=no
12200 fi
12201 rm -f conftest*
12202       ac_ext=c
12203 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12204 ac_cpp='$CPP $CPPFLAGS'
12205 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12206 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12207 cross_compiling=$ac_cv_prog_cc_cross
12208
12209     
12210 fi
12211
12212   fi
12213   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
12214
12215     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
12216       for ac_func in _sincosf
12217 do
12218 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12219 echo "configure:12220: checking for $ac_func" >&5
12220 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12221   echo $ac_n "(cached) $ac_c" 1>&6
12222 else
12223   cat > conftest.$ac_ext <<EOF
12224 #line 12225 "configure"
12225 #include "confdefs.h"
12226 /* System header to define __stub macros and hopefully few prototypes,
12227     which can conflict with char $ac_func(); below.  */
12228 #include <assert.h>
12229 /* Override any gcc2 internal prototype to avoid an error.  */
12230 /* We use char because int might match the return type of a gcc2
12231     builtin and then its argument prototype would still apply.  */
12232 char $ac_func();
12233
12234 int main() {
12235
12236 /* The GNU C library defines this for functions which it implements
12237     to always fail with ENOSYS.  Some functions are actually named
12238     something starting with __ and the normal name is an alias.  */
12239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12240 choke me
12241 #else
12242 $ac_func();
12243 #endif
12244
12245 ; return 0; }
12246 EOF
12247 if { (eval echo configure:12248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12248   rm -rf conftest*
12249   eval "ac_cv_func_$ac_func=yes"
12250 else
12251   echo "configure: failed program was:" >&5
12252   cat conftest.$ac_ext >&5
12253   rm -rf conftest*
12254   eval "ac_cv_func_$ac_func=no"
12255 fi
12256 rm -f conftest*
12257 fi
12258
12259 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12260   echo "$ac_t""yes" 1>&6
12261     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12262   cat >> confdefs.h <<EOF
12263 #define $ac_tr_func 1
12264 EOF
12265  
12266 else
12267   echo "$ac_t""no" 1>&6
12268 fi
12269 done
12270     
12271     fi
12272   fi
12273
12274   
12275   
12276   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
12277 echo "configure:12278: checking for finitef declaration" >&5
12278   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
12279     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
12280   echo $ac_n "(cached) $ac_c" 1>&6
12281 else
12282   
12283       
12284       ac_ext=C
12285 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12286 ac_cpp='$CXXCPP $CPPFLAGS'
12287 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12288 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12289 cross_compiling=$ac_cv_prog_cxx_cross
12290
12291       cat > conftest.$ac_ext <<EOF
12292 #line 12293 "configure"
12293 #include "confdefs.h"
12294 #include <math.h>
12295                       #ifdef HAVE_IEEEFP_H
12296                       #include <ieeefp.h>
12297                       #endif
12298                      
12299 int main() {
12300  finitef(0);
12301 ; return 0; }
12302 EOF
12303 if { (eval echo configure:12304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12304   rm -rf conftest*
12305   glibcpp_cv_func_finitef_use=yes
12306 else
12307   echo "configure: failed program was:" >&5
12308   cat conftest.$ac_ext >&5
12309   rm -rf conftest*
12310   glibcpp_cv_func_finitef_use=no
12311 fi
12312 rm -f conftest*
12313       ac_ext=c
12314 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12315 ac_cpp='$CPP $CPPFLAGS'
12316 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12317 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12318 cross_compiling=$ac_cv_prog_cc_cross
12319
12320     
12321 fi
12322
12323   fi
12324   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
12325
12326   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
12327     for ac_func in finitef
12328 do
12329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12330 echo "configure:12331: checking for $ac_func" >&5
12331 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12332   echo $ac_n "(cached) $ac_c" 1>&6
12333 else
12334   cat > conftest.$ac_ext <<EOF
12335 #line 12336 "configure"
12336 #include "confdefs.h"
12337 /* System header to define __stub macros and hopefully few prototypes,
12338     which can conflict with char $ac_func(); below.  */
12339 #include <assert.h>
12340 /* Override any gcc2 internal prototype to avoid an error.  */
12341 /* We use char because int might match the return type of a gcc2
12342     builtin and then its argument prototype would still apply.  */
12343 char $ac_func();
12344
12345 int main() {
12346
12347 /* The GNU C library defines this for functions which it implements
12348     to always fail with ENOSYS.  Some functions are actually named
12349     something starting with __ and the normal name is an alias.  */
12350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12351 choke me
12352 #else
12353 $ac_func();
12354 #endif
12355
12356 ; return 0; }
12357 EOF
12358 if { (eval echo configure:12359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12359   rm -rf conftest*
12360   eval "ac_cv_func_$ac_func=yes"
12361 else
12362   echo "configure: failed program was:" >&5
12363   cat conftest.$ac_ext >&5
12364   rm -rf conftest*
12365   eval "ac_cv_func_$ac_func=no"
12366 fi
12367 rm -f conftest*
12368 fi
12369
12370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12371   echo "$ac_t""yes" 1>&6
12372     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12373   cat >> confdefs.h <<EOF
12374 #define $ac_tr_func 1
12375 EOF
12376  
12377 else
12378   echo "$ac_t""no" 1>&6
12379 fi
12380 done
12381     
12382   else
12383     
12384   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
12385 echo "configure:12386: checking for _finitef declaration" >&5
12386   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
12387     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
12388   echo $ac_n "(cached) $ac_c" 1>&6
12389 else
12390   
12391       
12392       ac_ext=C
12393 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12394 ac_cpp='$CXXCPP $CPPFLAGS'
12395 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12396 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12397 cross_compiling=$ac_cv_prog_cxx_cross
12398
12399       cat > conftest.$ac_ext <<EOF
12400 #line 12401 "configure"
12401 #include "confdefs.h"
12402 #include <math.h>
12403                       #ifdef HAVE_IEEEFP_H
12404                       #include <ieeefp.h>
12405                       #endif
12406                      
12407 int main() {
12408  _finitef(0);
12409 ; return 0; }
12410 EOF
12411 if { (eval echo configure:12412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12412   rm -rf conftest*
12413   glibcpp_cv_func__finitef_use=yes
12414 else
12415   echo "configure: failed program was:" >&5
12416   cat conftest.$ac_ext >&5
12417   rm -rf conftest*
12418   glibcpp_cv_func__finitef_use=no
12419 fi
12420 rm -f conftest*
12421       ac_ext=c
12422 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12423 ac_cpp='$CPP $CPPFLAGS'
12424 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12425 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12426 cross_compiling=$ac_cv_prog_cc_cross
12427
12428     
12429 fi
12430
12431   fi
12432   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
12433
12434     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
12435       for ac_func in _finitef
12436 do
12437 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12438 echo "configure:12439: checking for $ac_func" >&5
12439 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12440   echo $ac_n "(cached) $ac_c" 1>&6
12441 else
12442   cat > conftest.$ac_ext <<EOF
12443 #line 12444 "configure"
12444 #include "confdefs.h"
12445 /* System header to define __stub macros and hopefully few prototypes,
12446     which can conflict with char $ac_func(); below.  */
12447 #include <assert.h>
12448 /* Override any gcc2 internal prototype to avoid an error.  */
12449 /* We use char because int might match the return type of a gcc2
12450     builtin and then its argument prototype would still apply.  */
12451 char $ac_func();
12452
12453 int main() {
12454
12455 /* The GNU C library defines this for functions which it implements
12456     to always fail with ENOSYS.  Some functions are actually named
12457     something starting with __ and the normal name is an alias.  */
12458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12459 choke me
12460 #else
12461 $ac_func();
12462 #endif
12463
12464 ; return 0; }
12465 EOF
12466 if { (eval echo configure:12467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12467   rm -rf conftest*
12468   eval "ac_cv_func_$ac_func=yes"
12469 else
12470   echo "configure: failed program was:" >&5
12471   cat conftest.$ac_ext >&5
12472   rm -rf conftest*
12473   eval "ac_cv_func_$ac_func=no"
12474 fi
12475 rm -f conftest*
12476 fi
12477
12478 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12479   echo "$ac_t""yes" 1>&6
12480     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12481   cat >> confdefs.h <<EOF
12482 #define $ac_tr_func 1
12483 EOF
12484  
12485 else
12486   echo "$ac_t""no" 1>&6
12487 fi
12488 done
12489     
12490     fi
12491   fi
12492
12493
12494     
12495   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
12496 echo "configure:12497: checking for long double trig functions" >&5
12497   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
12498   echo $ac_n "(cached) $ac_c" 1>&6
12499 else
12500   
12501     
12502     ac_ext=C
12503 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12504 ac_cpp='$CXXCPP $CPPFLAGS'
12505 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12506 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12507 cross_compiling=$ac_cv_prog_cxx_cross
12508
12509     cat > conftest.$ac_ext <<EOF
12510 #line 12511 "configure"
12511 #include "confdefs.h"
12512 #include <math.h>
12513 int main() {
12514  `for x in acosl asinl atanl \
12515                                           cosl sinl tanl \
12516                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
12517 ; return 0; }
12518 EOF
12519 if { (eval echo configure:12520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12520   rm -rf conftest*
12521   glibcpp_cv_func_long_double_trig_use=yes
12522 else
12523   echo "configure: failed program was:" >&5
12524   cat conftest.$ac_ext >&5
12525   rm -rf conftest*
12526   glibcpp_cv_func_long_double_trig_use=no
12527 fi
12528 rm -f conftest*
12529     ac_ext=c
12530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12531 ac_cpp='$CPP $CPPFLAGS'
12532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12533 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12534 cross_compiling=$ac_cv_prog_cc_cross
12535
12536 fi
12537
12538   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
12539   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
12540     for ac_func in acosl asinl atanl \
12541                                           cosl sinl tanl \
12542                                           coshl sinhl tanhl
12543 do
12544 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12545 echo "configure:12546: checking for $ac_func" >&5
12546 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12547   echo $ac_n "(cached) $ac_c" 1>&6
12548 else
12549   cat > conftest.$ac_ext <<EOF
12550 #line 12551 "configure"
12551 #include "confdefs.h"
12552 /* System header to define __stub macros and hopefully few prototypes,
12553     which can conflict with char $ac_func(); below.  */
12554 #include <assert.h>
12555 /* Override any gcc2 internal prototype to avoid an error.  */
12556 /* We use char because int might match the return type of a gcc2
12557     builtin and then its argument prototype would still apply.  */
12558 char $ac_func();
12559
12560 int main() {
12561
12562 /* The GNU C library defines this for functions which it implements
12563     to always fail with ENOSYS.  Some functions are actually named
12564     something starting with __ and the normal name is an alias.  */
12565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12566 choke me
12567 #else
12568 $ac_func();
12569 #endif
12570
12571 ; return 0; }
12572 EOF
12573 if { (eval echo configure:12574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12574   rm -rf conftest*
12575   eval "ac_cv_func_$ac_func=yes"
12576 else
12577   echo "configure: failed program was:" >&5
12578   cat conftest.$ac_ext >&5
12579   rm -rf conftest*
12580   eval "ac_cv_func_$ac_func=no"
12581 fi
12582 rm -f conftest*
12583 fi
12584
12585 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12586   echo "$ac_t""yes" 1>&6
12587     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12588   cat >> confdefs.h <<EOF
12589 #define $ac_tr_func 1
12590 EOF
12591  
12592 else
12593   echo "$ac_t""no" 1>&6
12594 fi
12595 done
12596
12597   fi
12598
12599   
12600   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
12601 echo "configure:12602: checking for long double round functions" >&5
12602   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
12603   echo $ac_n "(cached) $ac_c" 1>&6
12604 else
12605   
12606     
12607     ac_ext=C
12608 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12609 ac_cpp='$CXXCPP $CPPFLAGS'
12610 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12611 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12612 cross_compiling=$ac_cv_prog_cxx_cross
12613
12614     cat > conftest.$ac_ext <<EOF
12615 #line 12616 "configure"
12616 #include "confdefs.h"
12617 #include <math.h>
12618 int main() {
12619  `for x in ceill floorl; do echo "$x (0);"; done` 
12620 ; return 0; }
12621 EOF
12622 if { (eval echo configure:12623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12623   rm -rf conftest*
12624   glibcpp_cv_func_long_double_round_use=yes
12625 else
12626   echo "configure: failed program was:" >&5
12627   cat conftest.$ac_ext >&5
12628   rm -rf conftest*
12629   glibcpp_cv_func_long_double_round_use=no
12630 fi
12631 rm -f conftest*
12632     ac_ext=c
12633 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12634 ac_cpp='$CPP $CPPFLAGS'
12635 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12636 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12637 cross_compiling=$ac_cv_prog_cc_cross
12638
12639 fi
12640
12641   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
12642   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
12643     for ac_func in ceill floorl
12644 do
12645 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12646 echo "configure:12647: checking for $ac_func" >&5
12647 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12648   echo $ac_n "(cached) $ac_c" 1>&6
12649 else
12650   cat > conftest.$ac_ext <<EOF
12651 #line 12652 "configure"
12652 #include "confdefs.h"
12653 /* System header to define __stub macros and hopefully few prototypes,
12654     which can conflict with char $ac_func(); below.  */
12655 #include <assert.h>
12656 /* Override any gcc2 internal prototype to avoid an error.  */
12657 /* We use char because int might match the return type of a gcc2
12658     builtin and then its argument prototype would still apply.  */
12659 char $ac_func();
12660
12661 int main() {
12662
12663 /* The GNU C library defines this for functions which it implements
12664     to always fail with ENOSYS.  Some functions are actually named
12665     something starting with __ and the normal name is an alias.  */
12666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12667 choke me
12668 #else
12669 $ac_func();
12670 #endif
12671
12672 ; return 0; }
12673 EOF
12674 if { (eval echo configure:12675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12675   rm -rf conftest*
12676   eval "ac_cv_func_$ac_func=yes"
12677 else
12678   echo "configure: failed program was:" >&5
12679   cat conftest.$ac_ext >&5
12680   rm -rf conftest*
12681   eval "ac_cv_func_$ac_func=no"
12682 fi
12683 rm -f conftest*
12684 fi
12685
12686 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12687   echo "$ac_t""yes" 1>&6
12688     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12689   cat >> confdefs.h <<EOF
12690 #define $ac_tr_func 1
12691 EOF
12692  
12693 else
12694   echo "$ac_t""no" 1>&6
12695 fi
12696 done
12697
12698   fi
12699
12700   
12701   
12702   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
12703 echo "configure:12704: checking for isnanl declaration" >&5
12704   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
12705     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
12706   echo $ac_n "(cached) $ac_c" 1>&6
12707 else
12708   
12709       
12710       ac_ext=C
12711 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12712 ac_cpp='$CXXCPP $CPPFLAGS'
12713 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12714 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12715 cross_compiling=$ac_cv_prog_cxx_cross
12716
12717       cat > conftest.$ac_ext <<EOF
12718 #line 12719 "configure"
12719 #include "confdefs.h"
12720 #include <math.h>
12721                       #ifdef HAVE_IEEEFP_H
12722                       #include <ieeefp.h>
12723                       #endif
12724                      
12725 int main() {
12726  isnanl(0);
12727 ; return 0; }
12728 EOF
12729 if { (eval echo configure:12730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12730   rm -rf conftest*
12731   glibcpp_cv_func_isnanl_use=yes
12732 else
12733   echo "configure: failed program was:" >&5
12734   cat conftest.$ac_ext >&5
12735   rm -rf conftest*
12736   glibcpp_cv_func_isnanl_use=no
12737 fi
12738 rm -f conftest*
12739       ac_ext=c
12740 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12741 ac_cpp='$CPP $CPPFLAGS'
12742 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12743 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12744 cross_compiling=$ac_cv_prog_cc_cross
12745
12746     
12747 fi
12748
12749   fi
12750   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
12751
12752   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
12753     for ac_func in isnanl
12754 do
12755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12756 echo "configure:12757: checking for $ac_func" >&5
12757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12758   echo $ac_n "(cached) $ac_c" 1>&6
12759 else
12760   cat > conftest.$ac_ext <<EOF
12761 #line 12762 "configure"
12762 #include "confdefs.h"
12763 /* System header to define __stub macros and hopefully few prototypes,
12764     which can conflict with char $ac_func(); below.  */
12765 #include <assert.h>
12766 /* Override any gcc2 internal prototype to avoid an error.  */
12767 /* We use char because int might match the return type of a gcc2
12768     builtin and then its argument prototype would still apply.  */
12769 char $ac_func();
12770
12771 int main() {
12772
12773 /* The GNU C library defines this for functions which it implements
12774     to always fail with ENOSYS.  Some functions are actually named
12775     something starting with __ and the normal name is an alias.  */
12776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12777 choke me
12778 #else
12779 $ac_func();
12780 #endif
12781
12782 ; return 0; }
12783 EOF
12784 if { (eval echo configure:12785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12785   rm -rf conftest*
12786   eval "ac_cv_func_$ac_func=yes"
12787 else
12788   echo "configure: failed program was:" >&5
12789   cat conftest.$ac_ext >&5
12790   rm -rf conftest*
12791   eval "ac_cv_func_$ac_func=no"
12792 fi
12793 rm -f conftest*
12794 fi
12795
12796 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12797   echo "$ac_t""yes" 1>&6
12798     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12799   cat >> confdefs.h <<EOF
12800 #define $ac_tr_func 1
12801 EOF
12802  
12803 else
12804   echo "$ac_t""no" 1>&6
12805 fi
12806 done
12807     
12808   else
12809     
12810   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
12811 echo "configure:12812: checking for _isnanl declaration" >&5
12812   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
12813     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
12814   echo $ac_n "(cached) $ac_c" 1>&6
12815 else
12816   
12817       
12818       ac_ext=C
12819 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12820 ac_cpp='$CXXCPP $CPPFLAGS'
12821 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12822 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12823 cross_compiling=$ac_cv_prog_cxx_cross
12824
12825       cat > conftest.$ac_ext <<EOF
12826 #line 12827 "configure"
12827 #include "confdefs.h"
12828 #include <math.h>
12829                       #ifdef HAVE_IEEEFP_H
12830                       #include <ieeefp.h>
12831                       #endif
12832                      
12833 int main() {
12834  _isnanl(0);
12835 ; return 0; }
12836 EOF
12837 if { (eval echo configure:12838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12838   rm -rf conftest*
12839   glibcpp_cv_func__isnanl_use=yes
12840 else
12841   echo "configure: failed program was:" >&5
12842   cat conftest.$ac_ext >&5
12843   rm -rf conftest*
12844   glibcpp_cv_func__isnanl_use=no
12845 fi
12846 rm -f conftest*
12847       ac_ext=c
12848 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12849 ac_cpp='$CPP $CPPFLAGS'
12850 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12851 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12852 cross_compiling=$ac_cv_prog_cc_cross
12853
12854     
12855 fi
12856
12857   fi
12858   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
12859
12860     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
12861       for ac_func in _isnanl
12862 do
12863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12864 echo "configure:12865: checking for $ac_func" >&5
12865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12866   echo $ac_n "(cached) $ac_c" 1>&6
12867 else
12868   cat > conftest.$ac_ext <<EOF
12869 #line 12870 "configure"
12870 #include "confdefs.h"
12871 /* System header to define __stub macros and hopefully few prototypes,
12872     which can conflict with char $ac_func(); below.  */
12873 #include <assert.h>
12874 /* Override any gcc2 internal prototype to avoid an error.  */
12875 /* We use char because int might match the return type of a gcc2
12876     builtin and then its argument prototype would still apply.  */
12877 char $ac_func();
12878
12879 int main() {
12880
12881 /* The GNU C library defines this for functions which it implements
12882     to always fail with ENOSYS.  Some functions are actually named
12883     something starting with __ and the normal name is an alias.  */
12884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12885 choke me
12886 #else
12887 $ac_func();
12888 #endif
12889
12890 ; return 0; }
12891 EOF
12892 if { (eval echo configure:12893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12893   rm -rf conftest*
12894   eval "ac_cv_func_$ac_func=yes"
12895 else
12896   echo "configure: failed program was:" >&5
12897   cat conftest.$ac_ext >&5
12898   rm -rf conftest*
12899   eval "ac_cv_func_$ac_func=no"
12900 fi
12901 rm -f conftest*
12902 fi
12903
12904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12905   echo "$ac_t""yes" 1>&6
12906     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12907   cat >> confdefs.h <<EOF
12908 #define $ac_tr_func 1
12909 EOF
12910  
12911 else
12912   echo "$ac_t""no" 1>&6
12913 fi
12914 done
12915     
12916     fi
12917   fi
12918
12919   
12920   
12921   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
12922 echo "configure:12923: checking for isinfl declaration" >&5
12923   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
12924     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
12925   echo $ac_n "(cached) $ac_c" 1>&6
12926 else
12927   
12928       
12929       ac_ext=C
12930 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12931 ac_cpp='$CXXCPP $CPPFLAGS'
12932 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12933 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12934 cross_compiling=$ac_cv_prog_cxx_cross
12935
12936       cat > conftest.$ac_ext <<EOF
12937 #line 12938 "configure"
12938 #include "confdefs.h"
12939 #include <math.h>
12940                       #ifdef HAVE_IEEEFP_H
12941                       #include <ieeefp.h>
12942                       #endif
12943                      
12944 int main() {
12945  isinfl(0);
12946 ; return 0; }
12947 EOF
12948 if { (eval echo configure:12949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12949   rm -rf conftest*
12950   glibcpp_cv_func_isinfl_use=yes
12951 else
12952   echo "configure: failed program was:" >&5
12953   cat conftest.$ac_ext >&5
12954   rm -rf conftest*
12955   glibcpp_cv_func_isinfl_use=no
12956 fi
12957 rm -f conftest*
12958       ac_ext=c
12959 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12960 ac_cpp='$CPP $CPPFLAGS'
12961 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12962 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12963 cross_compiling=$ac_cv_prog_cc_cross
12964
12965     
12966 fi
12967
12968   fi
12969   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
12970
12971   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
12972     for ac_func in isinfl
12973 do
12974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12975 echo "configure:12976: checking for $ac_func" >&5
12976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12977   echo $ac_n "(cached) $ac_c" 1>&6
12978 else
12979   cat > conftest.$ac_ext <<EOF
12980 #line 12981 "configure"
12981 #include "confdefs.h"
12982 /* System header to define __stub macros and hopefully few prototypes,
12983     which can conflict with char $ac_func(); below.  */
12984 #include <assert.h>
12985 /* Override any gcc2 internal prototype to avoid an error.  */
12986 /* We use char because int might match the return type of a gcc2
12987     builtin and then its argument prototype would still apply.  */
12988 char $ac_func();
12989
12990 int main() {
12991
12992 /* The GNU C library defines this for functions which it implements
12993     to always fail with ENOSYS.  Some functions are actually named
12994     something starting with __ and the normal name is an alias.  */
12995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12996 choke me
12997 #else
12998 $ac_func();
12999 #endif
13000
13001 ; return 0; }
13002 EOF
13003 if { (eval echo configure:13004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13004   rm -rf conftest*
13005   eval "ac_cv_func_$ac_func=yes"
13006 else
13007   echo "configure: failed program was:" >&5
13008   cat conftest.$ac_ext >&5
13009   rm -rf conftest*
13010   eval "ac_cv_func_$ac_func=no"
13011 fi
13012 rm -f conftest*
13013 fi
13014
13015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13016   echo "$ac_t""yes" 1>&6
13017     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13018   cat >> confdefs.h <<EOF
13019 #define $ac_tr_func 1
13020 EOF
13021  
13022 else
13023   echo "$ac_t""no" 1>&6
13024 fi
13025 done
13026     
13027   else
13028     
13029   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
13030 echo "configure:13031: checking for _isinfl declaration" >&5
13031   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
13032     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
13033   echo $ac_n "(cached) $ac_c" 1>&6
13034 else
13035   
13036       
13037       ac_ext=C
13038 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13039 ac_cpp='$CXXCPP $CPPFLAGS'
13040 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13041 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13042 cross_compiling=$ac_cv_prog_cxx_cross
13043
13044       cat > conftest.$ac_ext <<EOF
13045 #line 13046 "configure"
13046 #include "confdefs.h"
13047 #include <math.h>
13048                       #ifdef HAVE_IEEEFP_H
13049                       #include <ieeefp.h>
13050                       #endif
13051                      
13052 int main() {
13053  _isinfl(0);
13054 ; return 0; }
13055 EOF
13056 if { (eval echo configure:13057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13057   rm -rf conftest*
13058   glibcpp_cv_func__isinfl_use=yes
13059 else
13060   echo "configure: failed program was:" >&5
13061   cat conftest.$ac_ext >&5
13062   rm -rf conftest*
13063   glibcpp_cv_func__isinfl_use=no
13064 fi
13065 rm -f conftest*
13066       ac_ext=c
13067 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13068 ac_cpp='$CPP $CPPFLAGS'
13069 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13070 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13071 cross_compiling=$ac_cv_prog_cc_cross
13072
13073     
13074 fi
13075
13076   fi
13077   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
13078
13079     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
13080       for ac_func in _isinfl
13081 do
13082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13083 echo "configure:13084: checking for $ac_func" >&5
13084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13085   echo $ac_n "(cached) $ac_c" 1>&6
13086 else
13087   cat > conftest.$ac_ext <<EOF
13088 #line 13089 "configure"
13089 #include "confdefs.h"
13090 /* System header to define __stub macros and hopefully few prototypes,
13091     which can conflict with char $ac_func(); below.  */
13092 #include <assert.h>
13093 /* Override any gcc2 internal prototype to avoid an error.  */
13094 /* We use char because int might match the return type of a gcc2
13095     builtin and then its argument prototype would still apply.  */
13096 char $ac_func();
13097
13098 int main() {
13099
13100 /* The GNU C library defines this for functions which it implements
13101     to always fail with ENOSYS.  Some functions are actually named
13102     something starting with __ and the normal name is an alias.  */
13103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13104 choke me
13105 #else
13106 $ac_func();
13107 #endif
13108
13109 ; return 0; }
13110 EOF
13111 if { (eval echo configure:13112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13112   rm -rf conftest*
13113   eval "ac_cv_func_$ac_func=yes"
13114 else
13115   echo "configure: failed program was:" >&5
13116   cat conftest.$ac_ext >&5
13117   rm -rf conftest*
13118   eval "ac_cv_func_$ac_func=no"
13119 fi
13120 rm -f conftest*
13121 fi
13122
13123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13124   echo "$ac_t""yes" 1>&6
13125     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13126   cat >> confdefs.h <<EOF
13127 #define $ac_tr_func 1
13128 EOF
13129  
13130 else
13131   echo "$ac_t""no" 1>&6
13132 fi
13133 done
13134     
13135     fi
13136   fi
13137
13138   
13139   
13140   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
13141 echo "configure:13142: checking for copysignl declaration" >&5
13142   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
13143     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
13144   echo $ac_n "(cached) $ac_c" 1>&6
13145 else
13146   
13147       
13148       ac_ext=C
13149 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13150 ac_cpp='$CXXCPP $CPPFLAGS'
13151 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13152 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13153 cross_compiling=$ac_cv_prog_cxx_cross
13154
13155       cat > conftest.$ac_ext <<EOF
13156 #line 13157 "configure"
13157 #include "confdefs.h"
13158 #include <math.h>
13159 int main() {
13160  copysignl(0, 0);
13161 ; return 0; }
13162 EOF
13163 if { (eval echo configure:13164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13164   rm -rf conftest*
13165   glibcpp_cv_func_copysignl_use=yes
13166 else
13167   echo "configure: failed program was:" >&5
13168   cat conftest.$ac_ext >&5
13169   rm -rf conftest*
13170   glibcpp_cv_func_copysignl_use=no
13171 fi
13172 rm -f conftest*
13173       ac_ext=c
13174 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13175 ac_cpp='$CPP $CPPFLAGS'
13176 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13177 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13178 cross_compiling=$ac_cv_prog_cc_cross
13179
13180     
13181 fi
13182
13183   fi
13184   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
13185
13186   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
13187     for ac_func in copysignl
13188 do
13189 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13190 echo "configure:13191: checking for $ac_func" >&5
13191 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13192   echo $ac_n "(cached) $ac_c" 1>&6
13193 else
13194   cat > conftest.$ac_ext <<EOF
13195 #line 13196 "configure"
13196 #include "confdefs.h"
13197 /* System header to define __stub macros and hopefully few prototypes,
13198     which can conflict with char $ac_func(); below.  */
13199 #include <assert.h>
13200 /* Override any gcc2 internal prototype to avoid an error.  */
13201 /* We use char because int might match the return type of a gcc2
13202     builtin and then its argument prototype would still apply.  */
13203 char $ac_func();
13204
13205 int main() {
13206
13207 /* The GNU C library defines this for functions which it implements
13208     to always fail with ENOSYS.  Some functions are actually named
13209     something starting with __ and the normal name is an alias.  */
13210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13211 choke me
13212 #else
13213 $ac_func();
13214 #endif
13215
13216 ; return 0; }
13217 EOF
13218 if { (eval echo configure:13219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13219   rm -rf conftest*
13220   eval "ac_cv_func_$ac_func=yes"
13221 else
13222   echo "configure: failed program was:" >&5
13223   cat conftest.$ac_ext >&5
13224   rm -rf conftest*
13225   eval "ac_cv_func_$ac_func=no"
13226 fi
13227 rm -f conftest*
13228 fi
13229
13230 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13231   echo "$ac_t""yes" 1>&6
13232     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13233   cat >> confdefs.h <<EOF
13234 #define $ac_tr_func 1
13235 EOF
13236  
13237 else
13238   echo "$ac_t""no" 1>&6
13239 fi
13240 done
13241     
13242   else
13243     
13244   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
13245 echo "configure:13246: checking for _copysignl declaration" >&5
13246   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
13247     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
13248   echo $ac_n "(cached) $ac_c" 1>&6
13249 else
13250   
13251       
13252       ac_ext=C
13253 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13254 ac_cpp='$CXXCPP $CPPFLAGS'
13255 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13256 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13257 cross_compiling=$ac_cv_prog_cxx_cross
13258
13259       cat > conftest.$ac_ext <<EOF
13260 #line 13261 "configure"
13261 #include "confdefs.h"
13262 #include <math.h>
13263 int main() {
13264  _copysignl(0, 0);
13265 ; return 0; }
13266 EOF
13267 if { (eval echo configure:13268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13268   rm -rf conftest*
13269   glibcpp_cv_func__copysignl_use=yes
13270 else
13271   echo "configure: failed program was:" >&5
13272   cat conftest.$ac_ext >&5
13273   rm -rf conftest*
13274   glibcpp_cv_func__copysignl_use=no
13275 fi
13276 rm -f conftest*
13277       ac_ext=c
13278 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13279 ac_cpp='$CPP $CPPFLAGS'
13280 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13281 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13282 cross_compiling=$ac_cv_prog_cc_cross
13283
13284     
13285 fi
13286
13287   fi
13288   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
13289
13290     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
13291       for ac_func in _copysignl
13292 do
13293 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13294 echo "configure:13295: checking for $ac_func" >&5
13295 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13296   echo $ac_n "(cached) $ac_c" 1>&6
13297 else
13298   cat > conftest.$ac_ext <<EOF
13299 #line 13300 "configure"
13300 #include "confdefs.h"
13301 /* System header to define __stub macros and hopefully few prototypes,
13302     which can conflict with char $ac_func(); below.  */
13303 #include <assert.h>
13304 /* Override any gcc2 internal prototype to avoid an error.  */
13305 /* We use char because int might match the return type of a gcc2
13306     builtin and then its argument prototype would still apply.  */
13307 char $ac_func();
13308
13309 int main() {
13310
13311 /* The GNU C library defines this for functions which it implements
13312     to always fail with ENOSYS.  Some functions are actually named
13313     something starting with __ and the normal name is an alias.  */
13314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13315 choke me
13316 #else
13317 $ac_func();
13318 #endif
13319
13320 ; return 0; }
13321 EOF
13322 if { (eval echo configure:13323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13323   rm -rf conftest*
13324   eval "ac_cv_func_$ac_func=yes"
13325 else
13326   echo "configure: failed program was:" >&5
13327   cat conftest.$ac_ext >&5
13328   rm -rf conftest*
13329   eval "ac_cv_func_$ac_func=no"
13330 fi
13331 rm -f conftest*
13332 fi
13333
13334 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13335   echo "$ac_t""yes" 1>&6
13336     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13337   cat >> confdefs.h <<EOF
13338 #define $ac_tr_func 1
13339 EOF
13340  
13341 else
13342   echo "$ac_t""no" 1>&6
13343 fi
13344 done
13345     
13346     fi
13347   fi
13348
13349   
13350   
13351   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
13352 echo "configure:13353: checking for atan2l declaration" >&5
13353   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
13354     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
13355   echo $ac_n "(cached) $ac_c" 1>&6
13356 else
13357   
13358       
13359       ac_ext=C
13360 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13361 ac_cpp='$CXXCPP $CPPFLAGS'
13362 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13363 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13364 cross_compiling=$ac_cv_prog_cxx_cross
13365
13366       cat > conftest.$ac_ext <<EOF
13367 #line 13368 "configure"
13368 #include "confdefs.h"
13369 #include <math.h>
13370 int main() {
13371  atan2l(0, 0);
13372 ; return 0; }
13373 EOF
13374 if { (eval echo configure:13375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13375   rm -rf conftest*
13376   glibcpp_cv_func_atan2l_use=yes
13377 else
13378   echo "configure: failed program was:" >&5
13379   cat conftest.$ac_ext >&5
13380   rm -rf conftest*
13381   glibcpp_cv_func_atan2l_use=no
13382 fi
13383 rm -f conftest*
13384       ac_ext=c
13385 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13386 ac_cpp='$CPP $CPPFLAGS'
13387 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13388 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13389 cross_compiling=$ac_cv_prog_cc_cross
13390
13391     
13392 fi
13393
13394   fi
13395   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
13396
13397   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
13398     for ac_func in atan2l
13399 do
13400 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13401 echo "configure:13402: checking for $ac_func" >&5
13402 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13403   echo $ac_n "(cached) $ac_c" 1>&6
13404 else
13405   cat > conftest.$ac_ext <<EOF
13406 #line 13407 "configure"
13407 #include "confdefs.h"
13408 /* System header to define __stub macros and hopefully few prototypes,
13409     which can conflict with char $ac_func(); below.  */
13410 #include <assert.h>
13411 /* Override any gcc2 internal prototype to avoid an error.  */
13412 /* We use char because int might match the return type of a gcc2
13413     builtin and then its argument prototype would still apply.  */
13414 char $ac_func();
13415
13416 int main() {
13417
13418 /* The GNU C library defines this for functions which it implements
13419     to always fail with ENOSYS.  Some functions are actually named
13420     something starting with __ and the normal name is an alias.  */
13421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13422 choke me
13423 #else
13424 $ac_func();
13425 #endif
13426
13427 ; return 0; }
13428 EOF
13429 if { (eval echo configure:13430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13430   rm -rf conftest*
13431   eval "ac_cv_func_$ac_func=yes"
13432 else
13433   echo "configure: failed program was:" >&5
13434   cat conftest.$ac_ext >&5
13435   rm -rf conftest*
13436   eval "ac_cv_func_$ac_func=no"
13437 fi
13438 rm -f conftest*
13439 fi
13440
13441 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13442   echo "$ac_t""yes" 1>&6
13443     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13444   cat >> confdefs.h <<EOF
13445 #define $ac_tr_func 1
13446 EOF
13447  
13448 else
13449   echo "$ac_t""no" 1>&6
13450 fi
13451 done
13452     
13453   else
13454     
13455   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
13456 echo "configure:13457: checking for _atan2l declaration" >&5
13457   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
13458     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
13459   echo $ac_n "(cached) $ac_c" 1>&6
13460 else
13461   
13462       
13463       ac_ext=C
13464 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13465 ac_cpp='$CXXCPP $CPPFLAGS'
13466 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13467 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13468 cross_compiling=$ac_cv_prog_cxx_cross
13469
13470       cat > conftest.$ac_ext <<EOF
13471 #line 13472 "configure"
13472 #include "confdefs.h"
13473 #include <math.h>
13474 int main() {
13475  _atan2l(0, 0);
13476 ; return 0; }
13477 EOF
13478 if { (eval echo configure:13479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13479   rm -rf conftest*
13480   glibcpp_cv_func__atan2l_use=yes
13481 else
13482   echo "configure: failed program was:" >&5
13483   cat conftest.$ac_ext >&5
13484   rm -rf conftest*
13485   glibcpp_cv_func__atan2l_use=no
13486 fi
13487 rm -f conftest*
13488       ac_ext=c
13489 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13490 ac_cpp='$CPP $CPPFLAGS'
13491 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13492 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13493 cross_compiling=$ac_cv_prog_cc_cross
13494
13495     
13496 fi
13497
13498   fi
13499   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
13500
13501     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
13502       for ac_func in _atan2l
13503 do
13504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13505 echo "configure:13506: checking for $ac_func" >&5
13506 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13507   echo $ac_n "(cached) $ac_c" 1>&6
13508 else
13509   cat > conftest.$ac_ext <<EOF
13510 #line 13511 "configure"
13511 #include "confdefs.h"
13512 /* System header to define __stub macros and hopefully few prototypes,
13513     which can conflict with char $ac_func(); below.  */
13514 #include <assert.h>
13515 /* Override any gcc2 internal prototype to avoid an error.  */
13516 /* We use char because int might match the return type of a gcc2
13517     builtin and then its argument prototype would still apply.  */
13518 char $ac_func();
13519
13520 int main() {
13521
13522 /* The GNU C library defines this for functions which it implements
13523     to always fail with ENOSYS.  Some functions are actually named
13524     something starting with __ and the normal name is an alias.  */
13525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13526 choke me
13527 #else
13528 $ac_func();
13529 #endif
13530
13531 ; return 0; }
13532 EOF
13533 if { (eval echo configure:13534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13534   rm -rf conftest*
13535   eval "ac_cv_func_$ac_func=yes"
13536 else
13537   echo "configure: failed program was:" >&5
13538   cat conftest.$ac_ext >&5
13539   rm -rf conftest*
13540   eval "ac_cv_func_$ac_func=no"
13541 fi
13542 rm -f conftest*
13543 fi
13544
13545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13546   echo "$ac_t""yes" 1>&6
13547     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13548   cat >> confdefs.h <<EOF
13549 #define $ac_tr_func 1
13550 EOF
13551  
13552 else
13553   echo "$ac_t""no" 1>&6
13554 fi
13555 done
13556     
13557     fi
13558   fi
13559
13560   
13561   
13562   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
13563 echo "configure:13564: checking for expl declaration" >&5
13564   if test x${glibcpp_cv_func_expl_use+set} != xset; then
13565     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
13566   echo $ac_n "(cached) $ac_c" 1>&6
13567 else
13568   
13569       
13570       ac_ext=C
13571 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13572 ac_cpp='$CXXCPP $CPPFLAGS'
13573 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13574 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13575 cross_compiling=$ac_cv_prog_cxx_cross
13576
13577       cat > conftest.$ac_ext <<EOF
13578 #line 13579 "configure"
13579 #include "confdefs.h"
13580 #include <math.h>
13581                       #ifdef HAVE_IEEEFP_H
13582                       #include <ieeefp.h>
13583                       #endif
13584                      
13585 int main() {
13586  expl(0);
13587 ; return 0; }
13588 EOF
13589 if { (eval echo configure:13590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13590   rm -rf conftest*
13591   glibcpp_cv_func_expl_use=yes
13592 else
13593   echo "configure: failed program was:" >&5
13594   cat conftest.$ac_ext >&5
13595   rm -rf conftest*
13596   glibcpp_cv_func_expl_use=no
13597 fi
13598 rm -f conftest*
13599       ac_ext=c
13600 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13601 ac_cpp='$CPP $CPPFLAGS'
13602 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13603 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13604 cross_compiling=$ac_cv_prog_cc_cross
13605
13606     
13607 fi
13608
13609   fi
13610   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
13611
13612   if test x$glibcpp_cv_func_expl_use = x"yes"; then
13613     for ac_func in expl
13614 do
13615 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13616 echo "configure:13617: checking for $ac_func" >&5
13617 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13618   echo $ac_n "(cached) $ac_c" 1>&6
13619 else
13620   cat > conftest.$ac_ext <<EOF
13621 #line 13622 "configure"
13622 #include "confdefs.h"
13623 /* System header to define __stub macros and hopefully few prototypes,
13624     which can conflict with char $ac_func(); below.  */
13625 #include <assert.h>
13626 /* Override any gcc2 internal prototype to avoid an error.  */
13627 /* We use char because int might match the return type of a gcc2
13628     builtin and then its argument prototype would still apply.  */
13629 char $ac_func();
13630
13631 int main() {
13632
13633 /* The GNU C library defines this for functions which it implements
13634     to always fail with ENOSYS.  Some functions are actually named
13635     something starting with __ and the normal name is an alias.  */
13636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13637 choke me
13638 #else
13639 $ac_func();
13640 #endif
13641
13642 ; return 0; }
13643 EOF
13644 if { (eval echo configure:13645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13645   rm -rf conftest*
13646   eval "ac_cv_func_$ac_func=yes"
13647 else
13648   echo "configure: failed program was:" >&5
13649   cat conftest.$ac_ext >&5
13650   rm -rf conftest*
13651   eval "ac_cv_func_$ac_func=no"
13652 fi
13653 rm -f conftest*
13654 fi
13655
13656 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13657   echo "$ac_t""yes" 1>&6
13658     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13659   cat >> confdefs.h <<EOF
13660 #define $ac_tr_func 1
13661 EOF
13662  
13663 else
13664   echo "$ac_t""no" 1>&6
13665 fi
13666 done
13667     
13668   else
13669     
13670   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
13671 echo "configure:13672: checking for _expl declaration" >&5
13672   if test x${glibcpp_cv_func__expl_use+set} != xset; then
13673     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
13674   echo $ac_n "(cached) $ac_c" 1>&6
13675 else
13676   
13677       
13678       ac_ext=C
13679 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13680 ac_cpp='$CXXCPP $CPPFLAGS'
13681 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13682 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13683 cross_compiling=$ac_cv_prog_cxx_cross
13684
13685       cat > conftest.$ac_ext <<EOF
13686 #line 13687 "configure"
13687 #include "confdefs.h"
13688 #include <math.h>
13689                       #ifdef HAVE_IEEEFP_H
13690                       #include <ieeefp.h>
13691                       #endif
13692                      
13693 int main() {
13694  _expl(0);
13695 ; return 0; }
13696 EOF
13697 if { (eval echo configure:13698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13698   rm -rf conftest*
13699   glibcpp_cv_func__expl_use=yes
13700 else
13701   echo "configure: failed program was:" >&5
13702   cat conftest.$ac_ext >&5
13703   rm -rf conftest*
13704   glibcpp_cv_func__expl_use=no
13705 fi
13706 rm -f conftest*
13707       ac_ext=c
13708 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13709 ac_cpp='$CPP $CPPFLAGS'
13710 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13711 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13712 cross_compiling=$ac_cv_prog_cc_cross
13713
13714     
13715 fi
13716
13717   fi
13718   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
13719
13720     if test x$glibcpp_cv_func__expl_use = x"yes"; then
13721       for ac_func in _expl
13722 do
13723 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13724 echo "configure:13725: checking for $ac_func" >&5
13725 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13726   echo $ac_n "(cached) $ac_c" 1>&6
13727 else
13728   cat > conftest.$ac_ext <<EOF
13729 #line 13730 "configure"
13730 #include "confdefs.h"
13731 /* System header to define __stub macros and hopefully few prototypes,
13732     which can conflict with char $ac_func(); below.  */
13733 #include <assert.h>
13734 /* Override any gcc2 internal prototype to avoid an error.  */
13735 /* We use char because int might match the return type of a gcc2
13736     builtin and then its argument prototype would still apply.  */
13737 char $ac_func();
13738
13739 int main() {
13740
13741 /* The GNU C library defines this for functions which it implements
13742     to always fail with ENOSYS.  Some functions are actually named
13743     something starting with __ and the normal name is an alias.  */
13744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13745 choke me
13746 #else
13747 $ac_func();
13748 #endif
13749
13750 ; return 0; }
13751 EOF
13752 if { (eval echo configure:13753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13753   rm -rf conftest*
13754   eval "ac_cv_func_$ac_func=yes"
13755 else
13756   echo "configure: failed program was:" >&5
13757   cat conftest.$ac_ext >&5
13758   rm -rf conftest*
13759   eval "ac_cv_func_$ac_func=no"
13760 fi
13761 rm -f conftest*
13762 fi
13763
13764 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13765   echo "$ac_t""yes" 1>&6
13766     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13767   cat >> confdefs.h <<EOF
13768 #define $ac_tr_func 1
13769 EOF
13770  
13771 else
13772   echo "$ac_t""no" 1>&6
13773 fi
13774 done
13775     
13776     fi
13777   fi
13778
13779   
13780   
13781   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
13782 echo "configure:13783: checking for fabsl declaration" >&5
13783   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
13784     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
13785   echo $ac_n "(cached) $ac_c" 1>&6
13786 else
13787   
13788       
13789       ac_ext=C
13790 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13791 ac_cpp='$CXXCPP $CPPFLAGS'
13792 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13793 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13794 cross_compiling=$ac_cv_prog_cxx_cross
13795
13796       cat > conftest.$ac_ext <<EOF
13797 #line 13798 "configure"
13798 #include "confdefs.h"
13799 #include <math.h>
13800                       #ifdef HAVE_IEEEFP_H
13801                       #include <ieeefp.h>
13802                       #endif
13803                      
13804 int main() {
13805  fabsl(0);
13806 ; return 0; }
13807 EOF
13808 if { (eval echo configure:13809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13809   rm -rf conftest*
13810   glibcpp_cv_func_fabsl_use=yes
13811 else
13812   echo "configure: failed program was:" >&5
13813   cat conftest.$ac_ext >&5
13814   rm -rf conftest*
13815   glibcpp_cv_func_fabsl_use=no
13816 fi
13817 rm -f conftest*
13818       ac_ext=c
13819 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13820 ac_cpp='$CPP $CPPFLAGS'
13821 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13822 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13823 cross_compiling=$ac_cv_prog_cc_cross
13824
13825     
13826 fi
13827
13828   fi
13829   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
13830
13831   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
13832     for ac_func in fabsl
13833 do
13834 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13835 echo "configure:13836: checking for $ac_func" >&5
13836 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13837   echo $ac_n "(cached) $ac_c" 1>&6
13838 else
13839   cat > conftest.$ac_ext <<EOF
13840 #line 13841 "configure"
13841 #include "confdefs.h"
13842 /* System header to define __stub macros and hopefully few prototypes,
13843     which can conflict with char $ac_func(); below.  */
13844 #include <assert.h>
13845 /* Override any gcc2 internal prototype to avoid an error.  */
13846 /* We use char because int might match the return type of a gcc2
13847     builtin and then its argument prototype would still apply.  */
13848 char $ac_func();
13849
13850 int main() {
13851
13852 /* The GNU C library defines this for functions which it implements
13853     to always fail with ENOSYS.  Some functions are actually named
13854     something starting with __ and the normal name is an alias.  */
13855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13856 choke me
13857 #else
13858 $ac_func();
13859 #endif
13860
13861 ; return 0; }
13862 EOF
13863 if { (eval echo configure:13864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13864   rm -rf conftest*
13865   eval "ac_cv_func_$ac_func=yes"
13866 else
13867   echo "configure: failed program was:" >&5
13868   cat conftest.$ac_ext >&5
13869   rm -rf conftest*
13870   eval "ac_cv_func_$ac_func=no"
13871 fi
13872 rm -f conftest*
13873 fi
13874
13875 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13876   echo "$ac_t""yes" 1>&6
13877     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13878   cat >> confdefs.h <<EOF
13879 #define $ac_tr_func 1
13880 EOF
13881  
13882 else
13883   echo "$ac_t""no" 1>&6
13884 fi
13885 done
13886     
13887   else
13888     
13889   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
13890 echo "configure:13891: checking for _fabsl declaration" >&5
13891   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
13892     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
13893   echo $ac_n "(cached) $ac_c" 1>&6
13894 else
13895   
13896       
13897       ac_ext=C
13898 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13899 ac_cpp='$CXXCPP $CPPFLAGS'
13900 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13901 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13902 cross_compiling=$ac_cv_prog_cxx_cross
13903
13904       cat > conftest.$ac_ext <<EOF
13905 #line 13906 "configure"
13906 #include "confdefs.h"
13907 #include <math.h>
13908                       #ifdef HAVE_IEEEFP_H
13909                       #include <ieeefp.h>
13910                       #endif
13911                      
13912 int main() {
13913  _fabsl(0);
13914 ; return 0; }
13915 EOF
13916 if { (eval echo configure:13917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13917   rm -rf conftest*
13918   glibcpp_cv_func__fabsl_use=yes
13919 else
13920   echo "configure: failed program was:" >&5
13921   cat conftest.$ac_ext >&5
13922   rm -rf conftest*
13923   glibcpp_cv_func__fabsl_use=no
13924 fi
13925 rm -f conftest*
13926       ac_ext=c
13927 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13928 ac_cpp='$CPP $CPPFLAGS'
13929 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13930 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13931 cross_compiling=$ac_cv_prog_cc_cross
13932
13933     
13934 fi
13935
13936   fi
13937   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
13938
13939     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
13940       for ac_func in _fabsl
13941 do
13942 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13943 echo "configure:13944: checking for $ac_func" >&5
13944 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13945   echo $ac_n "(cached) $ac_c" 1>&6
13946 else
13947   cat > conftest.$ac_ext <<EOF
13948 #line 13949 "configure"
13949 #include "confdefs.h"
13950 /* System header to define __stub macros and hopefully few prototypes,
13951     which can conflict with char $ac_func(); below.  */
13952 #include <assert.h>
13953 /* Override any gcc2 internal prototype to avoid an error.  */
13954 /* We use char because int might match the return type of a gcc2
13955     builtin and then its argument prototype would still apply.  */
13956 char $ac_func();
13957
13958 int main() {
13959
13960 /* The GNU C library defines this for functions which it implements
13961     to always fail with ENOSYS.  Some functions are actually named
13962     something starting with __ and the normal name is an alias.  */
13963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13964 choke me
13965 #else
13966 $ac_func();
13967 #endif
13968
13969 ; return 0; }
13970 EOF
13971 if { (eval echo configure:13972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13972   rm -rf conftest*
13973   eval "ac_cv_func_$ac_func=yes"
13974 else
13975   echo "configure: failed program was:" >&5
13976   cat conftest.$ac_ext >&5
13977   rm -rf conftest*
13978   eval "ac_cv_func_$ac_func=no"
13979 fi
13980 rm -f conftest*
13981 fi
13982
13983 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13984   echo "$ac_t""yes" 1>&6
13985     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13986   cat >> confdefs.h <<EOF
13987 #define $ac_tr_func 1
13988 EOF
13989  
13990 else
13991   echo "$ac_t""no" 1>&6
13992 fi
13993 done
13994     
13995     fi
13996   fi
13997
13998   
13999   
14000   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
14001 echo "configure:14002: checking for fmodl declaration" >&5
14002   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
14003     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
14004   echo $ac_n "(cached) $ac_c" 1>&6
14005 else
14006   
14007       
14008       ac_ext=C
14009 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14010 ac_cpp='$CXXCPP $CPPFLAGS'
14011 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14012 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14013 cross_compiling=$ac_cv_prog_cxx_cross
14014
14015       cat > conftest.$ac_ext <<EOF
14016 #line 14017 "configure"
14017 #include "confdefs.h"
14018 #include <math.h>
14019 int main() {
14020  fmodl(0, 0);
14021 ; return 0; }
14022 EOF
14023 if { (eval echo configure:14024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14024   rm -rf conftest*
14025   glibcpp_cv_func_fmodl_use=yes
14026 else
14027   echo "configure: failed program was:" >&5
14028   cat conftest.$ac_ext >&5
14029   rm -rf conftest*
14030   glibcpp_cv_func_fmodl_use=no
14031 fi
14032 rm -f conftest*
14033       ac_ext=c
14034 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14035 ac_cpp='$CPP $CPPFLAGS'
14036 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14037 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14038 cross_compiling=$ac_cv_prog_cc_cross
14039
14040     
14041 fi
14042
14043   fi
14044   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
14045
14046   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
14047     for ac_func in fmodl
14048 do
14049 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14050 echo "configure:14051: checking for $ac_func" >&5
14051 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14052   echo $ac_n "(cached) $ac_c" 1>&6
14053 else
14054   cat > conftest.$ac_ext <<EOF
14055 #line 14056 "configure"
14056 #include "confdefs.h"
14057 /* System header to define __stub macros and hopefully few prototypes,
14058     which can conflict with char $ac_func(); below.  */
14059 #include <assert.h>
14060 /* Override any gcc2 internal prototype to avoid an error.  */
14061 /* We use char because int might match the return type of a gcc2
14062     builtin and then its argument prototype would still apply.  */
14063 char $ac_func();
14064
14065 int main() {
14066
14067 /* The GNU C library defines this for functions which it implements
14068     to always fail with ENOSYS.  Some functions are actually named
14069     something starting with __ and the normal name is an alias.  */
14070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14071 choke me
14072 #else
14073 $ac_func();
14074 #endif
14075
14076 ; return 0; }
14077 EOF
14078 if { (eval echo configure:14079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14079   rm -rf conftest*
14080   eval "ac_cv_func_$ac_func=yes"
14081 else
14082   echo "configure: failed program was:" >&5
14083   cat conftest.$ac_ext >&5
14084   rm -rf conftest*
14085   eval "ac_cv_func_$ac_func=no"
14086 fi
14087 rm -f conftest*
14088 fi
14089
14090 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14091   echo "$ac_t""yes" 1>&6
14092     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14093   cat >> confdefs.h <<EOF
14094 #define $ac_tr_func 1
14095 EOF
14096  
14097 else
14098   echo "$ac_t""no" 1>&6
14099 fi
14100 done
14101     
14102   else
14103     
14104   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
14105 echo "configure:14106: checking for _fmodl declaration" >&5
14106   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
14107     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
14108   echo $ac_n "(cached) $ac_c" 1>&6
14109 else
14110   
14111       
14112       ac_ext=C
14113 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14114 ac_cpp='$CXXCPP $CPPFLAGS'
14115 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14116 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14117 cross_compiling=$ac_cv_prog_cxx_cross
14118
14119       cat > conftest.$ac_ext <<EOF
14120 #line 14121 "configure"
14121 #include "confdefs.h"
14122 #include <math.h>
14123 int main() {
14124  _fmodl(0, 0);
14125 ; return 0; }
14126 EOF
14127 if { (eval echo configure:14128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14128   rm -rf conftest*
14129   glibcpp_cv_func__fmodl_use=yes
14130 else
14131   echo "configure: failed program was:" >&5
14132   cat conftest.$ac_ext >&5
14133   rm -rf conftest*
14134   glibcpp_cv_func__fmodl_use=no
14135 fi
14136 rm -f conftest*
14137       ac_ext=c
14138 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14139 ac_cpp='$CPP $CPPFLAGS'
14140 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14141 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14142 cross_compiling=$ac_cv_prog_cc_cross
14143
14144     
14145 fi
14146
14147   fi
14148   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
14149
14150     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
14151       for ac_func in _fmodl
14152 do
14153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14154 echo "configure:14155: checking for $ac_func" >&5
14155 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14156   echo $ac_n "(cached) $ac_c" 1>&6
14157 else
14158   cat > conftest.$ac_ext <<EOF
14159 #line 14160 "configure"
14160 #include "confdefs.h"
14161 /* System header to define __stub macros and hopefully few prototypes,
14162     which can conflict with char $ac_func(); below.  */
14163 #include <assert.h>
14164 /* Override any gcc2 internal prototype to avoid an error.  */
14165 /* We use char because int might match the return type of a gcc2
14166     builtin and then its argument prototype would still apply.  */
14167 char $ac_func();
14168
14169 int main() {
14170
14171 /* The GNU C library defines this for functions which it implements
14172     to always fail with ENOSYS.  Some functions are actually named
14173     something starting with __ and the normal name is an alias.  */
14174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14175 choke me
14176 #else
14177 $ac_func();
14178 #endif
14179
14180 ; return 0; }
14181 EOF
14182 if { (eval echo configure:14183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14183   rm -rf conftest*
14184   eval "ac_cv_func_$ac_func=yes"
14185 else
14186   echo "configure: failed program was:" >&5
14187   cat conftest.$ac_ext >&5
14188   rm -rf conftest*
14189   eval "ac_cv_func_$ac_func=no"
14190 fi
14191 rm -f conftest*
14192 fi
14193
14194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14195   echo "$ac_t""yes" 1>&6
14196     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14197   cat >> confdefs.h <<EOF
14198 #define $ac_tr_func 1
14199 EOF
14200  
14201 else
14202   echo "$ac_t""no" 1>&6
14203 fi
14204 done
14205     
14206     fi
14207   fi
14208
14209   
14210   
14211   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
14212 echo "configure:14213: checking for frexpl declaration" >&5
14213   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
14214     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
14215   echo $ac_n "(cached) $ac_c" 1>&6
14216 else
14217   
14218       
14219       ac_ext=C
14220 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14221 ac_cpp='$CXXCPP $CPPFLAGS'
14222 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14223 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14224 cross_compiling=$ac_cv_prog_cxx_cross
14225
14226       cat > conftest.$ac_ext <<EOF
14227 #line 14228 "configure"
14228 #include "confdefs.h"
14229 #include <math.h>
14230 int main() {
14231  frexpl(0, 0);
14232 ; return 0; }
14233 EOF
14234 if { (eval echo configure:14235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14235   rm -rf conftest*
14236   glibcpp_cv_func_frexpl_use=yes
14237 else
14238   echo "configure: failed program was:" >&5
14239   cat conftest.$ac_ext >&5
14240   rm -rf conftest*
14241   glibcpp_cv_func_frexpl_use=no
14242 fi
14243 rm -f conftest*
14244       ac_ext=c
14245 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14246 ac_cpp='$CPP $CPPFLAGS'
14247 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14248 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14249 cross_compiling=$ac_cv_prog_cc_cross
14250
14251     
14252 fi
14253
14254   fi
14255   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
14256
14257   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
14258     for ac_func in frexpl
14259 do
14260 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14261 echo "configure:14262: checking for $ac_func" >&5
14262 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14263   echo $ac_n "(cached) $ac_c" 1>&6
14264 else
14265   cat > conftest.$ac_ext <<EOF
14266 #line 14267 "configure"
14267 #include "confdefs.h"
14268 /* System header to define __stub macros and hopefully few prototypes,
14269     which can conflict with char $ac_func(); below.  */
14270 #include <assert.h>
14271 /* Override any gcc2 internal prototype to avoid an error.  */
14272 /* We use char because int might match the return type of a gcc2
14273     builtin and then its argument prototype would still apply.  */
14274 char $ac_func();
14275
14276 int main() {
14277
14278 /* The GNU C library defines this for functions which it implements
14279     to always fail with ENOSYS.  Some functions are actually named
14280     something starting with __ and the normal name is an alias.  */
14281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14282 choke me
14283 #else
14284 $ac_func();
14285 #endif
14286
14287 ; return 0; }
14288 EOF
14289 if { (eval echo configure:14290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14290   rm -rf conftest*
14291   eval "ac_cv_func_$ac_func=yes"
14292 else
14293   echo "configure: failed program was:" >&5
14294   cat conftest.$ac_ext >&5
14295   rm -rf conftest*
14296   eval "ac_cv_func_$ac_func=no"
14297 fi
14298 rm -f conftest*
14299 fi
14300
14301 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14302   echo "$ac_t""yes" 1>&6
14303     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14304   cat >> confdefs.h <<EOF
14305 #define $ac_tr_func 1
14306 EOF
14307  
14308 else
14309   echo "$ac_t""no" 1>&6
14310 fi
14311 done
14312     
14313   else
14314     
14315   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
14316 echo "configure:14317: checking for _frexpl declaration" >&5
14317   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
14318     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
14319   echo $ac_n "(cached) $ac_c" 1>&6
14320 else
14321   
14322       
14323       ac_ext=C
14324 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14325 ac_cpp='$CXXCPP $CPPFLAGS'
14326 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14327 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14328 cross_compiling=$ac_cv_prog_cxx_cross
14329
14330       cat > conftest.$ac_ext <<EOF
14331 #line 14332 "configure"
14332 #include "confdefs.h"
14333 #include <math.h>
14334 int main() {
14335  _frexpl(0, 0);
14336 ; return 0; }
14337 EOF
14338 if { (eval echo configure:14339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14339   rm -rf conftest*
14340   glibcpp_cv_func__frexpl_use=yes
14341 else
14342   echo "configure: failed program was:" >&5
14343   cat conftest.$ac_ext >&5
14344   rm -rf conftest*
14345   glibcpp_cv_func__frexpl_use=no
14346 fi
14347 rm -f conftest*
14348       ac_ext=c
14349 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14350 ac_cpp='$CPP $CPPFLAGS'
14351 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14352 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14353 cross_compiling=$ac_cv_prog_cc_cross
14354
14355     
14356 fi
14357
14358   fi
14359   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
14360
14361     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
14362       for ac_func in _frexpl
14363 do
14364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14365 echo "configure:14366: checking for $ac_func" >&5
14366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14367   echo $ac_n "(cached) $ac_c" 1>&6
14368 else
14369   cat > conftest.$ac_ext <<EOF
14370 #line 14371 "configure"
14371 #include "confdefs.h"
14372 /* System header to define __stub macros and hopefully few prototypes,
14373     which can conflict with char $ac_func(); below.  */
14374 #include <assert.h>
14375 /* Override any gcc2 internal prototype to avoid an error.  */
14376 /* We use char because int might match the return type of a gcc2
14377     builtin and then its argument prototype would still apply.  */
14378 char $ac_func();
14379
14380 int main() {
14381
14382 /* The GNU C library defines this for functions which it implements
14383     to always fail with ENOSYS.  Some functions are actually named
14384     something starting with __ and the normal name is an alias.  */
14385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14386 choke me
14387 #else
14388 $ac_func();
14389 #endif
14390
14391 ; return 0; }
14392 EOF
14393 if { (eval echo configure:14394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14394   rm -rf conftest*
14395   eval "ac_cv_func_$ac_func=yes"
14396 else
14397   echo "configure: failed program was:" >&5
14398   cat conftest.$ac_ext >&5
14399   rm -rf conftest*
14400   eval "ac_cv_func_$ac_func=no"
14401 fi
14402 rm -f conftest*
14403 fi
14404
14405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14406   echo "$ac_t""yes" 1>&6
14407     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14408   cat >> confdefs.h <<EOF
14409 #define $ac_tr_func 1
14410 EOF
14411  
14412 else
14413   echo "$ac_t""no" 1>&6
14414 fi
14415 done
14416     
14417     fi
14418   fi
14419
14420   
14421   
14422   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
14423 echo "configure:14424: checking for hypotl declaration" >&5
14424   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
14425     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
14426   echo $ac_n "(cached) $ac_c" 1>&6
14427 else
14428   
14429       
14430       ac_ext=C
14431 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14432 ac_cpp='$CXXCPP $CPPFLAGS'
14433 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14434 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14435 cross_compiling=$ac_cv_prog_cxx_cross
14436
14437       cat > conftest.$ac_ext <<EOF
14438 #line 14439 "configure"
14439 #include "confdefs.h"
14440 #include <math.h>
14441 int main() {
14442  hypotl(0, 0);
14443 ; return 0; }
14444 EOF
14445 if { (eval echo configure:14446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14446   rm -rf conftest*
14447   glibcpp_cv_func_hypotl_use=yes
14448 else
14449   echo "configure: failed program was:" >&5
14450   cat conftest.$ac_ext >&5
14451   rm -rf conftest*
14452   glibcpp_cv_func_hypotl_use=no
14453 fi
14454 rm -f conftest*
14455       ac_ext=c
14456 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14457 ac_cpp='$CPP $CPPFLAGS'
14458 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14459 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14460 cross_compiling=$ac_cv_prog_cc_cross
14461
14462     
14463 fi
14464
14465   fi
14466   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
14467
14468   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
14469     for ac_func in hypotl
14470 do
14471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14472 echo "configure:14473: checking for $ac_func" >&5
14473 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14474   echo $ac_n "(cached) $ac_c" 1>&6
14475 else
14476   cat > conftest.$ac_ext <<EOF
14477 #line 14478 "configure"
14478 #include "confdefs.h"
14479 /* System header to define __stub macros and hopefully few prototypes,
14480     which can conflict with char $ac_func(); below.  */
14481 #include <assert.h>
14482 /* Override any gcc2 internal prototype to avoid an error.  */
14483 /* We use char because int might match the return type of a gcc2
14484     builtin and then its argument prototype would still apply.  */
14485 char $ac_func();
14486
14487 int main() {
14488
14489 /* The GNU C library defines this for functions which it implements
14490     to always fail with ENOSYS.  Some functions are actually named
14491     something starting with __ and the normal name is an alias.  */
14492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14493 choke me
14494 #else
14495 $ac_func();
14496 #endif
14497
14498 ; return 0; }
14499 EOF
14500 if { (eval echo configure:14501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14501   rm -rf conftest*
14502   eval "ac_cv_func_$ac_func=yes"
14503 else
14504   echo "configure: failed program was:" >&5
14505   cat conftest.$ac_ext >&5
14506   rm -rf conftest*
14507   eval "ac_cv_func_$ac_func=no"
14508 fi
14509 rm -f conftest*
14510 fi
14511
14512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14513   echo "$ac_t""yes" 1>&6
14514     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14515   cat >> confdefs.h <<EOF
14516 #define $ac_tr_func 1
14517 EOF
14518  
14519 else
14520   echo "$ac_t""no" 1>&6
14521 fi
14522 done
14523     
14524   else
14525     
14526   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
14527 echo "configure:14528: checking for _hypotl declaration" >&5
14528   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
14529     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
14530   echo $ac_n "(cached) $ac_c" 1>&6
14531 else
14532   
14533       
14534       ac_ext=C
14535 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14536 ac_cpp='$CXXCPP $CPPFLAGS'
14537 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14538 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14539 cross_compiling=$ac_cv_prog_cxx_cross
14540
14541       cat > conftest.$ac_ext <<EOF
14542 #line 14543 "configure"
14543 #include "confdefs.h"
14544 #include <math.h>
14545 int main() {
14546  _hypotl(0, 0);
14547 ; return 0; }
14548 EOF
14549 if { (eval echo configure:14550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14550   rm -rf conftest*
14551   glibcpp_cv_func__hypotl_use=yes
14552 else
14553   echo "configure: failed program was:" >&5
14554   cat conftest.$ac_ext >&5
14555   rm -rf conftest*
14556   glibcpp_cv_func__hypotl_use=no
14557 fi
14558 rm -f conftest*
14559       ac_ext=c
14560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14561 ac_cpp='$CPP $CPPFLAGS'
14562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14564 cross_compiling=$ac_cv_prog_cc_cross
14565
14566     
14567 fi
14568
14569   fi
14570   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
14571
14572     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
14573       for ac_func in _hypotl
14574 do
14575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14576 echo "configure:14577: checking for $ac_func" >&5
14577 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14578   echo $ac_n "(cached) $ac_c" 1>&6
14579 else
14580   cat > conftest.$ac_ext <<EOF
14581 #line 14582 "configure"
14582 #include "confdefs.h"
14583 /* System header to define __stub macros and hopefully few prototypes,
14584     which can conflict with char $ac_func(); below.  */
14585 #include <assert.h>
14586 /* Override any gcc2 internal prototype to avoid an error.  */
14587 /* We use char because int might match the return type of a gcc2
14588     builtin and then its argument prototype would still apply.  */
14589 char $ac_func();
14590
14591 int main() {
14592
14593 /* The GNU C library defines this for functions which it implements
14594     to always fail with ENOSYS.  Some functions are actually named
14595     something starting with __ and the normal name is an alias.  */
14596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14597 choke me
14598 #else
14599 $ac_func();
14600 #endif
14601
14602 ; return 0; }
14603 EOF
14604 if { (eval echo configure:14605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14605   rm -rf conftest*
14606   eval "ac_cv_func_$ac_func=yes"
14607 else
14608   echo "configure: failed program was:" >&5
14609   cat conftest.$ac_ext >&5
14610   rm -rf conftest*
14611   eval "ac_cv_func_$ac_func=no"
14612 fi
14613 rm -f conftest*
14614 fi
14615
14616 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14617   echo "$ac_t""yes" 1>&6
14618     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14619   cat >> confdefs.h <<EOF
14620 #define $ac_tr_func 1
14621 EOF
14622  
14623 else
14624   echo "$ac_t""no" 1>&6
14625 fi
14626 done
14627     
14628     fi
14629   fi
14630
14631   
14632   
14633   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
14634 echo "configure:14635: checking for ldexpl declaration" >&5
14635   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
14636     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
14637   echo $ac_n "(cached) $ac_c" 1>&6
14638 else
14639   
14640       
14641       ac_ext=C
14642 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14643 ac_cpp='$CXXCPP $CPPFLAGS'
14644 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14645 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14646 cross_compiling=$ac_cv_prog_cxx_cross
14647
14648       cat > conftest.$ac_ext <<EOF
14649 #line 14650 "configure"
14650 #include "confdefs.h"
14651 #include <math.h>
14652 int main() {
14653  ldexpl(0, 0);
14654 ; return 0; }
14655 EOF
14656 if { (eval echo configure:14657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14657   rm -rf conftest*
14658   glibcpp_cv_func_ldexpl_use=yes
14659 else
14660   echo "configure: failed program was:" >&5
14661   cat conftest.$ac_ext >&5
14662   rm -rf conftest*
14663   glibcpp_cv_func_ldexpl_use=no
14664 fi
14665 rm -f conftest*
14666       ac_ext=c
14667 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14668 ac_cpp='$CPP $CPPFLAGS'
14669 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14670 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14671 cross_compiling=$ac_cv_prog_cc_cross
14672
14673     
14674 fi
14675
14676   fi
14677   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
14678
14679   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
14680     for ac_func in ldexpl
14681 do
14682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14683 echo "configure:14684: checking for $ac_func" >&5
14684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14685   echo $ac_n "(cached) $ac_c" 1>&6
14686 else
14687   cat > conftest.$ac_ext <<EOF
14688 #line 14689 "configure"
14689 #include "confdefs.h"
14690 /* System header to define __stub macros and hopefully few prototypes,
14691     which can conflict with char $ac_func(); below.  */
14692 #include <assert.h>
14693 /* Override any gcc2 internal prototype to avoid an error.  */
14694 /* We use char because int might match the return type of a gcc2
14695     builtin and then its argument prototype would still apply.  */
14696 char $ac_func();
14697
14698 int main() {
14699
14700 /* The GNU C library defines this for functions which it implements
14701     to always fail with ENOSYS.  Some functions are actually named
14702     something starting with __ and the normal name is an alias.  */
14703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14704 choke me
14705 #else
14706 $ac_func();
14707 #endif
14708
14709 ; return 0; }
14710 EOF
14711 if { (eval echo configure:14712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14712   rm -rf conftest*
14713   eval "ac_cv_func_$ac_func=yes"
14714 else
14715   echo "configure: failed program was:" >&5
14716   cat conftest.$ac_ext >&5
14717   rm -rf conftest*
14718   eval "ac_cv_func_$ac_func=no"
14719 fi
14720 rm -f conftest*
14721 fi
14722
14723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14724   echo "$ac_t""yes" 1>&6
14725     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14726   cat >> confdefs.h <<EOF
14727 #define $ac_tr_func 1
14728 EOF
14729  
14730 else
14731   echo "$ac_t""no" 1>&6
14732 fi
14733 done
14734     
14735   else
14736     
14737   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
14738 echo "configure:14739: checking for _ldexpl declaration" >&5
14739   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
14740     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
14741   echo $ac_n "(cached) $ac_c" 1>&6
14742 else
14743   
14744       
14745       ac_ext=C
14746 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14747 ac_cpp='$CXXCPP $CPPFLAGS'
14748 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14749 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14750 cross_compiling=$ac_cv_prog_cxx_cross
14751
14752       cat > conftest.$ac_ext <<EOF
14753 #line 14754 "configure"
14754 #include "confdefs.h"
14755 #include <math.h>
14756 int main() {
14757  _ldexpl(0, 0);
14758 ; return 0; }
14759 EOF
14760 if { (eval echo configure:14761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14761   rm -rf conftest*
14762   glibcpp_cv_func__ldexpl_use=yes
14763 else
14764   echo "configure: failed program was:" >&5
14765   cat conftest.$ac_ext >&5
14766   rm -rf conftest*
14767   glibcpp_cv_func__ldexpl_use=no
14768 fi
14769 rm -f conftest*
14770       ac_ext=c
14771 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14772 ac_cpp='$CPP $CPPFLAGS'
14773 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14774 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14775 cross_compiling=$ac_cv_prog_cc_cross
14776
14777     
14778 fi
14779
14780   fi
14781   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
14782
14783     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
14784       for ac_func in _ldexpl
14785 do
14786 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14787 echo "configure:14788: checking for $ac_func" >&5
14788 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14789   echo $ac_n "(cached) $ac_c" 1>&6
14790 else
14791   cat > conftest.$ac_ext <<EOF
14792 #line 14793 "configure"
14793 #include "confdefs.h"
14794 /* System header to define __stub macros and hopefully few prototypes,
14795     which can conflict with char $ac_func(); below.  */
14796 #include <assert.h>
14797 /* Override any gcc2 internal prototype to avoid an error.  */
14798 /* We use char because int might match the return type of a gcc2
14799     builtin and then its argument prototype would still apply.  */
14800 char $ac_func();
14801
14802 int main() {
14803
14804 /* The GNU C library defines this for functions which it implements
14805     to always fail with ENOSYS.  Some functions are actually named
14806     something starting with __ and the normal name is an alias.  */
14807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14808 choke me
14809 #else
14810 $ac_func();
14811 #endif
14812
14813 ; return 0; }
14814 EOF
14815 if { (eval echo configure:14816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14816   rm -rf conftest*
14817   eval "ac_cv_func_$ac_func=yes"
14818 else
14819   echo "configure: failed program was:" >&5
14820   cat conftest.$ac_ext >&5
14821   rm -rf conftest*
14822   eval "ac_cv_func_$ac_func=no"
14823 fi
14824 rm -f conftest*
14825 fi
14826
14827 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14828   echo "$ac_t""yes" 1>&6
14829     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14830   cat >> confdefs.h <<EOF
14831 #define $ac_tr_func 1
14832 EOF
14833  
14834 else
14835   echo "$ac_t""no" 1>&6
14836 fi
14837 done
14838     
14839     fi
14840   fi
14841
14842   
14843   
14844   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
14845 echo "configure:14846: checking for logl declaration" >&5
14846   if test x${glibcpp_cv_func_logl_use+set} != xset; then
14847     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
14848   echo $ac_n "(cached) $ac_c" 1>&6
14849 else
14850   
14851       
14852       ac_ext=C
14853 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14854 ac_cpp='$CXXCPP $CPPFLAGS'
14855 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14856 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14857 cross_compiling=$ac_cv_prog_cxx_cross
14858
14859       cat > conftest.$ac_ext <<EOF
14860 #line 14861 "configure"
14861 #include "confdefs.h"
14862 #include <math.h>
14863                       #ifdef HAVE_IEEEFP_H
14864                       #include <ieeefp.h>
14865                       #endif
14866                      
14867 int main() {
14868  logl(0);
14869 ; return 0; }
14870 EOF
14871 if { (eval echo configure:14872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14872   rm -rf conftest*
14873   glibcpp_cv_func_logl_use=yes
14874 else
14875   echo "configure: failed program was:" >&5
14876   cat conftest.$ac_ext >&5
14877   rm -rf conftest*
14878   glibcpp_cv_func_logl_use=no
14879 fi
14880 rm -f conftest*
14881       ac_ext=c
14882 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14883 ac_cpp='$CPP $CPPFLAGS'
14884 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14885 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14886 cross_compiling=$ac_cv_prog_cc_cross
14887
14888     
14889 fi
14890
14891   fi
14892   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
14893
14894   if test x$glibcpp_cv_func_logl_use = x"yes"; then
14895     for ac_func in logl
14896 do
14897 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14898 echo "configure:14899: checking for $ac_func" >&5
14899 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14900   echo $ac_n "(cached) $ac_c" 1>&6
14901 else
14902   cat > conftest.$ac_ext <<EOF
14903 #line 14904 "configure"
14904 #include "confdefs.h"
14905 /* System header to define __stub macros and hopefully few prototypes,
14906     which can conflict with char $ac_func(); below.  */
14907 #include <assert.h>
14908 /* Override any gcc2 internal prototype to avoid an error.  */
14909 /* We use char because int might match the return type of a gcc2
14910     builtin and then its argument prototype would still apply.  */
14911 char $ac_func();
14912
14913 int main() {
14914
14915 /* The GNU C library defines this for functions which it implements
14916     to always fail with ENOSYS.  Some functions are actually named
14917     something starting with __ and the normal name is an alias.  */
14918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14919 choke me
14920 #else
14921 $ac_func();
14922 #endif
14923
14924 ; return 0; }
14925 EOF
14926 if { (eval echo configure:14927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14927   rm -rf conftest*
14928   eval "ac_cv_func_$ac_func=yes"
14929 else
14930   echo "configure: failed program was:" >&5
14931   cat conftest.$ac_ext >&5
14932   rm -rf conftest*
14933   eval "ac_cv_func_$ac_func=no"
14934 fi
14935 rm -f conftest*
14936 fi
14937
14938 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14939   echo "$ac_t""yes" 1>&6
14940     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14941   cat >> confdefs.h <<EOF
14942 #define $ac_tr_func 1
14943 EOF
14944  
14945 else
14946   echo "$ac_t""no" 1>&6
14947 fi
14948 done
14949     
14950   else
14951     
14952   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
14953 echo "configure:14954: checking for _logl declaration" >&5
14954   if test x${glibcpp_cv_func__logl_use+set} != xset; then
14955     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
14956   echo $ac_n "(cached) $ac_c" 1>&6
14957 else
14958   
14959       
14960       ac_ext=C
14961 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14962 ac_cpp='$CXXCPP $CPPFLAGS'
14963 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14964 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14965 cross_compiling=$ac_cv_prog_cxx_cross
14966
14967       cat > conftest.$ac_ext <<EOF
14968 #line 14969 "configure"
14969 #include "confdefs.h"
14970 #include <math.h>
14971                       #ifdef HAVE_IEEEFP_H
14972                       #include <ieeefp.h>
14973                       #endif
14974                      
14975 int main() {
14976  _logl(0);
14977 ; return 0; }
14978 EOF
14979 if { (eval echo configure:14980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14980   rm -rf conftest*
14981   glibcpp_cv_func__logl_use=yes
14982 else
14983   echo "configure: failed program was:" >&5
14984   cat conftest.$ac_ext >&5
14985   rm -rf conftest*
14986   glibcpp_cv_func__logl_use=no
14987 fi
14988 rm -f conftest*
14989       ac_ext=c
14990 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14991 ac_cpp='$CPP $CPPFLAGS'
14992 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14993 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14994 cross_compiling=$ac_cv_prog_cc_cross
14995
14996     
14997 fi
14998
14999   fi
15000   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
15001
15002     if test x$glibcpp_cv_func__logl_use = x"yes"; then
15003       for ac_func in _logl
15004 do
15005 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15006 echo "configure:15007: checking for $ac_func" >&5
15007 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15008   echo $ac_n "(cached) $ac_c" 1>&6
15009 else
15010   cat > conftest.$ac_ext <<EOF
15011 #line 15012 "configure"
15012 #include "confdefs.h"
15013 /* System header to define __stub macros and hopefully few prototypes,
15014     which can conflict with char $ac_func(); below.  */
15015 #include <assert.h>
15016 /* Override any gcc2 internal prototype to avoid an error.  */
15017 /* We use char because int might match the return type of a gcc2
15018     builtin and then its argument prototype would still apply.  */
15019 char $ac_func();
15020
15021 int main() {
15022
15023 /* The GNU C library defines this for functions which it implements
15024     to always fail with ENOSYS.  Some functions are actually named
15025     something starting with __ and the normal name is an alias.  */
15026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15027 choke me
15028 #else
15029 $ac_func();
15030 #endif
15031
15032 ; return 0; }
15033 EOF
15034 if { (eval echo configure:15035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15035   rm -rf conftest*
15036   eval "ac_cv_func_$ac_func=yes"
15037 else
15038   echo "configure: failed program was:" >&5
15039   cat conftest.$ac_ext >&5
15040   rm -rf conftest*
15041   eval "ac_cv_func_$ac_func=no"
15042 fi
15043 rm -f conftest*
15044 fi
15045
15046 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15047   echo "$ac_t""yes" 1>&6
15048     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15049   cat >> confdefs.h <<EOF
15050 #define $ac_tr_func 1
15051 EOF
15052  
15053 else
15054   echo "$ac_t""no" 1>&6
15055 fi
15056 done
15057     
15058     fi
15059   fi
15060
15061   
15062   
15063   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
15064 echo "configure:15065: checking for log10l declaration" >&5
15065   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
15066     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
15067   echo $ac_n "(cached) $ac_c" 1>&6
15068 else
15069   
15070       
15071       ac_ext=C
15072 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15073 ac_cpp='$CXXCPP $CPPFLAGS'
15074 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15075 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15076 cross_compiling=$ac_cv_prog_cxx_cross
15077
15078       cat > conftest.$ac_ext <<EOF
15079 #line 15080 "configure"
15080 #include "confdefs.h"
15081 #include <math.h>
15082                       #ifdef HAVE_IEEEFP_H
15083                       #include <ieeefp.h>
15084                       #endif
15085                      
15086 int main() {
15087  log10l(0);
15088 ; return 0; }
15089 EOF
15090 if { (eval echo configure:15091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15091   rm -rf conftest*
15092   glibcpp_cv_func_log10l_use=yes
15093 else
15094   echo "configure: failed program was:" >&5
15095   cat conftest.$ac_ext >&5
15096   rm -rf conftest*
15097   glibcpp_cv_func_log10l_use=no
15098 fi
15099 rm -f conftest*
15100       ac_ext=c
15101 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15102 ac_cpp='$CPP $CPPFLAGS'
15103 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15104 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15105 cross_compiling=$ac_cv_prog_cc_cross
15106
15107     
15108 fi
15109
15110   fi
15111   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
15112
15113   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
15114     for ac_func in log10l
15115 do
15116 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15117 echo "configure:15118: checking for $ac_func" >&5
15118 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15119   echo $ac_n "(cached) $ac_c" 1>&6
15120 else
15121   cat > conftest.$ac_ext <<EOF
15122 #line 15123 "configure"
15123 #include "confdefs.h"
15124 /* System header to define __stub macros and hopefully few prototypes,
15125     which can conflict with char $ac_func(); below.  */
15126 #include <assert.h>
15127 /* Override any gcc2 internal prototype to avoid an error.  */
15128 /* We use char because int might match the return type of a gcc2
15129     builtin and then its argument prototype would still apply.  */
15130 char $ac_func();
15131
15132 int main() {
15133
15134 /* The GNU C library defines this for functions which it implements
15135     to always fail with ENOSYS.  Some functions are actually named
15136     something starting with __ and the normal name is an alias.  */
15137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15138 choke me
15139 #else
15140 $ac_func();
15141 #endif
15142
15143 ; return 0; }
15144 EOF
15145 if { (eval echo configure:15146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15146   rm -rf conftest*
15147   eval "ac_cv_func_$ac_func=yes"
15148 else
15149   echo "configure: failed program was:" >&5
15150   cat conftest.$ac_ext >&5
15151   rm -rf conftest*
15152   eval "ac_cv_func_$ac_func=no"
15153 fi
15154 rm -f conftest*
15155 fi
15156
15157 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15158   echo "$ac_t""yes" 1>&6
15159     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15160   cat >> confdefs.h <<EOF
15161 #define $ac_tr_func 1
15162 EOF
15163  
15164 else
15165   echo "$ac_t""no" 1>&6
15166 fi
15167 done
15168     
15169   else
15170     
15171   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
15172 echo "configure:15173: checking for _log10l declaration" >&5
15173   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
15174     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
15175   echo $ac_n "(cached) $ac_c" 1>&6
15176 else
15177   
15178       
15179       ac_ext=C
15180 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15181 ac_cpp='$CXXCPP $CPPFLAGS'
15182 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15183 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15184 cross_compiling=$ac_cv_prog_cxx_cross
15185
15186       cat > conftest.$ac_ext <<EOF
15187 #line 15188 "configure"
15188 #include "confdefs.h"
15189 #include <math.h>
15190                       #ifdef HAVE_IEEEFP_H
15191                       #include <ieeefp.h>
15192                       #endif
15193                      
15194 int main() {
15195  _log10l(0);
15196 ; return 0; }
15197 EOF
15198 if { (eval echo configure:15199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15199   rm -rf conftest*
15200   glibcpp_cv_func__log10l_use=yes
15201 else
15202   echo "configure: failed program was:" >&5
15203   cat conftest.$ac_ext >&5
15204   rm -rf conftest*
15205   glibcpp_cv_func__log10l_use=no
15206 fi
15207 rm -f conftest*
15208       ac_ext=c
15209 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15210 ac_cpp='$CPP $CPPFLAGS'
15211 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15212 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15213 cross_compiling=$ac_cv_prog_cc_cross
15214
15215     
15216 fi
15217
15218   fi
15219   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
15220
15221     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
15222       for ac_func in _log10l
15223 do
15224 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15225 echo "configure:15226: checking for $ac_func" >&5
15226 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15227   echo $ac_n "(cached) $ac_c" 1>&6
15228 else
15229   cat > conftest.$ac_ext <<EOF
15230 #line 15231 "configure"
15231 #include "confdefs.h"
15232 /* System header to define __stub macros and hopefully few prototypes,
15233     which can conflict with char $ac_func(); below.  */
15234 #include <assert.h>
15235 /* Override any gcc2 internal prototype to avoid an error.  */
15236 /* We use char because int might match the return type of a gcc2
15237     builtin and then its argument prototype would still apply.  */
15238 char $ac_func();
15239
15240 int main() {
15241
15242 /* The GNU C library defines this for functions which it implements
15243     to always fail with ENOSYS.  Some functions are actually named
15244     something starting with __ and the normal name is an alias.  */
15245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15246 choke me
15247 #else
15248 $ac_func();
15249 #endif
15250
15251 ; return 0; }
15252 EOF
15253 if { (eval echo configure:15254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15254   rm -rf conftest*
15255   eval "ac_cv_func_$ac_func=yes"
15256 else
15257   echo "configure: failed program was:" >&5
15258   cat conftest.$ac_ext >&5
15259   rm -rf conftest*
15260   eval "ac_cv_func_$ac_func=no"
15261 fi
15262 rm -f conftest*
15263 fi
15264
15265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15266   echo "$ac_t""yes" 1>&6
15267     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15268   cat >> confdefs.h <<EOF
15269 #define $ac_tr_func 1
15270 EOF
15271  
15272 else
15273   echo "$ac_t""no" 1>&6
15274 fi
15275 done
15276     
15277     fi
15278   fi
15279
15280   
15281   
15282   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
15283 echo "configure:15284: checking for modfl declaration" >&5
15284   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
15285     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
15286   echo $ac_n "(cached) $ac_c" 1>&6
15287 else
15288   
15289       
15290       ac_ext=C
15291 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15292 ac_cpp='$CXXCPP $CPPFLAGS'
15293 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15294 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15295 cross_compiling=$ac_cv_prog_cxx_cross
15296
15297       cat > conftest.$ac_ext <<EOF
15298 #line 15299 "configure"
15299 #include "confdefs.h"
15300 #include <math.h>
15301 int main() {
15302  modfl(0, 0);
15303 ; return 0; }
15304 EOF
15305 if { (eval echo configure:15306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15306   rm -rf conftest*
15307   glibcpp_cv_func_modfl_use=yes
15308 else
15309   echo "configure: failed program was:" >&5
15310   cat conftest.$ac_ext >&5
15311   rm -rf conftest*
15312   glibcpp_cv_func_modfl_use=no
15313 fi
15314 rm -f conftest*
15315       ac_ext=c
15316 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15317 ac_cpp='$CPP $CPPFLAGS'
15318 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15319 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15320 cross_compiling=$ac_cv_prog_cc_cross
15321
15322     
15323 fi
15324
15325   fi
15326   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
15327
15328   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
15329     for ac_func in modfl
15330 do
15331 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15332 echo "configure:15333: checking for $ac_func" >&5
15333 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15334   echo $ac_n "(cached) $ac_c" 1>&6
15335 else
15336   cat > conftest.$ac_ext <<EOF
15337 #line 15338 "configure"
15338 #include "confdefs.h"
15339 /* System header to define __stub macros and hopefully few prototypes,
15340     which can conflict with char $ac_func(); below.  */
15341 #include <assert.h>
15342 /* Override any gcc2 internal prototype to avoid an error.  */
15343 /* We use char because int might match the return type of a gcc2
15344     builtin and then its argument prototype would still apply.  */
15345 char $ac_func();
15346
15347 int main() {
15348
15349 /* The GNU C library defines this for functions which it implements
15350     to always fail with ENOSYS.  Some functions are actually named
15351     something starting with __ and the normal name is an alias.  */
15352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15353 choke me
15354 #else
15355 $ac_func();
15356 #endif
15357
15358 ; return 0; }
15359 EOF
15360 if { (eval echo configure:15361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15361   rm -rf conftest*
15362   eval "ac_cv_func_$ac_func=yes"
15363 else
15364   echo "configure: failed program was:" >&5
15365   cat conftest.$ac_ext >&5
15366   rm -rf conftest*
15367   eval "ac_cv_func_$ac_func=no"
15368 fi
15369 rm -f conftest*
15370 fi
15371
15372 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15373   echo "$ac_t""yes" 1>&6
15374     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15375   cat >> confdefs.h <<EOF
15376 #define $ac_tr_func 1
15377 EOF
15378  
15379 else
15380   echo "$ac_t""no" 1>&6
15381 fi
15382 done
15383     
15384   else
15385     
15386   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
15387 echo "configure:15388: checking for _modfl declaration" >&5
15388   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
15389     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
15390   echo $ac_n "(cached) $ac_c" 1>&6
15391 else
15392   
15393       
15394       ac_ext=C
15395 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15396 ac_cpp='$CXXCPP $CPPFLAGS'
15397 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15398 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15399 cross_compiling=$ac_cv_prog_cxx_cross
15400
15401       cat > conftest.$ac_ext <<EOF
15402 #line 15403 "configure"
15403 #include "confdefs.h"
15404 #include <math.h>
15405 int main() {
15406  _modfl(0, 0);
15407 ; return 0; }
15408 EOF
15409 if { (eval echo configure:15410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15410   rm -rf conftest*
15411   glibcpp_cv_func__modfl_use=yes
15412 else
15413   echo "configure: failed program was:" >&5
15414   cat conftest.$ac_ext >&5
15415   rm -rf conftest*
15416   glibcpp_cv_func__modfl_use=no
15417 fi
15418 rm -f conftest*
15419       ac_ext=c
15420 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15421 ac_cpp='$CPP $CPPFLAGS'
15422 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15423 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15424 cross_compiling=$ac_cv_prog_cc_cross
15425
15426     
15427 fi
15428
15429   fi
15430   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
15431
15432     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
15433       for ac_func in _modfl
15434 do
15435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15436 echo "configure:15437: checking for $ac_func" >&5
15437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15438   echo $ac_n "(cached) $ac_c" 1>&6
15439 else
15440   cat > conftest.$ac_ext <<EOF
15441 #line 15442 "configure"
15442 #include "confdefs.h"
15443 /* System header to define __stub macros and hopefully few prototypes,
15444     which can conflict with char $ac_func(); below.  */
15445 #include <assert.h>
15446 /* Override any gcc2 internal prototype to avoid an error.  */
15447 /* We use char because int might match the return type of a gcc2
15448     builtin and then its argument prototype would still apply.  */
15449 char $ac_func();
15450
15451 int main() {
15452
15453 /* The GNU C library defines this for functions which it implements
15454     to always fail with ENOSYS.  Some functions are actually named
15455     something starting with __ and the normal name is an alias.  */
15456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15457 choke me
15458 #else
15459 $ac_func();
15460 #endif
15461
15462 ; return 0; }
15463 EOF
15464 if { (eval echo configure:15465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15465   rm -rf conftest*
15466   eval "ac_cv_func_$ac_func=yes"
15467 else
15468   echo "configure: failed program was:" >&5
15469   cat conftest.$ac_ext >&5
15470   rm -rf conftest*
15471   eval "ac_cv_func_$ac_func=no"
15472 fi
15473 rm -f conftest*
15474 fi
15475
15476 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15477   echo "$ac_t""yes" 1>&6
15478     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15479   cat >> confdefs.h <<EOF
15480 #define $ac_tr_func 1
15481 EOF
15482  
15483 else
15484   echo "$ac_t""no" 1>&6
15485 fi
15486 done
15487     
15488     fi
15489   fi
15490
15491   
15492   
15493   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
15494 echo "configure:15495: checking for powl declaration" >&5
15495   if test x${glibcpp_cv_func_powl_use+set} != xset; then
15496     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
15497   echo $ac_n "(cached) $ac_c" 1>&6
15498 else
15499   
15500       
15501       ac_ext=C
15502 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15503 ac_cpp='$CXXCPP $CPPFLAGS'
15504 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15505 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15506 cross_compiling=$ac_cv_prog_cxx_cross
15507
15508       cat > conftest.$ac_ext <<EOF
15509 #line 15510 "configure"
15510 #include "confdefs.h"
15511 #include <math.h>
15512 int main() {
15513  powl(0, 0);
15514 ; return 0; }
15515 EOF
15516 if { (eval echo configure:15517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15517   rm -rf conftest*
15518   glibcpp_cv_func_powl_use=yes
15519 else
15520   echo "configure: failed program was:" >&5
15521   cat conftest.$ac_ext >&5
15522   rm -rf conftest*
15523   glibcpp_cv_func_powl_use=no
15524 fi
15525 rm -f conftest*
15526       ac_ext=c
15527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15528 ac_cpp='$CPP $CPPFLAGS'
15529 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15530 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15531 cross_compiling=$ac_cv_prog_cc_cross
15532
15533     
15534 fi
15535
15536   fi
15537   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
15538
15539   if test x$glibcpp_cv_func_powl_use = x"yes"; then
15540     for ac_func in powl
15541 do
15542 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15543 echo "configure:15544: checking for $ac_func" >&5
15544 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15545   echo $ac_n "(cached) $ac_c" 1>&6
15546 else
15547   cat > conftest.$ac_ext <<EOF
15548 #line 15549 "configure"
15549 #include "confdefs.h"
15550 /* System header to define __stub macros and hopefully few prototypes,
15551     which can conflict with char $ac_func(); below.  */
15552 #include <assert.h>
15553 /* Override any gcc2 internal prototype to avoid an error.  */
15554 /* We use char because int might match the return type of a gcc2
15555     builtin and then its argument prototype would still apply.  */
15556 char $ac_func();
15557
15558 int main() {
15559
15560 /* The GNU C library defines this for functions which it implements
15561     to always fail with ENOSYS.  Some functions are actually named
15562     something starting with __ and the normal name is an alias.  */
15563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15564 choke me
15565 #else
15566 $ac_func();
15567 #endif
15568
15569 ; return 0; }
15570 EOF
15571 if { (eval echo configure:15572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15572   rm -rf conftest*
15573   eval "ac_cv_func_$ac_func=yes"
15574 else
15575   echo "configure: failed program was:" >&5
15576   cat conftest.$ac_ext >&5
15577   rm -rf conftest*
15578   eval "ac_cv_func_$ac_func=no"
15579 fi
15580 rm -f conftest*
15581 fi
15582
15583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15584   echo "$ac_t""yes" 1>&6
15585     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15586   cat >> confdefs.h <<EOF
15587 #define $ac_tr_func 1
15588 EOF
15589  
15590 else
15591   echo "$ac_t""no" 1>&6
15592 fi
15593 done
15594     
15595   else
15596     
15597   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
15598 echo "configure:15599: checking for _powl declaration" >&5
15599   if test x${glibcpp_cv_func__powl_use+set} != xset; then
15600     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
15601   echo $ac_n "(cached) $ac_c" 1>&6
15602 else
15603   
15604       
15605       ac_ext=C
15606 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15607 ac_cpp='$CXXCPP $CPPFLAGS'
15608 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15609 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15610 cross_compiling=$ac_cv_prog_cxx_cross
15611
15612       cat > conftest.$ac_ext <<EOF
15613 #line 15614 "configure"
15614 #include "confdefs.h"
15615 #include <math.h>
15616 int main() {
15617  _powl(0, 0);
15618 ; return 0; }
15619 EOF
15620 if { (eval echo configure:15621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15621   rm -rf conftest*
15622   glibcpp_cv_func__powl_use=yes
15623 else
15624   echo "configure: failed program was:" >&5
15625   cat conftest.$ac_ext >&5
15626   rm -rf conftest*
15627   glibcpp_cv_func__powl_use=no
15628 fi
15629 rm -f conftest*
15630       ac_ext=c
15631 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15632 ac_cpp='$CPP $CPPFLAGS'
15633 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15634 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15635 cross_compiling=$ac_cv_prog_cc_cross
15636
15637     
15638 fi
15639
15640   fi
15641   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
15642
15643     if test x$glibcpp_cv_func__powl_use = x"yes"; then
15644       for ac_func in _powl
15645 do
15646 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15647 echo "configure:15648: checking for $ac_func" >&5
15648 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15649   echo $ac_n "(cached) $ac_c" 1>&6
15650 else
15651   cat > conftest.$ac_ext <<EOF
15652 #line 15653 "configure"
15653 #include "confdefs.h"
15654 /* System header to define __stub macros and hopefully few prototypes,
15655     which can conflict with char $ac_func(); below.  */
15656 #include <assert.h>
15657 /* Override any gcc2 internal prototype to avoid an error.  */
15658 /* We use char because int might match the return type of a gcc2
15659     builtin and then its argument prototype would still apply.  */
15660 char $ac_func();
15661
15662 int main() {
15663
15664 /* The GNU C library defines this for functions which it implements
15665     to always fail with ENOSYS.  Some functions are actually named
15666     something starting with __ and the normal name is an alias.  */
15667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15668 choke me
15669 #else
15670 $ac_func();
15671 #endif
15672
15673 ; return 0; }
15674 EOF
15675 if { (eval echo configure:15676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15676   rm -rf conftest*
15677   eval "ac_cv_func_$ac_func=yes"
15678 else
15679   echo "configure: failed program was:" >&5
15680   cat conftest.$ac_ext >&5
15681   rm -rf conftest*
15682   eval "ac_cv_func_$ac_func=no"
15683 fi
15684 rm -f conftest*
15685 fi
15686
15687 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15688   echo "$ac_t""yes" 1>&6
15689     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15690   cat >> confdefs.h <<EOF
15691 #define $ac_tr_func 1
15692 EOF
15693  
15694 else
15695   echo "$ac_t""no" 1>&6
15696 fi
15697 done
15698     
15699     fi
15700   fi
15701
15702   
15703   
15704   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
15705 echo "configure:15706: checking for sqrtl declaration" >&5
15706   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
15707     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
15708   echo $ac_n "(cached) $ac_c" 1>&6
15709 else
15710   
15711       
15712       ac_ext=C
15713 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15714 ac_cpp='$CXXCPP $CPPFLAGS'
15715 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15716 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15717 cross_compiling=$ac_cv_prog_cxx_cross
15718
15719       cat > conftest.$ac_ext <<EOF
15720 #line 15721 "configure"
15721 #include "confdefs.h"
15722 #include <math.h>
15723                       #ifdef HAVE_IEEEFP_H
15724                       #include <ieeefp.h>
15725                       #endif
15726                      
15727 int main() {
15728  sqrtl(0);
15729 ; return 0; }
15730 EOF
15731 if { (eval echo configure:15732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15732   rm -rf conftest*
15733   glibcpp_cv_func_sqrtl_use=yes
15734 else
15735   echo "configure: failed program was:" >&5
15736   cat conftest.$ac_ext >&5
15737   rm -rf conftest*
15738   glibcpp_cv_func_sqrtl_use=no
15739 fi
15740 rm -f conftest*
15741       ac_ext=c
15742 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15743 ac_cpp='$CPP $CPPFLAGS'
15744 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15745 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15746 cross_compiling=$ac_cv_prog_cc_cross
15747
15748     
15749 fi
15750
15751   fi
15752   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
15753
15754   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
15755     for ac_func in sqrtl
15756 do
15757 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15758 echo "configure:15759: checking for $ac_func" >&5
15759 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15760   echo $ac_n "(cached) $ac_c" 1>&6
15761 else
15762   cat > conftest.$ac_ext <<EOF
15763 #line 15764 "configure"
15764 #include "confdefs.h"
15765 /* System header to define __stub macros and hopefully few prototypes,
15766     which can conflict with char $ac_func(); below.  */
15767 #include <assert.h>
15768 /* Override any gcc2 internal prototype to avoid an error.  */
15769 /* We use char because int might match the return type of a gcc2
15770     builtin and then its argument prototype would still apply.  */
15771 char $ac_func();
15772
15773 int main() {
15774
15775 /* The GNU C library defines this for functions which it implements
15776     to always fail with ENOSYS.  Some functions are actually named
15777     something starting with __ and the normal name is an alias.  */
15778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15779 choke me
15780 #else
15781 $ac_func();
15782 #endif
15783
15784 ; return 0; }
15785 EOF
15786 if { (eval echo configure:15787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15787   rm -rf conftest*
15788   eval "ac_cv_func_$ac_func=yes"
15789 else
15790   echo "configure: failed program was:" >&5
15791   cat conftest.$ac_ext >&5
15792   rm -rf conftest*
15793   eval "ac_cv_func_$ac_func=no"
15794 fi
15795 rm -f conftest*
15796 fi
15797
15798 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15799   echo "$ac_t""yes" 1>&6
15800     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15801   cat >> confdefs.h <<EOF
15802 #define $ac_tr_func 1
15803 EOF
15804  
15805 else
15806   echo "$ac_t""no" 1>&6
15807 fi
15808 done
15809     
15810   else
15811     
15812   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
15813 echo "configure:15814: checking for _sqrtl declaration" >&5
15814   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
15815     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
15816   echo $ac_n "(cached) $ac_c" 1>&6
15817 else
15818   
15819       
15820       ac_ext=C
15821 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15822 ac_cpp='$CXXCPP $CPPFLAGS'
15823 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15824 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15825 cross_compiling=$ac_cv_prog_cxx_cross
15826
15827       cat > conftest.$ac_ext <<EOF
15828 #line 15829 "configure"
15829 #include "confdefs.h"
15830 #include <math.h>
15831                       #ifdef HAVE_IEEEFP_H
15832                       #include <ieeefp.h>
15833                       #endif
15834                      
15835 int main() {
15836  _sqrtl(0);
15837 ; return 0; }
15838 EOF
15839 if { (eval echo configure:15840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15840   rm -rf conftest*
15841   glibcpp_cv_func__sqrtl_use=yes
15842 else
15843   echo "configure: failed program was:" >&5
15844   cat conftest.$ac_ext >&5
15845   rm -rf conftest*
15846   glibcpp_cv_func__sqrtl_use=no
15847 fi
15848 rm -f conftest*
15849       ac_ext=c
15850 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15851 ac_cpp='$CPP $CPPFLAGS'
15852 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15853 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15854 cross_compiling=$ac_cv_prog_cc_cross
15855
15856     
15857 fi
15858
15859   fi
15860   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
15861
15862     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
15863       for ac_func in _sqrtl
15864 do
15865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15866 echo "configure:15867: checking for $ac_func" >&5
15867 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15868   echo $ac_n "(cached) $ac_c" 1>&6
15869 else
15870   cat > conftest.$ac_ext <<EOF
15871 #line 15872 "configure"
15872 #include "confdefs.h"
15873 /* System header to define __stub macros and hopefully few prototypes,
15874     which can conflict with char $ac_func(); below.  */
15875 #include <assert.h>
15876 /* Override any gcc2 internal prototype to avoid an error.  */
15877 /* We use char because int might match the return type of a gcc2
15878     builtin and then its argument prototype would still apply.  */
15879 char $ac_func();
15880
15881 int main() {
15882
15883 /* The GNU C library defines this for functions which it implements
15884     to always fail with ENOSYS.  Some functions are actually named
15885     something starting with __ and the normal name is an alias.  */
15886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15887 choke me
15888 #else
15889 $ac_func();
15890 #endif
15891
15892 ; return 0; }
15893 EOF
15894 if { (eval echo configure:15895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15895   rm -rf conftest*
15896   eval "ac_cv_func_$ac_func=yes"
15897 else
15898   echo "configure: failed program was:" >&5
15899   cat conftest.$ac_ext >&5
15900   rm -rf conftest*
15901   eval "ac_cv_func_$ac_func=no"
15902 fi
15903 rm -f conftest*
15904 fi
15905
15906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15907   echo "$ac_t""yes" 1>&6
15908     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15909   cat >> confdefs.h <<EOF
15910 #define $ac_tr_func 1
15911 EOF
15912  
15913 else
15914   echo "$ac_t""no" 1>&6
15915 fi
15916 done
15917     
15918     fi
15919   fi
15920
15921   
15922   
15923   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
15924 echo "configure:15925: checking for sincosl declaration" >&5
15925   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
15926     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
15927   echo $ac_n "(cached) $ac_c" 1>&6
15928 else
15929   
15930       
15931       ac_ext=C
15932 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15933 ac_cpp='$CXXCPP $CPPFLAGS'
15934 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15935 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15936 cross_compiling=$ac_cv_prog_cxx_cross
15937
15938       cat > conftest.$ac_ext <<EOF
15939 #line 15940 "configure"
15940 #include "confdefs.h"
15941 #include <math.h>
15942 int main() {
15943  sincosl(0, 0, 0);
15944 ; return 0; }
15945 EOF
15946 if { (eval echo configure:15947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15947   rm -rf conftest*
15948   glibcpp_cv_func_sincosl_use=yes
15949 else
15950   echo "configure: failed program was:" >&5
15951   cat conftest.$ac_ext >&5
15952   rm -rf conftest*
15953   glibcpp_cv_func_sincosl_use=no
15954 fi
15955 rm -f conftest*
15956       ac_ext=c
15957 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15958 ac_cpp='$CPP $CPPFLAGS'
15959 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15960 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15961 cross_compiling=$ac_cv_prog_cc_cross
15962
15963     
15964 fi
15965
15966   fi
15967   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
15968
15969   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
15970     for ac_func in sincosl
15971 do
15972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15973 echo "configure:15974: checking for $ac_func" >&5
15974 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15975   echo $ac_n "(cached) $ac_c" 1>&6
15976 else
15977   cat > conftest.$ac_ext <<EOF
15978 #line 15979 "configure"
15979 #include "confdefs.h"
15980 /* System header to define __stub macros and hopefully few prototypes,
15981     which can conflict with char $ac_func(); below.  */
15982 #include <assert.h>
15983 /* Override any gcc2 internal prototype to avoid an error.  */
15984 /* We use char because int might match the return type of a gcc2
15985     builtin and then its argument prototype would still apply.  */
15986 char $ac_func();
15987
15988 int main() {
15989
15990 /* The GNU C library defines this for functions which it implements
15991     to always fail with ENOSYS.  Some functions are actually named
15992     something starting with __ and the normal name is an alias.  */
15993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15994 choke me
15995 #else
15996 $ac_func();
15997 #endif
15998
15999 ; return 0; }
16000 EOF
16001 if { (eval echo configure:16002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16002   rm -rf conftest*
16003   eval "ac_cv_func_$ac_func=yes"
16004 else
16005   echo "configure: failed program was:" >&5
16006   cat conftest.$ac_ext >&5
16007   rm -rf conftest*
16008   eval "ac_cv_func_$ac_func=no"
16009 fi
16010 rm -f conftest*
16011 fi
16012
16013 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16014   echo "$ac_t""yes" 1>&6
16015     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16016   cat >> confdefs.h <<EOF
16017 #define $ac_tr_func 1
16018 EOF
16019  
16020 else
16021   echo "$ac_t""no" 1>&6
16022 fi
16023 done
16024     
16025   else
16026     
16027   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
16028 echo "configure:16029: checking for _sincosl declaration" >&5
16029   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
16030     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
16031   echo $ac_n "(cached) $ac_c" 1>&6
16032 else
16033   
16034       
16035       ac_ext=C
16036 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16037 ac_cpp='$CXXCPP $CPPFLAGS'
16038 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16039 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16040 cross_compiling=$ac_cv_prog_cxx_cross
16041
16042       cat > conftest.$ac_ext <<EOF
16043 #line 16044 "configure"
16044 #include "confdefs.h"
16045 #include <math.h>
16046 int main() {
16047  _sincosl(0, 0, 0);
16048 ; return 0; }
16049 EOF
16050 if { (eval echo configure:16051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16051   rm -rf conftest*
16052   glibcpp_cv_func__sincosl_use=yes
16053 else
16054   echo "configure: failed program was:" >&5
16055   cat conftest.$ac_ext >&5
16056   rm -rf conftest*
16057   glibcpp_cv_func__sincosl_use=no
16058 fi
16059 rm -f conftest*
16060       ac_ext=c
16061 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16062 ac_cpp='$CPP $CPPFLAGS'
16063 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16064 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16065 cross_compiling=$ac_cv_prog_cc_cross
16066
16067     
16068 fi
16069
16070   fi
16071   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
16072
16073     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
16074       for ac_func in _sincosl
16075 do
16076 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16077 echo "configure:16078: checking for $ac_func" >&5
16078 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16079   echo $ac_n "(cached) $ac_c" 1>&6
16080 else
16081   cat > conftest.$ac_ext <<EOF
16082 #line 16083 "configure"
16083 #include "confdefs.h"
16084 /* System header to define __stub macros and hopefully few prototypes,
16085     which can conflict with char $ac_func(); below.  */
16086 #include <assert.h>
16087 /* Override any gcc2 internal prototype to avoid an error.  */
16088 /* We use char because int might match the return type of a gcc2
16089     builtin and then its argument prototype would still apply.  */
16090 char $ac_func();
16091
16092 int main() {
16093
16094 /* The GNU C library defines this for functions which it implements
16095     to always fail with ENOSYS.  Some functions are actually named
16096     something starting with __ and the normal name is an alias.  */
16097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16098 choke me
16099 #else
16100 $ac_func();
16101 #endif
16102
16103 ; return 0; }
16104 EOF
16105 if { (eval echo configure:16106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16106   rm -rf conftest*
16107   eval "ac_cv_func_$ac_func=yes"
16108 else
16109   echo "configure: failed program was:" >&5
16110   cat conftest.$ac_ext >&5
16111   rm -rf conftest*
16112   eval "ac_cv_func_$ac_func=no"
16113 fi
16114 rm -f conftest*
16115 fi
16116
16117 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16118   echo "$ac_t""yes" 1>&6
16119     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16120   cat >> confdefs.h <<EOF
16121 #define $ac_tr_func 1
16122 EOF
16123  
16124 else
16125   echo "$ac_t""no" 1>&6
16126 fi
16127 done
16128     
16129     fi
16130   fi
16131
16132   
16133   
16134   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
16135 echo "configure:16136: checking for finitel declaration" >&5
16136   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
16137     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
16138   echo $ac_n "(cached) $ac_c" 1>&6
16139 else
16140   
16141       
16142       ac_ext=C
16143 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16144 ac_cpp='$CXXCPP $CPPFLAGS'
16145 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16146 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16147 cross_compiling=$ac_cv_prog_cxx_cross
16148
16149       cat > conftest.$ac_ext <<EOF
16150 #line 16151 "configure"
16151 #include "confdefs.h"
16152 #include <math.h>
16153                       #ifdef HAVE_IEEEFP_H
16154                       #include <ieeefp.h>
16155                       #endif
16156                      
16157 int main() {
16158  finitel(0);
16159 ; return 0; }
16160 EOF
16161 if { (eval echo configure:16162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16162   rm -rf conftest*
16163   glibcpp_cv_func_finitel_use=yes
16164 else
16165   echo "configure: failed program was:" >&5
16166   cat conftest.$ac_ext >&5
16167   rm -rf conftest*
16168   glibcpp_cv_func_finitel_use=no
16169 fi
16170 rm -f conftest*
16171       ac_ext=c
16172 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16173 ac_cpp='$CPP $CPPFLAGS'
16174 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16175 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16176 cross_compiling=$ac_cv_prog_cc_cross
16177
16178     
16179 fi
16180
16181   fi
16182   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
16183
16184   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
16185     for ac_func in finitel
16186 do
16187 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16188 echo "configure:16189: checking for $ac_func" >&5
16189 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16190   echo $ac_n "(cached) $ac_c" 1>&6
16191 else
16192   cat > conftest.$ac_ext <<EOF
16193 #line 16194 "configure"
16194 #include "confdefs.h"
16195 /* System header to define __stub macros and hopefully few prototypes,
16196     which can conflict with char $ac_func(); below.  */
16197 #include <assert.h>
16198 /* Override any gcc2 internal prototype to avoid an error.  */
16199 /* We use char because int might match the return type of a gcc2
16200     builtin and then its argument prototype would still apply.  */
16201 char $ac_func();
16202
16203 int main() {
16204
16205 /* The GNU C library defines this for functions which it implements
16206     to always fail with ENOSYS.  Some functions are actually named
16207     something starting with __ and the normal name is an alias.  */
16208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16209 choke me
16210 #else
16211 $ac_func();
16212 #endif
16213
16214 ; return 0; }
16215 EOF
16216 if { (eval echo configure:16217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16217   rm -rf conftest*
16218   eval "ac_cv_func_$ac_func=yes"
16219 else
16220   echo "configure: failed program was:" >&5
16221   cat conftest.$ac_ext >&5
16222   rm -rf conftest*
16223   eval "ac_cv_func_$ac_func=no"
16224 fi
16225 rm -f conftest*
16226 fi
16227
16228 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16229   echo "$ac_t""yes" 1>&6
16230     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16231   cat >> confdefs.h <<EOF
16232 #define $ac_tr_func 1
16233 EOF
16234  
16235 else
16236   echo "$ac_t""no" 1>&6
16237 fi
16238 done
16239     
16240   else
16241     
16242   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
16243 echo "configure:16244: checking for _finitel declaration" >&5
16244   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
16245     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
16246   echo $ac_n "(cached) $ac_c" 1>&6
16247 else
16248   
16249       
16250       ac_ext=C
16251 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16252 ac_cpp='$CXXCPP $CPPFLAGS'
16253 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16254 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16255 cross_compiling=$ac_cv_prog_cxx_cross
16256
16257       cat > conftest.$ac_ext <<EOF
16258 #line 16259 "configure"
16259 #include "confdefs.h"
16260 #include <math.h>
16261                       #ifdef HAVE_IEEEFP_H
16262                       #include <ieeefp.h>
16263                       #endif
16264                      
16265 int main() {
16266  _finitel(0);
16267 ; return 0; }
16268 EOF
16269 if { (eval echo configure:16270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16270   rm -rf conftest*
16271   glibcpp_cv_func__finitel_use=yes
16272 else
16273   echo "configure: failed program was:" >&5
16274   cat conftest.$ac_ext >&5
16275   rm -rf conftest*
16276   glibcpp_cv_func__finitel_use=no
16277 fi
16278 rm -f conftest*
16279       ac_ext=c
16280 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16281 ac_cpp='$CPP $CPPFLAGS'
16282 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16283 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16284 cross_compiling=$ac_cv_prog_cc_cross
16285
16286     
16287 fi
16288
16289   fi
16290   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
16291
16292     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
16293       for ac_func in _finitel
16294 do
16295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16296 echo "configure:16297: checking for $ac_func" >&5
16297 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16298   echo $ac_n "(cached) $ac_c" 1>&6
16299 else
16300   cat > conftest.$ac_ext <<EOF
16301 #line 16302 "configure"
16302 #include "confdefs.h"
16303 /* System header to define __stub macros and hopefully few prototypes,
16304     which can conflict with char $ac_func(); below.  */
16305 #include <assert.h>
16306 /* Override any gcc2 internal prototype to avoid an error.  */
16307 /* We use char because int might match the return type of a gcc2
16308     builtin and then its argument prototype would still apply.  */
16309 char $ac_func();
16310
16311 int main() {
16312
16313 /* The GNU C library defines this for functions which it implements
16314     to always fail with ENOSYS.  Some functions are actually named
16315     something starting with __ and the normal name is an alias.  */
16316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16317 choke me
16318 #else
16319 $ac_func();
16320 #endif
16321
16322 ; return 0; }
16323 EOF
16324 if { (eval echo configure:16325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16325   rm -rf conftest*
16326   eval "ac_cv_func_$ac_func=yes"
16327 else
16328   echo "configure: failed program was:" >&5
16329   cat conftest.$ac_ext >&5
16330   rm -rf conftest*
16331   eval "ac_cv_func_$ac_func=no"
16332 fi
16333 rm -f conftest*
16334 fi
16335
16336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16337   echo "$ac_t""yes" 1>&6
16338     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16339   cat >> confdefs.h <<EOF
16340 #define $ac_tr_func 1
16341 EOF
16342  
16343 else
16344   echo "$ac_t""no" 1>&6
16345 fi
16346 done
16347     
16348     fi
16349   fi
16350
16351
16352         
16353     
16354   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
16355 echo "configure:16356: checking for _float trig functions" >&5
16356   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
16357   echo $ac_n "(cached) $ac_c" 1>&6
16358 else
16359   
16360     
16361     ac_ext=C
16362 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16363 ac_cpp='$CXXCPP $CPPFLAGS'
16364 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16365 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16366 cross_compiling=$ac_cv_prog_cxx_cross
16367
16368     cat > conftest.$ac_ext <<EOF
16369 #line 16370 "configure"
16370 #include "confdefs.h"
16371 #include <math.h>
16372 int main() {
16373  `for x in _acosf _asinf _atanf \
16374                                           _cosf _sinf _tanf \
16375                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
16376 ; return 0; }
16377 EOF
16378 if { (eval echo configure:16379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16379   rm -rf conftest*
16380   glibcpp_cv_func__float_trig_use=yes
16381 else
16382   echo "configure: failed program was:" >&5
16383   cat conftest.$ac_ext >&5
16384   rm -rf conftest*
16385   glibcpp_cv_func__float_trig_use=no
16386 fi
16387 rm -f conftest*
16388     ac_ext=c
16389 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16390 ac_cpp='$CPP $CPPFLAGS'
16391 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16392 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16393 cross_compiling=$ac_cv_prog_cc_cross
16394
16395 fi
16396
16397   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
16398   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
16399     for ac_func in _acosf _asinf _atanf \
16400                                           _cosf _sinf _tanf \
16401                                           _coshf _sinhf _tanhf
16402 do
16403 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16404 echo "configure:16405: checking for $ac_func" >&5
16405 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16406   echo $ac_n "(cached) $ac_c" 1>&6
16407 else
16408   cat > conftest.$ac_ext <<EOF
16409 #line 16410 "configure"
16410 #include "confdefs.h"
16411 /* System header to define __stub macros and hopefully few prototypes,
16412     which can conflict with char $ac_func(); below.  */
16413 #include <assert.h>
16414 /* Override any gcc2 internal prototype to avoid an error.  */
16415 /* We use char because int might match the return type of a gcc2
16416     builtin and then its argument prototype would still apply.  */
16417 char $ac_func();
16418
16419 int main() {
16420
16421 /* The GNU C library defines this for functions which it implements
16422     to always fail with ENOSYS.  Some functions are actually named
16423     something starting with __ and the normal name is an alias.  */
16424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16425 choke me
16426 #else
16427 $ac_func();
16428 #endif
16429
16430 ; return 0; }
16431 EOF
16432 if { (eval echo configure:16433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16433   rm -rf conftest*
16434   eval "ac_cv_func_$ac_func=yes"
16435 else
16436   echo "configure: failed program was:" >&5
16437   cat conftest.$ac_ext >&5
16438   rm -rf conftest*
16439   eval "ac_cv_func_$ac_func=no"
16440 fi
16441 rm -f conftest*
16442 fi
16443
16444 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16445   echo "$ac_t""yes" 1>&6
16446     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16447   cat >> confdefs.h <<EOF
16448 #define $ac_tr_func 1
16449 EOF
16450  
16451 else
16452   echo "$ac_t""no" 1>&6
16453 fi
16454 done
16455
16456   fi
16457
16458   
16459   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
16460 echo "configure:16461: checking for _float round functions" >&5
16461   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
16462   echo $ac_n "(cached) $ac_c" 1>&6
16463 else
16464   
16465     
16466     ac_ext=C
16467 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16468 ac_cpp='$CXXCPP $CPPFLAGS'
16469 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16470 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16471 cross_compiling=$ac_cv_prog_cxx_cross
16472
16473     cat > conftest.$ac_ext <<EOF
16474 #line 16475 "configure"
16475 #include "confdefs.h"
16476 #include <math.h>
16477 int main() {
16478  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
16479 ; return 0; }
16480 EOF
16481 if { (eval echo configure:16482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16482   rm -rf conftest*
16483   glibcpp_cv_func__float_round_use=yes
16484 else
16485   echo "configure: failed program was:" >&5
16486   cat conftest.$ac_ext >&5
16487   rm -rf conftest*
16488   glibcpp_cv_func__float_round_use=no
16489 fi
16490 rm -f conftest*
16491     ac_ext=c
16492 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16493 ac_cpp='$CPP $CPPFLAGS'
16494 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16495 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16496 cross_compiling=$ac_cv_prog_cc_cross
16497
16498 fi
16499
16500   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
16501   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
16502     for ac_func in _ceilf _floorf
16503 do
16504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16505 echo "configure:16506: checking for $ac_func" >&5
16506 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16507   echo $ac_n "(cached) $ac_c" 1>&6
16508 else
16509   cat > conftest.$ac_ext <<EOF
16510 #line 16511 "configure"
16511 #include "confdefs.h"
16512 /* System header to define __stub macros and hopefully few prototypes,
16513     which can conflict with char $ac_func(); below.  */
16514 #include <assert.h>
16515 /* Override any gcc2 internal prototype to avoid an error.  */
16516 /* We use char because int might match the return type of a gcc2
16517     builtin and then its argument prototype would still apply.  */
16518 char $ac_func();
16519
16520 int main() {
16521
16522 /* The GNU C library defines this for functions which it implements
16523     to always fail with ENOSYS.  Some functions are actually named
16524     something starting with __ and the normal name is an alias.  */
16525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16526 choke me
16527 #else
16528 $ac_func();
16529 #endif
16530
16531 ; return 0; }
16532 EOF
16533 if { (eval echo configure:16534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16534   rm -rf conftest*
16535   eval "ac_cv_func_$ac_func=yes"
16536 else
16537   echo "configure: failed program was:" >&5
16538   cat conftest.$ac_ext >&5
16539   rm -rf conftest*
16540   eval "ac_cv_func_$ac_func=no"
16541 fi
16542 rm -f conftest*
16543 fi
16544
16545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16546   echo "$ac_t""yes" 1>&6
16547     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16548   cat >> confdefs.h <<EOF
16549 #define $ac_tr_func 1
16550 EOF
16551  
16552 else
16553   echo "$ac_t""no" 1>&6
16554 fi
16555 done
16556
16557   fi
16558
16559
16560     
16561   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
16562 echo "configure:16563: checking for _long double trig functions" >&5
16563   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
16564   echo $ac_n "(cached) $ac_c" 1>&6
16565 else
16566   
16567     
16568     ac_ext=C
16569 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16570 ac_cpp='$CXXCPP $CPPFLAGS'
16571 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16572 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16573 cross_compiling=$ac_cv_prog_cxx_cross
16574
16575     cat > conftest.$ac_ext <<EOF
16576 #line 16577 "configure"
16577 #include "confdefs.h"
16578 #include <math.h>
16579 int main() {
16580  `for x in _acosl _asinl _atanl \
16581                                           _cosl _sinl _tanl \
16582                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
16583 ; return 0; }
16584 EOF
16585 if { (eval echo configure:16586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16586   rm -rf conftest*
16587   glibcpp_cv_func__long_double_trig_use=yes
16588 else
16589   echo "configure: failed program was:" >&5
16590   cat conftest.$ac_ext >&5
16591   rm -rf conftest*
16592   glibcpp_cv_func__long_double_trig_use=no
16593 fi
16594 rm -f conftest*
16595     ac_ext=c
16596 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16597 ac_cpp='$CPP $CPPFLAGS'
16598 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16599 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16600 cross_compiling=$ac_cv_prog_cc_cross
16601
16602 fi
16603
16604   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
16605   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
16606     for ac_func in _acosl _asinl _atanl \
16607                                           _cosl _sinl _tanl \
16608                                           _coshl _sinhl _tanhl
16609 do
16610 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16611 echo "configure:16612: checking for $ac_func" >&5
16612 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16613   echo $ac_n "(cached) $ac_c" 1>&6
16614 else
16615   cat > conftest.$ac_ext <<EOF
16616 #line 16617 "configure"
16617 #include "confdefs.h"
16618 /* System header to define __stub macros and hopefully few prototypes,
16619     which can conflict with char $ac_func(); below.  */
16620 #include <assert.h>
16621 /* Override any gcc2 internal prototype to avoid an error.  */
16622 /* We use char because int might match the return type of a gcc2
16623     builtin and then its argument prototype would still apply.  */
16624 char $ac_func();
16625
16626 int main() {
16627
16628 /* The GNU C library defines this for functions which it implements
16629     to always fail with ENOSYS.  Some functions are actually named
16630     something starting with __ and the normal name is an alias.  */
16631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16632 choke me
16633 #else
16634 $ac_func();
16635 #endif
16636
16637 ; return 0; }
16638 EOF
16639 if { (eval echo configure:16640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16640   rm -rf conftest*
16641   eval "ac_cv_func_$ac_func=yes"
16642 else
16643   echo "configure: failed program was:" >&5
16644   cat conftest.$ac_ext >&5
16645   rm -rf conftest*
16646   eval "ac_cv_func_$ac_func=no"
16647 fi
16648 rm -f conftest*
16649 fi
16650
16651 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16652   echo "$ac_t""yes" 1>&6
16653     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16654   cat >> confdefs.h <<EOF
16655 #define $ac_tr_func 1
16656 EOF
16657  
16658 else
16659   echo "$ac_t""no" 1>&6
16660 fi
16661 done
16662
16663   fi
16664
16665   
16666   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
16667 echo "configure:16668: checking for _long double round functions" >&5
16668   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
16669   echo $ac_n "(cached) $ac_c" 1>&6
16670 else
16671   
16672     
16673     ac_ext=C
16674 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16675 ac_cpp='$CXXCPP $CPPFLAGS'
16676 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16677 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16678 cross_compiling=$ac_cv_prog_cxx_cross
16679
16680     cat > conftest.$ac_ext <<EOF
16681 #line 16682 "configure"
16682 #include "confdefs.h"
16683 #include <math.h>
16684 int main() {
16685  `for x in _ceill _floorl; do echo "$x (0);"; done` 
16686 ; return 0; }
16687 EOF
16688 if { (eval echo configure:16689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16689   rm -rf conftest*
16690   glibcpp_cv_func__long_double_round_use=yes
16691 else
16692   echo "configure: failed program was:" >&5
16693   cat conftest.$ac_ext >&5
16694   rm -rf conftest*
16695   glibcpp_cv_func__long_double_round_use=no
16696 fi
16697 rm -f conftest*
16698     ac_ext=c
16699 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16700 ac_cpp='$CPP $CPPFLAGS'
16701 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16702 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16703 cross_compiling=$ac_cv_prog_cc_cross
16704
16705 fi
16706
16707   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
16708   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
16709     for ac_func in _ceill _floorl
16710 do
16711 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16712 echo "configure:16713: checking for $ac_func" >&5
16713 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16714   echo $ac_n "(cached) $ac_c" 1>&6
16715 else
16716   cat > conftest.$ac_ext <<EOF
16717 #line 16718 "configure"
16718 #include "confdefs.h"
16719 /* System header to define __stub macros and hopefully few prototypes,
16720     which can conflict with char $ac_func(); below.  */
16721 #include <assert.h>
16722 /* Override any gcc2 internal prototype to avoid an error.  */
16723 /* We use char because int might match the return type of a gcc2
16724     builtin and then its argument prototype would still apply.  */
16725 char $ac_func();
16726
16727 int main() {
16728
16729 /* The GNU C library defines this for functions which it implements
16730     to always fail with ENOSYS.  Some functions are actually named
16731     something starting with __ and the normal name is an alias.  */
16732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16733 choke me
16734 #else
16735 $ac_func();
16736 #endif
16737
16738 ; return 0; }
16739 EOF
16740 if { (eval echo configure:16741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16741   rm -rf conftest*
16742   eval "ac_cv_func_$ac_func=yes"
16743 else
16744   echo "configure: failed program was:" >&5
16745   cat conftest.$ac_ext >&5
16746   rm -rf conftest*
16747   eval "ac_cv_func_$ac_func=no"
16748 fi
16749 rm -f conftest*
16750 fi
16751
16752 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16753   echo "$ac_t""yes" 1>&6
16754     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16755   cat >> confdefs.h <<EOF
16756 #define $ac_tr_func 1
16757 EOF
16758  
16759 else
16760   echo "$ac_t""no" 1>&6
16761 fi
16762 done
16763
16764   fi
16765
16766
16767   LIBS="$ac_save_LIBS"
16768   CXXFLAGS="$ac_save_CXXFLAGS"
16769
16770   
16771     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
16772 echo "configure:16773: checking for main in -lm" >&5
16773 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
16774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16775   echo $ac_n "(cached) $ac_c" 1>&6
16776 else
16777   ac_save_LIBS="$LIBS"
16778 LIBS="-lm  $LIBS"
16779 cat > conftest.$ac_ext <<EOF
16780 #line 16781 "configure"
16781 #include "confdefs.h"
16782
16783 int main() {
16784 main()
16785 ; return 0; }
16786 EOF
16787 if { (eval echo configure:16788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16788   rm -rf conftest*
16789   eval "ac_cv_lib_$ac_lib_var=yes"
16790 else
16791   echo "configure: failed program was:" >&5
16792   cat conftest.$ac_ext >&5
16793   rm -rf conftest*
16794   eval "ac_cv_lib_$ac_lib_var=no"
16795 fi
16796 rm -f conftest*
16797 LIBS="$ac_save_LIBS"
16798
16799 fi
16800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16801   echo "$ac_t""yes" 1>&6
16802     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
16803     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
16804   cat >> confdefs.h <<EOF
16805 #define $ac_tr_lib 1
16806 EOF
16807
16808   LIBS="-lm $LIBS"
16809
16810 else
16811   echo "$ac_t""no" 1>&6
16812 fi
16813
16814   for ac_func in nan copysignf
16815 do
16816 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16817 echo "configure:16818: checking for $ac_func" >&5
16818 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16819   echo $ac_n "(cached) $ac_c" 1>&6
16820 else
16821   cat > conftest.$ac_ext <<EOF
16822 #line 16823 "configure"
16823 #include "confdefs.h"
16824 /* System header to define __stub macros and hopefully few prototypes,
16825     which can conflict with char $ac_func(); below.  */
16826 #include <assert.h>
16827 /* Override any gcc2 internal prototype to avoid an error.  */
16828 /* We use char because int might match the return type of a gcc2
16829     builtin and then its argument prototype would still apply.  */
16830 char $ac_func();
16831
16832 int main() {
16833
16834 /* The GNU C library defines this for functions which it implements
16835     to always fail with ENOSYS.  Some functions are actually named
16836     something starting with __ and the normal name is an alias.  */
16837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16838 choke me
16839 #else
16840 $ac_func();
16841 #endif
16842
16843 ; return 0; }
16844 EOF
16845 if { (eval echo configure:16846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16846   rm -rf conftest*
16847   eval "ac_cv_func_$ac_func=yes"
16848 else
16849   echo "configure: failed program was:" >&5
16850   cat conftest.$ac_ext >&5
16851   rm -rf conftest*
16852   eval "ac_cv_func_$ac_func=no"
16853 fi
16854 rm -f conftest*
16855 fi
16856
16857 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16858   echo "$ac_t""yes" 1>&6
16859     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16860   cat >> confdefs.h <<EOF
16861 #define $ac_tr_func 1
16862 EOF
16863  
16864 else
16865   echo "$ac_t""no" 1>&6
16866 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
16867 fi
16868 done
16869
16870
16871
16872           USE_COMPLEX_LONG_DOUBLE=no
16873   if test x$ac_cv_func_copysignl = x"yes"; then
16874     USE_COMPLEX_LONG_DOUBLE=yes
16875     for ac_func in signbitl
16876 do
16877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16878 echo "configure:16879: checking for $ac_func" >&5
16879 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16880   echo $ac_n "(cached) $ac_c" 1>&6
16881 else
16882   cat > conftest.$ac_ext <<EOF
16883 #line 16884 "configure"
16884 #include "confdefs.h"
16885 /* System header to define __stub macros and hopefully few prototypes,
16886     which can conflict with char $ac_func(); below.  */
16887 #include <assert.h>
16888 /* Override any gcc2 internal prototype to avoid an error.  */
16889 /* We use char because int might match the return type of a gcc2
16890     builtin and then its argument prototype would still apply.  */
16891 char $ac_func();
16892
16893 int main() {
16894
16895 /* The GNU C library defines this for functions which it implements
16896     to always fail with ENOSYS.  Some functions are actually named
16897     something starting with __ and the normal name is an alias.  */
16898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16899 choke me
16900 #else
16901 $ac_func();
16902 #endif
16903
16904 ; return 0; }
16905 EOF
16906 if { (eval echo configure:16907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16907   rm -rf conftest*
16908   eval "ac_cv_func_$ac_func=yes"
16909 else
16910   echo "configure: failed program was:" >&5
16911   cat conftest.$ac_ext >&5
16912   rm -rf conftest*
16913   eval "ac_cv_func_$ac_func=no"
16914 fi
16915 rm -f conftest*
16916 fi
16917
16918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16919   echo "$ac_t""yes" 1>&6
16920     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16921   cat >> confdefs.h <<EOF
16922 #define $ac_tr_func 1
16923 EOF
16924  
16925 else
16926   echo "$ac_t""no" 1>&6
16927 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
16928 fi
16929 done
16930
16931
16932   fi
16933
16934   
16935
16936   
16937
16938       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
16939 echo "configure:16940: checking for mbstate_t" >&5
16940   cat > conftest.$ac_ext <<EOF
16941 #line 16942 "configure"
16942 #include "confdefs.h"
16943 #include <wchar.h>
16944 int main() {
16945 mbstate_t teststate;
16946 ; return 0; }
16947 EOF
16948 if { (eval echo configure:16949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16949   rm -rf conftest*
16950   have_mbstate_t=yes
16951 else
16952   echo "configure: failed program was:" >&5
16953   cat conftest.$ac_ext >&5
16954   rm -rf conftest*
16955   have_mbstate_t=no
16956 fi
16957 rm -f conftest*
16958   echo "$ac_t""$have_mbstate_t" 1>&6
16959   if test x"$have_mbstate_t" = xyes; then
16960     cat >> confdefs.h <<\EOF
16961 #define HAVE_MBSTATE_T 1
16962 EOF
16963
16964   fi
16965
16966     for ac_hdr in wchar.h
16967 do
16968 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16969 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16970 echo "configure:16971: checking for $ac_hdr" >&5
16971 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16972   echo $ac_n "(cached) $ac_c" 1>&6
16973 else
16974   cat > conftest.$ac_ext <<EOF
16975 #line 16976 "configure"
16976 #include "confdefs.h"
16977 #include <$ac_hdr>
16978 EOF
16979 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16980 { (eval echo configure:16981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16981 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16982 if test -z "$ac_err"; then
16983   rm -rf conftest*
16984   eval "ac_cv_header_$ac_safe=yes"
16985 else
16986   echo "$ac_err" >&5
16987   echo "configure: failed program was:" >&5
16988   cat conftest.$ac_ext >&5
16989   rm -rf conftest*
16990   eval "ac_cv_header_$ac_safe=no"
16991 fi
16992 rm -f conftest*
16993 fi
16994 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16995   echo "$ac_t""yes" 1>&6
16996     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16997   cat >> confdefs.h <<EOF
16998 #define $ac_tr_hdr 1
16999 EOF
17000  ac_has_wchar_h=yes
17001 else
17002   echo "$ac_t""no" 1>&6
17003 ac_has_wchar_h=no
17004 fi
17005 done
17006
17007   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
17008 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
17009 echo "configure:17010: checking for wctype.h" >&5
17010 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17011   echo $ac_n "(cached) $ac_c" 1>&6
17012 else
17013   cat > conftest.$ac_ext <<EOF
17014 #line 17015 "configure"
17015 #include "confdefs.h"
17016 #include <wctype.h>
17017 EOF
17018 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17019 { (eval echo configure:17020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17020 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17021 if test -z "$ac_err"; then
17022   rm -rf conftest*
17023   eval "ac_cv_header_$ac_safe=yes"
17024 else
17025   echo "$ac_err" >&5
17026   echo "configure: failed program was:" >&5
17027   cat conftest.$ac_ext >&5
17028   rm -rf conftest*
17029   eval "ac_cv_header_$ac_safe=no"
17030 fi
17031 rm -f conftest*
17032 fi
17033 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17034   echo "$ac_t""yes" 1>&6
17035   ac_has_wctype_h=yes
17036 else
17037   echo "$ac_t""no" 1>&6
17038 ac_has_wctype_h=no
17039 fi
17040
17041   
17042     if test x"$ac_has_wchar_h" = xyes &&
17043      test x"$ac_has_wctype_h" = xyes &&
17044      test x"$enable_c_mbchar" != xno; then
17045       
17046             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
17047 echo "configure:17048: checking for WCHAR_MIN and WCHAR_MAX" >&5
17048     cat > conftest.$ac_ext <<EOF
17049 #line 17050 "configure"
17050 #include "confdefs.h"
17051 #include <wchar.h>
17052 int main() {
17053 int i = WCHAR_MIN; int j = WCHAR_MAX;
17054 ; return 0; }
17055 EOF
17056 if { (eval echo configure:17057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17057   rm -rf conftest*
17058   has_wchar_minmax=yes
17059 else
17060   echo "configure: failed program was:" >&5
17061   cat conftest.$ac_ext >&5
17062   rm -rf conftest*
17063   has_wchar_minmax=no
17064 fi
17065 rm -f conftest*
17066     echo "$ac_t""$has_wchar_minmax" 1>&6
17067     
17068             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
17069 echo "configure:17070: checking for WEOF" >&5
17070     cat > conftest.$ac_ext <<EOF
17071 #line 17072 "configure"
17072 #include "confdefs.h"
17073
17074       #include <wchar.h>
17075       #include <stddef.h>
17076 int main() {
17077 wint_t i = WEOF;
17078 ; return 0; }
17079 EOF
17080 if { (eval echo configure:17081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17081   rm -rf conftest*
17082   has_weof=yes
17083 else
17084   echo "configure: failed program was:" >&5
17085   cat conftest.$ac_ext >&5
17086   rm -rf conftest*
17087   has_weof=no
17088 fi
17089 rm -f conftest*
17090     echo "$ac_t""$has_weof" 1>&6
17091   
17092         ac_wfuncs=yes
17093     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
17094 do
17095 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17096 echo "configure:17097: checking for $ac_func" >&5
17097 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17098   echo $ac_n "(cached) $ac_c" 1>&6
17099 else
17100   cat > conftest.$ac_ext <<EOF
17101 #line 17102 "configure"
17102 #include "confdefs.h"
17103 /* System header to define __stub macros and hopefully few prototypes,
17104     which can conflict with char $ac_func(); below.  */
17105 #include <assert.h>
17106 /* Override any gcc2 internal prototype to avoid an error.  */
17107 /* We use char because int might match the return type of a gcc2
17108     builtin and then its argument prototype would still apply.  */
17109 char $ac_func();
17110
17111 int main() {
17112
17113 /* The GNU C library defines this for functions which it implements
17114     to always fail with ENOSYS.  Some functions are actually named
17115     something starting with __ and the normal name is an alias.  */
17116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17117 choke me
17118 #else
17119 $ac_func();
17120 #endif
17121
17122 ; return 0; }
17123 EOF
17124 if { (eval echo configure:17125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17125   rm -rf conftest*
17126   eval "ac_cv_func_$ac_func=yes"
17127 else
17128   echo "configure: failed program was:" >&5
17129   cat conftest.$ac_ext >&5
17130   rm -rf conftest*
17131   eval "ac_cv_func_$ac_func=no"
17132 fi
17133 rm -f conftest*
17134 fi
17135
17136 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17137   echo "$ac_t""yes" 1>&6
17138     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17139   cat >> confdefs.h <<EOF
17140 #define $ac_tr_func 1
17141 EOF
17142  
17143 else
17144   echo "$ac_t""no" 1>&6
17145 \
17146     ac_wfuncs=no
17147 fi
17148 done
17149
17150   
17151         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
17152     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
17153     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
17154     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
17155     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
17156     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
17157 do
17158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17159 echo "configure:17160: checking for $ac_func" >&5
17160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17161   echo $ac_n "(cached) $ac_c" 1>&6
17162 else
17163   cat > conftest.$ac_ext <<EOF
17164 #line 17165 "configure"
17165 #include "confdefs.h"
17166 /* System header to define __stub macros and hopefully few prototypes,
17167     which can conflict with char $ac_func(); below.  */
17168 #include <assert.h>
17169 /* Override any gcc2 internal prototype to avoid an error.  */
17170 /* We use char because int might match the return type of a gcc2
17171     builtin and then its argument prototype would still apply.  */
17172 char $ac_func();
17173
17174 int main() {
17175
17176 /* The GNU C library defines this for functions which it implements
17177     to always fail with ENOSYS.  Some functions are actually named
17178     something starting with __ and the normal name is an alias.  */
17179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17180 choke me
17181 #else
17182 $ac_func();
17183 #endif
17184
17185 ; return 0; }
17186 EOF
17187 if { (eval echo configure:17188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17188   rm -rf conftest*
17189   eval "ac_cv_func_$ac_func=yes"
17190 else
17191   echo "configure: failed program was:" >&5
17192   cat conftest.$ac_ext >&5
17193   rm -rf conftest*
17194   eval "ac_cv_func_$ac_func=no"
17195 fi
17196 rm -f conftest*
17197 fi
17198
17199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17200   echo "$ac_t""yes" 1>&6
17201     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17202   cat >> confdefs.h <<EOF
17203 #define $ac_tr_func 1
17204 EOF
17205  
17206 else
17207   echo "$ac_t""no" 1>&6
17208 \
17209     ac_wfuncs=no
17210 fi
17211 done
17212
17213
17214     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
17215 echo "configure:17216: checking for ISO C99 wchar_t support" >&5
17216     if test x"$has_weof" = xyes &&
17217        test x"$has_wchar_minmax" = xyes &&
17218        test x"$ac_wfuncs" = xyes; then
17219       ac_isoC99_wchar_t=yes
17220     else
17221       ac_isoC99_wchar_t=no
17222     fi
17223     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
17224   
17225             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
17226 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
17227 echo "configure:17228: checking for iconv.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 <iconv.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_iconv_h=yes
17254 else
17255   echo "$ac_t""no" 1>&6
17256 ac_has_iconv_h=no
17257 fi
17258
17259     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
17260 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
17261 echo "configure:17262: checking for langinfo.h" >&5
17262 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17263   echo $ac_n "(cached) $ac_c" 1>&6
17264 else
17265   cat > conftest.$ac_ext <<EOF
17266 #line 17267 "configure"
17267 #include "confdefs.h"
17268 #include <langinfo.h>
17269 EOF
17270 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17271 { (eval echo configure:17272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17272 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17273 if test -z "$ac_err"; then
17274   rm -rf conftest*
17275   eval "ac_cv_header_$ac_safe=yes"
17276 else
17277   echo "$ac_err" >&5
17278   echo "configure: failed program was:" >&5
17279   cat conftest.$ac_ext >&5
17280   rm -rf conftest*
17281   eval "ac_cv_header_$ac_safe=no"
17282 fi
17283 rm -f conftest*
17284 fi
17285 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17286   echo "$ac_t""yes" 1>&6
17287   ac_has_langinfo_h=yes
17288 else
17289   echo "$ac_t""no" 1>&6
17290 ac_has_langinfo_h=no
17291 fi
17292
17293
17294         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
17295 echo "configure:17296: checking for iconv in -liconv" >&5
17296 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
17297 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17298   echo $ac_n "(cached) $ac_c" 1>&6
17299 else
17300   ac_save_LIBS="$LIBS"
17301 LIBS="-liconv  $LIBS"
17302 cat > conftest.$ac_ext <<EOF
17303 #line 17304 "configure"
17304 #include "confdefs.h"
17305 /* Override any gcc2 internal prototype to avoid an error.  */
17306 /* We use char because int might match the return type of a gcc2
17307     builtin and then its argument prototype would still apply.  */
17308 char iconv();
17309
17310 int main() {
17311 iconv()
17312 ; return 0; }
17313 EOF
17314 if { (eval echo configure:17315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17315   rm -rf conftest*
17316   eval "ac_cv_lib_$ac_lib_var=yes"
17317 else
17318   echo "configure: failed program was:" >&5
17319   cat conftest.$ac_ext >&5
17320   rm -rf conftest*
17321   eval "ac_cv_lib_$ac_lib_var=no"
17322 fi
17323 rm -f conftest*
17324 LIBS="$ac_save_LIBS"
17325
17326 fi
17327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17328   echo "$ac_t""yes" 1>&6
17329   libiconv="-liconv"
17330 else
17331   echo "$ac_t""no" 1>&6
17332 fi
17333
17334     ac_save_LIBS="$LIBS"
17335     LIBS="$LIBS $libiconv"
17336
17337     for ac_func in iconv_open iconv_close iconv nl_langinfo
17338 do
17339 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17340 echo "configure:17341: checking for $ac_func" >&5
17341 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17342   echo $ac_n "(cached) $ac_c" 1>&6
17343 else
17344   cat > conftest.$ac_ext <<EOF
17345 #line 17346 "configure"
17346 #include "confdefs.h"
17347 /* System header to define __stub macros and hopefully few prototypes,
17348     which can conflict with char $ac_func(); below.  */
17349 #include <assert.h>
17350 /* Override any gcc2 internal prototype to avoid an error.  */
17351 /* We use char because int might match the return type of a gcc2
17352     builtin and then its argument prototype would still apply.  */
17353 char $ac_func();
17354
17355 int main() {
17356
17357 /* The GNU C library defines this for functions which it implements
17358     to always fail with ENOSYS.  Some functions are actually named
17359     something starting with __ and the normal name is an alias.  */
17360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17361 choke me
17362 #else
17363 $ac_func();
17364 #endif
17365
17366 ; return 0; }
17367 EOF
17368 if { (eval echo configure:17369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17369   rm -rf conftest*
17370   eval "ac_cv_func_$ac_func=yes"
17371 else
17372   echo "configure: failed program was:" >&5
17373   cat conftest.$ac_ext >&5
17374   rm -rf conftest*
17375   eval "ac_cv_func_$ac_func=no"
17376 fi
17377 rm -f conftest*
17378 fi
17379
17380 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17381   echo "$ac_t""yes" 1>&6
17382     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17383   cat >> confdefs.h <<EOF
17384 #define $ac_tr_func 1
17385 EOF
17386  \
17387     ac_XPG2funcs=yes
17388 else
17389   echo "$ac_t""no" 1>&6
17390 ac_XPG2funcs=no
17391 fi
17392 done
17393
17394   
17395     LIBS="$ac_save_LIBS"
17396
17397     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
17398 echo "configure:17399: checking for XPG2 wchar_t support" >&5
17399     if test x"$ac_has_iconv_h" = xyes &&
17400        test x"$ac_has_langinfo_h" = xyes &&
17401        test x"$ac_XPG2funcs" = xyes; then
17402       ac_XPG2_wchar_t=yes
17403     else
17404       ac_XPG2_wchar_t=no
17405     fi
17406     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
17407   
17408             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
17409 echo "configure:17410: checking for enabled wchar_t specializations" >&5
17410     if test x"$ac_isoC99_wchar_t" = xyes &&
17411        test x"$ac_XPG2_wchar_t" = xyes; then
17412       cat >> confdefs.h <<\EOF
17413 #define _GLIBCPP_USE_WCHAR_T 1
17414 EOF
17415
17416       echo "$ac_t"""yes"" 1>&6
17417     else
17418       echo "$ac_t"""no"" 1>&6
17419     fi
17420   else
17421         echo "configure: warning: wchar_t support disabled." 1>&2
17422   fi
17423
17424   
17425   ac_test_CXXFLAGS="${CXXFLAGS+set}"
17426   ac_save_CXXFLAGS="$CXXFLAGS"
17427   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
17428
17429   
17430   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
17431 echo "configure:17432: checking for strtold declaration" >&5
17432   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
17433     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
17434   echo $ac_n "(cached) $ac_c" 1>&6
17435 else
17436   
17437       
17438       ac_ext=C
17439 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17440 ac_cpp='$CXXCPP $CPPFLAGS'
17441 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17442 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17443 cross_compiling=$ac_cv_prog_cxx_cross
17444
17445       cat > conftest.$ac_ext <<EOF
17446 #line 17447 "configure"
17447 #include "confdefs.h"
17448 #include <stdlib.h>
17449 int main() {
17450  strtold(0, 0);
17451 ; return 0; }
17452 EOF
17453 if { (eval echo configure:17454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17454   rm -rf conftest*
17455   glibcpp_cv_func_strtold_use=yes
17456 else
17457   echo "configure: failed program was:" >&5
17458   cat conftest.$ac_ext >&5
17459   rm -rf conftest*
17460   glibcpp_cv_func_strtold_use=no
17461 fi
17462 rm -f conftest*
17463       ac_ext=c
17464 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17465 ac_cpp='$CPP $CPPFLAGS'
17466 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17467 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17468 cross_compiling=$ac_cv_prog_cc_cross
17469
17470     
17471 fi
17472
17473   fi
17474   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
17475   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
17476     for ac_func in strtold
17477 do
17478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17479 echo "configure:17480: checking for $ac_func" >&5
17480 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17481   echo $ac_n "(cached) $ac_c" 1>&6
17482 else
17483   cat > conftest.$ac_ext <<EOF
17484 #line 17485 "configure"
17485 #include "confdefs.h"
17486 /* System header to define __stub macros and hopefully few prototypes,
17487     which can conflict with char $ac_func(); below.  */
17488 #include <assert.h>
17489 /* Override any gcc2 internal prototype to avoid an error.  */
17490 /* We use char because int might match the return type of a gcc2
17491     builtin and then its argument prototype would still apply.  */
17492 char $ac_func();
17493
17494 int main() {
17495
17496 /* The GNU C library defines this for functions which it implements
17497     to always fail with ENOSYS.  Some functions are actually named
17498     something starting with __ and the normal name is an alias.  */
17499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17500 choke me
17501 #else
17502 $ac_func();
17503 #endif
17504
17505 ; return 0; }
17506 EOF
17507 if { (eval echo configure:17508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17508   rm -rf conftest*
17509   eval "ac_cv_func_$ac_func=yes"
17510 else
17511   echo "configure: failed program was:" >&5
17512   cat conftest.$ac_ext >&5
17513   rm -rf conftest*
17514   eval "ac_cv_func_$ac_func=no"
17515 fi
17516 rm -f conftest*
17517 fi
17518
17519 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17520   echo "$ac_t""yes" 1>&6
17521     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17522   cat >> confdefs.h <<EOF
17523 #define $ac_tr_func 1
17524 EOF
17525  
17526 else
17527   echo "$ac_t""no" 1>&6
17528 fi
17529 done
17530     
17531   fi
17532
17533   for ac_func in drand48
17534 do
17535 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17536 echo "configure:17537: checking for $ac_func" >&5
17537 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17538   echo $ac_n "(cached) $ac_c" 1>&6
17539 else
17540   cat > conftest.$ac_ext <<EOF
17541 #line 17542 "configure"
17542 #include "confdefs.h"
17543 /* System header to define __stub macros and hopefully few prototypes,
17544     which can conflict with char $ac_func(); below.  */
17545 #include <assert.h>
17546 /* Override any gcc2 internal prototype to avoid an error.  */
17547 /* We use char because int might match the return type of a gcc2
17548     builtin and then its argument prototype would still apply.  */
17549 char $ac_func();
17550
17551 int main() {
17552
17553 /* The GNU C library defines this for functions which it implements
17554     to always fail with ENOSYS.  Some functions are actually named
17555     something starting with __ and the normal name is an alias.  */
17556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17557 choke me
17558 #else
17559 $ac_func();
17560 #endif
17561
17562 ; return 0; }
17563 EOF
17564 if { (eval echo configure:17565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17565   rm -rf conftest*
17566   eval "ac_cv_func_$ac_func=yes"
17567 else
17568   echo "configure: failed program was:" >&5
17569   cat conftest.$ac_ext >&5
17570   rm -rf conftest*
17571   eval "ac_cv_func_$ac_func=no"
17572 fi
17573 rm -f conftest*
17574 fi
17575
17576 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17577   echo "$ac_t""yes" 1>&6
17578     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17579   cat >> confdefs.h <<EOF
17580 #define $ac_tr_func 1
17581 EOF
17582  
17583 else
17584   echo "$ac_t""no" 1>&6
17585 fi
17586 done
17587
17588
17589   CXXFLAGS="$ac_save_CXXFLAGS"
17590
17591   
17592   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
17593 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
17594 echo "configure:17595: checking for locale.h" >&5
17595 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17596   echo $ac_n "(cached) $ac_c" 1>&6
17597 else
17598   cat > conftest.$ac_ext <<EOF
17599 #line 17600 "configure"
17600 #include "confdefs.h"
17601 #include <locale.h>
17602 EOF
17603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17604 { (eval echo configure:17605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17605 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17606 if test -z "$ac_err"; then
17607   rm -rf conftest*
17608   eval "ac_cv_header_$ac_safe=yes"
17609 else
17610   echo "$ac_err" >&5
17611   echo "configure: failed program was:" >&5
17612   cat conftest.$ac_ext >&5
17613   rm -rf conftest*
17614   eval "ac_cv_header_$ac_safe=no"
17615 fi
17616 rm -f conftest*
17617 fi
17618 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17619   echo "$ac_t""yes" 1>&6
17620   
17621     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
17622 echo "configure:17623: checking for LC_MESSAGES" >&5
17623 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
17624   echo $ac_n "(cached) $ac_c" 1>&6
17625 else
17626   cat > conftest.$ac_ext <<EOF
17627 #line 17628 "configure"
17628 #include "confdefs.h"
17629 #include <locale.h>
17630 int main() {
17631 return LC_MESSAGES
17632 ; return 0; }
17633 EOF
17634 if { (eval echo configure:17635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17635   rm -rf conftest*
17636   ac_cv_val_LC_MESSAGES=yes
17637 else
17638   echo "configure: failed program was:" >&5
17639   cat conftest.$ac_ext >&5
17640   rm -rf conftest*
17641   ac_cv_val_LC_MESSAGES=no
17642 fi
17643 rm -f conftest*
17644 fi
17645
17646 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
17647     if test $ac_cv_val_LC_MESSAGES = yes; then
17648       cat >> confdefs.h <<\EOF
17649 #define HAVE_LC_MESSAGES 1
17650 EOF
17651
17652     fi
17653   
17654 else
17655   echo "$ac_t""no" 1>&6
17656 fi
17657
17658
17659
17660   cat > conftest.$ac_ext <<EOF
17661 #line 17662 "configure"
17662 #include "confdefs.h"
17663
17664   #include <setjmp.h>
17665   
17666 int main() {
17667 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
17668 ; return 0; }
17669 EOF
17670 if { (eval echo configure:17671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17671   rm -rf conftest*
17672   cat >> confdefs.h <<\EOF
17673 #define HAVE_SIGSETJMP 1
17674 EOF
17675
17676   
17677 else
17678   echo "configure: failed program was:" >&5
17679   cat conftest.$ac_ext >&5
17680 fi
17681 rm -f conftest*
17682
17683   for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
17684 do
17685 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17686 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17687 echo "configure:17688: checking for $ac_hdr" >&5
17688 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17689   echo $ac_n "(cached) $ac_c" 1>&6
17690 else
17691   cat > conftest.$ac_ext <<EOF
17692 #line 17693 "configure"
17693 #include "confdefs.h"
17694 #include <$ac_hdr>
17695 EOF
17696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17697 { (eval echo configure:17698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17699 if test -z "$ac_err"; then
17700   rm -rf conftest*
17701   eval "ac_cv_header_$ac_safe=yes"
17702 else
17703   echo "$ac_err" >&5
17704   echo "configure: failed program was:" >&5
17705   cat conftest.$ac_ext >&5
17706   rm -rf conftest*
17707   eval "ac_cv_header_$ac_safe=no"
17708 fi
17709 rm -f conftest*
17710 fi
17711 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17712   echo "$ac_t""yes" 1>&6
17713     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17714   cat >> confdefs.h <<EOF
17715 #define $ac_tr_hdr 1
17716 EOF
17717  
17718 else
17719   echo "$ac_t""no" 1>&6
17720 fi
17721 done
17722
17723 for ac_func in getpagesize
17724 do
17725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17726 echo "configure:17727: checking for $ac_func" >&5
17727 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17728   echo $ac_n "(cached) $ac_c" 1>&6
17729 else
17730   cat > conftest.$ac_ext <<EOF
17731 #line 17732 "configure"
17732 #include "confdefs.h"
17733 /* System header to define __stub macros and hopefully few prototypes,
17734     which can conflict with char $ac_func(); below.  */
17735 #include <assert.h>
17736 /* Override any gcc2 internal prototype to avoid an error.  */
17737 /* We use char because int might match the return type of a gcc2
17738     builtin and then its argument prototype would still apply.  */
17739 char $ac_func();
17740
17741 int main() {
17742
17743 /* The GNU C library defines this for functions which it implements
17744     to always fail with ENOSYS.  Some functions are actually named
17745     something starting with __ and the normal name is an alias.  */
17746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17747 choke me
17748 #else
17749 $ac_func();
17750 #endif
17751
17752 ; return 0; }
17753 EOF
17754 if { (eval echo configure:17755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17755   rm -rf conftest*
17756   eval "ac_cv_func_$ac_func=yes"
17757 else
17758   echo "configure: failed program was:" >&5
17759   cat conftest.$ac_ext >&5
17760   rm -rf conftest*
17761   eval "ac_cv_func_$ac_func=no"
17762 fi
17763 rm -f conftest*
17764 fi
17765
17766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17767   echo "$ac_t""yes" 1>&6
17768     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17769   cat >> confdefs.h <<EOF
17770 #define $ac_tr_func 1
17771 EOF
17772  
17773 else
17774   echo "$ac_t""no" 1>&6
17775 fi
17776 done
17777
17778 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
17779 echo "configure:17780: checking for working mmap" >&5
17780 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
17781   echo $ac_n "(cached) $ac_c" 1>&6
17782 else
17783   if test "$cross_compiling" = yes; then
17784   ac_cv_func_mmap_fixed_mapped=no
17785 else
17786   cat > conftest.$ac_ext <<EOF
17787 #line 17788 "configure"
17788 #include "confdefs.h"
17789
17790 /* Thanks to Mike Haertel and Jim Avera for this test.
17791    Here is a matrix of mmap possibilities:
17792         mmap private not fixed
17793         mmap private fixed at somewhere currently unmapped
17794         mmap private fixed at somewhere already mapped
17795         mmap shared not fixed
17796         mmap shared fixed at somewhere currently unmapped
17797         mmap shared fixed at somewhere already mapped
17798    For private mappings, we should verify that changes cannot be read()
17799    back from the file, nor mmap's back from the file at a different
17800    address.  (There have been systems where private was not correctly
17801    implemented like the infamous i386 svr4.0, and systems where the
17802    VM page cache was not coherent with the filesystem buffer cache
17803    like early versions of FreeBSD and possibly contemporary NetBSD.)
17804    For shared mappings, we should conversely verify that changes get
17805    propogated back to all the places they're supposed to be.
17806
17807    Grep wants private fixed already mapped.
17808    The main things grep needs to know about mmap are:
17809    * does it exist and is it safe to write into the mmap'd area
17810    * how to use it (BSD variants)  */
17811 #include <sys/types.h>
17812 #include <fcntl.h>
17813 #include <sys/mman.h>
17814
17815 #if HAVE_SYS_TYPES_H
17816 # include <sys/types.h>
17817 #endif
17818
17819 #if HAVE_STDLIB_H
17820 # include <stdlib.h>
17821 #endif
17822
17823 #if HAVE_SYS_STAT_H
17824 # include <sys/stat.h>
17825 #endif
17826
17827 #if HAVE_UNISTD_H
17828 # include <unistd.h>
17829 #endif
17830
17831 /* This mess was copied from the GNU getpagesize.h.  */
17832 #ifndef HAVE_GETPAGESIZE
17833
17834 /* Assume that all systems that can run configure have sys/param.h.  */
17835 # ifndef HAVE_SYS_PARAM_H
17836 #  define HAVE_SYS_PARAM_H 1
17837 # endif
17838
17839 # ifdef _SC_PAGESIZE
17840 #  define getpagesize() sysconf(_SC_PAGESIZE)
17841 # else /* no _SC_PAGESIZE */
17842 #  ifdef HAVE_SYS_PARAM_H
17843 #   include <sys/param.h>
17844 #   ifdef EXEC_PAGESIZE
17845 #    define getpagesize() EXEC_PAGESIZE
17846 #   else /* no EXEC_PAGESIZE */
17847 #    ifdef NBPG
17848 #     define getpagesize() NBPG * CLSIZE
17849 #     ifndef CLSIZE
17850 #      define CLSIZE 1
17851 #     endif /* no CLSIZE */
17852 #    else /* no NBPG */
17853 #     ifdef NBPC
17854 #      define getpagesize() NBPC
17855 #     else /* no NBPC */
17856 #      ifdef PAGESIZE
17857 #       define getpagesize() PAGESIZE
17858 #      endif /* PAGESIZE */
17859 #     endif /* no NBPC */
17860 #    endif /* no NBPG */
17861 #   endif /* no EXEC_PAGESIZE */
17862 #  else /* no HAVE_SYS_PARAM_H */
17863 #   define getpagesize() 8192   /* punt totally */
17864 #  endif /* no HAVE_SYS_PARAM_H */
17865 # endif /* no _SC_PAGESIZE */
17866
17867 #endif /* no HAVE_GETPAGESIZE */
17868
17869 #ifdef __cplusplus
17870 extern "C" { void *malloc(unsigned); }
17871 #else
17872 char *malloc();
17873 #endif
17874
17875 int
17876 main()
17877 {
17878         char *data, *data2, *data3;
17879         int i, pagesize;
17880         int fd;
17881
17882         pagesize = getpagesize();
17883
17884         /*
17885          * First, make a file with some known garbage in it.
17886          */
17887         data = malloc(pagesize);
17888         if (!data)
17889                 exit(1);
17890         for (i = 0; i < pagesize; ++i)
17891                 *(data + i) = rand();
17892         umask(0);
17893         fd = creat("conftestmmap", 0600);
17894         if (fd < 0)
17895                 exit(1);
17896         if (write(fd, data, pagesize) != pagesize)
17897                 exit(1);
17898         close(fd);
17899
17900         /*
17901          * Next, try to mmap the file at a fixed address which
17902          * already has something else allocated at it.  If we can,
17903          * also make sure that we see the same garbage.
17904          */
17905         fd = open("conftestmmap", O_RDWR);
17906         if (fd < 0)
17907                 exit(1);
17908         data2 = malloc(2 * pagesize);
17909         if (!data2)
17910                 exit(1);
17911         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
17912         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
17913             MAP_PRIVATE | MAP_FIXED, fd, 0L))
17914                 exit(1);
17915         for (i = 0; i < pagesize; ++i)
17916                 if (*(data + i) != *(data2 + i))
17917                         exit(1);
17918
17919         /*
17920          * Finally, make sure that changes to the mapped area
17921          * do not percolate back to the file as seen by read().
17922          * (This is a bug on some variants of i386 svr4.0.)
17923          */
17924         for (i = 0; i < pagesize; ++i)
17925                 *(data2 + i) = *(data2 + i) + 1;
17926         data3 = malloc(pagesize);
17927         if (!data3)
17928                 exit(1);
17929         if (read(fd, data3, pagesize) != pagesize)
17930                 exit(1);
17931         for (i = 0; i < pagesize; ++i)
17932                 if (*(data + i) != *(data3 + i))
17933                         exit(1);
17934         close(fd);
17935         unlink("conftestmmap");
17936         exit(0);
17937 }
17938
17939 EOF
17940 if { (eval echo configure:17941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
17941 then
17942   ac_cv_func_mmap_fixed_mapped=yes
17943 else
17944   echo "configure: failed program was:" >&5
17945   cat conftest.$ac_ext >&5
17946   rm -fr conftest*
17947   ac_cv_func_mmap_fixed_mapped=no
17948 fi
17949 rm -fr conftest*
17950 fi
17951
17952 fi
17953
17954 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
17955 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17956   cat >> confdefs.h <<\EOF
17957 #define HAVE_MMAP 1
17958 EOF
17959
17960 fi
17961
17962
17963   # Establish limits on memory usage during 'make check'
17964   
17965   
17966   setrlimit_have_headers=yes
17967   for ac_hdr in sys/resource.h unistd.h
17968 do
17969 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17970 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17971 echo "configure:17972: checking for $ac_hdr" >&5
17972 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17973   echo $ac_n "(cached) $ac_c" 1>&6
17974 else
17975   cat > conftest.$ac_ext <<EOF
17976 #line 17977 "configure"
17977 #include "confdefs.h"
17978 #include <$ac_hdr>
17979 EOF
17980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17981 { (eval echo configure:17982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17983 if test -z "$ac_err"; then
17984   rm -rf conftest*
17985   eval "ac_cv_header_$ac_safe=yes"
17986 else
17987   echo "$ac_err" >&5
17988   echo "configure: failed program was:" >&5
17989   cat conftest.$ac_ext >&5
17990   rm -rf conftest*
17991   eval "ac_cv_header_$ac_safe=no"
17992 fi
17993 rm -f conftest*
17994 fi
17995 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17996   echo "$ac_t""yes" 1>&6
17997     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17998   cat >> confdefs.h <<EOF
17999 #define $ac_tr_hdr 1
18000 EOF
18001  
18002 else
18003   echo "$ac_t""no" 1>&6
18004 setrlimit_have_headers=no
18005 fi
18006 done
18007
18008   # If don't have the headers, then we can't run the tests now, and we
18009   # won't be seeing any of these during testsuite compilation.
18010   if test $setrlimit_have_headers = yes; then
18011     # Can't do these in a loop, else the resulting syntax is wrong.
18012     
18013   cat > conftest.$ac_ext <<EOF
18014 #line 18015 "configure"
18015 #include "confdefs.h"
18016 #include <sys/resource.h>
18017                   #include <unistd.h>
18018                  
18019 int main() {
18020  int f = RLIMIT_DATA ; 
18021 ; return 0; }
18022 EOF
18023 if { (eval echo configure:18024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18024   rm -rf conftest*
18025   glibcpp_mresult=1
18026 else
18027   echo "configure: failed program was:" >&5
18028   cat conftest.$ac_ext >&5
18029   rm -rf conftest*
18030   glibcpp_mresult=0
18031 fi
18032 rm -f conftest*
18033   cat >> confdefs.h <<EOF
18034 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
18035 EOF
18036
18037
18038     
18039   cat > conftest.$ac_ext <<EOF
18040 #line 18041 "configure"
18041 #include "confdefs.h"
18042 #include <sys/resource.h>
18043                   #include <unistd.h>
18044                  
18045 int main() {
18046  int f = RLIMIT_RSS ; 
18047 ; return 0; }
18048 EOF
18049 if { (eval echo configure:18050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18050   rm -rf conftest*
18051   glibcpp_mresult=1
18052 else
18053   echo "configure: failed program was:" >&5
18054   cat conftest.$ac_ext >&5
18055   rm -rf conftest*
18056   glibcpp_mresult=0
18057 fi
18058 rm -f conftest*
18059   cat >> confdefs.h <<EOF
18060 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
18061 EOF
18062
18063
18064     
18065   cat > conftest.$ac_ext <<EOF
18066 #line 18067 "configure"
18067 #include "confdefs.h"
18068 #include <sys/resource.h>
18069                   #include <unistd.h>
18070                  
18071 int main() {
18072  int f = RLIMIT_VMEM ; 
18073 ; return 0; }
18074 EOF
18075 if { (eval echo configure:18076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18076   rm -rf conftest*
18077   glibcpp_mresult=1
18078 else
18079   echo "configure: failed program was:" >&5
18080   cat conftest.$ac_ext >&5
18081   rm -rf conftest*
18082   glibcpp_mresult=0
18083 fi
18084 rm -f conftest*
18085   cat >> confdefs.h <<EOF
18086 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
18087 EOF
18088
18089
18090     
18091   cat > conftest.$ac_ext <<EOF
18092 #line 18093 "configure"
18093 #include "confdefs.h"
18094 #include <sys/resource.h>
18095                   #include <unistd.h>
18096                  
18097 int main() {
18098  int f = RLIMIT_AS ; 
18099 ; return 0; }
18100 EOF
18101 if { (eval echo configure:18102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18102   rm -rf conftest*
18103   glibcpp_mresult=1
18104 else
18105   echo "configure: failed program was:" >&5
18106   cat conftest.$ac_ext >&5
18107   rm -rf conftest*
18108   glibcpp_mresult=0
18109 fi
18110 rm -f conftest*
18111   cat >> confdefs.h <<EOF
18112 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
18113 EOF
18114
18115
18116
18117     # Check for rlimit, setrlimit.
18118     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
18119   echo $ac_n "(cached) $ac_c" 1>&6
18120 else
18121   
18122       cat > conftest.$ac_ext <<EOF
18123 #line 18124 "configure"
18124 #include "confdefs.h"
18125 #include <sys/resource.h>
18126                       #include <unistd.h>
18127                      
18128 int main() {
18129  struct rlimit r; setrlimit(0, &r);
18130 ; return 0; }
18131 EOF
18132 if { (eval echo configure:18133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18133   rm -rf conftest*
18134   ac_setrlimit=yes
18135 else
18136   echo "configure: failed program was:" >&5
18137   cat conftest.$ac_ext >&5
18138   rm -rf conftest*
18139   ac_setrlimit=no
18140 fi
18141 rm -f conftest*
18142     
18143 fi
18144
18145   fi
18146
18147   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
18148 echo "configure:18149: checking for testsuite memory limit support" >&5
18149   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
18150     ac_mem_limits=yes
18151     cat >> confdefs.h <<\EOF
18152 #define _GLIBCPP_MEM_LIMITS 1
18153 EOF
18154
18155   else
18156     ac_mem_limits=no
18157   fi
18158   echo "$ac_t""$ac_mem_limits" 1>&6
18159
18160
18161 fi
18162
18163
18164 # Propagate the target-specific source directories through the build chain.
18165 OS_INC_SRCDIR=$os_include_dir/bits
18166 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
18167 CPU_LIMITS_INC_SRCDIR=$CPULIMITSH/bits
18168
18169
18170
18171
18172 # Set up cross-compile flags
18173
18174
18175
18176 if test "$CANADIAN" = yes; then
18177   CANADIAN_TRUE=
18178   CANADIAN_FALSE='#'
18179 else
18180   CANADIAN_TRUE='#'
18181   CANADIAN_FALSE=
18182 fi
18183  
18184 cat > confcache <<\EOF
18185 # This file is a shell script that caches the results of configure
18186 # tests run on this system so they can be shared between configure
18187 # scripts and configure runs.  It is not useful on other systems.
18188 # If it contains results you don't want to keep, you may remove or edit it.
18189 #
18190 # By default, configure uses ./config.cache as the cache file,
18191 # creating it if it does not exist already.  You can give configure
18192 # the --cache-file=FILE option to use a different cache file; that is
18193 # what configure does when it calls configure scripts in
18194 # subdirectories, so they share the cache.
18195 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18196 # config.status only pays attention to the cache file if you give it the
18197 # --recheck option to rerun configure.
18198 #
18199 EOF
18200 # The following way of writing the cache mishandles newlines in values,
18201 # but we know of no workaround that is simple, portable, and efficient.
18202 # So, don't put newlines in cache variables' values.
18203 # Ultrix sh set writes to stderr and can't be redirected directly,
18204 # and sets the high bit in the cache file unless we assign to the vars.
18205 (set) 2>&1 |
18206   case `(ac_space=' '; set | grep ac_space) 2>&1` in
18207   *ac_space=\ *)
18208     # `set' does not quote correctly, so add quotes (double-quote substitution
18209     # turns \\\\ into \\, and sed turns \\ into \).
18210     sed -n \
18211       -e "s/'/'\\\\''/g" \
18212       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18213     ;;
18214   *)
18215     # `set' quotes correctly as required by POSIX, so do not add quotes.
18216     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18217     ;;
18218   esac >> confcache
18219 if cmp -s $cache_file confcache; then
18220   :
18221 else
18222   if test -w $cache_file; then
18223     echo "updating cache $cache_file"
18224     cat confcache > $cache_file
18225   else
18226     echo "not updating unwritable cache $cache_file"
18227   fi
18228 fi
18229 rm -f confcache
18230
18231
18232 if test "${multilib}" = "yes"; then
18233   multilib_arg="--enable-multilib"
18234 else
18235   multilib_arg=
18236 fi
18237
18238 # Needed so that g++ can find the correct include subdir automatically.
18239 INTERFACE=v3
18240
18241 # Export all the install information
18242
18243 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
18244 # exported correctly in GLIBCPP_CONFIGURE.
18245 glibcpp_toolexecdir=no
18246 glibcpp_toolexeclibdir=no
18247 glibcpp_prefixdir=${prefix}
18248
18249 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
18250 echo "configure:18251: checking for interface version number" >&5
18251 libstdcxx_interface=$INTERFACE
18252 echo "$ac_t""$libstdcxx_interface" 1>&6
18253
18254 # Process the option --with-gxx-include-dir=<path to include-files directory>
18255 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
18256 echo "configure:18257: checking for --with-gxx-include-dir" >&5
18257 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
18258 if test "${with_gxx_include_dir+set}" = set; then
18259   withval="$with_gxx_include_dir"
18260   case "${withval}" in
18261   yes)
18262     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
18263     gxx_include_dir=no
18264     ;;
18265   no)
18266     gxx_include_dir=no
18267     ;;
18268   *)
18269     gxx_include_dir=${withval}
18270     ;;
18271 esac
18272 else
18273   gxx_include_dir=no
18274 fi
18275
18276 echo "$ac_t""$gxx_include_dir" 1>&6
18277
18278 # Process the option "--enable-version-specific-runtime-libs"
18279 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
18280 echo "configure:18281: checking for --enable-version-specific-runtime-libs" >&5
18281 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
18282 if test "${enable_version_specific_runtime_libs+set}" = set; then
18283   enableval="$enable_version_specific_runtime_libs"
18284   case "$enableval" in
18285  yes) version_specific_libs=yes ;;
18286  no)  version_specific_libs=no ;;
18287  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
18288  esac
18289 else
18290   version_specific_libs=no
18291 fi
18292 # Option set, now we can test it.
18293 echo "$ac_t""$version_specific_libs" 1>&6
18294
18295 if test $version_specific_libs = yes; then
18296   # Need the gcc compiler version to know where to install libraries
18297   # and header files if --enable-version-specific-runtime-libs option
18298   # is selected.
18299     gcc_version_trigger=${srcdir}/../gcc/version.c
18300   gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
18301   gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
18302   gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
18303   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
18304   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
18305   fi
18306
18307 # Default case for install directory for include files.
18308 if test $version_specific_libs = no &&
18309    test $gxx_include_dir = no; then
18310   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
18311 fi
18312
18313 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
18314 # Install a library built with a cross compiler in tooldir, not libdir.
18315 if test x"$glibcpp_toolexecdir" = x"no"; then 
18316   if test -n "$with_cross_host" &&
18317      test x"$with_cross_host" != x"no"; then
18318     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
18319     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
18320   else
18321     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
18322     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
18323   fi
18324 fi
18325
18326 echo $ac_n "checking for install location""... $ac_c" 1>&6
18327 echo "configure:18328: checking for install location" >&5
18328 echo "$ac_t""$gxx_include_dir" 1>&6
18329
18330
18331
18332
18333
18334
18335
18336 # Export all the include and flag information to makefiles.
18337
18338   # Root level of the build directory include sources.
18339   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
18340
18341   # Passed down for canadian crosses.
18342   if test x"$CANADIAN" = xyes; then
18343     TOPLEVEL_INCLUDES='-I$(includedir)'
18344   fi
18345
18346   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
18347
18348   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
18349
18350   if test x"$need_libio" = xyes; then
18351     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
18352     
18353   fi
18354
18355   # Now, export this to all the little Makefiles....
18356   
18357   
18358   
18359   
18360
18361
18362   # Optimization flags that are probably a good idea for thrill-seekers. Just
18363   # uncomment the lines below and make, everything else is ready to go... 
18364   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
18365   OPTIMIZE_CXXFLAGS=
18366   
18367
18368   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
18369   
18370
18371
18372 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
18373    grep "enable shared" > /dev/null; then
18374   LIBSUPCXX_PICFLAGS=-prefer-pic
18375 else
18376   LIBSUPCXX_PICFLAGS=
18377 fi
18378
18379
18380 # Generate the various Makefiles, include files, and scripts.
18381 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
18382 # and libsupc++/Makefile.am so that multilib installs will end up
18383 # installed in the correct place. To work around this not being passed
18384 # down from config-ml.in -> top_srcdir/Makefile.am ->
18385 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
18386 trap '' 1 2 15
18387 cat > confcache <<\EOF
18388 # This file is a shell script that caches the results of configure
18389 # tests run on this system so they can be shared between configure
18390 # scripts and configure runs.  It is not useful on other systems.
18391 # If it contains results you don't want to keep, you may remove or edit it.
18392 #
18393 # By default, configure uses ./config.cache as the cache file,
18394 # creating it if it does not exist already.  You can give configure
18395 # the --cache-file=FILE option to use a different cache file; that is
18396 # what configure does when it calls configure scripts in
18397 # subdirectories, so they share the cache.
18398 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18399 # config.status only pays attention to the cache file if you give it the
18400 # --recheck option to rerun configure.
18401 #
18402 EOF
18403 # The following way of writing the cache mishandles newlines in values,
18404 # but we know of no workaround that is simple, portable, and efficient.
18405 # So, don't put newlines in cache variables' values.
18406 # Ultrix sh set writes to stderr and can't be redirected directly,
18407 # and sets the high bit in the cache file unless we assign to the vars.
18408 (set) 2>&1 |
18409   case `(ac_space=' '; set | grep ac_space) 2>&1` in
18410   *ac_space=\ *)
18411     # `set' does not quote correctly, so add quotes (double-quote substitution
18412     # turns \\\\ into \\, and sed turns \\ into \).
18413     sed -n \
18414       -e "s/'/'\\\\''/g" \
18415       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18416     ;;
18417   *)
18418     # `set' quotes correctly as required by POSIX, so do not add quotes.
18419     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18420     ;;
18421   esac >> confcache
18422 if cmp -s $cache_file confcache; then
18423   :
18424 else
18425   if test -w $cache_file; then
18426     echo "updating cache $cache_file"
18427     cat confcache > $cache_file
18428   else
18429     echo "not updating unwritable cache $cache_file"
18430   fi
18431 fi
18432 rm -f confcache
18433
18434 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18435
18436 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18437 # Let make expand exec_prefix.
18438 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18439
18440 # Any assignment to VPATH causes Sun make to only execute
18441 # the first set of double-colon rules, so remove it if not needed.
18442 # If there is a colon in the path, we need to keep it.
18443 if test "x$srcdir" = x.; then
18444   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
18445 fi
18446
18447 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18448
18449 DEFS=-DHAVE_CONFIG_H
18450
18451 # Without the "./", some shells look in PATH for config.status.
18452 : ${CONFIG_STATUS=./config.status}
18453
18454 echo creating $CONFIG_STATUS
18455 rm -f $CONFIG_STATUS
18456 cat > $CONFIG_STATUS <<EOF
18457 #! /bin/sh
18458 # Generated automatically by configure.
18459 # Run this file to recreate the current configuration.
18460 # This directory was configured as follows,
18461 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18462 #
18463 # $0 $ac_configure_args
18464 #
18465 # Compiler output produced by configure, useful for debugging
18466 # configure, is in ./config.log if it exists.
18467
18468 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18469 for ac_option
18470 do
18471   case "\$ac_option" in
18472   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18473     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18474     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18475   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18476     echo "$CONFIG_STATUS generated by autoconf version 2.13"
18477     exit 0 ;;
18478   -help | --help | --hel | --he | --h)
18479     echo "\$ac_cs_usage"; exit 0 ;;
18480   *) echo "\$ac_cs_usage"; exit 1 ;;
18481   esac
18482 done
18483
18484 ac_given_srcdir=$srcdir
18485 ac_given_INSTALL="$INSTALL"
18486
18487 trap 'rm -fr `echo "Makefile \
18488     include/Makefile src/Makefile \
18489     libmath/Makefile libio/Makefile libsupc++/Makefile \
18490     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
18491 EOF
18492 cat >> $CONFIG_STATUS <<EOF
18493
18494 # Protect against being on the right side of a sed subst in config.status.
18495 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18496  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18497 $ac_vpsub
18498 $extrasub
18499 s%@SHELL@%$SHELL%g
18500 s%@CFLAGS@%$CFLAGS%g
18501 s%@CPPFLAGS@%$CPPFLAGS%g
18502 s%@CXXFLAGS@%$CXXFLAGS%g
18503 s%@FFLAGS@%$FFLAGS%g
18504 s%@DEFS@%$DEFS%g
18505 s%@LDFLAGS@%$LDFLAGS%g
18506 s%@LIBS@%$LIBS%g
18507 s%@exec_prefix@%$exec_prefix%g
18508 s%@prefix@%$prefix%g
18509 s%@program_transform_name@%$program_transform_name%g
18510 s%@bindir@%$bindir%g
18511 s%@sbindir@%$sbindir%g
18512 s%@libexecdir@%$libexecdir%g
18513 s%@datadir@%$datadir%g
18514 s%@sysconfdir@%$sysconfdir%g
18515 s%@sharedstatedir@%$sharedstatedir%g
18516 s%@localstatedir@%$localstatedir%g
18517 s%@libdir@%$libdir%g
18518 s%@includedir@%$includedir%g
18519 s%@oldincludedir@%$oldincludedir%g
18520 s%@infodir@%$infodir%g
18521 s%@mandir@%$mandir%g
18522 s%@PACKAGE@%$PACKAGE%g
18523 s%@release_VERSION@%$release_VERSION%g
18524 s%@libtool_VERSION@%$libtool_VERSION%g
18525 s%@host@%$host%g
18526 s%@host_alias@%$host_alias%g
18527 s%@host_cpu@%$host_cpu%g
18528 s%@host_vendor@%$host_vendor%g
18529 s%@host_os@%$host_os%g
18530 s%@target@%$target%g
18531 s%@target_alias@%$target_alias%g
18532 s%@target_cpu@%$target_cpu%g
18533 s%@target_vendor@%$target_vendor%g
18534 s%@target_os@%$target_os%g
18535 s%@build@%$build%g
18536 s%@build_alias@%$build_alias%g
18537 s%@build_cpu@%$build_cpu%g
18538 s%@build_vendor@%$build_vendor%g
18539 s%@build_os@%$build_os%g
18540 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18541 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18542 s%@INSTALL_DATA@%$INSTALL_DATA%g
18543 s%@VERSION@%$VERSION%g
18544 s%@ACLOCAL@%$ACLOCAL%g
18545 s%@AUTOCONF@%$AUTOCONF%g
18546 s%@AUTOMAKE@%$AUTOMAKE%g
18547 s%@AUTOHEADER@%$AUTOHEADER%g
18548 s%@MAKEINFO@%$MAKEINFO%g
18549 s%@SET_MAKE@%$SET_MAKE%g
18550 s%@toplevel_srcdir@%$toplevel_srcdir%g
18551 s%@glibcpp_builddir@%$glibcpp_builddir%g
18552 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
18553 s%@LN_S@%$LN_S%g
18554 s%@glibcpp_basedir@%$glibcpp_basedir%g
18555 s%@CC@%$CC%g
18556 s%@glibcpp_CXX@%$glibcpp_CXX%g
18557 s%@AS@%$AS%g
18558 s%@AR@%$AR%g
18559 s%@RANLIB@%$RANLIB%g
18560 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
18561 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
18562 s%@MAINT@%$MAINT%g
18563 s%@EXEEXT@%$EXEEXT%g
18564 s%@OBJEXT@%$OBJEXT%g
18565 s%@STRIP@%$STRIP%g
18566 s%@LIBTOOL@%$LIBTOOL%g
18567 s%@CXXCPP@%$CXXCPP%g
18568 s%@enable_shared@%$enable_shared%g
18569 s%@enable_static@%$enable_static%g
18570 s%@ifGNUmake@%$ifGNUmake%g
18571 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
18572 s%@CPP@%$CPP%g
18573 s%@CSTDIO_H@%$CSTDIO_H%g
18574 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
18575 s%@CCODECVT_C@%$CCODECVT_C%g
18576 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
18577 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
18578 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
18579 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
18580 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
18581 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
18582 s%@libio_la@%$libio_la%g
18583 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
18584 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
18585 s%@glibcpp_localedir@%$glibcpp_localedir%g
18586 s%@USE_NLS@%$USE_NLS%g
18587 s%@CLOCALE_H@%$CLOCALE_H%g
18588 s%@CCODECVT_H@%$CCODECVT_H%g
18589 s%@CMESSAGES_H@%$CMESSAGES_H%g
18590 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
18591 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
18592 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
18593 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
18594 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
18595 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
18596 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
18597 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
18598 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
18599 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
18600 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
18601 s%@WERROR@%$WERROR%g
18602 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
18603 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
18604 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
18605 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
18606 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
18607 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
18608 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
18609 s%@gxx_include_dir@%$gxx_include_dir%g
18610 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
18611 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
18612 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
18613 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
18614 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
18615 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
18616 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
18617 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
18618 s%@WARN_FLAGS@%$WARN_FLAGS%g
18619 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
18620
18621 CEOF
18622 EOF
18623
18624 cat >> $CONFIG_STATUS <<\EOF
18625
18626 # Split the substitutions into bite-sized pieces for seds with
18627 # small command number limits, like on Digital OSF/1 and HP-UX.
18628 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18629 ac_file=1 # Number of current file.
18630 ac_beg=1 # First line for current file.
18631 ac_end=$ac_max_sed_cmds # Line after last line for current file.
18632 ac_more_lines=:
18633 ac_sed_cmds=""
18634 while $ac_more_lines; do
18635   if test $ac_beg -gt 1; then
18636     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18637   else
18638     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18639   fi
18640   if test ! -s conftest.s$ac_file; then
18641     ac_more_lines=false
18642     rm -f conftest.s$ac_file
18643   else
18644     if test -z "$ac_sed_cmds"; then
18645       ac_sed_cmds="sed -f conftest.s$ac_file"
18646     else
18647       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18648     fi
18649     ac_file=`expr $ac_file + 1`
18650     ac_beg=$ac_end
18651     ac_end=`expr $ac_end + $ac_max_sed_cmds`
18652   fi
18653 done
18654 if test -z "$ac_sed_cmds"; then
18655   ac_sed_cmds=cat
18656 fi
18657 EOF
18658
18659 cat >> $CONFIG_STATUS <<EOF
18660
18661 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
18662     include/Makefile src/Makefile \
18663     libmath/Makefile libio/Makefile libsupc++/Makefile \
18664     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
18665 EOF
18666 cat >> $CONFIG_STATUS <<\EOF
18667 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18668   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18669   case "$ac_file" in
18670   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18671        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18672   *) ac_file_in="${ac_file}.in" ;;
18673   esac
18674
18675   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18676
18677   # Remove last slash and all that follows it.  Not all systems have dirname.
18678   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18679   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18680     # The file is in a subdirectory.
18681     test ! -d "$ac_dir" && mkdir "$ac_dir"
18682     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18683     # A "../" for each directory in $ac_dir_suffix.
18684     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18685   else
18686     ac_dir_suffix= ac_dots=
18687   fi
18688
18689   case "$ac_given_srcdir" in
18690   .)  srcdir=.
18691       if test -z "$ac_dots"; then top_srcdir=.
18692       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18693   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18694   *) # Relative path.
18695     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18696     top_srcdir="$ac_dots$ac_given_srcdir" ;;
18697   esac
18698
18699   case "$ac_given_INSTALL" in
18700   [/$]*) INSTALL="$ac_given_INSTALL" ;;
18701   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18702   esac
18703
18704   echo creating "$ac_file"
18705   rm -f "$ac_file"
18706   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18707   case "$ac_file" in
18708   *Makefile*) ac_comsub="1i\\
18709 # $configure_input" ;;
18710   *) ac_comsub= ;;
18711   esac
18712
18713   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18714   sed -e "$ac_comsub
18715 s%@configure_input@%$configure_input%g
18716 s%@srcdir@%$srcdir%g
18717 s%@top_srcdir@%$top_srcdir%g
18718 s%@INSTALL@%$INSTALL%g
18719 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18720 fi; done
18721 rm -f conftest.s*
18722
18723 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18724 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18725 #
18726 # ac_d sets the value in "#define NAME VALUE" lines.
18727 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18728 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
18729 ac_dC='\3'
18730 ac_dD='%g'
18731 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18732 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18733 ac_uB='\([      ]\)%\1#\2define\3'
18734 ac_uC=' '
18735 ac_uD='\4%g'
18736 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18737 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18738 ac_eB='$%\1#\2define\3'
18739 ac_eC=' '
18740 ac_eD='%g'
18741
18742 if test "${CONFIG_HEADERS+set}" != set; then
18743 EOF
18744 cat >> $CONFIG_STATUS <<EOF
18745   CONFIG_HEADERS="config.h"
18746 EOF
18747 cat >> $CONFIG_STATUS <<\EOF
18748 fi
18749 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18750   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18751   case "$ac_file" in
18752   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18753        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18754   *) ac_file_in="${ac_file}.in" ;;
18755   esac
18756
18757   echo creating $ac_file
18758
18759   rm -f conftest.frag conftest.in conftest.out
18760   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18761   cat $ac_file_inputs > conftest.in
18762
18763 EOF
18764
18765 # Transform confdefs.h into a sed script conftest.vals that substitutes
18766 # the proper values into config.h.in to produce config.h.  And first:
18767 # Protect against being on the right side of a sed subst in config.status.
18768 # Protect against being in an unquoted here document in config.status.
18769 rm -f conftest.vals
18770 cat > conftest.hdr <<\EOF
18771 s/[\\&%]/\\&/g
18772 s%[\\$`]%\\&%g
18773 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18774 s%ac_d%ac_u%gp
18775 s%ac_u%ac_e%gp
18776 EOF
18777 sed -n -f conftest.hdr confdefs.h > conftest.vals
18778 rm -f conftest.hdr
18779
18780 # This sed command replaces #undef with comments.  This is necessary, for
18781 # example, in the case of _POSIX_SOURCE, which is predefined and required
18782 # on some systems where configure will not decide to define it.
18783 cat >> conftest.vals <<\EOF
18784 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18785 EOF
18786
18787 # Break up conftest.vals because some shells have a limit on
18788 # the size of here documents, and old seds have small limits too.
18789
18790 rm -f conftest.tail
18791 while :
18792 do
18793   ac_lines=`grep -c . conftest.vals`
18794   # grep -c gives empty output for an empty file on some AIX systems.
18795   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18796   # Write a limited-size here document to conftest.frag.
18797   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18798   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18799   echo 'CEOF
18800   sed -f conftest.frag conftest.in > conftest.out
18801   rm -f conftest.in
18802   mv conftest.out conftest.in
18803 ' >> $CONFIG_STATUS
18804   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18805   rm -f conftest.vals
18806   mv conftest.tail conftest.vals
18807 done
18808 rm -f conftest.vals
18809
18810 cat >> $CONFIG_STATUS <<\EOF
18811   rm -f conftest.frag conftest.h
18812   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
18813   cat conftest.in >> conftest.h
18814   rm -f conftest.in
18815   if cmp -s $ac_file conftest.h 2>/dev/null; then
18816     echo "$ac_file is unchanged"
18817     rm -f conftest.h
18818   else
18819     # Remove last slash and all that follows it.  Not all systems have dirname.
18820       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18821       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18822       # The file is in a subdirectory.
18823       test ! -d "$ac_dir" && mkdir "$ac_dir"
18824     fi
18825     rm -f $ac_file
18826     mv conftest.h $ac_file
18827   fi
18828 fi; done
18829
18830 EOF
18831
18832 cat >> $CONFIG_STATUS <<EOF
18833 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC"
18834 ac_dests="src/basic_file.cc src/c++locale.cc src/collate.cc src/ctype.cc src/messages.cc src/moneypunct.cc src/numpunct.cc src/time.cc"
18835 EOF
18836
18837 cat >> $CONFIG_STATUS <<\EOF
18838 srcdir=$ac_given_srcdir
18839 while test -n "$ac_sources"; do
18840   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
18841   set $ac_sources; ac_source=$1; shift; ac_sources=$*
18842
18843   echo "linking $srcdir/$ac_source to $ac_dest"
18844
18845   if test ! -r $srcdir/$ac_source; then
18846     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
18847   fi
18848   rm -f $ac_dest
18849
18850   # Make relative symlinks.
18851   # Remove last slash and all that follows it.  Not all systems have dirname.
18852   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
18853   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
18854     # The dest file is in a subdirectory.
18855     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
18856     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
18857     # A "../" for each directory in $ac_dest_dir_suffix.
18858     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
18859   else
18860     ac_dest_dir_suffix= ac_dots=
18861   fi
18862
18863   case "$srcdir" in
18864   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
18865   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
18866   esac
18867
18868   # Make a symlink if possible; otherwise try a hard link.
18869   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18870     ln $srcdir/$ac_source $ac_dest; then :
18871   else
18872     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
18873   fi
18874 done
18875 EOF
18876 cat >> $CONFIG_STATUS <<EOF
18877
18878 srcdir=${srcdir}
18879 host=${host}
18880 target=${target}
18881 with_multisubdir=${with_multisubdir}
18882 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18883 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18884 glibcpp_basedir=${glibcpp_basedir}
18885 CC="${CC}"
18886 CXX="${CXX}"
18887
18888 EOF
18889 cat >> $CONFIG_STATUS <<\EOF
18890 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
18891 if test -n "$CONFIG_FILES"; then
18892   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
18893   grep '^MULTISUBDIR =' Makefile >> src/Makefile
18894   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
18895 fi
18896 chmod +x mkcheck
18897 chmod +x testsuite_flags
18898
18899 exit 0
18900 EOF
18901 chmod +x $CONFIG_STATUS
18902 rm -fr confdefs* $ac_clean_files
18903 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
18904
18905
18906
18907 # Sanity checking & User-visible messages.
18908 # Checks down here, otherwise they get scrolled off before
18909 # the user will notice.
18910
18911 # Trying to get more people to read documentation.  Possibly remove
18912 # check and warn all the time. There is no "informational" AC_MSG_
18913 # macro, so these are going to be printed even when --quiet/--silent
18914 # is given.
18915 if test ! -f stamp-sanity-warned; then
18916   touch stamp-sanity-warned
18917   echo ""
18918   echo "Please make certain that you read the installation information here:"
18919   echo "  faster => ${srcdir}/docs/install.html"
18920   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
18921   echo ""
18922   echo "and the configuration information here:"
18923   echo "  faster => ${srcdir}/docs/configopts.html"
18924   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
18925   echo ""
18926   echo "before proceeding with ${_cv_gnu_make_command}."
18927   echo ""
18928 fi