OSDN Git Service

2001-02-27 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   --with-target-subdir=SUBDIR
16                            configuring in a subdirectory"
17 ac_help="$ac_help
18   --with-cross-host=HOST  configuring with a cross compiler"
19 ac_help="$ac_help
20   --enable-multilib       build hella library versions (default)"
21 ac_help="$ac_help
22   --enable-maintainer-mode enable make rules and dependencies not useful
23                           (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25   --enable-shared[=PKGS]  build shared libraries [default=yes]"
26 ac_help="$ac_help
27   --enable-static[=PKGS]  build static libraries [default=yes]"
28 ac_help="$ac_help
29   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33   --disable-libtool-lock  avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37   --enable-debug          extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39   --enable-cstdio        enable stdio for target io package. 
40      --enable-cstdio=LIB    use LIB target-speific io package. [default=stdio]
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-long-long      turns on 'long long' [default=no]"
50 ac_help="$ac_help
51   --enable-cheaders construct "C" header files for
52                            g++ [default=c_std]"
53 ac_help="$ac_help
54   --enable-threads       enable thread usage for target GCC.
55      --enable-threads=LIB   use LIB thread package for target GCC. [default=no]
56   "
57 ac_help="$ac_help
58   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
59                                 [default=none]"
60 ac_help="$ac_help
61  --with-gxx-include-dir  the installation directory for include files"
62 ac_help="$ac_help
63   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
64
65 # Initialize some variables set by options.
66 # The variables have the same names as the options, with
67 # dashes changed to underlines.
68 build=NONE
69 cache_file=./config.cache
70 exec_prefix=NONE
71 host=NONE
72 no_create=
73 nonopt=NONE
74 no_recursion=
75 prefix=NONE
76 program_prefix=NONE
77 program_suffix=NONE
78 program_transform_name=s,x,x,
79 silent=
80 site=
81 srcdir=
82 target=NONE
83 verbose=
84 x_includes=NONE
85 x_libraries=NONE
86 bindir='${exec_prefix}/bin'
87 sbindir='${exec_prefix}/sbin'
88 libexecdir='${exec_prefix}/libexec'
89 datadir='${prefix}/share'
90 sysconfdir='${prefix}/etc'
91 sharedstatedir='${prefix}/com'
92 localstatedir='${prefix}/var'
93 libdir='${exec_prefix}/lib'
94 includedir='${prefix}/include'
95 oldincludedir='/usr/include'
96 infodir='${prefix}/info'
97 mandir='${prefix}/man'
98
99 # Initialize some other variables.
100 subdirs=
101 MFLAGS= MAKEFLAGS=
102 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 ac_max_here_lines=12
105
106 ac_prev=
107 for ac_option
108 do
109
110   # If the previous option needs an argument, assign it.
111   if test -n "$ac_prev"; then
112     eval "$ac_prev=\$ac_option"
113     ac_prev=
114     continue
115   fi
116
117   case "$ac_option" in
118   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
119   *) ac_optarg= ;;
120   esac
121
122   # Accept the important Cygnus configure options, so we can diagnose typos.
123
124   case "$ac_option" in
125
126   -bindir | --bindir | --bindi | --bind | --bin | --bi)
127     ac_prev=bindir ;;
128   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
129     bindir="$ac_optarg" ;;
130
131   -build | --build | --buil | --bui | --bu)
132     ac_prev=build ;;
133   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
134     build="$ac_optarg" ;;
135
136   -cache-file | --cache-file | --cache-fil | --cache-fi \
137   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
138     ac_prev=cache_file ;;
139   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
140   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
141     cache_file="$ac_optarg" ;;
142
143   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
144     ac_prev=datadir ;;
145   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
146   | --da=*)
147     datadir="$ac_optarg" ;;
148
149   -disable-* | --disable-*)
150     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
151     # Reject names that are not valid shell variable names.
152     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
153       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154     fi
155     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
156     eval "enable_${ac_feature}=no" ;;
157
158   -enable-* | --enable-*)
159     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
160     # Reject names that are not valid shell variable names.
161     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
162       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163     fi
164     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
165     case "$ac_option" in
166       *=*) ;;
167       *) ac_optarg=yes ;;
168     esac
169     eval "enable_${ac_feature}='$ac_optarg'" ;;
170
171   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
172   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
173   | --exec | --exe | --ex)
174     ac_prev=exec_prefix ;;
175   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
176   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
177   | --exec=* | --exe=* | --ex=*)
178     exec_prefix="$ac_optarg" ;;
179
180   -gas | --gas | --ga | --g)
181     # Obsolete; use --with-gas.
182     with_gas=yes ;;
183
184   -help | --help | --hel | --he)
185     # Omit some internal or obsolete options to make the list less imposing.
186     # This message is too long to be a string in the A/UX 3.1 sh.
187     cat << EOF
188 Usage: configure [options] [host]
189 Options: [defaults in brackets after descriptions]
190 Configuration:
191   --cache-file=FILE       cache test results in FILE
192   --help                  print this message
193   --no-create             do not create output files
194   --quiet, --silent       do not print \`checking...' messages
195   --version               print the version of autoconf that created configure
196 Directory and file names:
197   --prefix=PREFIX         install architecture-independent files in PREFIX
198                           [$ac_default_prefix]
199   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
200                           [same as prefix]
201   --bindir=DIR            user executables in DIR [EPREFIX/bin]
202   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
203   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
204   --datadir=DIR           read-only architecture-independent data in DIR
205                           [PREFIX/share]
206   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
207   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
208                           [PREFIX/com]
209   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
210   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
211   --includedir=DIR        C header files in DIR [PREFIX/include]
212   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
213   --infodir=DIR           info documentation in DIR [PREFIX/info]
214   --mandir=DIR            man documentation in DIR [PREFIX/man]
215   --srcdir=DIR            find the sources in DIR [configure dir or ..]
216   --program-prefix=PREFIX prepend PREFIX to installed program names
217   --program-suffix=SUFFIX append SUFFIX to installed program names
218   --program-transform-name=PROGRAM
219                           run sed PROGRAM on installed program names
220 EOF
221     cat << EOF
222 Host type:
223   --build=BUILD           configure for building on BUILD [BUILD=HOST]
224   --host=HOST             configure for HOST [guessed]
225   --target=TARGET         configure for TARGET [TARGET=HOST]
226 Features and packages:
227   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
228   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
229   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
230   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
231   --x-includes=DIR        X include files are in DIR
232   --x-libraries=DIR       X library files are in DIR
233 EOF
234     if test -n "$ac_help"; then
235       echo "--enable and --with options recognized:$ac_help"
236     fi
237     exit 0 ;;
238
239   -host | --host | --hos | --ho)
240     ac_prev=host ;;
241   -host=* | --host=* | --hos=* | --ho=*)
242     host="$ac_optarg" ;;
243
244   -includedir | --includedir | --includedi | --included | --include \
245   | --includ | --inclu | --incl | --inc)
246     ac_prev=includedir ;;
247   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
248   | --includ=* | --inclu=* | --incl=* | --inc=*)
249     includedir="$ac_optarg" ;;
250
251   -infodir | --infodir | --infodi | --infod | --info | --inf)
252     ac_prev=infodir ;;
253   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
254     infodir="$ac_optarg" ;;
255
256   -libdir | --libdir | --libdi | --libd)
257     ac_prev=libdir ;;
258   -libdir=* | --libdir=* | --libdi=* | --libd=*)
259     libdir="$ac_optarg" ;;
260
261   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
262   | --libexe | --libex | --libe)
263     ac_prev=libexecdir ;;
264   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
265   | --libexe=* | --libex=* | --libe=*)
266     libexecdir="$ac_optarg" ;;
267
268   -localstatedir | --localstatedir | --localstatedi | --localstated \
269   | --localstate | --localstat | --localsta | --localst \
270   | --locals | --local | --loca | --loc | --lo)
271     ac_prev=localstatedir ;;
272   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
273   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
274   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
275     localstatedir="$ac_optarg" ;;
276
277   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
278     ac_prev=mandir ;;
279   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
280     mandir="$ac_optarg" ;;
281
282   -nfp | --nfp | --nf)
283     # Obsolete; use --without-fp.
284     with_fp=no ;;
285
286   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
287   | --no-cr | --no-c)
288     no_create=yes ;;
289
290   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
291   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
292     no_recursion=yes ;;
293
294   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
295   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
296   | --oldin | --oldi | --old | --ol | --o)
297     ac_prev=oldincludedir ;;
298   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
299   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
300   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
301     oldincludedir="$ac_optarg" ;;
302
303   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
304     ac_prev=prefix ;;
305   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
306     prefix="$ac_optarg" ;;
307
308   -program-prefix | --program-prefix | --program-prefi | --program-pref \
309   | --program-pre | --program-pr | --program-p)
310     ac_prev=program_prefix ;;
311   -program-prefix=* | --program-prefix=* | --program-prefi=* \
312   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
313     program_prefix="$ac_optarg" ;;
314
315   -program-suffix | --program-suffix | --program-suffi | --program-suff \
316   | --program-suf | --program-su | --program-s)
317     ac_prev=program_suffix ;;
318   -program-suffix=* | --program-suffix=* | --program-suffi=* \
319   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
320     program_suffix="$ac_optarg" ;;
321
322   -program-transform-name | --program-transform-name \
323   | --program-transform-nam | --program-transform-na \
324   | --program-transform-n | --program-transform- \
325   | --program-transform | --program-transfor \
326   | --program-transfo | --program-transf \
327   | --program-trans | --program-tran \
328   | --progr-tra | --program-tr | --program-t)
329     ac_prev=program_transform_name ;;
330   -program-transform-name=* | --program-transform-name=* \
331   | --program-transform-nam=* | --program-transform-na=* \
332   | --program-transform-n=* | --program-transform-=* \
333   | --program-transform=* | --program-transfor=* \
334   | --program-transfo=* | --program-transf=* \
335   | --program-trans=* | --program-tran=* \
336   | --progr-tra=* | --program-tr=* | --program-t=*)
337     program_transform_name="$ac_optarg" ;;
338
339   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
340   | -silent | --silent | --silen | --sile | --sil)
341     silent=yes ;;
342
343   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
344     ac_prev=sbindir ;;
345   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
346   | --sbi=* | --sb=*)
347     sbindir="$ac_optarg" ;;
348
349   -sharedstatedir | --sharedstatedir | --sharedstatedi \
350   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
351   | --sharedst | --shareds | --shared | --share | --shar \
352   | --sha | --sh)
353     ac_prev=sharedstatedir ;;
354   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
355   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
356   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
357   | --sha=* | --sh=*)
358     sharedstatedir="$ac_optarg" ;;
359
360   -site | --site | --sit)
361     ac_prev=site ;;
362   -site=* | --site=* | --sit=*)
363     site="$ac_optarg" ;;
364
365   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
366     ac_prev=srcdir ;;
367   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
368     srcdir="$ac_optarg" ;;
369
370   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
371   | --syscon | --sysco | --sysc | --sys | --sy)
372     ac_prev=sysconfdir ;;
373   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
374   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
375     sysconfdir="$ac_optarg" ;;
376
377   -target | --target | --targe | --targ | --tar | --ta | --t)
378     ac_prev=target ;;
379   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
380     target="$ac_optarg" ;;
381
382   -v | -verbose | --verbose | --verbos | --verbo | --verb)
383     verbose=yes ;;
384
385   -version | --version | --versio | --versi | --vers)
386     echo "configure generated by autoconf version 2.13"
387     exit 0 ;;
388
389   -with-* | --with-*)
390     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
391     # Reject names that are not valid shell variable names.
392     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
393       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
394     fi
395     ac_package=`echo $ac_package| sed 's/-/_/g'`
396     case "$ac_option" in
397       *=*) ;;
398       *) ac_optarg=yes ;;
399     esac
400     eval "with_${ac_package}='$ac_optarg'" ;;
401
402   -without-* | --without-*)
403     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
404     # Reject names that are not valid shell variable names.
405     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
406       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407     fi
408     ac_package=`echo $ac_package| sed 's/-/_/g'`
409     eval "with_${ac_package}=no" ;;
410
411   --x)
412     # Obsolete; use --with-x.
413     with_x=yes ;;
414
415   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
416   | --x-incl | --x-inc | --x-in | --x-i)
417     ac_prev=x_includes ;;
418   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
419   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
420     x_includes="$ac_optarg" ;;
421
422   -x-libraries | --x-libraries | --x-librarie | --x-librari \
423   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
424     ac_prev=x_libraries ;;
425   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
426   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
427     x_libraries="$ac_optarg" ;;
428
429   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
430     ;;
431
432   *)
433     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
434       echo "configure: warning: $ac_option: invalid host type" 1>&2
435     fi
436     if test "x$nonopt" != xNONE; then
437       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
438     fi
439     nonopt="$ac_option"
440     ;;
441
442   esac
443 done
444
445 if test -n "$ac_prev"; then
446   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
447 fi
448
449 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
450
451 # File descriptor usage:
452 # 0 standard input
453 # 1 file creation
454 # 2 errors and warnings
455 # 3 some systems may open it to /dev/tty
456 # 4 used on the Kubota Titan
457 # 6 checking for... messages and results
458 # 5 compiler messages saved in config.log
459 if test "$silent" = yes; then
460   exec 6>/dev/null
461 else
462   exec 6>&1
463 fi
464 exec 5>./config.log
465
466 echo "\
467 This file contains any messages produced by compilers while
468 running configure, to aid debugging if configure makes a mistake.
469 " 1>&5
470
471 # Strip out --no-create and --no-recursion so they do not pile up.
472 # Also quote any args containing shell metacharacters.
473 ac_configure_args=
474 for ac_arg
475 do
476   case "$ac_arg" in
477   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
478   | --no-cr | --no-c) ;;
479   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
480   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
481   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
482   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
483   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
484   esac
485 done
486
487 # NLS nuisances.
488 # Only set these to C if already set.  These must not be set unconditionally
489 # because not all systems understand e.g. LANG=C (notably SCO).
490 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
491 # Non-C LC_CTYPE values break the ctype check.
492 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
493 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
494 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
495 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
496
497 # confdefs.h avoids OS command line length limits that DEFS can exceed.
498 rm -rf conftest* confdefs.h
499 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
500 echo > confdefs.h
501
502 # A filename unique to this package, relative to the directory that
503 # configure is in, which we can look for to find out if srcdir is correct.
504 ac_unique_file=src/ios.cc
505
506 # Find the source files, if location was not specified.
507 if test -z "$srcdir"; then
508   ac_srcdir_defaulted=yes
509   # Try the directory containing this script, then its parent.
510   ac_prog=$0
511   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
512   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
513   srcdir=$ac_confdir
514   if test ! -r $srcdir/$ac_unique_file; then
515     srcdir=..
516   fi
517 else
518   ac_srcdir_defaulted=no
519 fi
520 if test ! -r $srcdir/$ac_unique_file; then
521   if test "$ac_srcdir_defaulted" = yes; then
522     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
523   else
524     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
525   fi
526 fi
527 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
528
529 # Prefer explicitly selected file to automatically selected ones.
530 if test -z "$CONFIG_SITE"; then
531   if test "x$prefix" != xNONE; then
532     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
533   else
534     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
535   fi
536 fi
537 for ac_site_file in $CONFIG_SITE; do
538   if test -r "$ac_site_file"; then
539     echo "loading site script $ac_site_file"
540     . "$ac_site_file"
541   fi
542 done
543
544 if test -r "$cache_file"; then
545   echo "loading cache $cache_file"
546   . $cache_file
547 else
548   echo "creating cache $cache_file"
549   > $cache_file
550 fi
551
552 ac_ext=c
553 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
554 ac_cpp='$CPP $CPPFLAGS'
555 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
556 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
557 cross_compiling=$ac_cv_prog_cc_cross
558
559 ac_exeext=
560 ac_objext=o
561 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
562   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
563   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
564     ac_n= ac_c='
565 ' ac_t='        '
566   else
567     ac_n=-n ac_c= ac_t=
568   fi
569 else
570   ac_n= ac_c='\c' ac_t=
571 fi
572
573
574
575 # When building with srcdir == objdir, links to the source files will
576 # be created in directories within the target_subdir.  We have to
577 # adjust toplevel_srcdir accordingly, so that configure finds
578 # install-sh and other auxiliary files that live in the top-level
579 # source directory.
580 if test "${srcdir}" = "."; then
581   if test -z "${with_target_subdir}"; then
582     toplevel_srcdir="\${top_srcdir}/.."
583     auxdir="${srcdir}/.."
584   else
585     if test "${with_target_subdir}" != "."; then
586       toplevel_srcdir="\${top_srcdir}/${with_multisrctop}../.."
587       auxdir="${srcdir}/${with_multisrctop}../.."
588     else
589       toplevel_srcdir="\${top_srcdir}/${with_multisrctop}.."
590       auxdir="${srcdir}/${with_multisrctop}.."
591     fi
592   fi
593 else
594   toplevel_srcdir="\${top_srcdir}/.."
595   auxdir="${srcdir}/.."
596 fi
597 ac_aux_dir=
598 for ac_dir in $auxdir $srcdir/$auxdir; do
599   if test -f $ac_dir/install-sh; then
600     ac_aux_dir=$ac_dir
601     ac_install_sh="$ac_aux_dir/install-sh -c"
602     break
603   elif test -f $ac_dir/install.sh; then
604     ac_aux_dir=$ac_dir
605     ac_install_sh="$ac_aux_dir/install.sh -c"
606     break
607   fi
608 done
609 if test -z "$ac_aux_dir"; then
610   { echo "configure: error: can not find install-sh or install.sh in $auxdir $srcdir/$auxdir" 1>&2; exit 1; }
611 fi
612 ac_config_guess=$ac_aux_dir/config.guess
613 ac_config_sub=$ac_aux_dir/config.sub
614 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
615
616
617
618
619
620 # Gets and sets build, host, target, *_vendor, *_cpu, *_os, etc.
621
622 # Do some error checking and defaulting for the host and target type.
623 # The inputs are:
624 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
625 #
626 # The rules are:
627 # 1. You are not allowed to specify --host, --target, and nonopt at the
628 #    same time.
629 # 2. Host defaults to nonopt.
630 # 3. If nonopt is not specified, then host defaults to the current host,
631 #    as determined by config.guess.
632 # 4. Target and build default to nonopt.
633 # 5. If nonopt is not specified, then target and build default to host.
634
635 # The aliases save the names the user supplied, while $host etc.
636 # will get canonicalized.
637 case $host---$target---$nonopt in
638 NONE---*---* | *---NONE---* | *---*---NONE) ;;
639 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
640 esac
641
642
643 # Make sure we can run config.sub.
644 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
645 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
646 fi
647
648 echo $ac_n "checking host system type""... $ac_c" 1>&6
649 echo "configure:650: checking host system type" >&5
650
651 host_alias=$host
652 case "$host_alias" in
653 NONE)
654   case $nonopt in
655   NONE)
656     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
657     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
658     fi ;;
659   *) host_alias=$nonopt ;;
660   esac ;;
661 esac
662
663 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
664 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
665 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
666 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
667 echo "$ac_t""$host" 1>&6
668
669 echo $ac_n "checking target system type""... $ac_c" 1>&6
670 echo "configure:671: checking target system type" >&5
671
672 target_alias=$target
673 case "$target_alias" in
674 NONE)
675   case $nonopt in
676   NONE) target_alias=$host_alias ;;
677   *) target_alias=$nonopt ;;
678   esac ;;
679 esac
680
681 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
682 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
683 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
684 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
685 echo "$ac_t""$target" 1>&6
686
687 echo $ac_n "checking build system type""... $ac_c" 1>&6
688 echo "configure:689: checking build system type" >&5
689
690 build_alias=$build
691 case "$build_alias" in
692 NONE)
693   case $nonopt in
694   NONE) build_alias=$host_alias ;;
695   *) build_alias=$nonopt ;;
696   esac ;;
697 esac
698
699 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
700 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
701 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
702 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
703 echo "$ac_t""$build" 1>&6
704
705 test "$host_alias" != "$target_alias" &&
706   test "$program_prefix$program_suffix$program_transform_name" = \
707     NONENONEs,x,x, &&
708   program_prefix=${target_alias}-
709
710
711 # We use these options to decide which functions to include.
712 # Check whether --with-target-subdir or --without-target-subdir was given.
713 if test "${with_target_subdir+set}" = set; then
714   withval="$with_target_subdir"
715   :
716 fi
717
718 # Check whether --with-cross-host or --without-cross-host was given.
719 if test "${with_cross_host+set}" = set; then
720   withval="$with_cross_host"
721   :
722 fi
723
724
725 # Runs configure.host and configure.target. Have to run this before
726 # the GLIBCPP_ENABLE_* macros below.
727 # Find a good install program.  We prefer a C program (faster),
728 # so one script is as good as another.  But avoid the broken or
729 # incompatible versions:
730 # SysV /etc/install, /usr/sbin/install
731 # SunOS /usr/etc/install
732 # IRIX /sbin/install
733 # AIX /bin/install
734 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
735 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
736 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
737 # ./install, which can be erroneously created by make from ./install.sh.
738 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
739 echo "configure:740: checking for a BSD compatible install" >&5
740 if test -z "$INSTALL"; then
741 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
742   echo $ac_n "(cached) $ac_c" 1>&6
743 else
744     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
745   for ac_dir in $PATH; do
746     # Account for people who put trailing slashes in PATH elements.
747     case "$ac_dir/" in
748     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
749     *)
750       # OSF1 and SCO ODT 3.0 have their own names for install.
751       # Don't use installbsd from OSF since it installs stuff as root
752       # by default.
753       for ac_prog in ginstall scoinst install; do
754         if test -f $ac_dir/$ac_prog; then
755           if test $ac_prog = install &&
756             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
757             # AIX install.  It has an incompatible calling convention.
758             :
759           else
760             ac_cv_path_install="$ac_dir/$ac_prog -c"
761             break 2
762           fi
763         fi
764       done
765       ;;
766     esac
767   done
768   IFS="$ac_save_IFS"
769
770 fi
771   if test "${ac_cv_path_install+set}" = set; then
772     INSTALL="$ac_cv_path_install"
773   else
774     # As a last resort, use the slow shell script.  We don't cache a
775     # path for INSTALL within a source directory, because that will
776     # break other packages using the cache if that directory is
777     # removed, or if the path is relative.
778     INSTALL="$ac_install_sh"
779   fi
780 fi
781 echo "$ac_t""$INSTALL" 1>&6
782
783 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
784 # It thinks the first close brace ends the variable substitution.
785 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
786
787 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
788
789 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
790
791 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
792 echo "configure:793: checking whether build environment is sane" >&5
793 # Just in case
794 sleep 1
795 echo timestamp > conftestfile
796 # Do `set' in a subshell so we don't clobber the current shell's
797 # arguments.  Must try -L first in case configure is actually a
798 # symlink; some systems play weird games with the mod time of symlinks
799 # (eg FreeBSD returns the mod time of the symlink's containing
800 # directory).
801 if (
802    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
803    if test "$*" = "X"; then
804       # -L didn't work.
805       set X `ls -t $srcdir/configure conftestfile`
806    fi
807    if test "$*" != "X $srcdir/configure conftestfile" \
808       && test "$*" != "X conftestfile $srcdir/configure"; then
809
810       # If neither matched, then we have a broken ls.  This can happen
811       # if, for instance, CONFIG_SHELL is bash and it inherits a
812       # broken ls alias from the environment.  This has actually
813       # happened.  Such a system could not be considered "sane".
814       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
815 alias in your environment" 1>&2; exit 1; }
816    fi
817
818    test "$2" = conftestfile
819    )
820 then
821    # Ok.
822    :
823 else
824    { echo "configure: error: newly created file is older than distributed files!
825 Check your system clock" 1>&2; exit 1; }
826 fi
827 rm -f conftest*
828 echo "$ac_t""yes" 1>&6
829 if test "$program_transform_name" = s,x,x,; then
830   program_transform_name=
831 else
832   # Double any \ or $.  echo might interpret backslashes.
833   cat <<\EOF_SED > conftestsed
834 s,\\,\\\\,g; s,\$,$$,g
835 EOF_SED
836   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
837   rm -f conftestsed
838 fi
839 test "$program_prefix" != NONE &&
840   program_transform_name="s,^,${program_prefix},; $program_transform_name"
841 # Use a double $ so make ignores it.
842 test "$program_suffix" != NONE &&
843   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
844
845 # sed with no file args requires a program.
846 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
847
848 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
849 echo "configure:850: checking whether ${MAKE-make} sets \${MAKE}" >&5
850 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
851 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
852   echo $ac_n "(cached) $ac_c" 1>&6
853 else
854   cat > conftestmake <<\EOF
855 all:
856         @echo 'ac_maketemp="${MAKE}"'
857 EOF
858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
859 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
860 if test -n "$ac_maketemp"; then
861   eval ac_cv_prog_make_${ac_make}_set=yes
862 else
863   eval ac_cv_prog_make_${ac_make}_set=no
864 fi
865 rm -f conftestmake
866 fi
867 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
868   echo "$ac_t""yes" 1>&6
869   SET_MAKE=
870 else
871   echo "$ac_t""no" 1>&6
872   SET_MAKE="MAKE=${MAKE-make}"
873 fi
874
875 if test $host != $build; then
876   ac_tool_prefix=${host_alias}-
877 else
878   ac_tool_prefix=
879 fi
880
881 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
882 echo "configure:883: checking for Cygwin environment" >&5
883 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
884   echo $ac_n "(cached) $ac_c" 1>&6
885 else
886   cat > conftest.$ac_ext <<EOF
887 #line 888 "configure"
888 #include "confdefs.h"
889
890 int main() {
891
892 #ifndef __CYGWIN__
893 #define __CYGWIN__ __CYGWIN32__
894 #endif
895 return __CYGWIN__;
896 ; return 0; }
897 EOF
898 if { (eval echo configure:899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
899   rm -rf conftest*
900   ac_cv_cygwin=yes
901 else
902   echo "configure: failed program was:" >&5
903   cat conftest.$ac_ext >&5
904   rm -rf conftest*
905   ac_cv_cygwin=no
906 fi
907 rm -f conftest*
908 rm -f conftest*
909 fi
910
911 echo "$ac_t""$ac_cv_cygwin" 1>&6
912 CYGWIN=
913 test "$ac_cv_cygwin" = yes && CYGWIN=yes
914 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
915 echo "configure:916: checking for mingw32 environment" >&5
916 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
917   echo $ac_n "(cached) $ac_c" 1>&6
918 else
919   cat > conftest.$ac_ext <<EOF
920 #line 921 "configure"
921 #include "confdefs.h"
922
923 int main() {
924 return __MINGW32__;
925 ; return 0; }
926 EOF
927 if { (eval echo configure:928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
928   rm -rf conftest*
929   ac_cv_mingw32=yes
930 else
931   echo "configure: failed program was:" >&5
932   cat conftest.$ac_ext >&5
933   rm -rf conftest*
934   ac_cv_mingw32=no
935 fi
936 rm -f conftest*
937 rm -f conftest*
938 fi
939
940 echo "$ac_t""$ac_cv_mingw32" 1>&6
941 MINGW32=
942 test "$ac_cv_mingw32" = yes && MINGW32=yes
943
944     # Check whether --enable-multilib or --disable-multilib was given.
945 if test "${enable_multilib+set}" = set; then
946   enableval="$enable_multilib"
947   case "${enableval}" in
948     yes) multilib=yes ;;
949     no)  multilib=no ;;
950     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
951    esac
952 else
953   multilib=yes
954 fi
955
956   glibcpp_basedir=$auxdir/./libstdc++-v3
957   
958
959   
960 PACKAGE=libstdc++
961
962 VERSION=2.91
963
964 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
965   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
966 fi
967 cat >> confdefs.h <<EOF
968 #define PACKAGE "$PACKAGE"
969 EOF
970
971 cat >> confdefs.h <<EOF
972 #define VERSION "$VERSION"
973 EOF
974
975
976
977 missing_dir=`cd $ac_aux_dir && pwd`
978 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
979 echo "configure:980: checking for working aclocal" >&5
980 # Run test in a subshell; some versions of sh will print an error if
981 # an executable is not found, even if stderr is redirected.
982 # Redirect stdin to placate older versions of autoconf.  Sigh.
983 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
984    ACLOCAL=aclocal
985    echo "$ac_t""found" 1>&6
986 else
987    ACLOCAL="$missing_dir/missing aclocal"
988    echo "$ac_t""missing" 1>&6
989 fi
990
991 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
992 echo "configure:993: checking for working autoconf" >&5
993 # Run test in a subshell; some versions of sh will print an error if
994 # an executable is not found, even if stderr is redirected.
995 # Redirect stdin to placate older versions of autoconf.  Sigh.
996 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
997    AUTOCONF=autoconf
998    echo "$ac_t""found" 1>&6
999 else
1000    AUTOCONF="$missing_dir/missing autoconf"
1001    echo "$ac_t""missing" 1>&6
1002 fi
1003
1004 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1005 echo "configure:1006: checking for working automake" >&5
1006 # Run test in a subshell; some versions of sh will print an error if
1007 # an executable is not found, even if stderr is redirected.
1008 # Redirect stdin to placate older versions of autoconf.  Sigh.
1009 if (automake --version) < /dev/null > /dev/null 2>&1; then
1010    AUTOMAKE=automake
1011    echo "$ac_t""found" 1>&6
1012 else
1013    AUTOMAKE="$missing_dir/missing automake"
1014    echo "$ac_t""missing" 1>&6
1015 fi
1016
1017 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1018 echo "configure:1019: checking for working autoheader" >&5
1019 # Run test in a subshell; some versions of sh will print an error if
1020 # an executable is not found, even if stderr is redirected.
1021 # Redirect stdin to placate older versions of autoconf.  Sigh.
1022 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1023    AUTOHEADER=autoheader
1024    echo "$ac_t""found" 1>&6
1025 else
1026    AUTOHEADER="$missing_dir/missing autoheader"
1027    echo "$ac_t""missing" 1>&6
1028 fi
1029
1030 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1031 echo "configure:1032: checking for working makeinfo" >&5
1032 # Run test in a subshell; some versions of sh will print an error if
1033 # an executable is not found, even if stderr is redirected.
1034 # Redirect stdin to placate older versions of autoconf.  Sigh.
1035 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1036    MAKEINFO=makeinfo
1037    echo "$ac_t""found" 1>&6
1038 else
1039    MAKEINFO="$missing_dir/missing makeinfo"
1040    echo "$ac_t""missing" 1>&6
1041 fi
1042
1043
1044
1045   # Never versions of autoconf add an underscore to these functions.
1046   # Prevent future problems ...
1047   
1048   
1049   
1050   
1051
1052 #  AC_PROG_CC
1053
1054 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1055 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1056 # are probably using a cross compiler, which will not be able to fully
1057 # link an executable.  This should really be fixed in autoconf
1058 # itself.
1059
1060
1061
1062
1063 # Extract the first word of "gcc", so it can be a program name with args.
1064 set dummy gcc; ac_word=$2
1065 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1066 echo "configure:1067: checking for $ac_word" >&5
1067 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1068   echo $ac_n "(cached) $ac_c" 1>&6
1069 else
1070   if test -n "$CC"; then
1071   ac_cv_prog_CC="$CC" # Let the user override the test.
1072 else
1073   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1074   ac_dummy="$PATH"
1075   for ac_dir in $ac_dummy; do
1076     test -z "$ac_dir" && ac_dir=.
1077     if test -f $ac_dir/$ac_word; then
1078       ac_cv_prog_CC="gcc"
1079       break
1080     fi
1081   done
1082   IFS="$ac_save_ifs"
1083 fi
1084 fi
1085 CC="$ac_cv_prog_CC"
1086 if test -n "$CC"; then
1087   echo "$ac_t""$CC" 1>&6
1088 else
1089   echo "$ac_t""no" 1>&6
1090 fi
1091
1092 if test -z "$CC"; then
1093   # Extract the first word of "cc", so it can be a program name with args.
1094 set dummy cc; ac_word=$2
1095 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1096 echo "configure:1097: checking for $ac_word" >&5
1097 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1098   echo $ac_n "(cached) $ac_c" 1>&6
1099 else
1100   if test -n "$CC"; then
1101   ac_cv_prog_CC="$CC" # Let the user override the test.
1102 else
1103   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1104   ac_prog_rejected=no
1105   ac_dummy="$PATH"
1106   for ac_dir in $ac_dummy; do
1107     test -z "$ac_dir" && ac_dir=.
1108     if test -f $ac_dir/$ac_word; then
1109       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1110         ac_prog_rejected=yes
1111         continue
1112       fi
1113       ac_cv_prog_CC="cc"
1114       break
1115     fi
1116   done
1117   IFS="$ac_save_ifs"
1118 if test $ac_prog_rejected = yes; then
1119   # We found a bogon in the path, so make sure we never use it.
1120   set dummy $ac_cv_prog_CC
1121   shift
1122   if test $# -gt 0; then
1123     # We chose a different compiler from the bogus one.
1124     # However, it has the same basename, so the bogon will be chosen
1125     # first if we set CC to just the basename; use the full file name.
1126     shift
1127     set dummy "$ac_dir/$ac_word" "$@"
1128     shift
1129     ac_cv_prog_CC="$@"
1130   fi
1131 fi
1132 fi
1133 fi
1134 CC="$ac_cv_prog_CC"
1135 if test -n "$CC"; then
1136   echo "$ac_t""$CC" 1>&6
1137 else
1138   echo "$ac_t""no" 1>&6
1139 fi
1140
1141   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1142 fi
1143
1144 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1145 echo "configure:1146: checking whether we are using GNU C" >&5
1146 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1147   echo $ac_n "(cached) $ac_c" 1>&6
1148 else
1149   cat > conftest.c <<EOF
1150 #ifdef __GNUC__
1151   yes;
1152 #endif
1153 EOF
1154 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1155   ac_cv_prog_gcc=yes
1156 else
1157   ac_cv_prog_gcc=no
1158 fi
1159 fi
1160
1161 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1162
1163 if test $ac_cv_prog_gcc = yes; then
1164   GCC=yes
1165   ac_test_CFLAGS="${CFLAGS+set}"
1166   ac_save_CFLAGS="$CFLAGS"
1167   CFLAGS=
1168   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1169 echo "configure:1170: checking whether ${CC-cc} accepts -g" >&5
1170 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1171   echo $ac_n "(cached) $ac_c" 1>&6
1172 else
1173   echo 'void f(){}' > conftest.c
1174 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1175   ac_cv_prog_cc_g=yes
1176 else
1177   ac_cv_prog_cc_g=no
1178 fi
1179 rm -f conftest*
1180
1181 fi
1182
1183 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1184   if test "$ac_test_CFLAGS" = set; then
1185     CFLAGS="$ac_save_CFLAGS"
1186   elif test $ac_cv_prog_cc_g = yes; then
1187     CFLAGS="-g -O2"
1188   else
1189     CFLAGS="-O2"
1190   fi
1191 else
1192   GCC=
1193   test "${CFLAGS+set}" = set || CFLAGS="-g"
1194 fi
1195
1196
1197 # Can't just call these here as g++ requires libstc++ to be built....
1198 #  AC_PROG_CXX
1199
1200 # Likewise for AC_PROG_CXX.
1201
1202
1203
1204 # Use CXX_libstdcxx so that we do not cause CXX to be cached with the
1205 # flags that come in CXX while configuring libstdc++.  They're different
1206 # from those used for all other target libraries.  If CXX is set in
1207 # the environment, respect that here.
1208 CXX_libstdcxx=$CXX
1209 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1210 do
1211 # Extract the first word of "$ac_prog", so it can be a program name with args.
1212 set dummy $ac_prog; ac_word=$2
1213 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1214 echo "configure:1215: checking for $ac_word" >&5
1215 if eval "test \"`echo '$''{'ac_cv_prog_CXX_libstdcxx'+set}'`\" = set"; then
1216   echo $ac_n "(cached) $ac_c" 1>&6
1217 else
1218   if test -n "$CXX_libstdcxx"; then
1219   ac_cv_prog_CXX_libstdcxx="$CXX_libstdcxx" # Let the user override the test.
1220 else
1221   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1222   ac_dummy="$PATH"
1223   for ac_dir in $ac_dummy; do
1224     test -z "$ac_dir" && ac_dir=.
1225     if test -f $ac_dir/$ac_word; then
1226       ac_cv_prog_CXX_libstdcxx="$ac_prog"
1227       break
1228     fi
1229   done
1230   IFS="$ac_save_ifs"
1231 fi
1232 fi
1233 CXX_libstdcxx="$ac_cv_prog_CXX_libstdcxx"
1234 if test -n "$CXX_libstdcxx"; then
1235   echo "$ac_t""$CXX_libstdcxx" 1>&6
1236 else
1237   echo "$ac_t""no" 1>&6
1238 fi
1239
1240 test -n "$CXX_libstdcxx" && break
1241 done
1242 test -n "$CXX_libstdcxx" || CXX_libstdcxx="gcc"
1243
1244 CXX=$CXX_libstdcxx
1245
1246 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1247
1248 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1249 echo "configure:1250: checking whether we are using GNU C++" >&5
1250 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1251   echo $ac_n "(cached) $ac_c" 1>&6
1252 else
1253   cat > conftest.C <<EOF
1254 #ifdef __GNUC__
1255   yes;
1256 #endif
1257 EOF
1258 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1259   ac_cv_prog_gxx=yes
1260 else
1261   ac_cv_prog_gxx=no
1262 fi
1263 fi
1264
1265 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1266
1267 if test $ac_cv_prog_gxx = yes; then
1268   GXX=yes
1269   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1270   ac_save_CXXFLAGS="$CXXFLAGS"
1271   CXXFLAGS=
1272   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1273 echo "configure:1274: checking whether ${CXX-g++} accepts -g" >&5
1274 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1275   echo $ac_n "(cached) $ac_c" 1>&6
1276 else
1277   echo 'void f(){}' > conftest.cc
1278 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1279   ac_cv_prog_cxx_g=yes
1280 else
1281   ac_cv_prog_cxx_g=no
1282 fi
1283 rm -f conftest*
1284
1285 fi
1286
1287 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1288   if test "$ac_test_CXXFLAGS" = set; then
1289     CXXFLAGS="$ac_save_CXXFLAGS"
1290   elif test $ac_cv_prog_cxx_g = yes; then
1291     CXXFLAGS="-g -O2"
1292   else
1293     CXXFLAGS="-O2"
1294   fi
1295 else
1296   GXX=
1297   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1298 fi
1299
1300
1301   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1302 set dummy ${ac_tool_prefix}as; ac_word=$2
1303 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1304 echo "configure:1305: checking for $ac_word" >&5
1305 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1306   echo $ac_n "(cached) $ac_c" 1>&6
1307 else
1308   if test -n "$AS"; then
1309   ac_cv_prog_AS="$AS" # Let the user override the test.
1310 else
1311   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1312   ac_dummy="$PATH"
1313   for ac_dir in $ac_dummy; do
1314     test -z "$ac_dir" && ac_dir=.
1315     if test -f $ac_dir/$ac_word; then
1316       ac_cv_prog_AS="${ac_tool_prefix}as"
1317       break
1318     fi
1319   done
1320   IFS="$ac_save_ifs"
1321   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1322 fi
1323 fi
1324 AS="$ac_cv_prog_AS"
1325 if test -n "$AS"; then
1326   echo "$ac_t""$AS" 1>&6
1327 else
1328   echo "$ac_t""no" 1>&6
1329 fi
1330
1331
1332
1333   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1334 set dummy ${ac_tool_prefix}ar; ac_word=$2
1335 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1336 echo "configure:1337: checking for $ac_word" >&5
1337 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1338   echo $ac_n "(cached) $ac_c" 1>&6
1339 else
1340   if test -n "$AR"; then
1341   ac_cv_prog_AR="$AR" # Let the user override the test.
1342 else
1343   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1344   ac_dummy="$PATH"
1345   for ac_dir in $ac_dummy; do
1346     test -z "$ac_dir" && ac_dir=.
1347     if test -f $ac_dir/$ac_word; then
1348       ac_cv_prog_AR="${ac_tool_prefix}ar"
1349       break
1350     fi
1351   done
1352   IFS="$ac_save_ifs"
1353   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1354 fi
1355 fi
1356 AR="$ac_cv_prog_AR"
1357 if test -n "$AR"; then
1358   echo "$ac_t""$AR" 1>&6
1359 else
1360   echo "$ac_t""no" 1>&6
1361 fi
1362
1363
1364
1365   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1366 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1367 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1368 echo "configure:1369: checking for $ac_word" >&5
1369 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1370   echo $ac_n "(cached) $ac_c" 1>&6
1371 else
1372   if test -n "$RANLIB"; then
1373   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1374 else
1375   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1376   ac_dummy="$PATH"
1377   for ac_dir in $ac_dummy; do
1378     test -z "$ac_dir" && ac_dir=.
1379     if test -f $ac_dir/$ac_word; then
1380       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1381       break
1382     fi
1383   done
1384   IFS="$ac_save_ifs"
1385 fi
1386 fi
1387 RANLIB="$ac_cv_prog_RANLIB"
1388 if test -n "$RANLIB"; then
1389   echo "$ac_t""$RANLIB" 1>&6
1390 else
1391   echo "$ac_t""no" 1>&6
1392 fi
1393
1394
1395 if test -z "$ac_cv_prog_RANLIB"; then
1396 if test -n "$ac_tool_prefix"; then
1397   # Extract the first word of "ranlib", so it can be a program name with args.
1398 set dummy ranlib; ac_word=$2
1399 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1400 echo "configure:1401: checking for $ac_word" >&5
1401 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1402   echo $ac_n "(cached) $ac_c" 1>&6
1403 else
1404   if test -n "$RANLIB"; then
1405   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1406 else
1407   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1408   ac_dummy="$PATH"
1409   for ac_dir in $ac_dummy; do
1410     test -z "$ac_dir" && ac_dir=.
1411     if test -f $ac_dir/$ac_word; then
1412       ac_cv_prog_RANLIB="ranlib"
1413       break
1414     fi
1415   done
1416   IFS="$ac_save_ifs"
1417   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1418 fi
1419 fi
1420 RANLIB="$ac_cv_prog_RANLIB"
1421 if test -n "$RANLIB"; then
1422   echo "$ac_t""$RANLIB" 1>&6
1423 else
1424   echo "$ac_t""no" 1>&6
1425 fi
1426
1427 else
1428   RANLIB=":"
1429 fi
1430 fi
1431
1432
1433   # Find a good install program.  We prefer a C program (faster),
1434 # so one script is as good as another.  But avoid the broken or
1435 # incompatible versions:
1436 # SysV /etc/install, /usr/sbin/install
1437 # SunOS /usr/etc/install
1438 # IRIX /sbin/install
1439 # AIX /bin/install
1440 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1441 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1442 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1443 # ./install, which can be erroneously created by make from ./install.sh.
1444 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1445 echo "configure:1446: checking for a BSD compatible install" >&5
1446 if test -z "$INSTALL"; then
1447 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1448   echo $ac_n "(cached) $ac_c" 1>&6
1449 else
1450     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1451   for ac_dir in $PATH; do
1452     # Account for people who put trailing slashes in PATH elements.
1453     case "$ac_dir/" in
1454     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1455     *)
1456       # OSF1 and SCO ODT 3.0 have their own names for install.
1457       # Don't use installbsd from OSF since it installs stuff as root
1458       # by default.
1459       for ac_prog in ginstall scoinst install; do
1460         if test -f $ac_dir/$ac_prog; then
1461           if test $ac_prog = install &&
1462             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1463             # AIX install.  It has an incompatible calling convention.
1464             :
1465           else
1466             ac_cv_path_install="$ac_dir/$ac_prog -c"
1467             break 2
1468           fi
1469         fi
1470       done
1471       ;;
1472     esac
1473   done
1474   IFS="$ac_save_IFS"
1475
1476 fi
1477   if test "${ac_cv_path_install+set}" = set; then
1478     INSTALL="$ac_cv_path_install"
1479   else
1480     # As a last resort, use the slow shell script.  We don't cache a
1481     # path for INSTALL within a source directory, because that will
1482     # break other packages using the cache if that directory is
1483     # removed, or if the path is relative.
1484     INSTALL="$ac_install_sh"
1485   fi
1486 fi
1487 echo "$ac_t""$INSTALL" 1>&6
1488
1489 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1490 # It thinks the first close brace ends the variable substitution.
1491 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1492
1493 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1494
1495 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1496
1497
1498   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1499 echo "configure:1500: checking whether to enable maintainer-specific portions of Makefiles" >&5
1500     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1501 if test "${enable_maintainer_mode+set}" = set; then
1502   enableval="$enable_maintainer_mode"
1503   USE_MAINTAINER_MODE=$enableval
1504 else
1505   USE_MAINTAINER_MODE=no
1506 fi
1507
1508   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1509   
1510
1511 if test $USE_MAINTAINER_MODE = yes; then
1512   MAINTAINER_MODE_TRUE=
1513   MAINTAINER_MODE_FALSE='#'
1514 else
1515   MAINTAINER_MODE_TRUE='#'
1516   MAINTAINER_MODE_FALSE=
1517 fi
1518   MAINT=$MAINTAINER_MODE_TRUE
1519   
1520
1521
1522   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1523   # at least currently, we never actually build a program, so we never
1524   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1525   # fails, because we are probably configuring with a cross compiler
1526   # which cant create executables.  So we include AC_EXEEXT to keep
1527   # automake happy, but we dont execute it, since we dont care about
1528   # the result.
1529   if false; then
1530     
1531
1532 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1533 echo "configure:1534: checking for executable suffix" >&5
1534 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1535   echo $ac_n "(cached) $ac_c" 1>&6
1536 else
1537   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1538   ac_cv_exeext=.exe
1539 else
1540   rm -f conftest*
1541   echo 'int main () { return 0; }' > conftest.$ac_ext
1542   ac_cv_exeext=
1543   if { (eval echo configure:1544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1544     for file in conftest.*; do
1545       case $file in
1546       *.c | *.o | *.obj) ;;
1547       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1548       esac
1549     done
1550   else
1551     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1552   fi
1553   rm -f conftest*
1554   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1555 fi
1556 fi
1557
1558 EXEEXT=""
1559 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1560 echo "$ac_t""${ac_cv_exeext}" 1>&6
1561 ac_exeext=$EXEEXT
1562
1563   fi
1564
1565   # configure.host sets the following important variables
1566   #        glibcpp_cflags    - host specific C compiler flags
1567   #        glibcpp_cxxflags  - host specific C++ compiler flags
1568   glibcpp_cflags=
1569   glibcpp_cxxflags=
1570
1571   . ${glibcpp_basedir}/configure.host
1572
1573   case ${glibcpp_basedir} in
1574     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1575     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1576   esac
1577
1578   # This does for the target what configure.host does for the host.  In
1579   # addition to modifying the same flags, it also sets up symlinks.
1580   
1581     . ${glibcpp_basedir}/configure.target
1582     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1583     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1584     
1585
1586
1587   GLIBCPP_CFLAGS="${glibcpp_cflags}"
1588   GLIBCPP_CXXFLAGS="${glibcpp_cxxflags}"
1589   
1590   
1591
1592
1593
1594 # Check whether --enable-shared or --disable-shared was given.
1595 if test "${enable_shared+set}" = set; then
1596   enableval="$enable_shared"
1597   p=${PACKAGE-default}
1598 case "$enableval" in
1599 yes) enable_shared=yes ;;
1600 no) enable_shared=no ;;
1601 *)
1602   enable_shared=no
1603   # Look at the argument we got.  We use all the common list separators.
1604   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1605   for pkg in $enableval; do
1606     if test "X$pkg" = "X$p"; then
1607       enable_shared=yes
1608     fi
1609   done
1610   IFS="$ac_save_ifs"
1611   ;;
1612 esac
1613 else
1614   enable_shared=yes
1615 fi
1616
1617 # Check whether --enable-static or --disable-static was given.
1618 if test "${enable_static+set}" = set; then
1619   enableval="$enable_static"
1620   p=${PACKAGE-default}
1621 case "$enableval" in
1622 yes) enable_static=yes ;;
1623 no) enable_static=no ;;
1624 *)
1625   enable_static=no
1626   # Look at the argument we got.  We use all the common list separators.
1627   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1628   for pkg in $enableval; do
1629     if test "X$pkg" = "X$p"; then
1630       enable_static=yes
1631     fi
1632   done
1633   IFS="$ac_save_ifs"
1634   ;;
1635 esac
1636 else
1637   enable_static=yes
1638 fi
1639
1640 # Check whether --enable-fast-install or --disable-fast-install was given.
1641 if test "${enable_fast_install+set}" = set; then
1642   enableval="$enable_fast_install"
1643   p=${PACKAGE-default}
1644 case "$enableval" in
1645 yes) enable_fast_install=yes ;;
1646 no) enable_fast_install=no ;;
1647 *)
1648   enable_fast_install=no
1649   # Look at the argument we got.  We use all the common list separators.
1650   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1651   for pkg in $enableval; do
1652     if test "X$pkg" = "X$p"; then
1653       enable_fast_install=yes
1654     fi
1655   done
1656   IFS="$ac_save_ifs"
1657   ;;
1658 esac
1659 else
1660   enable_fast_install=yes
1661 fi
1662
1663 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1664 if test "${with_gnu_ld+set}" = set; then
1665   withval="$with_gnu_ld"
1666   test "$withval" = no || with_gnu_ld=yes
1667 else
1668   with_gnu_ld=no
1669 fi
1670
1671 ac_prog=ld
1672 if test "$ac_cv_prog_gcc" = yes; then
1673   # Check if gcc -print-prog-name=ld gives a path.
1674   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1675 echo "configure:1676: checking for ld used by GCC" >&5
1676   case $host in
1677   *-*-mingw*)
1678     # gcc leaves a trailing carriage return which upsets mingw
1679     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1680   *)
1681     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1682   esac
1683   case "$ac_prog" in
1684     # Accept absolute paths.
1685     [\\/]* | [A-Za-z]:[\\/]*)
1686       re_direlt='/[^/][^/]*/\.\./'
1687       # Canonicalize the path of ld
1688       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1689       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1690         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1691       done
1692       test -z "$LD" && LD="$ac_prog"
1693       ;;
1694   "")
1695     # If it fails, then pretend we aren't using GCC.
1696     ac_prog=ld
1697     ;;
1698   *)
1699     # If it is relative, then search for the first ld in PATH.
1700     with_gnu_ld=unknown
1701     ;;
1702   esac
1703 elif test "$with_gnu_ld" = yes; then
1704   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1705 echo "configure:1706: checking for GNU ld" >&5
1706 else
1707   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1708 echo "configure:1709: checking for non-GNU ld" >&5
1709 fi
1710 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1711   echo $ac_n "(cached) $ac_c" 1>&6
1712 else
1713   if test -z "$LD"; then
1714   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1715   for ac_dir in $PATH; do
1716     test -z "$ac_dir" && ac_dir=.
1717     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1718       ac_cv_path_LD="$ac_dir/$ac_prog"
1719       # Check to see if the program is GNU ld.  I'd rather use --version,
1720       # but apparently some GNU ld's only accept -v.
1721       # Break only if it was the GNU/non-GNU ld that we prefer.
1722       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1723         test "$with_gnu_ld" != no && break
1724       else
1725         test "$with_gnu_ld" != yes && break
1726       fi
1727     fi
1728   done
1729   IFS="$ac_save_ifs"
1730 else
1731   ac_cv_path_LD="$LD" # Let the user override the test with a path.
1732 fi
1733 fi
1734
1735 LD="$ac_cv_path_LD"
1736 if test -n "$LD"; then
1737   echo "$ac_t""$LD" 1>&6
1738 else
1739   echo "$ac_t""no" 1>&6
1740 fi
1741 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1742 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1743 echo "configure:1744: checking if the linker ($LD) is GNU ld" >&5
1744 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1745   echo $ac_n "(cached) $ac_c" 1>&6
1746 else
1747   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1748 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1749   ac_cv_prog_gnu_ld=yes
1750 else
1751   ac_cv_prog_gnu_ld=no
1752 fi
1753 fi
1754
1755 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1756 with_gnu_ld=$ac_cv_prog_gnu_ld
1757
1758
1759 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1760 echo "configure:1761: checking for $LD option to reload object files" >&5
1761 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1762   echo $ac_n "(cached) $ac_c" 1>&6
1763 else
1764   lt_cv_ld_reload_flag='-r'
1765 fi
1766
1767 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1768 reload_flag=$lt_cv_ld_reload_flag
1769 test -n "$reload_flag" && reload_flag=" $reload_flag"
1770
1771 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1772 echo "configure:1773: checking for BSD-compatible nm" >&5
1773 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1774   echo $ac_n "(cached) $ac_c" 1>&6
1775 else
1776   if test -n "$NM"; then
1777   # Let the user override the test.
1778   ac_cv_path_NM="$NM"
1779 else
1780   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1781   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1782     test -z "$ac_dir" && ac_dir=.
1783     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1784     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1785       # Check to see if the nm accepts a BSD-compat flag.
1786       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1787       #   nm: unknown option "B" ignored
1788       # Tru64's nm complains that /dev/null is an invalid object file
1789       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1790         ac_cv_path_NM="$tmp_nm -B"
1791         break
1792       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1793         ac_cv_path_NM="$tmp_nm -p"
1794         break
1795       else
1796         ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1797         continue # so that we can try to find one that supports BSD flags
1798       fi
1799     fi
1800   done
1801   IFS="$ac_save_ifs"
1802   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1803 fi
1804 fi
1805
1806 NM="$ac_cv_path_NM"
1807 echo "$ac_t""$NM" 1>&6
1808
1809 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1810 echo "configure:1811: checking whether ln -s works" >&5
1811 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1812   echo $ac_n "(cached) $ac_c" 1>&6
1813 else
1814   rm -f conftestdata
1815 if ln -s X conftestdata 2>/dev/null
1816 then
1817   rm -f conftestdata
1818   ac_cv_prog_LN_S="ln -s"
1819 else
1820   ac_cv_prog_LN_S=ln
1821 fi
1822 fi
1823 LN_S="$ac_cv_prog_LN_S"
1824 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1825   echo "$ac_t""yes" 1>&6
1826 else
1827   echo "$ac_t""no" 1>&6
1828 fi
1829
1830 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1831 echo "configure:1832: checking how to recognise dependant libraries" >&5
1832 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1833   echo $ac_n "(cached) $ac_c" 1>&6
1834 else
1835   lt_cv_file_magic_cmd='$MAGIC_CMD'
1836 lt_cv_file_magic_test_file=
1837 lt_cv_deplibs_check_method='unknown'
1838 # Need to set the preceding variable on all platforms that support
1839 # interlibrary dependencies.
1840 # 'none' -- dependencies not supported.
1841 # `unknown' -- same as none, but documents that we really don't know.
1842 # 'pass_all' -- all dependencies passed with no checks.
1843 # 'test_compile' -- check by making test program.
1844 # 'file_magic [regex]' -- check by looking for files in library path
1845 # which responds to the $file_magic_cmd with a given egrep regex.
1846 # If you have `file' or equivalent on your system and you're not sure
1847 # whether `pass_all' will *always* work, you probably want this one.
1848
1849 case "$host_os" in
1850 aix4*)
1851   lt_cv_deplibs_check_method=pass_all
1852   ;;
1853
1854 beos*)
1855   lt_cv_deplibs_check_method=pass_all
1856   ;;
1857
1858 bsdi4*)
1859     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1860     lt_cv_file_magic_cmd='/usr/bin/file -L'
1861   lt_cv_file_magic_test_file=/shlib/libc.so
1862   ;;
1863
1864 cygwin* | mingw* |pw32*)
1865   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1866   lt_cv_file_magic_cmd='$OBJDUMP -f'
1867   ;;
1868
1869 freebsd* )
1870   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1871     case "$host_cpu" in
1872     i*86 )
1873       # Not sure whether the presence of OpenBSD here was a mistake.
1874       # Let's accept both of them until this is cleared up.
1875             lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1876             lt_cv_file_magic_cmd=/usr/bin/file
1877       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1878       ;;
1879     esac
1880   else
1881     lt_cv_deplibs_check_method=pass_all
1882   fi
1883   ;;
1884
1885 gnu*)
1886   lt_cv_deplibs_check_method=pass_all
1887   ;;
1888
1889 hpux10.20*)
1890   # TODO:  Does this work for hpux-11 too?
1891   lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1892   lt_cv_file_magic_cmd=/usr/bin/file
1893   lt_cv_file_magic_test_file=/usr/lib/libc.sl
1894   ;;
1895
1896 irix5* | irix6*)
1897   case "$host_os" in
1898   irix5*)
1899     # this will be overridden with pass_all, but let us keep it just in case
1900     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1901     ;;
1902   *)
1903     case "$LD" in
1904     *-32|*"-32 ") libmagic=32-bit;;
1905     *-n32|*"-n32 ") libmagic=N32;;
1906     *-64|*"-64 ") libmagic=64-bit;;
1907     *) libmagic=never-match;;
1908     esac
1909     # this will be overridden with pass_all, but let us keep it just in case
1910         lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1911         ;;
1912   esac
1913   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1914   lt_cv_deplibs_check_method=pass_all
1915   ;;
1916
1917 # This must be Linux ELF.
1918 linux-gnu*)
1919   case "$host_cpu" in
1920   alpha* | i*86 | powerpc* | sparc* | ia64* )
1921     lt_cv_deplibs_check_method=pass_all ;;
1922   *)
1923     # glibc up to 2.1.1 does not perform some relocations on ARM
1924         lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1925       esac
1926   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1927   ;;
1928
1929 netbsd*)
1930   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
1931   else
1932         lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1933         lt_cv_file_magic_cmd='/usr/bin/file -L'
1934     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1935   fi
1936   ;;
1937
1938 osf3* | osf4* | osf5*)
1939   # this will be overridden with pass_all, but let us keep it just in case
1940   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1941   lt_cv_file_magic_test_file=/shlib/libc.so
1942   lt_cv_deplibs_check_method=pass_all
1943   ;;
1944
1945 sco3.2v5*)
1946   lt_cv_deplibs_check_method=pass_all
1947   ;;
1948
1949 solaris*)
1950   lt_cv_deplibs_check_method=pass_all
1951   lt_cv_file_magic_test_file=/lib/libc.so
1952   ;;
1953
1954 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1955   case "$host_vendor" in
1956   ncr)
1957     lt_cv_deplibs_check_method=pass_all
1958     ;;
1959   motorola)
1960         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]'
1961         lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1962     ;;
1963   esac
1964   ;;
1965 esac
1966
1967 fi
1968
1969 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1970 file_magic_cmd=$lt_cv_file_magic_cmd
1971 deplibs_check_method=$lt_cv_deplibs_check_method
1972
1973 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1974 echo "configure:1975: checking for object suffix" >&5
1975 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1976   echo $ac_n "(cached) $ac_c" 1>&6
1977 else
1978   rm -f conftest*
1979 echo 'int i = 1;' > conftest.$ac_ext
1980 if { (eval echo configure:1981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1981   for ac_file in conftest.*; do
1982     case $ac_file in
1983     *.c) ;;
1984     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1985     esac
1986   done
1987 else
1988   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1989 fi
1990 rm -f conftest*
1991 fi
1992
1993 echo "$ac_t""$ac_cv_objext" 1>&6
1994 OBJEXT=$ac_cv_objext
1995 ac_objext=$ac_cv_objext
1996
1997 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1998
1999 # Only perform the check for file, if the check method requires it
2000 case "$deplibs_check_method" in
2001 file_magic*)
2002   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2003     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2004 echo "configure:2005: checking for ${ac_tool_prefix}file" >&5
2005 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2006   echo $ac_n "(cached) $ac_c" 1>&6
2007 else
2008   case "$MAGIC_CMD" in
2009   /*)
2010   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2011   ;;
2012   ?:/*)
2013   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2014   ;;
2015   *)
2016   ac_save_MAGIC_CMD="$MAGIC_CMD"
2017   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2018   ac_dummy="/usr/bin:$PATH"
2019   for ac_dir in $ac_dummy; do
2020     test -z "$ac_dir" && ac_dir=.
2021     if test -f $ac_dir/${ac_tool_prefix}file; then
2022       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2023       if test -n "$file_magic_test_file"; then
2024         case "$deplibs_check_method" in
2025         "file_magic "*)
2026           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2027           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2028           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2029             egrep "$file_magic_regex" > /dev/null; then
2030             :
2031           else
2032             cat <<EOF 1>&2
2033
2034 *** Warning: the command libtool uses to detect shared libraries,
2035 *** $file_magic_cmd, produces output that libtool cannot recognize.
2036 *** The result is that libtool may fail to recognize shared libraries
2037 *** as such.  This will affect the creation of libtool libraries that
2038 *** depend on shared libraries, but programs linked with such libtool
2039 *** libraries will work regardless of this problem.  Nevertheless, you
2040 *** may want to report the problem to your system manager and/or to
2041 *** bug-libtool@gnu.org
2042
2043 EOF
2044           fi ;;
2045         esac
2046       fi
2047       break
2048     fi
2049   done
2050   IFS="$ac_save_ifs"
2051   MAGIC_CMD="$ac_save_MAGIC_CMD"
2052   ;;
2053 esac
2054 fi
2055
2056 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2057 if test -n "$MAGIC_CMD"; then
2058   echo "$ac_t""$MAGIC_CMD" 1>&6
2059 else
2060   echo "$ac_t""no" 1>&6
2061 fi
2062
2063 if test -z "$lt_cv_path_MAGIC_CMD"; then
2064   if test -n "$ac_tool_prefix"; then
2065     echo $ac_n "checking for file""... $ac_c" 1>&6
2066 echo "configure:2067: checking for file" >&5
2067 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2068   echo $ac_n "(cached) $ac_c" 1>&6
2069 else
2070   case "$MAGIC_CMD" in
2071   /*)
2072   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2073   ;;
2074   ?:/*)
2075   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2076   ;;
2077   *)
2078   ac_save_MAGIC_CMD="$MAGIC_CMD"
2079   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2080   ac_dummy="/usr/bin:$PATH"
2081   for ac_dir in $ac_dummy; do
2082     test -z "$ac_dir" && ac_dir=.
2083     if test -f $ac_dir/file; then
2084       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2085       if test -n "$file_magic_test_file"; then
2086         case "$deplibs_check_method" in
2087         "file_magic "*)
2088           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2089           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2090           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2091             egrep "$file_magic_regex" > /dev/null; then
2092             :
2093           else
2094             cat <<EOF 1>&2
2095
2096 *** Warning: the command libtool uses to detect shared libraries,
2097 *** $file_magic_cmd, produces output that libtool cannot recognize.
2098 *** The result is that libtool may fail to recognize shared libraries
2099 *** as such.  This will affect the creation of libtool libraries that
2100 *** depend on shared libraries, but programs linked with such libtool
2101 *** libraries will work regardless of this problem.  Nevertheless, you
2102 *** may want to report the problem to your system manager and/or to
2103 *** bug-libtool@gnu.org
2104
2105 EOF
2106           fi ;;
2107         esac
2108       fi
2109       break
2110     fi
2111   done
2112   IFS="$ac_save_ifs"
2113   MAGIC_CMD="$ac_save_MAGIC_CMD"
2114   ;;
2115 esac
2116 fi
2117
2118 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2119 if test -n "$MAGIC_CMD"; then
2120   echo "$ac_t""$MAGIC_CMD" 1>&6
2121 else
2122   echo "$ac_t""no" 1>&6
2123 fi
2124
2125   else
2126     MAGIC_CMD=:
2127   fi
2128 fi
2129
2130   fi
2131   ;;
2132 esac
2133
2134 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2135 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2137 echo "configure:2138: checking for $ac_word" >&5
2138 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2139   echo $ac_n "(cached) $ac_c" 1>&6
2140 else
2141   if test -n "$RANLIB"; then
2142   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2143 else
2144   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2145   ac_dummy="$PATH"
2146   for ac_dir in $ac_dummy; do
2147     test -z "$ac_dir" && ac_dir=.
2148     if test -f $ac_dir/$ac_word; then
2149       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2150       break
2151     fi
2152   done
2153   IFS="$ac_save_ifs"
2154 fi
2155 fi
2156 RANLIB="$ac_cv_prog_RANLIB"
2157 if test -n "$RANLIB"; then
2158   echo "$ac_t""$RANLIB" 1>&6
2159 else
2160   echo "$ac_t""no" 1>&6
2161 fi
2162
2163
2164 if test -z "$ac_cv_prog_RANLIB"; then
2165 if test -n "$ac_tool_prefix"; then
2166   # Extract the first word of "ranlib", so it can be a program name with args.
2167 set dummy ranlib; ac_word=$2
2168 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2169 echo "configure:2170: checking for $ac_word" >&5
2170 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2171   echo $ac_n "(cached) $ac_c" 1>&6
2172 else
2173   if test -n "$RANLIB"; then
2174   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2175 else
2176   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2177   ac_dummy="$PATH"
2178   for ac_dir in $ac_dummy; do
2179     test -z "$ac_dir" && ac_dir=.
2180     if test -f $ac_dir/$ac_word; then
2181       ac_cv_prog_RANLIB="ranlib"
2182       break
2183     fi
2184   done
2185   IFS="$ac_save_ifs"
2186   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2187 fi
2188 fi
2189 RANLIB="$ac_cv_prog_RANLIB"
2190 if test -n "$RANLIB"; then
2191   echo "$ac_t""$RANLIB" 1>&6
2192 else
2193   echo "$ac_t""no" 1>&6
2194 fi
2195
2196 else
2197   RANLIB=":"
2198 fi
2199 fi
2200
2201 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2202 set dummy ${ac_tool_prefix}strip; ac_word=$2
2203 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2204 echo "configure:2205: checking for $ac_word" >&5
2205 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2206   echo $ac_n "(cached) $ac_c" 1>&6
2207 else
2208   if test -n "$STRIP"; then
2209   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2210 else
2211   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2212   ac_dummy="$PATH"
2213   for ac_dir in $ac_dummy; do
2214     test -z "$ac_dir" && ac_dir=.
2215     if test -f $ac_dir/$ac_word; then
2216       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2217       break
2218     fi
2219   done
2220   IFS="$ac_save_ifs"
2221 fi
2222 fi
2223 STRIP="$ac_cv_prog_STRIP"
2224 if test -n "$STRIP"; then
2225   echo "$ac_t""$STRIP" 1>&6
2226 else
2227   echo "$ac_t""no" 1>&6
2228 fi
2229
2230
2231 if test -z "$ac_cv_prog_STRIP"; then
2232 if test -n "$ac_tool_prefix"; then
2233   # Extract the first word of "strip", so it can be a program name with args.
2234 set dummy strip; ac_word=$2
2235 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2236 echo "configure:2237: checking for $ac_word" >&5
2237 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2238   echo $ac_n "(cached) $ac_c" 1>&6
2239 else
2240   if test -n "$STRIP"; then
2241   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2242 else
2243   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2244   ac_dummy="$PATH"
2245   for ac_dir in $ac_dummy; do
2246     test -z "$ac_dir" && ac_dir=.
2247     if test -f $ac_dir/$ac_word; then
2248       ac_cv_prog_STRIP="strip"
2249       break
2250     fi
2251   done
2252   IFS="$ac_save_ifs"
2253   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2254 fi
2255 fi
2256 STRIP="$ac_cv_prog_STRIP"
2257 if test -n "$STRIP"; then
2258   echo "$ac_t""$STRIP" 1>&6
2259 else
2260   echo "$ac_t""no" 1>&6
2261 fi
2262
2263 else
2264   STRIP=":"
2265 fi
2266 fi
2267
2268
2269 # Check for any special flags to pass to ltconfig.
2270 libtool_flags="--cache-file=$cache_file"
2271 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2272 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2273 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2274 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2275 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2276 libtool_flags="$libtool_flags --enable-dlopen"
2277
2278 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2279 if test "${enable_libtool_lock+set}" = set; then
2280   enableval="$enable_libtool_lock"
2281   :
2282 fi
2283
2284 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2285 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2286
2287 # Check whether --with-pic or --without-pic was given.
2288 if test "${with_pic+set}" = set; then
2289   withval="$with_pic"
2290   pic_mode="$withval"
2291 else
2292   pic_mode=default
2293 fi
2294
2295 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2296 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2297
2298 # Some flags need to be propagated to the compiler or linker for good
2299 # libtool support.
2300 case "$host" in
2301 *-*-irix6*)
2302   # Find out which ABI we are using.
2303   echo '#line 2304 "configure"' > conftest.$ac_ext
2304   if { (eval echo configure:2305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2305     case "`/usr/bin/file conftest.o`" in
2306     *32-bit*)
2307       LD="${LD-ld} -32"
2308       ;;
2309     *N32*)
2310       LD="${LD-ld} -n32"
2311       ;;
2312     *64-bit*)
2313       LD="${LD-ld} -64"
2314       ;;
2315     esac
2316   fi
2317   rm -rf conftest*
2318   ;;
2319
2320 *-*-sco3.2v5*)
2321   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2322   SAVE_CFLAGS="$CFLAGS"
2323   CFLAGS="$CFLAGS -belf"
2324   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2325 echo "configure:2326: checking whether the C compiler needs -belf" >&5
2326 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2327   echo $ac_n "(cached) $ac_c" 1>&6
2328 else
2329   
2330      ac_ext=c
2331 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2334 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2335 cross_compiling=$ac_cv_prog_cc_cross
2336
2337      cat > conftest.$ac_ext <<EOF
2338 #line 2339 "configure"
2339 #include "confdefs.h"
2340
2341 int main() {
2342
2343 ; return 0; }
2344 EOF
2345 if { (eval echo configure:2346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2346   rm -rf conftest*
2347   lt_cv_cc_needs_belf=yes
2348 else
2349   echo "configure: failed program was:" >&5
2350   cat conftest.$ac_ext >&5
2351   rm -rf conftest*
2352   lt_cv_cc_needs_belf=no
2353 fi
2354 rm -f conftest*
2355      ac_ext=c
2356 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2357 ac_cpp='$CPP $CPPFLAGS'
2358 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2359 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2360 cross_compiling=$ac_cv_prog_cc_cross
2361
2362 fi
2363
2364 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2365   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2366     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2367     CFLAGS="$SAVE_CFLAGS"
2368   fi
2369   ;;
2370
2371
2372 esac
2373
2374 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2375 echo "configure:2376: checking how to run the C++ preprocessor" >&5
2376 if test -z "$CXXCPP"; then
2377 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2378   echo $ac_n "(cached) $ac_c" 1>&6
2379 else
2380   ac_ext=C
2381 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2382 ac_cpp='$CXXCPP $CPPFLAGS'
2383 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2384 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2385 cross_compiling=$ac_cv_prog_cxx_cross
2386   CXXCPP="${CXX-g++} -E"
2387   cat > conftest.$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2390 #include <stdlib.h>
2391 EOF
2392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2393 { (eval echo configure:2394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2394 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2395 if test -z "$ac_err"; then
2396   :
2397 else
2398   echo "$ac_err" >&5
2399   echo "configure: failed program was:" >&5
2400   cat conftest.$ac_ext >&5
2401   rm -rf conftest*
2402   CXXCPP=/lib/cpp
2403 fi
2404 rm -f conftest*
2405   ac_cv_prog_CXXCPP="$CXXCPP"
2406 ac_ext=c
2407 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2408 ac_cpp='$CPP $CPPFLAGS'
2409 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2410 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2411 cross_compiling=$ac_cv_prog_cc_cross
2412 fi
2413 fi
2414 CXXCPP="$ac_cv_prog_CXXCPP"
2415 echo "$ac_t""$CXXCPP" 1>&6
2416
2417
2418 # Save cache, so that ltconfig can load it
2419 cat > confcache <<\EOF
2420 # This file is a shell script that caches the results of configure
2421 # tests run on this system so they can be shared between configure
2422 # scripts and configure runs.  It is not useful on other systems.
2423 # If it contains results you don't want to keep, you may remove or edit it.
2424 #
2425 # By default, configure uses ./config.cache as the cache file,
2426 # creating it if it does not exist already.  You can give configure
2427 # the --cache-file=FILE option to use a different cache file; that is
2428 # what configure does when it calls configure scripts in
2429 # subdirectories, so they share the cache.
2430 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2431 # config.status only pays attention to the cache file if you give it the
2432 # --recheck option to rerun configure.
2433 #
2434 EOF
2435 # The following way of writing the cache mishandles newlines in values,
2436 # but we know of no workaround that is simple, portable, and efficient.
2437 # So, don't put newlines in cache variables' values.
2438 # Ultrix sh set writes to stderr and can't be redirected directly,
2439 # and sets the high bit in the cache file unless we assign to the vars.
2440 (set) 2>&1 |
2441   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2442   *ac_space=\ *)
2443     # `set' does not quote correctly, so add quotes (double-quote substitution
2444     # turns \\\\ into \\, and sed turns \\ into \).
2445     sed -n \
2446       -e "s/'/'\\\\''/g" \
2447       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2448     ;;
2449   *)
2450     # `set' quotes correctly as required by POSIX, so do not add quotes.
2451     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2452     ;;
2453   esac >> confcache
2454 if cmp -s $cache_file confcache; then
2455   :
2456 else
2457   if test -w $cache_file; then
2458     echo "updating cache $cache_file"
2459     cat confcache > $cache_file
2460   else
2461     echo "not updating unwritable cache $cache_file"
2462   fi
2463 fi
2464 rm -f confcache
2465
2466
2467 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2468 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2469 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2470 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2471 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2472 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2473 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2474 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2475 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2476 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2477
2478 # Reload cache, that may have been modified by ltconfig
2479 if test -r "$cache_file"; then
2480   echo "loading cache $cache_file"
2481   . $cache_file
2482 else
2483   echo "creating cache $cache_file"
2484   > $cache_file
2485 fi
2486
2487
2488 # This can be used to rebuild libtool when needed
2489 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2490
2491 # Always use our own libtool.
2492 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2493
2494 # Redirect the config.log output again, so that the ltconfig log is not
2495 # clobbered by the next message.
2496 exec 5>>./config.log
2497
2498
2499
2500
2501 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2502 lt_save_CC="$CC"
2503 lt_save_CFLAGS="$CFLAGS"
2504 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2505 MAGIC_CMD="$MAGIC_CMD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2506 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2507 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2508 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2509 deplibs_check_method="$deplibs_check_method" \
2510 file_magic_cmd="$file_magic_cmd" \
2511 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2512 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2513 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2514 CC="$lt_save_CC"
2515 CFLAGS="$lt_save_CFLAGS"
2516
2517 # Redirect the config.log output again, so that the ltconfig log is not
2518 # clobbered by the next message.
2519 exec 5>>./config.log
2520
2521
2522   
2523
2524   
2525          
2526          
2527
2528
2529 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2530 echo "configure:2531: checking for GNU make" >&5
2531 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2532   echo $ac_n "(cached) $ac_c" 1>&6
2533 else
2534   _cv_gnu_make_command='' ;
2535           for a in "${MAKE-make}" make gmake gnumake ; do
2536                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2537                   then
2538                           _cv_gnu_make_command=$a ;
2539                           break;
2540                   fi
2541           done ;
2542   
2543 fi
2544
2545 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2546   if test  "x$_cv_gnu_make_command" != "x"  ; then
2547           ifGNUmake='' ;
2548   else
2549           ifGNUmake='#' ;
2550   fi
2551   
2552
2553   if test "x$_cv_gnu_make_command" = "x"; then
2554     { echo "configure: error: GNU make not found. Please install it or correct your path." 1>&2; exit 1; }
2555   fi
2556
2557
2558
2559
2560 # Check for c++ or library specific bits that don't require linking.
2561
2562 if test ! -f stamp-sanity-compiler; then
2563   echo $ac_n "checking for g++ that will successfully compile libstdc++-v3""... $ac_c" 1>&6
2564 echo "configure:2565: checking for g++ that will successfully compile libstdc++-v3" >&5
2565   
2566   ac_ext=C
2567 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2568 ac_cpp='$CXXCPP $CPPFLAGS'
2569 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2570 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2571 cross_compiling=$ac_cv_prog_cxx_cross
2572
2573   cat > conftest.$ac_ext <<EOF
2574 #line 2575 "configure"
2575 #include "confdefs.h"
2576
2577   #if __GNUC__ >= 3
2578     ok
2579   #endif
2580   
2581 EOF
2582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2583   egrep "ok" >/dev/null 2>&1; then
2584   rm -rf conftest*
2585   gpp_satisfactory=yes
2586 else
2587   rm -rf conftest*
2588   { echo "configure: error: please upgrade to GCC 3.0 or above" 1>&2; exit 1; }
2589 fi
2590 rm -f conftest*
2591
2592   ac_ext=c
2593 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2594 ac_cpp='$CPP $CPPFLAGS'
2595 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2596 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2597 cross_compiling=$ac_cv_prog_cc_cross
2598
2599   echo "$ac_t""$gpp_satisfactory" 1>&6
2600   touch stamp-sanity-compiler
2601 fi
2602
2603
2604 # Enable all the crazy c++ stuff.  C_MBCHAR must come early.
2605 # Check whether --enable-debug or --disable-debug was given.
2606 if test "${enable_debug+set}" = set; then
2607   enableval="$enable_debug"
2608   case "${enableval}" in
2609  yes) enable_debug=yes ;;
2610  no)  enable_debug=no ;;
2611  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2612  esac
2613 else
2614   enable_debug=no
2615 fi
2616
2617 case "${enable_debug}" in
2618     yes) 
2619         DEBUG_FLAGS='-O0 -ggdb3'                        
2620         ;; 
2621     no)   
2622         DEBUG_FLAGS='-g'
2623         ;;
2624 esac
2625
2626
2627 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2628 echo "configure:2629: checking how to run the C preprocessor" >&5
2629 # On Suns, sometimes $CPP names a directory.
2630 if test -n "$CPP" && test -d "$CPP"; then
2631   CPP=
2632 fi
2633 if test -z "$CPP"; then
2634 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2635   echo $ac_n "(cached) $ac_c" 1>&6
2636 else
2637     # This must be in double quotes, not single quotes, because CPP may get
2638   # substituted into the Makefile and "${CC-cc}" will confuse make.
2639   CPP="${CC-cc} -E"
2640   # On the NeXT, cc -E runs the code through the compiler's parser,
2641   # not just through cpp.
2642   cat > conftest.$ac_ext <<EOF
2643 #line 2644 "configure"
2644 #include "confdefs.h"
2645 #include <assert.h>
2646 Syntax Error
2647 EOF
2648 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2649 { (eval echo configure:2650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2650 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2651 if test -z "$ac_err"; then
2652   :
2653 else
2654   echo "$ac_err" >&5
2655   echo "configure: failed program was:" >&5
2656   cat conftest.$ac_ext >&5
2657   rm -rf conftest*
2658   CPP="${CC-cc} -E -traditional-cpp"
2659   cat > conftest.$ac_ext <<EOF
2660 #line 2661 "configure"
2661 #include "confdefs.h"
2662 #include <assert.h>
2663 Syntax Error
2664 EOF
2665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2666 { (eval echo configure:2667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2668 if test -z "$ac_err"; then
2669   :
2670 else
2671   echo "$ac_err" >&5
2672   echo "configure: failed program was:" >&5
2673   cat conftest.$ac_ext >&5
2674   rm -rf conftest*
2675   CPP="${CC-cc} -nologo -E"
2676   cat > conftest.$ac_ext <<EOF
2677 #line 2678 "configure"
2678 #include "confdefs.h"
2679 #include <assert.h>
2680 Syntax Error
2681 EOF
2682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2683 { (eval echo configure:2684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2685 if test -z "$ac_err"; then
2686   :
2687 else
2688   echo "$ac_err" >&5
2689   echo "configure: failed program was:" >&5
2690   cat conftest.$ac_ext >&5
2691   rm -rf conftest*
2692   CPP=/lib/cpp
2693 fi
2694 rm -f conftest*
2695 fi
2696 rm -f conftest*
2697 fi
2698 rm -f conftest*
2699   ac_cv_prog_CPP="$CPP"
2700 fi
2701   CPP="$ac_cv_prog_CPP"
2702 else
2703   ac_cv_prog_CPP="$CPP"
2704 fi
2705 echo "$ac_t""$CPP" 1>&6
2706
2707
2708   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2709 echo "configure:2710: checking for cstdio to use" >&5
2710   # Check whether --enable-cstdio or --disable-cstdio was given.
2711 if test "${enable_cstdio+set}" = set; then
2712   enableval="$enable_cstdio"
2713   if test x$enable_cstdio = xno; then
2714      enable_cstdio=stdio
2715   fi
2716 else
2717   enable_cstdio=stdio
2718 fi
2719
2720
2721   enable_cstdio_flag=$enable_cstdio
2722
2723     case x${enable_cstdio_flag} in
2724     xlibio)
2725       CSTDIO_H=config/c_io_libio.h
2726       BASIC_FILE_H=config/basic_file_libio.h
2727       BASIC_FILE_CC=config/basic_file_libio.cc
2728       echo "$ac_t""libio" 1>&6
2729
2730       # see if we are on a system with libio native (ie, linux)
2731       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2732 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2733 echo "configure:2734: checking for libio.h" >&5
2734 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2735   echo $ac_n "(cached) $ac_c" 1>&6
2736 else
2737   cat > conftest.$ac_ext <<EOF
2738 #line 2739 "configure"
2739 #include "confdefs.h"
2740 #include <libio.h>
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   rm -rf conftest*
2747   eval "ac_cv_header_$ac_safe=yes"
2748 else
2749   echo "$ac_err" >&5
2750   echo "configure: failed program was:" >&5
2751   cat conftest.$ac_ext >&5
2752   rm -rf conftest*
2753   eval "ac_cv_header_$ac_safe=no"
2754 fi
2755 rm -f conftest*
2756 fi
2757 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2758   echo "$ac_t""yes" 1>&6
2759   has_libio=yes
2760 else
2761   echo "$ac_t""no" 1>&6
2762 has_libio=no
2763 fi
2764
2765
2766       # Need to check and see what version of glibc is being used. If
2767       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2768       # compile most of libio for linux systems.
2769       if test x$has_libio = x"yes"; then
2770         case "$target" in
2771           *-*-linux*)
2772               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2773 echo "configure:2774: checking for glibc version >= 2.2" >&5
2774               cat > conftest.$ac_ext <<EOF
2775 #line 2776 "configure"
2776 #include "confdefs.h"
2777
2778             #include <features.h>
2779               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2780                     ok
2781               #endif
2782               
2783 EOF
2784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2785   egrep "ok" >/dev/null 2>&1; then
2786   rm -rf conftest*
2787   glibc_satisfactory=yes
2788 else
2789   rm -rf conftest*
2790   glibc_satisfactory=no
2791 fi
2792 rm -f conftest*
2793
2794               echo "$ac_t""$glibc_satisfactory" 1>&6
2795             ;;
2796         esac
2797
2798         # XXX at the moment, admit defeat and force the recompilation
2799         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2800         glibc_satisfactory=no        
2801
2802         if test x$glibc_satisfactory = x"yes"; then
2803            need_libio=no
2804            need_wlibio=no        
2805         else
2806            need_libio=yes
2807            # bkoz XXX need to add checks to enable this
2808            # pme XXX here's a first pass at such a check
2809            if test x$enable_c_mbchar != xno; then
2810               need_wlibio=yes
2811            else
2812               need_wlibio=no
2813            fi
2814         fi
2815
2816       else
2817          # Using libio, but <libio.h> doesn't exist on the target system. . .
2818          need_libio=yes
2819          # bkoz XXX need to add checks to enable this
2820          # pme XXX here's a first pass at such a check
2821          if test x$enable_c_mbchar != xno; then
2822              need_wlibio=yes
2823          else
2824              need_wlibio=no
2825          fi
2826       fi
2827       ;;
2828     xstdio | x | xno | xnone | xyes)
2829       # default
2830       CSTDIO_H=config/c_io_stdio.h
2831       BASIC_FILE_H=config/basic_file_stdio.h
2832       BASIC_FILE_CC=config/basic_file_stdio.cc
2833       echo "$ac_t""stdio" 1>&6
2834
2835       # We're not using stdio.
2836       need_libio=no
2837       need_wlibio=no
2838       # Wide characters are not supported with this package.
2839       enable_c_mbchar=no
2840       ;;
2841     *)
2842       echo "$enable_cstdio is an unknown io package" 1>&2
2843       exit 1
2844       ;;
2845   esac
2846   
2847   
2848   
2849
2850   # 2000-08-04 bkoz hack
2851   CCODECVT_C=config/c_io_libio_codecvt.c
2852   
2853   # 2000-08-04 bkoz hack
2854
2855   
2856
2857 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2858   GLIBCPP_BUILD_LIBIO_TRUE=
2859   GLIBCPP_BUILD_LIBIO_FALSE='#'
2860 else
2861   GLIBCPP_BUILD_LIBIO_TRUE='#'
2862   GLIBCPP_BUILD_LIBIO_FALSE=
2863 fi
2864   
2865
2866 if test "$need_libio" = yes; then
2867   GLIBCPP_NEED_LIBIO_TRUE=
2868   GLIBCPP_NEED_LIBIO_FALSE='#'
2869 else
2870   GLIBCPP_NEED_LIBIO_TRUE='#'
2871   GLIBCPP_NEED_LIBIO_FALSE=
2872 fi
2873   
2874
2875 if test "$need_wlibio" = yes; then
2876   GLIBCPP_NEED_WLIBIO_TRUE=
2877   GLIBCPP_NEED_WLIBIO_FALSE='#'
2878 else
2879   GLIBCPP_NEED_WLIBIO_TRUE='#'
2880   GLIBCPP_NEED_WLIBIO_FALSE=
2881 fi
2882   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2883     libio_la=../libio/libio.la
2884   else
2885     libio_la=
2886   fi
2887   
2888
2889
2890   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2891 echo "configure:2892: checking for clocale to use" >&5
2892   # Check whether --enable-clocale or --disable-clocale was given.
2893 if test "${enable_clocale+set}" = set; then
2894   enableval="$enable_clocale"
2895   if test x$enable_clocale = xno; then
2896      enable_clocale=generic
2897   fi
2898 else
2899   enable_clocale=generic
2900 fi
2901
2902
2903   enable_clocale_flag=$enable_clocale
2904
2905     case x${enable_clocale_flag} in
2906     xgnu)
2907       CLOCALE_H=config/c_locale_gnu.h
2908       CLOCALE_CC=config/c_locale_gnu.cc
2909       echo "$ac_t""gnu" 1>&6
2910       ;;
2911     xgeneric)
2912       CLOCALE_H=config/c_locale_generic.h
2913       CLOCALE_CC=config/c_locale_generic.cc
2914       echo "$ac_t""generic" 1>&6
2915       ;;
2916     *)
2917       echo "$enable_clocale is an unknown locale package" 1>&2
2918       exit 1
2919       ;;
2920   esac
2921
2922   
2923   
2924
2925 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
2926 if test "${enable_c_mbchar+set}" = set; then
2927   enableval="$enable_c_mbchar"
2928   case "$enableval" in
2929  yes) enable_c_mbchar=yes ;;
2930  no)  enable_c_mbchar=no ;;
2931  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
2932  esac
2933 else
2934   enable_c_mbchar=yes
2935 fi
2936
2937   
2938   # Check whether --enable-long-long or --disable-long-long was given.
2939 if test "${enable_long_long+set}" = set; then
2940   enableval="$enable_long_long"
2941     case "$enableval" in
2942    yes) enable_long_long=yes ;;
2943    no)  enable_long_long=no ;;
2944    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
2945    esac
2946 else
2947   enable_long_long=no
2948 fi
2949  
2950   # Allow use of os-dependent settings, so that macros that turn on
2951   # C99 capabilities can be defined and used in a consistent way.
2952   OS_INC_PATH=${srcdir}/$os_include_dir
2953   ac_test_CFLAGS="${CFLAGS+set}"
2954   ac_save_CFLAGS="$CFLAGS"
2955   CFLAGS="-I$OS_INC_PATH"
2956
2957   # Check for the existence of functions used if long long is enabled.
2958   echo $ac_n "checking for strtoll""... $ac_c" 1>&6
2959 echo "configure:2960: checking for strtoll" >&5
2960 if eval "test \"`echo '$''{'ac_cv_func_strtoll'+set}'`\" = set"; then
2961   echo $ac_n "(cached) $ac_c" 1>&6
2962 else
2963   cat > conftest.$ac_ext <<EOF
2964 #line 2965 "configure"
2965 #include "confdefs.h"
2966 /* System header to define __stub macros and hopefully few prototypes,
2967     which can conflict with char strtoll(); below.  */
2968 #include <assert.h>
2969 /* Override any gcc2 internal prototype to avoid an error.  */
2970 /* We use char because int might match the return type of a gcc2
2971     builtin and then its argument prototype would still apply.  */
2972 char strtoll();
2973
2974 int main() {
2975
2976 /* The GNU C library defines this for functions which it implements
2977     to always fail with ENOSYS.  Some functions are actually named
2978     something starting with __ and the normal name is an alias.  */
2979 #if defined (__stub_strtoll) || defined (__stub___strtoll)
2980 choke me
2981 #else
2982 strtoll();
2983 #endif
2984
2985 ; return 0; }
2986 EOF
2987 if { (eval echo configure:2988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2988   rm -rf conftest*
2989   eval "ac_cv_func_strtoll=yes"
2990 else
2991   echo "configure: failed program was:" >&5
2992   cat conftest.$ac_ext >&5
2993   rm -rf conftest*
2994   eval "ac_cv_func_strtoll=no"
2995 fi
2996 rm -f conftest*
2997 fi
2998
2999 if eval "test \"`echo '$ac_cv_func_'strtoll`\" = yes"; then
3000   echo "$ac_t""yes" 1>&6
3001   :
3002 else
3003   echo "$ac_t""no" 1>&6
3004 ac_strtoll=no
3005 fi
3006
3007   echo $ac_n "checking for strtoull""... $ac_c" 1>&6
3008 echo "configure:3009: checking for strtoull" >&5
3009 if eval "test \"`echo '$''{'ac_cv_func_strtoull'+set}'`\" = set"; then
3010   echo $ac_n "(cached) $ac_c" 1>&6
3011 else
3012   cat > conftest.$ac_ext <<EOF
3013 #line 3014 "configure"
3014 #include "confdefs.h"
3015 /* System header to define __stub macros and hopefully few prototypes,
3016     which can conflict with char strtoull(); below.  */
3017 #include <assert.h>
3018 /* Override any gcc2 internal prototype to avoid an error.  */
3019 /* We use char because int might match the return type of a gcc2
3020     builtin and then its argument prototype would still apply.  */
3021 char strtoull();
3022
3023 int main() {
3024
3025 /* The GNU C library defines this for functions which it implements
3026     to always fail with ENOSYS.  Some functions are actually named
3027     something starting with __ and the normal name is an alias.  */
3028 #if defined (__stub_strtoull) || defined (__stub___strtoull)
3029 choke me
3030 #else
3031 strtoull();
3032 #endif
3033
3034 ; return 0; }
3035 EOF
3036 if { (eval echo configure:3037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3037   rm -rf conftest*
3038   eval "ac_cv_func_strtoull=yes"
3039 else
3040   echo "configure: failed program was:" >&5
3041   cat conftest.$ac_ext >&5
3042   rm -rf conftest*
3043   eval "ac_cv_func_strtoull=no"
3044 fi
3045 rm -f conftest*
3046 fi
3047
3048 if eval "test \"`echo '$ac_cv_func_'strtoull`\" = yes"; then
3049   echo "$ac_t""yes" 1>&6
3050   :
3051 else
3052   echo "$ac_t""no" 1>&6
3053 ac_strtoull=no
3054 fi
3055
3056
3057   # Check for lldiv_t, et. al.
3058   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3059 echo "configure:3060: checking for lldiv_t declaration" >&5
3060   if eval "test \"`echo '$''{'glibcpp_lldiv_t_use'+set}'`\" = set"; then
3061   echo $ac_n "(cached) $ac_c" 1>&6
3062 else
3063   
3064   cat > conftest.$ac_ext <<EOF
3065 #line 3066 "configure"
3066 #include "confdefs.h"
3067 #include <bits/os_defines.h>
3068                   #include <stdlib.h>
3069 int main() {
3070  lldiv_t mydivt;
3071 ; return 0; }
3072 EOF
3073 if { (eval echo configure:3074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3074   rm -rf conftest*
3075   glibcpp_lldiv_t_use=yes
3076 else
3077   echo "configure: failed program was:" >&5
3078   cat conftest.$ac_ext >&5
3079   rm -rf conftest*
3080   glibcpp_lldiv_t_use=no
3081 fi
3082 rm -f conftest*
3083   
3084 fi
3085
3086   echo "$ac_t""$glibcpp_lldiv_t_use" 1>&6
3087   if test x$glibcpp_lldiv_t_use = x"yes"; then
3088     cat >> confdefs.h <<\EOF
3089 #define HAVE_LLDIV_T 1
3090 EOF
3091
3092   fi
3093
3094   echo $ac_n "checking for enabled long long""... $ac_c" 1>&6
3095 echo "configure:3096: checking for enabled long long" >&5
3096   if test x"$ac_strtoll" = xno || test x"$ac_strtoull" = xno; then 
3097     enable_long_long=no; 
3098   fi; 
3099   echo "$ac_t""$enable_long_long" 1>&6
3100
3101   # Option parsed, now set things appropriately
3102   if test x"$enable_long_long" = xyes; then
3103     cat >> confdefs.h <<\EOF
3104 #define _GLIBCPP_USE_LONG_LONG 1
3105 EOF
3106
3107   fi
3108
3109   # Reset CFLAGS
3110   CFLAGS="$ac_save_CFLAGS"
3111
3112 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3113 echo "configure:3114: checking for c header strategy to use" >&5
3114 # Check whether --enable-cheaders or --disable-cheaders was given.
3115 if test "${enable_cheaders+set}" = set; then
3116   enableval="$enable_cheaders"
3117   
3118   case "$enableval" in
3119    c) 
3120         enable_cheaders=c 
3121         ;;
3122    c_std)  
3123         enable_cheaders=c_std 
3124         ;;
3125    c_shadow)  
3126         enable_cheaders=c_shadow 
3127         ;;
3128    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3129         ;;
3130   esac
3131 else
3132   enable_cheaders=c_std
3133 fi
3134
3135   echo "$ac_t""$enable_cheaders" 1>&6
3136
3137     case "$enable_cheaders" in
3138     c_shadow) 
3139         CSHADOW_FLAGS="-fno-builtin"
3140         C_INCLUDE_DIR='${top_srcdir}/include/c_shadow'
3141         cat >> confdefs.h <<\EOF
3142 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3143 EOF
3144
3145         ;;
3146     c_std)   
3147         CSHADOW_FLAGS=""
3148         C_INCLUDE_DIR='${top_srcdir}/include/c_std'
3149         ;;
3150     c)   
3151         CSHADOW_FLAGS=""
3152         C_INCLUDE_DIR='${top_srcdir}/include/c'
3153         ;;
3154   esac
3155
3156   
3157   
3158   
3159
3160 if test "$enable_cheaders" = c_shadow; then
3161   GLIBCPP_USE_CSHADOW_TRUE=
3162   GLIBCPP_USE_CSHADOW_FALSE='#'
3163 else
3164   GLIBCPP_USE_CSHADOW_TRUE='#'
3165   GLIBCPP_USE_CSHADOW_FALSE=
3166 fi
3167
3168
3169       echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
3170 echo "configure:3171: checking for threads package to use" >&5
3171   # Check whether --enable-threads or --disable-threads was given.
3172 if test "${enable_threads+set}" = set; then
3173   enableval="$enable_threads"
3174   if test x$enable_threads = xno; then
3175     enable_threads=''
3176   fi
3177 else
3178   enable_threads=''
3179 fi
3180
3181
3182   enable_threads_flag=$enable_threads
3183
3184     case x${enable_threads_flag} in
3185         x | xno | xnone)
3186                 # No threads
3187                 target_thread_file='single'
3188                 ;;
3189         xyes)
3190                 # default
3191                 target_thread_file='posix'
3192                 ;;
3193         xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
3194         xsolaris | xwin32 | xdce | xvxworks)
3195                 target_thread_file=$enable_threads_flag
3196                 ;;
3197         *)
3198                 echo "$enable_threads is an unknown thread package" 1>&2
3199                 exit 1
3200                 ;;
3201   esac
3202
3203     THREADH=
3204   case "$target_thread_file" in
3205     no | none | single)
3206       THREADH=threads-no.h
3207       ;;
3208     posix | pthreads)
3209       THREADH=threads-posix.h
3210       ;;
3211     decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
3212       { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3213       ;;
3214     *)
3215       { echo "configure: error: $THREADS is an unsupported/unknown thread package" 1>&2; exit 1; }
3216       ;;
3217   esac
3218   echo "$ac_t""$THREADH" 1>&6
3219
3220   
3221   if test $THREADH != threads-no.h; then
3222     cat >> confdefs.h <<\EOF
3223 #define _GLIBCPP_USE_THREADS 1
3224 EOF
3225
3226   fi
3227
3228 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3229 if test "${enable_cxx_flags+set}" = set; then
3230   enableval="$enable_cxx_flags"
3231   case "x$enableval" in
3232  xyes)   
3233         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3234  xno|x)  
3235         enable_cxx_flags='' ;;
3236  *)      
3237         enable_cxx_flags="$enableval" ;;
3238  esac
3239 else
3240   enable_cxx_flags='none'
3241 fi
3242
3243
3244 if test "$enable_cxx_flags" = "none"; then 
3245   enable_cxx_flags=''; 
3246 fi
3247
3248 if test -n "$enable_cxx_flags"; then
3249     for f in $enable_cxx_flags; do
3250         case "$f" in
3251             -fhonor-std)  ;;
3252             -*)  ;;
3253             *)   # and we're trying to pass /what/ exactly?
3254                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3255         esac
3256     done
3257 fi
3258 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3259
3260
3261
3262 if test -n "$with_cross_host"; then
3263
3264   # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
3265   # may not work correctly, because the compiler may not be able to
3266   # link executables.
3267   xcompiling=1
3268   NATIVE=no
3269
3270   # If Canadian cross, then don't pick up tools from the build
3271   # directory.
3272   if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3273     CANADIAN=yes
3274     NULL_TARGET=yes
3275   else
3276     CANADIAN=no
3277     NULL_TARGET=no
3278   fi
3279
3280   case "$target_alias" in
3281     *-linux*)
3282         # Construct linux crosses by hand, eliminating bits that need ld...
3283         # Check for available headers.
3284         for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3285         machine/endian.h machine/param.h sys/machine.h fp.h locale.h \
3286         float.h inttypes.h
3287 do
3288 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3289 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3290 echo "configure:3291: checking for $ac_hdr" >&5
3291 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3292   echo $ac_n "(cached) $ac_c" 1>&6
3293 else
3294   cat > conftest.$ac_ext <<EOF
3295 #line 3296 "configure"
3296 #include "confdefs.h"
3297 #include <$ac_hdr>
3298 EOF
3299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3300 { (eval echo configure:3301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3301 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3302 if test -z "$ac_err"; then
3303   rm -rf conftest*
3304   eval "ac_cv_header_$ac_safe=yes"
3305 else
3306   echo "$ac_err" >&5
3307   echo "configure: failed program was:" >&5
3308   cat conftest.$ac_ext >&5
3309   rm -rf conftest*
3310   eval "ac_cv_header_$ac_safe=no"
3311 fi
3312 rm -f conftest*
3313 fi
3314 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3315   echo "$ac_t""yes" 1>&6
3316     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3317   cat >> confdefs.h <<EOF
3318 #define $ac_tr_hdr 1
3319 EOF
3320  
3321 else
3322   echo "$ac_t""no" 1>&6
3323 fi
3324 done
3325
3326
3327         # GLIBCPP_CHECK_COMPILER_FEATURES
3328         SECTION_FLAGS='-ffunction-sections -fdata-sections'
3329         
3330         
3331   # If we're not using GNU ld, then there's no point in even trying these
3332   # tests.  Check for that first.  We should have already tested for gld
3333   # by now (in libtool), but require it now just to be safe...
3334   SECTION_LDFLAGS=''
3335   OPT_LDFLAGS=''
3336   
3337
3338   # Set --gc-sections.
3339   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
3340     # GNU ld it is!  Joy and bunny rabbits!
3341
3342     # All these tests are for C++; save the language and the compiler flags.
3343     # Need to do this so that g++ won't try to link in libstdc++
3344     ac_test_CFLAGS="${CFLAGS+set}"
3345     ac_save_CFLAGS="$CFLAGS"
3346     CFLAGS='-x c++  -Wl,--gc-sections'
3347
3348     # Check for -Wl,--gc-sections
3349     # XXX This test is broken at the moment, as symbols required for
3350     # linking are now in libsupc++ (not built yet.....). In addition, 
3351     # this test has cored on solaris in the past. In addition,
3352     # --gc-sections doesn't really work at the moment (keeps on discarding
3353     # used sections, first .eh_frame and now some of the glibc sections for
3354     # iconv). Bzzzzt. Thanks for playing, maybe next time.
3355     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
3356 echo "configure:3357: checking for ld that supports -Wl,--gc-sections" >&5
3357     if test "$cross_compiling" = yes; then
3358   ac_sectionLDflags=yes
3359 else
3360   cat > conftest.$ac_ext <<EOF
3361 #line 3362 "configure"
3362 #include "confdefs.h"
3363
3364      int main(void) 
3365      {
3366        try { throw 1; }
3367        catch (...) { };
3368        return 0;
3369      }
3370     
3371 EOF
3372 if { (eval echo configure:3373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3373 then
3374   ac_sectionLDflags=yes
3375 else
3376   echo "configure: failed program was:" >&5
3377   cat conftest.$ac_ext >&5
3378   rm -fr conftest*
3379   ac_sectionLFflags=no
3380 fi
3381 rm -fr conftest*
3382 fi
3383
3384     if test "$ac_test_CFLAGS" = set; then
3385       CFLAGS="$ac_save_CFLAGS"
3386     else
3387       # this is the suspicious part
3388       CFLAGS=''
3389     fi
3390     if test "$ac_sectionLDflags" = "yes"; then
3391       SECTION_LDFLAGS='-Wl,--gc-sections'
3392     fi
3393     echo "$ac_t""$ac_sectionLDflags" 1>&6
3394   fi
3395
3396   # Set linker optimization flags.
3397   if test x"$ac_cv_prog_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
3398     OPT_LDFLAGS='-Wl,-O1'
3399   fi
3400
3401   
3402   
3403
3404         # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
3405         # GLIBCPP_CHECK_MATH_SUPPORT
3406         cat >> confdefs.h <<\EOF
3407 #define HAVE_ACOSF 1
3408 EOF
3409
3410         cat >> confdefs.h <<\EOF
3411 #define HAVE_ASINF 1
3412 EOF
3413
3414         cat >> confdefs.h <<\EOF
3415 #define HAVE_ATAN2F 1
3416 EOF
3417
3418         cat >> confdefs.h <<\EOF
3419 #define HAVE_ATANF 1
3420 EOF
3421
3422         cat >> confdefs.h <<\EOF
3423 #define HAVE_CEILF 1
3424 EOF
3425
3426         cat >> confdefs.h <<\EOF
3427 #define HAVE_COPYSIGN 1
3428 EOF
3429
3430         cat >> confdefs.h <<\EOF
3431 #define HAVE_COPYSIGNF 1
3432 EOF
3433
3434         cat >> confdefs.h <<\EOF
3435 #define HAVE_COSF 1
3436 EOF
3437
3438         cat >> confdefs.h <<\EOF
3439 #define HAVE_COSHF 1
3440 EOF
3441
3442         cat >> confdefs.h <<\EOF
3443 #define HAVE_EXPF 1
3444 EOF
3445
3446         cat >> confdefs.h <<\EOF
3447 #define HAVE_FABSF 1
3448 EOF
3449
3450         cat >> confdefs.h <<\EOF
3451 #define HAVE_FINITE 1
3452 EOF
3453
3454         cat >> confdefs.h <<\EOF
3455 #define HAVE_FINITEF 1
3456 EOF
3457
3458         cat >> confdefs.h <<\EOF
3459 #define HAVE_FLOORF 1
3460 EOF
3461
3462         cat >> confdefs.h <<\EOF
3463 #define HAVE_FMODF 1
3464 EOF
3465
3466         cat >> confdefs.h <<\EOF
3467 #define HAVE_FREXPF 1
3468 EOF
3469
3470         cat >> confdefs.h <<\EOF
3471 #define HAVE_ISINF 1
3472 EOF
3473
3474         cat >> confdefs.h <<\EOF
3475 #define HAVE_ISINFF 1
3476 EOF
3477
3478         cat >> confdefs.h <<\EOF
3479 #define HAVE_ISNAN 1
3480 EOF
3481
3482         cat >> confdefs.h <<\EOF
3483 #define HAVE_ISNANF 1
3484 EOF
3485
3486         cat >> confdefs.h <<\EOF
3487 #define HAVE_LDEXPF 1
3488 EOF
3489
3490         cat >> confdefs.h <<\EOF
3491 #define HAVE_LOG10F 1
3492 EOF
3493
3494         cat >> confdefs.h <<\EOF
3495 #define HAVE_LOGF 1
3496 EOF
3497
3498         cat >> confdefs.h <<\EOF
3499 #define HAVE_MODFF 1
3500 EOF
3501
3502         cat >> confdefs.h <<\EOF
3503 #define HAVE_POWF 1
3504 EOF
3505
3506         cat >> confdefs.h <<\EOF
3507 #define HAVE_SINCOS 1
3508 EOF
3509
3510         cat >> confdefs.h <<\EOF
3511 #define HAVE_SINCOSF 1
3512 EOF
3513
3514         cat >> confdefs.h <<\EOF
3515 #define HAVE_SINF 1
3516 EOF
3517
3518         cat >> confdefs.h <<\EOF
3519 #define HAVE_SINHF 1
3520 EOF
3521
3522         cat >> confdefs.h <<\EOF
3523 #define HAVE_SQRTF 1
3524 EOF
3525
3526         cat >> confdefs.h <<\EOF
3527 #define HAVE_TANF 1
3528 EOF
3529
3530         cat >> confdefs.h <<\EOF
3531 #define HAVE_TANHF 1
3532 EOF
3533
3534
3535         # At some point, we should differentiate between architectures
3536         # like x86, which have long double versions, and alpha/powerpc/etc.,
3537         # which don't. For the time being, punt.
3538         if test x"long_double_math_on_this_cpu" = x"yes"; then
3539           cat >> confdefs.h <<\EOF
3540 #define HAVE_ACOSL 1
3541 EOF
3542
3543           cat >> confdefs.h <<\EOF
3544 #define HAVE_ASINL 1
3545 EOF
3546
3547           cat >> confdefs.h <<\EOF
3548 #define HAVE_ATAN2L 1
3549 EOF
3550
3551           cat >> confdefs.h <<\EOF
3552 #define HAVE_ATANL 1
3553 EOF
3554
3555           cat >> confdefs.h <<\EOF
3556 #define HAVE_CEILL 1
3557 EOF
3558
3559           cat >> confdefs.h <<\EOF
3560 #define HAVE_COPYSIGNL 1
3561 EOF
3562
3563           cat >> confdefs.h <<\EOF
3564 #define HAVE_COSL 1
3565 EOF
3566
3567           cat >> confdefs.h <<\EOF
3568 #define HAVE_COSHL 1
3569 EOF
3570
3571           cat >> confdefs.h <<\EOF
3572 #define HAVE_EXPL 1
3573 EOF
3574
3575           cat >> confdefs.h <<\EOF
3576 #define HAVE_FABSL 1
3577 EOF
3578
3579           cat >> confdefs.h <<\EOF
3580 #define HAVE_FINITEL 1
3581 EOF
3582
3583           cat >> confdefs.h <<\EOF
3584 #define HAVE_FLOORL 1
3585 EOF
3586
3587           cat >> confdefs.h <<\EOF
3588 #define HAVE_FMODL 1
3589 EOF
3590
3591           cat >> confdefs.h <<\EOF
3592 #define HAVE_FREXPL 1
3593 EOF
3594
3595           cat >> confdefs.h <<\EOF
3596 #define HAVE_ISINFL 1
3597 EOF
3598
3599           cat >> confdefs.h <<\EOF
3600 #define HAVE_ISNANL 1
3601 EOF
3602
3603           cat >> confdefs.h <<\EOF
3604 #define HAVE_LDEXPL 1
3605 EOF
3606
3607           cat >> confdefs.h <<\EOF
3608 #define HAVE_LOG10L 1
3609 EOF
3610
3611           cat >> confdefs.h <<\EOF
3612 #define HAVE_LOGL 1
3613 EOF
3614
3615           cat >> confdefs.h <<\EOF
3616 #define HAVE_MODFL 1
3617 EOF
3618
3619           cat >> confdefs.h <<\EOF
3620 #define HAVE_POWL 1
3621 EOF
3622
3623           cat >> confdefs.h <<\EOF
3624 #define HAVE_SINCOSL 1
3625 EOF
3626
3627           cat >> confdefs.h <<\EOF
3628 #define HAVE_SINL 1
3629 EOF
3630
3631           cat >> confdefs.h <<\EOF
3632 #define HAVE_SINHL 1
3633 EOF
3634
3635           cat >> confdefs.h <<\EOF
3636 #define HAVE_SQRTL 1
3637 EOF
3638
3639           cat >> confdefs.h <<\EOF
3640 #define HAVE_TANL 1
3641 EOF
3642
3643           cat >> confdefs.h <<\EOF
3644 #define HAVE_TANHL 1
3645 EOF
3646
3647         fi
3648         
3649     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3650 echo "configure:3651: checking for main in -lm" >&5
3651 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3653   echo $ac_n "(cached) $ac_c" 1>&6
3654 else
3655   ac_save_LIBS="$LIBS"
3656 LIBS="-lm  $LIBS"
3657 cat > conftest.$ac_ext <<EOF
3658 #line 3659 "configure"
3659 #include "confdefs.h"
3660
3661 int main() {
3662 main()
3663 ; return 0; }
3664 EOF
3665 if { (eval echo configure:3666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3666   rm -rf conftest*
3667   eval "ac_cv_lib_$ac_lib_var=yes"
3668 else
3669   echo "configure: failed program was:" >&5
3670   cat conftest.$ac_ext >&5
3671   rm -rf conftest*
3672   eval "ac_cv_lib_$ac_lib_var=no"
3673 fi
3674 rm -f conftest*
3675 LIBS="$ac_save_LIBS"
3676
3677 fi
3678 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3679   echo "$ac_t""yes" 1>&6
3680     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3681     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3682   cat >> confdefs.h <<EOF
3683 #define $ac_tr_lib 1
3684 EOF
3685
3686   LIBS="-lm $LIBS"
3687
3688 else
3689   echo "$ac_t""no" 1>&6
3690 fi
3691
3692   for ac_func in nan hypot hypotf atan2f expf copysignf
3693 do
3694 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3695 echo "configure:3696: checking for $ac_func" >&5
3696 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3697   echo $ac_n "(cached) $ac_c" 1>&6
3698 else
3699   cat > conftest.$ac_ext <<EOF
3700 #line 3701 "configure"
3701 #include "confdefs.h"
3702 /* System header to define __stub macros and hopefully few prototypes,
3703     which can conflict with char $ac_func(); below.  */
3704 #include <assert.h>
3705 /* Override any gcc2 internal prototype to avoid an error.  */
3706 /* We use char because int might match the return type of a gcc2
3707     builtin and then its argument prototype would still apply.  */
3708 char $ac_func();
3709
3710 int main() {
3711
3712 /* The GNU C library defines this for functions which it implements
3713     to always fail with ENOSYS.  Some functions are actually named
3714     something starting with __ and the normal name is an alias.  */
3715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3716 choke me
3717 #else
3718 $ac_func();
3719 #endif
3720
3721 ; return 0; }
3722 EOF
3723 if { (eval echo configure:3724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3724   rm -rf conftest*
3725   eval "ac_cv_func_$ac_func=yes"
3726 else
3727   echo "configure: failed program was:" >&5
3728   cat conftest.$ac_ext >&5
3729   rm -rf conftest*
3730   eval "ac_cv_func_$ac_func=no"
3731 fi
3732 rm -f conftest*
3733 fi
3734
3735 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3736   echo "$ac_t""yes" 1>&6
3737     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3738   cat >> confdefs.h <<EOF
3739 #define $ac_tr_func 1
3740 EOF
3741  
3742 else
3743   echo "$ac_t""no" 1>&6
3744 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
3745 fi
3746 done
3747
3748
3749
3750           USE_COMPLEX_LONG_DOUBLE=no
3751   if test x$ac_cv_func_atan2l = x"yes" \
3752      && test x$ac_cv_func_copysignl = x"yes"; then
3753     USE_COMPLEX_LONG_DOUBLE=yes
3754     for ac_func in hypotl signbitl
3755 do
3756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3757 echo "configure:3758: checking for $ac_func" >&5
3758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3759   echo $ac_n "(cached) $ac_c" 1>&6
3760 else
3761   cat > conftest.$ac_ext <<EOF
3762 #line 3763 "configure"
3763 #include "confdefs.h"
3764 /* System header to define __stub macros and hopefully few prototypes,
3765     which can conflict with char $ac_func(); below.  */
3766 #include <assert.h>
3767 /* Override any gcc2 internal prototype to avoid an error.  */
3768 /* We use char because int might match the return type of a gcc2
3769     builtin and then its argument prototype would still apply.  */
3770 char $ac_func();
3771
3772 int main() {
3773
3774 /* The GNU C library defines this for functions which it implements
3775     to always fail with ENOSYS.  Some functions are actually named
3776     something starting with __ and the normal name is an alias.  */
3777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3778 choke me
3779 #else
3780 $ac_func();
3781 #endif
3782
3783 ; return 0; }
3784 EOF
3785 if { (eval echo configure:3786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3786   rm -rf conftest*
3787   eval "ac_cv_func_$ac_func=yes"
3788 else
3789   echo "configure: failed program was:" >&5
3790   cat conftest.$ac_ext >&5
3791   rm -rf conftest*
3792   eval "ac_cv_func_$ac_func=no"
3793 fi
3794 rm -f conftest*
3795 fi
3796
3797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3798   echo "$ac_t""yes" 1>&6
3799     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3800   cat >> confdefs.h <<EOF
3801 #define $ac_tr_func 1
3802 EOF
3803  
3804 else
3805   echo "$ac_t""no" 1>&6
3806 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
3807 fi
3808 done
3809
3810
3811   fi
3812
3813   
3814
3815         
3816   
3817
3818   echo $ac_n "checking for GNU C++ __complex__ support""... $ac_c" 1>&6
3819 echo "configure:3820: checking for GNU C++ __complex__ support" >&5
3820   if eval "test \"`echo '$''{'glibcpp_cv_complex'+set}'`\" = set"; then
3821   echo $ac_n "(cached) $ac_c" 1>&6
3822 else
3823   
3824     
3825     ac_ext=C
3826 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3827 ac_cpp='$CXXCPP $CPPFLAGS'
3828 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3829 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3830 cross_compiling=$ac_cv_prog_cxx_cross
3831
3832     cat > conftest.$ac_ext <<EOF
3833 #line 3834 "configure"
3834 #include "confdefs.h"
3835 struct dcomplex { __complex__ double x; }; \
3836                     dcomplex f(const dcomplex& x) { return dcomplex(x); }
3837 int main() {
3838 \
3839                      dcomplex x; f(x); 
3840 ; return 0; }
3841 EOF
3842 if { (eval echo configure:3843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3843   rm -rf conftest*
3844   glibcpp_cv_complex=ok
3845 else
3846   echo "configure: failed program was:" >&5
3847   cat conftest.$ac_ext >&5
3848   rm -rf conftest*
3849   glibcpp_cv_complex=buggy
3850     
3851 fi
3852 rm -f conftest*
3853     ac_ext=c
3854 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3855 ac_cpp='$CPP $CPPFLAGS'
3856 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3857 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3858 cross_compiling=$ac_cv_prog_cc_cross
3859
3860   
3861 fi
3862
3863   echo "$ac_t""$glibcpp_cv_complex" 1>&6
3864   if test $glibcpp_cv_complex = buggy; then
3865     cat >> confdefs.h <<\EOF
3866 #define _GLIBCPP_BUGGY_COMPLEX 1
3867 EOF
3868
3869   fi
3870
3871   echo $ac_n "checking for GNU C++ __complex__ float support""... $ac_c" 1>&6
3872 echo "configure:3873: checking for GNU C++ __complex__ float support" >&5
3873   if eval "test \"`echo '$''{'glibcpp_cv_float_complex'+set}'`\" = set"; then
3874   echo $ac_n "(cached) $ac_c" 1>&6
3875 else
3876   
3877     
3878     ac_ext=C
3879 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3880 ac_cpp='$CXXCPP $CPPFLAGS'
3881 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3882 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3883 cross_compiling=$ac_cv_prog_cxx_cross
3884
3885     rm -f conftest.h
3886     cat > conftest.h <<EOB
3887       //
3888       // Check for buggy __complex__ that causes ICE in most versions of egcs
3889       // and gcc-2.95.x on certain platforms (eg., x86-win32).
3890       //
3891       // See http://gcc.gnu.org/ml/gcc-bugs/1999-07n/msg00845.html for
3892       // more info on the bug itself.
3893       //
3894       struct
3895       float_complex
3896       {
3897        __complex__ float m_value;
3898        float_complex (float = 0.0f, float = 0.0f);
3899        float_complex (__complex__ float val) : m_value (val) {}
3900        float_complex foo (const float_complex &val)
3901          { return float_complex (~val.m_value); }
3902       };
3903 EOB
3904     cat > conftest.$ac_ext <<EOF
3905 #line 3906 "configure"
3906 #include "confdefs.h"
3907 #include "conftest.h"
3908 int main() {
3909
3910 ; return 0; }
3911 EOF
3912 if { (eval echo configure:3913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3913   rm -rf conftest*
3914   glibcpp_cv_float_complex=ok
3915 else
3916   echo "configure: failed program was:" >&5
3917   cat conftest.$ac_ext >&5
3918   rm -rf conftest*
3919   glibcpp_cv_float_complex=buggy
3920     
3921 fi
3922 rm -f conftest*
3923     ac_ext=c
3924 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3925 ac_cpp='$CPP $CPPFLAGS'
3926 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3927 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3928 cross_compiling=$ac_cv_prog_cc_cross
3929
3930   
3931 fi
3932
3933   echo "$ac_t""$glibcpp_cv_float_complex" 1>&6
3934   if test $glibcpp_cv_float_complex = buggy; then
3935     cat >> confdefs.h <<\EOF
3936 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
3937 EOF
3938
3939   fi
3940
3941         
3942
3943       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
3944 echo "configure:3945: checking for mbstate_t" >&5
3945   cat > conftest.$ac_ext <<EOF
3946 #line 3947 "configure"
3947 #include "confdefs.h"
3948 #include <wchar.h>
3949 int main() {
3950 mbstate_t teststate;
3951 ; return 0; }
3952 EOF
3953 if { (eval echo configure:3954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3954   rm -rf conftest*
3955   have_mbstate_t=yes
3956 else
3957   echo "configure: failed program was:" >&5
3958   cat conftest.$ac_ext >&5
3959   rm -rf conftest*
3960   have_mbstate_t=no
3961 fi
3962 rm -f conftest*
3963   echo "$ac_t""$have_mbstate_t" 1>&6
3964   if test x"$have_mbstate_t" = xyes; then
3965     cat >> confdefs.h <<\EOF
3966 #define HAVE_MBSTATE_T 1
3967 EOF
3968
3969   fi
3970
3971     for ac_hdr in wchar.h
3972 do
3973 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3974 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3975 echo "configure:3976: checking for $ac_hdr" >&5
3976 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3977   echo $ac_n "(cached) $ac_c" 1>&6
3978 else
3979   cat > conftest.$ac_ext <<EOF
3980 #line 3981 "configure"
3981 #include "confdefs.h"
3982 #include <$ac_hdr>
3983 EOF
3984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3985 { (eval echo configure:3986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3987 if test -z "$ac_err"; then
3988   rm -rf conftest*
3989   eval "ac_cv_header_$ac_safe=yes"
3990 else
3991   echo "$ac_err" >&5
3992   echo "configure: failed program was:" >&5
3993   cat conftest.$ac_ext >&5
3994   rm -rf conftest*
3995   eval "ac_cv_header_$ac_safe=no"
3996 fi
3997 rm -f conftest*
3998 fi
3999 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4000   echo "$ac_t""yes" 1>&6
4001     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4002   cat >> confdefs.h <<EOF
4003 #define $ac_tr_hdr 1
4004 EOF
4005  ac_has_wchar_h=yes
4006 else
4007   echo "$ac_t""no" 1>&6
4008 ac_has_wchar_h=no
4009 fi
4010 done
4011
4012   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4013 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4014 echo "configure:4015: checking for wctype.h" >&5
4015 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4016   echo $ac_n "(cached) $ac_c" 1>&6
4017 else
4018   cat > conftest.$ac_ext <<EOF
4019 #line 4020 "configure"
4020 #include "confdefs.h"
4021 #include <wctype.h>
4022 EOF
4023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4024 { (eval echo configure:4025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4026 if test -z "$ac_err"; then
4027   rm -rf conftest*
4028   eval "ac_cv_header_$ac_safe=yes"
4029 else
4030   echo "$ac_err" >&5
4031   echo "configure: failed program was:" >&5
4032   cat conftest.$ac_ext >&5
4033   rm -rf conftest*
4034   eval "ac_cv_header_$ac_safe=no"
4035 fi
4036 rm -f conftest*
4037 fi
4038 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4039   echo "$ac_t""yes" 1>&6
4040   ac_has_wctype_h=yes
4041 else
4042   echo "$ac_t""no" 1>&6
4043 ac_has_wctype_h=no
4044 fi
4045
4046   
4047     if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes \
4048      && test x"$enable_c_mbchar" != xno; then
4049       
4050             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4051 echo "configure:4052: checking for WCHAR_MIN and WCHAR_MAX" >&5
4052     cat > conftest.$ac_ext <<EOF
4053 #line 4054 "configure"
4054 #include "confdefs.h"
4055 #include <wchar.h>
4056 int main() {
4057 int i = WCHAR_MIN; int j = WCHAR_MAX;
4058 ; return 0; }
4059 EOF
4060 if { (eval echo configure:4061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4061   rm -rf conftest*
4062   has_wchar_minmax=yes
4063 else
4064   echo "configure: failed program was:" >&5
4065   cat conftest.$ac_ext >&5
4066   rm -rf conftest*
4067   has_wchar_minmax=no
4068 fi
4069 rm -f conftest*
4070     echo "$ac_t""$has_wchar_minmax" 1>&6
4071     
4072             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4073 echo "configure:4074: checking for WEOF" >&5
4074     cat > conftest.$ac_ext <<EOF
4075 #line 4076 "configure"
4076 #include "confdefs.h"
4077
4078       #include <wchar.h>
4079       #include <stddef.h>
4080 int main() {
4081 wint_t i = WEOF;
4082 ; return 0; }
4083 EOF
4084 if { (eval echo configure:4085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4085   rm -rf conftest*
4086   has_weof=yes
4087 else
4088   echo "configure: failed program was:" >&5
4089   cat conftest.$ac_ext >&5
4090   rm -rf conftest*
4091   has_weof=no
4092 fi
4093 rm -f conftest*
4094     echo "$ac_t""$has_weof" 1>&6
4095   
4096         for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \
4097     wcsrtombs mbsrtowcs
4098 do
4099 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4100 echo "configure:4101: checking for $ac_func" >&5
4101 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4102   echo $ac_n "(cached) $ac_c" 1>&6
4103 else
4104   cat > conftest.$ac_ext <<EOF
4105 #line 4106 "configure"
4106 #include "confdefs.h"
4107 /* System header to define __stub macros and hopefully few prototypes,
4108     which can conflict with char $ac_func(); below.  */
4109 #include <assert.h>
4110 /* Override any gcc2 internal prototype to avoid an error.  */
4111 /* We use char because int might match the return type of a gcc2
4112     builtin and then its argument prototype would still apply.  */
4113 char $ac_func();
4114
4115 int main() {
4116
4117 /* The GNU C library defines this for functions which it implements
4118     to always fail with ENOSYS.  Some functions are actually named
4119     something starting with __ and the normal name is an alias.  */
4120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4121 choke me
4122 #else
4123 $ac_func();
4124 #endif
4125
4126 ; return 0; }
4127 EOF
4128 if { (eval echo configure:4129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4129   rm -rf conftest*
4130   eval "ac_cv_func_$ac_func=yes"
4131 else
4132   echo "configure: failed program was:" >&5
4133   cat conftest.$ac_ext >&5
4134   rm -rf conftest*
4135   eval "ac_cv_func_$ac_func=no"
4136 fi
4137 rm -f conftest*
4138 fi
4139
4140 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4141   echo "$ac_t""yes" 1>&6
4142     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4143   cat >> confdefs.h <<EOF
4144 #define $ac_tr_func 1
4145 EOF
4146  ac_wfuncs=yes
4147 else
4148   echo "$ac_t""no" 1>&6
4149 ac_wfuncs=no
4150 fi
4151 done
4152
4153   
4154     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4155 echo "configure:4156: checking for ISO C99 wchar_t support" >&5
4156     if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \
4157        && test x"$ac_wfuncs" = xyes; then
4158       ac_isoC99_wchar_t=yes
4159     else
4160       ac_isoC99_wchar_t=no
4161     fi
4162     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4163   
4164             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4165 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4166 echo "configure:4167: checking for iconv.h" >&5
4167 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4168   echo $ac_n "(cached) $ac_c" 1>&6
4169 else
4170   cat > conftest.$ac_ext <<EOF
4171 #line 4172 "configure"
4172 #include "confdefs.h"
4173 #include <iconv.h>
4174 EOF
4175 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4176 { (eval echo configure:4177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4177 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4178 if test -z "$ac_err"; then
4179   rm -rf conftest*
4180   eval "ac_cv_header_$ac_safe=yes"
4181 else
4182   echo "$ac_err" >&5
4183   echo "configure: failed program was:" >&5
4184   cat conftest.$ac_ext >&5
4185   rm -rf conftest*
4186   eval "ac_cv_header_$ac_safe=no"
4187 fi
4188 rm -f conftest*
4189 fi
4190 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4191   echo "$ac_t""yes" 1>&6
4192   ac_has_iconv_h=yes
4193 else
4194   echo "$ac_t""no" 1>&6
4195 ac_has_iconv_h=no
4196 fi
4197
4198     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4199 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4200 echo "configure:4201: checking for langinfo.h" >&5
4201 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4202   echo $ac_n "(cached) $ac_c" 1>&6
4203 else
4204   cat > conftest.$ac_ext <<EOF
4205 #line 4206 "configure"
4206 #include "confdefs.h"
4207 #include <langinfo.h>
4208 EOF
4209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4210 { (eval echo configure:4211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4212 if test -z "$ac_err"; then
4213   rm -rf conftest*
4214   eval "ac_cv_header_$ac_safe=yes"
4215 else
4216   echo "$ac_err" >&5
4217   echo "configure: failed program was:" >&5
4218   cat conftest.$ac_ext >&5
4219   rm -rf conftest*
4220   eval "ac_cv_header_$ac_safe=no"
4221 fi
4222 rm -f conftest*
4223 fi
4224 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4225   echo "$ac_t""yes" 1>&6
4226   ac_has_langinfo_h=yes
4227 else
4228   echo "$ac_t""no" 1>&6
4229 ac_has_langinfo_h=no
4230 fi
4231
4232
4233         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4234 echo "configure:4235: checking for iconv in -liconv" >&5
4235 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4236 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4237   echo $ac_n "(cached) $ac_c" 1>&6
4238 else
4239   ac_save_LIBS="$LIBS"
4240 LIBS="-liconv  $LIBS"
4241 cat > conftest.$ac_ext <<EOF
4242 #line 4243 "configure"
4243 #include "confdefs.h"
4244 /* Override any gcc2 internal prototype to avoid an error.  */
4245 /* We use char because int might match the return type of a gcc2
4246     builtin and then its argument prototype would still apply.  */
4247 char iconv();
4248
4249 int main() {
4250 iconv()
4251 ; return 0; }
4252 EOF
4253 if { (eval echo configure:4254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4254   rm -rf conftest*
4255   eval "ac_cv_lib_$ac_lib_var=yes"
4256 else
4257   echo "configure: failed program was:" >&5
4258   cat conftest.$ac_ext >&5
4259   rm -rf conftest*
4260   eval "ac_cv_lib_$ac_lib_var=no"
4261 fi
4262 rm -f conftest*
4263 LIBS="$ac_save_LIBS"
4264
4265 fi
4266 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4267   echo "$ac_t""yes" 1>&6
4268   libiconv="-liconv"
4269 else
4270   echo "$ac_t""no" 1>&6
4271 fi
4272
4273     ac_save_LIBS="$LIBS"
4274     LIBS="$LIBS $libiconv"
4275
4276     for ac_func in iconv_open iconv_close iconv nl_langinfo
4277 do
4278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4279 echo "configure:4280: checking for $ac_func" >&5
4280 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4281   echo $ac_n "(cached) $ac_c" 1>&6
4282 else
4283   cat > conftest.$ac_ext <<EOF
4284 #line 4285 "configure"
4285 #include "confdefs.h"
4286 /* System header to define __stub macros and hopefully few prototypes,
4287     which can conflict with char $ac_func(); below.  */
4288 #include <assert.h>
4289 /* Override any gcc2 internal prototype to avoid an error.  */
4290 /* We use char because int might match the return type of a gcc2
4291     builtin and then its argument prototype would still apply.  */
4292 char $ac_func();
4293
4294 int main() {
4295
4296 /* The GNU C library defines this for functions which it implements
4297     to always fail with ENOSYS.  Some functions are actually named
4298     something starting with __ and the normal name is an alias.  */
4299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4300 choke me
4301 #else
4302 $ac_func();
4303 #endif
4304
4305 ; return 0; }
4306 EOF
4307 if { (eval echo configure:4308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4308   rm -rf conftest*
4309   eval "ac_cv_func_$ac_func=yes"
4310 else
4311   echo "configure: failed program was:" >&5
4312   cat conftest.$ac_ext >&5
4313   rm -rf conftest*
4314   eval "ac_cv_func_$ac_func=no"
4315 fi
4316 rm -f conftest*
4317 fi
4318
4319 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4320   echo "$ac_t""yes" 1>&6
4321     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4322   cat >> confdefs.h <<EOF
4323 #define $ac_tr_func 1
4324 EOF
4325  \
4326     ac_XPG2funcs=yes
4327 else
4328   echo "$ac_t""no" 1>&6
4329 ac_XPG2funcs=no
4330 fi
4331 done
4332
4333   
4334     LIBS="$ac_save_LIBS"
4335
4336     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4337 echo "configure:4338: checking for XPG2 wchar_t support" >&5
4338     if test x"$ac_has_iconv_h" = xyes && test x"$ac_has_langinfo_h" = xyes \
4339        && test x"$ac_XPG2funcs" = xyes; then
4340       ac_XPG2_wchar_t=yes
4341     else
4342       ac_XPG2_wchar_t=no
4343     fi
4344     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4345   
4346             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4347 echo "configure:4348: checking for enabled wchar_t specializations" >&5
4348     if test x"$ac_isoC99_wchar_t" = xyes \
4349        && test x"$ac_XPG2_wchar_t" = xyes; then
4350       libinst_wstring_la="libinst-wstring.la"
4351       cat >> confdefs.h <<\EOF
4352 #define _GLIBCPP_USE_WCHAR_T 1
4353 EOF
4354
4355       echo "$ac_t"""yes"" 1>&6
4356     else
4357       libinst_wstring_la=""
4358       echo "$ac_t"""no"" 1>&6
4359     fi
4360     
4361   
4362   else
4363         echo "configure: warning: wchar_t support disabled." 1>&2
4364   fi
4365
4366         os_include_dir="config/os/gnu-linux"
4367         # GLIBCPP_CHECK_STDLIB_SUPPORT
4368         cat >> confdefs.h <<\EOF
4369 #define HAVE_STRTOF 1
4370 EOF
4371         
4372         cat >> confdefs.h <<\EOF
4373 #define HAVE_STRTOLD 1
4374 EOF
4375         
4376         # AC_FUNC_MMAP
4377         cat >> confdefs.h <<\EOF
4378 #define HAVE_MMAP 1
4379 EOF
4380
4381         ;;
4382     *)
4383         # We assume newlib.  This lets us hard-code the functions we know
4384         # we'll have.
4385         cat >> confdefs.h <<\EOF
4386 #define HAVE_FINITE 1
4387 EOF
4388
4389         cat >> confdefs.h <<\EOF
4390 #define HAVE_ISNAN 1
4391 EOF
4392
4393         cat >> confdefs.h <<\EOF
4394 #define HAVE_ISNANF 1
4395 EOF
4396
4397         cat >> confdefs.h <<\EOF
4398 #define HAVE_ISINF 1
4399 EOF
4400
4401         cat >> confdefs.h <<\EOF
4402 #define HAVE_ISINFF 1
4403 EOF
4404
4405
4406         os_include_dir="config/os/newlib"
4407
4408         cat >> confdefs.h <<\EOF
4409 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
4410 EOF
4411
4412         cat >> confdefs.h <<\EOF
4413 #define _GLIBCPP_BUGGY_COMPLEX 1
4414 EOF
4415
4416         # need to check for faster f versions of math functions, ie sinf?
4417         ;;
4418   esac
4419 else
4420
4421   # We are being configured natively. We can do more elaborate tests
4422   # that include AC_TRY_COMPILE now, as the linker is assumed to be
4423   # working.
4424   xcompiling=0
4425   NATIVE=yes
4426   CANADIAN=no
4427   NULL_TARGET=no
4428
4429   # Check for available headers.
4430   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
4431   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
4432 do
4433 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4434 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4435 echo "configure:4436: checking for $ac_hdr" >&5
4436 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4437   echo $ac_n "(cached) $ac_c" 1>&6
4438 else
4439   cat > conftest.$ac_ext <<EOF
4440 #line 4441 "configure"
4441 #include "confdefs.h"
4442 #include <$ac_hdr>
4443 EOF
4444 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4445 { (eval echo configure:4446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4446 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4447 if test -z "$ac_err"; then
4448   rm -rf conftest*
4449   eval "ac_cv_header_$ac_safe=yes"
4450 else
4451   echo "$ac_err" >&5
4452   echo "configure: failed program was:" >&5
4453   cat conftest.$ac_ext >&5
4454   rm -rf conftest*
4455   eval "ac_cv_header_$ac_safe=no"
4456 fi
4457 rm -f conftest*
4458 fi
4459 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4460   echo "$ac_t""yes" 1>&6
4461     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4462   cat >> confdefs.h <<EOF
4463 #define $ac_tr_hdr 1
4464 EOF
4465  
4466 else
4467   echo "$ac_t""no" 1>&6
4468 fi
4469 done
4470
4471
4472   
4473   # All these tests are for C++; save the language and the compiler flags.
4474   # The CXXFLAGS thing is suspicious, but based on similar bits 
4475   # found in GLIBCPP_CONFIGURE.
4476   
4477   ac_ext=C
4478 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4479 ac_cpp='$CXXCPP $CPPFLAGS'
4480 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4481 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4482 cross_compiling=$ac_cv_prog_cxx_cross
4483
4484   ac_test_CXXFLAGS="${CXXFLAGS+set}"
4485   ac_save_CXXFLAGS="$CXXFLAGS"
4486
4487   # Check for maintainer-mode bits.
4488   if test x"$USE_MAINTAINER_MODE" = xno; then
4489     WERROR=''
4490   else
4491     WERROR='-Werror'
4492   fi
4493
4494   # Check for -ffunction-sections -fdata-sections
4495   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
4496 echo "configure:4497: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
4497   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
4498   cat > conftest.$ac_ext <<EOF
4499 #line 4500 "configure"
4500 #include "confdefs.h"
4501
4502 int main() {
4503 int foo;
4504   
4505 ; return 0; }
4506 EOF
4507 if { (eval echo configure:4508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4508   rm -rf conftest*
4509   ac_fdsections=yes
4510 else
4511   echo "configure: failed program was:" >&5
4512   cat conftest.$ac_ext >&5
4513   rm -rf conftest*
4514   ac_fdsections=no
4515 fi
4516 rm -f conftest*
4517   if test "$ac_test_CXXFLAGS" = set; then
4518     CXXFLAGS="$ac_save_CXXFLAGS"
4519   else
4520     # this is the suspicious part
4521     CXXFLAGS=''
4522   fi
4523   if test x"$ac_fdsections" = x"yes" && test x"$enable_debug" = x"no"; then
4524     SECTION_FLAGS='-ffunction-sections -fdata-sections'
4525   fi
4526   echo "$ac_t""$ac_fdsections" 1>&6
4527
4528   ac_ext=c
4529 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4530 ac_cpp='$CPP $CPPFLAGS'
4531 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4532 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4533 cross_compiling=$ac_cv_prog_cc_cross
4534
4535   
4536   
4537
4538   
4539   # If we're not using GNU ld, then there's no point in even trying these
4540   # tests.  Check for that first.  We should have already tested for gld
4541   # by now (in libtool), but require it now just to be safe...
4542   SECTION_LDFLAGS=''
4543   OPT_LDFLAGS=''
4544   
4545
4546   # Set --gc-sections.
4547   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4548     # GNU ld it is!  Joy and bunny rabbits!
4549
4550     # All these tests are for C++; save the language and the compiler flags.
4551     # Need to do this so that g++ won't try to link in libstdc++
4552     ac_test_CFLAGS="${CFLAGS+set}"
4553     ac_save_CFLAGS="$CFLAGS"
4554     CFLAGS='-x c++  -Wl,--gc-sections'
4555
4556     # Check for -Wl,--gc-sections
4557     # XXX This test is broken at the moment, as symbols required for
4558     # linking are now in libsupc++ (not built yet.....). In addition, 
4559     # this test has cored on solaris in the past. In addition,
4560     # --gc-sections doesn't really work at the moment (keeps on discarding
4561     # used sections, first .eh_frame and now some of the glibc sections for
4562     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4563     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4564 echo "configure:4565: checking for ld that supports -Wl,--gc-sections" >&5
4565     if test "$cross_compiling" = yes; then
4566   ac_sectionLDflags=yes
4567 else
4568   cat > conftest.$ac_ext <<EOF
4569 #line 4570 "configure"
4570 #include "confdefs.h"
4571
4572      int main(void) 
4573      {
4574        try { throw 1; }
4575        catch (...) { };
4576        return 0;
4577      }
4578     
4579 EOF
4580 if { (eval echo configure:4581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4581 then
4582   ac_sectionLDflags=yes
4583 else
4584   echo "configure: failed program was:" >&5
4585   cat conftest.$ac_ext >&5
4586   rm -fr conftest*
4587   ac_sectionLFflags=no
4588 fi
4589 rm -fr conftest*
4590 fi
4591
4592     if test "$ac_test_CFLAGS" = set; then
4593       CFLAGS="$ac_save_CFLAGS"
4594     else
4595       # this is the suspicious part
4596       CFLAGS=''
4597     fi
4598     if test "$ac_sectionLDflags" = "yes"; then
4599       SECTION_LDFLAGS='-Wl,--gc-sections'
4600     fi
4601     echo "$ac_t""$ac_sectionLDflags" 1>&6
4602   fi
4603
4604   # Set linker optimization flags.
4605   if test x"$ac_cv_prog_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4606     OPT_LDFLAGS='-Wl,-O1'
4607   fi
4608
4609   
4610   
4611
4612   
4613       
4614   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
4615 echo "configure:4616: checking for __builtin_abs declaration" >&5
4616   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
4617     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
4618   echo $ac_n "(cached) $ac_c" 1>&6
4619 else
4620   
4621       
4622       ac_ext=C
4623 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4624 ac_cpp='$CXXCPP $CPPFLAGS'
4625 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4626 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4627 cross_compiling=$ac_cv_prog_cxx_cross
4628
4629       cat > conftest.$ac_ext <<EOF
4630 #line 4631 "configure"
4631 #include "confdefs.h"
4632 #include <math.h>
4633 int main() {
4634  __builtin_abs(0);
4635 ; return 0; }
4636 EOF
4637 if { (eval echo configure:4638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4638   rm -rf conftest*
4639   glibcpp_cv_func___builtin_abs_use=yes
4640 else
4641   echo "configure: failed program was:" >&5
4642   cat conftest.$ac_ext >&5
4643   rm -rf conftest*
4644   glibcpp_cv_func___builtin_abs_use=no
4645 fi
4646 rm -f conftest*
4647       ac_ext=c
4648 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4649 ac_cpp='$CPP $CPPFLAGS'
4650 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4651 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4652 cross_compiling=$ac_cv_prog_cc_cross
4653
4654     
4655 fi
4656
4657   fi
4658   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
4659   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
4660     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
4661 echo "configure:4662: checking for __builtin_abs linkage" >&5
4662     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
4663       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
4664   echo $ac_n "(cached) $ac_c" 1>&6
4665 else
4666   
4667         cat > conftest.$ac_ext <<EOF
4668 #line 4669 "configure"
4669 #include "confdefs.h"
4670 #include <math.h>
4671 int main() {
4672  __builtin_abs(0);
4673 ; return 0; }
4674 EOF
4675 if { (eval echo configure:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4676   rm -rf conftest*
4677   glibcpp_cv_func___builtin_abs_link=yes
4678 else
4679   echo "configure: failed program was:" >&5
4680   cat conftest.$ac_ext >&5
4681   rm -rf conftest*
4682   glibcpp_cv_func___builtin_abs_link=no
4683 fi
4684 rm -f conftest*
4685       
4686 fi
4687
4688     fi
4689     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
4690     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
4691       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4692       cat >> confdefs.h <<EOF
4693 #define ${ac_tr_func} 1
4694 EOF
4695
4696     fi
4697   fi
4698
4699   
4700   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
4701 echo "configure:4702: checking for __builtin_fabsf declaration" >&5
4702   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
4703     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
4704   echo $ac_n "(cached) $ac_c" 1>&6
4705 else
4706   
4707       
4708       ac_ext=C
4709 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4710 ac_cpp='$CXXCPP $CPPFLAGS'
4711 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4712 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4713 cross_compiling=$ac_cv_prog_cxx_cross
4714
4715       cat > conftest.$ac_ext <<EOF
4716 #line 4717 "configure"
4717 #include "confdefs.h"
4718 #include <math.h>
4719 int main() {
4720  __builtin_fabsf(0);
4721 ; return 0; }
4722 EOF
4723 if { (eval echo configure:4724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4724   rm -rf conftest*
4725   glibcpp_cv_func___builtin_fabsf_use=yes
4726 else
4727   echo "configure: failed program was:" >&5
4728   cat conftest.$ac_ext >&5
4729   rm -rf conftest*
4730   glibcpp_cv_func___builtin_fabsf_use=no
4731 fi
4732 rm -f conftest*
4733       ac_ext=c
4734 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4735 ac_cpp='$CPP $CPPFLAGS'
4736 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4737 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4738 cross_compiling=$ac_cv_prog_cc_cross
4739
4740     
4741 fi
4742
4743   fi
4744   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
4745   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
4746     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
4747 echo "configure:4748: checking for __builtin_fabsf linkage" >&5
4748     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
4749       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
4750   echo $ac_n "(cached) $ac_c" 1>&6
4751 else
4752   
4753         cat > conftest.$ac_ext <<EOF
4754 #line 4755 "configure"
4755 #include "confdefs.h"
4756 #include <math.h>
4757 int main() {
4758  __builtin_fabsf(0);
4759 ; return 0; }
4760 EOF
4761 if { (eval echo configure:4762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4762   rm -rf conftest*
4763   glibcpp_cv_func___builtin_fabsf_link=yes
4764 else
4765   echo "configure: failed program was:" >&5
4766   cat conftest.$ac_ext >&5
4767   rm -rf conftest*
4768   glibcpp_cv_func___builtin_fabsf_link=no
4769 fi
4770 rm -f conftest*
4771       
4772 fi
4773
4774     fi
4775     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
4776     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
4777       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4778       cat >> confdefs.h <<EOF
4779 #define ${ac_tr_func} 1
4780 EOF
4781
4782     fi
4783   fi
4784
4785   
4786   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
4787 echo "configure:4788: checking for __builtin_fabs declaration" >&5
4788   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
4789     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
4790   echo $ac_n "(cached) $ac_c" 1>&6
4791 else
4792   
4793       
4794       ac_ext=C
4795 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4796 ac_cpp='$CXXCPP $CPPFLAGS'
4797 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4798 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4799 cross_compiling=$ac_cv_prog_cxx_cross
4800
4801       cat > conftest.$ac_ext <<EOF
4802 #line 4803 "configure"
4803 #include "confdefs.h"
4804 #include <math.h>
4805 int main() {
4806  __builtin_fabs(0);
4807 ; return 0; }
4808 EOF
4809 if { (eval echo configure:4810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4810   rm -rf conftest*
4811   glibcpp_cv_func___builtin_fabs_use=yes
4812 else
4813   echo "configure: failed program was:" >&5
4814   cat conftest.$ac_ext >&5
4815   rm -rf conftest*
4816   glibcpp_cv_func___builtin_fabs_use=no
4817 fi
4818 rm -f conftest*
4819       ac_ext=c
4820 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4821 ac_cpp='$CPP $CPPFLAGS'
4822 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4823 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4824 cross_compiling=$ac_cv_prog_cc_cross
4825
4826     
4827 fi
4828
4829   fi
4830   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
4831   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
4832     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
4833 echo "configure:4834: checking for __builtin_fabs linkage" >&5
4834     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
4835       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
4836   echo $ac_n "(cached) $ac_c" 1>&6
4837 else
4838   
4839         cat > conftest.$ac_ext <<EOF
4840 #line 4841 "configure"
4841 #include "confdefs.h"
4842 #include <math.h>
4843 int main() {
4844  __builtin_fabs(0);
4845 ; return 0; }
4846 EOF
4847 if { (eval echo configure:4848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4848   rm -rf conftest*
4849   glibcpp_cv_func___builtin_fabs_link=yes
4850 else
4851   echo "configure: failed program was:" >&5
4852   cat conftest.$ac_ext >&5
4853   rm -rf conftest*
4854   glibcpp_cv_func___builtin_fabs_link=no
4855 fi
4856 rm -f conftest*
4857       
4858 fi
4859
4860     fi
4861     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
4862     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
4863       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4864       cat >> confdefs.h <<EOF
4865 #define ${ac_tr_func} 1
4866 EOF
4867
4868     fi
4869   fi
4870
4871   
4872   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
4873 echo "configure:4874: checking for __builtin_fabsl declaration" >&5
4874   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
4875     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
4876   echo $ac_n "(cached) $ac_c" 1>&6
4877 else
4878   
4879       
4880       ac_ext=C
4881 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4882 ac_cpp='$CXXCPP $CPPFLAGS'
4883 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4884 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4885 cross_compiling=$ac_cv_prog_cxx_cross
4886
4887       cat > conftest.$ac_ext <<EOF
4888 #line 4889 "configure"
4889 #include "confdefs.h"
4890 #include <math.h>
4891 int main() {
4892  __builtin_fabsl(0);
4893 ; return 0; }
4894 EOF
4895 if { (eval echo configure:4896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4896   rm -rf conftest*
4897   glibcpp_cv_func___builtin_fabsl_use=yes
4898 else
4899   echo "configure: failed program was:" >&5
4900   cat conftest.$ac_ext >&5
4901   rm -rf conftest*
4902   glibcpp_cv_func___builtin_fabsl_use=no
4903 fi
4904 rm -f conftest*
4905       ac_ext=c
4906 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4907 ac_cpp='$CPP $CPPFLAGS'
4908 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4909 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4910 cross_compiling=$ac_cv_prog_cc_cross
4911
4912     
4913 fi
4914
4915   fi
4916   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
4917   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
4918     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
4919 echo "configure:4920: checking for __builtin_fabsl linkage" >&5
4920     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
4921       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
4922   echo $ac_n "(cached) $ac_c" 1>&6
4923 else
4924   
4925         cat > conftest.$ac_ext <<EOF
4926 #line 4927 "configure"
4927 #include "confdefs.h"
4928 #include <math.h>
4929 int main() {
4930  __builtin_fabsl(0);
4931 ; return 0; }
4932 EOF
4933 if { (eval echo configure:4934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4934   rm -rf conftest*
4935   glibcpp_cv_func___builtin_fabsl_link=yes
4936 else
4937   echo "configure: failed program was:" >&5
4938   cat conftest.$ac_ext >&5
4939   rm -rf conftest*
4940   glibcpp_cv_func___builtin_fabsl_link=no
4941 fi
4942 rm -f conftest*
4943       
4944 fi
4945
4946     fi
4947     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
4948     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
4949       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4950       cat >> confdefs.h <<EOF
4951 #define ${ac_tr_func} 1
4952 EOF
4953
4954     fi
4955   fi
4956
4957   
4958   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
4959 echo "configure:4960: checking for __builtin_labs declaration" >&5
4960   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
4961     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
4962   echo $ac_n "(cached) $ac_c" 1>&6
4963 else
4964   
4965       
4966       ac_ext=C
4967 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4968 ac_cpp='$CXXCPP $CPPFLAGS'
4969 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4970 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4971 cross_compiling=$ac_cv_prog_cxx_cross
4972
4973       cat > conftest.$ac_ext <<EOF
4974 #line 4975 "configure"
4975 #include "confdefs.h"
4976 #include <math.h>
4977 int main() {
4978  __builtin_labs(0);
4979 ; return 0; }
4980 EOF
4981 if { (eval echo configure:4982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4982   rm -rf conftest*
4983   glibcpp_cv_func___builtin_labs_use=yes
4984 else
4985   echo "configure: failed program was:" >&5
4986   cat conftest.$ac_ext >&5
4987   rm -rf conftest*
4988   glibcpp_cv_func___builtin_labs_use=no
4989 fi
4990 rm -f conftest*
4991       ac_ext=c
4992 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4993 ac_cpp='$CPP $CPPFLAGS'
4994 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4995 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4996 cross_compiling=$ac_cv_prog_cc_cross
4997
4998     
4999 fi
5000
5001   fi
5002   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
5003   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
5004     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
5005 echo "configure:5006: checking for __builtin_labs linkage" >&5
5006     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
5007       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
5008   echo $ac_n "(cached) $ac_c" 1>&6
5009 else
5010   
5011         cat > conftest.$ac_ext <<EOF
5012 #line 5013 "configure"
5013 #include "confdefs.h"
5014 #include <math.h>
5015 int main() {
5016  __builtin_labs(0);
5017 ; return 0; }
5018 EOF
5019 if { (eval echo configure:5020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5020   rm -rf conftest*
5021   glibcpp_cv_func___builtin_labs_link=yes
5022 else
5023   echo "configure: failed program was:" >&5
5024   cat conftest.$ac_ext >&5
5025   rm -rf conftest*
5026   glibcpp_cv_func___builtin_labs_link=no
5027 fi
5028 rm -f conftest*
5029       
5030 fi
5031
5032     fi
5033     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
5034     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
5035       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5036       cat >> confdefs.h <<EOF
5037 #define ${ac_tr_func} 1
5038 EOF
5039
5040     fi
5041   fi
5042
5043
5044   
5045   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
5046 echo "configure:5047: checking for __builtin_sqrtf declaration" >&5
5047   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
5048     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
5049   echo $ac_n "(cached) $ac_c" 1>&6
5050 else
5051   
5052       
5053       ac_ext=C
5054 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5055 ac_cpp='$CXXCPP $CPPFLAGS'
5056 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5057 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5058 cross_compiling=$ac_cv_prog_cxx_cross
5059
5060       cat > conftest.$ac_ext <<EOF
5061 #line 5062 "configure"
5062 #include "confdefs.h"
5063 #include <math.h>
5064 int main() {
5065  __builtin_sqrtf(0);
5066 ; return 0; }
5067 EOF
5068 if { (eval echo configure:5069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5069   rm -rf conftest*
5070   glibcpp_cv_func___builtin_sqrtf_use=yes
5071 else
5072   echo "configure: failed program was:" >&5
5073   cat conftest.$ac_ext >&5
5074   rm -rf conftest*
5075   glibcpp_cv_func___builtin_sqrtf_use=no
5076 fi
5077 rm -f conftest*
5078       ac_ext=c
5079 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5080 ac_cpp='$CPP $CPPFLAGS'
5081 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5082 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5083 cross_compiling=$ac_cv_prog_cc_cross
5084
5085     
5086 fi
5087
5088   fi
5089   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
5090   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
5091     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
5092 echo "configure:5093: checking for __builtin_sqrtf linkage" >&5
5093     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
5094       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
5095   echo $ac_n "(cached) $ac_c" 1>&6
5096 else
5097   
5098         cat > conftest.$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5101 #include <math.h>
5102 int main() {
5103  __builtin_sqrtf(0);
5104 ; return 0; }
5105 EOF
5106 if { (eval echo configure:5107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5107   rm -rf conftest*
5108   glibcpp_cv_func___builtin_sqrtf_link=yes
5109 else
5110   echo "configure: failed program was:" >&5
5111   cat conftest.$ac_ext >&5
5112   rm -rf conftest*
5113   glibcpp_cv_func___builtin_sqrtf_link=no
5114 fi
5115 rm -f conftest*
5116       
5117 fi
5118
5119     fi
5120     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
5121     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
5122       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5123       cat >> confdefs.h <<EOF
5124 #define ${ac_tr_func} 1
5125 EOF
5126
5127     fi
5128   fi
5129
5130   
5131   echo $ac_n "checking for __builtin_fsqrt declaration""... $ac_c" 1>&6
5132 echo "configure:5133: checking for __builtin_fsqrt declaration" >&5
5133   if test x${glibcpp_cv_func___builtin_fsqrt_use+set} != xset; then
5134     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_use'+set}'`\" = set"; then
5135   echo $ac_n "(cached) $ac_c" 1>&6
5136 else
5137   
5138       
5139       ac_ext=C
5140 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5141 ac_cpp='$CXXCPP $CPPFLAGS'
5142 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5143 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5144 cross_compiling=$ac_cv_prog_cxx_cross
5145
5146       cat > conftest.$ac_ext <<EOF
5147 #line 5148 "configure"
5148 #include "confdefs.h"
5149 #include <math.h>
5150 int main() {
5151  __builtin_fsqrt(0);
5152 ; return 0; }
5153 EOF
5154 if { (eval echo configure:5155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5155   rm -rf conftest*
5156   glibcpp_cv_func___builtin_fsqrt_use=yes
5157 else
5158   echo "configure: failed program was:" >&5
5159   cat conftest.$ac_ext >&5
5160   rm -rf conftest*
5161   glibcpp_cv_func___builtin_fsqrt_use=no
5162 fi
5163 rm -f conftest*
5164       ac_ext=c
5165 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5166 ac_cpp='$CPP $CPPFLAGS'
5167 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5168 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5169 cross_compiling=$ac_cv_prog_cc_cross
5170
5171     
5172 fi
5173
5174   fi
5175   echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_use" 1>&6
5176   if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then
5177     echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6
5178 echo "configure:5179: checking for __builtin_fsqrt linkage" >&5
5179     if test x${glibcpp_cv_func___builtin_fsqrt_link+set} != xset; then
5180       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_link'+set}'`\" = set"; then
5181   echo $ac_n "(cached) $ac_c" 1>&6
5182 else
5183   
5184         cat > conftest.$ac_ext <<EOF
5185 #line 5186 "configure"
5186 #include "confdefs.h"
5187 #include <math.h>
5188 int main() {
5189  __builtin_fsqrt(0);
5190 ; return 0; }
5191 EOF
5192 if { (eval echo configure:5193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5193   rm -rf conftest*
5194   glibcpp_cv_func___builtin_fsqrt_link=yes
5195 else
5196   echo "configure: failed program was:" >&5
5197   cat conftest.$ac_ext >&5
5198   rm -rf conftest*
5199   glibcpp_cv_func___builtin_fsqrt_link=no
5200 fi
5201 rm -f conftest*
5202       
5203 fi
5204
5205     fi
5206     echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6
5207     if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then
5208       ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5209       cat >> confdefs.h <<EOF
5210 #define ${ac_tr_func} 1
5211 EOF
5212
5213     fi
5214   fi
5215
5216   
5217   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
5218 echo "configure:5219: checking for __builtin_sqrtl declaration" >&5
5219   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
5220     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
5221   echo $ac_n "(cached) $ac_c" 1>&6
5222 else
5223   
5224       
5225       ac_ext=C
5226 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5227 ac_cpp='$CXXCPP $CPPFLAGS'
5228 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5229 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5230 cross_compiling=$ac_cv_prog_cxx_cross
5231
5232       cat > conftest.$ac_ext <<EOF
5233 #line 5234 "configure"
5234 #include "confdefs.h"
5235 #include <math.h>
5236 int main() {
5237  __builtin_sqrtl(0);
5238 ; return 0; }
5239 EOF
5240 if { (eval echo configure:5241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5241   rm -rf conftest*
5242   glibcpp_cv_func___builtin_sqrtl_use=yes
5243 else
5244   echo "configure: failed program was:" >&5
5245   cat conftest.$ac_ext >&5
5246   rm -rf conftest*
5247   glibcpp_cv_func___builtin_sqrtl_use=no
5248 fi
5249 rm -f conftest*
5250       ac_ext=c
5251 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5252 ac_cpp='$CPP $CPPFLAGS'
5253 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5254 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5255 cross_compiling=$ac_cv_prog_cc_cross
5256
5257     
5258 fi
5259
5260   fi
5261   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
5262   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
5263     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
5264 echo "configure:5265: checking for __builtin_sqrtl linkage" >&5
5265     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
5266       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
5267   echo $ac_n "(cached) $ac_c" 1>&6
5268 else
5269   
5270         cat > conftest.$ac_ext <<EOF
5271 #line 5272 "configure"
5272 #include "confdefs.h"
5273 #include <math.h>
5274 int main() {
5275  __builtin_sqrtl(0);
5276 ; return 0; }
5277 EOF
5278 if { (eval echo configure:5279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5279   rm -rf conftest*
5280   glibcpp_cv_func___builtin_sqrtl_link=yes
5281 else
5282   echo "configure: failed program was:" >&5
5283   cat conftest.$ac_ext >&5
5284   rm -rf conftest*
5285   glibcpp_cv_func___builtin_sqrtl_link=no
5286 fi
5287 rm -f conftest*
5288       
5289 fi
5290
5291     fi
5292     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
5293     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
5294       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5295       cat >> confdefs.h <<EOF
5296 #define ${ac_tr_func} 1
5297 EOF
5298
5299     fi
5300   fi
5301
5302
5303   
5304   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
5305 echo "configure:5306: checking for __builtin_sinf declaration" >&5
5306   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
5307     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
5308   echo $ac_n "(cached) $ac_c" 1>&6
5309 else
5310   
5311       
5312       ac_ext=C
5313 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5314 ac_cpp='$CXXCPP $CPPFLAGS'
5315 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5316 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5317 cross_compiling=$ac_cv_prog_cxx_cross
5318
5319       cat > conftest.$ac_ext <<EOF
5320 #line 5321 "configure"
5321 #include "confdefs.h"
5322 #include <math.h>
5323 int main() {
5324  __builtin_sinf(0);
5325 ; return 0; }
5326 EOF
5327 if { (eval echo configure:5328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5328   rm -rf conftest*
5329   glibcpp_cv_func___builtin_sinf_use=yes
5330 else
5331   echo "configure: failed program was:" >&5
5332   cat conftest.$ac_ext >&5
5333   rm -rf conftest*
5334   glibcpp_cv_func___builtin_sinf_use=no
5335 fi
5336 rm -f conftest*
5337       ac_ext=c
5338 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5339 ac_cpp='$CPP $CPPFLAGS'
5340 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5341 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5342 cross_compiling=$ac_cv_prog_cc_cross
5343
5344     
5345 fi
5346
5347   fi
5348   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
5349   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
5350     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
5351 echo "configure:5352: checking for __builtin_sinf linkage" >&5
5352     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
5353       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
5354   echo $ac_n "(cached) $ac_c" 1>&6
5355 else
5356   
5357         cat > conftest.$ac_ext <<EOF
5358 #line 5359 "configure"
5359 #include "confdefs.h"
5360 #include <math.h>
5361 int main() {
5362  __builtin_sinf(0);
5363 ; return 0; }
5364 EOF
5365 if { (eval echo configure:5366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5366   rm -rf conftest*
5367   glibcpp_cv_func___builtin_sinf_link=yes
5368 else
5369   echo "configure: failed program was:" >&5
5370   cat conftest.$ac_ext >&5
5371   rm -rf conftest*
5372   glibcpp_cv_func___builtin_sinf_link=no
5373 fi
5374 rm -f conftest*
5375       
5376 fi
5377
5378     fi
5379     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
5380     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
5381       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5382       cat >> confdefs.h <<EOF
5383 #define ${ac_tr_func} 1
5384 EOF
5385
5386     fi
5387   fi
5388
5389   
5390   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
5391 echo "configure:5392: checking for __builtin_sin declaration" >&5
5392   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
5393     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
5394   echo $ac_n "(cached) $ac_c" 1>&6
5395 else
5396   
5397       
5398       ac_ext=C
5399 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5400 ac_cpp='$CXXCPP $CPPFLAGS'
5401 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5402 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5403 cross_compiling=$ac_cv_prog_cxx_cross
5404
5405       cat > conftest.$ac_ext <<EOF
5406 #line 5407 "configure"
5407 #include "confdefs.h"
5408 #include <math.h>
5409 int main() {
5410  __builtin_sin(0);
5411 ; return 0; }
5412 EOF
5413 if { (eval echo configure:5414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5414   rm -rf conftest*
5415   glibcpp_cv_func___builtin_sin_use=yes
5416 else
5417   echo "configure: failed program was:" >&5
5418   cat conftest.$ac_ext >&5
5419   rm -rf conftest*
5420   glibcpp_cv_func___builtin_sin_use=no
5421 fi
5422 rm -f conftest*
5423       ac_ext=c
5424 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5425 ac_cpp='$CPP $CPPFLAGS'
5426 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5427 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5428 cross_compiling=$ac_cv_prog_cc_cross
5429
5430     
5431 fi
5432
5433   fi
5434   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
5435   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
5436     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
5437 echo "configure:5438: checking for __builtin_sin linkage" >&5
5438     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
5439       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
5440   echo $ac_n "(cached) $ac_c" 1>&6
5441 else
5442   
5443         cat > conftest.$ac_ext <<EOF
5444 #line 5445 "configure"
5445 #include "confdefs.h"
5446 #include <math.h>
5447 int main() {
5448  __builtin_sin(0);
5449 ; return 0; }
5450 EOF
5451 if { (eval echo configure:5452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5452   rm -rf conftest*
5453   glibcpp_cv_func___builtin_sin_link=yes
5454 else
5455   echo "configure: failed program was:" >&5
5456   cat conftest.$ac_ext >&5
5457   rm -rf conftest*
5458   glibcpp_cv_func___builtin_sin_link=no
5459 fi
5460 rm -f conftest*
5461       
5462 fi
5463
5464     fi
5465     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
5466     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
5467       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5468       cat >> confdefs.h <<EOF
5469 #define ${ac_tr_func} 1
5470 EOF
5471
5472     fi
5473   fi
5474
5475   
5476   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
5477 echo "configure:5478: checking for __builtin_sinl declaration" >&5
5478   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
5479     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
5480   echo $ac_n "(cached) $ac_c" 1>&6
5481 else
5482   
5483       
5484       ac_ext=C
5485 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5486 ac_cpp='$CXXCPP $CPPFLAGS'
5487 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5488 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5489 cross_compiling=$ac_cv_prog_cxx_cross
5490
5491       cat > conftest.$ac_ext <<EOF
5492 #line 5493 "configure"
5493 #include "confdefs.h"
5494 #include <math.h>
5495 int main() {
5496  __builtin_sinl(0);
5497 ; return 0; }
5498 EOF
5499 if { (eval echo configure:5500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5500   rm -rf conftest*
5501   glibcpp_cv_func___builtin_sinl_use=yes
5502 else
5503   echo "configure: failed program was:" >&5
5504   cat conftest.$ac_ext >&5
5505   rm -rf conftest*
5506   glibcpp_cv_func___builtin_sinl_use=no
5507 fi
5508 rm -f conftest*
5509       ac_ext=c
5510 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5511 ac_cpp='$CPP $CPPFLAGS'
5512 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5513 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5514 cross_compiling=$ac_cv_prog_cc_cross
5515
5516     
5517 fi
5518
5519   fi
5520   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
5521   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
5522     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
5523 echo "configure:5524: checking for __builtin_sinl linkage" >&5
5524     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
5525       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
5526   echo $ac_n "(cached) $ac_c" 1>&6
5527 else
5528   
5529         cat > conftest.$ac_ext <<EOF
5530 #line 5531 "configure"
5531 #include "confdefs.h"
5532 #include <math.h>
5533 int main() {
5534  __builtin_sinl(0);
5535 ; return 0; }
5536 EOF
5537 if { (eval echo configure:5538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5538   rm -rf conftest*
5539   glibcpp_cv_func___builtin_sinl_link=yes
5540 else
5541   echo "configure: failed program was:" >&5
5542   cat conftest.$ac_ext >&5
5543   rm -rf conftest*
5544   glibcpp_cv_func___builtin_sinl_link=no
5545 fi
5546 rm -f conftest*
5547       
5548 fi
5549
5550     fi
5551     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
5552     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
5553       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5554       cat >> confdefs.h <<EOF
5555 #define ${ac_tr_func} 1
5556 EOF
5557
5558     fi
5559   fi
5560
5561
5562   
5563   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
5564 echo "configure:5565: checking for __builtin_cosf declaration" >&5
5565   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
5566     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
5567   echo $ac_n "(cached) $ac_c" 1>&6
5568 else
5569   
5570       
5571       ac_ext=C
5572 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5573 ac_cpp='$CXXCPP $CPPFLAGS'
5574 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5575 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5576 cross_compiling=$ac_cv_prog_cxx_cross
5577
5578       cat > conftest.$ac_ext <<EOF
5579 #line 5580 "configure"
5580 #include "confdefs.h"
5581 #include <math.h>
5582 int main() {
5583  __builtin_cosf(0);
5584 ; return 0; }
5585 EOF
5586 if { (eval echo configure:5587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5587   rm -rf conftest*
5588   glibcpp_cv_func___builtin_cosf_use=yes
5589 else
5590   echo "configure: failed program was:" >&5
5591   cat conftest.$ac_ext >&5
5592   rm -rf conftest*
5593   glibcpp_cv_func___builtin_cosf_use=no
5594 fi
5595 rm -f conftest*
5596       ac_ext=c
5597 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5598 ac_cpp='$CPP $CPPFLAGS'
5599 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5600 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5601 cross_compiling=$ac_cv_prog_cc_cross
5602
5603     
5604 fi
5605
5606   fi
5607   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
5608   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
5609     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
5610 echo "configure:5611: checking for __builtin_cosf linkage" >&5
5611     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
5612       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
5613   echo $ac_n "(cached) $ac_c" 1>&6
5614 else
5615   
5616         cat > conftest.$ac_ext <<EOF
5617 #line 5618 "configure"
5618 #include "confdefs.h"
5619 #include <math.h>
5620 int main() {
5621  __builtin_cosf(0);
5622 ; return 0; }
5623 EOF
5624 if { (eval echo configure:5625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5625   rm -rf conftest*
5626   glibcpp_cv_func___builtin_cosf_link=yes
5627 else
5628   echo "configure: failed program was:" >&5
5629   cat conftest.$ac_ext >&5
5630   rm -rf conftest*
5631   glibcpp_cv_func___builtin_cosf_link=no
5632 fi
5633 rm -f conftest*
5634       
5635 fi
5636
5637     fi
5638     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
5639     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
5640       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5641       cat >> confdefs.h <<EOF
5642 #define ${ac_tr_func} 1
5643 EOF
5644
5645     fi
5646   fi
5647
5648   
5649   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
5650 echo "configure:5651: checking for __builtin_cos declaration" >&5
5651   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
5652     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
5653   echo $ac_n "(cached) $ac_c" 1>&6
5654 else
5655   
5656       
5657       ac_ext=C
5658 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5659 ac_cpp='$CXXCPP $CPPFLAGS'
5660 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5661 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5662 cross_compiling=$ac_cv_prog_cxx_cross
5663
5664       cat > conftest.$ac_ext <<EOF
5665 #line 5666 "configure"
5666 #include "confdefs.h"
5667 #include <math.h>
5668 int main() {
5669  __builtin_cos(0);
5670 ; return 0; }
5671 EOF
5672 if { (eval echo configure:5673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5673   rm -rf conftest*
5674   glibcpp_cv_func___builtin_cos_use=yes
5675 else
5676   echo "configure: failed program was:" >&5
5677   cat conftest.$ac_ext >&5
5678   rm -rf conftest*
5679   glibcpp_cv_func___builtin_cos_use=no
5680 fi
5681 rm -f conftest*
5682       ac_ext=c
5683 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5684 ac_cpp='$CPP $CPPFLAGS'
5685 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5686 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5687 cross_compiling=$ac_cv_prog_cc_cross
5688
5689     
5690 fi
5691
5692   fi
5693   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
5694   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
5695     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
5696 echo "configure:5697: checking for __builtin_cos linkage" >&5
5697     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
5698       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
5699   echo $ac_n "(cached) $ac_c" 1>&6
5700 else
5701   
5702         cat > conftest.$ac_ext <<EOF
5703 #line 5704 "configure"
5704 #include "confdefs.h"
5705 #include <math.h>
5706 int main() {
5707  __builtin_cos(0);
5708 ; return 0; }
5709 EOF
5710 if { (eval echo configure:5711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5711   rm -rf conftest*
5712   glibcpp_cv_func___builtin_cos_link=yes
5713 else
5714   echo "configure: failed program was:" >&5
5715   cat conftest.$ac_ext >&5
5716   rm -rf conftest*
5717   glibcpp_cv_func___builtin_cos_link=no
5718 fi
5719 rm -f conftest*
5720       
5721 fi
5722
5723     fi
5724     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
5725     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
5726       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5727       cat >> confdefs.h <<EOF
5728 #define ${ac_tr_func} 1
5729 EOF
5730
5731     fi
5732   fi
5733
5734   
5735   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
5736 echo "configure:5737: checking for __builtin_cosl declaration" >&5
5737   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
5738     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
5739   echo $ac_n "(cached) $ac_c" 1>&6
5740 else
5741   
5742       
5743       ac_ext=C
5744 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5745 ac_cpp='$CXXCPP $CPPFLAGS'
5746 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5747 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5748 cross_compiling=$ac_cv_prog_cxx_cross
5749
5750       cat > conftest.$ac_ext <<EOF
5751 #line 5752 "configure"
5752 #include "confdefs.h"
5753 #include <math.h>
5754 int main() {
5755  __builtin_cosl(0);
5756 ; return 0; }
5757 EOF
5758 if { (eval echo configure:5759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5759   rm -rf conftest*
5760   glibcpp_cv_func___builtin_cosl_use=yes
5761 else
5762   echo "configure: failed program was:" >&5
5763   cat conftest.$ac_ext >&5
5764   rm -rf conftest*
5765   glibcpp_cv_func___builtin_cosl_use=no
5766 fi
5767 rm -f conftest*
5768       ac_ext=c
5769 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5770 ac_cpp='$CPP $CPPFLAGS'
5771 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5772 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5773 cross_compiling=$ac_cv_prog_cc_cross
5774
5775     
5776 fi
5777
5778   fi
5779   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
5780   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
5781     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
5782 echo "configure:5783: checking for __builtin_cosl linkage" >&5
5783     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
5784       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
5785   echo $ac_n "(cached) $ac_c" 1>&6
5786 else
5787   
5788         cat > conftest.$ac_ext <<EOF
5789 #line 5790 "configure"
5790 #include "confdefs.h"
5791 #include <math.h>
5792 int main() {
5793  __builtin_cosl(0);
5794 ; return 0; }
5795 EOF
5796 if { (eval echo configure:5797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5797   rm -rf conftest*
5798   glibcpp_cv_func___builtin_cosl_link=yes
5799 else
5800   echo "configure: failed program was:" >&5
5801   cat conftest.$ac_ext >&5
5802   rm -rf conftest*
5803   glibcpp_cv_func___builtin_cosl_link=no
5804 fi
5805 rm -f conftest*
5806       
5807 fi
5808
5809     fi
5810     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
5811     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
5812       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5813       cat >> confdefs.h <<EOF
5814 #define ${ac_tr_func} 1
5815 EOF
5816
5817     fi
5818   fi
5819
5820
5821               dummyvar=no
5822   if test x$dummyvar = x"yes"; then
5823     cat >> confdefs.h <<\EOF
5824 #define HAVE___BUILTIN_ABS 1
5825 EOF
5826
5827     cat >> confdefs.h <<\EOF
5828 #define HAVE___BUILTIN_LABS 1
5829 EOF
5830
5831     cat >> confdefs.h <<\EOF
5832 #define HAVE___BUILTIN_COS 1
5833 EOF
5834
5835     cat >> confdefs.h <<\EOF
5836 #define HAVE___BUILTIN_COSF 1
5837 EOF
5838
5839     cat >> confdefs.h <<\EOF
5840 #define HAVE___BUILTIN_COSL 1
5841 EOF
5842
5843     cat >> confdefs.h <<\EOF
5844 #define HAVE___BUILTIN_FABS 1
5845 EOF
5846
5847     cat >> confdefs.h <<\EOF
5848 #define HAVE___BUILTIN_FABSF 1
5849 EOF
5850
5851     cat >> confdefs.h <<\EOF
5852 #define HAVE___BUILTIN_FABSL 1
5853 EOF
5854
5855     cat >> confdefs.h <<\EOF
5856 #define HAVE___BUILTIN_SIN 1
5857 EOF
5858
5859     cat >> confdefs.h <<\EOF
5860 #define HAVE___BUILTIN_SINF 1
5861 EOF
5862
5863     cat >> confdefs.h <<\EOF
5864 #define HAVE___BUILTIN_SINL 1
5865 EOF
5866
5867     cat >> confdefs.h <<\EOF
5868 #define HAVE___BUILTIN_FSQRT 1
5869 EOF
5870
5871     cat >> confdefs.h <<\EOF
5872 #define HAVE___BUILTIN_SQRTF 1
5873 EOF
5874
5875     cat >> confdefs.h <<\EOF
5876 #define HAVE___BUILTIN_SQRTL 1
5877 EOF
5878
5879   fi
5880
5881   
5882   ac_test_CXXFLAGS="${CXXFLAGS+set}"
5883   ac_save_CXXFLAGS="$CXXFLAGS"
5884   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
5885
5886     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
5887 echo "configure:5888: checking for sin in -lm" >&5
5888 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
5889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5890   echo $ac_n "(cached) $ac_c" 1>&6
5891 else
5892   ac_save_LIBS="$LIBS"
5893 LIBS="-lm  $LIBS"
5894 cat > conftest.$ac_ext <<EOF
5895 #line 5896 "configure"
5896 #include "confdefs.h"
5897 /* Override any gcc2 internal prototype to avoid an error.  */
5898 /* We use char because int might match the return type of a gcc2
5899     builtin and then its argument prototype would still apply.  */
5900 char sin();
5901
5902 int main() {
5903 sin()
5904 ; return 0; }
5905 EOF
5906 if { (eval echo configure:5907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5907   rm -rf conftest*
5908   eval "ac_cv_lib_$ac_lib_var=yes"
5909 else
5910   echo "configure: failed program was:" >&5
5911   cat conftest.$ac_ext >&5
5912   rm -rf conftest*
5913   eval "ac_cv_lib_$ac_lib_var=no"
5914 fi
5915 rm -f conftest*
5916 LIBS="$ac_save_LIBS"
5917
5918 fi
5919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5920   echo "$ac_t""yes" 1>&6
5921   libm="-lm"
5922 else
5923   echo "$ac_t""no" 1>&6
5924 fi
5925
5926   ac_save_LIBS="$LIBS"
5927   LIBS="$LIBS $libm"
5928
5929     
5930   
5931   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
5932 echo "configure:5933: checking for isinf declaration" >&5
5933   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
5934     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
5935   echo $ac_n "(cached) $ac_c" 1>&6
5936 else
5937   
5938       
5939       ac_ext=C
5940 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5941 ac_cpp='$CXXCPP $CPPFLAGS'
5942 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5943 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5944 cross_compiling=$ac_cv_prog_cxx_cross
5945
5946       cat > conftest.$ac_ext <<EOF
5947 #line 5948 "configure"
5948 #include "confdefs.h"
5949 #include <math.h>
5950                       #ifdef HAVE_IEEEFP_H
5951                       #include <ieeefp.h>
5952                       #endif
5953                      
5954 int main() {
5955  isinf(0);
5956 ; return 0; }
5957 EOF
5958 if { (eval echo configure:5959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5959   rm -rf conftest*
5960   glibcpp_cv_func_isinf_use=yes
5961 else
5962   echo "configure: failed program was:" >&5
5963   cat conftest.$ac_ext >&5
5964   rm -rf conftest*
5965   glibcpp_cv_func_isinf_use=no
5966 fi
5967 rm -f conftest*
5968       ac_ext=c
5969 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5970 ac_cpp='$CPP $CPPFLAGS'
5971 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5972 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5973 cross_compiling=$ac_cv_prog_cc_cross
5974
5975     
5976 fi
5977
5978   fi
5979   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
5980
5981   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
5982     for ac_func in isinf
5983 do
5984 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5985 echo "configure:5986: checking for $ac_func" >&5
5986 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5987   echo $ac_n "(cached) $ac_c" 1>&6
5988 else
5989   cat > conftest.$ac_ext <<EOF
5990 #line 5991 "configure"
5991 #include "confdefs.h"
5992 /* System header to define __stub macros and hopefully few prototypes,
5993     which can conflict with char $ac_func(); below.  */
5994 #include <assert.h>
5995 /* Override any gcc2 internal prototype to avoid an error.  */
5996 /* We use char because int might match the return type of a gcc2
5997     builtin and then its argument prototype would still apply.  */
5998 char $ac_func();
5999
6000 int main() {
6001
6002 /* The GNU C library defines this for functions which it implements
6003     to always fail with ENOSYS.  Some functions are actually named
6004     something starting with __ and the normal name is an alias.  */
6005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6006 choke me
6007 #else
6008 $ac_func();
6009 #endif
6010
6011 ; return 0; }
6012 EOF
6013 if { (eval echo configure:6014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6014   rm -rf conftest*
6015   eval "ac_cv_func_$ac_func=yes"
6016 else
6017   echo "configure: failed program was:" >&5
6018   cat conftest.$ac_ext >&5
6019   rm -rf conftest*
6020   eval "ac_cv_func_$ac_func=no"
6021 fi
6022 rm -f conftest*
6023 fi
6024
6025 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6026   echo "$ac_t""yes" 1>&6
6027     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6028   cat >> confdefs.h <<EOF
6029 #define $ac_tr_func 1
6030 EOF
6031  
6032 else
6033   echo "$ac_t""no" 1>&6
6034 fi
6035 done
6036     
6037   else
6038     
6039   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
6040 echo "configure:6041: checking for _isinf declaration" >&5
6041   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
6042     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
6043   echo $ac_n "(cached) $ac_c" 1>&6
6044 else
6045   
6046       
6047       ac_ext=C
6048 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6049 ac_cpp='$CXXCPP $CPPFLAGS'
6050 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6051 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6052 cross_compiling=$ac_cv_prog_cxx_cross
6053
6054       cat > conftest.$ac_ext <<EOF
6055 #line 6056 "configure"
6056 #include "confdefs.h"
6057 #include <math.h>
6058                       #ifdef HAVE_IEEEFP_H
6059                       #include <ieeefp.h>
6060                       #endif
6061                      
6062 int main() {
6063  _isinf(0);
6064 ; return 0; }
6065 EOF
6066 if { (eval echo configure:6067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6067   rm -rf conftest*
6068   glibcpp_cv_func__isinf_use=yes
6069 else
6070   echo "configure: failed program was:" >&5
6071   cat conftest.$ac_ext >&5
6072   rm -rf conftest*
6073   glibcpp_cv_func__isinf_use=no
6074 fi
6075 rm -f conftest*
6076       ac_ext=c
6077 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6078 ac_cpp='$CPP $CPPFLAGS'
6079 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6080 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6081 cross_compiling=$ac_cv_prog_cc_cross
6082
6083     
6084 fi
6085
6086   fi
6087   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
6088
6089     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
6090       for ac_func in _isinf
6091 do
6092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6093 echo "configure:6094: checking for $ac_func" >&5
6094 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6095   echo $ac_n "(cached) $ac_c" 1>&6
6096 else
6097   cat > conftest.$ac_ext <<EOF
6098 #line 6099 "configure"
6099 #include "confdefs.h"
6100 /* System header to define __stub macros and hopefully few prototypes,
6101     which can conflict with char $ac_func(); below.  */
6102 #include <assert.h>
6103 /* Override any gcc2 internal prototype to avoid an error.  */
6104 /* We use char because int might match the return type of a gcc2
6105     builtin and then its argument prototype would still apply.  */
6106 char $ac_func();
6107
6108 int main() {
6109
6110 /* The GNU C library defines this for functions which it implements
6111     to always fail with ENOSYS.  Some functions are actually named
6112     something starting with __ and the normal name is an alias.  */
6113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6114 choke me
6115 #else
6116 $ac_func();
6117 #endif
6118
6119 ; return 0; }
6120 EOF
6121 if { (eval echo configure:6122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6122   rm -rf conftest*
6123   eval "ac_cv_func_$ac_func=yes"
6124 else
6125   echo "configure: failed program was:" >&5
6126   cat conftest.$ac_ext >&5
6127   rm -rf conftest*
6128   eval "ac_cv_func_$ac_func=no"
6129 fi
6130 rm -f conftest*
6131 fi
6132
6133 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6134   echo "$ac_t""yes" 1>&6
6135     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6136   cat >> confdefs.h <<EOF
6137 #define $ac_tr_func 1
6138 EOF
6139  
6140 else
6141   echo "$ac_t""no" 1>&6
6142 fi
6143 done
6144     
6145     fi  
6146   fi
6147
6148   
6149   
6150   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
6151 echo "configure:6152: checking for isnan declaration" >&5
6152   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
6153     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
6154   echo $ac_n "(cached) $ac_c" 1>&6
6155 else
6156   
6157       
6158       ac_ext=C
6159 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6160 ac_cpp='$CXXCPP $CPPFLAGS'
6161 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6162 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6163 cross_compiling=$ac_cv_prog_cxx_cross
6164
6165       cat > conftest.$ac_ext <<EOF
6166 #line 6167 "configure"
6167 #include "confdefs.h"
6168 #include <math.h>
6169                       #ifdef HAVE_IEEEFP_H
6170                       #include <ieeefp.h>
6171                       #endif
6172                      
6173 int main() {
6174  isnan(0);
6175 ; return 0; }
6176 EOF
6177 if { (eval echo configure:6178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6178   rm -rf conftest*
6179   glibcpp_cv_func_isnan_use=yes
6180 else
6181   echo "configure: failed program was:" >&5
6182   cat conftest.$ac_ext >&5
6183   rm -rf conftest*
6184   glibcpp_cv_func_isnan_use=no
6185 fi
6186 rm -f conftest*
6187       ac_ext=c
6188 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6189 ac_cpp='$CPP $CPPFLAGS'
6190 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6191 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6192 cross_compiling=$ac_cv_prog_cc_cross
6193
6194     
6195 fi
6196
6197   fi
6198   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
6199
6200   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
6201     for ac_func in isnan
6202 do
6203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6204 echo "configure:6205: checking for $ac_func" >&5
6205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6206   echo $ac_n "(cached) $ac_c" 1>&6
6207 else
6208   cat > conftest.$ac_ext <<EOF
6209 #line 6210 "configure"
6210 #include "confdefs.h"
6211 /* System header to define __stub macros and hopefully few prototypes,
6212     which can conflict with char $ac_func(); below.  */
6213 #include <assert.h>
6214 /* Override any gcc2 internal prototype to avoid an error.  */
6215 /* We use char because int might match the return type of a gcc2
6216     builtin and then its argument prototype would still apply.  */
6217 char $ac_func();
6218
6219 int main() {
6220
6221 /* The GNU C library defines this for functions which it implements
6222     to always fail with ENOSYS.  Some functions are actually named
6223     something starting with __ and the normal name is an alias.  */
6224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6225 choke me
6226 #else
6227 $ac_func();
6228 #endif
6229
6230 ; return 0; }
6231 EOF
6232 if { (eval echo configure:6233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6233   rm -rf conftest*
6234   eval "ac_cv_func_$ac_func=yes"
6235 else
6236   echo "configure: failed program was:" >&5
6237   cat conftest.$ac_ext >&5
6238   rm -rf conftest*
6239   eval "ac_cv_func_$ac_func=no"
6240 fi
6241 rm -f conftest*
6242 fi
6243
6244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6245   echo "$ac_t""yes" 1>&6
6246     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6247   cat >> confdefs.h <<EOF
6248 #define $ac_tr_func 1
6249 EOF
6250  
6251 else
6252   echo "$ac_t""no" 1>&6
6253 fi
6254 done
6255     
6256   else
6257     
6258   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
6259 echo "configure:6260: checking for _isnan declaration" >&5
6260   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
6261     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
6262   echo $ac_n "(cached) $ac_c" 1>&6
6263 else
6264   
6265       
6266       ac_ext=C
6267 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6268 ac_cpp='$CXXCPP $CPPFLAGS'
6269 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6270 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6271 cross_compiling=$ac_cv_prog_cxx_cross
6272
6273       cat > conftest.$ac_ext <<EOF
6274 #line 6275 "configure"
6275 #include "confdefs.h"
6276 #include <math.h>
6277                       #ifdef HAVE_IEEEFP_H
6278                       #include <ieeefp.h>
6279                       #endif
6280                      
6281 int main() {
6282  _isnan(0);
6283 ; return 0; }
6284 EOF
6285 if { (eval echo configure:6286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6286   rm -rf conftest*
6287   glibcpp_cv_func__isnan_use=yes
6288 else
6289   echo "configure: failed program was:" >&5
6290   cat conftest.$ac_ext >&5
6291   rm -rf conftest*
6292   glibcpp_cv_func__isnan_use=no
6293 fi
6294 rm -f conftest*
6295       ac_ext=c
6296 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6297 ac_cpp='$CPP $CPPFLAGS'
6298 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6299 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6300 cross_compiling=$ac_cv_prog_cc_cross
6301
6302     
6303 fi
6304
6305   fi
6306   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
6307
6308     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
6309       for ac_func in _isnan
6310 do
6311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6312 echo "configure:6313: checking for $ac_func" >&5
6313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6314   echo $ac_n "(cached) $ac_c" 1>&6
6315 else
6316   cat > conftest.$ac_ext <<EOF
6317 #line 6318 "configure"
6318 #include "confdefs.h"
6319 /* System header to define __stub macros and hopefully few prototypes,
6320     which can conflict with char $ac_func(); below.  */
6321 #include <assert.h>
6322 /* Override any gcc2 internal prototype to avoid an error.  */
6323 /* We use char because int might match the return type of a gcc2
6324     builtin and then its argument prototype would still apply.  */
6325 char $ac_func();
6326
6327 int main() {
6328
6329 /* The GNU C library defines this for functions which it implements
6330     to always fail with ENOSYS.  Some functions are actually named
6331     something starting with __ and the normal name is an alias.  */
6332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6333 choke me
6334 #else
6335 $ac_func();
6336 #endif
6337
6338 ; return 0; }
6339 EOF
6340 if { (eval echo configure:6341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6341   rm -rf conftest*
6342   eval "ac_cv_func_$ac_func=yes"
6343 else
6344   echo "configure: failed program was:" >&5
6345   cat conftest.$ac_ext >&5
6346   rm -rf conftest*
6347   eval "ac_cv_func_$ac_func=no"
6348 fi
6349 rm -f conftest*
6350 fi
6351
6352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6353   echo "$ac_t""yes" 1>&6
6354     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6355   cat >> confdefs.h <<EOF
6356 #define $ac_tr_func 1
6357 EOF
6358  
6359 else
6360   echo "$ac_t""no" 1>&6
6361 fi
6362 done
6363     
6364     fi  
6365   fi
6366
6367   
6368   
6369   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
6370 echo "configure:6371: checking for finite declaration" >&5
6371   if test x${glibcpp_cv_func_finite_use+set} != xset; then
6372     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
6373   echo $ac_n "(cached) $ac_c" 1>&6
6374 else
6375   
6376       
6377       ac_ext=C
6378 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6379 ac_cpp='$CXXCPP $CPPFLAGS'
6380 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6381 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6382 cross_compiling=$ac_cv_prog_cxx_cross
6383
6384       cat > conftest.$ac_ext <<EOF
6385 #line 6386 "configure"
6386 #include "confdefs.h"
6387 #include <math.h>
6388                       #ifdef HAVE_IEEEFP_H
6389                       #include <ieeefp.h>
6390                       #endif
6391                      
6392 int main() {
6393  finite(0);
6394 ; return 0; }
6395 EOF
6396 if { (eval echo configure:6397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6397   rm -rf conftest*
6398   glibcpp_cv_func_finite_use=yes
6399 else
6400   echo "configure: failed program was:" >&5
6401   cat conftest.$ac_ext >&5
6402   rm -rf conftest*
6403   glibcpp_cv_func_finite_use=no
6404 fi
6405 rm -f conftest*
6406       ac_ext=c
6407 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6408 ac_cpp='$CPP $CPPFLAGS'
6409 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6410 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6411 cross_compiling=$ac_cv_prog_cc_cross
6412
6413     
6414 fi
6415
6416   fi
6417   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
6418
6419   if test x$glibcpp_cv_func_finite_use = x"yes"; then
6420     for ac_func in finite
6421 do
6422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6423 echo "configure:6424: checking for $ac_func" >&5
6424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6425   echo $ac_n "(cached) $ac_c" 1>&6
6426 else
6427   cat > conftest.$ac_ext <<EOF
6428 #line 6429 "configure"
6429 #include "confdefs.h"
6430 /* System header to define __stub macros and hopefully few prototypes,
6431     which can conflict with char $ac_func(); below.  */
6432 #include <assert.h>
6433 /* Override any gcc2 internal prototype to avoid an error.  */
6434 /* We use char because int might match the return type of a gcc2
6435     builtin and then its argument prototype would still apply.  */
6436 char $ac_func();
6437
6438 int main() {
6439
6440 /* The GNU C library defines this for functions which it implements
6441     to always fail with ENOSYS.  Some functions are actually named
6442     something starting with __ and the normal name is an alias.  */
6443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6444 choke me
6445 #else
6446 $ac_func();
6447 #endif
6448
6449 ; return 0; }
6450 EOF
6451 if { (eval echo configure:6452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6452   rm -rf conftest*
6453   eval "ac_cv_func_$ac_func=yes"
6454 else
6455   echo "configure: failed program was:" >&5
6456   cat conftest.$ac_ext >&5
6457   rm -rf conftest*
6458   eval "ac_cv_func_$ac_func=no"
6459 fi
6460 rm -f conftest*
6461 fi
6462
6463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6464   echo "$ac_t""yes" 1>&6
6465     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6466   cat >> confdefs.h <<EOF
6467 #define $ac_tr_func 1
6468 EOF
6469  
6470 else
6471   echo "$ac_t""no" 1>&6
6472 fi
6473 done
6474     
6475   else
6476     
6477   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
6478 echo "configure:6479: checking for _finite declaration" >&5
6479   if test x${glibcpp_cv_func__finite_use+set} != xset; then
6480     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
6481   echo $ac_n "(cached) $ac_c" 1>&6
6482 else
6483   
6484       
6485       ac_ext=C
6486 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6487 ac_cpp='$CXXCPP $CPPFLAGS'
6488 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6489 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6490 cross_compiling=$ac_cv_prog_cxx_cross
6491
6492       cat > conftest.$ac_ext <<EOF
6493 #line 6494 "configure"
6494 #include "confdefs.h"
6495 #include <math.h>
6496                       #ifdef HAVE_IEEEFP_H
6497                       #include <ieeefp.h>
6498                       #endif
6499                      
6500 int main() {
6501  _finite(0);
6502 ; return 0; }
6503 EOF
6504 if { (eval echo configure:6505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6505   rm -rf conftest*
6506   glibcpp_cv_func__finite_use=yes
6507 else
6508   echo "configure: failed program was:" >&5
6509   cat conftest.$ac_ext >&5
6510   rm -rf conftest*
6511   glibcpp_cv_func__finite_use=no
6512 fi
6513 rm -f conftest*
6514       ac_ext=c
6515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6516 ac_cpp='$CPP $CPPFLAGS'
6517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6518 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6519 cross_compiling=$ac_cv_prog_cc_cross
6520
6521     
6522 fi
6523
6524   fi
6525   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
6526
6527     if test x$glibcpp_cv_func__finite_use = x"yes"; then
6528       for ac_func in _finite
6529 do
6530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6531 echo "configure:6532: checking for $ac_func" >&5
6532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6533   echo $ac_n "(cached) $ac_c" 1>&6
6534 else
6535   cat > conftest.$ac_ext <<EOF
6536 #line 6537 "configure"
6537 #include "confdefs.h"
6538 /* System header to define __stub macros and hopefully few prototypes,
6539     which can conflict with char $ac_func(); below.  */
6540 #include <assert.h>
6541 /* Override any gcc2 internal prototype to avoid an error.  */
6542 /* We use char because int might match the return type of a gcc2
6543     builtin and then its argument prototype would still apply.  */
6544 char $ac_func();
6545
6546 int main() {
6547
6548 /* The GNU C library defines this for functions which it implements
6549     to always fail with ENOSYS.  Some functions are actually named
6550     something starting with __ and the normal name is an alias.  */
6551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6552 choke me
6553 #else
6554 $ac_func();
6555 #endif
6556
6557 ; return 0; }
6558 EOF
6559 if { (eval echo configure:6560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6560   rm -rf conftest*
6561   eval "ac_cv_func_$ac_func=yes"
6562 else
6563   echo "configure: failed program was:" >&5
6564   cat conftest.$ac_ext >&5
6565   rm -rf conftest*
6566   eval "ac_cv_func_$ac_func=no"
6567 fi
6568 rm -f conftest*
6569 fi
6570
6571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6572   echo "$ac_t""yes" 1>&6
6573     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6574   cat >> confdefs.h <<EOF
6575 #define $ac_tr_func 1
6576 EOF
6577  
6578 else
6579   echo "$ac_t""no" 1>&6
6580 fi
6581 done
6582     
6583     fi  
6584   fi
6585
6586   
6587   
6588   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
6589 echo "configure:6590: checking for copysign declaration" >&5
6590   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
6591     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
6592   echo $ac_n "(cached) $ac_c" 1>&6
6593 else
6594   
6595       
6596       ac_ext=C
6597 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6598 ac_cpp='$CXXCPP $CPPFLAGS'
6599 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6600 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6601 cross_compiling=$ac_cv_prog_cxx_cross
6602
6603       cat > conftest.$ac_ext <<EOF
6604 #line 6605 "configure"
6605 #include "confdefs.h"
6606 #include <math.h>
6607 int main() {
6608  copysign(0, 0);
6609 ; return 0; }
6610 EOF
6611 if { (eval echo configure:6612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6612   rm -rf conftest*
6613   glibcpp_cv_func_copysign_use=yes
6614 else
6615   echo "configure: failed program was:" >&5
6616   cat conftest.$ac_ext >&5
6617   rm -rf conftest*
6618   glibcpp_cv_func_copysign_use=no
6619 fi
6620 rm -f conftest*
6621       ac_ext=c
6622 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6623 ac_cpp='$CPP $CPPFLAGS'
6624 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6625 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6626 cross_compiling=$ac_cv_prog_cc_cross
6627
6628     
6629 fi
6630
6631   fi
6632   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
6633
6634   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
6635     for ac_func in copysign
6636 do
6637 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6638 echo "configure:6639: checking for $ac_func" >&5
6639 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6640   echo $ac_n "(cached) $ac_c" 1>&6
6641 else
6642   cat > conftest.$ac_ext <<EOF
6643 #line 6644 "configure"
6644 #include "confdefs.h"
6645 /* System header to define __stub macros and hopefully few prototypes,
6646     which can conflict with char $ac_func(); below.  */
6647 #include <assert.h>
6648 /* Override any gcc2 internal prototype to avoid an error.  */
6649 /* We use char because int might match the return type of a gcc2
6650     builtin and then its argument prototype would still apply.  */
6651 char $ac_func();
6652
6653 int main() {
6654
6655 /* The GNU C library defines this for functions which it implements
6656     to always fail with ENOSYS.  Some functions are actually named
6657     something starting with __ and the normal name is an alias.  */
6658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6659 choke me
6660 #else
6661 $ac_func();
6662 #endif
6663
6664 ; return 0; }
6665 EOF
6666 if { (eval echo configure:6667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6667   rm -rf conftest*
6668   eval "ac_cv_func_$ac_func=yes"
6669 else
6670   echo "configure: failed program was:" >&5
6671   cat conftest.$ac_ext >&5
6672   rm -rf conftest*
6673   eval "ac_cv_func_$ac_func=no"
6674 fi
6675 rm -f conftest*
6676 fi
6677
6678 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6679   echo "$ac_t""yes" 1>&6
6680     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6681   cat >> confdefs.h <<EOF
6682 #define $ac_tr_func 1
6683 EOF
6684  
6685 else
6686   echo "$ac_t""no" 1>&6
6687 fi
6688 done
6689     
6690   else
6691     
6692   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
6693 echo "configure:6694: checking for _copysign declaration" >&5
6694   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
6695     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
6696   echo $ac_n "(cached) $ac_c" 1>&6
6697 else
6698   
6699       
6700       ac_ext=C
6701 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6702 ac_cpp='$CXXCPP $CPPFLAGS'
6703 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6704 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6705 cross_compiling=$ac_cv_prog_cxx_cross
6706
6707       cat > conftest.$ac_ext <<EOF
6708 #line 6709 "configure"
6709 #include "confdefs.h"
6710 #include <math.h>
6711 int main() {
6712  _copysign(0, 0);
6713 ; return 0; }
6714 EOF
6715 if { (eval echo configure:6716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6716   rm -rf conftest*
6717   glibcpp_cv_func__copysign_use=yes
6718 else
6719   echo "configure: failed program was:" >&5
6720   cat conftest.$ac_ext >&5
6721   rm -rf conftest*
6722   glibcpp_cv_func__copysign_use=no
6723 fi
6724 rm -f conftest*
6725       ac_ext=c
6726 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6727 ac_cpp='$CPP $CPPFLAGS'
6728 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6729 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6730 cross_compiling=$ac_cv_prog_cc_cross
6731
6732     
6733 fi
6734
6735   fi
6736   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
6737
6738     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
6739       for ac_func in _copysign
6740 do
6741 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6742 echo "configure:6743: checking for $ac_func" >&5
6743 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6744   echo $ac_n "(cached) $ac_c" 1>&6
6745 else
6746   cat > conftest.$ac_ext <<EOF
6747 #line 6748 "configure"
6748 #include "confdefs.h"
6749 /* System header to define __stub macros and hopefully few prototypes,
6750     which can conflict with char $ac_func(); below.  */
6751 #include <assert.h>
6752 /* Override any gcc2 internal prototype to avoid an error.  */
6753 /* We use char because int might match the return type of a gcc2
6754     builtin and then its argument prototype would still apply.  */
6755 char $ac_func();
6756
6757 int main() {
6758
6759 /* The GNU C library defines this for functions which it implements
6760     to always fail with ENOSYS.  Some functions are actually named
6761     something starting with __ and the normal name is an alias.  */
6762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6763 choke me
6764 #else
6765 $ac_func();
6766 #endif
6767
6768 ; return 0; }
6769 EOF
6770 if { (eval echo configure:6771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6771   rm -rf conftest*
6772   eval "ac_cv_func_$ac_func=yes"
6773 else
6774   echo "configure: failed program was:" >&5
6775   cat conftest.$ac_ext >&5
6776   rm -rf conftest*
6777   eval "ac_cv_func_$ac_func=no"
6778 fi
6779 rm -f conftest*
6780 fi
6781
6782 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6783   echo "$ac_t""yes" 1>&6
6784     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6785   cat >> confdefs.h <<EOF
6786 #define $ac_tr_func 1
6787 EOF
6788  
6789 else
6790   echo "$ac_t""no" 1>&6
6791 fi
6792 done
6793     
6794     fi  
6795   fi
6796
6797   
6798   
6799   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
6800 echo "configure:6801: checking for sincos declaration" >&5
6801   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
6802     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
6803   echo $ac_n "(cached) $ac_c" 1>&6
6804 else
6805   
6806       
6807       ac_ext=C
6808 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6809 ac_cpp='$CXXCPP $CPPFLAGS'
6810 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6811 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6812 cross_compiling=$ac_cv_prog_cxx_cross
6813
6814       cat > conftest.$ac_ext <<EOF
6815 #line 6816 "configure"
6816 #include "confdefs.h"
6817 #include <math.h>
6818 int main() {
6819  sincos(0, 0, 0);
6820 ; return 0; }
6821 EOF
6822 if { (eval echo configure:6823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6823   rm -rf conftest*
6824   glibcpp_cv_func_sincos_use=yes
6825 else
6826   echo "configure: failed program was:" >&5
6827   cat conftest.$ac_ext >&5
6828   rm -rf conftest*
6829   glibcpp_cv_func_sincos_use=no
6830 fi
6831 rm -f conftest*
6832       ac_ext=c
6833 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6834 ac_cpp='$CPP $CPPFLAGS'
6835 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6836 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6837 cross_compiling=$ac_cv_prog_cc_cross
6838
6839     
6840 fi
6841
6842   fi
6843   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
6844
6845   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
6846     for ac_func in sincos
6847 do
6848 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6849 echo "configure:6850: checking for $ac_func" >&5
6850 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6851   echo $ac_n "(cached) $ac_c" 1>&6
6852 else
6853   cat > conftest.$ac_ext <<EOF
6854 #line 6855 "configure"
6855 #include "confdefs.h"
6856 /* System header to define __stub macros and hopefully few prototypes,
6857     which can conflict with char $ac_func(); below.  */
6858 #include <assert.h>
6859 /* Override any gcc2 internal prototype to avoid an error.  */
6860 /* We use char because int might match the return type of a gcc2
6861     builtin and then its argument prototype would still apply.  */
6862 char $ac_func();
6863
6864 int main() {
6865
6866 /* The GNU C library defines this for functions which it implements
6867     to always fail with ENOSYS.  Some functions are actually named
6868     something starting with __ and the normal name is an alias.  */
6869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6870 choke me
6871 #else
6872 $ac_func();
6873 #endif
6874
6875 ; return 0; }
6876 EOF
6877 if { (eval echo configure:6878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6878   rm -rf conftest*
6879   eval "ac_cv_func_$ac_func=yes"
6880 else
6881   echo "configure: failed program was:" >&5
6882   cat conftest.$ac_ext >&5
6883   rm -rf conftest*
6884   eval "ac_cv_func_$ac_func=no"
6885 fi
6886 rm -f conftest*
6887 fi
6888
6889 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6890   echo "$ac_t""yes" 1>&6
6891     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6892   cat >> confdefs.h <<EOF
6893 #define $ac_tr_func 1
6894 EOF
6895  
6896 else
6897   echo "$ac_t""no" 1>&6
6898 fi
6899 done
6900     
6901   else
6902     
6903   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
6904 echo "configure:6905: checking for _sincos declaration" >&5
6905   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
6906     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
6907   echo $ac_n "(cached) $ac_c" 1>&6
6908 else
6909   
6910       
6911       ac_ext=C
6912 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6913 ac_cpp='$CXXCPP $CPPFLAGS'
6914 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6915 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6916 cross_compiling=$ac_cv_prog_cxx_cross
6917
6918       cat > conftest.$ac_ext <<EOF
6919 #line 6920 "configure"
6920 #include "confdefs.h"
6921 #include <math.h>
6922 int main() {
6923  _sincos(0, 0, 0);
6924 ; return 0; }
6925 EOF
6926 if { (eval echo configure:6927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6927   rm -rf conftest*
6928   glibcpp_cv_func__sincos_use=yes
6929 else
6930   echo "configure: failed program was:" >&5
6931   cat conftest.$ac_ext >&5
6932   rm -rf conftest*
6933   glibcpp_cv_func__sincos_use=no
6934 fi
6935 rm -f conftest*
6936       ac_ext=c
6937 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6938 ac_cpp='$CPP $CPPFLAGS'
6939 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6940 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6941 cross_compiling=$ac_cv_prog_cc_cross
6942
6943     
6944 fi
6945
6946   fi
6947   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
6948
6949     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
6950       for ac_func in _sincos
6951 do
6952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6953 echo "configure:6954: checking for $ac_func" >&5
6954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6955   echo $ac_n "(cached) $ac_c" 1>&6
6956 else
6957   cat > conftest.$ac_ext <<EOF
6958 #line 6959 "configure"
6959 #include "confdefs.h"
6960 /* System header to define __stub macros and hopefully few prototypes,
6961     which can conflict with char $ac_func(); below.  */
6962 #include <assert.h>
6963 /* Override any gcc2 internal prototype to avoid an error.  */
6964 /* We use char because int might match the return type of a gcc2
6965     builtin and then its argument prototype would still apply.  */
6966 char $ac_func();
6967
6968 int main() {
6969
6970 /* The GNU C library defines this for functions which it implements
6971     to always fail with ENOSYS.  Some functions are actually named
6972     something starting with __ and the normal name is an alias.  */
6973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6974 choke me
6975 #else
6976 $ac_func();
6977 #endif
6978
6979 ; return 0; }
6980 EOF
6981 if { (eval echo configure:6982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6982   rm -rf conftest*
6983   eval "ac_cv_func_$ac_func=yes"
6984 else
6985   echo "configure: failed program was:" >&5
6986   cat conftest.$ac_ext >&5
6987   rm -rf conftest*
6988   eval "ac_cv_func_$ac_func=no"
6989 fi
6990 rm -f conftest*
6991 fi
6992
6993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6994   echo "$ac_t""yes" 1>&6
6995     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6996   cat >> confdefs.h <<EOF
6997 #define $ac_tr_func 1
6998 EOF
6999  
7000 else
7001   echo "$ac_t""no" 1>&6
7002 fi
7003 done
7004     
7005     fi  
7006   fi
7007
7008   
7009   
7010   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
7011 echo "configure:7012: checking for fpclass declaration" >&5
7012   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
7013     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
7014   echo $ac_n "(cached) $ac_c" 1>&6
7015 else
7016   
7017       
7018       ac_ext=C
7019 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7020 ac_cpp='$CXXCPP $CPPFLAGS'
7021 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7022 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7023 cross_compiling=$ac_cv_prog_cxx_cross
7024
7025       cat > conftest.$ac_ext <<EOF
7026 #line 7027 "configure"
7027 #include "confdefs.h"
7028 #include <math.h>
7029                       #ifdef HAVE_IEEEFP_H
7030                       #include <ieeefp.h>
7031                       #endif
7032                      
7033 int main() {
7034  fpclass(0);
7035 ; return 0; }
7036 EOF
7037 if { (eval echo configure:7038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7038   rm -rf conftest*
7039   glibcpp_cv_func_fpclass_use=yes
7040 else
7041   echo "configure: failed program was:" >&5
7042   cat conftest.$ac_ext >&5
7043   rm -rf conftest*
7044   glibcpp_cv_func_fpclass_use=no
7045 fi
7046 rm -f conftest*
7047       ac_ext=c
7048 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7049 ac_cpp='$CPP $CPPFLAGS'
7050 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7051 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7052 cross_compiling=$ac_cv_prog_cc_cross
7053
7054     
7055 fi
7056
7057   fi
7058   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
7059
7060   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
7061     for ac_func in fpclass
7062 do
7063 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7064 echo "configure:7065: checking for $ac_func" >&5
7065 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7066   echo $ac_n "(cached) $ac_c" 1>&6
7067 else
7068   cat > conftest.$ac_ext <<EOF
7069 #line 7070 "configure"
7070 #include "confdefs.h"
7071 /* System header to define __stub macros and hopefully few prototypes,
7072     which can conflict with char $ac_func(); below.  */
7073 #include <assert.h>
7074 /* Override any gcc2 internal prototype to avoid an error.  */
7075 /* We use char because int might match the return type of a gcc2
7076     builtin and then its argument prototype would still apply.  */
7077 char $ac_func();
7078
7079 int main() {
7080
7081 /* The GNU C library defines this for functions which it implements
7082     to always fail with ENOSYS.  Some functions are actually named
7083     something starting with __ and the normal name is an alias.  */
7084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7085 choke me
7086 #else
7087 $ac_func();
7088 #endif
7089
7090 ; return 0; }
7091 EOF
7092 if { (eval echo configure:7093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7093   rm -rf conftest*
7094   eval "ac_cv_func_$ac_func=yes"
7095 else
7096   echo "configure: failed program was:" >&5
7097   cat conftest.$ac_ext >&5
7098   rm -rf conftest*
7099   eval "ac_cv_func_$ac_func=no"
7100 fi
7101 rm -f conftest*
7102 fi
7103
7104 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7105   echo "$ac_t""yes" 1>&6
7106     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7107   cat >> confdefs.h <<EOF
7108 #define $ac_tr_func 1
7109 EOF
7110  
7111 else
7112   echo "$ac_t""no" 1>&6
7113 fi
7114 done
7115     
7116   else
7117     
7118   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
7119 echo "configure:7120: checking for _fpclass declaration" >&5
7120   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
7121     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
7122   echo $ac_n "(cached) $ac_c" 1>&6
7123 else
7124   
7125       
7126       ac_ext=C
7127 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7128 ac_cpp='$CXXCPP $CPPFLAGS'
7129 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7130 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7131 cross_compiling=$ac_cv_prog_cxx_cross
7132
7133       cat > conftest.$ac_ext <<EOF
7134 #line 7135 "configure"
7135 #include "confdefs.h"
7136 #include <math.h>
7137                       #ifdef HAVE_IEEEFP_H
7138                       #include <ieeefp.h>
7139                       #endif
7140                      
7141 int main() {
7142  _fpclass(0);
7143 ; return 0; }
7144 EOF
7145 if { (eval echo configure:7146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7146   rm -rf conftest*
7147   glibcpp_cv_func__fpclass_use=yes
7148 else
7149   echo "configure: failed program was:" >&5
7150   cat conftest.$ac_ext >&5
7151   rm -rf conftest*
7152   glibcpp_cv_func__fpclass_use=no
7153 fi
7154 rm -f conftest*
7155       ac_ext=c
7156 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7157 ac_cpp='$CPP $CPPFLAGS'
7158 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7159 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7160 cross_compiling=$ac_cv_prog_cc_cross
7161
7162     
7163 fi
7164
7165   fi
7166   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
7167
7168     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
7169       for ac_func in _fpclass
7170 do
7171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7172 echo "configure:7173: checking for $ac_func" >&5
7173 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7174   echo $ac_n "(cached) $ac_c" 1>&6
7175 else
7176   cat > conftest.$ac_ext <<EOF
7177 #line 7178 "configure"
7178 #include "confdefs.h"
7179 /* System header to define __stub macros and hopefully few prototypes,
7180     which can conflict with char $ac_func(); below.  */
7181 #include <assert.h>
7182 /* Override any gcc2 internal prototype to avoid an error.  */
7183 /* We use char because int might match the return type of a gcc2
7184     builtin and then its argument prototype would still apply.  */
7185 char $ac_func();
7186
7187 int main() {
7188
7189 /* The GNU C library defines this for functions which it implements
7190     to always fail with ENOSYS.  Some functions are actually named
7191     something starting with __ and the normal name is an alias.  */
7192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7193 choke me
7194 #else
7195 $ac_func();
7196 #endif
7197
7198 ; return 0; }
7199 EOF
7200 if { (eval echo configure:7201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7201   rm -rf conftest*
7202   eval "ac_cv_func_$ac_func=yes"
7203 else
7204   echo "configure: failed program was:" >&5
7205   cat conftest.$ac_ext >&5
7206   rm -rf conftest*
7207   eval "ac_cv_func_$ac_func=no"
7208 fi
7209 rm -f conftest*
7210 fi
7211
7212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7213   echo "$ac_t""yes" 1>&6
7214     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7215   cat >> confdefs.h <<EOF
7216 #define $ac_tr_func 1
7217 EOF
7218  
7219 else
7220   echo "$ac_t""no" 1>&6
7221 fi
7222 done
7223     
7224     fi  
7225   fi
7226
7227   
7228   
7229   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
7230 echo "configure:7231: checking for qfpclass declaration" >&5
7231   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
7232     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
7233   echo $ac_n "(cached) $ac_c" 1>&6
7234 else
7235   
7236       
7237       ac_ext=C
7238 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7239 ac_cpp='$CXXCPP $CPPFLAGS'
7240 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7241 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7242 cross_compiling=$ac_cv_prog_cxx_cross
7243
7244       cat > conftest.$ac_ext <<EOF
7245 #line 7246 "configure"
7246 #include "confdefs.h"
7247 #include <math.h>
7248                       #ifdef HAVE_IEEEFP_H
7249                       #include <ieeefp.h>
7250                       #endif
7251                      
7252 int main() {
7253  qfpclass(0);
7254 ; return 0; }
7255 EOF
7256 if { (eval echo configure:7257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7257   rm -rf conftest*
7258   glibcpp_cv_func_qfpclass_use=yes
7259 else
7260   echo "configure: failed program was:" >&5
7261   cat conftest.$ac_ext >&5
7262   rm -rf conftest*
7263   glibcpp_cv_func_qfpclass_use=no
7264 fi
7265 rm -f conftest*
7266       ac_ext=c
7267 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7268 ac_cpp='$CPP $CPPFLAGS'
7269 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7270 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7271 cross_compiling=$ac_cv_prog_cc_cross
7272
7273     
7274 fi
7275
7276   fi
7277   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
7278
7279   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
7280     for ac_func in qfpclass
7281 do
7282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7283 echo "configure:7284: checking for $ac_func" >&5
7284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7285   echo $ac_n "(cached) $ac_c" 1>&6
7286 else
7287   cat > conftest.$ac_ext <<EOF
7288 #line 7289 "configure"
7289 #include "confdefs.h"
7290 /* System header to define __stub macros and hopefully few prototypes,
7291     which can conflict with char $ac_func(); below.  */
7292 #include <assert.h>
7293 /* Override any gcc2 internal prototype to avoid an error.  */
7294 /* We use char because int might match the return type of a gcc2
7295     builtin and then its argument prototype would still apply.  */
7296 char $ac_func();
7297
7298 int main() {
7299
7300 /* The GNU C library defines this for functions which it implements
7301     to always fail with ENOSYS.  Some functions are actually named
7302     something starting with __ and the normal name is an alias.  */
7303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7304 choke me
7305 #else
7306 $ac_func();
7307 #endif
7308
7309 ; return 0; }
7310 EOF
7311 if { (eval echo configure:7312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7312   rm -rf conftest*
7313   eval "ac_cv_func_$ac_func=yes"
7314 else
7315   echo "configure: failed program was:" >&5
7316   cat conftest.$ac_ext >&5
7317   rm -rf conftest*
7318   eval "ac_cv_func_$ac_func=no"
7319 fi
7320 rm -f conftest*
7321 fi
7322
7323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7324   echo "$ac_t""yes" 1>&6
7325     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7326   cat >> confdefs.h <<EOF
7327 #define $ac_tr_func 1
7328 EOF
7329  
7330 else
7331   echo "$ac_t""no" 1>&6
7332 fi
7333 done
7334     
7335   else
7336     
7337   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
7338 echo "configure:7339: checking for _qfpclass declaration" >&5
7339   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
7340     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
7341   echo $ac_n "(cached) $ac_c" 1>&6
7342 else
7343   
7344       
7345       ac_ext=C
7346 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7347 ac_cpp='$CXXCPP $CPPFLAGS'
7348 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7349 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7350 cross_compiling=$ac_cv_prog_cxx_cross
7351
7352       cat > conftest.$ac_ext <<EOF
7353 #line 7354 "configure"
7354 #include "confdefs.h"
7355 #include <math.h>
7356                       #ifdef HAVE_IEEEFP_H
7357                       #include <ieeefp.h>
7358                       #endif
7359                      
7360 int main() {
7361  _qfpclass(0);
7362 ; return 0; }
7363 EOF
7364 if { (eval echo configure:7365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7365   rm -rf conftest*
7366   glibcpp_cv_func__qfpclass_use=yes
7367 else
7368   echo "configure: failed program was:" >&5
7369   cat conftest.$ac_ext >&5
7370   rm -rf conftest*
7371   glibcpp_cv_func__qfpclass_use=no
7372 fi
7373 rm -f conftest*
7374       ac_ext=c
7375 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7376 ac_cpp='$CPP $CPPFLAGS'
7377 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7378 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7379 cross_compiling=$ac_cv_prog_cc_cross
7380
7381     
7382 fi
7383
7384   fi
7385   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
7386
7387     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
7388       for ac_func in _qfpclass
7389 do
7390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7391 echo "configure:7392: checking for $ac_func" >&5
7392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7393   echo $ac_n "(cached) $ac_c" 1>&6
7394 else
7395   cat > conftest.$ac_ext <<EOF
7396 #line 7397 "configure"
7397 #include "confdefs.h"
7398 /* System header to define __stub macros and hopefully few prototypes,
7399     which can conflict with char $ac_func(); below.  */
7400 #include <assert.h>
7401 /* Override any gcc2 internal prototype to avoid an error.  */
7402 /* We use char because int might match the return type of a gcc2
7403     builtin and then its argument prototype would still apply.  */
7404 char $ac_func();
7405
7406 int main() {
7407
7408 /* The GNU C library defines this for functions which it implements
7409     to always fail with ENOSYS.  Some functions are actually named
7410     something starting with __ and the normal name is an alias.  */
7411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7412 choke me
7413 #else
7414 $ac_func();
7415 #endif
7416
7417 ; return 0; }
7418 EOF
7419 if { (eval echo configure:7420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7420   rm -rf conftest*
7421   eval "ac_cv_func_$ac_func=yes"
7422 else
7423   echo "configure: failed program was:" >&5
7424   cat conftest.$ac_ext >&5
7425   rm -rf conftest*
7426   eval "ac_cv_func_$ac_func=no"
7427 fi
7428 rm -f conftest*
7429 fi
7430
7431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7432   echo "$ac_t""yes" 1>&6
7433     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7434   cat >> confdefs.h <<EOF
7435 #define $ac_tr_func 1
7436 EOF
7437  
7438 else
7439   echo "$ac_t""no" 1>&6
7440 fi
7441 done
7442     
7443     fi  
7444   fi
7445
7446
7447     
7448   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
7449 echo "configure:7450: checking for float trig functions" >&5
7450   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_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 int main() {
7467  `for x in acosf asinf atanf \
7468                                           cosf sinf tanf \
7469                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
7470 ; return 0; }
7471 EOF
7472 if { (eval echo configure:7473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7473   rm -rf conftest*
7474   glibcpp_cv_func_float_trig_use=yes
7475 else
7476   echo "configure: failed program was:" >&5
7477   cat conftest.$ac_ext >&5
7478   rm -rf conftest*
7479   glibcpp_cv_func_float_trig_use=no
7480 fi
7481 rm -f conftest*
7482     ac_ext=c
7483 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7484 ac_cpp='$CPP $CPPFLAGS'
7485 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7486 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7487 cross_compiling=$ac_cv_prog_cc_cross
7488
7489 fi
7490
7491   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
7492   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
7493     for ac_func in acosf asinf atanf \
7494                                           cosf sinf tanf \
7495                                           coshf sinhf tanhf
7496 do
7497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7498 echo "configure:7499: checking for $ac_func" >&5
7499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7500   echo $ac_n "(cached) $ac_c" 1>&6
7501 else
7502   cat > conftest.$ac_ext <<EOF
7503 #line 7504 "configure"
7504 #include "confdefs.h"
7505 /* System header to define __stub macros and hopefully few prototypes,
7506     which can conflict with char $ac_func(); below.  */
7507 #include <assert.h>
7508 /* Override any gcc2 internal prototype to avoid an error.  */
7509 /* We use char because int might match the return type of a gcc2
7510     builtin and then its argument prototype would still apply.  */
7511 char $ac_func();
7512
7513 int main() {
7514
7515 /* The GNU C library defines this for functions which it implements
7516     to always fail with ENOSYS.  Some functions are actually named
7517     something starting with __ and the normal name is an alias.  */
7518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7519 choke me
7520 #else
7521 $ac_func();
7522 #endif
7523
7524 ; return 0; }
7525 EOF
7526 if { (eval echo configure:7527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7527   rm -rf conftest*
7528   eval "ac_cv_func_$ac_func=yes"
7529 else
7530   echo "configure: failed program was:" >&5
7531   cat conftest.$ac_ext >&5
7532   rm -rf conftest*
7533   eval "ac_cv_func_$ac_func=no"
7534 fi
7535 rm -f conftest*
7536 fi
7537
7538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7539   echo "$ac_t""yes" 1>&6
7540     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7541   cat >> confdefs.h <<EOF
7542 #define $ac_tr_func 1
7543 EOF
7544  
7545 else
7546   echo "$ac_t""no" 1>&6
7547 fi
7548 done
7549
7550   fi
7551
7552   
7553   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
7554 echo "configure:7555: checking for float round functions" >&5
7555   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
7556   echo $ac_n "(cached) $ac_c" 1>&6
7557 else
7558   
7559     
7560     ac_ext=C
7561 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7562 ac_cpp='$CXXCPP $CPPFLAGS'
7563 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7564 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7565 cross_compiling=$ac_cv_prog_cxx_cross
7566
7567     cat > conftest.$ac_ext <<EOF
7568 #line 7569 "configure"
7569 #include "confdefs.h"
7570 #include <math.h>
7571 int main() {
7572  `for x in ceilf floorf; do echo "$x (0);"; done` 
7573 ; return 0; }
7574 EOF
7575 if { (eval echo configure:7576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7576   rm -rf conftest*
7577   glibcpp_cv_func_float_round_use=yes
7578 else
7579   echo "configure: failed program was:" >&5
7580   cat conftest.$ac_ext >&5
7581   rm -rf conftest*
7582   glibcpp_cv_func_float_round_use=no
7583 fi
7584 rm -f conftest*
7585     ac_ext=c
7586 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7587 ac_cpp='$CPP $CPPFLAGS'
7588 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7589 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7590 cross_compiling=$ac_cv_prog_cc_cross
7591
7592 fi
7593
7594   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
7595   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
7596     for ac_func in ceilf floorf
7597 do
7598 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7599 echo "configure:7600: checking for $ac_func" >&5
7600 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7601   echo $ac_n "(cached) $ac_c" 1>&6
7602 else
7603   cat > conftest.$ac_ext <<EOF
7604 #line 7605 "configure"
7605 #include "confdefs.h"
7606 /* System header to define __stub macros and hopefully few prototypes,
7607     which can conflict with char $ac_func(); below.  */
7608 #include <assert.h>
7609 /* Override any gcc2 internal prototype to avoid an error.  */
7610 /* We use char because int might match the return type of a gcc2
7611     builtin and then its argument prototype would still apply.  */
7612 char $ac_func();
7613
7614 int main() {
7615
7616 /* The GNU C library defines this for functions which it implements
7617     to always fail with ENOSYS.  Some functions are actually named
7618     something starting with __ and the normal name is an alias.  */
7619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7620 choke me
7621 #else
7622 $ac_func();
7623 #endif
7624
7625 ; return 0; }
7626 EOF
7627 if { (eval echo configure:7628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7628   rm -rf conftest*
7629   eval "ac_cv_func_$ac_func=yes"
7630 else
7631   echo "configure: failed program was:" >&5
7632   cat conftest.$ac_ext >&5
7633   rm -rf conftest*
7634   eval "ac_cv_func_$ac_func=no"
7635 fi
7636 rm -f conftest*
7637 fi
7638
7639 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7640   echo "$ac_t""yes" 1>&6
7641     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7642   cat >> confdefs.h <<EOF
7643 #define $ac_tr_func 1
7644 EOF
7645  
7646 else
7647   echo "$ac_t""no" 1>&6
7648 fi
7649 done
7650
7651   fi
7652
7653   
7654   
7655   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
7656 echo "configure:7657: checking for isnanf declaration" >&5
7657   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
7658     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
7659   echo $ac_n "(cached) $ac_c" 1>&6
7660 else
7661   
7662       
7663       ac_ext=C
7664 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7665 ac_cpp='$CXXCPP $CPPFLAGS'
7666 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7667 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7668 cross_compiling=$ac_cv_prog_cxx_cross
7669
7670       cat > conftest.$ac_ext <<EOF
7671 #line 7672 "configure"
7672 #include "confdefs.h"
7673 #include <math.h>
7674                       #ifdef HAVE_IEEEFP_H
7675                       #include <ieeefp.h>
7676                       #endif
7677                      
7678 int main() {
7679  isnanf(0);
7680 ; return 0; }
7681 EOF
7682 if { (eval echo configure:7683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7683   rm -rf conftest*
7684   glibcpp_cv_func_isnanf_use=yes
7685 else
7686   echo "configure: failed program was:" >&5
7687   cat conftest.$ac_ext >&5
7688   rm -rf conftest*
7689   glibcpp_cv_func_isnanf_use=no
7690 fi
7691 rm -f conftest*
7692       ac_ext=c
7693 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7694 ac_cpp='$CPP $CPPFLAGS'
7695 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7696 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7697 cross_compiling=$ac_cv_prog_cc_cross
7698
7699     
7700 fi
7701
7702   fi
7703   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
7704
7705   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
7706     for ac_func in isnanf
7707 do
7708 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7709 echo "configure:7710: checking for $ac_func" >&5
7710 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7711   echo $ac_n "(cached) $ac_c" 1>&6
7712 else
7713   cat > conftest.$ac_ext <<EOF
7714 #line 7715 "configure"
7715 #include "confdefs.h"
7716 /* System header to define __stub macros and hopefully few prototypes,
7717     which can conflict with char $ac_func(); below.  */
7718 #include <assert.h>
7719 /* Override any gcc2 internal prototype to avoid an error.  */
7720 /* We use char because int might match the return type of a gcc2
7721     builtin and then its argument prototype would still apply.  */
7722 char $ac_func();
7723
7724 int main() {
7725
7726 /* The GNU C library defines this for functions which it implements
7727     to always fail with ENOSYS.  Some functions are actually named
7728     something starting with __ and the normal name is an alias.  */
7729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7730 choke me
7731 #else
7732 $ac_func();
7733 #endif
7734
7735 ; return 0; }
7736 EOF
7737 if { (eval echo configure:7738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7738   rm -rf conftest*
7739   eval "ac_cv_func_$ac_func=yes"
7740 else
7741   echo "configure: failed program was:" >&5
7742   cat conftest.$ac_ext >&5
7743   rm -rf conftest*
7744   eval "ac_cv_func_$ac_func=no"
7745 fi
7746 rm -f conftest*
7747 fi
7748
7749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7750   echo "$ac_t""yes" 1>&6
7751     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7752   cat >> confdefs.h <<EOF
7753 #define $ac_tr_func 1
7754 EOF
7755  
7756 else
7757   echo "$ac_t""no" 1>&6
7758 fi
7759 done
7760     
7761   else
7762     
7763   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
7764 echo "configure:7765: checking for _isnanf declaration" >&5
7765   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
7766     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
7767   echo $ac_n "(cached) $ac_c" 1>&6
7768 else
7769   
7770       
7771       ac_ext=C
7772 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7773 ac_cpp='$CXXCPP $CPPFLAGS'
7774 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7775 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7776 cross_compiling=$ac_cv_prog_cxx_cross
7777
7778       cat > conftest.$ac_ext <<EOF
7779 #line 7780 "configure"
7780 #include "confdefs.h"
7781 #include <math.h>
7782                       #ifdef HAVE_IEEEFP_H
7783                       #include <ieeefp.h>
7784                       #endif
7785                      
7786 int main() {
7787  _isnanf(0);
7788 ; return 0; }
7789 EOF
7790 if { (eval echo configure:7791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7791   rm -rf conftest*
7792   glibcpp_cv_func__isnanf_use=yes
7793 else
7794   echo "configure: failed program was:" >&5
7795   cat conftest.$ac_ext >&5
7796   rm -rf conftest*
7797   glibcpp_cv_func__isnanf_use=no
7798 fi
7799 rm -f conftest*
7800       ac_ext=c
7801 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7802 ac_cpp='$CPP $CPPFLAGS'
7803 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7804 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7805 cross_compiling=$ac_cv_prog_cc_cross
7806
7807     
7808 fi
7809
7810   fi
7811   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
7812
7813     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
7814       for ac_func in _isnanf
7815 do
7816 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7817 echo "configure:7818: checking for $ac_func" >&5
7818 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7819   echo $ac_n "(cached) $ac_c" 1>&6
7820 else
7821   cat > conftest.$ac_ext <<EOF
7822 #line 7823 "configure"
7823 #include "confdefs.h"
7824 /* System header to define __stub macros and hopefully few prototypes,
7825     which can conflict with char $ac_func(); below.  */
7826 #include <assert.h>
7827 /* Override any gcc2 internal prototype to avoid an error.  */
7828 /* We use char because int might match the return type of a gcc2
7829     builtin and then its argument prototype would still apply.  */
7830 char $ac_func();
7831
7832 int main() {
7833
7834 /* The GNU C library defines this for functions which it implements
7835     to always fail with ENOSYS.  Some functions are actually named
7836     something starting with __ and the normal name is an alias.  */
7837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7838 choke me
7839 #else
7840 $ac_func();
7841 #endif
7842
7843 ; return 0; }
7844 EOF
7845 if { (eval echo configure:7846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7846   rm -rf conftest*
7847   eval "ac_cv_func_$ac_func=yes"
7848 else
7849   echo "configure: failed program was:" >&5
7850   cat conftest.$ac_ext >&5
7851   rm -rf conftest*
7852   eval "ac_cv_func_$ac_func=no"
7853 fi
7854 rm -f conftest*
7855 fi
7856
7857 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7858   echo "$ac_t""yes" 1>&6
7859     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7860   cat >> confdefs.h <<EOF
7861 #define $ac_tr_func 1
7862 EOF
7863  
7864 else
7865   echo "$ac_t""no" 1>&6
7866 fi
7867 done
7868     
7869     fi  
7870   fi
7871
7872   
7873   
7874   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
7875 echo "configure:7876: checking for isinff declaration" >&5
7876   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
7877     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
7878   echo $ac_n "(cached) $ac_c" 1>&6
7879 else
7880   
7881       
7882       ac_ext=C
7883 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7884 ac_cpp='$CXXCPP $CPPFLAGS'
7885 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7886 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7887 cross_compiling=$ac_cv_prog_cxx_cross
7888
7889       cat > conftest.$ac_ext <<EOF
7890 #line 7891 "configure"
7891 #include "confdefs.h"
7892 #include <math.h>
7893                       #ifdef HAVE_IEEEFP_H
7894                       #include <ieeefp.h>
7895                       #endif
7896                      
7897 int main() {
7898  isinff(0);
7899 ; return 0; }
7900 EOF
7901 if { (eval echo configure:7902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7902   rm -rf conftest*
7903   glibcpp_cv_func_isinff_use=yes
7904 else
7905   echo "configure: failed program was:" >&5
7906   cat conftest.$ac_ext >&5
7907   rm -rf conftest*
7908   glibcpp_cv_func_isinff_use=no
7909 fi
7910 rm -f conftest*
7911       ac_ext=c
7912 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7913 ac_cpp='$CPP $CPPFLAGS'
7914 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7915 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7916 cross_compiling=$ac_cv_prog_cc_cross
7917
7918     
7919 fi
7920
7921   fi
7922   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
7923
7924   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
7925     for ac_func in isinff
7926 do
7927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7928 echo "configure:7929: checking for $ac_func" >&5
7929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7930   echo $ac_n "(cached) $ac_c" 1>&6
7931 else
7932   cat > conftest.$ac_ext <<EOF
7933 #line 7934 "configure"
7934 #include "confdefs.h"
7935 /* System header to define __stub macros and hopefully few prototypes,
7936     which can conflict with char $ac_func(); below.  */
7937 #include <assert.h>
7938 /* Override any gcc2 internal prototype to avoid an error.  */
7939 /* We use char because int might match the return type of a gcc2
7940     builtin and then its argument prototype would still apply.  */
7941 char $ac_func();
7942
7943 int main() {
7944
7945 /* The GNU C library defines this for functions which it implements
7946     to always fail with ENOSYS.  Some functions are actually named
7947     something starting with __ and the normal name is an alias.  */
7948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7949 choke me
7950 #else
7951 $ac_func();
7952 #endif
7953
7954 ; return 0; }
7955 EOF
7956 if { (eval echo configure:7957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7957   rm -rf conftest*
7958   eval "ac_cv_func_$ac_func=yes"
7959 else
7960   echo "configure: failed program was:" >&5
7961   cat conftest.$ac_ext >&5
7962   rm -rf conftest*
7963   eval "ac_cv_func_$ac_func=no"
7964 fi
7965 rm -f conftest*
7966 fi
7967
7968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7969   echo "$ac_t""yes" 1>&6
7970     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7971   cat >> confdefs.h <<EOF
7972 #define $ac_tr_func 1
7973 EOF
7974  
7975 else
7976   echo "$ac_t""no" 1>&6
7977 fi
7978 done
7979     
7980   else
7981     
7982   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
7983 echo "configure:7984: checking for _isinff declaration" >&5
7984   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
7985     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
7986   echo $ac_n "(cached) $ac_c" 1>&6
7987 else
7988   
7989       
7990       ac_ext=C
7991 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7992 ac_cpp='$CXXCPP $CPPFLAGS'
7993 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7994 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7995 cross_compiling=$ac_cv_prog_cxx_cross
7996
7997       cat > conftest.$ac_ext <<EOF
7998 #line 7999 "configure"
7999 #include "confdefs.h"
8000 #include <math.h>
8001                       #ifdef HAVE_IEEEFP_H
8002                       #include <ieeefp.h>
8003                       #endif
8004                      
8005 int main() {
8006  _isinff(0);
8007 ; return 0; }
8008 EOF
8009 if { (eval echo configure:8010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8010   rm -rf conftest*
8011   glibcpp_cv_func__isinff_use=yes
8012 else
8013   echo "configure: failed program was:" >&5
8014   cat conftest.$ac_ext >&5
8015   rm -rf conftest*
8016   glibcpp_cv_func__isinff_use=no
8017 fi
8018 rm -f conftest*
8019       ac_ext=c
8020 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8021 ac_cpp='$CPP $CPPFLAGS'
8022 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8023 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8024 cross_compiling=$ac_cv_prog_cc_cross
8025
8026     
8027 fi
8028
8029   fi
8030   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
8031
8032     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
8033       for ac_func in _isinff
8034 do
8035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8036 echo "configure:8037: checking for $ac_func" >&5
8037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8038   echo $ac_n "(cached) $ac_c" 1>&6
8039 else
8040   cat > conftest.$ac_ext <<EOF
8041 #line 8042 "configure"
8042 #include "confdefs.h"
8043 /* System header to define __stub macros and hopefully few prototypes,
8044     which can conflict with char $ac_func(); below.  */
8045 #include <assert.h>
8046 /* Override any gcc2 internal prototype to avoid an error.  */
8047 /* We use char because int might match the return type of a gcc2
8048     builtin and then its argument prototype would still apply.  */
8049 char $ac_func();
8050
8051 int main() {
8052
8053 /* The GNU C library defines this for functions which it implements
8054     to always fail with ENOSYS.  Some functions are actually named
8055     something starting with __ and the normal name is an alias.  */
8056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8057 choke me
8058 #else
8059 $ac_func();
8060 #endif
8061
8062 ; return 0; }
8063 EOF
8064 if { (eval echo configure:8065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8065   rm -rf conftest*
8066   eval "ac_cv_func_$ac_func=yes"
8067 else
8068   echo "configure: failed program was:" >&5
8069   cat conftest.$ac_ext >&5
8070   rm -rf conftest*
8071   eval "ac_cv_func_$ac_func=no"
8072 fi
8073 rm -f conftest*
8074 fi
8075
8076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8077   echo "$ac_t""yes" 1>&6
8078     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8079   cat >> confdefs.h <<EOF
8080 #define $ac_tr_func 1
8081 EOF
8082  
8083 else
8084   echo "$ac_t""no" 1>&6
8085 fi
8086 done
8087     
8088     fi  
8089   fi
8090
8091   
8092   
8093   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
8094 echo "configure:8095: checking for fabsf declaration" >&5
8095   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
8096     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
8097   echo $ac_n "(cached) $ac_c" 1>&6
8098 else
8099   
8100       
8101       ac_ext=C
8102 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8103 ac_cpp='$CXXCPP $CPPFLAGS'
8104 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8105 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8106 cross_compiling=$ac_cv_prog_cxx_cross
8107
8108       cat > conftest.$ac_ext <<EOF
8109 #line 8110 "configure"
8110 #include "confdefs.h"
8111 #include <math.h>
8112                       #ifdef HAVE_IEEEFP_H
8113                       #include <ieeefp.h>
8114                       #endif
8115                      
8116 int main() {
8117  fabsf(0);
8118 ; return 0; }
8119 EOF
8120 if { (eval echo configure:8121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8121   rm -rf conftest*
8122   glibcpp_cv_func_fabsf_use=yes
8123 else
8124   echo "configure: failed program was:" >&5
8125   cat conftest.$ac_ext >&5
8126   rm -rf conftest*
8127   glibcpp_cv_func_fabsf_use=no
8128 fi
8129 rm -f conftest*
8130       ac_ext=c
8131 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8132 ac_cpp='$CPP $CPPFLAGS'
8133 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8134 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8135 cross_compiling=$ac_cv_prog_cc_cross
8136
8137     
8138 fi
8139
8140   fi
8141   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
8142
8143   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
8144     for ac_func in fabsf
8145 do
8146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8147 echo "configure:8148: checking for $ac_func" >&5
8148 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8149   echo $ac_n "(cached) $ac_c" 1>&6
8150 else
8151   cat > conftest.$ac_ext <<EOF
8152 #line 8153 "configure"
8153 #include "confdefs.h"
8154 /* System header to define __stub macros and hopefully few prototypes,
8155     which can conflict with char $ac_func(); below.  */
8156 #include <assert.h>
8157 /* Override any gcc2 internal prototype to avoid an error.  */
8158 /* We use char because int might match the return type of a gcc2
8159     builtin and then its argument prototype would still apply.  */
8160 char $ac_func();
8161
8162 int main() {
8163
8164 /* The GNU C library defines this for functions which it implements
8165     to always fail with ENOSYS.  Some functions are actually named
8166     something starting with __ and the normal name is an alias.  */
8167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8168 choke me
8169 #else
8170 $ac_func();
8171 #endif
8172
8173 ; return 0; }
8174 EOF
8175 if { (eval echo configure:8176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8176   rm -rf conftest*
8177   eval "ac_cv_func_$ac_func=yes"
8178 else
8179   echo "configure: failed program was:" >&5
8180   cat conftest.$ac_ext >&5
8181   rm -rf conftest*
8182   eval "ac_cv_func_$ac_func=no"
8183 fi
8184 rm -f conftest*
8185 fi
8186
8187 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8188   echo "$ac_t""yes" 1>&6
8189     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8190   cat >> confdefs.h <<EOF
8191 #define $ac_tr_func 1
8192 EOF
8193  
8194 else
8195   echo "$ac_t""no" 1>&6
8196 fi
8197 done
8198     
8199   else
8200     
8201   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
8202 echo "configure:8203: checking for _fabsf declaration" >&5
8203   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
8204     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
8205   echo $ac_n "(cached) $ac_c" 1>&6
8206 else
8207   
8208       
8209       ac_ext=C
8210 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8211 ac_cpp='$CXXCPP $CPPFLAGS'
8212 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8213 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8214 cross_compiling=$ac_cv_prog_cxx_cross
8215
8216       cat > conftest.$ac_ext <<EOF
8217 #line 8218 "configure"
8218 #include "confdefs.h"
8219 #include <math.h>
8220                       #ifdef HAVE_IEEEFP_H
8221                       #include <ieeefp.h>
8222                       #endif
8223                      
8224 int main() {
8225  _fabsf(0);
8226 ; return 0; }
8227 EOF
8228 if { (eval echo configure:8229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8229   rm -rf conftest*
8230   glibcpp_cv_func__fabsf_use=yes
8231 else
8232   echo "configure: failed program was:" >&5
8233   cat conftest.$ac_ext >&5
8234   rm -rf conftest*
8235   glibcpp_cv_func__fabsf_use=no
8236 fi
8237 rm -f conftest*
8238       ac_ext=c
8239 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8240 ac_cpp='$CPP $CPPFLAGS'
8241 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8242 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8243 cross_compiling=$ac_cv_prog_cc_cross
8244
8245     
8246 fi
8247
8248   fi
8249   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
8250
8251     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
8252       for ac_func in _fabsf
8253 do
8254 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8255 echo "configure:8256: checking for $ac_func" >&5
8256 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8257   echo $ac_n "(cached) $ac_c" 1>&6
8258 else
8259   cat > conftest.$ac_ext <<EOF
8260 #line 8261 "configure"
8261 #include "confdefs.h"
8262 /* System header to define __stub macros and hopefully few prototypes,
8263     which can conflict with char $ac_func(); below.  */
8264 #include <assert.h>
8265 /* Override any gcc2 internal prototype to avoid an error.  */
8266 /* We use char because int might match the return type of a gcc2
8267     builtin and then its argument prototype would still apply.  */
8268 char $ac_func();
8269
8270 int main() {
8271
8272 /* The GNU C library defines this for functions which it implements
8273     to always fail with ENOSYS.  Some functions are actually named
8274     something starting with __ and the normal name is an alias.  */
8275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8276 choke me
8277 #else
8278 $ac_func();
8279 #endif
8280
8281 ; return 0; }
8282 EOF
8283 if { (eval echo configure:8284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8284   rm -rf conftest*
8285   eval "ac_cv_func_$ac_func=yes"
8286 else
8287   echo "configure: failed program was:" >&5
8288   cat conftest.$ac_ext >&5
8289   rm -rf conftest*
8290   eval "ac_cv_func_$ac_func=no"
8291 fi
8292 rm -f conftest*
8293 fi
8294
8295 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8296   echo "$ac_t""yes" 1>&6
8297     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8298   cat >> confdefs.h <<EOF
8299 #define $ac_tr_func 1
8300 EOF
8301  
8302 else
8303   echo "$ac_t""no" 1>&6
8304 fi
8305 done
8306     
8307     fi  
8308   fi
8309
8310   
8311   
8312   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
8313 echo "configure:8314: checking for fmodf declaration" >&5
8314   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
8315     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
8316   echo $ac_n "(cached) $ac_c" 1>&6
8317 else
8318   
8319       
8320       ac_ext=C
8321 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8322 ac_cpp='$CXXCPP $CPPFLAGS'
8323 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8324 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8325 cross_compiling=$ac_cv_prog_cxx_cross
8326
8327       cat > conftest.$ac_ext <<EOF
8328 #line 8329 "configure"
8329 #include "confdefs.h"
8330 #include <math.h>
8331 int main() {
8332  fmodf(0, 0);
8333 ; return 0; }
8334 EOF
8335 if { (eval echo configure:8336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8336   rm -rf conftest*
8337   glibcpp_cv_func_fmodf_use=yes
8338 else
8339   echo "configure: failed program was:" >&5
8340   cat conftest.$ac_ext >&5
8341   rm -rf conftest*
8342   glibcpp_cv_func_fmodf_use=no
8343 fi
8344 rm -f conftest*
8345       ac_ext=c
8346 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8347 ac_cpp='$CPP $CPPFLAGS'
8348 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8349 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8350 cross_compiling=$ac_cv_prog_cc_cross
8351
8352     
8353 fi
8354
8355   fi
8356   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
8357
8358   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
8359     for ac_func in fmodf
8360 do
8361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8362 echo "configure:8363: checking for $ac_func" >&5
8363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8364   echo $ac_n "(cached) $ac_c" 1>&6
8365 else
8366   cat > conftest.$ac_ext <<EOF
8367 #line 8368 "configure"
8368 #include "confdefs.h"
8369 /* System header to define __stub macros and hopefully few prototypes,
8370     which can conflict with char $ac_func(); below.  */
8371 #include <assert.h>
8372 /* Override any gcc2 internal prototype to avoid an error.  */
8373 /* We use char because int might match the return type of a gcc2
8374     builtin and then its argument prototype would still apply.  */
8375 char $ac_func();
8376
8377 int main() {
8378
8379 /* The GNU C library defines this for functions which it implements
8380     to always fail with ENOSYS.  Some functions are actually named
8381     something starting with __ and the normal name is an alias.  */
8382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8383 choke me
8384 #else
8385 $ac_func();
8386 #endif
8387
8388 ; return 0; }
8389 EOF
8390 if { (eval echo configure:8391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8391   rm -rf conftest*
8392   eval "ac_cv_func_$ac_func=yes"
8393 else
8394   echo "configure: failed program was:" >&5
8395   cat conftest.$ac_ext >&5
8396   rm -rf conftest*
8397   eval "ac_cv_func_$ac_func=no"
8398 fi
8399 rm -f conftest*
8400 fi
8401
8402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8403   echo "$ac_t""yes" 1>&6
8404     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8405   cat >> confdefs.h <<EOF
8406 #define $ac_tr_func 1
8407 EOF
8408  
8409 else
8410   echo "$ac_t""no" 1>&6
8411 fi
8412 done
8413     
8414   else
8415     
8416   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
8417 echo "configure:8418: checking for _fmodf declaration" >&5
8418   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
8419     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
8420   echo $ac_n "(cached) $ac_c" 1>&6
8421 else
8422   
8423       
8424       ac_ext=C
8425 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8426 ac_cpp='$CXXCPP $CPPFLAGS'
8427 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8428 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8429 cross_compiling=$ac_cv_prog_cxx_cross
8430
8431       cat > conftest.$ac_ext <<EOF
8432 #line 8433 "configure"
8433 #include "confdefs.h"
8434 #include <math.h>
8435 int main() {
8436  _fmodf(0, 0);
8437 ; return 0; }
8438 EOF
8439 if { (eval echo configure:8440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8440   rm -rf conftest*
8441   glibcpp_cv_func__fmodf_use=yes
8442 else
8443   echo "configure: failed program was:" >&5
8444   cat conftest.$ac_ext >&5
8445   rm -rf conftest*
8446   glibcpp_cv_func__fmodf_use=no
8447 fi
8448 rm -f conftest*
8449       ac_ext=c
8450 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8451 ac_cpp='$CPP $CPPFLAGS'
8452 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8453 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8454 cross_compiling=$ac_cv_prog_cc_cross
8455
8456     
8457 fi
8458
8459   fi
8460   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
8461
8462     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
8463       for ac_func in _fmodf
8464 do
8465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8466 echo "configure:8467: checking for $ac_func" >&5
8467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8468   echo $ac_n "(cached) $ac_c" 1>&6
8469 else
8470   cat > conftest.$ac_ext <<EOF
8471 #line 8472 "configure"
8472 #include "confdefs.h"
8473 /* System header to define __stub macros and hopefully few prototypes,
8474     which can conflict with char $ac_func(); below.  */
8475 #include <assert.h>
8476 /* Override any gcc2 internal prototype to avoid an error.  */
8477 /* We use char because int might match the return type of a gcc2
8478     builtin and then its argument prototype would still apply.  */
8479 char $ac_func();
8480
8481 int main() {
8482
8483 /* The GNU C library defines this for functions which it implements
8484     to always fail with ENOSYS.  Some functions are actually named
8485     something starting with __ and the normal name is an alias.  */
8486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8487 choke me
8488 #else
8489 $ac_func();
8490 #endif
8491
8492 ; return 0; }
8493 EOF
8494 if { (eval echo configure:8495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8495   rm -rf conftest*
8496   eval "ac_cv_func_$ac_func=yes"
8497 else
8498   echo "configure: failed program was:" >&5
8499   cat conftest.$ac_ext >&5
8500   rm -rf conftest*
8501   eval "ac_cv_func_$ac_func=no"
8502 fi
8503 rm -f conftest*
8504 fi
8505
8506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8507   echo "$ac_t""yes" 1>&6
8508     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8509   cat >> confdefs.h <<EOF
8510 #define $ac_tr_func 1
8511 EOF
8512  
8513 else
8514   echo "$ac_t""no" 1>&6
8515 fi
8516 done
8517     
8518     fi  
8519   fi
8520
8521   
8522   
8523   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
8524 echo "configure:8525: checking for frexpf declaration" >&5
8525   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
8526     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
8527   echo $ac_n "(cached) $ac_c" 1>&6
8528 else
8529   
8530       
8531       ac_ext=C
8532 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8533 ac_cpp='$CXXCPP $CPPFLAGS'
8534 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8535 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8536 cross_compiling=$ac_cv_prog_cxx_cross
8537
8538       cat > conftest.$ac_ext <<EOF
8539 #line 8540 "configure"
8540 #include "confdefs.h"
8541 #include <math.h>
8542 int main() {
8543  frexpf(0, 0);
8544 ; return 0; }
8545 EOF
8546 if { (eval echo configure:8547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8547   rm -rf conftest*
8548   glibcpp_cv_func_frexpf_use=yes
8549 else
8550   echo "configure: failed program was:" >&5
8551   cat conftest.$ac_ext >&5
8552   rm -rf conftest*
8553   glibcpp_cv_func_frexpf_use=no
8554 fi
8555 rm -f conftest*
8556       ac_ext=c
8557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8558 ac_cpp='$CPP $CPPFLAGS'
8559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8561 cross_compiling=$ac_cv_prog_cc_cross
8562
8563     
8564 fi
8565
8566   fi
8567   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
8568
8569   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
8570     for ac_func in frexpf
8571 do
8572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8573 echo "configure:8574: checking for $ac_func" >&5
8574 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8575   echo $ac_n "(cached) $ac_c" 1>&6
8576 else
8577   cat > conftest.$ac_ext <<EOF
8578 #line 8579 "configure"
8579 #include "confdefs.h"
8580 /* System header to define __stub macros and hopefully few prototypes,
8581     which can conflict with char $ac_func(); below.  */
8582 #include <assert.h>
8583 /* Override any gcc2 internal prototype to avoid an error.  */
8584 /* We use char because int might match the return type of a gcc2
8585     builtin and then its argument prototype would still apply.  */
8586 char $ac_func();
8587
8588 int main() {
8589
8590 /* The GNU C library defines this for functions which it implements
8591     to always fail with ENOSYS.  Some functions are actually named
8592     something starting with __ and the normal name is an alias.  */
8593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8594 choke me
8595 #else
8596 $ac_func();
8597 #endif
8598
8599 ; return 0; }
8600 EOF
8601 if { (eval echo configure:8602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8602   rm -rf conftest*
8603   eval "ac_cv_func_$ac_func=yes"
8604 else
8605   echo "configure: failed program was:" >&5
8606   cat conftest.$ac_ext >&5
8607   rm -rf conftest*
8608   eval "ac_cv_func_$ac_func=no"
8609 fi
8610 rm -f conftest*
8611 fi
8612
8613 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8614   echo "$ac_t""yes" 1>&6
8615     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8616   cat >> confdefs.h <<EOF
8617 #define $ac_tr_func 1
8618 EOF
8619  
8620 else
8621   echo "$ac_t""no" 1>&6
8622 fi
8623 done
8624     
8625   else
8626     
8627   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
8628 echo "configure:8629: checking for _frexpf declaration" >&5
8629   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
8630     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
8631   echo $ac_n "(cached) $ac_c" 1>&6
8632 else
8633   
8634       
8635       ac_ext=C
8636 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8637 ac_cpp='$CXXCPP $CPPFLAGS'
8638 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8639 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8640 cross_compiling=$ac_cv_prog_cxx_cross
8641
8642       cat > conftest.$ac_ext <<EOF
8643 #line 8644 "configure"
8644 #include "confdefs.h"
8645 #include <math.h>
8646 int main() {
8647  _frexpf(0, 0);
8648 ; return 0; }
8649 EOF
8650 if { (eval echo configure:8651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8651   rm -rf conftest*
8652   glibcpp_cv_func__frexpf_use=yes
8653 else
8654   echo "configure: failed program was:" >&5
8655   cat conftest.$ac_ext >&5
8656   rm -rf conftest*
8657   glibcpp_cv_func__frexpf_use=no
8658 fi
8659 rm -f conftest*
8660       ac_ext=c
8661 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8662 ac_cpp='$CPP $CPPFLAGS'
8663 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8664 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8665 cross_compiling=$ac_cv_prog_cc_cross
8666
8667     
8668 fi
8669
8670   fi
8671   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
8672
8673     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
8674       for ac_func in _frexpf
8675 do
8676 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8677 echo "configure:8678: checking for $ac_func" >&5
8678 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8679   echo $ac_n "(cached) $ac_c" 1>&6
8680 else
8681   cat > conftest.$ac_ext <<EOF
8682 #line 8683 "configure"
8683 #include "confdefs.h"
8684 /* System header to define __stub macros and hopefully few prototypes,
8685     which can conflict with char $ac_func(); below.  */
8686 #include <assert.h>
8687 /* Override any gcc2 internal prototype to avoid an error.  */
8688 /* We use char because int might match the return type of a gcc2
8689     builtin and then its argument prototype would still apply.  */
8690 char $ac_func();
8691
8692 int main() {
8693
8694 /* The GNU C library defines this for functions which it implements
8695     to always fail with ENOSYS.  Some functions are actually named
8696     something starting with __ and the normal name is an alias.  */
8697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8698 choke me
8699 #else
8700 $ac_func();
8701 #endif
8702
8703 ; return 0; }
8704 EOF
8705 if { (eval echo configure:8706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8706   rm -rf conftest*
8707   eval "ac_cv_func_$ac_func=yes"
8708 else
8709   echo "configure: failed program was:" >&5
8710   cat conftest.$ac_ext >&5
8711   rm -rf conftest*
8712   eval "ac_cv_func_$ac_func=no"
8713 fi
8714 rm -f conftest*
8715 fi
8716
8717 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8718   echo "$ac_t""yes" 1>&6
8719     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8720   cat >> confdefs.h <<EOF
8721 #define $ac_tr_func 1
8722 EOF
8723  
8724 else
8725   echo "$ac_t""no" 1>&6
8726 fi
8727 done
8728     
8729     fi  
8730   fi
8731
8732   
8733   
8734   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
8735 echo "configure:8736: checking for ldexpf declaration" >&5
8736   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
8737     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
8738   echo $ac_n "(cached) $ac_c" 1>&6
8739 else
8740   
8741       
8742       ac_ext=C
8743 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8744 ac_cpp='$CXXCPP $CPPFLAGS'
8745 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8746 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8747 cross_compiling=$ac_cv_prog_cxx_cross
8748
8749       cat > conftest.$ac_ext <<EOF
8750 #line 8751 "configure"
8751 #include "confdefs.h"
8752 #include <math.h>
8753 int main() {
8754  ldexpf(0, 0);
8755 ; return 0; }
8756 EOF
8757 if { (eval echo configure:8758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8758   rm -rf conftest*
8759   glibcpp_cv_func_ldexpf_use=yes
8760 else
8761   echo "configure: failed program was:" >&5
8762   cat conftest.$ac_ext >&5
8763   rm -rf conftest*
8764   glibcpp_cv_func_ldexpf_use=no
8765 fi
8766 rm -f conftest*
8767       ac_ext=c
8768 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8769 ac_cpp='$CPP $CPPFLAGS'
8770 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8771 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8772 cross_compiling=$ac_cv_prog_cc_cross
8773
8774     
8775 fi
8776
8777   fi
8778   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
8779
8780   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
8781     for ac_func in ldexpf
8782 do
8783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8784 echo "configure:8785: checking for $ac_func" >&5
8785 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8786   echo $ac_n "(cached) $ac_c" 1>&6
8787 else
8788   cat > conftest.$ac_ext <<EOF
8789 #line 8790 "configure"
8790 #include "confdefs.h"
8791 /* System header to define __stub macros and hopefully few prototypes,
8792     which can conflict with char $ac_func(); below.  */
8793 #include <assert.h>
8794 /* Override any gcc2 internal prototype to avoid an error.  */
8795 /* We use char because int might match the return type of a gcc2
8796     builtin and then its argument prototype would still apply.  */
8797 char $ac_func();
8798
8799 int main() {
8800
8801 /* The GNU C library defines this for functions which it implements
8802     to always fail with ENOSYS.  Some functions are actually named
8803     something starting with __ and the normal name is an alias.  */
8804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8805 choke me
8806 #else
8807 $ac_func();
8808 #endif
8809
8810 ; return 0; }
8811 EOF
8812 if { (eval echo configure:8813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8813   rm -rf conftest*
8814   eval "ac_cv_func_$ac_func=yes"
8815 else
8816   echo "configure: failed program was:" >&5
8817   cat conftest.$ac_ext >&5
8818   rm -rf conftest*
8819   eval "ac_cv_func_$ac_func=no"
8820 fi
8821 rm -f conftest*
8822 fi
8823
8824 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8825   echo "$ac_t""yes" 1>&6
8826     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8827   cat >> confdefs.h <<EOF
8828 #define $ac_tr_func 1
8829 EOF
8830  
8831 else
8832   echo "$ac_t""no" 1>&6
8833 fi
8834 done
8835     
8836   else
8837     
8838   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
8839 echo "configure:8840: checking for _ldexpf declaration" >&5
8840   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
8841     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
8842   echo $ac_n "(cached) $ac_c" 1>&6
8843 else
8844   
8845       
8846       ac_ext=C
8847 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8848 ac_cpp='$CXXCPP $CPPFLAGS'
8849 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8850 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8851 cross_compiling=$ac_cv_prog_cxx_cross
8852
8853       cat > conftest.$ac_ext <<EOF
8854 #line 8855 "configure"
8855 #include "confdefs.h"
8856 #include <math.h>
8857 int main() {
8858  _ldexpf(0, 0);
8859 ; return 0; }
8860 EOF
8861 if { (eval echo configure:8862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8862   rm -rf conftest*
8863   glibcpp_cv_func__ldexpf_use=yes
8864 else
8865   echo "configure: failed program was:" >&5
8866   cat conftest.$ac_ext >&5
8867   rm -rf conftest*
8868   glibcpp_cv_func__ldexpf_use=no
8869 fi
8870 rm -f conftest*
8871       ac_ext=c
8872 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8873 ac_cpp='$CPP $CPPFLAGS'
8874 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8875 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8876 cross_compiling=$ac_cv_prog_cc_cross
8877
8878     
8879 fi
8880
8881   fi
8882   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
8883
8884     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
8885       for ac_func in _ldexpf
8886 do
8887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8888 echo "configure:8889: checking for $ac_func" >&5
8889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8890   echo $ac_n "(cached) $ac_c" 1>&6
8891 else
8892   cat > conftest.$ac_ext <<EOF
8893 #line 8894 "configure"
8894 #include "confdefs.h"
8895 /* System header to define __stub macros and hopefully few prototypes,
8896     which can conflict with char $ac_func(); below.  */
8897 #include <assert.h>
8898 /* Override any gcc2 internal prototype to avoid an error.  */
8899 /* We use char because int might match the return type of a gcc2
8900     builtin and then its argument prototype would still apply.  */
8901 char $ac_func();
8902
8903 int main() {
8904
8905 /* The GNU C library defines this for functions which it implements
8906     to always fail with ENOSYS.  Some functions are actually named
8907     something starting with __ and the normal name is an alias.  */
8908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8909 choke me
8910 #else
8911 $ac_func();
8912 #endif
8913
8914 ; return 0; }
8915 EOF
8916 if { (eval echo configure:8917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8917   rm -rf conftest*
8918   eval "ac_cv_func_$ac_func=yes"
8919 else
8920   echo "configure: failed program was:" >&5
8921   cat conftest.$ac_ext >&5
8922   rm -rf conftest*
8923   eval "ac_cv_func_$ac_func=no"
8924 fi
8925 rm -f conftest*
8926 fi
8927
8928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8929   echo "$ac_t""yes" 1>&6
8930     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8931   cat >> confdefs.h <<EOF
8932 #define $ac_tr_func 1
8933 EOF
8934  
8935 else
8936   echo "$ac_t""no" 1>&6
8937 fi
8938 done
8939     
8940     fi  
8941   fi
8942
8943   
8944   
8945   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
8946 echo "configure:8947: checking for logf declaration" >&5
8947   if test x${glibcpp_cv_func_logf_use+set} != xset; then
8948     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
8949   echo $ac_n "(cached) $ac_c" 1>&6
8950 else
8951   
8952       
8953       ac_ext=C
8954 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8955 ac_cpp='$CXXCPP $CPPFLAGS'
8956 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8957 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8958 cross_compiling=$ac_cv_prog_cxx_cross
8959
8960       cat > conftest.$ac_ext <<EOF
8961 #line 8962 "configure"
8962 #include "confdefs.h"
8963 #include <math.h>
8964                       #ifdef HAVE_IEEEFP_H
8965                       #include <ieeefp.h>
8966                       #endif
8967                      
8968 int main() {
8969  logf(0);
8970 ; return 0; }
8971 EOF
8972 if { (eval echo configure:8973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8973   rm -rf conftest*
8974   glibcpp_cv_func_logf_use=yes
8975 else
8976   echo "configure: failed program was:" >&5
8977   cat conftest.$ac_ext >&5
8978   rm -rf conftest*
8979   glibcpp_cv_func_logf_use=no
8980 fi
8981 rm -f conftest*
8982       ac_ext=c
8983 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8984 ac_cpp='$CPP $CPPFLAGS'
8985 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8986 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8987 cross_compiling=$ac_cv_prog_cc_cross
8988
8989     
8990 fi
8991
8992   fi
8993   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
8994
8995   if test x$glibcpp_cv_func_logf_use = x"yes"; then
8996     for ac_func in logf
8997 do
8998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8999 echo "configure:9000: checking for $ac_func" >&5
9000 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9001   echo $ac_n "(cached) $ac_c" 1>&6
9002 else
9003   cat > conftest.$ac_ext <<EOF
9004 #line 9005 "configure"
9005 #include "confdefs.h"
9006 /* System header to define __stub macros and hopefully few prototypes,
9007     which can conflict with char $ac_func(); below.  */
9008 #include <assert.h>
9009 /* Override any gcc2 internal prototype to avoid an error.  */
9010 /* We use char because int might match the return type of a gcc2
9011     builtin and then its argument prototype would still apply.  */
9012 char $ac_func();
9013
9014 int main() {
9015
9016 /* The GNU C library defines this for functions which it implements
9017     to always fail with ENOSYS.  Some functions are actually named
9018     something starting with __ and the normal name is an alias.  */
9019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9020 choke me
9021 #else
9022 $ac_func();
9023 #endif
9024
9025 ; return 0; }
9026 EOF
9027 if { (eval echo configure:9028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9028   rm -rf conftest*
9029   eval "ac_cv_func_$ac_func=yes"
9030 else
9031   echo "configure: failed program was:" >&5
9032   cat conftest.$ac_ext >&5
9033   rm -rf conftest*
9034   eval "ac_cv_func_$ac_func=no"
9035 fi
9036 rm -f conftest*
9037 fi
9038
9039 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9040   echo "$ac_t""yes" 1>&6
9041     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9042   cat >> confdefs.h <<EOF
9043 #define $ac_tr_func 1
9044 EOF
9045  
9046 else
9047   echo "$ac_t""no" 1>&6
9048 fi
9049 done
9050     
9051   else
9052     
9053   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
9054 echo "configure:9055: checking for _logf declaration" >&5
9055   if test x${glibcpp_cv_func__logf_use+set} != xset; then
9056     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
9057   echo $ac_n "(cached) $ac_c" 1>&6
9058 else
9059   
9060       
9061       ac_ext=C
9062 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9063 ac_cpp='$CXXCPP $CPPFLAGS'
9064 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9065 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9066 cross_compiling=$ac_cv_prog_cxx_cross
9067
9068       cat > conftest.$ac_ext <<EOF
9069 #line 9070 "configure"
9070 #include "confdefs.h"
9071 #include <math.h>
9072                       #ifdef HAVE_IEEEFP_H
9073                       #include <ieeefp.h>
9074                       #endif
9075                      
9076 int main() {
9077  _logf(0);
9078 ; return 0; }
9079 EOF
9080 if { (eval echo configure:9081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9081   rm -rf conftest*
9082   glibcpp_cv_func__logf_use=yes
9083 else
9084   echo "configure: failed program was:" >&5
9085   cat conftest.$ac_ext >&5
9086   rm -rf conftest*
9087   glibcpp_cv_func__logf_use=no
9088 fi
9089 rm -f conftest*
9090       ac_ext=c
9091 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9092 ac_cpp='$CPP $CPPFLAGS'
9093 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9094 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9095 cross_compiling=$ac_cv_prog_cc_cross
9096
9097     
9098 fi
9099
9100   fi
9101   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
9102
9103     if test x$glibcpp_cv_func__logf_use = x"yes"; then
9104       for ac_func in _logf
9105 do
9106 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9107 echo "configure:9108: checking for $ac_func" >&5
9108 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9109   echo $ac_n "(cached) $ac_c" 1>&6
9110 else
9111   cat > conftest.$ac_ext <<EOF
9112 #line 9113 "configure"
9113 #include "confdefs.h"
9114 /* System header to define __stub macros and hopefully few prototypes,
9115     which can conflict with char $ac_func(); below.  */
9116 #include <assert.h>
9117 /* Override any gcc2 internal prototype to avoid an error.  */
9118 /* We use char because int might match the return type of a gcc2
9119     builtin and then its argument prototype would still apply.  */
9120 char $ac_func();
9121
9122 int main() {
9123
9124 /* The GNU C library defines this for functions which it implements
9125     to always fail with ENOSYS.  Some functions are actually named
9126     something starting with __ and the normal name is an alias.  */
9127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9128 choke me
9129 #else
9130 $ac_func();
9131 #endif
9132
9133 ; return 0; }
9134 EOF
9135 if { (eval echo configure:9136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9136   rm -rf conftest*
9137   eval "ac_cv_func_$ac_func=yes"
9138 else
9139   echo "configure: failed program was:" >&5
9140   cat conftest.$ac_ext >&5
9141   rm -rf conftest*
9142   eval "ac_cv_func_$ac_func=no"
9143 fi
9144 rm -f conftest*
9145 fi
9146
9147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9148   echo "$ac_t""yes" 1>&6
9149     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9150   cat >> confdefs.h <<EOF
9151 #define $ac_tr_func 1
9152 EOF
9153  
9154 else
9155   echo "$ac_t""no" 1>&6
9156 fi
9157 done
9158     
9159     fi  
9160   fi
9161
9162   
9163   
9164   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
9165 echo "configure:9166: checking for log10f declaration" >&5
9166   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
9167     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
9168   echo $ac_n "(cached) $ac_c" 1>&6
9169 else
9170   
9171       
9172       ac_ext=C
9173 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9174 ac_cpp='$CXXCPP $CPPFLAGS'
9175 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9176 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9177 cross_compiling=$ac_cv_prog_cxx_cross
9178
9179       cat > conftest.$ac_ext <<EOF
9180 #line 9181 "configure"
9181 #include "confdefs.h"
9182 #include <math.h>
9183                       #ifdef HAVE_IEEEFP_H
9184                       #include <ieeefp.h>
9185                       #endif
9186                      
9187 int main() {
9188  log10f(0);
9189 ; return 0; }
9190 EOF
9191 if { (eval echo configure:9192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9192   rm -rf conftest*
9193   glibcpp_cv_func_log10f_use=yes
9194 else
9195   echo "configure: failed program was:" >&5
9196   cat conftest.$ac_ext >&5
9197   rm -rf conftest*
9198   glibcpp_cv_func_log10f_use=no
9199 fi
9200 rm -f conftest*
9201       ac_ext=c
9202 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9203 ac_cpp='$CPP $CPPFLAGS'
9204 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9205 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9206 cross_compiling=$ac_cv_prog_cc_cross
9207
9208     
9209 fi
9210
9211   fi
9212   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
9213
9214   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
9215     for ac_func in log10f
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   else
9271     
9272   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
9273 echo "configure:9274: checking for _log10f declaration" >&5
9274   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
9275     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
9276   echo $ac_n "(cached) $ac_c" 1>&6
9277 else
9278   
9279       
9280       ac_ext=C
9281 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9282 ac_cpp='$CXXCPP $CPPFLAGS'
9283 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9284 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9285 cross_compiling=$ac_cv_prog_cxx_cross
9286
9287       cat > conftest.$ac_ext <<EOF
9288 #line 9289 "configure"
9289 #include "confdefs.h"
9290 #include <math.h>
9291                       #ifdef HAVE_IEEEFP_H
9292                       #include <ieeefp.h>
9293                       #endif
9294                      
9295 int main() {
9296  _log10f(0);
9297 ; return 0; }
9298 EOF
9299 if { (eval echo configure:9300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9300   rm -rf conftest*
9301   glibcpp_cv_func__log10f_use=yes
9302 else
9303   echo "configure: failed program was:" >&5
9304   cat conftest.$ac_ext >&5
9305   rm -rf conftest*
9306   glibcpp_cv_func__log10f_use=no
9307 fi
9308 rm -f conftest*
9309       ac_ext=c
9310 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9311 ac_cpp='$CPP $CPPFLAGS'
9312 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9313 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9314 cross_compiling=$ac_cv_prog_cc_cross
9315
9316     
9317 fi
9318
9319   fi
9320   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
9321
9322     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
9323       for ac_func in _log10f
9324 do
9325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9326 echo "configure:9327: checking for $ac_func" >&5
9327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9328   echo $ac_n "(cached) $ac_c" 1>&6
9329 else
9330   cat > conftest.$ac_ext <<EOF
9331 #line 9332 "configure"
9332 #include "confdefs.h"
9333 /* System header to define __stub macros and hopefully few prototypes,
9334     which can conflict with char $ac_func(); below.  */
9335 #include <assert.h>
9336 /* Override any gcc2 internal prototype to avoid an error.  */
9337 /* We use char because int might match the return type of a gcc2
9338     builtin and then its argument prototype would still apply.  */
9339 char $ac_func();
9340
9341 int main() {
9342
9343 /* The GNU C library defines this for functions which it implements
9344     to always fail with ENOSYS.  Some functions are actually named
9345     something starting with __ and the normal name is an alias.  */
9346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9347 choke me
9348 #else
9349 $ac_func();
9350 #endif
9351
9352 ; return 0; }
9353 EOF
9354 if { (eval echo configure:9355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9355   rm -rf conftest*
9356   eval "ac_cv_func_$ac_func=yes"
9357 else
9358   echo "configure: failed program was:" >&5
9359   cat conftest.$ac_ext >&5
9360   rm -rf conftest*
9361   eval "ac_cv_func_$ac_func=no"
9362 fi
9363 rm -f conftest*
9364 fi
9365
9366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9367   echo "$ac_t""yes" 1>&6
9368     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9369   cat >> confdefs.h <<EOF
9370 #define $ac_tr_func 1
9371 EOF
9372  
9373 else
9374   echo "$ac_t""no" 1>&6
9375 fi
9376 done
9377     
9378     fi  
9379   fi
9380
9381   
9382   
9383   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
9384 echo "configure:9385: checking for modff declaration" >&5
9385   if test x${glibcpp_cv_func_modff_use+set} != xset; then
9386     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
9387   echo $ac_n "(cached) $ac_c" 1>&6
9388 else
9389   
9390       
9391       ac_ext=C
9392 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9393 ac_cpp='$CXXCPP $CPPFLAGS'
9394 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9395 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9396 cross_compiling=$ac_cv_prog_cxx_cross
9397
9398       cat > conftest.$ac_ext <<EOF
9399 #line 9400 "configure"
9400 #include "confdefs.h"
9401 #include <math.h>
9402 int main() {
9403  modff(0, 0);
9404 ; return 0; }
9405 EOF
9406 if { (eval echo configure:9407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9407   rm -rf conftest*
9408   glibcpp_cv_func_modff_use=yes
9409 else
9410   echo "configure: failed program was:" >&5
9411   cat conftest.$ac_ext >&5
9412   rm -rf conftest*
9413   glibcpp_cv_func_modff_use=no
9414 fi
9415 rm -f conftest*
9416       ac_ext=c
9417 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9418 ac_cpp='$CPP $CPPFLAGS'
9419 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9420 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9421 cross_compiling=$ac_cv_prog_cc_cross
9422
9423     
9424 fi
9425
9426   fi
9427   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
9428
9429   if test x$glibcpp_cv_func_modff_use = x"yes"; then
9430     for ac_func in modff
9431 do
9432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9433 echo "configure:9434: checking for $ac_func" >&5
9434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9435   echo $ac_n "(cached) $ac_c" 1>&6
9436 else
9437   cat > conftest.$ac_ext <<EOF
9438 #line 9439 "configure"
9439 #include "confdefs.h"
9440 /* System header to define __stub macros and hopefully few prototypes,
9441     which can conflict with char $ac_func(); below.  */
9442 #include <assert.h>
9443 /* Override any gcc2 internal prototype to avoid an error.  */
9444 /* We use char because int might match the return type of a gcc2
9445     builtin and then its argument prototype would still apply.  */
9446 char $ac_func();
9447
9448 int main() {
9449
9450 /* The GNU C library defines this for functions which it implements
9451     to always fail with ENOSYS.  Some functions are actually named
9452     something starting with __ and the normal name is an alias.  */
9453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9454 choke me
9455 #else
9456 $ac_func();
9457 #endif
9458
9459 ; return 0; }
9460 EOF
9461 if { (eval echo configure:9462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9462   rm -rf conftest*
9463   eval "ac_cv_func_$ac_func=yes"
9464 else
9465   echo "configure: failed program was:" >&5
9466   cat conftest.$ac_ext >&5
9467   rm -rf conftest*
9468   eval "ac_cv_func_$ac_func=no"
9469 fi
9470 rm -f conftest*
9471 fi
9472
9473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9474   echo "$ac_t""yes" 1>&6
9475     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9476   cat >> confdefs.h <<EOF
9477 #define $ac_tr_func 1
9478 EOF
9479  
9480 else
9481   echo "$ac_t""no" 1>&6
9482 fi
9483 done
9484     
9485   else
9486     
9487   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
9488 echo "configure:9489: checking for _modff declaration" >&5
9489   if test x${glibcpp_cv_func__modff_use+set} != xset; then
9490     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
9491   echo $ac_n "(cached) $ac_c" 1>&6
9492 else
9493   
9494       
9495       ac_ext=C
9496 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9497 ac_cpp='$CXXCPP $CPPFLAGS'
9498 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9499 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9500 cross_compiling=$ac_cv_prog_cxx_cross
9501
9502       cat > conftest.$ac_ext <<EOF
9503 #line 9504 "configure"
9504 #include "confdefs.h"
9505 #include <math.h>
9506 int main() {
9507  _modff(0, 0);
9508 ; return 0; }
9509 EOF
9510 if { (eval echo configure:9511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9511   rm -rf conftest*
9512   glibcpp_cv_func__modff_use=yes
9513 else
9514   echo "configure: failed program was:" >&5
9515   cat conftest.$ac_ext >&5
9516   rm -rf conftest*
9517   glibcpp_cv_func__modff_use=no
9518 fi
9519 rm -f conftest*
9520       ac_ext=c
9521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9522 ac_cpp='$CPP $CPPFLAGS'
9523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9524 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9525 cross_compiling=$ac_cv_prog_cc_cross
9526
9527     
9528 fi
9529
9530   fi
9531   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
9532
9533     if test x$glibcpp_cv_func__modff_use = x"yes"; then
9534       for ac_func in _modff
9535 do
9536 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9537 echo "configure:9538: checking for $ac_func" >&5
9538 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9539   echo $ac_n "(cached) $ac_c" 1>&6
9540 else
9541   cat > conftest.$ac_ext <<EOF
9542 #line 9543 "configure"
9543 #include "confdefs.h"
9544 /* System header to define __stub macros and hopefully few prototypes,
9545     which can conflict with char $ac_func(); below.  */
9546 #include <assert.h>
9547 /* Override any gcc2 internal prototype to avoid an error.  */
9548 /* We use char because int might match the return type of a gcc2
9549     builtin and then its argument prototype would still apply.  */
9550 char $ac_func();
9551
9552 int main() {
9553
9554 /* The GNU C library defines this for functions which it implements
9555     to always fail with ENOSYS.  Some functions are actually named
9556     something starting with __ and the normal name is an alias.  */
9557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9558 choke me
9559 #else
9560 $ac_func();
9561 #endif
9562
9563 ; return 0; }
9564 EOF
9565 if { (eval echo configure:9566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9566   rm -rf conftest*
9567   eval "ac_cv_func_$ac_func=yes"
9568 else
9569   echo "configure: failed program was:" >&5
9570   cat conftest.$ac_ext >&5
9571   rm -rf conftest*
9572   eval "ac_cv_func_$ac_func=no"
9573 fi
9574 rm -f conftest*
9575 fi
9576
9577 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9578   echo "$ac_t""yes" 1>&6
9579     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9580   cat >> confdefs.h <<EOF
9581 #define $ac_tr_func 1
9582 EOF
9583  
9584 else
9585   echo "$ac_t""no" 1>&6
9586 fi
9587 done
9588     
9589     fi  
9590   fi
9591
9592   
9593   
9594   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
9595 echo "configure:9596: checking for powf declaration" >&5
9596   if test x${glibcpp_cv_func_powf_use+set} != xset; then
9597     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
9598   echo $ac_n "(cached) $ac_c" 1>&6
9599 else
9600   
9601       
9602       ac_ext=C
9603 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9604 ac_cpp='$CXXCPP $CPPFLAGS'
9605 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9606 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9607 cross_compiling=$ac_cv_prog_cxx_cross
9608
9609       cat > conftest.$ac_ext <<EOF
9610 #line 9611 "configure"
9611 #include "confdefs.h"
9612 #include <math.h>
9613 int main() {
9614  powf(0, 0);
9615 ; return 0; }
9616 EOF
9617 if { (eval echo configure:9618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9618   rm -rf conftest*
9619   glibcpp_cv_func_powf_use=yes
9620 else
9621   echo "configure: failed program was:" >&5
9622   cat conftest.$ac_ext >&5
9623   rm -rf conftest*
9624   glibcpp_cv_func_powf_use=no
9625 fi
9626 rm -f conftest*
9627       ac_ext=c
9628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9629 ac_cpp='$CPP $CPPFLAGS'
9630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9632 cross_compiling=$ac_cv_prog_cc_cross
9633
9634     
9635 fi
9636
9637   fi
9638   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
9639
9640   if test x$glibcpp_cv_func_powf_use = x"yes"; then
9641     for ac_func in powf
9642 do
9643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9644 echo "configure:9645: checking for $ac_func" >&5
9645 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9646   echo $ac_n "(cached) $ac_c" 1>&6
9647 else
9648   cat > conftest.$ac_ext <<EOF
9649 #line 9650 "configure"
9650 #include "confdefs.h"
9651 /* System header to define __stub macros and hopefully few prototypes,
9652     which can conflict with char $ac_func(); below.  */
9653 #include <assert.h>
9654 /* Override any gcc2 internal prototype to avoid an error.  */
9655 /* We use char because int might match the return type of a gcc2
9656     builtin and then its argument prototype would still apply.  */
9657 char $ac_func();
9658
9659 int main() {
9660
9661 /* The GNU C library defines this for functions which it implements
9662     to always fail with ENOSYS.  Some functions are actually named
9663     something starting with __ and the normal name is an alias.  */
9664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9665 choke me
9666 #else
9667 $ac_func();
9668 #endif
9669
9670 ; return 0; }
9671 EOF
9672 if { (eval echo configure:9673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9673   rm -rf conftest*
9674   eval "ac_cv_func_$ac_func=yes"
9675 else
9676   echo "configure: failed program was:" >&5
9677   cat conftest.$ac_ext >&5
9678   rm -rf conftest*
9679   eval "ac_cv_func_$ac_func=no"
9680 fi
9681 rm -f conftest*
9682 fi
9683
9684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9685   echo "$ac_t""yes" 1>&6
9686     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9687   cat >> confdefs.h <<EOF
9688 #define $ac_tr_func 1
9689 EOF
9690  
9691 else
9692   echo "$ac_t""no" 1>&6
9693 fi
9694 done
9695     
9696   else
9697     
9698   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
9699 echo "configure:9700: checking for _powf declaration" >&5
9700   if test x${glibcpp_cv_func__powf_use+set} != xset; then
9701     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
9702   echo $ac_n "(cached) $ac_c" 1>&6
9703 else
9704   
9705       
9706       ac_ext=C
9707 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9708 ac_cpp='$CXXCPP $CPPFLAGS'
9709 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9710 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9711 cross_compiling=$ac_cv_prog_cxx_cross
9712
9713       cat > conftest.$ac_ext <<EOF
9714 #line 9715 "configure"
9715 #include "confdefs.h"
9716 #include <math.h>
9717 int main() {
9718  _powf(0, 0);
9719 ; return 0; }
9720 EOF
9721 if { (eval echo configure:9722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9722   rm -rf conftest*
9723   glibcpp_cv_func__powf_use=yes
9724 else
9725   echo "configure: failed program was:" >&5
9726   cat conftest.$ac_ext >&5
9727   rm -rf conftest*
9728   glibcpp_cv_func__powf_use=no
9729 fi
9730 rm -f conftest*
9731       ac_ext=c
9732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9733 ac_cpp='$CPP $CPPFLAGS'
9734 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9735 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9736 cross_compiling=$ac_cv_prog_cc_cross
9737
9738     
9739 fi
9740
9741   fi
9742   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
9743
9744     if test x$glibcpp_cv_func__powf_use = x"yes"; then
9745       for ac_func in _powf
9746 do
9747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9748 echo "configure:9749: checking for $ac_func" >&5
9749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9750   echo $ac_n "(cached) $ac_c" 1>&6
9751 else
9752   cat > conftest.$ac_ext <<EOF
9753 #line 9754 "configure"
9754 #include "confdefs.h"
9755 /* System header to define __stub macros and hopefully few prototypes,
9756     which can conflict with char $ac_func(); below.  */
9757 #include <assert.h>
9758 /* Override any gcc2 internal prototype to avoid an error.  */
9759 /* We use char because int might match the return type of a gcc2
9760     builtin and then its argument prototype would still apply.  */
9761 char $ac_func();
9762
9763 int main() {
9764
9765 /* The GNU C library defines this for functions which it implements
9766     to always fail with ENOSYS.  Some functions are actually named
9767     something starting with __ and the normal name is an alias.  */
9768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9769 choke me
9770 #else
9771 $ac_func();
9772 #endif
9773
9774 ; return 0; }
9775 EOF
9776 if { (eval echo configure:9777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9777   rm -rf conftest*
9778   eval "ac_cv_func_$ac_func=yes"
9779 else
9780   echo "configure: failed program was:" >&5
9781   cat conftest.$ac_ext >&5
9782   rm -rf conftest*
9783   eval "ac_cv_func_$ac_func=no"
9784 fi
9785 rm -f conftest*
9786 fi
9787
9788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9789   echo "$ac_t""yes" 1>&6
9790     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9791   cat >> confdefs.h <<EOF
9792 #define $ac_tr_func 1
9793 EOF
9794  
9795 else
9796   echo "$ac_t""no" 1>&6
9797 fi
9798 done
9799     
9800     fi  
9801   fi
9802
9803   
9804   
9805   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
9806 echo "configure:9807: checking for sqrtf declaration" >&5
9807   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
9808     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
9809   echo $ac_n "(cached) $ac_c" 1>&6
9810 else
9811   
9812       
9813       ac_ext=C
9814 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9815 ac_cpp='$CXXCPP $CPPFLAGS'
9816 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9817 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9818 cross_compiling=$ac_cv_prog_cxx_cross
9819
9820       cat > conftest.$ac_ext <<EOF
9821 #line 9822 "configure"
9822 #include "confdefs.h"
9823 #include <math.h>
9824                       #ifdef HAVE_IEEEFP_H
9825                       #include <ieeefp.h>
9826                       #endif
9827                      
9828 int main() {
9829  sqrtf(0);
9830 ; return 0; }
9831 EOF
9832 if { (eval echo configure:9833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9833   rm -rf conftest*
9834   glibcpp_cv_func_sqrtf_use=yes
9835 else
9836   echo "configure: failed program was:" >&5
9837   cat conftest.$ac_ext >&5
9838   rm -rf conftest*
9839   glibcpp_cv_func_sqrtf_use=no
9840 fi
9841 rm -f conftest*
9842       ac_ext=c
9843 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9844 ac_cpp='$CPP $CPPFLAGS'
9845 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9846 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9847 cross_compiling=$ac_cv_prog_cc_cross
9848
9849     
9850 fi
9851
9852   fi
9853   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
9854
9855   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
9856     for ac_func in sqrtf
9857 do
9858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9859 echo "configure:9860: checking for $ac_func" >&5
9860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9861   echo $ac_n "(cached) $ac_c" 1>&6
9862 else
9863   cat > conftest.$ac_ext <<EOF
9864 #line 9865 "configure"
9865 #include "confdefs.h"
9866 /* System header to define __stub macros and hopefully few prototypes,
9867     which can conflict with char $ac_func(); below.  */
9868 #include <assert.h>
9869 /* Override any gcc2 internal prototype to avoid an error.  */
9870 /* We use char because int might match the return type of a gcc2
9871     builtin and then its argument prototype would still apply.  */
9872 char $ac_func();
9873
9874 int main() {
9875
9876 /* The GNU C library defines this for functions which it implements
9877     to always fail with ENOSYS.  Some functions are actually named
9878     something starting with __ and the normal name is an alias.  */
9879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9880 choke me
9881 #else
9882 $ac_func();
9883 #endif
9884
9885 ; return 0; }
9886 EOF
9887 if { (eval echo configure:9888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9888   rm -rf conftest*
9889   eval "ac_cv_func_$ac_func=yes"
9890 else
9891   echo "configure: failed program was:" >&5
9892   cat conftest.$ac_ext >&5
9893   rm -rf conftest*
9894   eval "ac_cv_func_$ac_func=no"
9895 fi
9896 rm -f conftest*
9897 fi
9898
9899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9900   echo "$ac_t""yes" 1>&6
9901     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9902   cat >> confdefs.h <<EOF
9903 #define $ac_tr_func 1
9904 EOF
9905  
9906 else
9907   echo "$ac_t""no" 1>&6
9908 fi
9909 done
9910     
9911   else
9912     
9913   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
9914 echo "configure:9915: checking for _sqrtf declaration" >&5
9915   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
9916     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
9917   echo $ac_n "(cached) $ac_c" 1>&6
9918 else
9919   
9920       
9921       ac_ext=C
9922 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9923 ac_cpp='$CXXCPP $CPPFLAGS'
9924 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9925 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9926 cross_compiling=$ac_cv_prog_cxx_cross
9927
9928       cat > conftest.$ac_ext <<EOF
9929 #line 9930 "configure"
9930 #include "confdefs.h"
9931 #include <math.h>
9932                       #ifdef HAVE_IEEEFP_H
9933                       #include <ieeefp.h>
9934                       #endif
9935                      
9936 int main() {
9937  _sqrtf(0);
9938 ; return 0; }
9939 EOF
9940 if { (eval echo configure:9941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9941   rm -rf conftest*
9942   glibcpp_cv_func__sqrtf_use=yes
9943 else
9944   echo "configure: failed program was:" >&5
9945   cat conftest.$ac_ext >&5
9946   rm -rf conftest*
9947   glibcpp_cv_func__sqrtf_use=no
9948 fi
9949 rm -f conftest*
9950       ac_ext=c
9951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9952 ac_cpp='$CPP $CPPFLAGS'
9953 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9954 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9955 cross_compiling=$ac_cv_prog_cc_cross
9956
9957     
9958 fi
9959
9960   fi
9961   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
9962
9963     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
9964       for ac_func in _sqrtf
9965 do
9966 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9967 echo "configure:9968: checking for $ac_func" >&5
9968 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9969   echo $ac_n "(cached) $ac_c" 1>&6
9970 else
9971   cat > conftest.$ac_ext <<EOF
9972 #line 9973 "configure"
9973 #include "confdefs.h"
9974 /* System header to define __stub macros and hopefully few prototypes,
9975     which can conflict with char $ac_func(); below.  */
9976 #include <assert.h>
9977 /* Override any gcc2 internal prototype to avoid an error.  */
9978 /* We use char because int might match the return type of a gcc2
9979     builtin and then its argument prototype would still apply.  */
9980 char $ac_func();
9981
9982 int main() {
9983
9984 /* The GNU C library defines this for functions which it implements
9985     to always fail with ENOSYS.  Some functions are actually named
9986     something starting with __ and the normal name is an alias.  */
9987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9988 choke me
9989 #else
9990 $ac_func();
9991 #endif
9992
9993 ; return 0; }
9994 EOF
9995 if { (eval echo configure:9996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9996   rm -rf conftest*
9997   eval "ac_cv_func_$ac_func=yes"
9998 else
9999   echo "configure: failed program was:" >&5
10000   cat conftest.$ac_ext >&5
10001   rm -rf conftest*
10002   eval "ac_cv_func_$ac_func=no"
10003 fi
10004 rm -f conftest*
10005 fi
10006
10007 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10008   echo "$ac_t""yes" 1>&6
10009     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10010   cat >> confdefs.h <<EOF
10011 #define $ac_tr_func 1
10012 EOF
10013  
10014 else
10015   echo "$ac_t""no" 1>&6
10016 fi
10017 done
10018     
10019     fi  
10020   fi
10021
10022   
10023   
10024   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
10025 echo "configure:10026: checking for sincosf declaration" >&5
10026   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
10027     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
10028   echo $ac_n "(cached) $ac_c" 1>&6
10029 else
10030   
10031       
10032       ac_ext=C
10033 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10034 ac_cpp='$CXXCPP $CPPFLAGS'
10035 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10036 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10037 cross_compiling=$ac_cv_prog_cxx_cross
10038
10039       cat > conftest.$ac_ext <<EOF
10040 #line 10041 "configure"
10041 #include "confdefs.h"
10042 #include <math.h>
10043 int main() {
10044  sincosf(0, 0, 0);
10045 ; return 0; }
10046 EOF
10047 if { (eval echo configure:10048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10048   rm -rf conftest*
10049   glibcpp_cv_func_sincosf_use=yes
10050 else
10051   echo "configure: failed program was:" >&5
10052   cat conftest.$ac_ext >&5
10053   rm -rf conftest*
10054   glibcpp_cv_func_sincosf_use=no
10055 fi
10056 rm -f conftest*
10057       ac_ext=c
10058 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10059 ac_cpp='$CPP $CPPFLAGS'
10060 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10061 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10062 cross_compiling=$ac_cv_prog_cc_cross
10063
10064     
10065 fi
10066
10067   fi
10068   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
10069
10070   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
10071     for ac_func in sincosf
10072 do
10073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10074 echo "configure:10075: checking for $ac_func" >&5
10075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10076   echo $ac_n "(cached) $ac_c" 1>&6
10077 else
10078   cat > conftest.$ac_ext <<EOF
10079 #line 10080 "configure"
10080 #include "confdefs.h"
10081 /* System header to define __stub macros and hopefully few prototypes,
10082     which can conflict with char $ac_func(); below.  */
10083 #include <assert.h>
10084 /* Override any gcc2 internal prototype to avoid an error.  */
10085 /* We use char because int might match the return type of a gcc2
10086     builtin and then its argument prototype would still apply.  */
10087 char $ac_func();
10088
10089 int main() {
10090
10091 /* The GNU C library defines this for functions which it implements
10092     to always fail with ENOSYS.  Some functions are actually named
10093     something starting with __ and the normal name is an alias.  */
10094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10095 choke me
10096 #else
10097 $ac_func();
10098 #endif
10099
10100 ; return 0; }
10101 EOF
10102 if { (eval echo configure:10103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10103   rm -rf conftest*
10104   eval "ac_cv_func_$ac_func=yes"
10105 else
10106   echo "configure: failed program was:" >&5
10107   cat conftest.$ac_ext >&5
10108   rm -rf conftest*
10109   eval "ac_cv_func_$ac_func=no"
10110 fi
10111 rm -f conftest*
10112 fi
10113
10114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10115   echo "$ac_t""yes" 1>&6
10116     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10117   cat >> confdefs.h <<EOF
10118 #define $ac_tr_func 1
10119 EOF
10120  
10121 else
10122   echo "$ac_t""no" 1>&6
10123 fi
10124 done
10125     
10126   else
10127     
10128   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
10129 echo "configure:10130: checking for _sincosf declaration" >&5
10130   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
10131     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
10132   echo $ac_n "(cached) $ac_c" 1>&6
10133 else
10134   
10135       
10136       ac_ext=C
10137 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10138 ac_cpp='$CXXCPP $CPPFLAGS'
10139 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10140 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10141 cross_compiling=$ac_cv_prog_cxx_cross
10142
10143       cat > conftest.$ac_ext <<EOF
10144 #line 10145 "configure"
10145 #include "confdefs.h"
10146 #include <math.h>
10147 int main() {
10148  _sincosf(0, 0, 0);
10149 ; return 0; }
10150 EOF
10151 if { (eval echo configure:10152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10152   rm -rf conftest*
10153   glibcpp_cv_func__sincosf_use=yes
10154 else
10155   echo "configure: failed program was:" >&5
10156   cat conftest.$ac_ext >&5
10157   rm -rf conftest*
10158   glibcpp_cv_func__sincosf_use=no
10159 fi
10160 rm -f conftest*
10161       ac_ext=c
10162 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10163 ac_cpp='$CPP $CPPFLAGS'
10164 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10165 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10166 cross_compiling=$ac_cv_prog_cc_cross
10167
10168     
10169 fi
10170
10171   fi
10172   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
10173
10174     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
10175       for ac_func in _sincosf
10176 do
10177 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10178 echo "configure:10179: checking for $ac_func" >&5
10179 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10180   echo $ac_n "(cached) $ac_c" 1>&6
10181 else
10182   cat > conftest.$ac_ext <<EOF
10183 #line 10184 "configure"
10184 #include "confdefs.h"
10185 /* System header to define __stub macros and hopefully few prototypes,
10186     which can conflict with char $ac_func(); below.  */
10187 #include <assert.h>
10188 /* Override any gcc2 internal prototype to avoid an error.  */
10189 /* We use char because int might match the return type of a gcc2
10190     builtin and then its argument prototype would still apply.  */
10191 char $ac_func();
10192
10193 int main() {
10194
10195 /* The GNU C library defines this for functions which it implements
10196     to always fail with ENOSYS.  Some functions are actually named
10197     something starting with __ and the normal name is an alias.  */
10198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10199 choke me
10200 #else
10201 $ac_func();
10202 #endif
10203
10204 ; return 0; }
10205 EOF
10206 if { (eval echo configure:10207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10207   rm -rf conftest*
10208   eval "ac_cv_func_$ac_func=yes"
10209 else
10210   echo "configure: failed program was:" >&5
10211   cat conftest.$ac_ext >&5
10212   rm -rf conftest*
10213   eval "ac_cv_func_$ac_func=no"
10214 fi
10215 rm -f conftest*
10216 fi
10217
10218 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10219   echo "$ac_t""yes" 1>&6
10220     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10221   cat >> confdefs.h <<EOF
10222 #define $ac_tr_func 1
10223 EOF
10224  
10225 else
10226   echo "$ac_t""no" 1>&6
10227 fi
10228 done
10229     
10230     fi  
10231   fi
10232
10233   
10234   
10235   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
10236 echo "configure:10237: checking for finitef declaration" >&5
10237   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
10238     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
10239   echo $ac_n "(cached) $ac_c" 1>&6
10240 else
10241   
10242       
10243       ac_ext=C
10244 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10245 ac_cpp='$CXXCPP $CPPFLAGS'
10246 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10247 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10248 cross_compiling=$ac_cv_prog_cxx_cross
10249
10250       cat > conftest.$ac_ext <<EOF
10251 #line 10252 "configure"
10252 #include "confdefs.h"
10253 #include <math.h>
10254                       #ifdef HAVE_IEEEFP_H
10255                       #include <ieeefp.h>
10256                       #endif
10257                      
10258 int main() {
10259  finitef(0);
10260 ; return 0; }
10261 EOF
10262 if { (eval echo configure:10263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10263   rm -rf conftest*
10264   glibcpp_cv_func_finitef_use=yes
10265 else
10266   echo "configure: failed program was:" >&5
10267   cat conftest.$ac_ext >&5
10268   rm -rf conftest*
10269   glibcpp_cv_func_finitef_use=no
10270 fi
10271 rm -f conftest*
10272       ac_ext=c
10273 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10274 ac_cpp='$CPP $CPPFLAGS'
10275 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10276 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10277 cross_compiling=$ac_cv_prog_cc_cross
10278
10279     
10280 fi
10281
10282   fi
10283   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
10284
10285   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
10286     for ac_func in finitef
10287 do
10288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10289 echo "configure:10290: checking for $ac_func" >&5
10290 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10291   echo $ac_n "(cached) $ac_c" 1>&6
10292 else
10293   cat > conftest.$ac_ext <<EOF
10294 #line 10295 "configure"
10295 #include "confdefs.h"
10296 /* System header to define __stub macros and hopefully few prototypes,
10297     which can conflict with char $ac_func(); below.  */
10298 #include <assert.h>
10299 /* Override any gcc2 internal prototype to avoid an error.  */
10300 /* We use char because int might match the return type of a gcc2
10301     builtin and then its argument prototype would still apply.  */
10302 char $ac_func();
10303
10304 int main() {
10305
10306 /* The GNU C library defines this for functions which it implements
10307     to always fail with ENOSYS.  Some functions are actually named
10308     something starting with __ and the normal name is an alias.  */
10309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10310 choke me
10311 #else
10312 $ac_func();
10313 #endif
10314
10315 ; return 0; }
10316 EOF
10317 if { (eval echo configure:10318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10318   rm -rf conftest*
10319   eval "ac_cv_func_$ac_func=yes"
10320 else
10321   echo "configure: failed program was:" >&5
10322   cat conftest.$ac_ext >&5
10323   rm -rf conftest*
10324   eval "ac_cv_func_$ac_func=no"
10325 fi
10326 rm -f conftest*
10327 fi
10328
10329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10330   echo "$ac_t""yes" 1>&6
10331     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10332   cat >> confdefs.h <<EOF
10333 #define $ac_tr_func 1
10334 EOF
10335  
10336 else
10337   echo "$ac_t""no" 1>&6
10338 fi
10339 done
10340     
10341   else
10342     
10343   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
10344 echo "configure:10345: checking for _finitef declaration" >&5
10345   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
10346     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
10347   echo $ac_n "(cached) $ac_c" 1>&6
10348 else
10349   
10350       
10351       ac_ext=C
10352 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10353 ac_cpp='$CXXCPP $CPPFLAGS'
10354 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10355 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10356 cross_compiling=$ac_cv_prog_cxx_cross
10357
10358       cat > conftest.$ac_ext <<EOF
10359 #line 10360 "configure"
10360 #include "confdefs.h"
10361 #include <math.h>
10362                       #ifdef HAVE_IEEEFP_H
10363                       #include <ieeefp.h>
10364                       #endif
10365                      
10366 int main() {
10367  _finitef(0);
10368 ; return 0; }
10369 EOF
10370 if { (eval echo configure:10371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10371   rm -rf conftest*
10372   glibcpp_cv_func__finitef_use=yes
10373 else
10374   echo "configure: failed program was:" >&5
10375   cat conftest.$ac_ext >&5
10376   rm -rf conftest*
10377   glibcpp_cv_func__finitef_use=no
10378 fi
10379 rm -f conftest*
10380       ac_ext=c
10381 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10382 ac_cpp='$CPP $CPPFLAGS'
10383 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10384 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10385 cross_compiling=$ac_cv_prog_cc_cross
10386
10387     
10388 fi
10389
10390   fi
10391   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
10392
10393     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
10394       for ac_func in _finitef
10395 do
10396 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10397 echo "configure:10398: checking for $ac_func" >&5
10398 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10399   echo $ac_n "(cached) $ac_c" 1>&6
10400 else
10401   cat > conftest.$ac_ext <<EOF
10402 #line 10403 "configure"
10403 #include "confdefs.h"
10404 /* System header to define __stub macros and hopefully few prototypes,
10405     which can conflict with char $ac_func(); below.  */
10406 #include <assert.h>
10407 /* Override any gcc2 internal prototype to avoid an error.  */
10408 /* We use char because int might match the return type of a gcc2
10409     builtin and then its argument prototype would still apply.  */
10410 char $ac_func();
10411
10412 int main() {
10413
10414 /* The GNU C library defines this for functions which it implements
10415     to always fail with ENOSYS.  Some functions are actually named
10416     something starting with __ and the normal name is an alias.  */
10417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10418 choke me
10419 #else
10420 $ac_func();
10421 #endif
10422
10423 ; return 0; }
10424 EOF
10425 if { (eval echo configure:10426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10426   rm -rf conftest*
10427   eval "ac_cv_func_$ac_func=yes"
10428 else
10429   echo "configure: failed program was:" >&5
10430   cat conftest.$ac_ext >&5
10431   rm -rf conftest*
10432   eval "ac_cv_func_$ac_func=no"
10433 fi
10434 rm -f conftest*
10435 fi
10436
10437 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10438   echo "$ac_t""yes" 1>&6
10439     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10440   cat >> confdefs.h <<EOF
10441 #define $ac_tr_func 1
10442 EOF
10443  
10444 else
10445   echo "$ac_t""no" 1>&6
10446 fi
10447 done
10448     
10449     fi  
10450   fi
10451
10452
10453     
10454   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
10455 echo "configure:10456: checking for long double trig functions" >&5
10456   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
10457   echo $ac_n "(cached) $ac_c" 1>&6
10458 else
10459   
10460     
10461     ac_ext=C
10462 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10463 ac_cpp='$CXXCPP $CPPFLAGS'
10464 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10465 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10466 cross_compiling=$ac_cv_prog_cxx_cross
10467
10468     cat > conftest.$ac_ext <<EOF
10469 #line 10470 "configure"
10470 #include "confdefs.h"
10471 #include <math.h>
10472 int main() {
10473  `for x in acosl asinl atanl \
10474                                           cosl sinl tanl \
10475                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
10476 ; return 0; }
10477 EOF
10478 if { (eval echo configure:10479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10479   rm -rf conftest*
10480   glibcpp_cv_func_long_double_trig_use=yes
10481 else
10482   echo "configure: failed program was:" >&5
10483   cat conftest.$ac_ext >&5
10484   rm -rf conftest*
10485   glibcpp_cv_func_long_double_trig_use=no
10486 fi
10487 rm -f conftest*
10488     ac_ext=c
10489 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10490 ac_cpp='$CPP $CPPFLAGS'
10491 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10492 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10493 cross_compiling=$ac_cv_prog_cc_cross
10494
10495 fi
10496
10497   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
10498   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
10499     for ac_func in acosl asinl atanl \
10500                                           cosl sinl tanl \
10501                                           coshl sinhl tanhl
10502 do
10503 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10504 echo "configure:10505: checking for $ac_func" >&5
10505 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10506   echo $ac_n "(cached) $ac_c" 1>&6
10507 else
10508   cat > conftest.$ac_ext <<EOF
10509 #line 10510 "configure"
10510 #include "confdefs.h"
10511 /* System header to define __stub macros and hopefully few prototypes,
10512     which can conflict with char $ac_func(); below.  */
10513 #include <assert.h>
10514 /* Override any gcc2 internal prototype to avoid an error.  */
10515 /* We use char because int might match the return type of a gcc2
10516     builtin and then its argument prototype would still apply.  */
10517 char $ac_func();
10518
10519 int main() {
10520
10521 /* The GNU C library defines this for functions which it implements
10522     to always fail with ENOSYS.  Some functions are actually named
10523     something starting with __ and the normal name is an alias.  */
10524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10525 choke me
10526 #else
10527 $ac_func();
10528 #endif
10529
10530 ; return 0; }
10531 EOF
10532 if { (eval echo configure:10533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10533   rm -rf conftest*
10534   eval "ac_cv_func_$ac_func=yes"
10535 else
10536   echo "configure: failed program was:" >&5
10537   cat conftest.$ac_ext >&5
10538   rm -rf conftest*
10539   eval "ac_cv_func_$ac_func=no"
10540 fi
10541 rm -f conftest*
10542 fi
10543
10544 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10545   echo "$ac_t""yes" 1>&6
10546     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10547   cat >> confdefs.h <<EOF
10548 #define $ac_tr_func 1
10549 EOF
10550  
10551 else
10552   echo "$ac_t""no" 1>&6
10553 fi
10554 done
10555
10556   fi
10557
10558   
10559   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
10560 echo "configure:10561: checking for long double round functions" >&5
10561   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
10562   echo $ac_n "(cached) $ac_c" 1>&6
10563 else
10564   
10565     
10566     ac_ext=C
10567 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10568 ac_cpp='$CXXCPP $CPPFLAGS'
10569 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10570 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10571 cross_compiling=$ac_cv_prog_cxx_cross
10572
10573     cat > conftest.$ac_ext <<EOF
10574 #line 10575 "configure"
10575 #include "confdefs.h"
10576 #include <math.h>
10577 int main() {
10578  `for x in ceill floorl; do echo "$x (0);"; done` 
10579 ; return 0; }
10580 EOF
10581 if { (eval echo configure:10582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10582   rm -rf conftest*
10583   glibcpp_cv_func_long_double_round_use=yes
10584 else
10585   echo "configure: failed program was:" >&5
10586   cat conftest.$ac_ext >&5
10587   rm -rf conftest*
10588   glibcpp_cv_func_long_double_round_use=no
10589 fi
10590 rm -f conftest*
10591     ac_ext=c
10592 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10593 ac_cpp='$CPP $CPPFLAGS'
10594 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10595 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10596 cross_compiling=$ac_cv_prog_cc_cross
10597
10598 fi
10599
10600   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
10601   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
10602     for ac_func in ceill floorl
10603 do
10604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10605 echo "configure:10606: checking for $ac_func" >&5
10606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10607   echo $ac_n "(cached) $ac_c" 1>&6
10608 else
10609   cat > conftest.$ac_ext <<EOF
10610 #line 10611 "configure"
10611 #include "confdefs.h"
10612 /* System header to define __stub macros and hopefully few prototypes,
10613     which can conflict with char $ac_func(); below.  */
10614 #include <assert.h>
10615 /* Override any gcc2 internal prototype to avoid an error.  */
10616 /* We use char because int might match the return type of a gcc2
10617     builtin and then its argument prototype would still apply.  */
10618 char $ac_func();
10619
10620 int main() {
10621
10622 /* The GNU C library defines this for functions which it implements
10623     to always fail with ENOSYS.  Some functions are actually named
10624     something starting with __ and the normal name is an alias.  */
10625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10626 choke me
10627 #else
10628 $ac_func();
10629 #endif
10630
10631 ; return 0; }
10632 EOF
10633 if { (eval echo configure:10634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10634   rm -rf conftest*
10635   eval "ac_cv_func_$ac_func=yes"
10636 else
10637   echo "configure: failed program was:" >&5
10638   cat conftest.$ac_ext >&5
10639   rm -rf conftest*
10640   eval "ac_cv_func_$ac_func=no"
10641 fi
10642 rm -f conftest*
10643 fi
10644
10645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10646   echo "$ac_t""yes" 1>&6
10647     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10648   cat >> confdefs.h <<EOF
10649 #define $ac_tr_func 1
10650 EOF
10651  
10652 else
10653   echo "$ac_t""no" 1>&6
10654 fi
10655 done
10656
10657   fi
10658
10659   
10660   
10661   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
10662 echo "configure:10663: checking for isnanl declaration" >&5
10663   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
10664     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
10665   echo $ac_n "(cached) $ac_c" 1>&6
10666 else
10667   
10668       
10669       ac_ext=C
10670 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10671 ac_cpp='$CXXCPP $CPPFLAGS'
10672 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10673 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10674 cross_compiling=$ac_cv_prog_cxx_cross
10675
10676       cat > conftest.$ac_ext <<EOF
10677 #line 10678 "configure"
10678 #include "confdefs.h"
10679 #include <math.h>
10680                       #ifdef HAVE_IEEEFP_H
10681                       #include <ieeefp.h>
10682                       #endif
10683                      
10684 int main() {
10685  isnanl(0);
10686 ; return 0; }
10687 EOF
10688 if { (eval echo configure:10689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10689   rm -rf conftest*
10690   glibcpp_cv_func_isnanl_use=yes
10691 else
10692   echo "configure: failed program was:" >&5
10693   cat conftest.$ac_ext >&5
10694   rm -rf conftest*
10695   glibcpp_cv_func_isnanl_use=no
10696 fi
10697 rm -f conftest*
10698       ac_ext=c
10699 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10700 ac_cpp='$CPP $CPPFLAGS'
10701 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10702 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10703 cross_compiling=$ac_cv_prog_cc_cross
10704
10705     
10706 fi
10707
10708   fi
10709   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
10710
10711   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
10712     for ac_func in isnanl
10713 do
10714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10715 echo "configure:10716: checking for $ac_func" >&5
10716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10717   echo $ac_n "(cached) $ac_c" 1>&6
10718 else
10719   cat > conftest.$ac_ext <<EOF
10720 #line 10721 "configure"
10721 #include "confdefs.h"
10722 /* System header to define __stub macros and hopefully few prototypes,
10723     which can conflict with char $ac_func(); below.  */
10724 #include <assert.h>
10725 /* Override any gcc2 internal prototype to avoid an error.  */
10726 /* We use char because int might match the return type of a gcc2
10727     builtin and then its argument prototype would still apply.  */
10728 char $ac_func();
10729
10730 int main() {
10731
10732 /* The GNU C library defines this for functions which it implements
10733     to always fail with ENOSYS.  Some functions are actually named
10734     something starting with __ and the normal name is an alias.  */
10735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10736 choke me
10737 #else
10738 $ac_func();
10739 #endif
10740
10741 ; return 0; }
10742 EOF
10743 if { (eval echo configure:10744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10744   rm -rf conftest*
10745   eval "ac_cv_func_$ac_func=yes"
10746 else
10747   echo "configure: failed program was:" >&5
10748   cat conftest.$ac_ext >&5
10749   rm -rf conftest*
10750   eval "ac_cv_func_$ac_func=no"
10751 fi
10752 rm -f conftest*
10753 fi
10754
10755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10756   echo "$ac_t""yes" 1>&6
10757     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10758   cat >> confdefs.h <<EOF
10759 #define $ac_tr_func 1
10760 EOF
10761  
10762 else
10763   echo "$ac_t""no" 1>&6
10764 fi
10765 done
10766     
10767   else
10768     
10769   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
10770 echo "configure:10771: checking for _isnanl declaration" >&5
10771   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
10772     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
10773   echo $ac_n "(cached) $ac_c" 1>&6
10774 else
10775   
10776       
10777       ac_ext=C
10778 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10779 ac_cpp='$CXXCPP $CPPFLAGS'
10780 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10781 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10782 cross_compiling=$ac_cv_prog_cxx_cross
10783
10784       cat > conftest.$ac_ext <<EOF
10785 #line 10786 "configure"
10786 #include "confdefs.h"
10787 #include <math.h>
10788                       #ifdef HAVE_IEEEFP_H
10789                       #include <ieeefp.h>
10790                       #endif
10791                      
10792 int main() {
10793  _isnanl(0);
10794 ; return 0; }
10795 EOF
10796 if { (eval echo configure:10797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10797   rm -rf conftest*
10798   glibcpp_cv_func__isnanl_use=yes
10799 else
10800   echo "configure: failed program was:" >&5
10801   cat conftest.$ac_ext >&5
10802   rm -rf conftest*
10803   glibcpp_cv_func__isnanl_use=no
10804 fi
10805 rm -f conftest*
10806       ac_ext=c
10807 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10808 ac_cpp='$CPP $CPPFLAGS'
10809 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10810 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10811 cross_compiling=$ac_cv_prog_cc_cross
10812
10813     
10814 fi
10815
10816   fi
10817   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
10818
10819     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
10820       for ac_func in _isnanl
10821 do
10822 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10823 echo "configure:10824: checking for $ac_func" >&5
10824 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10825   echo $ac_n "(cached) $ac_c" 1>&6
10826 else
10827   cat > conftest.$ac_ext <<EOF
10828 #line 10829 "configure"
10829 #include "confdefs.h"
10830 /* System header to define __stub macros and hopefully few prototypes,
10831     which can conflict with char $ac_func(); below.  */
10832 #include <assert.h>
10833 /* Override any gcc2 internal prototype to avoid an error.  */
10834 /* We use char because int might match the return type of a gcc2
10835     builtin and then its argument prototype would still apply.  */
10836 char $ac_func();
10837
10838 int main() {
10839
10840 /* The GNU C library defines this for functions which it implements
10841     to always fail with ENOSYS.  Some functions are actually named
10842     something starting with __ and the normal name is an alias.  */
10843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10844 choke me
10845 #else
10846 $ac_func();
10847 #endif
10848
10849 ; return 0; }
10850 EOF
10851 if { (eval echo configure:10852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10852   rm -rf conftest*
10853   eval "ac_cv_func_$ac_func=yes"
10854 else
10855   echo "configure: failed program was:" >&5
10856   cat conftest.$ac_ext >&5
10857   rm -rf conftest*
10858   eval "ac_cv_func_$ac_func=no"
10859 fi
10860 rm -f conftest*
10861 fi
10862
10863 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10864   echo "$ac_t""yes" 1>&6
10865     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10866   cat >> confdefs.h <<EOF
10867 #define $ac_tr_func 1
10868 EOF
10869  
10870 else
10871   echo "$ac_t""no" 1>&6
10872 fi
10873 done
10874     
10875     fi  
10876   fi
10877
10878   
10879   
10880   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
10881 echo "configure:10882: checking for isinfl declaration" >&5
10882   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
10883     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
10884   echo $ac_n "(cached) $ac_c" 1>&6
10885 else
10886   
10887       
10888       ac_ext=C
10889 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10890 ac_cpp='$CXXCPP $CPPFLAGS'
10891 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10892 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10893 cross_compiling=$ac_cv_prog_cxx_cross
10894
10895       cat > conftest.$ac_ext <<EOF
10896 #line 10897 "configure"
10897 #include "confdefs.h"
10898 #include <math.h>
10899                       #ifdef HAVE_IEEEFP_H
10900                       #include <ieeefp.h>
10901                       #endif
10902                      
10903 int main() {
10904  isinfl(0);
10905 ; return 0; }
10906 EOF
10907 if { (eval echo configure:10908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10908   rm -rf conftest*
10909   glibcpp_cv_func_isinfl_use=yes
10910 else
10911   echo "configure: failed program was:" >&5
10912   cat conftest.$ac_ext >&5
10913   rm -rf conftest*
10914   glibcpp_cv_func_isinfl_use=no
10915 fi
10916 rm -f conftest*
10917       ac_ext=c
10918 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10919 ac_cpp='$CPP $CPPFLAGS'
10920 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10921 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10922 cross_compiling=$ac_cv_prog_cc_cross
10923
10924     
10925 fi
10926
10927   fi
10928   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
10929
10930   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
10931     for ac_func in isinfl
10932 do
10933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10934 echo "configure:10935: checking for $ac_func" >&5
10935 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10936   echo $ac_n "(cached) $ac_c" 1>&6
10937 else
10938   cat > conftest.$ac_ext <<EOF
10939 #line 10940 "configure"
10940 #include "confdefs.h"
10941 /* System header to define __stub macros and hopefully few prototypes,
10942     which can conflict with char $ac_func(); below.  */
10943 #include <assert.h>
10944 /* Override any gcc2 internal prototype to avoid an error.  */
10945 /* We use char because int might match the return type of a gcc2
10946     builtin and then its argument prototype would still apply.  */
10947 char $ac_func();
10948
10949 int main() {
10950
10951 /* The GNU C library defines this for functions which it implements
10952     to always fail with ENOSYS.  Some functions are actually named
10953     something starting with __ and the normal name is an alias.  */
10954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10955 choke me
10956 #else
10957 $ac_func();
10958 #endif
10959
10960 ; return 0; }
10961 EOF
10962 if { (eval echo configure:10963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10963   rm -rf conftest*
10964   eval "ac_cv_func_$ac_func=yes"
10965 else
10966   echo "configure: failed program was:" >&5
10967   cat conftest.$ac_ext >&5
10968   rm -rf conftest*
10969   eval "ac_cv_func_$ac_func=no"
10970 fi
10971 rm -f conftest*
10972 fi
10973
10974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10975   echo "$ac_t""yes" 1>&6
10976     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10977   cat >> confdefs.h <<EOF
10978 #define $ac_tr_func 1
10979 EOF
10980  
10981 else
10982   echo "$ac_t""no" 1>&6
10983 fi
10984 done
10985     
10986   else
10987     
10988   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
10989 echo "configure:10990: checking for _isinfl declaration" >&5
10990   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
10991     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
10992   echo $ac_n "(cached) $ac_c" 1>&6
10993 else
10994   
10995       
10996       ac_ext=C
10997 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10998 ac_cpp='$CXXCPP $CPPFLAGS'
10999 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11000 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11001 cross_compiling=$ac_cv_prog_cxx_cross
11002
11003       cat > conftest.$ac_ext <<EOF
11004 #line 11005 "configure"
11005 #include "confdefs.h"
11006 #include <math.h>
11007                       #ifdef HAVE_IEEEFP_H
11008                       #include <ieeefp.h>
11009                       #endif
11010                      
11011 int main() {
11012  _isinfl(0);
11013 ; return 0; }
11014 EOF
11015 if { (eval echo configure:11016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11016   rm -rf conftest*
11017   glibcpp_cv_func__isinfl_use=yes
11018 else
11019   echo "configure: failed program was:" >&5
11020   cat conftest.$ac_ext >&5
11021   rm -rf conftest*
11022   glibcpp_cv_func__isinfl_use=no
11023 fi
11024 rm -f conftest*
11025       ac_ext=c
11026 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11027 ac_cpp='$CPP $CPPFLAGS'
11028 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11029 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11030 cross_compiling=$ac_cv_prog_cc_cross
11031
11032     
11033 fi
11034
11035   fi
11036   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
11037
11038     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
11039       for ac_func in _isinfl
11040 do
11041 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11042 echo "configure:11043: checking for $ac_func" >&5
11043 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11044   echo $ac_n "(cached) $ac_c" 1>&6
11045 else
11046   cat > conftest.$ac_ext <<EOF
11047 #line 11048 "configure"
11048 #include "confdefs.h"
11049 /* System header to define __stub macros and hopefully few prototypes,
11050     which can conflict with char $ac_func(); below.  */
11051 #include <assert.h>
11052 /* Override any gcc2 internal prototype to avoid an error.  */
11053 /* We use char because int might match the return type of a gcc2
11054     builtin and then its argument prototype would still apply.  */
11055 char $ac_func();
11056
11057 int main() {
11058
11059 /* The GNU C library defines this for functions which it implements
11060     to always fail with ENOSYS.  Some functions are actually named
11061     something starting with __ and the normal name is an alias.  */
11062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11063 choke me
11064 #else
11065 $ac_func();
11066 #endif
11067
11068 ; return 0; }
11069 EOF
11070 if { (eval echo configure:11071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11071   rm -rf conftest*
11072   eval "ac_cv_func_$ac_func=yes"
11073 else
11074   echo "configure: failed program was:" >&5
11075   cat conftest.$ac_ext >&5
11076   rm -rf conftest*
11077   eval "ac_cv_func_$ac_func=no"
11078 fi
11079 rm -f conftest*
11080 fi
11081
11082 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11083   echo "$ac_t""yes" 1>&6
11084     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11085   cat >> confdefs.h <<EOF
11086 #define $ac_tr_func 1
11087 EOF
11088  
11089 else
11090   echo "$ac_t""no" 1>&6
11091 fi
11092 done
11093     
11094     fi  
11095   fi
11096
11097   
11098   
11099   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
11100 echo "configure:11101: checking for copysignl declaration" >&5
11101   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
11102     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
11103   echo $ac_n "(cached) $ac_c" 1>&6
11104 else
11105   
11106       
11107       ac_ext=C
11108 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11109 ac_cpp='$CXXCPP $CPPFLAGS'
11110 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11111 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11112 cross_compiling=$ac_cv_prog_cxx_cross
11113
11114       cat > conftest.$ac_ext <<EOF
11115 #line 11116 "configure"
11116 #include "confdefs.h"
11117 #include <math.h>
11118 int main() {
11119  copysignl(0, 0);
11120 ; return 0; }
11121 EOF
11122 if { (eval echo configure:11123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11123   rm -rf conftest*
11124   glibcpp_cv_func_copysignl_use=yes
11125 else
11126   echo "configure: failed program was:" >&5
11127   cat conftest.$ac_ext >&5
11128   rm -rf conftest*
11129   glibcpp_cv_func_copysignl_use=no
11130 fi
11131 rm -f conftest*
11132       ac_ext=c
11133 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11134 ac_cpp='$CPP $CPPFLAGS'
11135 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11136 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11137 cross_compiling=$ac_cv_prog_cc_cross
11138
11139     
11140 fi
11141
11142   fi
11143   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
11144
11145   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
11146     for ac_func in copysignl
11147 do
11148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11149 echo "configure:11150: checking for $ac_func" >&5
11150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11151   echo $ac_n "(cached) $ac_c" 1>&6
11152 else
11153   cat > conftest.$ac_ext <<EOF
11154 #line 11155 "configure"
11155 #include "confdefs.h"
11156 /* System header to define __stub macros and hopefully few prototypes,
11157     which can conflict with char $ac_func(); below.  */
11158 #include <assert.h>
11159 /* Override any gcc2 internal prototype to avoid an error.  */
11160 /* We use char because int might match the return type of a gcc2
11161     builtin and then its argument prototype would still apply.  */
11162 char $ac_func();
11163
11164 int main() {
11165
11166 /* The GNU C library defines this for functions which it implements
11167     to always fail with ENOSYS.  Some functions are actually named
11168     something starting with __ and the normal name is an alias.  */
11169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11170 choke me
11171 #else
11172 $ac_func();
11173 #endif
11174
11175 ; return 0; }
11176 EOF
11177 if { (eval echo configure:11178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11178   rm -rf conftest*
11179   eval "ac_cv_func_$ac_func=yes"
11180 else
11181   echo "configure: failed program was:" >&5
11182   cat conftest.$ac_ext >&5
11183   rm -rf conftest*
11184   eval "ac_cv_func_$ac_func=no"
11185 fi
11186 rm -f conftest*
11187 fi
11188
11189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11190   echo "$ac_t""yes" 1>&6
11191     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11192   cat >> confdefs.h <<EOF
11193 #define $ac_tr_func 1
11194 EOF
11195  
11196 else
11197   echo "$ac_t""no" 1>&6
11198 fi
11199 done
11200     
11201   else
11202     
11203   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
11204 echo "configure:11205: checking for _copysignl declaration" >&5
11205   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
11206     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
11207   echo $ac_n "(cached) $ac_c" 1>&6
11208 else
11209   
11210       
11211       ac_ext=C
11212 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11213 ac_cpp='$CXXCPP $CPPFLAGS'
11214 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11215 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11216 cross_compiling=$ac_cv_prog_cxx_cross
11217
11218       cat > conftest.$ac_ext <<EOF
11219 #line 11220 "configure"
11220 #include "confdefs.h"
11221 #include <math.h>
11222 int main() {
11223  _copysignl(0, 0);
11224 ; return 0; }
11225 EOF
11226 if { (eval echo configure:11227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11227   rm -rf conftest*
11228   glibcpp_cv_func__copysignl_use=yes
11229 else
11230   echo "configure: failed program was:" >&5
11231   cat conftest.$ac_ext >&5
11232   rm -rf conftest*
11233   glibcpp_cv_func__copysignl_use=no
11234 fi
11235 rm -f conftest*
11236       ac_ext=c
11237 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11238 ac_cpp='$CPP $CPPFLAGS'
11239 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11240 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11241 cross_compiling=$ac_cv_prog_cc_cross
11242
11243     
11244 fi
11245
11246   fi
11247   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
11248
11249     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
11250       for ac_func in _copysignl
11251 do
11252 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11253 echo "configure:11254: checking for $ac_func" >&5
11254 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11255   echo $ac_n "(cached) $ac_c" 1>&6
11256 else
11257   cat > conftest.$ac_ext <<EOF
11258 #line 11259 "configure"
11259 #include "confdefs.h"
11260 /* System header to define __stub macros and hopefully few prototypes,
11261     which can conflict with char $ac_func(); below.  */
11262 #include <assert.h>
11263 /* Override any gcc2 internal prototype to avoid an error.  */
11264 /* We use char because int might match the return type of a gcc2
11265     builtin and then its argument prototype would still apply.  */
11266 char $ac_func();
11267
11268 int main() {
11269
11270 /* The GNU C library defines this for functions which it implements
11271     to always fail with ENOSYS.  Some functions are actually named
11272     something starting with __ and the normal name is an alias.  */
11273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11274 choke me
11275 #else
11276 $ac_func();
11277 #endif
11278
11279 ; return 0; }
11280 EOF
11281 if { (eval echo configure:11282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11282   rm -rf conftest*
11283   eval "ac_cv_func_$ac_func=yes"
11284 else
11285   echo "configure: failed program was:" >&5
11286   cat conftest.$ac_ext >&5
11287   rm -rf conftest*
11288   eval "ac_cv_func_$ac_func=no"
11289 fi
11290 rm -f conftest*
11291 fi
11292
11293 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11294   echo "$ac_t""yes" 1>&6
11295     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11296   cat >> confdefs.h <<EOF
11297 #define $ac_tr_func 1
11298 EOF
11299  
11300 else
11301   echo "$ac_t""no" 1>&6
11302 fi
11303 done
11304     
11305     fi  
11306   fi
11307
11308   
11309   
11310   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
11311 echo "configure:11312: checking for atan2l declaration" >&5
11312   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
11313     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
11314   echo $ac_n "(cached) $ac_c" 1>&6
11315 else
11316   
11317       
11318       ac_ext=C
11319 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11320 ac_cpp='$CXXCPP $CPPFLAGS'
11321 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11322 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11323 cross_compiling=$ac_cv_prog_cxx_cross
11324
11325       cat > conftest.$ac_ext <<EOF
11326 #line 11327 "configure"
11327 #include "confdefs.h"
11328 #include <math.h>
11329 int main() {
11330  atan2l(0, 0);
11331 ; return 0; }
11332 EOF
11333 if { (eval echo configure:11334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11334   rm -rf conftest*
11335   glibcpp_cv_func_atan2l_use=yes
11336 else
11337   echo "configure: failed program was:" >&5
11338   cat conftest.$ac_ext >&5
11339   rm -rf conftest*
11340   glibcpp_cv_func_atan2l_use=no
11341 fi
11342 rm -f conftest*
11343       ac_ext=c
11344 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11345 ac_cpp='$CPP $CPPFLAGS'
11346 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11347 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11348 cross_compiling=$ac_cv_prog_cc_cross
11349
11350     
11351 fi
11352
11353   fi
11354   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
11355
11356   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
11357     for ac_func in atan2l
11358 do
11359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11360 echo "configure:11361: checking for $ac_func" >&5
11361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11362   echo $ac_n "(cached) $ac_c" 1>&6
11363 else
11364   cat > conftest.$ac_ext <<EOF
11365 #line 11366 "configure"
11366 #include "confdefs.h"
11367 /* System header to define __stub macros and hopefully few prototypes,
11368     which can conflict with char $ac_func(); below.  */
11369 #include <assert.h>
11370 /* Override any gcc2 internal prototype to avoid an error.  */
11371 /* We use char because int might match the return type of a gcc2
11372     builtin and then its argument prototype would still apply.  */
11373 char $ac_func();
11374
11375 int main() {
11376
11377 /* The GNU C library defines this for functions which it implements
11378     to always fail with ENOSYS.  Some functions are actually named
11379     something starting with __ and the normal name is an alias.  */
11380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11381 choke me
11382 #else
11383 $ac_func();
11384 #endif
11385
11386 ; return 0; }
11387 EOF
11388 if { (eval echo configure:11389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11389   rm -rf conftest*
11390   eval "ac_cv_func_$ac_func=yes"
11391 else
11392   echo "configure: failed program was:" >&5
11393   cat conftest.$ac_ext >&5
11394   rm -rf conftest*
11395   eval "ac_cv_func_$ac_func=no"
11396 fi
11397 rm -f conftest*
11398 fi
11399
11400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11401   echo "$ac_t""yes" 1>&6
11402     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11403   cat >> confdefs.h <<EOF
11404 #define $ac_tr_func 1
11405 EOF
11406  
11407 else
11408   echo "$ac_t""no" 1>&6
11409 fi
11410 done
11411     
11412   else
11413     
11414   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
11415 echo "configure:11416: checking for _atan2l declaration" >&5
11416   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
11417     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
11418   echo $ac_n "(cached) $ac_c" 1>&6
11419 else
11420   
11421       
11422       ac_ext=C
11423 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11424 ac_cpp='$CXXCPP $CPPFLAGS'
11425 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11426 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11427 cross_compiling=$ac_cv_prog_cxx_cross
11428
11429       cat > conftest.$ac_ext <<EOF
11430 #line 11431 "configure"
11431 #include "confdefs.h"
11432 #include <math.h>
11433 int main() {
11434  _atan2l(0, 0);
11435 ; return 0; }
11436 EOF
11437 if { (eval echo configure:11438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11438   rm -rf conftest*
11439   glibcpp_cv_func__atan2l_use=yes
11440 else
11441   echo "configure: failed program was:" >&5
11442   cat conftest.$ac_ext >&5
11443   rm -rf conftest*
11444   glibcpp_cv_func__atan2l_use=no
11445 fi
11446 rm -f conftest*
11447       ac_ext=c
11448 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11449 ac_cpp='$CPP $CPPFLAGS'
11450 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11451 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11452 cross_compiling=$ac_cv_prog_cc_cross
11453
11454     
11455 fi
11456
11457   fi
11458   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
11459
11460     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
11461       for ac_func in _atan2l
11462 do
11463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11464 echo "configure:11465: checking for $ac_func" >&5
11465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11466   echo $ac_n "(cached) $ac_c" 1>&6
11467 else
11468   cat > conftest.$ac_ext <<EOF
11469 #line 11470 "configure"
11470 #include "confdefs.h"
11471 /* System header to define __stub macros and hopefully few prototypes,
11472     which can conflict with char $ac_func(); below.  */
11473 #include <assert.h>
11474 /* Override any gcc2 internal prototype to avoid an error.  */
11475 /* We use char because int might match the return type of a gcc2
11476     builtin and then its argument prototype would still apply.  */
11477 char $ac_func();
11478
11479 int main() {
11480
11481 /* The GNU C library defines this for functions which it implements
11482     to always fail with ENOSYS.  Some functions are actually named
11483     something starting with __ and the normal name is an alias.  */
11484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11485 choke me
11486 #else
11487 $ac_func();
11488 #endif
11489
11490 ; return 0; }
11491 EOF
11492 if { (eval echo configure:11493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11493   rm -rf conftest*
11494   eval "ac_cv_func_$ac_func=yes"
11495 else
11496   echo "configure: failed program was:" >&5
11497   cat conftest.$ac_ext >&5
11498   rm -rf conftest*
11499   eval "ac_cv_func_$ac_func=no"
11500 fi
11501 rm -f conftest*
11502 fi
11503
11504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11505   echo "$ac_t""yes" 1>&6
11506     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11507   cat >> confdefs.h <<EOF
11508 #define $ac_tr_func 1
11509 EOF
11510  
11511 else
11512   echo "$ac_t""no" 1>&6
11513 fi
11514 done
11515     
11516     fi  
11517   fi
11518
11519   
11520   
11521   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
11522 echo "configure:11523: checking for expl declaration" >&5
11523   if test x${glibcpp_cv_func_expl_use+set} != xset; then
11524     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
11525   echo $ac_n "(cached) $ac_c" 1>&6
11526 else
11527   
11528       
11529       ac_ext=C
11530 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11531 ac_cpp='$CXXCPP $CPPFLAGS'
11532 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11533 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11534 cross_compiling=$ac_cv_prog_cxx_cross
11535
11536       cat > conftest.$ac_ext <<EOF
11537 #line 11538 "configure"
11538 #include "confdefs.h"
11539 #include <math.h>
11540                       #ifdef HAVE_IEEEFP_H
11541                       #include <ieeefp.h>
11542                       #endif
11543                      
11544 int main() {
11545  expl(0);
11546 ; return 0; }
11547 EOF
11548 if { (eval echo configure:11549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11549   rm -rf conftest*
11550   glibcpp_cv_func_expl_use=yes
11551 else
11552   echo "configure: failed program was:" >&5
11553   cat conftest.$ac_ext >&5
11554   rm -rf conftest*
11555   glibcpp_cv_func_expl_use=no
11556 fi
11557 rm -f conftest*
11558       ac_ext=c
11559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11560 ac_cpp='$CPP $CPPFLAGS'
11561 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11562 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11563 cross_compiling=$ac_cv_prog_cc_cross
11564
11565     
11566 fi
11567
11568   fi
11569   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
11570
11571   if test x$glibcpp_cv_func_expl_use = x"yes"; then
11572     for ac_func in expl
11573 do
11574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11575 echo "configure:11576: checking for $ac_func" >&5
11576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11577   echo $ac_n "(cached) $ac_c" 1>&6
11578 else
11579   cat > conftest.$ac_ext <<EOF
11580 #line 11581 "configure"
11581 #include "confdefs.h"
11582 /* System header to define __stub macros and hopefully few prototypes,
11583     which can conflict with char $ac_func(); below.  */
11584 #include <assert.h>
11585 /* Override any gcc2 internal prototype to avoid an error.  */
11586 /* We use char because int might match the return type of a gcc2
11587     builtin and then its argument prototype would still apply.  */
11588 char $ac_func();
11589
11590 int main() {
11591
11592 /* The GNU C library defines this for functions which it implements
11593     to always fail with ENOSYS.  Some functions are actually named
11594     something starting with __ and the normal name is an alias.  */
11595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11596 choke me
11597 #else
11598 $ac_func();
11599 #endif
11600
11601 ; return 0; }
11602 EOF
11603 if { (eval echo configure:11604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11604   rm -rf conftest*
11605   eval "ac_cv_func_$ac_func=yes"
11606 else
11607   echo "configure: failed program was:" >&5
11608   cat conftest.$ac_ext >&5
11609   rm -rf conftest*
11610   eval "ac_cv_func_$ac_func=no"
11611 fi
11612 rm -f conftest*
11613 fi
11614
11615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11616   echo "$ac_t""yes" 1>&6
11617     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11618   cat >> confdefs.h <<EOF
11619 #define $ac_tr_func 1
11620 EOF
11621  
11622 else
11623   echo "$ac_t""no" 1>&6
11624 fi
11625 done
11626     
11627   else
11628     
11629   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
11630 echo "configure:11631: checking for _expl declaration" >&5
11631   if test x${glibcpp_cv_func__expl_use+set} != xset; then
11632     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
11633   echo $ac_n "(cached) $ac_c" 1>&6
11634 else
11635   
11636       
11637       ac_ext=C
11638 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11639 ac_cpp='$CXXCPP $CPPFLAGS'
11640 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11641 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11642 cross_compiling=$ac_cv_prog_cxx_cross
11643
11644       cat > conftest.$ac_ext <<EOF
11645 #line 11646 "configure"
11646 #include "confdefs.h"
11647 #include <math.h>
11648                       #ifdef HAVE_IEEEFP_H
11649                       #include <ieeefp.h>
11650                       #endif
11651                      
11652 int main() {
11653  _expl(0);
11654 ; return 0; }
11655 EOF
11656 if { (eval echo configure:11657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11657   rm -rf conftest*
11658   glibcpp_cv_func__expl_use=yes
11659 else
11660   echo "configure: failed program was:" >&5
11661   cat conftest.$ac_ext >&5
11662   rm -rf conftest*
11663   glibcpp_cv_func__expl_use=no
11664 fi
11665 rm -f conftest*
11666       ac_ext=c
11667 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11668 ac_cpp='$CPP $CPPFLAGS'
11669 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11670 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11671 cross_compiling=$ac_cv_prog_cc_cross
11672
11673     
11674 fi
11675
11676   fi
11677   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
11678
11679     if test x$glibcpp_cv_func__expl_use = x"yes"; then
11680       for ac_func in _expl
11681 do
11682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11683 echo "configure:11684: checking for $ac_func" >&5
11684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11685   echo $ac_n "(cached) $ac_c" 1>&6
11686 else
11687   cat > conftest.$ac_ext <<EOF
11688 #line 11689 "configure"
11689 #include "confdefs.h"
11690 /* System header to define __stub macros and hopefully few prototypes,
11691     which can conflict with char $ac_func(); below.  */
11692 #include <assert.h>
11693 /* Override any gcc2 internal prototype to avoid an error.  */
11694 /* We use char because int might match the return type of a gcc2
11695     builtin and then its argument prototype would still apply.  */
11696 char $ac_func();
11697
11698 int main() {
11699
11700 /* The GNU C library defines this for functions which it implements
11701     to always fail with ENOSYS.  Some functions are actually named
11702     something starting with __ and the normal name is an alias.  */
11703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11704 choke me
11705 #else
11706 $ac_func();
11707 #endif
11708
11709 ; return 0; }
11710 EOF
11711 if { (eval echo configure:11712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11712   rm -rf conftest*
11713   eval "ac_cv_func_$ac_func=yes"
11714 else
11715   echo "configure: failed program was:" >&5
11716   cat conftest.$ac_ext >&5
11717   rm -rf conftest*
11718   eval "ac_cv_func_$ac_func=no"
11719 fi
11720 rm -f conftest*
11721 fi
11722
11723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11724   echo "$ac_t""yes" 1>&6
11725     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11726   cat >> confdefs.h <<EOF
11727 #define $ac_tr_func 1
11728 EOF
11729  
11730 else
11731   echo "$ac_t""no" 1>&6
11732 fi
11733 done
11734     
11735     fi  
11736   fi
11737
11738   
11739   
11740   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
11741 echo "configure:11742: checking for fabsl declaration" >&5
11742   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
11743     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
11744   echo $ac_n "(cached) $ac_c" 1>&6
11745 else
11746   
11747       
11748       ac_ext=C
11749 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11750 ac_cpp='$CXXCPP $CPPFLAGS'
11751 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11752 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11753 cross_compiling=$ac_cv_prog_cxx_cross
11754
11755       cat > conftest.$ac_ext <<EOF
11756 #line 11757 "configure"
11757 #include "confdefs.h"
11758 #include <math.h>
11759                       #ifdef HAVE_IEEEFP_H
11760                       #include <ieeefp.h>
11761                       #endif
11762                      
11763 int main() {
11764  fabsl(0);
11765 ; return 0; }
11766 EOF
11767 if { (eval echo configure:11768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11768   rm -rf conftest*
11769   glibcpp_cv_func_fabsl_use=yes
11770 else
11771   echo "configure: failed program was:" >&5
11772   cat conftest.$ac_ext >&5
11773   rm -rf conftest*
11774   glibcpp_cv_func_fabsl_use=no
11775 fi
11776 rm -f conftest*
11777       ac_ext=c
11778 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11779 ac_cpp='$CPP $CPPFLAGS'
11780 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11781 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11782 cross_compiling=$ac_cv_prog_cc_cross
11783
11784     
11785 fi
11786
11787   fi
11788   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
11789
11790   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
11791     for ac_func in fabsl
11792 do
11793 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11794 echo "configure:11795: checking for $ac_func" >&5
11795 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11796   echo $ac_n "(cached) $ac_c" 1>&6
11797 else
11798   cat > conftest.$ac_ext <<EOF
11799 #line 11800 "configure"
11800 #include "confdefs.h"
11801 /* System header to define __stub macros and hopefully few prototypes,
11802     which can conflict with char $ac_func(); below.  */
11803 #include <assert.h>
11804 /* Override any gcc2 internal prototype to avoid an error.  */
11805 /* We use char because int might match the return type of a gcc2
11806     builtin and then its argument prototype would still apply.  */
11807 char $ac_func();
11808
11809 int main() {
11810
11811 /* The GNU C library defines this for functions which it implements
11812     to always fail with ENOSYS.  Some functions are actually named
11813     something starting with __ and the normal name is an alias.  */
11814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11815 choke me
11816 #else
11817 $ac_func();
11818 #endif
11819
11820 ; return 0; }
11821 EOF
11822 if { (eval echo configure:11823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11823   rm -rf conftest*
11824   eval "ac_cv_func_$ac_func=yes"
11825 else
11826   echo "configure: failed program was:" >&5
11827   cat conftest.$ac_ext >&5
11828   rm -rf conftest*
11829   eval "ac_cv_func_$ac_func=no"
11830 fi
11831 rm -f conftest*
11832 fi
11833
11834 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11835   echo "$ac_t""yes" 1>&6
11836     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11837   cat >> confdefs.h <<EOF
11838 #define $ac_tr_func 1
11839 EOF
11840  
11841 else
11842   echo "$ac_t""no" 1>&6
11843 fi
11844 done
11845     
11846   else
11847     
11848   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
11849 echo "configure:11850: checking for _fabsl declaration" >&5
11850   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
11851     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
11852   echo $ac_n "(cached) $ac_c" 1>&6
11853 else
11854   
11855       
11856       ac_ext=C
11857 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11858 ac_cpp='$CXXCPP $CPPFLAGS'
11859 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11860 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11861 cross_compiling=$ac_cv_prog_cxx_cross
11862
11863       cat > conftest.$ac_ext <<EOF
11864 #line 11865 "configure"
11865 #include "confdefs.h"
11866 #include <math.h>
11867                       #ifdef HAVE_IEEEFP_H
11868                       #include <ieeefp.h>
11869                       #endif
11870                      
11871 int main() {
11872  _fabsl(0);
11873 ; return 0; }
11874 EOF
11875 if { (eval echo configure:11876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11876   rm -rf conftest*
11877   glibcpp_cv_func__fabsl_use=yes
11878 else
11879   echo "configure: failed program was:" >&5
11880   cat conftest.$ac_ext >&5
11881   rm -rf conftest*
11882   glibcpp_cv_func__fabsl_use=no
11883 fi
11884 rm -f conftest*
11885       ac_ext=c
11886 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11887 ac_cpp='$CPP $CPPFLAGS'
11888 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11889 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11890 cross_compiling=$ac_cv_prog_cc_cross
11891
11892     
11893 fi
11894
11895   fi
11896   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
11897
11898     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
11899       for ac_func in _fabsl
11900 do
11901 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11902 echo "configure:11903: checking for $ac_func" >&5
11903 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11904   echo $ac_n "(cached) $ac_c" 1>&6
11905 else
11906   cat > conftest.$ac_ext <<EOF
11907 #line 11908 "configure"
11908 #include "confdefs.h"
11909 /* System header to define __stub macros and hopefully few prototypes,
11910     which can conflict with char $ac_func(); below.  */
11911 #include <assert.h>
11912 /* Override any gcc2 internal prototype to avoid an error.  */
11913 /* We use char because int might match the return type of a gcc2
11914     builtin and then its argument prototype would still apply.  */
11915 char $ac_func();
11916
11917 int main() {
11918
11919 /* The GNU C library defines this for functions which it implements
11920     to always fail with ENOSYS.  Some functions are actually named
11921     something starting with __ and the normal name is an alias.  */
11922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11923 choke me
11924 #else
11925 $ac_func();
11926 #endif
11927
11928 ; return 0; }
11929 EOF
11930 if { (eval echo configure:11931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11931   rm -rf conftest*
11932   eval "ac_cv_func_$ac_func=yes"
11933 else
11934   echo "configure: failed program was:" >&5
11935   cat conftest.$ac_ext >&5
11936   rm -rf conftest*
11937   eval "ac_cv_func_$ac_func=no"
11938 fi
11939 rm -f conftest*
11940 fi
11941
11942 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11943   echo "$ac_t""yes" 1>&6
11944     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11945   cat >> confdefs.h <<EOF
11946 #define $ac_tr_func 1
11947 EOF
11948  
11949 else
11950   echo "$ac_t""no" 1>&6
11951 fi
11952 done
11953     
11954     fi  
11955   fi
11956
11957   
11958   
11959   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
11960 echo "configure:11961: checking for fmodl declaration" >&5
11961   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
11962     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
11963   echo $ac_n "(cached) $ac_c" 1>&6
11964 else
11965   
11966       
11967       ac_ext=C
11968 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11969 ac_cpp='$CXXCPP $CPPFLAGS'
11970 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11971 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11972 cross_compiling=$ac_cv_prog_cxx_cross
11973
11974       cat > conftest.$ac_ext <<EOF
11975 #line 11976 "configure"
11976 #include "confdefs.h"
11977 #include <math.h>
11978 int main() {
11979  fmodl(0, 0);
11980 ; return 0; }
11981 EOF
11982 if { (eval echo configure:11983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11983   rm -rf conftest*
11984   glibcpp_cv_func_fmodl_use=yes
11985 else
11986   echo "configure: failed program was:" >&5
11987   cat conftest.$ac_ext >&5
11988   rm -rf conftest*
11989   glibcpp_cv_func_fmodl_use=no
11990 fi
11991 rm -f conftest*
11992       ac_ext=c
11993 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11994 ac_cpp='$CPP $CPPFLAGS'
11995 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11996 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11997 cross_compiling=$ac_cv_prog_cc_cross
11998
11999     
12000 fi
12001
12002   fi
12003   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
12004
12005   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
12006     for ac_func in fmodl
12007 do
12008 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12009 echo "configure:12010: checking for $ac_func" >&5
12010 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12011   echo $ac_n "(cached) $ac_c" 1>&6
12012 else
12013   cat > conftest.$ac_ext <<EOF
12014 #line 12015 "configure"
12015 #include "confdefs.h"
12016 /* System header to define __stub macros and hopefully few prototypes,
12017     which can conflict with char $ac_func(); below.  */
12018 #include <assert.h>
12019 /* Override any gcc2 internal prototype to avoid an error.  */
12020 /* We use char because int might match the return type of a gcc2
12021     builtin and then its argument prototype would still apply.  */
12022 char $ac_func();
12023
12024 int main() {
12025
12026 /* The GNU C library defines this for functions which it implements
12027     to always fail with ENOSYS.  Some functions are actually named
12028     something starting with __ and the normal name is an alias.  */
12029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12030 choke me
12031 #else
12032 $ac_func();
12033 #endif
12034
12035 ; return 0; }
12036 EOF
12037 if { (eval echo configure:12038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12038   rm -rf conftest*
12039   eval "ac_cv_func_$ac_func=yes"
12040 else
12041   echo "configure: failed program was:" >&5
12042   cat conftest.$ac_ext >&5
12043   rm -rf conftest*
12044   eval "ac_cv_func_$ac_func=no"
12045 fi
12046 rm -f conftest*
12047 fi
12048
12049 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12050   echo "$ac_t""yes" 1>&6
12051     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12052   cat >> confdefs.h <<EOF
12053 #define $ac_tr_func 1
12054 EOF
12055  
12056 else
12057   echo "$ac_t""no" 1>&6
12058 fi
12059 done
12060     
12061   else
12062     
12063   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
12064 echo "configure:12065: checking for _fmodl declaration" >&5
12065   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
12066     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
12067   echo $ac_n "(cached) $ac_c" 1>&6
12068 else
12069   
12070       
12071       ac_ext=C
12072 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12073 ac_cpp='$CXXCPP $CPPFLAGS'
12074 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12075 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12076 cross_compiling=$ac_cv_prog_cxx_cross
12077
12078       cat > conftest.$ac_ext <<EOF
12079 #line 12080 "configure"
12080 #include "confdefs.h"
12081 #include <math.h>
12082 int main() {
12083  _fmodl(0, 0);
12084 ; return 0; }
12085 EOF
12086 if { (eval echo configure:12087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12087   rm -rf conftest*
12088   glibcpp_cv_func__fmodl_use=yes
12089 else
12090   echo "configure: failed program was:" >&5
12091   cat conftest.$ac_ext >&5
12092   rm -rf conftest*
12093   glibcpp_cv_func__fmodl_use=no
12094 fi
12095 rm -f conftest*
12096       ac_ext=c
12097 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12098 ac_cpp='$CPP $CPPFLAGS'
12099 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12100 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12101 cross_compiling=$ac_cv_prog_cc_cross
12102
12103     
12104 fi
12105
12106   fi
12107   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
12108
12109     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
12110       for ac_func in _fmodl
12111 do
12112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12113 echo "configure:12114: checking for $ac_func" >&5
12114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12115   echo $ac_n "(cached) $ac_c" 1>&6
12116 else
12117   cat > conftest.$ac_ext <<EOF
12118 #line 12119 "configure"
12119 #include "confdefs.h"
12120 /* System header to define __stub macros and hopefully few prototypes,
12121     which can conflict with char $ac_func(); below.  */
12122 #include <assert.h>
12123 /* Override any gcc2 internal prototype to avoid an error.  */
12124 /* We use char because int might match the return type of a gcc2
12125     builtin and then its argument prototype would still apply.  */
12126 char $ac_func();
12127
12128 int main() {
12129
12130 /* The GNU C library defines this for functions which it implements
12131     to always fail with ENOSYS.  Some functions are actually named
12132     something starting with __ and the normal name is an alias.  */
12133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12134 choke me
12135 #else
12136 $ac_func();
12137 #endif
12138
12139 ; return 0; }
12140 EOF
12141 if { (eval echo configure:12142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12142   rm -rf conftest*
12143   eval "ac_cv_func_$ac_func=yes"
12144 else
12145   echo "configure: failed program was:" >&5
12146   cat conftest.$ac_ext >&5
12147   rm -rf conftest*
12148   eval "ac_cv_func_$ac_func=no"
12149 fi
12150 rm -f conftest*
12151 fi
12152
12153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12154   echo "$ac_t""yes" 1>&6
12155     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12156   cat >> confdefs.h <<EOF
12157 #define $ac_tr_func 1
12158 EOF
12159  
12160 else
12161   echo "$ac_t""no" 1>&6
12162 fi
12163 done
12164     
12165     fi  
12166   fi
12167
12168   
12169   
12170   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
12171 echo "configure:12172: checking for frexpl declaration" >&5
12172   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
12173     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
12174   echo $ac_n "(cached) $ac_c" 1>&6
12175 else
12176   
12177       
12178       ac_ext=C
12179 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12180 ac_cpp='$CXXCPP $CPPFLAGS'
12181 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12182 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12183 cross_compiling=$ac_cv_prog_cxx_cross
12184
12185       cat > conftest.$ac_ext <<EOF
12186 #line 12187 "configure"
12187 #include "confdefs.h"
12188 #include <math.h>
12189 int main() {
12190  frexpl(0, 0);
12191 ; return 0; }
12192 EOF
12193 if { (eval echo configure:12194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12194   rm -rf conftest*
12195   glibcpp_cv_func_frexpl_use=yes
12196 else
12197   echo "configure: failed program was:" >&5
12198   cat conftest.$ac_ext >&5
12199   rm -rf conftest*
12200   glibcpp_cv_func_frexpl_use=no
12201 fi
12202 rm -f conftest*
12203       ac_ext=c
12204 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12205 ac_cpp='$CPP $CPPFLAGS'
12206 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12207 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12208 cross_compiling=$ac_cv_prog_cc_cross
12209
12210     
12211 fi
12212
12213   fi
12214   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
12215
12216   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
12217     for ac_func in frexpl
12218 do
12219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12220 echo "configure:12221: checking for $ac_func" >&5
12221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12222   echo $ac_n "(cached) $ac_c" 1>&6
12223 else
12224   cat > conftest.$ac_ext <<EOF
12225 #line 12226 "configure"
12226 #include "confdefs.h"
12227 /* System header to define __stub macros and hopefully few prototypes,
12228     which can conflict with char $ac_func(); below.  */
12229 #include <assert.h>
12230 /* Override any gcc2 internal prototype to avoid an error.  */
12231 /* We use char because int might match the return type of a gcc2
12232     builtin and then its argument prototype would still apply.  */
12233 char $ac_func();
12234
12235 int main() {
12236
12237 /* The GNU C library defines this for functions which it implements
12238     to always fail with ENOSYS.  Some functions are actually named
12239     something starting with __ and the normal name is an alias.  */
12240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12241 choke me
12242 #else
12243 $ac_func();
12244 #endif
12245
12246 ; return 0; }
12247 EOF
12248 if { (eval echo configure:12249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12249   rm -rf conftest*
12250   eval "ac_cv_func_$ac_func=yes"
12251 else
12252   echo "configure: failed program was:" >&5
12253   cat conftest.$ac_ext >&5
12254   rm -rf conftest*
12255   eval "ac_cv_func_$ac_func=no"
12256 fi
12257 rm -f conftest*
12258 fi
12259
12260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12261   echo "$ac_t""yes" 1>&6
12262     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12263   cat >> confdefs.h <<EOF
12264 #define $ac_tr_func 1
12265 EOF
12266  
12267 else
12268   echo "$ac_t""no" 1>&6
12269 fi
12270 done
12271     
12272   else
12273     
12274   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
12275 echo "configure:12276: checking for _frexpl declaration" >&5
12276   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
12277     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
12278   echo $ac_n "(cached) $ac_c" 1>&6
12279 else
12280   
12281       
12282       ac_ext=C
12283 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12284 ac_cpp='$CXXCPP $CPPFLAGS'
12285 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12286 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12287 cross_compiling=$ac_cv_prog_cxx_cross
12288
12289       cat > conftest.$ac_ext <<EOF
12290 #line 12291 "configure"
12291 #include "confdefs.h"
12292 #include <math.h>
12293 int main() {
12294  _frexpl(0, 0);
12295 ; return 0; }
12296 EOF
12297 if { (eval echo configure:12298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12298   rm -rf conftest*
12299   glibcpp_cv_func__frexpl_use=yes
12300 else
12301   echo "configure: failed program was:" >&5
12302   cat conftest.$ac_ext >&5
12303   rm -rf conftest*
12304   glibcpp_cv_func__frexpl_use=no
12305 fi
12306 rm -f conftest*
12307       ac_ext=c
12308 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12309 ac_cpp='$CPP $CPPFLAGS'
12310 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12311 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12312 cross_compiling=$ac_cv_prog_cc_cross
12313
12314     
12315 fi
12316
12317   fi
12318   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
12319
12320     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
12321       for ac_func in _frexpl
12322 do
12323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12324 echo "configure:12325: checking for $ac_func" >&5
12325 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12326   echo $ac_n "(cached) $ac_c" 1>&6
12327 else
12328   cat > conftest.$ac_ext <<EOF
12329 #line 12330 "configure"
12330 #include "confdefs.h"
12331 /* System header to define __stub macros and hopefully few prototypes,
12332     which can conflict with char $ac_func(); below.  */
12333 #include <assert.h>
12334 /* Override any gcc2 internal prototype to avoid an error.  */
12335 /* We use char because int might match the return type of a gcc2
12336     builtin and then its argument prototype would still apply.  */
12337 char $ac_func();
12338
12339 int main() {
12340
12341 /* The GNU C library defines this for functions which it implements
12342     to always fail with ENOSYS.  Some functions are actually named
12343     something starting with __ and the normal name is an alias.  */
12344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12345 choke me
12346 #else
12347 $ac_func();
12348 #endif
12349
12350 ; return 0; }
12351 EOF
12352 if { (eval echo configure:12353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12353   rm -rf conftest*
12354   eval "ac_cv_func_$ac_func=yes"
12355 else
12356   echo "configure: failed program was:" >&5
12357   cat conftest.$ac_ext >&5
12358   rm -rf conftest*
12359   eval "ac_cv_func_$ac_func=no"
12360 fi
12361 rm -f conftest*
12362 fi
12363
12364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12365   echo "$ac_t""yes" 1>&6
12366     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12367   cat >> confdefs.h <<EOF
12368 #define $ac_tr_func 1
12369 EOF
12370  
12371 else
12372   echo "$ac_t""no" 1>&6
12373 fi
12374 done
12375     
12376     fi  
12377   fi
12378
12379   
12380   
12381   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
12382 echo "configure:12383: checking for ldexpl declaration" >&5
12383   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
12384     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
12385   echo $ac_n "(cached) $ac_c" 1>&6
12386 else
12387   
12388       
12389       ac_ext=C
12390 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12391 ac_cpp='$CXXCPP $CPPFLAGS'
12392 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12393 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12394 cross_compiling=$ac_cv_prog_cxx_cross
12395
12396       cat > conftest.$ac_ext <<EOF
12397 #line 12398 "configure"
12398 #include "confdefs.h"
12399 #include <math.h>
12400 int main() {
12401  ldexpl(0, 0);
12402 ; return 0; }
12403 EOF
12404 if { (eval echo configure:12405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12405   rm -rf conftest*
12406   glibcpp_cv_func_ldexpl_use=yes
12407 else
12408   echo "configure: failed program was:" >&5
12409   cat conftest.$ac_ext >&5
12410   rm -rf conftest*
12411   glibcpp_cv_func_ldexpl_use=no
12412 fi
12413 rm -f conftest*
12414       ac_ext=c
12415 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12416 ac_cpp='$CPP $CPPFLAGS'
12417 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12418 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12419 cross_compiling=$ac_cv_prog_cc_cross
12420
12421     
12422 fi
12423
12424   fi
12425   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
12426
12427   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
12428     for ac_func in ldexpl
12429 do
12430 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12431 echo "configure:12432: checking for $ac_func" >&5
12432 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12433   echo $ac_n "(cached) $ac_c" 1>&6
12434 else
12435   cat > conftest.$ac_ext <<EOF
12436 #line 12437 "configure"
12437 #include "confdefs.h"
12438 /* System header to define __stub macros and hopefully few prototypes,
12439     which can conflict with char $ac_func(); below.  */
12440 #include <assert.h>
12441 /* Override any gcc2 internal prototype to avoid an error.  */
12442 /* We use char because int might match the return type of a gcc2
12443     builtin and then its argument prototype would still apply.  */
12444 char $ac_func();
12445
12446 int main() {
12447
12448 /* The GNU C library defines this for functions which it implements
12449     to always fail with ENOSYS.  Some functions are actually named
12450     something starting with __ and the normal name is an alias.  */
12451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12452 choke me
12453 #else
12454 $ac_func();
12455 #endif
12456
12457 ; return 0; }
12458 EOF
12459 if { (eval echo configure:12460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12460   rm -rf conftest*
12461   eval "ac_cv_func_$ac_func=yes"
12462 else
12463   echo "configure: failed program was:" >&5
12464   cat conftest.$ac_ext >&5
12465   rm -rf conftest*
12466   eval "ac_cv_func_$ac_func=no"
12467 fi
12468 rm -f conftest*
12469 fi
12470
12471 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12472   echo "$ac_t""yes" 1>&6
12473     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12474   cat >> confdefs.h <<EOF
12475 #define $ac_tr_func 1
12476 EOF
12477  
12478 else
12479   echo "$ac_t""no" 1>&6
12480 fi
12481 done
12482     
12483   else
12484     
12485   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
12486 echo "configure:12487: checking for _ldexpl declaration" >&5
12487   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
12488     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
12489   echo $ac_n "(cached) $ac_c" 1>&6
12490 else
12491   
12492       
12493       ac_ext=C
12494 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12495 ac_cpp='$CXXCPP $CPPFLAGS'
12496 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12497 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12498 cross_compiling=$ac_cv_prog_cxx_cross
12499
12500       cat > conftest.$ac_ext <<EOF
12501 #line 12502 "configure"
12502 #include "confdefs.h"
12503 #include <math.h>
12504 int main() {
12505  _ldexpl(0, 0);
12506 ; return 0; }
12507 EOF
12508 if { (eval echo configure:12509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12509   rm -rf conftest*
12510   glibcpp_cv_func__ldexpl_use=yes
12511 else
12512   echo "configure: failed program was:" >&5
12513   cat conftest.$ac_ext >&5
12514   rm -rf conftest*
12515   glibcpp_cv_func__ldexpl_use=no
12516 fi
12517 rm -f conftest*
12518       ac_ext=c
12519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12520 ac_cpp='$CPP $CPPFLAGS'
12521 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12522 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12523 cross_compiling=$ac_cv_prog_cc_cross
12524
12525     
12526 fi
12527
12528   fi
12529   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
12530
12531     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
12532       for ac_func in _ldexpl
12533 do
12534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12535 echo "configure:12536: checking for $ac_func" >&5
12536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12537   echo $ac_n "(cached) $ac_c" 1>&6
12538 else
12539   cat > conftest.$ac_ext <<EOF
12540 #line 12541 "configure"
12541 #include "confdefs.h"
12542 /* System header to define __stub macros and hopefully few prototypes,
12543     which can conflict with char $ac_func(); below.  */
12544 #include <assert.h>
12545 /* Override any gcc2 internal prototype to avoid an error.  */
12546 /* We use char because int might match the return type of a gcc2
12547     builtin and then its argument prototype would still apply.  */
12548 char $ac_func();
12549
12550 int main() {
12551
12552 /* The GNU C library defines this for functions which it implements
12553     to always fail with ENOSYS.  Some functions are actually named
12554     something starting with __ and the normal name is an alias.  */
12555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12556 choke me
12557 #else
12558 $ac_func();
12559 #endif
12560
12561 ; return 0; }
12562 EOF
12563 if { (eval echo configure:12564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12564   rm -rf conftest*
12565   eval "ac_cv_func_$ac_func=yes"
12566 else
12567   echo "configure: failed program was:" >&5
12568   cat conftest.$ac_ext >&5
12569   rm -rf conftest*
12570   eval "ac_cv_func_$ac_func=no"
12571 fi
12572 rm -f conftest*
12573 fi
12574
12575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12576   echo "$ac_t""yes" 1>&6
12577     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12578   cat >> confdefs.h <<EOF
12579 #define $ac_tr_func 1
12580 EOF
12581  
12582 else
12583   echo "$ac_t""no" 1>&6
12584 fi
12585 done
12586     
12587     fi  
12588   fi
12589
12590   
12591   
12592   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
12593 echo "configure:12594: checking for logl declaration" >&5
12594   if test x${glibcpp_cv_func_logl_use+set} != xset; then
12595     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
12596   echo $ac_n "(cached) $ac_c" 1>&6
12597 else
12598   
12599       
12600       ac_ext=C
12601 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12602 ac_cpp='$CXXCPP $CPPFLAGS'
12603 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12604 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12605 cross_compiling=$ac_cv_prog_cxx_cross
12606
12607       cat > conftest.$ac_ext <<EOF
12608 #line 12609 "configure"
12609 #include "confdefs.h"
12610 #include <math.h>
12611                       #ifdef HAVE_IEEEFP_H
12612                       #include <ieeefp.h>
12613                       #endif
12614                      
12615 int main() {
12616  logl(0);
12617 ; return 0; }
12618 EOF
12619 if { (eval echo configure:12620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12620   rm -rf conftest*
12621   glibcpp_cv_func_logl_use=yes
12622 else
12623   echo "configure: failed program was:" >&5
12624   cat conftest.$ac_ext >&5
12625   rm -rf conftest*
12626   glibcpp_cv_func_logl_use=no
12627 fi
12628 rm -f conftest*
12629       ac_ext=c
12630 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12631 ac_cpp='$CPP $CPPFLAGS'
12632 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12633 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12634 cross_compiling=$ac_cv_prog_cc_cross
12635
12636     
12637 fi
12638
12639   fi
12640   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
12641
12642   if test x$glibcpp_cv_func_logl_use = x"yes"; then
12643     for ac_func in logl
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   else
12699     
12700   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
12701 echo "configure:12702: checking for _logl declaration" >&5
12702   if test x${glibcpp_cv_func__logl_use+set} != xset; then
12703     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
12704   echo $ac_n "(cached) $ac_c" 1>&6
12705 else
12706   
12707       
12708       ac_ext=C
12709 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12710 ac_cpp='$CXXCPP $CPPFLAGS'
12711 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12712 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12713 cross_compiling=$ac_cv_prog_cxx_cross
12714
12715       cat > conftest.$ac_ext <<EOF
12716 #line 12717 "configure"
12717 #include "confdefs.h"
12718 #include <math.h>
12719                       #ifdef HAVE_IEEEFP_H
12720                       #include <ieeefp.h>
12721                       #endif
12722                      
12723 int main() {
12724  _logl(0);
12725 ; return 0; }
12726 EOF
12727 if { (eval echo configure:12728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12728   rm -rf conftest*
12729   glibcpp_cv_func__logl_use=yes
12730 else
12731   echo "configure: failed program was:" >&5
12732   cat conftest.$ac_ext >&5
12733   rm -rf conftest*
12734   glibcpp_cv_func__logl_use=no
12735 fi
12736 rm -f conftest*
12737       ac_ext=c
12738 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12739 ac_cpp='$CPP $CPPFLAGS'
12740 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12741 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12742 cross_compiling=$ac_cv_prog_cc_cross
12743
12744     
12745 fi
12746
12747   fi
12748   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
12749
12750     if test x$glibcpp_cv_func__logl_use = x"yes"; then
12751       for ac_func in _logl
12752 do
12753 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12754 echo "configure:12755: checking for $ac_func" >&5
12755 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12756   echo $ac_n "(cached) $ac_c" 1>&6
12757 else
12758   cat > conftest.$ac_ext <<EOF
12759 #line 12760 "configure"
12760 #include "confdefs.h"
12761 /* System header to define __stub macros and hopefully few prototypes,
12762     which can conflict with char $ac_func(); below.  */
12763 #include <assert.h>
12764 /* Override any gcc2 internal prototype to avoid an error.  */
12765 /* We use char because int might match the return type of a gcc2
12766     builtin and then its argument prototype would still apply.  */
12767 char $ac_func();
12768
12769 int main() {
12770
12771 /* The GNU C library defines this for functions which it implements
12772     to always fail with ENOSYS.  Some functions are actually named
12773     something starting with __ and the normal name is an alias.  */
12774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12775 choke me
12776 #else
12777 $ac_func();
12778 #endif
12779
12780 ; return 0; }
12781 EOF
12782 if { (eval echo configure:12783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12783   rm -rf conftest*
12784   eval "ac_cv_func_$ac_func=yes"
12785 else
12786   echo "configure: failed program was:" >&5
12787   cat conftest.$ac_ext >&5
12788   rm -rf conftest*
12789   eval "ac_cv_func_$ac_func=no"
12790 fi
12791 rm -f conftest*
12792 fi
12793
12794 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12795   echo "$ac_t""yes" 1>&6
12796     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12797   cat >> confdefs.h <<EOF
12798 #define $ac_tr_func 1
12799 EOF
12800  
12801 else
12802   echo "$ac_t""no" 1>&6
12803 fi
12804 done
12805     
12806     fi  
12807   fi
12808
12809   
12810   
12811   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
12812 echo "configure:12813: checking for log10l declaration" >&5
12813   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
12814     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
12815   echo $ac_n "(cached) $ac_c" 1>&6
12816 else
12817   
12818       
12819       ac_ext=C
12820 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12821 ac_cpp='$CXXCPP $CPPFLAGS'
12822 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12823 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12824 cross_compiling=$ac_cv_prog_cxx_cross
12825
12826       cat > conftest.$ac_ext <<EOF
12827 #line 12828 "configure"
12828 #include "confdefs.h"
12829 #include <math.h>
12830                       #ifdef HAVE_IEEEFP_H
12831                       #include <ieeefp.h>
12832                       #endif
12833                      
12834 int main() {
12835  log10l(0);
12836 ; return 0; }
12837 EOF
12838 if { (eval echo configure:12839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12839   rm -rf conftest*
12840   glibcpp_cv_func_log10l_use=yes
12841 else
12842   echo "configure: failed program was:" >&5
12843   cat conftest.$ac_ext >&5
12844   rm -rf conftest*
12845   glibcpp_cv_func_log10l_use=no
12846 fi
12847 rm -f conftest*
12848       ac_ext=c
12849 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12850 ac_cpp='$CPP $CPPFLAGS'
12851 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12852 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12853 cross_compiling=$ac_cv_prog_cc_cross
12854
12855     
12856 fi
12857
12858   fi
12859   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
12860
12861   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
12862     for ac_func in log10l
12863 do
12864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12865 echo "configure:12866: checking for $ac_func" >&5
12866 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12867   echo $ac_n "(cached) $ac_c" 1>&6
12868 else
12869   cat > conftest.$ac_ext <<EOF
12870 #line 12871 "configure"
12871 #include "confdefs.h"
12872 /* System header to define __stub macros and hopefully few prototypes,
12873     which can conflict with char $ac_func(); below.  */
12874 #include <assert.h>
12875 /* Override any gcc2 internal prototype to avoid an error.  */
12876 /* We use char because int might match the return type of a gcc2
12877     builtin and then its argument prototype would still apply.  */
12878 char $ac_func();
12879
12880 int main() {
12881
12882 /* The GNU C library defines this for functions which it implements
12883     to always fail with ENOSYS.  Some functions are actually named
12884     something starting with __ and the normal name is an alias.  */
12885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12886 choke me
12887 #else
12888 $ac_func();
12889 #endif
12890
12891 ; return 0; }
12892 EOF
12893 if { (eval echo configure:12894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12894   rm -rf conftest*
12895   eval "ac_cv_func_$ac_func=yes"
12896 else
12897   echo "configure: failed program was:" >&5
12898   cat conftest.$ac_ext >&5
12899   rm -rf conftest*
12900   eval "ac_cv_func_$ac_func=no"
12901 fi
12902 rm -f conftest*
12903 fi
12904
12905 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12906   echo "$ac_t""yes" 1>&6
12907     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12908   cat >> confdefs.h <<EOF
12909 #define $ac_tr_func 1
12910 EOF
12911  
12912 else
12913   echo "$ac_t""no" 1>&6
12914 fi
12915 done
12916     
12917   else
12918     
12919   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
12920 echo "configure:12921: checking for _log10l declaration" >&5
12921   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
12922     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
12923   echo $ac_n "(cached) $ac_c" 1>&6
12924 else
12925   
12926       
12927       ac_ext=C
12928 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12929 ac_cpp='$CXXCPP $CPPFLAGS'
12930 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12931 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12932 cross_compiling=$ac_cv_prog_cxx_cross
12933
12934       cat > conftest.$ac_ext <<EOF
12935 #line 12936 "configure"
12936 #include "confdefs.h"
12937 #include <math.h>
12938                       #ifdef HAVE_IEEEFP_H
12939                       #include <ieeefp.h>
12940                       #endif
12941                      
12942 int main() {
12943  _log10l(0);
12944 ; return 0; }
12945 EOF
12946 if { (eval echo configure:12947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12947   rm -rf conftest*
12948   glibcpp_cv_func__log10l_use=yes
12949 else
12950   echo "configure: failed program was:" >&5
12951   cat conftest.$ac_ext >&5
12952   rm -rf conftest*
12953   glibcpp_cv_func__log10l_use=no
12954 fi
12955 rm -f conftest*
12956       ac_ext=c
12957 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12958 ac_cpp='$CPP $CPPFLAGS'
12959 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12960 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12961 cross_compiling=$ac_cv_prog_cc_cross
12962
12963     
12964 fi
12965
12966   fi
12967   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
12968
12969     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
12970       for ac_func in _log10l
12971 do
12972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12973 echo "configure:12974: checking for $ac_func" >&5
12974 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12975   echo $ac_n "(cached) $ac_c" 1>&6
12976 else
12977   cat > conftest.$ac_ext <<EOF
12978 #line 12979 "configure"
12979 #include "confdefs.h"
12980 /* System header to define __stub macros and hopefully few prototypes,
12981     which can conflict with char $ac_func(); below.  */
12982 #include <assert.h>
12983 /* Override any gcc2 internal prototype to avoid an error.  */
12984 /* We use char because int might match the return type of a gcc2
12985     builtin and then its argument prototype would still apply.  */
12986 char $ac_func();
12987
12988 int main() {
12989
12990 /* The GNU C library defines this for functions which it implements
12991     to always fail with ENOSYS.  Some functions are actually named
12992     something starting with __ and the normal name is an alias.  */
12993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12994 choke me
12995 #else
12996 $ac_func();
12997 #endif
12998
12999 ; return 0; }
13000 EOF
13001 if { (eval echo configure:13002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13002   rm -rf conftest*
13003   eval "ac_cv_func_$ac_func=yes"
13004 else
13005   echo "configure: failed program was:" >&5
13006   cat conftest.$ac_ext >&5
13007   rm -rf conftest*
13008   eval "ac_cv_func_$ac_func=no"
13009 fi
13010 rm -f conftest*
13011 fi
13012
13013 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13014   echo "$ac_t""yes" 1>&6
13015     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13016   cat >> confdefs.h <<EOF
13017 #define $ac_tr_func 1
13018 EOF
13019  
13020 else
13021   echo "$ac_t""no" 1>&6
13022 fi
13023 done
13024     
13025     fi  
13026   fi
13027
13028   
13029   
13030   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
13031 echo "configure:13032: checking for modfl declaration" >&5
13032   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
13033     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
13034   echo $ac_n "(cached) $ac_c" 1>&6
13035 else
13036   
13037       
13038       ac_ext=C
13039 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13040 ac_cpp='$CXXCPP $CPPFLAGS'
13041 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13042 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13043 cross_compiling=$ac_cv_prog_cxx_cross
13044
13045       cat > conftest.$ac_ext <<EOF
13046 #line 13047 "configure"
13047 #include "confdefs.h"
13048 #include <math.h>
13049 int main() {
13050  modfl(0, 0);
13051 ; return 0; }
13052 EOF
13053 if { (eval echo configure:13054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13054   rm -rf conftest*
13055   glibcpp_cv_func_modfl_use=yes
13056 else
13057   echo "configure: failed program was:" >&5
13058   cat conftest.$ac_ext >&5
13059   rm -rf conftest*
13060   glibcpp_cv_func_modfl_use=no
13061 fi
13062 rm -f conftest*
13063       ac_ext=c
13064 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13065 ac_cpp='$CPP $CPPFLAGS'
13066 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13067 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13068 cross_compiling=$ac_cv_prog_cc_cross
13069
13070     
13071 fi
13072
13073   fi
13074   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
13075
13076   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
13077     for ac_func in modfl
13078 do
13079 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13080 echo "configure:13081: checking for $ac_func" >&5
13081 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13082   echo $ac_n "(cached) $ac_c" 1>&6
13083 else
13084   cat > conftest.$ac_ext <<EOF
13085 #line 13086 "configure"
13086 #include "confdefs.h"
13087 /* System header to define __stub macros and hopefully few prototypes,
13088     which can conflict with char $ac_func(); below.  */
13089 #include <assert.h>
13090 /* Override any gcc2 internal prototype to avoid an error.  */
13091 /* We use char because int might match the return type of a gcc2
13092     builtin and then its argument prototype would still apply.  */
13093 char $ac_func();
13094
13095 int main() {
13096
13097 /* The GNU C library defines this for functions which it implements
13098     to always fail with ENOSYS.  Some functions are actually named
13099     something starting with __ and the normal name is an alias.  */
13100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13101 choke me
13102 #else
13103 $ac_func();
13104 #endif
13105
13106 ; return 0; }
13107 EOF
13108 if { (eval echo configure:13109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13109   rm -rf conftest*
13110   eval "ac_cv_func_$ac_func=yes"
13111 else
13112   echo "configure: failed program was:" >&5
13113   cat conftest.$ac_ext >&5
13114   rm -rf conftest*
13115   eval "ac_cv_func_$ac_func=no"
13116 fi
13117 rm -f conftest*
13118 fi
13119
13120 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13121   echo "$ac_t""yes" 1>&6
13122     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13123   cat >> confdefs.h <<EOF
13124 #define $ac_tr_func 1
13125 EOF
13126  
13127 else
13128   echo "$ac_t""no" 1>&6
13129 fi
13130 done
13131     
13132   else
13133     
13134   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
13135 echo "configure:13136: checking for _modfl declaration" >&5
13136   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
13137     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
13138   echo $ac_n "(cached) $ac_c" 1>&6
13139 else
13140   
13141       
13142       ac_ext=C
13143 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13144 ac_cpp='$CXXCPP $CPPFLAGS'
13145 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13146 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13147 cross_compiling=$ac_cv_prog_cxx_cross
13148
13149       cat > conftest.$ac_ext <<EOF
13150 #line 13151 "configure"
13151 #include "confdefs.h"
13152 #include <math.h>
13153 int main() {
13154  _modfl(0, 0);
13155 ; return 0; }
13156 EOF
13157 if { (eval echo configure:13158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13158   rm -rf conftest*
13159   glibcpp_cv_func__modfl_use=yes
13160 else
13161   echo "configure: failed program was:" >&5
13162   cat conftest.$ac_ext >&5
13163   rm -rf conftest*
13164   glibcpp_cv_func__modfl_use=no
13165 fi
13166 rm -f conftest*
13167       ac_ext=c
13168 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13169 ac_cpp='$CPP $CPPFLAGS'
13170 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13171 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13172 cross_compiling=$ac_cv_prog_cc_cross
13173
13174     
13175 fi
13176
13177   fi
13178   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
13179
13180     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
13181       for ac_func in _modfl
13182 do
13183 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13184 echo "configure:13185: checking for $ac_func" >&5
13185 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13186   echo $ac_n "(cached) $ac_c" 1>&6
13187 else
13188   cat > conftest.$ac_ext <<EOF
13189 #line 13190 "configure"
13190 #include "confdefs.h"
13191 /* System header to define __stub macros and hopefully few prototypes,
13192     which can conflict with char $ac_func(); below.  */
13193 #include <assert.h>
13194 /* Override any gcc2 internal prototype to avoid an error.  */
13195 /* We use char because int might match the return type of a gcc2
13196     builtin and then its argument prototype would still apply.  */
13197 char $ac_func();
13198
13199 int main() {
13200
13201 /* The GNU C library defines this for functions which it implements
13202     to always fail with ENOSYS.  Some functions are actually named
13203     something starting with __ and the normal name is an alias.  */
13204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13205 choke me
13206 #else
13207 $ac_func();
13208 #endif
13209
13210 ; return 0; }
13211 EOF
13212 if { (eval echo configure:13213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13213   rm -rf conftest*
13214   eval "ac_cv_func_$ac_func=yes"
13215 else
13216   echo "configure: failed program was:" >&5
13217   cat conftest.$ac_ext >&5
13218   rm -rf conftest*
13219   eval "ac_cv_func_$ac_func=no"
13220 fi
13221 rm -f conftest*
13222 fi
13223
13224 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13225   echo "$ac_t""yes" 1>&6
13226     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13227   cat >> confdefs.h <<EOF
13228 #define $ac_tr_func 1
13229 EOF
13230  
13231 else
13232   echo "$ac_t""no" 1>&6
13233 fi
13234 done
13235     
13236     fi  
13237   fi
13238
13239   
13240   
13241   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
13242 echo "configure:13243: checking for powl declaration" >&5
13243   if test x${glibcpp_cv_func_powl_use+set} != xset; then
13244     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
13245   echo $ac_n "(cached) $ac_c" 1>&6
13246 else
13247   
13248       
13249       ac_ext=C
13250 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13251 ac_cpp='$CXXCPP $CPPFLAGS'
13252 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13253 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13254 cross_compiling=$ac_cv_prog_cxx_cross
13255
13256       cat > conftest.$ac_ext <<EOF
13257 #line 13258 "configure"
13258 #include "confdefs.h"
13259 #include <math.h>
13260 int main() {
13261  powl(0, 0);
13262 ; return 0; }
13263 EOF
13264 if { (eval echo configure:13265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13265   rm -rf conftest*
13266   glibcpp_cv_func_powl_use=yes
13267 else
13268   echo "configure: failed program was:" >&5
13269   cat conftest.$ac_ext >&5
13270   rm -rf conftest*
13271   glibcpp_cv_func_powl_use=no
13272 fi
13273 rm -f conftest*
13274       ac_ext=c
13275 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13276 ac_cpp='$CPP $CPPFLAGS'
13277 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13278 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13279 cross_compiling=$ac_cv_prog_cc_cross
13280
13281     
13282 fi
13283
13284   fi
13285   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
13286
13287   if test x$glibcpp_cv_func_powl_use = x"yes"; then
13288     for ac_func in powl
13289 do
13290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13291 echo "configure:13292: checking for $ac_func" >&5
13292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13293   echo $ac_n "(cached) $ac_c" 1>&6
13294 else
13295   cat > conftest.$ac_ext <<EOF
13296 #line 13297 "configure"
13297 #include "confdefs.h"
13298 /* System header to define __stub macros and hopefully few prototypes,
13299     which can conflict with char $ac_func(); below.  */
13300 #include <assert.h>
13301 /* Override any gcc2 internal prototype to avoid an error.  */
13302 /* We use char because int might match the return type of a gcc2
13303     builtin and then its argument prototype would still apply.  */
13304 char $ac_func();
13305
13306 int main() {
13307
13308 /* The GNU C library defines this for functions which it implements
13309     to always fail with ENOSYS.  Some functions are actually named
13310     something starting with __ and the normal name is an alias.  */
13311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13312 choke me
13313 #else
13314 $ac_func();
13315 #endif
13316
13317 ; return 0; }
13318 EOF
13319 if { (eval echo configure:13320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13320   rm -rf conftest*
13321   eval "ac_cv_func_$ac_func=yes"
13322 else
13323   echo "configure: failed program was:" >&5
13324   cat conftest.$ac_ext >&5
13325   rm -rf conftest*
13326   eval "ac_cv_func_$ac_func=no"
13327 fi
13328 rm -f conftest*
13329 fi
13330
13331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13332   echo "$ac_t""yes" 1>&6
13333     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13334   cat >> confdefs.h <<EOF
13335 #define $ac_tr_func 1
13336 EOF
13337  
13338 else
13339   echo "$ac_t""no" 1>&6
13340 fi
13341 done
13342     
13343   else
13344     
13345   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
13346 echo "configure:13347: checking for _powl declaration" >&5
13347   if test x${glibcpp_cv_func__powl_use+set} != xset; then
13348     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
13349   echo $ac_n "(cached) $ac_c" 1>&6
13350 else
13351   
13352       
13353       ac_ext=C
13354 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13355 ac_cpp='$CXXCPP $CPPFLAGS'
13356 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13357 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13358 cross_compiling=$ac_cv_prog_cxx_cross
13359
13360       cat > conftest.$ac_ext <<EOF
13361 #line 13362 "configure"
13362 #include "confdefs.h"
13363 #include <math.h>
13364 int main() {
13365  _powl(0, 0);
13366 ; return 0; }
13367 EOF
13368 if { (eval echo configure:13369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13369   rm -rf conftest*
13370   glibcpp_cv_func__powl_use=yes
13371 else
13372   echo "configure: failed program was:" >&5
13373   cat conftest.$ac_ext >&5
13374   rm -rf conftest*
13375   glibcpp_cv_func__powl_use=no
13376 fi
13377 rm -f conftest*
13378       ac_ext=c
13379 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13380 ac_cpp='$CPP $CPPFLAGS'
13381 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13382 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13383 cross_compiling=$ac_cv_prog_cc_cross
13384
13385     
13386 fi
13387
13388   fi
13389   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
13390
13391     if test x$glibcpp_cv_func__powl_use = x"yes"; then
13392       for ac_func in _powl
13393 do
13394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13395 echo "configure:13396: checking for $ac_func" >&5
13396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13397   echo $ac_n "(cached) $ac_c" 1>&6
13398 else
13399   cat > conftest.$ac_ext <<EOF
13400 #line 13401 "configure"
13401 #include "confdefs.h"
13402 /* System header to define __stub macros and hopefully few prototypes,
13403     which can conflict with char $ac_func(); below.  */
13404 #include <assert.h>
13405 /* Override any gcc2 internal prototype to avoid an error.  */
13406 /* We use char because int might match the return type of a gcc2
13407     builtin and then its argument prototype would still apply.  */
13408 char $ac_func();
13409
13410 int main() {
13411
13412 /* The GNU C library defines this for functions which it implements
13413     to always fail with ENOSYS.  Some functions are actually named
13414     something starting with __ and the normal name is an alias.  */
13415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13416 choke me
13417 #else
13418 $ac_func();
13419 #endif
13420
13421 ; return 0; }
13422 EOF
13423 if { (eval echo configure:13424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13424   rm -rf conftest*
13425   eval "ac_cv_func_$ac_func=yes"
13426 else
13427   echo "configure: failed program was:" >&5
13428   cat conftest.$ac_ext >&5
13429   rm -rf conftest*
13430   eval "ac_cv_func_$ac_func=no"
13431 fi
13432 rm -f conftest*
13433 fi
13434
13435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13436   echo "$ac_t""yes" 1>&6
13437     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13438   cat >> confdefs.h <<EOF
13439 #define $ac_tr_func 1
13440 EOF
13441  
13442 else
13443   echo "$ac_t""no" 1>&6
13444 fi
13445 done
13446     
13447     fi  
13448   fi
13449
13450   
13451   
13452   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
13453 echo "configure:13454: checking for sqrtl declaration" >&5
13454   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
13455     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
13456   echo $ac_n "(cached) $ac_c" 1>&6
13457 else
13458   
13459       
13460       ac_ext=C
13461 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13462 ac_cpp='$CXXCPP $CPPFLAGS'
13463 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13464 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13465 cross_compiling=$ac_cv_prog_cxx_cross
13466
13467       cat > conftest.$ac_ext <<EOF
13468 #line 13469 "configure"
13469 #include "confdefs.h"
13470 #include <math.h>
13471                       #ifdef HAVE_IEEEFP_H
13472                       #include <ieeefp.h>
13473                       #endif
13474                      
13475 int main() {
13476  sqrtl(0);
13477 ; return 0; }
13478 EOF
13479 if { (eval echo configure:13480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13480   rm -rf conftest*
13481   glibcpp_cv_func_sqrtl_use=yes
13482 else
13483   echo "configure: failed program was:" >&5
13484   cat conftest.$ac_ext >&5
13485   rm -rf conftest*
13486   glibcpp_cv_func_sqrtl_use=no
13487 fi
13488 rm -f conftest*
13489       ac_ext=c
13490 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13491 ac_cpp='$CPP $CPPFLAGS'
13492 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13493 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13494 cross_compiling=$ac_cv_prog_cc_cross
13495
13496     
13497 fi
13498
13499   fi
13500   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
13501
13502   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
13503     for ac_func in sqrtl
13504 do
13505 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13506 echo "configure:13507: checking for $ac_func" >&5
13507 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13508   echo $ac_n "(cached) $ac_c" 1>&6
13509 else
13510   cat > conftest.$ac_ext <<EOF
13511 #line 13512 "configure"
13512 #include "confdefs.h"
13513 /* System header to define __stub macros and hopefully few prototypes,
13514     which can conflict with char $ac_func(); below.  */
13515 #include <assert.h>
13516 /* Override any gcc2 internal prototype to avoid an error.  */
13517 /* We use char because int might match the return type of a gcc2
13518     builtin and then its argument prototype would still apply.  */
13519 char $ac_func();
13520
13521 int main() {
13522
13523 /* The GNU C library defines this for functions which it implements
13524     to always fail with ENOSYS.  Some functions are actually named
13525     something starting with __ and the normal name is an alias.  */
13526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13527 choke me
13528 #else
13529 $ac_func();
13530 #endif
13531
13532 ; return 0; }
13533 EOF
13534 if { (eval echo configure:13535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13535   rm -rf conftest*
13536   eval "ac_cv_func_$ac_func=yes"
13537 else
13538   echo "configure: failed program was:" >&5
13539   cat conftest.$ac_ext >&5
13540   rm -rf conftest*
13541   eval "ac_cv_func_$ac_func=no"
13542 fi
13543 rm -f conftest*
13544 fi
13545
13546 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13547   echo "$ac_t""yes" 1>&6
13548     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13549   cat >> confdefs.h <<EOF
13550 #define $ac_tr_func 1
13551 EOF
13552  
13553 else
13554   echo "$ac_t""no" 1>&6
13555 fi
13556 done
13557     
13558   else
13559     
13560   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
13561 echo "configure:13562: checking for _sqrtl declaration" >&5
13562   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
13563     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
13564   echo $ac_n "(cached) $ac_c" 1>&6
13565 else
13566   
13567       
13568       ac_ext=C
13569 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13570 ac_cpp='$CXXCPP $CPPFLAGS'
13571 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13572 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13573 cross_compiling=$ac_cv_prog_cxx_cross
13574
13575       cat > conftest.$ac_ext <<EOF
13576 #line 13577 "configure"
13577 #include "confdefs.h"
13578 #include <math.h>
13579                       #ifdef HAVE_IEEEFP_H
13580                       #include <ieeefp.h>
13581                       #endif
13582                      
13583 int main() {
13584  _sqrtl(0);
13585 ; return 0; }
13586 EOF
13587 if { (eval echo configure:13588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13588   rm -rf conftest*
13589   glibcpp_cv_func__sqrtl_use=yes
13590 else
13591   echo "configure: failed program was:" >&5
13592   cat conftest.$ac_ext >&5
13593   rm -rf conftest*
13594   glibcpp_cv_func__sqrtl_use=no
13595 fi
13596 rm -f conftest*
13597       ac_ext=c
13598 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13599 ac_cpp='$CPP $CPPFLAGS'
13600 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13601 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13602 cross_compiling=$ac_cv_prog_cc_cross
13603
13604     
13605 fi
13606
13607   fi
13608   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
13609
13610     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
13611       for ac_func in _sqrtl
13612 do
13613 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13614 echo "configure:13615: checking for $ac_func" >&5
13615 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13616   echo $ac_n "(cached) $ac_c" 1>&6
13617 else
13618   cat > conftest.$ac_ext <<EOF
13619 #line 13620 "configure"
13620 #include "confdefs.h"
13621 /* System header to define __stub macros and hopefully few prototypes,
13622     which can conflict with char $ac_func(); below.  */
13623 #include <assert.h>
13624 /* Override any gcc2 internal prototype to avoid an error.  */
13625 /* We use char because int might match the return type of a gcc2
13626     builtin and then its argument prototype would still apply.  */
13627 char $ac_func();
13628
13629 int main() {
13630
13631 /* The GNU C library defines this for functions which it implements
13632     to always fail with ENOSYS.  Some functions are actually named
13633     something starting with __ and the normal name is an alias.  */
13634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13635 choke me
13636 #else
13637 $ac_func();
13638 #endif
13639
13640 ; return 0; }
13641 EOF
13642 if { (eval echo configure:13643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13643   rm -rf conftest*
13644   eval "ac_cv_func_$ac_func=yes"
13645 else
13646   echo "configure: failed program was:" >&5
13647   cat conftest.$ac_ext >&5
13648   rm -rf conftest*
13649   eval "ac_cv_func_$ac_func=no"
13650 fi
13651 rm -f conftest*
13652 fi
13653
13654 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13655   echo "$ac_t""yes" 1>&6
13656     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13657   cat >> confdefs.h <<EOF
13658 #define $ac_tr_func 1
13659 EOF
13660  
13661 else
13662   echo "$ac_t""no" 1>&6
13663 fi
13664 done
13665     
13666     fi  
13667   fi
13668
13669   
13670   
13671   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
13672 echo "configure:13673: checking for sincosl declaration" >&5
13673   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
13674     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
13675   echo $ac_n "(cached) $ac_c" 1>&6
13676 else
13677   
13678       
13679       ac_ext=C
13680 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13681 ac_cpp='$CXXCPP $CPPFLAGS'
13682 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13683 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13684 cross_compiling=$ac_cv_prog_cxx_cross
13685
13686       cat > conftest.$ac_ext <<EOF
13687 #line 13688 "configure"
13688 #include "confdefs.h"
13689 #include <math.h>
13690 int main() {
13691  sincosl(0, 0, 0);
13692 ; return 0; }
13693 EOF
13694 if { (eval echo configure:13695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13695   rm -rf conftest*
13696   glibcpp_cv_func_sincosl_use=yes
13697 else
13698   echo "configure: failed program was:" >&5
13699   cat conftest.$ac_ext >&5
13700   rm -rf conftest*
13701   glibcpp_cv_func_sincosl_use=no
13702 fi
13703 rm -f conftest*
13704       ac_ext=c
13705 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13706 ac_cpp='$CPP $CPPFLAGS'
13707 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13708 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13709 cross_compiling=$ac_cv_prog_cc_cross
13710
13711     
13712 fi
13713
13714   fi
13715   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
13716
13717   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
13718     for ac_func in sincosl
13719 do
13720 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13721 echo "configure:13722: checking for $ac_func" >&5
13722 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13723   echo $ac_n "(cached) $ac_c" 1>&6
13724 else
13725   cat > conftest.$ac_ext <<EOF
13726 #line 13727 "configure"
13727 #include "confdefs.h"
13728 /* System header to define __stub macros and hopefully few prototypes,
13729     which can conflict with char $ac_func(); below.  */
13730 #include <assert.h>
13731 /* Override any gcc2 internal prototype to avoid an error.  */
13732 /* We use char because int might match the return type of a gcc2
13733     builtin and then its argument prototype would still apply.  */
13734 char $ac_func();
13735
13736 int main() {
13737
13738 /* The GNU C library defines this for functions which it implements
13739     to always fail with ENOSYS.  Some functions are actually named
13740     something starting with __ and the normal name is an alias.  */
13741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13742 choke me
13743 #else
13744 $ac_func();
13745 #endif
13746
13747 ; return 0; }
13748 EOF
13749 if { (eval echo configure:13750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13750   rm -rf conftest*
13751   eval "ac_cv_func_$ac_func=yes"
13752 else
13753   echo "configure: failed program was:" >&5
13754   cat conftest.$ac_ext >&5
13755   rm -rf conftest*
13756   eval "ac_cv_func_$ac_func=no"
13757 fi
13758 rm -f conftest*
13759 fi
13760
13761 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13762   echo "$ac_t""yes" 1>&6
13763     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13764   cat >> confdefs.h <<EOF
13765 #define $ac_tr_func 1
13766 EOF
13767  
13768 else
13769   echo "$ac_t""no" 1>&6
13770 fi
13771 done
13772     
13773   else
13774     
13775   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
13776 echo "configure:13777: checking for _sincosl declaration" >&5
13777   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
13778     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
13779   echo $ac_n "(cached) $ac_c" 1>&6
13780 else
13781   
13782       
13783       ac_ext=C
13784 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13785 ac_cpp='$CXXCPP $CPPFLAGS'
13786 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13787 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13788 cross_compiling=$ac_cv_prog_cxx_cross
13789
13790       cat > conftest.$ac_ext <<EOF
13791 #line 13792 "configure"
13792 #include "confdefs.h"
13793 #include <math.h>
13794 int main() {
13795  _sincosl(0, 0, 0);
13796 ; return 0; }
13797 EOF
13798 if { (eval echo configure:13799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13799   rm -rf conftest*
13800   glibcpp_cv_func__sincosl_use=yes
13801 else
13802   echo "configure: failed program was:" >&5
13803   cat conftest.$ac_ext >&5
13804   rm -rf conftest*
13805   glibcpp_cv_func__sincosl_use=no
13806 fi
13807 rm -f conftest*
13808       ac_ext=c
13809 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13810 ac_cpp='$CPP $CPPFLAGS'
13811 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13812 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13813 cross_compiling=$ac_cv_prog_cc_cross
13814
13815     
13816 fi
13817
13818   fi
13819   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
13820
13821     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
13822       for ac_func in _sincosl
13823 do
13824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13825 echo "configure:13826: checking for $ac_func" >&5
13826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13827   echo $ac_n "(cached) $ac_c" 1>&6
13828 else
13829   cat > conftest.$ac_ext <<EOF
13830 #line 13831 "configure"
13831 #include "confdefs.h"
13832 /* System header to define __stub macros and hopefully few prototypes,
13833     which can conflict with char $ac_func(); below.  */
13834 #include <assert.h>
13835 /* Override any gcc2 internal prototype to avoid an error.  */
13836 /* We use char because int might match the return type of a gcc2
13837     builtin and then its argument prototype would still apply.  */
13838 char $ac_func();
13839
13840 int main() {
13841
13842 /* The GNU C library defines this for functions which it implements
13843     to always fail with ENOSYS.  Some functions are actually named
13844     something starting with __ and the normal name is an alias.  */
13845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13846 choke me
13847 #else
13848 $ac_func();
13849 #endif
13850
13851 ; return 0; }
13852 EOF
13853 if { (eval echo configure:13854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13854   rm -rf conftest*
13855   eval "ac_cv_func_$ac_func=yes"
13856 else
13857   echo "configure: failed program was:" >&5
13858   cat conftest.$ac_ext >&5
13859   rm -rf conftest*
13860   eval "ac_cv_func_$ac_func=no"
13861 fi
13862 rm -f conftest*
13863 fi
13864
13865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13866   echo "$ac_t""yes" 1>&6
13867     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13868   cat >> confdefs.h <<EOF
13869 #define $ac_tr_func 1
13870 EOF
13871  
13872 else
13873   echo "$ac_t""no" 1>&6
13874 fi
13875 done
13876     
13877     fi  
13878   fi
13879
13880   
13881   
13882   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
13883 echo "configure:13884: checking for finitel declaration" >&5
13884   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
13885     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
13886   echo $ac_n "(cached) $ac_c" 1>&6
13887 else
13888   
13889       
13890       ac_ext=C
13891 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13892 ac_cpp='$CXXCPP $CPPFLAGS'
13893 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13894 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13895 cross_compiling=$ac_cv_prog_cxx_cross
13896
13897       cat > conftest.$ac_ext <<EOF
13898 #line 13899 "configure"
13899 #include "confdefs.h"
13900 #include <math.h>
13901                       #ifdef HAVE_IEEEFP_H
13902                       #include <ieeefp.h>
13903                       #endif
13904                      
13905 int main() {
13906  finitel(0);
13907 ; return 0; }
13908 EOF
13909 if { (eval echo configure:13910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13910   rm -rf conftest*
13911   glibcpp_cv_func_finitel_use=yes
13912 else
13913   echo "configure: failed program was:" >&5
13914   cat conftest.$ac_ext >&5
13915   rm -rf conftest*
13916   glibcpp_cv_func_finitel_use=no
13917 fi
13918 rm -f conftest*
13919       ac_ext=c
13920 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13921 ac_cpp='$CPP $CPPFLAGS'
13922 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13923 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13924 cross_compiling=$ac_cv_prog_cc_cross
13925
13926     
13927 fi
13928
13929   fi
13930   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
13931
13932   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
13933     for ac_func in finitel
13934 do
13935 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13936 echo "configure:13937: checking for $ac_func" >&5
13937 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13938   echo $ac_n "(cached) $ac_c" 1>&6
13939 else
13940   cat > conftest.$ac_ext <<EOF
13941 #line 13942 "configure"
13942 #include "confdefs.h"
13943 /* System header to define __stub macros and hopefully few prototypes,
13944     which can conflict with char $ac_func(); below.  */
13945 #include <assert.h>
13946 /* Override any gcc2 internal prototype to avoid an error.  */
13947 /* We use char because int might match the return type of a gcc2
13948     builtin and then its argument prototype would still apply.  */
13949 char $ac_func();
13950
13951 int main() {
13952
13953 /* The GNU C library defines this for functions which it implements
13954     to always fail with ENOSYS.  Some functions are actually named
13955     something starting with __ and the normal name is an alias.  */
13956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13957 choke me
13958 #else
13959 $ac_func();
13960 #endif
13961
13962 ; return 0; }
13963 EOF
13964 if { (eval echo configure:13965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13965   rm -rf conftest*
13966   eval "ac_cv_func_$ac_func=yes"
13967 else
13968   echo "configure: failed program was:" >&5
13969   cat conftest.$ac_ext >&5
13970   rm -rf conftest*
13971   eval "ac_cv_func_$ac_func=no"
13972 fi
13973 rm -f conftest*
13974 fi
13975
13976 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13977   echo "$ac_t""yes" 1>&6
13978     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13979   cat >> confdefs.h <<EOF
13980 #define $ac_tr_func 1
13981 EOF
13982  
13983 else
13984   echo "$ac_t""no" 1>&6
13985 fi
13986 done
13987     
13988   else
13989     
13990   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
13991 echo "configure:13992: checking for _finitel declaration" >&5
13992   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
13993     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
13994   echo $ac_n "(cached) $ac_c" 1>&6
13995 else
13996   
13997       
13998       ac_ext=C
13999 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14000 ac_cpp='$CXXCPP $CPPFLAGS'
14001 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14002 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14003 cross_compiling=$ac_cv_prog_cxx_cross
14004
14005       cat > conftest.$ac_ext <<EOF
14006 #line 14007 "configure"
14007 #include "confdefs.h"
14008 #include <math.h>
14009                       #ifdef HAVE_IEEEFP_H
14010                       #include <ieeefp.h>
14011                       #endif
14012                      
14013 int main() {
14014  _finitel(0);
14015 ; return 0; }
14016 EOF
14017 if { (eval echo configure:14018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14018   rm -rf conftest*
14019   glibcpp_cv_func__finitel_use=yes
14020 else
14021   echo "configure: failed program was:" >&5
14022   cat conftest.$ac_ext >&5
14023   rm -rf conftest*
14024   glibcpp_cv_func__finitel_use=no
14025 fi
14026 rm -f conftest*
14027       ac_ext=c
14028 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14029 ac_cpp='$CPP $CPPFLAGS'
14030 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14031 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14032 cross_compiling=$ac_cv_prog_cc_cross
14033
14034     
14035 fi
14036
14037   fi
14038   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
14039
14040     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
14041       for ac_func in _finitel
14042 do
14043 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14044 echo "configure:14045: checking for $ac_func" >&5
14045 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14046   echo $ac_n "(cached) $ac_c" 1>&6
14047 else
14048   cat > conftest.$ac_ext <<EOF
14049 #line 14050 "configure"
14050 #include "confdefs.h"
14051 /* System header to define __stub macros and hopefully few prototypes,
14052     which can conflict with char $ac_func(); below.  */
14053 #include <assert.h>
14054 /* Override any gcc2 internal prototype to avoid an error.  */
14055 /* We use char because int might match the return type of a gcc2
14056     builtin and then its argument prototype would still apply.  */
14057 char $ac_func();
14058
14059 int main() {
14060
14061 /* The GNU C library defines this for functions which it implements
14062     to always fail with ENOSYS.  Some functions are actually named
14063     something starting with __ and the normal name is an alias.  */
14064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14065 choke me
14066 #else
14067 $ac_func();
14068 #endif
14069
14070 ; return 0; }
14071 EOF
14072 if { (eval echo configure:14073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14073   rm -rf conftest*
14074   eval "ac_cv_func_$ac_func=yes"
14075 else
14076   echo "configure: failed program was:" >&5
14077   cat conftest.$ac_ext >&5
14078   rm -rf conftest*
14079   eval "ac_cv_func_$ac_func=no"
14080 fi
14081 rm -f conftest*
14082 fi
14083
14084 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14085   echo "$ac_t""yes" 1>&6
14086     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14087   cat >> confdefs.h <<EOF
14088 #define $ac_tr_func 1
14089 EOF
14090  
14091 else
14092   echo "$ac_t""no" 1>&6
14093 fi
14094 done
14095     
14096     fi  
14097   fi
14098
14099
14100         
14101     
14102   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
14103 echo "configure:14104: checking for _float trig functions" >&5
14104   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
14105   echo $ac_n "(cached) $ac_c" 1>&6
14106 else
14107   
14108     
14109     ac_ext=C
14110 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14111 ac_cpp='$CXXCPP $CPPFLAGS'
14112 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14113 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14114 cross_compiling=$ac_cv_prog_cxx_cross
14115
14116     cat > conftest.$ac_ext <<EOF
14117 #line 14118 "configure"
14118 #include "confdefs.h"
14119 #include <math.h>
14120 int main() {
14121  `for x in _acosf _asinf _atanf \
14122                                           _cosf _sinf _tanf \
14123                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
14124 ; return 0; }
14125 EOF
14126 if { (eval echo configure:14127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14127   rm -rf conftest*
14128   glibcpp_cv_func__float_trig_use=yes
14129 else
14130   echo "configure: failed program was:" >&5
14131   cat conftest.$ac_ext >&5
14132   rm -rf conftest*
14133   glibcpp_cv_func__float_trig_use=no
14134 fi
14135 rm -f conftest*
14136     ac_ext=c
14137 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14138 ac_cpp='$CPP $CPPFLAGS'
14139 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14140 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14141 cross_compiling=$ac_cv_prog_cc_cross
14142
14143 fi
14144
14145   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
14146   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
14147     for ac_func in _acosf _asinf _atanf \
14148                                           _cosf _sinf _tanf \
14149                                           _coshf _sinhf _tanhf
14150 do
14151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14152 echo "configure:14153: checking for $ac_func" >&5
14153 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14154   echo $ac_n "(cached) $ac_c" 1>&6
14155 else
14156   cat > conftest.$ac_ext <<EOF
14157 #line 14158 "configure"
14158 #include "confdefs.h"
14159 /* System header to define __stub macros and hopefully few prototypes,
14160     which can conflict with char $ac_func(); below.  */
14161 #include <assert.h>
14162 /* Override any gcc2 internal prototype to avoid an error.  */
14163 /* We use char because int might match the return type of a gcc2
14164     builtin and then its argument prototype would still apply.  */
14165 char $ac_func();
14166
14167 int main() {
14168
14169 /* The GNU C library defines this for functions which it implements
14170     to always fail with ENOSYS.  Some functions are actually named
14171     something starting with __ and the normal name is an alias.  */
14172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14173 choke me
14174 #else
14175 $ac_func();
14176 #endif
14177
14178 ; return 0; }
14179 EOF
14180 if { (eval echo configure:14181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14181   rm -rf conftest*
14182   eval "ac_cv_func_$ac_func=yes"
14183 else
14184   echo "configure: failed program was:" >&5
14185   cat conftest.$ac_ext >&5
14186   rm -rf conftest*
14187   eval "ac_cv_func_$ac_func=no"
14188 fi
14189 rm -f conftest*
14190 fi
14191
14192 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14193   echo "$ac_t""yes" 1>&6
14194     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14195   cat >> confdefs.h <<EOF
14196 #define $ac_tr_func 1
14197 EOF
14198  
14199 else
14200   echo "$ac_t""no" 1>&6
14201 fi
14202 done
14203
14204   fi
14205
14206   
14207   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
14208 echo "configure:14209: checking for _float round functions" >&5
14209   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
14210   echo $ac_n "(cached) $ac_c" 1>&6
14211 else
14212   
14213     
14214     ac_ext=C
14215 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14216 ac_cpp='$CXXCPP $CPPFLAGS'
14217 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14218 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14219 cross_compiling=$ac_cv_prog_cxx_cross
14220
14221     cat > conftest.$ac_ext <<EOF
14222 #line 14223 "configure"
14223 #include "confdefs.h"
14224 #include <math.h>
14225 int main() {
14226  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
14227 ; return 0; }
14228 EOF
14229 if { (eval echo configure:14230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14230   rm -rf conftest*
14231   glibcpp_cv_func__float_round_use=yes
14232 else
14233   echo "configure: failed program was:" >&5
14234   cat conftest.$ac_ext >&5
14235   rm -rf conftest*
14236   glibcpp_cv_func__float_round_use=no
14237 fi
14238 rm -f conftest*
14239     ac_ext=c
14240 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14241 ac_cpp='$CPP $CPPFLAGS'
14242 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14243 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14244 cross_compiling=$ac_cv_prog_cc_cross
14245
14246 fi
14247
14248   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
14249   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
14250     for ac_func in _ceilf _floorf
14251 do
14252 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14253 echo "configure:14254: checking for $ac_func" >&5
14254 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14255   echo $ac_n "(cached) $ac_c" 1>&6
14256 else
14257   cat > conftest.$ac_ext <<EOF
14258 #line 14259 "configure"
14259 #include "confdefs.h"
14260 /* System header to define __stub macros and hopefully few prototypes,
14261     which can conflict with char $ac_func(); below.  */
14262 #include <assert.h>
14263 /* Override any gcc2 internal prototype to avoid an error.  */
14264 /* We use char because int might match the return type of a gcc2
14265     builtin and then its argument prototype would still apply.  */
14266 char $ac_func();
14267
14268 int main() {
14269
14270 /* The GNU C library defines this for functions which it implements
14271     to always fail with ENOSYS.  Some functions are actually named
14272     something starting with __ and the normal name is an alias.  */
14273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14274 choke me
14275 #else
14276 $ac_func();
14277 #endif
14278
14279 ; return 0; }
14280 EOF
14281 if { (eval echo configure:14282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14282   rm -rf conftest*
14283   eval "ac_cv_func_$ac_func=yes"
14284 else
14285   echo "configure: failed program was:" >&5
14286   cat conftest.$ac_ext >&5
14287   rm -rf conftest*
14288   eval "ac_cv_func_$ac_func=no"
14289 fi
14290 rm -f conftest*
14291 fi
14292
14293 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14294   echo "$ac_t""yes" 1>&6
14295     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14296   cat >> confdefs.h <<EOF
14297 #define $ac_tr_func 1
14298 EOF
14299  
14300 else
14301   echo "$ac_t""no" 1>&6
14302 fi
14303 done
14304
14305   fi
14306
14307
14308     
14309   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
14310 echo "configure:14311: checking for _long double trig functions" >&5
14311   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
14312   echo $ac_n "(cached) $ac_c" 1>&6
14313 else
14314   
14315     
14316     ac_ext=C
14317 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14318 ac_cpp='$CXXCPP $CPPFLAGS'
14319 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14320 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14321 cross_compiling=$ac_cv_prog_cxx_cross
14322
14323     cat > conftest.$ac_ext <<EOF
14324 #line 14325 "configure"
14325 #include "confdefs.h"
14326 #include <math.h>
14327 int main() {
14328  `for x in _acosl _asinl _atanl \
14329                                           _cosl _sinl _tanl \
14330                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
14331 ; return 0; }
14332 EOF
14333 if { (eval echo configure:14334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14334   rm -rf conftest*
14335   glibcpp_cv_func__long_double_trig_use=yes
14336 else
14337   echo "configure: failed program was:" >&5
14338   cat conftest.$ac_ext >&5
14339   rm -rf conftest*
14340   glibcpp_cv_func__long_double_trig_use=no
14341 fi
14342 rm -f conftest*
14343     ac_ext=c
14344 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14345 ac_cpp='$CPP $CPPFLAGS'
14346 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14347 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14348 cross_compiling=$ac_cv_prog_cc_cross
14349
14350 fi
14351
14352   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
14353   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
14354     for ac_func in _acosl _asinl _atanl \
14355                                           _cosl _sinl _tanl \
14356                                           _coshl _sinhl _tanhl
14357 do
14358 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14359 echo "configure:14360: checking for $ac_func" >&5
14360 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14361   echo $ac_n "(cached) $ac_c" 1>&6
14362 else
14363   cat > conftest.$ac_ext <<EOF
14364 #line 14365 "configure"
14365 #include "confdefs.h"
14366 /* System header to define __stub macros and hopefully few prototypes,
14367     which can conflict with char $ac_func(); below.  */
14368 #include <assert.h>
14369 /* Override any gcc2 internal prototype to avoid an error.  */
14370 /* We use char because int might match the return type of a gcc2
14371     builtin and then its argument prototype would still apply.  */
14372 char $ac_func();
14373
14374 int main() {
14375
14376 /* The GNU C library defines this for functions which it implements
14377     to always fail with ENOSYS.  Some functions are actually named
14378     something starting with __ and the normal name is an alias.  */
14379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14380 choke me
14381 #else
14382 $ac_func();
14383 #endif
14384
14385 ; return 0; }
14386 EOF
14387 if { (eval echo configure:14388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14388   rm -rf conftest*
14389   eval "ac_cv_func_$ac_func=yes"
14390 else
14391   echo "configure: failed program was:" >&5
14392   cat conftest.$ac_ext >&5
14393   rm -rf conftest*
14394   eval "ac_cv_func_$ac_func=no"
14395 fi
14396 rm -f conftest*
14397 fi
14398
14399 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14400   echo "$ac_t""yes" 1>&6
14401     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14402   cat >> confdefs.h <<EOF
14403 #define $ac_tr_func 1
14404 EOF
14405  
14406 else
14407   echo "$ac_t""no" 1>&6
14408 fi
14409 done
14410
14411   fi
14412
14413   
14414   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
14415 echo "configure:14416: checking for _long double round functions" >&5
14416   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
14417   echo $ac_n "(cached) $ac_c" 1>&6
14418 else
14419   
14420     
14421     ac_ext=C
14422 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14423 ac_cpp='$CXXCPP $CPPFLAGS'
14424 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14425 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14426 cross_compiling=$ac_cv_prog_cxx_cross
14427
14428     cat > conftest.$ac_ext <<EOF
14429 #line 14430 "configure"
14430 #include "confdefs.h"
14431 #include <math.h>
14432 int main() {
14433  `for x in _ceill _floorl; do echo "$x (0);"; done` 
14434 ; return 0; }
14435 EOF
14436 if { (eval echo configure:14437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14437   rm -rf conftest*
14438   glibcpp_cv_func__long_double_round_use=yes
14439 else
14440   echo "configure: failed program was:" >&5
14441   cat conftest.$ac_ext >&5
14442   rm -rf conftest*
14443   glibcpp_cv_func__long_double_round_use=no
14444 fi
14445 rm -f conftest*
14446     ac_ext=c
14447 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14448 ac_cpp='$CPP $CPPFLAGS'
14449 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14450 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14451 cross_compiling=$ac_cv_prog_cc_cross
14452
14453 fi
14454
14455   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
14456   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
14457     for ac_func in _ceill _floorl
14458 do
14459 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14460 echo "configure:14461: checking for $ac_func" >&5
14461 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14462   echo $ac_n "(cached) $ac_c" 1>&6
14463 else
14464   cat > conftest.$ac_ext <<EOF
14465 #line 14466 "configure"
14466 #include "confdefs.h"
14467 /* System header to define __stub macros and hopefully few prototypes,
14468     which can conflict with char $ac_func(); below.  */
14469 #include <assert.h>
14470 /* Override any gcc2 internal prototype to avoid an error.  */
14471 /* We use char because int might match the return type of a gcc2
14472     builtin and then its argument prototype would still apply.  */
14473 char $ac_func();
14474
14475 int main() {
14476
14477 /* The GNU C library defines this for functions which it implements
14478     to always fail with ENOSYS.  Some functions are actually named
14479     something starting with __ and the normal name is an alias.  */
14480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14481 choke me
14482 #else
14483 $ac_func();
14484 #endif
14485
14486 ; return 0; }
14487 EOF
14488 if { (eval echo configure:14489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14489   rm -rf conftest*
14490   eval "ac_cv_func_$ac_func=yes"
14491 else
14492   echo "configure: failed program was:" >&5
14493   cat conftest.$ac_ext >&5
14494   rm -rf conftest*
14495   eval "ac_cv_func_$ac_func=no"
14496 fi
14497 rm -f conftest*
14498 fi
14499
14500 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14501   echo "$ac_t""yes" 1>&6
14502     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14503   cat >> confdefs.h <<EOF
14504 #define $ac_tr_func 1
14505 EOF
14506  
14507 else
14508   echo "$ac_t""no" 1>&6
14509 fi
14510 done
14511
14512   fi
14513
14514
14515   LIBS="$ac_save_LIBS"
14516   CXXFLAGS="$ac_save_CXXFLAGS"
14517
14518   
14519     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
14520 echo "configure:14521: checking for main in -lm" >&5
14521 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
14522 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14523   echo $ac_n "(cached) $ac_c" 1>&6
14524 else
14525   ac_save_LIBS="$LIBS"
14526 LIBS="-lm  $LIBS"
14527 cat > conftest.$ac_ext <<EOF
14528 #line 14529 "configure"
14529 #include "confdefs.h"
14530
14531 int main() {
14532 main()
14533 ; return 0; }
14534 EOF
14535 if { (eval echo configure:14536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14536   rm -rf conftest*
14537   eval "ac_cv_lib_$ac_lib_var=yes"
14538 else
14539   echo "configure: failed program was:" >&5
14540   cat conftest.$ac_ext >&5
14541   rm -rf conftest*
14542   eval "ac_cv_lib_$ac_lib_var=no"
14543 fi
14544 rm -f conftest*
14545 LIBS="$ac_save_LIBS"
14546
14547 fi
14548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14549   echo "$ac_t""yes" 1>&6
14550     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14551     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14552   cat >> confdefs.h <<EOF
14553 #define $ac_tr_lib 1
14554 EOF
14555
14556   LIBS="-lm $LIBS"
14557
14558 else
14559   echo "$ac_t""no" 1>&6
14560 fi
14561
14562   for ac_func in nan hypot hypotf atan2f expf copysignf
14563 do
14564 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14565 echo "configure:14566: checking for $ac_func" >&5
14566 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14567   echo $ac_n "(cached) $ac_c" 1>&6
14568 else
14569   cat > conftest.$ac_ext <<EOF
14570 #line 14571 "configure"
14571 #include "confdefs.h"
14572 /* System header to define __stub macros and hopefully few prototypes,
14573     which can conflict with char $ac_func(); below.  */
14574 #include <assert.h>
14575 /* Override any gcc2 internal prototype to avoid an error.  */
14576 /* We use char because int might match the return type of a gcc2
14577     builtin and then its argument prototype would still apply.  */
14578 char $ac_func();
14579
14580 int main() {
14581
14582 /* The GNU C library defines this for functions which it implements
14583     to always fail with ENOSYS.  Some functions are actually named
14584     something starting with __ and the normal name is an alias.  */
14585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14586 choke me
14587 #else
14588 $ac_func();
14589 #endif
14590
14591 ; return 0; }
14592 EOF
14593 if { (eval echo configure:14594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14594   rm -rf conftest*
14595   eval "ac_cv_func_$ac_func=yes"
14596 else
14597   echo "configure: failed program was:" >&5
14598   cat conftest.$ac_ext >&5
14599   rm -rf conftest*
14600   eval "ac_cv_func_$ac_func=no"
14601 fi
14602 rm -f conftest*
14603 fi
14604
14605 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14606   echo "$ac_t""yes" 1>&6
14607     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14608   cat >> confdefs.h <<EOF
14609 #define $ac_tr_func 1
14610 EOF
14611  
14612 else
14613   echo "$ac_t""no" 1>&6
14614 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
14615 fi
14616 done
14617
14618
14619
14620           USE_COMPLEX_LONG_DOUBLE=no
14621   if test x$ac_cv_func_atan2l = x"yes" \
14622      && test x$ac_cv_func_copysignl = x"yes"; then
14623     USE_COMPLEX_LONG_DOUBLE=yes
14624     for ac_func in hypotl signbitl
14625 do
14626 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14627 echo "configure:14628: checking for $ac_func" >&5
14628 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14629   echo $ac_n "(cached) $ac_c" 1>&6
14630 else
14631   cat > conftest.$ac_ext <<EOF
14632 #line 14633 "configure"
14633 #include "confdefs.h"
14634 /* System header to define __stub macros and hopefully few prototypes,
14635     which can conflict with char $ac_func(); below.  */
14636 #include <assert.h>
14637 /* Override any gcc2 internal prototype to avoid an error.  */
14638 /* We use char because int might match the return type of a gcc2
14639     builtin and then its argument prototype would still apply.  */
14640 char $ac_func();
14641
14642 int main() {
14643
14644 /* The GNU C library defines this for functions which it implements
14645     to always fail with ENOSYS.  Some functions are actually named
14646     something starting with __ and the normal name is an alias.  */
14647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14648 choke me
14649 #else
14650 $ac_func();
14651 #endif
14652
14653 ; return 0; }
14654 EOF
14655 if { (eval echo configure:14656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14656   rm -rf conftest*
14657   eval "ac_cv_func_$ac_func=yes"
14658 else
14659   echo "configure: failed program was:" >&5
14660   cat conftest.$ac_ext >&5
14661   rm -rf conftest*
14662   eval "ac_cv_func_$ac_func=no"
14663 fi
14664 rm -f conftest*
14665 fi
14666
14667 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14668   echo "$ac_t""yes" 1>&6
14669     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14670   cat >> confdefs.h <<EOF
14671 #define $ac_tr_func 1
14672 EOF
14673  
14674 else
14675   echo "$ac_t""no" 1>&6
14676 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
14677 fi
14678 done
14679
14680
14681   fi
14682
14683   
14684
14685   
14686   
14687
14688   echo $ac_n "checking for GNU C++ __complex__ support""... $ac_c" 1>&6
14689 echo "configure:14690: checking for GNU C++ __complex__ support" >&5
14690   if eval "test \"`echo '$''{'glibcpp_cv_complex'+set}'`\" = set"; then
14691   echo $ac_n "(cached) $ac_c" 1>&6
14692 else
14693   
14694     
14695     ac_ext=C
14696 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14697 ac_cpp='$CXXCPP $CPPFLAGS'
14698 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14699 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14700 cross_compiling=$ac_cv_prog_cxx_cross
14701
14702     cat > conftest.$ac_ext <<EOF
14703 #line 14704 "configure"
14704 #include "confdefs.h"
14705 struct dcomplex { __complex__ double x; }; \
14706                     dcomplex f(const dcomplex& x) { return dcomplex(x); }
14707 int main() {
14708 \
14709                      dcomplex x; f(x); 
14710 ; return 0; }
14711 EOF
14712 if { (eval echo configure:14713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14713   rm -rf conftest*
14714   glibcpp_cv_complex=ok
14715 else
14716   echo "configure: failed program was:" >&5
14717   cat conftest.$ac_ext >&5
14718   rm -rf conftest*
14719   glibcpp_cv_complex=buggy
14720     
14721 fi
14722 rm -f conftest*
14723     ac_ext=c
14724 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14725 ac_cpp='$CPP $CPPFLAGS'
14726 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14727 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14728 cross_compiling=$ac_cv_prog_cc_cross
14729
14730   
14731 fi
14732
14733   echo "$ac_t""$glibcpp_cv_complex" 1>&6
14734   if test $glibcpp_cv_complex = buggy; then
14735     cat >> confdefs.h <<\EOF
14736 #define _GLIBCPP_BUGGY_COMPLEX 1
14737 EOF
14738
14739   fi
14740
14741   echo $ac_n "checking for GNU C++ __complex__ float support""... $ac_c" 1>&6
14742 echo "configure:14743: checking for GNU C++ __complex__ float support" >&5
14743   if eval "test \"`echo '$''{'glibcpp_cv_float_complex'+set}'`\" = set"; then
14744   echo $ac_n "(cached) $ac_c" 1>&6
14745 else
14746   
14747     
14748     ac_ext=C
14749 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14750 ac_cpp='$CXXCPP $CPPFLAGS'
14751 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14752 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14753 cross_compiling=$ac_cv_prog_cxx_cross
14754
14755     rm -f conftest.h
14756     cat > conftest.h <<EOB
14757       //
14758       // Check for buggy __complex__ that causes ICE in most versions of egcs
14759       // and gcc-2.95.x on certain platforms (eg., x86-win32).
14760       //
14761       // See http://gcc.gnu.org/ml/gcc-bugs/1999-07n/msg00845.html for
14762       // more info on the bug itself.
14763       //
14764       struct
14765       float_complex
14766       {
14767        __complex__ float m_value;
14768        float_complex (float = 0.0f, float = 0.0f);
14769        float_complex (__complex__ float val) : m_value (val) {}
14770        float_complex foo (const float_complex &val)
14771          { return float_complex (~val.m_value); }
14772       };
14773 EOB
14774     cat > conftest.$ac_ext <<EOF
14775 #line 14776 "configure"
14776 #include "confdefs.h"
14777 #include "conftest.h"
14778 int main() {
14779
14780 ; return 0; }
14781 EOF
14782 if { (eval echo configure:14783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14783   rm -rf conftest*
14784   glibcpp_cv_float_complex=ok
14785 else
14786   echo "configure: failed program was:" >&5
14787   cat conftest.$ac_ext >&5
14788   rm -rf conftest*
14789   glibcpp_cv_float_complex=buggy
14790     
14791 fi
14792 rm -f conftest*
14793     ac_ext=c
14794 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14795 ac_cpp='$CPP $CPPFLAGS'
14796 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14797 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14798 cross_compiling=$ac_cv_prog_cc_cross
14799
14800   
14801 fi
14802
14803   echo "$ac_t""$glibcpp_cv_float_complex" 1>&6
14804   if test $glibcpp_cv_float_complex = buggy; then
14805     cat >> confdefs.h <<\EOF
14806 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
14807 EOF
14808
14809   fi
14810
14811   
14812
14813       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
14814 echo "configure:14815: checking for mbstate_t" >&5
14815   cat > conftest.$ac_ext <<EOF
14816 #line 14817 "configure"
14817 #include "confdefs.h"
14818 #include <wchar.h>
14819 int main() {
14820 mbstate_t teststate;
14821 ; return 0; }
14822 EOF
14823 if { (eval echo configure:14824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14824   rm -rf conftest*
14825   have_mbstate_t=yes
14826 else
14827   echo "configure: failed program was:" >&5
14828   cat conftest.$ac_ext >&5
14829   rm -rf conftest*
14830   have_mbstate_t=no
14831 fi
14832 rm -f conftest*
14833   echo "$ac_t""$have_mbstate_t" 1>&6
14834   if test x"$have_mbstate_t" = xyes; then
14835     cat >> confdefs.h <<\EOF
14836 #define HAVE_MBSTATE_T 1
14837 EOF
14838
14839   fi
14840
14841     for ac_hdr in wchar.h
14842 do
14843 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14844 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14845 echo "configure:14846: checking for $ac_hdr" >&5
14846 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14847   echo $ac_n "(cached) $ac_c" 1>&6
14848 else
14849   cat > conftest.$ac_ext <<EOF
14850 #line 14851 "configure"
14851 #include "confdefs.h"
14852 #include <$ac_hdr>
14853 EOF
14854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14855 { (eval echo configure:14856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14857 if test -z "$ac_err"; then
14858   rm -rf conftest*
14859   eval "ac_cv_header_$ac_safe=yes"
14860 else
14861   echo "$ac_err" >&5
14862   echo "configure: failed program was:" >&5
14863   cat conftest.$ac_ext >&5
14864   rm -rf conftest*
14865   eval "ac_cv_header_$ac_safe=no"
14866 fi
14867 rm -f conftest*
14868 fi
14869 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14870   echo "$ac_t""yes" 1>&6
14871     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14872   cat >> confdefs.h <<EOF
14873 #define $ac_tr_hdr 1
14874 EOF
14875  ac_has_wchar_h=yes
14876 else
14877   echo "$ac_t""no" 1>&6
14878 ac_has_wchar_h=no
14879 fi
14880 done
14881
14882   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
14883 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
14884 echo "configure:14885: checking for wctype.h" >&5
14885 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14886   echo $ac_n "(cached) $ac_c" 1>&6
14887 else
14888   cat > conftest.$ac_ext <<EOF
14889 #line 14890 "configure"
14890 #include "confdefs.h"
14891 #include <wctype.h>
14892 EOF
14893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14894 { (eval echo configure:14895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14896 if test -z "$ac_err"; then
14897   rm -rf conftest*
14898   eval "ac_cv_header_$ac_safe=yes"
14899 else
14900   echo "$ac_err" >&5
14901   echo "configure: failed program was:" >&5
14902   cat conftest.$ac_ext >&5
14903   rm -rf conftest*
14904   eval "ac_cv_header_$ac_safe=no"
14905 fi
14906 rm -f conftest*
14907 fi
14908 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14909   echo "$ac_t""yes" 1>&6
14910   ac_has_wctype_h=yes
14911 else
14912   echo "$ac_t""no" 1>&6
14913 ac_has_wctype_h=no
14914 fi
14915
14916   
14917     if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes \
14918      && test x"$enable_c_mbchar" != xno; then
14919       
14920             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
14921 echo "configure:14922: checking for WCHAR_MIN and WCHAR_MAX" >&5
14922     cat > conftest.$ac_ext <<EOF
14923 #line 14924 "configure"
14924 #include "confdefs.h"
14925 #include <wchar.h>
14926 int main() {
14927 int i = WCHAR_MIN; int j = WCHAR_MAX;
14928 ; return 0; }
14929 EOF
14930 if { (eval echo configure:14931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14931   rm -rf conftest*
14932   has_wchar_minmax=yes
14933 else
14934   echo "configure: failed program was:" >&5
14935   cat conftest.$ac_ext >&5
14936   rm -rf conftest*
14937   has_wchar_minmax=no
14938 fi
14939 rm -f conftest*
14940     echo "$ac_t""$has_wchar_minmax" 1>&6
14941     
14942             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
14943 echo "configure:14944: checking for WEOF" >&5
14944     cat > conftest.$ac_ext <<EOF
14945 #line 14946 "configure"
14946 #include "confdefs.h"
14947
14948       #include <wchar.h>
14949       #include <stddef.h>
14950 int main() {
14951 wint_t i = WEOF;
14952 ; return 0; }
14953 EOF
14954 if { (eval echo configure:14955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14955   rm -rf conftest*
14956   has_weof=yes
14957 else
14958   echo "configure: failed program was:" >&5
14959   cat conftest.$ac_ext >&5
14960   rm -rf conftest*
14961   has_weof=no
14962 fi
14963 rm -f conftest*
14964     echo "$ac_t""$has_weof" 1>&6
14965   
14966         for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \
14967     wcsrtombs mbsrtowcs
14968 do
14969 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14970 echo "configure:14971: checking for $ac_func" >&5
14971 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14972   echo $ac_n "(cached) $ac_c" 1>&6
14973 else
14974   cat > conftest.$ac_ext <<EOF
14975 #line 14976 "configure"
14976 #include "confdefs.h"
14977 /* System header to define __stub macros and hopefully few prototypes,
14978     which can conflict with char $ac_func(); below.  */
14979 #include <assert.h>
14980 /* Override any gcc2 internal prototype to avoid an error.  */
14981 /* We use char because int might match the return type of a gcc2
14982     builtin and then its argument prototype would still apply.  */
14983 char $ac_func();
14984
14985 int main() {
14986
14987 /* The GNU C library defines this for functions which it implements
14988     to always fail with ENOSYS.  Some functions are actually named
14989     something starting with __ and the normal name is an alias.  */
14990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14991 choke me
14992 #else
14993 $ac_func();
14994 #endif
14995
14996 ; return 0; }
14997 EOF
14998 if { (eval echo configure:14999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14999   rm -rf conftest*
15000   eval "ac_cv_func_$ac_func=yes"
15001 else
15002   echo "configure: failed program was:" >&5
15003   cat conftest.$ac_ext >&5
15004   rm -rf conftest*
15005   eval "ac_cv_func_$ac_func=no"
15006 fi
15007 rm -f conftest*
15008 fi
15009
15010 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15011   echo "$ac_t""yes" 1>&6
15012     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15013   cat >> confdefs.h <<EOF
15014 #define $ac_tr_func 1
15015 EOF
15016  ac_wfuncs=yes
15017 else
15018   echo "$ac_t""no" 1>&6
15019 ac_wfuncs=no
15020 fi
15021 done
15022
15023   
15024     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
15025 echo "configure:15026: checking for ISO C99 wchar_t support" >&5
15026     if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \
15027        && test x"$ac_wfuncs" = xyes; then
15028       ac_isoC99_wchar_t=yes
15029     else
15030       ac_isoC99_wchar_t=no
15031     fi
15032     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
15033   
15034             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
15035 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
15036 echo "configure:15037: checking for iconv.h" >&5
15037 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15038   echo $ac_n "(cached) $ac_c" 1>&6
15039 else
15040   cat > conftest.$ac_ext <<EOF
15041 #line 15042 "configure"
15042 #include "confdefs.h"
15043 #include <iconv.h>
15044 EOF
15045 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15046 { (eval echo configure:15047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15047 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15048 if test -z "$ac_err"; then
15049   rm -rf conftest*
15050   eval "ac_cv_header_$ac_safe=yes"
15051 else
15052   echo "$ac_err" >&5
15053   echo "configure: failed program was:" >&5
15054   cat conftest.$ac_ext >&5
15055   rm -rf conftest*
15056   eval "ac_cv_header_$ac_safe=no"
15057 fi
15058 rm -f conftest*
15059 fi
15060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15061   echo "$ac_t""yes" 1>&6
15062   ac_has_iconv_h=yes
15063 else
15064   echo "$ac_t""no" 1>&6
15065 ac_has_iconv_h=no
15066 fi
15067
15068     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
15069 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
15070 echo "configure:15071: checking for langinfo.h" >&5
15071 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15072   echo $ac_n "(cached) $ac_c" 1>&6
15073 else
15074   cat > conftest.$ac_ext <<EOF
15075 #line 15076 "configure"
15076 #include "confdefs.h"
15077 #include <langinfo.h>
15078 EOF
15079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15080 { (eval echo configure:15081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15082 if test -z "$ac_err"; then
15083   rm -rf conftest*
15084   eval "ac_cv_header_$ac_safe=yes"
15085 else
15086   echo "$ac_err" >&5
15087   echo "configure: failed program was:" >&5
15088   cat conftest.$ac_ext >&5
15089   rm -rf conftest*
15090   eval "ac_cv_header_$ac_safe=no"
15091 fi
15092 rm -f conftest*
15093 fi
15094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15095   echo "$ac_t""yes" 1>&6
15096   ac_has_langinfo_h=yes
15097 else
15098   echo "$ac_t""no" 1>&6
15099 ac_has_langinfo_h=no
15100 fi
15101
15102
15103         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
15104 echo "configure:15105: checking for iconv in -liconv" >&5
15105 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
15106 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15107   echo $ac_n "(cached) $ac_c" 1>&6
15108 else
15109   ac_save_LIBS="$LIBS"
15110 LIBS="-liconv  $LIBS"
15111 cat > conftest.$ac_ext <<EOF
15112 #line 15113 "configure"
15113 #include "confdefs.h"
15114 /* Override any gcc2 internal prototype to avoid an error.  */
15115 /* We use char because int might match the return type of a gcc2
15116     builtin and then its argument prototype would still apply.  */
15117 char iconv();
15118
15119 int main() {
15120 iconv()
15121 ; return 0; }
15122 EOF
15123 if { (eval echo configure:15124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15124   rm -rf conftest*
15125   eval "ac_cv_lib_$ac_lib_var=yes"
15126 else
15127   echo "configure: failed program was:" >&5
15128   cat conftest.$ac_ext >&5
15129   rm -rf conftest*
15130   eval "ac_cv_lib_$ac_lib_var=no"
15131 fi
15132 rm -f conftest*
15133 LIBS="$ac_save_LIBS"
15134
15135 fi
15136 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15137   echo "$ac_t""yes" 1>&6
15138   libiconv="-liconv"
15139 else
15140   echo "$ac_t""no" 1>&6
15141 fi
15142
15143     ac_save_LIBS="$LIBS"
15144     LIBS="$LIBS $libiconv"
15145
15146     for ac_func in iconv_open iconv_close iconv nl_langinfo
15147 do
15148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15149 echo "configure:15150: checking for $ac_func" >&5
15150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15151   echo $ac_n "(cached) $ac_c" 1>&6
15152 else
15153   cat > conftest.$ac_ext <<EOF
15154 #line 15155 "configure"
15155 #include "confdefs.h"
15156 /* System header to define __stub macros and hopefully few prototypes,
15157     which can conflict with char $ac_func(); below.  */
15158 #include <assert.h>
15159 /* Override any gcc2 internal prototype to avoid an error.  */
15160 /* We use char because int might match the return type of a gcc2
15161     builtin and then its argument prototype would still apply.  */
15162 char $ac_func();
15163
15164 int main() {
15165
15166 /* The GNU C library defines this for functions which it implements
15167     to always fail with ENOSYS.  Some functions are actually named
15168     something starting with __ and the normal name is an alias.  */
15169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15170 choke me
15171 #else
15172 $ac_func();
15173 #endif
15174
15175 ; return 0; }
15176 EOF
15177 if { (eval echo configure:15178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15178   rm -rf conftest*
15179   eval "ac_cv_func_$ac_func=yes"
15180 else
15181   echo "configure: failed program was:" >&5
15182   cat conftest.$ac_ext >&5
15183   rm -rf conftest*
15184   eval "ac_cv_func_$ac_func=no"
15185 fi
15186 rm -f conftest*
15187 fi
15188
15189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15190   echo "$ac_t""yes" 1>&6
15191     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15192   cat >> confdefs.h <<EOF
15193 #define $ac_tr_func 1
15194 EOF
15195  \
15196     ac_XPG2funcs=yes
15197 else
15198   echo "$ac_t""no" 1>&6
15199 ac_XPG2funcs=no
15200 fi
15201 done
15202
15203   
15204     LIBS="$ac_save_LIBS"
15205
15206     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
15207 echo "configure:15208: checking for XPG2 wchar_t support" >&5
15208     if test x"$ac_has_iconv_h" = xyes && test x"$ac_has_langinfo_h" = xyes \
15209        && test x"$ac_XPG2funcs" = xyes; then
15210       ac_XPG2_wchar_t=yes
15211     else
15212       ac_XPG2_wchar_t=no
15213     fi
15214     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
15215   
15216             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
15217 echo "configure:15218: checking for enabled wchar_t specializations" >&5
15218     if test x"$ac_isoC99_wchar_t" = xyes \
15219        && test x"$ac_XPG2_wchar_t" = xyes; then
15220       libinst_wstring_la="libinst-wstring.la"
15221       cat >> confdefs.h <<\EOF
15222 #define _GLIBCPP_USE_WCHAR_T 1
15223 EOF
15224
15225       echo "$ac_t"""yes"" 1>&6
15226     else
15227       libinst_wstring_la=""
15228       echo "$ac_t"""no"" 1>&6
15229     fi
15230     
15231   
15232   else
15233         echo "configure: warning: wchar_t support disabled." 1>&2
15234   fi
15235
15236   
15237   ac_test_CXXFLAGS="${CXXFLAGS+set}"
15238   ac_save_CXXFLAGS="$CXXFLAGS"
15239   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
15240
15241   for ac_func in strtof
15242 do
15243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15244 echo "configure:15245: checking for $ac_func" >&5
15245 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15246   echo $ac_n "(cached) $ac_c" 1>&6
15247 else
15248   cat > conftest.$ac_ext <<EOF
15249 #line 15250 "configure"
15250 #include "confdefs.h"
15251 /* System header to define __stub macros and hopefully few prototypes,
15252     which can conflict with char $ac_func(); below.  */
15253 #include <assert.h>
15254 /* Override any gcc2 internal prototype to avoid an error.  */
15255 /* We use char because int might match the return type of a gcc2
15256     builtin and then its argument prototype would still apply.  */
15257 char $ac_func();
15258
15259 int main() {
15260
15261 /* The GNU C library defines this for functions which it implements
15262     to always fail with ENOSYS.  Some functions are actually named
15263     something starting with __ and the normal name is an alias.  */
15264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15265 choke me
15266 #else
15267 $ac_func();
15268 #endif
15269
15270 ; return 0; }
15271 EOF
15272 if { (eval echo configure:15273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15273   rm -rf conftest*
15274   eval "ac_cv_func_$ac_func=yes"
15275 else
15276   echo "configure: failed program was:" >&5
15277   cat conftest.$ac_ext >&5
15278   rm -rf conftest*
15279   eval "ac_cv_func_$ac_func=no"
15280 fi
15281 rm -f conftest*
15282 fi
15283
15284 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15285   echo "$ac_t""yes" 1>&6
15286     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15287   cat >> confdefs.h <<EOF
15288 #define $ac_tr_func 1
15289 EOF
15290  
15291 else
15292   echo "$ac_t""no" 1>&6
15293 fi
15294 done
15295
15296   
15297   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
15298 echo "configure:15299: checking for strtold declaration" >&5
15299   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
15300     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
15301   echo $ac_n "(cached) $ac_c" 1>&6
15302 else
15303   
15304       
15305       ac_ext=C
15306 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15307 ac_cpp='$CXXCPP $CPPFLAGS'
15308 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15309 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15310 cross_compiling=$ac_cv_prog_cxx_cross
15311
15312       cat > conftest.$ac_ext <<EOF
15313 #line 15314 "configure"
15314 #include "confdefs.h"
15315 #include <stdlib.h>
15316 int main() {
15317  strtold(0, 0);
15318 ; return 0; }
15319 EOF
15320 if { (eval echo configure:15321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15321   rm -rf conftest*
15322   glibcpp_cv_func_strtold_use=yes
15323 else
15324   echo "configure: failed program was:" >&5
15325   cat conftest.$ac_ext >&5
15326   rm -rf conftest*
15327   glibcpp_cv_func_strtold_use=no
15328 fi
15329 rm -f conftest*
15330       ac_ext=c
15331 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15332 ac_cpp='$CPP $CPPFLAGS'
15333 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15334 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15335 cross_compiling=$ac_cv_prog_cc_cross
15336
15337     
15338 fi
15339
15340   fi
15341   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
15342   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
15343     for ac_func in strtold
15344 do
15345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15346 echo "configure:15347: checking for $ac_func" >&5
15347 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15348   echo $ac_n "(cached) $ac_c" 1>&6
15349 else
15350   cat > conftest.$ac_ext <<EOF
15351 #line 15352 "configure"
15352 #include "confdefs.h"
15353 /* System header to define __stub macros and hopefully few prototypes,
15354     which can conflict with char $ac_func(); below.  */
15355 #include <assert.h>
15356 /* Override any gcc2 internal prototype to avoid an error.  */
15357 /* We use char because int might match the return type of a gcc2
15358     builtin and then its argument prototype would still apply.  */
15359 char $ac_func();
15360
15361 int main() {
15362
15363 /* The GNU C library defines this for functions which it implements
15364     to always fail with ENOSYS.  Some functions are actually named
15365     something starting with __ and the normal name is an alias.  */
15366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15367 choke me
15368 #else
15369 $ac_func();
15370 #endif
15371
15372 ; return 0; }
15373 EOF
15374 if { (eval echo configure:15375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15375   rm -rf conftest*
15376   eval "ac_cv_func_$ac_func=yes"
15377 else
15378   echo "configure: failed program was:" >&5
15379   cat conftest.$ac_ext >&5
15380   rm -rf conftest*
15381   eval "ac_cv_func_$ac_func=no"
15382 fi
15383 rm -f conftest*
15384 fi
15385
15386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15387   echo "$ac_t""yes" 1>&6
15388     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15389   cat >> confdefs.h <<EOF
15390 #define $ac_tr_func 1
15391 EOF
15392  
15393 else
15394   echo "$ac_t""no" 1>&6
15395 fi
15396 done
15397     
15398   fi
15399
15400
15401   CXXFLAGS="$ac_save_CXXFLAGS"
15402
15403
15404   cat > conftest.$ac_ext <<EOF
15405 #line 15406 "configure"
15406 #include "confdefs.h"
15407
15408 #include <setjmp.h>
15409
15410 int main() {
15411 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
15412 ; return 0; }
15413 EOF
15414 if { (eval echo configure:15415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15415   rm -rf conftest*
15416   cat >> confdefs.h <<\EOF
15417 #define HAVE_SIGSETJMP 1
15418 EOF
15419
15420 else
15421   echo "configure: failed program was:" >&5
15422   cat conftest.$ac_ext >&5
15423 fi
15424 rm -f conftest*
15425
15426   for ac_hdr in unistd.h
15427 do
15428 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15429 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15430 echo "configure:15431: checking for $ac_hdr" >&5
15431 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15432   echo $ac_n "(cached) $ac_c" 1>&6
15433 else
15434   cat > conftest.$ac_ext <<EOF
15435 #line 15436 "configure"
15436 #include "confdefs.h"
15437 #include <$ac_hdr>
15438 EOF
15439 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15440 { (eval echo configure:15441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15441 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15442 if test -z "$ac_err"; then
15443   rm -rf conftest*
15444   eval "ac_cv_header_$ac_safe=yes"
15445 else
15446   echo "$ac_err" >&5
15447   echo "configure: failed program was:" >&5
15448   cat conftest.$ac_ext >&5
15449   rm -rf conftest*
15450   eval "ac_cv_header_$ac_safe=no"
15451 fi
15452 rm -f conftest*
15453 fi
15454 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15455   echo "$ac_t""yes" 1>&6
15456     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15457   cat >> confdefs.h <<EOF
15458 #define $ac_tr_hdr 1
15459 EOF
15460  
15461 else
15462   echo "$ac_t""no" 1>&6
15463 fi
15464 done
15465
15466 for ac_func in getpagesize
15467 do
15468 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15469 echo "configure:15470: checking for $ac_func" >&5
15470 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15471   echo $ac_n "(cached) $ac_c" 1>&6
15472 else
15473   cat > conftest.$ac_ext <<EOF
15474 #line 15475 "configure"
15475 #include "confdefs.h"
15476 /* System header to define __stub macros and hopefully few prototypes,
15477     which can conflict with char $ac_func(); below.  */
15478 #include <assert.h>
15479 /* Override any gcc2 internal prototype to avoid an error.  */
15480 /* We use char because int might match the return type of a gcc2
15481     builtin and then its argument prototype would still apply.  */
15482 char $ac_func();
15483
15484 int main() {
15485
15486 /* The GNU C library defines this for functions which it implements
15487     to always fail with ENOSYS.  Some functions are actually named
15488     something starting with __ and the normal name is an alias.  */
15489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15490 choke me
15491 #else
15492 $ac_func();
15493 #endif
15494
15495 ; return 0; }
15496 EOF
15497 if { (eval echo configure:15498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15498   rm -rf conftest*
15499   eval "ac_cv_func_$ac_func=yes"
15500 else
15501   echo "configure: failed program was:" >&5
15502   cat conftest.$ac_ext >&5
15503   rm -rf conftest*
15504   eval "ac_cv_func_$ac_func=no"
15505 fi
15506 rm -f conftest*
15507 fi
15508
15509 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15510   echo "$ac_t""yes" 1>&6
15511     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15512   cat >> confdefs.h <<EOF
15513 #define $ac_tr_func 1
15514 EOF
15515  
15516 else
15517   echo "$ac_t""no" 1>&6
15518 fi
15519 done
15520
15521 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
15522 echo "configure:15523: checking for working mmap" >&5
15523 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
15524   echo $ac_n "(cached) $ac_c" 1>&6
15525 else
15526   if test "$cross_compiling" = yes; then
15527   ac_cv_func_mmap_fixed_mapped=no
15528 else
15529   cat > conftest.$ac_ext <<EOF
15530 #line 15531 "configure"
15531 #include "confdefs.h"
15532
15533 /* Thanks to Mike Haertel and Jim Avera for this test.
15534    Here is a matrix of mmap possibilities:
15535         mmap private not fixed
15536         mmap private fixed at somewhere currently unmapped
15537         mmap private fixed at somewhere already mapped
15538         mmap shared not fixed
15539         mmap shared fixed at somewhere currently unmapped
15540         mmap shared fixed at somewhere already mapped
15541    For private mappings, we should verify that changes cannot be read()
15542    back from the file, nor mmap's back from the file at a different
15543    address.  (There have been systems where private was not correctly
15544    implemented like the infamous i386 svr4.0, and systems where the
15545    VM page cache was not coherent with the filesystem buffer cache
15546    like early versions of FreeBSD and possibly contemporary NetBSD.)
15547    For shared mappings, we should conversely verify that changes get
15548    propogated back to all the places they're supposed to be.
15549
15550    Grep wants private fixed already mapped.
15551    The main things grep needs to know about mmap are:
15552    * does it exist and is it safe to write into the mmap'd area
15553    * how to use it (BSD variants)  */
15554 #include <sys/types.h>
15555 #include <fcntl.h>
15556 #include <sys/mman.h>
15557
15558 /* This mess was copied from the GNU getpagesize.h.  */
15559 #ifndef HAVE_GETPAGESIZE
15560 # ifdef HAVE_UNISTD_H
15561 #  include <unistd.h>
15562 # endif
15563
15564 /* Assume that all systems that can run configure have sys/param.h.  */
15565 # ifndef HAVE_SYS_PARAM_H
15566 #  define HAVE_SYS_PARAM_H 1
15567 # endif
15568
15569 # ifdef _SC_PAGESIZE
15570 #  define getpagesize() sysconf(_SC_PAGESIZE)
15571 # else /* no _SC_PAGESIZE */
15572 #  ifdef HAVE_SYS_PARAM_H
15573 #   include <sys/param.h>
15574 #   ifdef EXEC_PAGESIZE
15575 #    define getpagesize() EXEC_PAGESIZE
15576 #   else /* no EXEC_PAGESIZE */
15577 #    ifdef NBPG
15578 #     define getpagesize() NBPG * CLSIZE
15579 #     ifndef CLSIZE
15580 #      define CLSIZE 1
15581 #     endif /* no CLSIZE */
15582 #    else /* no NBPG */
15583 #     ifdef NBPC
15584 #      define getpagesize() NBPC
15585 #     else /* no NBPC */
15586 #      ifdef PAGESIZE
15587 #       define getpagesize() PAGESIZE
15588 #      endif /* PAGESIZE */
15589 #     endif /* no NBPC */
15590 #    endif /* no NBPG */
15591 #   endif /* no EXEC_PAGESIZE */
15592 #  else /* no HAVE_SYS_PARAM_H */
15593 #   define getpagesize() 8192   /* punt totally */
15594 #  endif /* no HAVE_SYS_PARAM_H */
15595 # endif /* no _SC_PAGESIZE */
15596
15597 #endif /* no HAVE_GETPAGESIZE */
15598
15599 #ifdef __cplusplus
15600 extern "C" { void *malloc(unsigned); }
15601 #else
15602 char *malloc();
15603 #endif
15604
15605 int
15606 main()
15607 {
15608         char *data, *data2, *data3;
15609         int i, pagesize;
15610         int fd;
15611
15612         pagesize = getpagesize();
15613
15614         /*
15615          * First, make a file with some known garbage in it.
15616          */
15617         data = malloc(pagesize);
15618         if (!data)
15619                 exit(1);
15620         for (i = 0; i < pagesize; ++i)
15621                 *(data + i) = rand();
15622         umask(0);
15623         fd = creat("conftestmmap", 0600);
15624         if (fd < 0)
15625                 exit(1);
15626         if (write(fd, data, pagesize) != pagesize)
15627                 exit(1);
15628         close(fd);
15629
15630         /*
15631          * Next, try to mmap the file at a fixed address which
15632          * already has something else allocated at it.  If we can,
15633          * also make sure that we see the same garbage.
15634          */
15635         fd = open("conftestmmap", O_RDWR);
15636         if (fd < 0)
15637                 exit(1);
15638         data2 = malloc(2 * pagesize);
15639         if (!data2)
15640                 exit(1);
15641         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
15642         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
15643             MAP_PRIVATE | MAP_FIXED, fd, 0L))
15644                 exit(1);
15645         for (i = 0; i < pagesize; ++i)
15646                 if (*(data + i) != *(data2 + i))
15647                         exit(1);
15648
15649         /*
15650          * Finally, make sure that changes to the mapped area
15651          * do not percolate back to the file as seen by read().
15652          * (This is a bug on some variants of i386 svr4.0.)
15653          */
15654         for (i = 0; i < pagesize; ++i)
15655                 *(data2 + i) = *(data2 + i) + 1;
15656         data3 = malloc(pagesize);
15657         if (!data3)
15658                 exit(1);
15659         if (read(fd, data3, pagesize) != pagesize)
15660                 exit(1);
15661         for (i = 0; i < pagesize; ++i)
15662                 if (*(data + i) != *(data3 + i))
15663                         exit(1);
15664         close(fd);
15665         unlink("conftestmmap");
15666         exit(0);
15667 }
15668
15669 EOF
15670 if { (eval echo configure:15671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15671 then
15672   ac_cv_func_mmap_fixed_mapped=yes
15673 else
15674   echo "configure: failed program was:" >&5
15675   cat conftest.$ac_ext >&5
15676   rm -fr conftest*
15677   ac_cv_func_mmap_fixed_mapped=no
15678 fi
15679 rm -fr conftest*
15680 fi
15681
15682 fi
15683
15684 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
15685 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15686   cat >> confdefs.h <<\EOF
15687 #define HAVE_MMAP 1
15688 EOF
15689
15690 fi
15691
15692 fi
15693
15694 # Now that ctype is determined for all possible targets, we can do this...
15695
15696
15697
15698
15699
15700
15701
15702 if test "$NULL_TARGET" = yes; then
15703   NULL_TARGET_TRUE=
15704   NULL_TARGET_FALSE='#'
15705 else
15706   NULL_TARGET_TRUE='#'
15707   NULL_TARGET_FALSE=
15708 fi
15709
15710
15711 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
15712   NATIVE_TRUE=
15713   NATIVE_FALSE='#'
15714 else
15715   NATIVE_TRUE='#'
15716   NATIVE_FALSE=
15717 fi
15718
15719
15720 if test "$CANADIAN" = yes; then
15721   CANADIAN_TRUE=
15722   CANADIAN_FALSE='#'
15723 else
15724   CANADIAN_TRUE='#'
15725   CANADIAN_FALSE=
15726 fi
15727  
15728 cat > confcache <<\EOF
15729 # This file is a shell script that caches the results of configure
15730 # tests run on this system so they can be shared between configure
15731 # scripts and configure runs.  It is not useful on other systems.
15732 # If it contains results you don't want to keep, you may remove or edit it.
15733 #
15734 # By default, configure uses ./config.cache as the cache file,
15735 # creating it if it does not exist already.  You can give configure
15736 # the --cache-file=FILE option to use a different cache file; that is
15737 # what configure does when it calls configure scripts in
15738 # subdirectories, so they share the cache.
15739 # Giving --cache-file=/dev/null disables caching, for debugging configure.
15740 # config.status only pays attention to the cache file if you give it the
15741 # --recheck option to rerun configure.
15742 #
15743 EOF
15744 # The following way of writing the cache mishandles newlines in values,
15745 # but we know of no workaround that is simple, portable, and efficient.
15746 # So, don't put newlines in cache variables' values.
15747 # Ultrix sh set writes to stderr and can't be redirected directly,
15748 # and sets the high bit in the cache file unless we assign to the vars.
15749 (set) 2>&1 |
15750   case `(ac_space=' '; set | grep ac_space) 2>&1` in
15751   *ac_space=\ *)
15752     # `set' does not quote correctly, so add quotes (double-quote substitution
15753     # turns \\\\ into \\, and sed turns \\ into \).
15754     sed -n \
15755       -e "s/'/'\\\\''/g" \
15756       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15757     ;;
15758   *)
15759     # `set' quotes correctly as required by POSIX, so do not add quotes.
15760     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15761     ;;
15762   esac >> confcache
15763 if cmp -s $cache_file confcache; then
15764   :
15765 else
15766   if test -w $cache_file; then
15767     echo "updating cache $cache_file"
15768     cat confcache > $cache_file
15769   else
15770     echo "not updating unwritable cache $cache_file"
15771   fi
15772 fi
15773 rm -f confcache
15774
15775
15776   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
15777 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
15778 echo "configure:15779: checking for locale.h" >&5
15779 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15780   echo $ac_n "(cached) $ac_c" 1>&6
15781 else
15782   cat > conftest.$ac_ext <<EOF
15783 #line 15784 "configure"
15784 #include "confdefs.h"
15785 #include <locale.h>
15786 EOF
15787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15788 { (eval echo configure:15789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15789 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15790 if test -z "$ac_err"; then
15791   rm -rf conftest*
15792   eval "ac_cv_header_$ac_safe=yes"
15793 else
15794   echo "$ac_err" >&5
15795   echo "configure: failed program was:" >&5
15796   cat conftest.$ac_ext >&5
15797   rm -rf conftest*
15798   eval "ac_cv_header_$ac_safe=no"
15799 fi
15800 rm -f conftest*
15801 fi
15802 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15803   echo "$ac_t""yes" 1>&6
15804   
15805     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
15806 echo "configure:15807: checking for LC_MESSAGES" >&5
15807 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
15808   echo $ac_n "(cached) $ac_c" 1>&6
15809 else
15810   cat > conftest.$ac_ext <<EOF
15811 #line 15812 "configure"
15812 #include "confdefs.h"
15813 #include <locale.h>
15814 int main() {
15815 return LC_MESSAGES
15816 ; return 0; }
15817 EOF
15818 if { (eval echo configure:15819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15819   rm -rf conftest*
15820   ac_cv_val_LC_MESSAGES=yes
15821 else
15822   echo "configure: failed program was:" >&5
15823   cat conftest.$ac_ext >&5
15824   rm -rf conftest*
15825   ac_cv_val_LC_MESSAGES=no
15826 fi
15827 rm -f conftest*
15828 fi
15829
15830 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
15831     if test $ac_cv_val_LC_MESSAGES = yes; then
15832       cat >> confdefs.h <<\EOF
15833 #define HAVE_LC_MESSAGES 1
15834 EOF
15835
15836     fi
15837   
15838 else
15839   echo "$ac_t""no" 1>&6
15840 fi
15841
15842
15843
15844 if test "${multilib}" = "yes"; then
15845   multilib_arg="--enable-multilib"
15846 else
15847   multilib_arg=
15848 fi
15849
15850
15851 # Generate the various Makefiles, include files, and scripts.
15852
15853 # Needed so that g++ can find the correct include subdir automatically.
15854 INTERFACE=v3
15855
15856 # Export all the install information
15857
15858
15859 glibcpp_toolexecdir=no
15860 glibcpp_toolexeclibdir=no
15861
15862 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
15863 echo "configure:15864: checking for interface version number" >&5
15864 libstdcxx_interface=$INTERFACE
15865 echo "$ac_t""$libstdcxx_interface" 1>&6
15866
15867 # Process the option --with-gxx-include-dir=<path to include-files directory>
15868 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
15869 echo "configure:15870: checking for --with-gxx-include-dir" >&5
15870 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
15871 if test "${with_gxx_include_dir+set}" = set; then
15872   withval="$with_gxx_include_dir"
15873   case "${withval}" in
15874   yes)
15875     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
15876     gxx_include_dir=no
15877     ;;
15878   no)
15879     gxx_include_dir=no
15880     ;;
15881   *)
15882     gxx_include_dir=${withval}
15883     ;;
15884 esac
15885 else
15886   gxx_include_dir=no
15887 fi
15888
15889 echo "$ac_t""$gxx_include_dir" 1>&6
15890
15891 # Process the option "--enable-version-specific-runtime-libs"
15892 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
15893 echo "configure:15894: checking for --enable-version-specific-runtime-libs" >&5
15894 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15895 if test "${enable_version_specific_runtime_libs+set}" = set; then
15896   enableval="$enable_version_specific_runtime_libs"
15897     version_specific_libs=yes
15898 # Need the gcc compiler version to know where to install libraries
15899 # and header files if --enable-version-specific-runtime-libs option
15900 # is selected.
15901 gcc_version_trigger=${srcdir}/../gcc/version.c
15902 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
15903 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
15904 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
15905 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
15906 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}
15907
15908 else
15909   version_specific_libs=no
15910 fi
15911
15912 echo "$ac_t""$version_specific_libs" 1>&6
15913
15914 # Default case for install directory for include files.
15915 if test x"$version_specific_libs" = x"no" \
15916    && test x"$gxx_include_dir"=x"no"; then
15917   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
15918 fi
15919
15920 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
15921 # Install a library built with a cross compiler in tooldir, not libdir.
15922 if test x"$glibcpp_toolexecdir" = x"no"; then 
15923   if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15924     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
15925     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
15926   else
15927     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
15928     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
15929   fi
15930 fi
15931
15932 echo $ac_n "checking for install location""... $ac_c" 1>&6
15933 echo "configure:15934: checking for install location" >&5
15934 echo "$ac_t""$gxx_include_dir" 1>&6
15935
15936
15937
15938
15939
15940
15941 # Export all the include and flag information to makefiles.
15942
15943   # Root level of the include sources.
15944   GLIBCPP_INCLUDE_DIR='$(top_srcdir)/include'
15945
15946   # Can either use include/c or include/c_std to grab "C" headers. This
15947   # variable is set to the include directory currently in use.
15948   # set with C_INCLUDE_DIR in GLIBCPP_ENABLE_CHEADERS
15949    
15950   # Passed down for canadian crosses.
15951   if  test x"$CANADIAN" = xyes; then
15952     TOPLEVEL_INCLUDES='-I$(includedir)'
15953   fi
15954
15955   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
15956
15957   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
15958
15959   #if GLIBCPP_NEED_LIBIO
15960   LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
15961   #else
15962   #LIBIO_INCLUDES='-I$(top_srcdir)/libio'
15963   #endif
15964
15965   #if GLIBCPP_USE_CSHADOW
15966   #  CSHADOW_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR) \
15967   #                   -I$(top_blddir)/cshadow'
15968   #else
15969   CSTD_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR)'
15970   #endif
15971
15972   # Now, export this to all the little Makefiles....
15973   
15974   
15975   
15976   
15977   
15978   
15979
15980
15981   # Optimization flags that are probably a good idea for thrill-seekers. Just
15982   # uncomment the lines below and make, everything else is ready to go... 
15983   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
15984   OPTIMIZE_CXXFLAGS=
15985   
15986
15987   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
15988   
15989
15990
15991 # This should be done by mkincludedir, but hack around it now.
15992 blddir=`pwd`
15993 echo "checking for $blddir/include"
15994
15995 if test ! -d "$blddir/include"; then
15996   mkdir "$blddir/include"
15997 fi
15998
15999 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
16000 # and libsupc++/Makefile.am so that multilib installs will end up
16001 # installed in the correct place. To work around this not being passed
16002 # down from config-ml.in -> top_srcdir/Makefile.am ->
16003 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
16004 trap '' 1 2 15
16005 cat > confcache <<\EOF
16006 # This file is a shell script that caches the results of configure
16007 # tests run on this system so they can be shared between configure
16008 # scripts and configure runs.  It is not useful on other systems.
16009 # If it contains results you don't want to keep, you may remove or edit it.
16010 #
16011 # By default, configure uses ./config.cache as the cache file,
16012 # creating it if it does not exist already.  You can give configure
16013 # the --cache-file=FILE option to use a different cache file; that is
16014 # what configure does when it calls configure scripts in
16015 # subdirectories, so they share the cache.
16016 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16017 # config.status only pays attention to the cache file if you give it the
16018 # --recheck option to rerun configure.
16019 #
16020 EOF
16021 # The following way of writing the cache mishandles newlines in values,
16022 # but we know of no workaround that is simple, portable, and efficient.
16023 # So, don't put newlines in cache variables' values.
16024 # Ultrix sh set writes to stderr and can't be redirected directly,
16025 # and sets the high bit in the cache file unless we assign to the vars.
16026 (set) 2>&1 |
16027   case `(ac_space=' '; set | grep ac_space) 2>&1` in
16028   *ac_space=\ *)
16029     # `set' does not quote correctly, so add quotes (double-quote substitution
16030     # turns \\\\ into \\, and sed turns \\ into \).
16031     sed -n \
16032       -e "s/'/'\\\\''/g" \
16033       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16034     ;;
16035   *)
16036     # `set' quotes correctly as required by POSIX, so do not add quotes.
16037     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16038     ;;
16039   esac >> confcache
16040 if cmp -s $cache_file confcache; then
16041   :
16042 else
16043   if test -w $cache_file; then
16044     echo "updating cache $cache_file"
16045     cat confcache > $cache_file
16046   else
16047     echo "not updating unwritable cache $cache_file"
16048   fi
16049 fi
16050 rm -f confcache
16051
16052 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16053
16054 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16055 # Let make expand exec_prefix.
16056 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16057
16058 # Any assignment to VPATH causes Sun make to only execute
16059 # the first set of double-colon rules, so remove it if not needed.
16060 # If there is a colon in the path, we need to keep it.
16061 if test "x$srcdir" = x.; then
16062   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
16063 fi
16064
16065 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16066
16067 DEFS=-DHAVE_CONFIG_H
16068
16069 # Without the "./", some shells look in PATH for config.status.
16070 : ${CONFIG_STATUS=./config.status}
16071
16072 echo creating $CONFIG_STATUS
16073 rm -f $CONFIG_STATUS
16074 cat > $CONFIG_STATUS <<EOF
16075 #! /bin/sh
16076 # Generated automatically by configure.
16077 # Run this file to recreate the current configuration.
16078 # This directory was configured as follows,
16079 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16080 #
16081 # $0 $ac_configure_args
16082 #
16083 # Compiler output produced by configure, useful for debugging
16084 # configure, is in ./config.log if it exists.
16085
16086 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16087 for ac_option
16088 do
16089   case "\$ac_option" in
16090   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16091     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16092     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16093   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16094     echo "$CONFIG_STATUS generated by autoconf version 2.13"
16095     exit 0 ;;
16096   -help | --help | --hel | --he | --h)
16097     echo "\$ac_cs_usage"; exit 0 ;;
16098   *) echo "\$ac_cs_usage"; exit 1 ;;
16099   esac
16100 done
16101
16102 ac_given_srcdir=$srcdir
16103 ac_given_INSTALL="$INSTALL"
16104
16105 trap 'rm -fr `echo "tests_flags mkcheck Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16106 EOF
16107 cat >> $CONFIG_STATUS <<EOF
16108
16109 # Protect against being on the right side of a sed subst in config.status.
16110 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16111  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16112 $ac_vpsub
16113 $extrasub
16114 s%@SHELL@%$SHELL%g
16115 s%@CFLAGS@%$CFLAGS%g
16116 s%@CPPFLAGS@%$CPPFLAGS%g
16117 s%@CXXFLAGS@%$CXXFLAGS%g
16118 s%@FFLAGS@%$FFLAGS%g
16119 s%@DEFS@%$DEFS%g
16120 s%@LDFLAGS@%$LDFLAGS%g
16121 s%@LIBS@%$LIBS%g
16122 s%@exec_prefix@%$exec_prefix%g
16123 s%@prefix@%$prefix%g
16124 s%@program_transform_name@%$program_transform_name%g
16125 s%@bindir@%$bindir%g
16126 s%@sbindir@%$sbindir%g
16127 s%@libexecdir@%$libexecdir%g
16128 s%@datadir@%$datadir%g
16129 s%@sysconfdir@%$sysconfdir%g
16130 s%@sharedstatedir@%$sharedstatedir%g
16131 s%@localstatedir@%$localstatedir%g
16132 s%@libdir@%$libdir%g
16133 s%@includedir@%$includedir%g
16134 s%@oldincludedir@%$oldincludedir%g
16135 s%@infodir@%$infodir%g
16136 s%@mandir@%$mandir%g
16137 s%@toplevel_srcdir@%$toplevel_srcdir%g
16138 s%@host@%$host%g
16139 s%@host_alias@%$host_alias%g
16140 s%@host_cpu@%$host_cpu%g
16141 s%@host_vendor@%$host_vendor%g
16142 s%@host_os@%$host_os%g
16143 s%@target@%$target%g
16144 s%@target_alias@%$target_alias%g
16145 s%@target_cpu@%$target_cpu%g
16146 s%@target_vendor@%$target_vendor%g
16147 s%@target_os@%$target_os%g
16148 s%@build@%$build%g
16149 s%@build_alias@%$build_alias%g
16150 s%@build_cpu@%$build_cpu%g
16151 s%@build_vendor@%$build_vendor%g
16152 s%@build_os@%$build_os%g
16153 s%@glibcpp_basedir@%$glibcpp_basedir%g
16154 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16155 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16156 s%@INSTALL_DATA@%$INSTALL_DATA%g
16157 s%@PACKAGE@%$PACKAGE%g
16158 s%@VERSION@%$VERSION%g
16159 s%@ACLOCAL@%$ACLOCAL%g
16160 s%@AUTOCONF@%$AUTOCONF%g
16161 s%@AUTOMAKE@%$AUTOMAKE%g
16162 s%@AUTOHEADER@%$AUTOHEADER%g
16163 s%@MAKEINFO@%$MAKEINFO%g
16164 s%@SET_MAKE@%$SET_MAKE%g
16165 s%@CC@%$CC%g
16166 s%@CXX_libstdcxx@%$CXX_libstdcxx%g
16167 s%@CXX@%$CXX%g
16168 s%@AS@%$AS%g
16169 s%@AR@%$AR%g
16170 s%@RANLIB@%$RANLIB%g
16171 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
16172 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
16173 s%@MAINT@%$MAINT%g
16174 s%@EXEEXT@%$EXEEXT%g
16175 s%@GLIBCPP_CFLAGS@%$GLIBCPP_CFLAGS%g
16176 s%@GLIBCPP_CXXFLAGS@%$GLIBCPP_CXXFLAGS%g
16177 s%@LN_S@%$LN_S%g
16178 s%@OBJEXT@%$OBJEXT%g
16179 s%@STRIP@%$STRIP%g
16180 s%@LIBTOOL@%$LIBTOOL%g
16181 s%@CXXCPP@%$CXXCPP%g
16182 s%@enable_shared@%$enable_shared%g
16183 s%@enable_static@%$enable_static%g
16184 s%@ifGNUmake@%$ifGNUmake%g
16185 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
16186 s%@CPP@%$CPP%g
16187 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
16188 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
16189 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
16190 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
16191 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
16192 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
16193 s%@libio_la@%$libio_la%g
16194 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
16195 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
16196 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
16197 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
16198 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
16199 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
16200 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
16201 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
16202 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
16203 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
16204 s%@libinst_wstring_la@%$libinst_wstring_la%g
16205 s%@WERROR@%$WERROR%g
16206 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
16207 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
16208 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
16209 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
16210 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
16211 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
16212 s%@gxx_include_dir@%$gxx_include_dir%g
16213 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
16214 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
16215 s%@GLIBCPP_INCLUDE_DIR@%$GLIBCPP_INCLUDE_DIR%g
16216 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
16217 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
16218 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
16219 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
16220 s%@CSTD_INCLUDES@%$CSTD_INCLUDES%g
16221 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
16222 s%@WARN_FLAGS@%$WARN_FLAGS%g
16223
16224 CEOF
16225 EOF
16226
16227 cat >> $CONFIG_STATUS <<\EOF
16228
16229 # Split the substitutions into bite-sized pieces for seds with
16230 # small command number limits, like on Digital OSF/1 and HP-UX.
16231 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16232 ac_file=1 # Number of current file.
16233 ac_beg=1 # First line for current file.
16234 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16235 ac_more_lines=:
16236 ac_sed_cmds=""
16237 while $ac_more_lines; do
16238   if test $ac_beg -gt 1; then
16239     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16240   else
16241     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16242   fi
16243   if test ! -s conftest.s$ac_file; then
16244     ac_more_lines=false
16245     rm -f conftest.s$ac_file
16246   else
16247     if test -z "$ac_sed_cmds"; then
16248       ac_sed_cmds="sed -f conftest.s$ac_file"
16249     else
16250       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16251     fi
16252     ac_file=`expr $ac_file + 1`
16253     ac_beg=$ac_end
16254     ac_end=`expr $ac_end + $ac_max_sed_cmds`
16255   fi
16256 done
16257 if test -z "$ac_sed_cmds"; then
16258   ac_sed_cmds=cat
16259 fi
16260 EOF
16261
16262 cat >> $CONFIG_STATUS <<EOF
16263
16264 CONFIG_FILES=\${CONFIG_FILES-"tests_flags mkcheck Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile"}
16265 EOF
16266 cat >> $CONFIG_STATUS <<\EOF
16267 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16268   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16269   case "$ac_file" in
16270   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16271        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16272   *) ac_file_in="${ac_file}.in" ;;
16273   esac
16274
16275   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16276
16277   # Remove last slash and all that follows it.  Not all systems have dirname.
16278   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16279   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16280     # The file is in a subdirectory.
16281     test ! -d "$ac_dir" && mkdir "$ac_dir"
16282     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16283     # A "../" for each directory in $ac_dir_suffix.
16284     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16285   else
16286     ac_dir_suffix= ac_dots=
16287   fi
16288
16289   case "$ac_given_srcdir" in
16290   .)  srcdir=.
16291       if test -z "$ac_dots"; then top_srcdir=.
16292       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16293   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16294   *) # Relative path.
16295     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16296     top_srcdir="$ac_dots$ac_given_srcdir" ;;
16297   esac
16298
16299   case "$ac_given_INSTALL" in
16300   [/$]*) INSTALL="$ac_given_INSTALL" ;;
16301   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16302   esac
16303
16304   echo creating "$ac_file"
16305   rm -f "$ac_file"
16306   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16307   case "$ac_file" in
16308   *Makefile*) ac_comsub="1i\\
16309 # $configure_input" ;;
16310   *) ac_comsub= ;;
16311   esac
16312
16313   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16314   sed -e "$ac_comsub
16315 s%@configure_input@%$configure_input%g
16316 s%@srcdir@%$srcdir%g
16317 s%@top_srcdir@%$top_srcdir%g
16318 s%@INSTALL@%$INSTALL%g
16319 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16320 fi; done
16321 rm -f conftest.s*
16322
16323 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16324 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16325 #
16326 # ac_d sets the value in "#define NAME VALUE" lines.
16327 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
16328 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
16329 ac_dC='\3'
16330 ac_dD='%g'
16331 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16332 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16333 ac_uB='\([      ]\)%\1#\2define\3'
16334 ac_uC=' '
16335 ac_uD='\4%g'
16336 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16337 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16338 ac_eB='$%\1#\2define\3'
16339 ac_eC=' '
16340 ac_eD='%g'
16341
16342 if test "${CONFIG_HEADERS+set}" != set; then
16343 EOF
16344 cat >> $CONFIG_STATUS <<EOF
16345   CONFIG_HEADERS="config.h"
16346 EOF
16347 cat >> $CONFIG_STATUS <<\EOF
16348 fi
16349 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16350   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16351   case "$ac_file" in
16352   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16353        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16354   *) ac_file_in="${ac_file}.in" ;;
16355   esac
16356
16357   echo creating $ac_file
16358
16359   rm -f conftest.frag conftest.in conftest.out
16360   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16361   cat $ac_file_inputs > conftest.in
16362
16363 EOF
16364
16365 # Transform confdefs.h into a sed script conftest.vals that substitutes
16366 # the proper values into config.h.in to produce config.h.  And first:
16367 # Protect against being on the right side of a sed subst in config.status.
16368 # Protect against being in an unquoted here document in config.status.
16369 rm -f conftest.vals
16370 cat > conftest.hdr <<\EOF
16371 s/[\\&%]/\\&/g
16372 s%[\\$`]%\\&%g
16373 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16374 s%ac_d%ac_u%gp
16375 s%ac_u%ac_e%gp
16376 EOF
16377 sed -n -f conftest.hdr confdefs.h > conftest.vals
16378 rm -f conftest.hdr
16379
16380 # This sed command replaces #undef with comments.  This is necessary, for
16381 # example, in the case of _POSIX_SOURCE, which is predefined and required
16382 # on some systems where configure will not decide to define it.
16383 cat >> conftest.vals <<\EOF
16384 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16385 EOF
16386
16387 # Break up conftest.vals because some shells have a limit on
16388 # the size of here documents, and old seds have small limits too.
16389
16390 rm -f conftest.tail
16391 while :
16392 do
16393   ac_lines=`grep -c . conftest.vals`
16394   # grep -c gives empty output for an empty file on some AIX systems.
16395   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16396   # Write a limited-size here document to conftest.frag.
16397   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16398   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16399   echo 'CEOF
16400   sed -f conftest.frag conftest.in > conftest.out
16401   rm -f conftest.in
16402   mv conftest.out conftest.in
16403 ' >> $CONFIG_STATUS
16404   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16405   rm -f conftest.vals
16406   mv conftest.tail conftest.vals
16407 done
16408 rm -f conftest.vals
16409
16410 cat >> $CONFIG_STATUS <<\EOF
16411   rm -f conftest.frag conftest.h
16412   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
16413   cat conftest.in >> conftest.h
16414   rm -f conftest.in
16415   if cmp -s $ac_file conftest.h 2>/dev/null; then
16416     echo "$ac_file is unchanged"
16417     rm -f conftest.h
16418   else
16419     # Remove last slash and all that follows it.  Not all systems have dirname.
16420       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16421       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16422       # The file is in a subdirectory.
16423       test ! -d "$ac_dir" && mkdir "$ac_dir"
16424     fi
16425     rm -f $ac_file
16426     mv conftest.h $ac_file
16427   fi
16428 fi; done
16429
16430 EOF
16431
16432 cat >> $CONFIG_STATUS <<EOF
16433 ac_sources="$os_include_dir/bits/os_defines.h $CSTDIO_H $BASIC_FILE_H $BASIC_FILE_CC $CCODECVT_C $CLOCALE_H $CLOCALE_CC config/$THREADH $os_include_dir/bits/ctype_base.h $os_include_dir/bits/ctype_inline.h $os_include_dir/bits/ctype_noninline.h $ATOMICITYH/bits/atomicity.h"
16434 ac_dests="include/bits/os_defines.h include/bits/c++io.h include/bits/basic_file_model.h src/basic_file.cc libio/c_codecvt.c include/bits/c++locale.h src/c++locale.cc include/bits/c++threads.h \
16435 include/bits/ctype_base.h \
16436 include/bits/ctype_inline.h \
16437 include/bits/ctype_noninline.h include/bits/atomicity.h"
16438 EOF
16439
16440 cat >> $CONFIG_STATUS <<\EOF
16441 srcdir=$ac_given_srcdir
16442 while test -n "$ac_sources"; do
16443   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
16444   set $ac_sources; ac_source=$1; shift; ac_sources=$*
16445
16446   echo "linking $srcdir/$ac_source to $ac_dest"
16447
16448   if test ! -r $srcdir/$ac_source; then
16449     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
16450   fi
16451   rm -f $ac_dest
16452
16453   # Make relative symlinks.
16454   # Remove last slash and all that follows it.  Not all systems have dirname.
16455   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
16456   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
16457     # The dest file is in a subdirectory.
16458     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
16459     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
16460     # A "../" for each directory in $ac_dest_dir_suffix.
16461     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
16462   else
16463     ac_dest_dir_suffix= ac_dots=
16464   fi
16465
16466   case "$srcdir" in
16467   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
16468   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
16469   esac
16470
16471   # Make a symlink if possible; otherwise try a hard link.
16472   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
16473     ln $srcdir/$ac_source $ac_dest; then :
16474   else
16475     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
16476   fi
16477 done
16478 EOF
16479 cat >> $CONFIG_STATUS <<EOF
16480
16481 srcdir=${srcdir}
16482 host=${host}
16483 target=${target}
16484 with_multisubdir=${with_multisubdir}
16485 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16486 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16487 glibcpp_basedir=${glibcpp_basedir}
16488 CC="${CC}"
16489 CXX="${CXX}"
16490
16491 EOF
16492 cat >> $CONFIG_STATUS <<\EOF
16493 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
16494 if test -n "$CONFIG_FILES"; then
16495   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
16496   grep '^MULTISUBDIR =' Makefile >> src/Makefile
16497   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
16498 fi
16499 chmod +x tests_flags
16500 chmod +x mkcheck
16501
16502 exit 0
16503 EOF
16504 chmod +x $CONFIG_STATUS
16505 rm -fr confdefs* $ac_clean_files
16506 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
16507
16508
16509
16510 # Generate bits/c++config.h
16511 # NB: This must be the first generated file as others include it. . .
16512 $srcdir/mkc++config $blddir $srcdir
16513
16514 # Generate bits/std_limits.h and src/limitsMEMBERS.cc
16515 if test ! -f stamp-limits; then
16516   $srcdir/mknumeric_limits $blddir $srcdir $xcompiling
16517   if test ! -f include/bits/std_limits.h; then
16518     echo "mknumeric_limits failed to execute properly: exiting"
16519     exit 1
16520   else
16521     touch stamp-limits 
16522   fi
16523 fi
16524
16525
16526 # Sanity checking & User-visible messages.
16527 # Checks down here, otherwise they get scrolled off before
16528 # the user will notice.
16529
16530 # Trying to get more people to read documentation.  Possibly remove
16531 # check and warn all the time. There is no "informational" AC_MSG_
16532 # macro, so these are going to be printed even when --quiet/--silent
16533 # is given.
16534 if test ! -f stamp-sanity-warned; then
16535   touch stamp-sanity-warned
16536   echo ""
16537   echo "Please make certain that you read the installation information here:"
16538   echo "  faster => ${srcdir}/docs/install.html"
16539   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
16540   echo ""
16541   echo "and the configuration information here:"
16542   echo "  faster => ${srcdir}/docs/configopts.html"
16543   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
16544   echo ""
16545   echo "before proceeding with ${_cv_gnu_make_command}."
16546   echo ""
16547 fi