limits.h: Move to...
[platform/upstream/gcc.git] / libstdc++-v3 / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-multilib       build hella library versions (default)"
16 ac_help="$ac_help
17   --with-target-subdir=SUBDIR
18                            configuring in a subdirectory"
19 ac_help="$ac_help
20   --with-cross-host=HOST  configuring with a cross compiler"
21 ac_help="$ac_help
22   --enable-maintainer-mode enable make rules and dependencies not useful
23                           (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25   --enable-shared[=PKGS]  build shared libraries [default=yes]"
26 ac_help="$ac_help
27   --enable-static[=PKGS]  build static libraries [default=yes]"
28 ac_help="$ac_help
29   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33   --disable-libtool-lock  avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37   --enable-debug          extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39   --enable-cstdio         enable stdio for target io package. 
40   --enable-cstdio=LIB     use LIB target-speific io package. [default=stdio]
41   "
42 ac_help="$ac_help
43   --enable-clocale        enable model for target locale package. 
44   --enable-clocale=MODEL  use MODEL target-speific locale package. [default=generic]
45   "
46 ac_help="$ac_help
47   --enable-c-mbchar       enable multibyte (wide) characters [default=yes]"
48 ac_help="$ac_help
49   --enable-c99      turns on 'ISO/IEC 9899:1999 support' [default=yes]"
50 ac_help="$ac_help
51   --enable-long-long      turns on 'long long' [default=yes]"
52 ac_help="$ac_help
53   --enable-cheaders       construct "C" header files for g++ [default=c_std]"
54 ac_help="$ac_help
55   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
56                                 [default=none]"
57 ac_help="$ac_help
58   --enable-sjlj-exceptions  force use of builtin_setjmp for exceptions"
59 ac_help="$ac_help
60   --with-gxx-include-dir  the installation directory for include files"
61 ac_help="$ac_help
62   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
63
64 # Initialize some variables set by options.
65 # The variables have the same names as the options, with
66 # dashes changed to underlines.
67 build=NONE
68 cache_file=./config.cache
69 exec_prefix=NONE
70 host=NONE
71 no_create=
72 nonopt=NONE
73 no_recursion=
74 prefix=NONE
75 program_prefix=NONE
76 program_suffix=NONE
77 program_transform_name=s,x,x,
78 silent=
79 site=
80 srcdir=
81 target=NONE
82 verbose=
83 x_includes=NONE
84 x_libraries=NONE
85 bindir='${exec_prefix}/bin'
86 sbindir='${exec_prefix}/sbin'
87 libexecdir='${exec_prefix}/libexec'
88 datadir='${prefix}/share'
89 sysconfdir='${prefix}/etc'
90 sharedstatedir='${prefix}/com'
91 localstatedir='${prefix}/var'
92 libdir='${exec_prefix}/lib'
93 includedir='${prefix}/include'
94 oldincludedir='/usr/include'
95 infodir='${prefix}/info'
96 mandir='${prefix}/man'
97
98 # Initialize some other variables.
99 subdirs=
100 MFLAGS= MAKEFLAGS=
101 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 ac_max_here_lines=12
104
105 ac_prev=
106 for ac_option
107 do
108
109   # If the previous option needs an argument, assign it.
110   if test -n "$ac_prev"; then
111     eval "$ac_prev=\$ac_option"
112     ac_prev=
113     continue
114   fi
115
116   case "$ac_option" in
117   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
118   *) ac_optarg= ;;
119   esac
120
121   # Accept the important Cygnus configure options, so we can diagnose typos.
122
123   case "$ac_option" in
124
125   -bindir | --bindir | --bindi | --bind | --bin | --bi)
126     ac_prev=bindir ;;
127   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
128     bindir="$ac_optarg" ;;
129
130   -build | --build | --buil | --bui | --bu)
131     ac_prev=build ;;
132   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
133     build="$ac_optarg" ;;
134
135   -cache-file | --cache-file | --cache-fil | --cache-fi \
136   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
137     ac_prev=cache_file ;;
138   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
139   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
140     cache_file="$ac_optarg" ;;
141
142   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
143     ac_prev=datadir ;;
144   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
145   | --da=*)
146     datadir="$ac_optarg" ;;
147
148   -disable-* | --disable-*)
149     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
150     # Reject names that are not valid shell variable names.
151     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
152       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
153     fi
154     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
155     eval "enable_${ac_feature}=no" ;;
156
157   -enable-* | --enable-*)
158     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
159     # Reject names that are not valid shell variable names.
160     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
161       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162     fi
163     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
164     case "$ac_option" in
165       *=*) ;;
166       *) ac_optarg=yes ;;
167     esac
168     eval "enable_${ac_feature}='$ac_optarg'" ;;
169
170   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
171   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
172   | --exec | --exe | --ex)
173     ac_prev=exec_prefix ;;
174   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
175   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
176   | --exec=* | --exe=* | --ex=*)
177     exec_prefix="$ac_optarg" ;;
178
179   -gas | --gas | --ga | --g)
180     # Obsolete; use --with-gas.
181     with_gas=yes ;;
182
183   -help | --help | --hel | --he)
184     # Omit some internal or obsolete options to make the list less imposing.
185     # This message is too long to be a string in the A/UX 3.1 sh.
186     cat << EOF
187 Usage: configure [options] [host]
188 Options: [defaults in brackets after descriptions]
189 Configuration:
190   --cache-file=FILE       cache test results in FILE
191   --help                  print this message
192   --no-create             do not create output files
193   --quiet, --silent       do not print \`checking...' messages
194   --version               print the version of autoconf that created configure
195 Directory and file names:
196   --prefix=PREFIX         install architecture-independent files in PREFIX
197                           [$ac_default_prefix]
198   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
199                           [same as prefix]
200   --bindir=DIR            user executables in DIR [EPREFIX/bin]
201   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
202   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
203   --datadir=DIR           read-only architecture-independent data in DIR
204                           [PREFIX/share]
205   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
206   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
207                           [PREFIX/com]
208   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
209   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
210   --includedir=DIR        C header files in DIR [PREFIX/include]
211   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
212   --infodir=DIR           info documentation in DIR [PREFIX/info]
213   --mandir=DIR            man documentation in DIR [PREFIX/man]
214   --srcdir=DIR            find the sources in DIR [configure dir or ..]
215   --program-prefix=PREFIX prepend PREFIX to installed program names
216   --program-suffix=SUFFIX append SUFFIX to installed program names
217   --program-transform-name=PROGRAM
218                           run sed PROGRAM on installed program names
219 EOF
220     cat << EOF
221 Host type:
222   --build=BUILD           configure for building on BUILD [BUILD=HOST]
223   --host=HOST             configure for HOST [guessed]
224   --target=TARGET         configure for TARGET [TARGET=HOST]
225 Features and packages:
226   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
227   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
228   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
229   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
230   --x-includes=DIR        X include files are in DIR
231   --x-libraries=DIR       X library files are in DIR
232 EOF
233     if test -n "$ac_help"; then
234       echo "--enable and --with options recognized:$ac_help"
235     fi
236     exit 0 ;;
237
238   -host | --host | --hos | --ho)
239     ac_prev=host ;;
240   -host=* | --host=* | --hos=* | --ho=*)
241     host="$ac_optarg" ;;
242
243   -includedir | --includedir | --includedi | --included | --include \
244   | --includ | --inclu | --incl | --inc)
245     ac_prev=includedir ;;
246   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
247   | --includ=* | --inclu=* | --incl=* | --inc=*)
248     includedir="$ac_optarg" ;;
249
250   -infodir | --infodir | --infodi | --infod | --info | --inf)
251     ac_prev=infodir ;;
252   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
253     infodir="$ac_optarg" ;;
254
255   -libdir | --libdir | --libdi | --libd)
256     ac_prev=libdir ;;
257   -libdir=* | --libdir=* | --libdi=* | --libd=*)
258     libdir="$ac_optarg" ;;
259
260   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
261   | --libexe | --libex | --libe)
262     ac_prev=libexecdir ;;
263   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
264   | --libexe=* | --libex=* | --libe=*)
265     libexecdir="$ac_optarg" ;;
266
267   -localstatedir | --localstatedir | --localstatedi | --localstated \
268   | --localstate | --localstat | --localsta | --localst \
269   | --locals | --local | --loca | --loc | --lo)
270     ac_prev=localstatedir ;;
271   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
272   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
273   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
274     localstatedir="$ac_optarg" ;;
275
276   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
277     ac_prev=mandir ;;
278   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
279     mandir="$ac_optarg" ;;
280
281   -nfp | --nfp | --nf)
282     # Obsolete; use --without-fp.
283     with_fp=no ;;
284
285   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
286   | --no-cr | --no-c)
287     no_create=yes ;;
288
289   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
290   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
291     no_recursion=yes ;;
292
293   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
294   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
295   | --oldin | --oldi | --old | --ol | --o)
296     ac_prev=oldincludedir ;;
297   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
298   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
299   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
300     oldincludedir="$ac_optarg" ;;
301
302   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
303     ac_prev=prefix ;;
304   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
305     prefix="$ac_optarg" ;;
306
307   -program-prefix | --program-prefix | --program-prefi | --program-pref \
308   | --program-pre | --program-pr | --program-p)
309     ac_prev=program_prefix ;;
310   -program-prefix=* | --program-prefix=* | --program-prefi=* \
311   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
312     program_prefix="$ac_optarg" ;;
313
314   -program-suffix | --program-suffix | --program-suffi | --program-suff \
315   | --program-suf | --program-su | --program-s)
316     ac_prev=program_suffix ;;
317   -program-suffix=* | --program-suffix=* | --program-suffi=* \
318   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
319     program_suffix="$ac_optarg" ;;
320
321   -program-transform-name | --program-transform-name \
322   | --program-transform-nam | --program-transform-na \
323   | --program-transform-n | --program-transform- \
324   | --program-transform | --program-transfor \
325   | --program-transfo | --program-transf \
326   | --program-trans | --program-tran \
327   | --progr-tra | --program-tr | --program-t)
328     ac_prev=program_transform_name ;;
329   -program-transform-name=* | --program-transform-name=* \
330   | --program-transform-nam=* | --program-transform-na=* \
331   | --program-transform-n=* | --program-transform-=* \
332   | --program-transform=* | --program-transfor=* \
333   | --program-transfo=* | --program-transf=* \
334   | --program-trans=* | --program-tran=* \
335   | --progr-tra=* | --program-tr=* | --program-t=*)
336     program_transform_name="$ac_optarg" ;;
337
338   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
339   | -silent | --silent | --silen | --sile | --sil)
340     silent=yes ;;
341
342   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
343     ac_prev=sbindir ;;
344   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
345   | --sbi=* | --sb=*)
346     sbindir="$ac_optarg" ;;
347
348   -sharedstatedir | --sharedstatedir | --sharedstatedi \
349   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
350   | --sharedst | --shareds | --shared | --share | --shar \
351   | --sha | --sh)
352     ac_prev=sharedstatedir ;;
353   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
354   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
355   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
356   | --sha=* | --sh=*)
357     sharedstatedir="$ac_optarg" ;;
358
359   -site | --site | --sit)
360     ac_prev=site ;;
361   -site=* | --site=* | --sit=*)
362     site="$ac_optarg" ;;
363
364   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
365     ac_prev=srcdir ;;
366   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
367     srcdir="$ac_optarg" ;;
368
369   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
370   | --syscon | --sysco | --sysc | --sys | --sy)
371     ac_prev=sysconfdir ;;
372   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
373   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
374     sysconfdir="$ac_optarg" ;;
375
376   -target | --target | --targe | --targ | --tar | --ta | --t)
377     ac_prev=target ;;
378   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
379     target="$ac_optarg" ;;
380
381   -v | -verbose | --verbose | --verbos | --verbo | --verb)
382     verbose=yes ;;
383
384   -version | --version | --versio | --versi | --vers)
385     echo "configure generated by autoconf version 2.13"
386     exit 0 ;;
387
388   -with-* | --with-*)
389     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
390     # Reject names that are not valid shell variable names.
391     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
392       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
393     fi
394     ac_package=`echo $ac_package| sed 's/-/_/g'`
395     case "$ac_option" in
396       *=*) ;;
397       *) ac_optarg=yes ;;
398     esac
399     eval "with_${ac_package}='$ac_optarg'" ;;
400
401   -without-* | --without-*)
402     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
403     # Reject names that are not valid shell variable names.
404     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
405       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406     fi
407     ac_package=`echo $ac_package| sed 's/-/_/g'`
408     eval "with_${ac_package}=no" ;;
409
410   --x)
411     # Obsolete; use --with-x.
412     with_x=yes ;;
413
414   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
415   | --x-incl | --x-inc | --x-in | --x-i)
416     ac_prev=x_includes ;;
417   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
418   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
419     x_includes="$ac_optarg" ;;
420
421   -x-libraries | --x-libraries | --x-librarie | --x-librari \
422   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
423     ac_prev=x_libraries ;;
424   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
425   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
426     x_libraries="$ac_optarg" ;;
427
428   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
429     ;;
430
431   *)
432     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
433       echo "configure: warning: $ac_option: invalid host type" 1>&2
434     fi
435     if test "x$nonopt" != xNONE; then
436       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
437     fi
438     nonopt="$ac_option"
439     ;;
440
441   esac
442 done
443
444 if test -n "$ac_prev"; then
445   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
446 fi
447
448 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
449
450 # File descriptor usage:
451 # 0 standard input
452 # 1 file creation
453 # 2 errors and warnings
454 # 3 some systems may open it to /dev/tty
455 # 4 used on the Kubota Titan
456 # 6 checking for... messages and results
457 # 5 compiler messages saved in config.log
458 if test "$silent" = yes; then
459   exec 6>/dev/null
460 else
461   exec 6>&1
462 fi
463 exec 5>./config.log
464
465 echo "\
466 This file contains any messages produced by compilers while
467 running configure, to aid debugging if configure makes a mistake.
468 " 1>&5
469
470 # Strip out --no-create and --no-recursion so they do not pile up.
471 # Also quote any args containing shell metacharacters.
472 ac_configure_args=
473 for ac_arg
474 do
475   case "$ac_arg" in
476   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
477   | --no-cr | --no-c) ;;
478   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
480   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
481   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
482   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
483   esac
484 done
485
486 # NLS nuisances.
487 # Only set these to C if already set.  These must not be set unconditionally
488 # because not all systems understand e.g. LANG=C (notably SCO).
489 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
490 # Non-C LC_CTYPE values break the ctype check.
491 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
492 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
493 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
494 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
495
496 # confdefs.h avoids OS command line length limits that DEFS can exceed.
497 rm -rf conftest* confdefs.h
498 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
499 echo > confdefs.h
500
501 # A filename unique to this package, relative to the directory that
502 # configure is in, which we can look for to find out if srcdir is correct.
503 ac_unique_file=src/ios.cc
504
505 # Find the source files, if location was not specified.
506 if test -z "$srcdir"; then
507   ac_srcdir_defaulted=yes
508   # Try the directory containing this script, then its parent.
509   ac_prog=$0
510   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
511   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
512   srcdir=$ac_confdir
513   if test ! -r $srcdir/$ac_unique_file; then
514     srcdir=..
515   fi
516 else
517   ac_srcdir_defaulted=no
518 fi
519 if test ! -r $srcdir/$ac_unique_file; then
520   if test "$ac_srcdir_defaulted" = yes; then
521     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
522   else
523     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
524   fi
525 fi
526 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
527
528 # Prefer explicitly selected file to automatically selected ones.
529 if test -z "$CONFIG_SITE"; then
530   if test "x$prefix" != xNONE; then
531     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
532   else
533     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
534   fi
535 fi
536 for ac_site_file in $CONFIG_SITE; do
537   if test -r "$ac_site_file"; then
538     echo "loading site script $ac_site_file"
539     . "$ac_site_file"
540   fi
541 done
542
543 if test -r "$cache_file"; then
544   echo "loading cache $cache_file"
545   . $cache_file
546 else
547   echo "creating cache $cache_file"
548   > $cache_file
549 fi
550
551 ac_ext=c
552 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
553 ac_cpp='$CPP $CPPFLAGS'
554 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
555 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
556 cross_compiling=$ac_cv_prog_cc_cross
557
558 ac_exeext=
559 ac_objext=o
560 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
561   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
562   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
563     ac_n= ac_c='
564 ' ac_t='        '
565   else
566     ac_n=-n ac_c= ac_t=
567   fi
568 else
569   ac_n= ac_c='\c' ac_t=
570 fi
571
572
573
574 PACKAGE=libstdc++
575
576 # For typical GNU versioning info, format is MAJOR.MINOR.MICRO
577 release_VERSION=3.1.0
578
579 # For libtool versioning info, format is CURRENT:REVISION:AGE
580 libtool_VERSION=4:0:0
581
582
583 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
584 # AC 2.50 sets target_alias iff the user specified --target, but we use it
585 # everywhere, so we set it here just to be sure.
586 ac_aux_dir=
587 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
588   if test -f $ac_dir/install-sh; then
589     ac_aux_dir=$ac_dir
590     ac_install_sh="$ac_aux_dir/install-sh -c"
591     break
592   elif test -f $ac_dir/install.sh; then
593     ac_aux_dir=$ac_dir
594     ac_install_sh="$ac_aux_dir/install.sh -c"
595     break
596   fi
597 done
598 if test -z "$ac_aux_dir"; then
599   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
600 fi
601 ac_config_guess=$ac_aux_dir/config.guess
602 ac_config_sub=$ac_aux_dir/config.sub
603 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
604
605
606 # Do some error checking and defaulting for the host and target type.
607 # The inputs are:
608 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
609 #
610 # The rules are:
611 # 1. You are not allowed to specify --host, --target, and nonopt at the
612 #    same time.
613 # 2. Host defaults to nonopt.
614 # 3. If nonopt is not specified, then host defaults to the current host,
615 #    as determined by config.guess.
616 # 4. Target and build default to nonopt.
617 # 5. If nonopt is not specified, then target and build default to host.
618
619 # The aliases save the names the user supplied, while $host etc.
620 # will get canonicalized.
621 case $host---$target---$nonopt in
622 NONE---*---* | *---NONE---* | *---*---NONE) ;;
623 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
624 esac
625
626
627 # Make sure we can run config.sub.
628 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
629 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
630 fi
631
632 echo $ac_n "checking host system type""... $ac_c" 1>&6
633 echo "configure:634: checking host system type" >&5
634
635 host_alias=$host
636 case "$host_alias" in
637 NONE)
638   case $nonopt in
639   NONE)
640     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
641     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
642     fi ;;
643   *) host_alias=$nonopt ;;
644   esac ;;
645 esac
646
647 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
648 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
649 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
650 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
651 echo "$ac_t""$host" 1>&6
652
653 echo $ac_n "checking target system type""... $ac_c" 1>&6
654 echo "configure:655: checking target system type" >&5
655
656 target_alias=$target
657 case "$target_alias" in
658 NONE)
659   case $nonopt in
660   NONE) target_alias=$host_alias ;;
661   *) target_alias=$nonopt ;;
662   esac ;;
663 esac
664
665 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
666 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
667 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
668 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
669 echo "$ac_t""$target" 1>&6
670
671 echo $ac_n "checking build system type""... $ac_c" 1>&6
672 echo "configure:673: checking build system type" >&5
673
674 build_alias=$build
675 case "$build_alias" in
676 NONE)
677   case $nonopt in
678   NONE) build_alias=$host_alias ;;
679   *) build_alias=$nonopt ;;
680   esac ;;
681 esac
682
683 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
684 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
685 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
686 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
687 echo "$ac_t""$build" 1>&6
688
689 test "$host_alias" != "$target_alias" &&
690   test "$program_prefix$program_suffix$program_transform_name" = \
691     NONENONEs,x,x, &&
692   program_prefix=${target_alias}-
693
694 target_alias=${target_alias-$target}
695
696
697 # Find a good install program.  We prefer a C program (faster),
698 # so one script is as good as another.  But avoid the broken or
699 # incompatible versions:
700 # SysV /etc/install, /usr/sbin/install
701 # SunOS /usr/etc/install
702 # IRIX /sbin/install
703 # AIX /bin/install
704 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
705 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
706 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
707 # ./install, which can be erroneously created by make from ./install.sh.
708 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
709 echo "configure:710: checking for a BSD compatible install" >&5
710 if test -z "$INSTALL"; then
711 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
712   echo $ac_n "(cached) $ac_c" 1>&6
713 else
714     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
715   for ac_dir in $PATH; do
716     # Account for people who put trailing slashes in PATH elements.
717     case "$ac_dir/" in
718     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
719     *)
720       # OSF1 and SCO ODT 3.0 have their own names for install.
721       # Don't use installbsd from OSF since it installs stuff as root
722       # by default.
723       for ac_prog in ginstall scoinst install; do
724         if test -f $ac_dir/$ac_prog; then
725           if test $ac_prog = install &&
726             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
727             # AIX install.  It has an incompatible calling convention.
728             :
729           else
730             ac_cv_path_install="$ac_dir/$ac_prog -c"
731             break 2
732           fi
733         fi
734       done
735       ;;
736     esac
737   done
738   IFS="$ac_save_IFS"
739
740 fi
741   if test "${ac_cv_path_install+set}" = set; then
742     INSTALL="$ac_cv_path_install"
743   else
744     # As a last resort, use the slow shell script.  We don't cache a
745     # path for INSTALL within a source directory, because that will
746     # break other packages using the cache if that directory is
747     # removed, or if the path is relative.
748     INSTALL="$ac_install_sh"
749   fi
750 fi
751 echo "$ac_t""$INSTALL" 1>&6
752
753 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
754 # It thinks the first close brace ends the variable substitution.
755 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
756
757 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
758
759 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
760
761 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
762 echo "configure:763: checking whether build environment is sane" >&5
763 # Just in case
764 sleep 1
765 echo timestamp > conftestfile
766 # Do `set' in a subshell so we don't clobber the current shell's
767 # arguments.  Must try -L first in case configure is actually a
768 # symlink; some systems play weird games with the mod time of symlinks
769 # (eg FreeBSD returns the mod time of the symlink's containing
770 # directory).
771 if (
772    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
773    if test "$*" = "X"; then
774       # -L didn't work.
775       set X `ls -t $srcdir/configure conftestfile`
776    fi
777    if test "$*" != "X $srcdir/configure conftestfile" \
778       && test "$*" != "X conftestfile $srcdir/configure"; then
779
780       # If neither matched, then we have a broken ls.  This can happen
781       # if, for instance, CONFIG_SHELL is bash and it inherits a
782       # broken ls alias from the environment.  This has actually
783       # happened.  Such a system could not be considered "sane".
784       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
785 alias in your environment" 1>&2; exit 1; }
786    fi
787
788    test "$2" = conftestfile
789    )
790 then
791    # Ok.
792    :
793 else
794    { echo "configure: error: newly created file is older than distributed files!
795 Check your system clock" 1>&2; exit 1; }
796 fi
797 rm -f conftest*
798 echo "$ac_t""yes" 1>&6
799 if test "$program_transform_name" = s,x,x,; then
800   program_transform_name=
801 else
802   # Double any \ or $.  echo might interpret backslashes.
803   cat <<\EOF_SED > conftestsed
804 s,\\,\\\\,g; s,\$,$$,g
805 EOF_SED
806   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
807   rm -f conftestsed
808 fi
809 test "$program_prefix" != NONE &&
810   program_transform_name="s,^,${program_prefix},; $program_transform_name"
811 # Use a double $ so make ignores it.
812 test "$program_suffix" != NONE &&
813   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
814
815 # sed with no file args requires a program.
816 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
817
818 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
819 echo "configure:820: checking whether ${MAKE-make} sets \${MAKE}" >&5
820 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
821 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
822   echo $ac_n "(cached) $ac_c" 1>&6
823 else
824   cat > conftestmake <<\EOF
825 all:
826         @echo 'ac_maketemp="${MAKE}"'
827 EOF
828 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
829 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
830 if test -n "$ac_maketemp"; then
831   eval ac_cv_prog_make_${ac_make}_set=yes
832 else
833   eval ac_cv_prog_make_${ac_make}_set=no
834 fi
835 rm -f conftestmake
836 fi
837 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
838   echo "$ac_t""yes" 1>&6
839   SET_MAKE=
840 else
841   echo "$ac_t""no" 1>&6
842   SET_MAKE="MAKE=${MAKE-make}"
843 fi
844
845
846 PACKAGE=$PACKAGE
847
848 VERSION=$release_VERSION
849
850 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
851   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
852 fi
853 cat >> confdefs.h <<EOF
854 #define PACKAGE "$PACKAGE"
855 EOF
856
857 cat >> confdefs.h <<EOF
858 #define VERSION "$VERSION"
859 EOF
860
861
862
863 missing_dir=`cd $ac_aux_dir && pwd`
864 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
865 echo "configure:866: checking for working aclocal" >&5
866 # Run test in a subshell; some versions of sh will print an error if
867 # an executable is not found, even if stderr is redirected.
868 # Redirect stdin to placate older versions of autoconf.  Sigh.
869 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
870    ACLOCAL=aclocal
871    echo "$ac_t""found" 1>&6
872 else
873    ACLOCAL="$missing_dir/missing aclocal"
874    echo "$ac_t""missing" 1>&6
875 fi
876
877 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
878 echo "configure:879: checking for working autoconf" >&5
879 # Run test in a subshell; some versions of sh will print an error if
880 # an executable is not found, even if stderr is redirected.
881 # Redirect stdin to placate older versions of autoconf.  Sigh.
882 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
883    AUTOCONF=autoconf
884    echo "$ac_t""found" 1>&6
885 else
886    AUTOCONF="$missing_dir/missing autoconf"
887    echo "$ac_t""missing" 1>&6
888 fi
889
890 echo $ac_n "checking for working automake""... $ac_c" 1>&6
891 echo "configure:892: checking for working automake" >&5
892 # Run test in a subshell; some versions of sh will print an error if
893 # an executable is not found, even if stderr is redirected.
894 # Redirect stdin to placate older versions of autoconf.  Sigh.
895 if (automake --version) < /dev/null > /dev/null 2>&1; then
896    AUTOMAKE=automake
897    echo "$ac_t""found" 1>&6
898 else
899    AUTOMAKE="$missing_dir/missing automake"
900    echo "$ac_t""missing" 1>&6
901 fi
902
903 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
904 echo "configure:905: checking for working autoheader" >&5
905 # Run test in a subshell; some versions of sh will print an error if
906 # an executable is not found, even if stderr is redirected.
907 # Redirect stdin to placate older versions of autoconf.  Sigh.
908 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
909    AUTOHEADER=autoheader
910    echo "$ac_t""found" 1>&6
911 else
912    AUTOHEADER="$missing_dir/missing autoheader"
913    echo "$ac_t""missing" 1>&6
914 fi
915
916 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
917 echo "configure:918: checking for working makeinfo" >&5
918 # Run test in a subshell; some versions of sh will print an error if
919 # an executable is not found, even if stderr is redirected.
920 # Redirect stdin to placate older versions of autoconf.  Sigh.
921 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
922    MAKEINFO=makeinfo
923    echo "$ac_t""found" 1>&6
924 else
925    MAKEINFO="$missing_dir/missing makeinfo"
926    echo "$ac_t""missing" 1>&6
927 fi
928
929
930
931
932
933
934 # Runs configure.host and configure.target, as well as finds CC, CXX
935 # and assorted other critical bits. Have to run this before the
936 # GLIBCPP_ENABLE_* macros below.
937 if test $host != $build; then
938   ac_tool_prefix=${host_alias}-
939 else
940   ac_tool_prefix=
941 fi
942
943 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
944 echo "configure:945: checking for Cygwin environment" >&5
945 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
946   echo $ac_n "(cached) $ac_c" 1>&6
947 else
948   cat > conftest.$ac_ext <<EOF
949 #line 950 "configure"
950 #include "confdefs.h"
951
952 int main() {
953
954 #ifndef __CYGWIN__
955 #define __CYGWIN__ __CYGWIN32__
956 #endif
957 return __CYGWIN__;
958 ; return 0; }
959 EOF
960 if { (eval echo configure:961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
961   rm -rf conftest*
962   ac_cv_cygwin=yes
963 else
964   echo "configure: failed program was:" >&5
965   cat conftest.$ac_ext >&5
966   rm -rf conftest*
967   ac_cv_cygwin=no
968 fi
969 rm -f conftest*
970 rm -f conftest*
971 fi
972
973 echo "$ac_t""$ac_cv_cygwin" 1>&6
974 CYGWIN=
975 test "$ac_cv_cygwin" = yes && CYGWIN=yes
976 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
977 echo "configure:978: checking for mingw32 environment" >&5
978 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
979   echo $ac_n "(cached) $ac_c" 1>&6
980 else
981   cat > conftest.$ac_ext <<EOF
982 #line 983 "configure"
983 #include "confdefs.h"
984
985 int main() {
986 return __MINGW32__;
987 ; return 0; }
988 EOF
989 if { (eval echo configure:990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
990   rm -rf conftest*
991   ac_cv_mingw32=yes
992 else
993   echo "configure: failed program was:" >&5
994   cat conftest.$ac_ext >&5
995   rm -rf conftest*
996   ac_cv_mingw32=no
997 fi
998 rm -f conftest*
999 rm -f conftest*
1000 fi
1001
1002 echo "$ac_t""$ac_cv_mingw32" 1>&6
1003 MINGW32=
1004 test "$ac_cv_mingw32" = yes && MINGW32=yes
1005
1006     # Check whether --enable-multilib or --disable-multilib was given.
1007 if test "${enable_multilib+set}" = set; then
1008   enableval="$enable_multilib"
1009   case "${enableval}" in
1010     yes) multilib=yes ;;
1011     no)  multilib=no ;;
1012     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1013    esac
1014 else
1015   multilib=yes
1016 fi
1017
1018 # When building with srcdir == objdir, links to the source files will
1019 # be created in directories within the target_subdir.  We have to
1020 # adjust toplevel_srcdir accordingly, so that configure finds
1021 # install-sh and other auxiliary files that live in the top-level
1022 # source directory.
1023 if test "${srcdir}" = "."; then
1024   if test -z "${with_target_subdir}"; then
1025     toprel=".."
1026   else
1027     if test "${with_target_subdir}" != "."; then
1028       toprel="${with_multisrctop}../.."
1029     else
1030       toprel="${with_multisrctop}.."
1031     fi
1032   fi
1033 else
1034   toprel=".."
1035 fi
1036 ac_aux_dir=
1037 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1038   if test -f $ac_dir/install-sh; then
1039     ac_aux_dir=$ac_dir
1040     ac_install_sh="$ac_aux_dir/install-sh -c"
1041     break
1042   elif test -f $ac_dir/install.sh; then
1043     ac_aux_dir=$ac_dir
1044     ac_install_sh="$ac_aux_dir/install.sh -c"
1045     break
1046   fi
1047 done
1048 if test -z "$ac_aux_dir"; then
1049   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
1050 fi
1051 ac_config_guess=$ac_aux_dir/config.guess
1052 ac_config_sub=$ac_aux_dir/config.sub
1053 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1054
1055 toplevel_srcdir=\${top_srcdir}/$toprel
1056
1057
1058 # Export build and source directories.
1059 # These need to be absolute paths, yet at the same time need to
1060 # canonicalize only relative paths, because then amd will not unmount
1061 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1062 glibcpp_builddir=`pwd`
1063 case $srcdir in
1064 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1065 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1066 esac
1067
1068
1069
1070
1071
1072 # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.50+, can also
1073 # be 'cp -p' if linking isn't available.
1074 #ac_cv_prog_LN_S='cp -p'
1075 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1076 echo "configure:1077: checking whether ln -s works" >&5
1077 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1078   echo $ac_n "(cached) $ac_c" 1>&6
1079 else
1080   rm -f conftestdata
1081 if ln -s X conftestdata 2>/dev/null
1082 then
1083   rm -f conftestdata
1084   ac_cv_prog_LN_S="ln -s"
1085 else
1086   ac_cv_prog_LN_S=ln
1087 fi
1088 fi
1089 LN_S="$ac_cv_prog_LN_S"
1090 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1091   echo "$ac_t""yes" 1>&6
1092 else
1093   echo "$ac_t""no" 1>&6
1094 fi
1095
1096
1097 # We use these options to decide which functions to include.
1098 # Check whether --with-target-subdir or --without-target-subdir was given.
1099 if test "${with_target_subdir+set}" = set; then
1100   withval="$with_target_subdir"
1101   :
1102 fi
1103
1104 # Check whether --with-cross-host or --without-cross-host was given.
1105 if test "${with_cross_host+set}" = set; then
1106   withval="$with_cross_host"
1107   :
1108 fi
1109
1110
1111   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
1112   
1113
1114   # Never versions of autoconf add an underscore to these functions.
1115   # Prevent future problems ...
1116   
1117   
1118   
1119   
1120
1121 #  AC_PROG_CC
1122
1123 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1124 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1125 # are probably using a cross compiler, which will not be able to fully
1126 # link an executable.  This should really be fixed in autoconf
1127 # itself.
1128
1129
1130
1131
1132 # Extract the first word of "gcc", so it can be a program name with args.
1133 set dummy gcc; ac_word=$2
1134 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1135 echo "configure:1136: checking for $ac_word" >&5
1136 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1137   echo $ac_n "(cached) $ac_c" 1>&6
1138 else
1139   if test -n "$CC"; then
1140   ac_cv_prog_CC="$CC" # Let the user override the test.
1141 else
1142   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1143   ac_dummy="$PATH"
1144   for ac_dir in $ac_dummy; do
1145     test -z "$ac_dir" && ac_dir=.
1146     if test -f $ac_dir/$ac_word; then
1147       ac_cv_prog_CC="gcc"
1148       break
1149     fi
1150   done
1151   IFS="$ac_save_ifs"
1152 fi
1153 fi
1154 CC="$ac_cv_prog_CC"
1155 if test -n "$CC"; then
1156   echo "$ac_t""$CC" 1>&6
1157 else
1158   echo "$ac_t""no" 1>&6
1159 fi
1160
1161 if test -z "$CC"; then
1162   # Extract the first word of "cc", so it can be a program name with args.
1163 set dummy cc; ac_word=$2
1164 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1165 echo "configure:1166: checking for $ac_word" >&5
1166 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1167   echo $ac_n "(cached) $ac_c" 1>&6
1168 else
1169   if test -n "$CC"; then
1170   ac_cv_prog_CC="$CC" # Let the user override the test.
1171 else
1172   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1173   ac_prog_rejected=no
1174   ac_dummy="$PATH"
1175   for ac_dir in $ac_dummy; do
1176     test -z "$ac_dir" && ac_dir=.
1177     if test -f $ac_dir/$ac_word; then
1178       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1179         ac_prog_rejected=yes
1180         continue
1181       fi
1182       ac_cv_prog_CC="cc"
1183       break
1184     fi
1185   done
1186   IFS="$ac_save_ifs"
1187 if test $ac_prog_rejected = yes; then
1188   # We found a bogon in the path, so make sure we never use it.
1189   set dummy $ac_cv_prog_CC
1190   shift
1191   if test $# -gt 0; then
1192     # We chose a different compiler from the bogus one.
1193     # However, it has the same basename, so the bogon will be chosen
1194     # first if we set CC to just the basename; use the full file name.
1195     shift
1196     set dummy "$ac_dir/$ac_word" "$@"
1197     shift
1198     ac_cv_prog_CC="$@"
1199   fi
1200 fi
1201 fi
1202 fi
1203 CC="$ac_cv_prog_CC"
1204 if test -n "$CC"; then
1205   echo "$ac_t""$CC" 1>&6
1206 else
1207   echo "$ac_t""no" 1>&6
1208 fi
1209
1210   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1211 fi
1212
1213 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1214 echo "configure:1215: checking whether we are using GNU C" >&5
1215 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1216   echo $ac_n "(cached) $ac_c" 1>&6
1217 else
1218   cat > conftest.c <<EOF
1219 #ifdef __GNUC__
1220   yes;
1221 #endif
1222 EOF
1223 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1224   ac_cv_prog_gcc=yes
1225 else
1226   ac_cv_prog_gcc=no
1227 fi
1228 fi
1229
1230 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1231
1232 if test $ac_cv_prog_gcc = yes; then
1233   GCC=yes
1234   ac_test_CFLAGS="${CFLAGS+set}"
1235   ac_save_CFLAGS="$CFLAGS"
1236   CFLAGS=
1237   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1238 echo "configure:1239: checking whether ${CC-cc} accepts -g" >&5
1239 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1240   echo $ac_n "(cached) $ac_c" 1>&6
1241 else
1242   echo 'void f(){}' > conftest.c
1243 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1244   ac_cv_prog_cc_g=yes
1245 else
1246   ac_cv_prog_cc_g=no
1247 fi
1248 rm -f conftest*
1249
1250 fi
1251
1252 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1253   if test "$ac_test_CFLAGS" = set; then
1254     CFLAGS="$ac_save_CFLAGS"
1255   elif test $ac_cv_prog_cc_g = yes; then
1256     CFLAGS="-g -O2"
1257   else
1258     CFLAGS="-O2"
1259   fi
1260 else
1261   GCC=
1262   test "${CFLAGS+set}" = set || CFLAGS="-g"
1263 fi
1264
1265
1266 # Can't just call these here as g++ requires libstc++ to be built....
1267 #  AC_PROG_CXX
1268
1269 # Likewise for AC_PROG_CXX.
1270
1271
1272
1273 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1274 # flags that come in CXX while configuring libstdc++.  They're different
1275 # from those used for all other target libraries.  If CXX is set in
1276 # the environment, respect that here.
1277 glibcpp_CXX=$CXX
1278 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1279 do
1280 # Extract the first word of "$ac_prog", so it can be a program name with args.
1281 set dummy $ac_prog; ac_word=$2
1282 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1283 echo "configure:1284: checking for $ac_word" >&5
1284 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1285   echo $ac_n "(cached) $ac_c" 1>&6
1286 else
1287   if test -n "$glibcpp_CXX"; then
1288   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1289 else
1290   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1291   ac_dummy="$PATH"
1292   for ac_dir in $ac_dummy; do
1293     test -z "$ac_dir" && ac_dir=.
1294     if test -f $ac_dir/$ac_word; then
1295       ac_cv_prog_glibcpp_CXX="$ac_prog"
1296       break
1297     fi
1298   done
1299   IFS="$ac_save_ifs"
1300 fi
1301 fi
1302 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1303 if test -n "$glibcpp_CXX"; then
1304   echo "$ac_t""$glibcpp_CXX" 1>&6
1305 else
1306   echo "$ac_t""no" 1>&6
1307 fi
1308
1309 test -n "$glibcpp_CXX" && break
1310 done
1311 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1312
1313
1314 CXX=$glibcpp_CXX
1315 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1316
1317 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1318 echo "configure:1319: checking whether we are using GNU C++" >&5
1319 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1320   echo $ac_n "(cached) $ac_c" 1>&6
1321 else
1322   cat > conftest.C <<EOF
1323 #ifdef __GNUC__
1324   yes;
1325 #endif
1326 EOF
1327 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1328   ac_cv_prog_gxx=yes
1329 else
1330   ac_cv_prog_gxx=no
1331 fi
1332 fi
1333
1334 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1335
1336 if test $ac_cv_prog_gxx = yes; then
1337   GXX=yes
1338   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1339   ac_save_CXXFLAGS="$CXXFLAGS"
1340   CXXFLAGS=
1341   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1342 echo "configure:1343: checking whether ${CXX-g++} accepts -g" >&5
1343 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1344   echo $ac_n "(cached) $ac_c" 1>&6
1345 else
1346   echo 'void f(){}' > conftest.cc
1347 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1348   ac_cv_prog_cxx_g=yes
1349 else
1350   ac_cv_prog_cxx_g=no
1351 fi
1352 rm -f conftest*
1353
1354 fi
1355
1356 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1357   if test "$ac_test_CXXFLAGS" = set; then
1358     CXXFLAGS="$ac_save_CXXFLAGS"
1359   elif test $ac_cv_prog_cxx_g = yes; then
1360     CXXFLAGS="-g -O2"
1361   else
1362     CXXFLAGS="-O2"
1363   fi
1364 else
1365   GXX=
1366   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1367 fi
1368
1369
1370    # For some reason, gettext needs this.
1371    
1372         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1373 echo "configure:1374: checking for strerror in -lcposix" >&5
1374 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1375 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1376   echo $ac_n "(cached) $ac_c" 1>&6
1377 else
1378   ac_save_LIBS="$LIBS"
1379 LIBS="-lcposix  $LIBS"
1380 cat > conftest.$ac_ext <<EOF
1381 #line 1382 "configure"
1382 #include "confdefs.h"
1383 /* Override any gcc2 internal prototype to avoid an error.  */
1384 /* We use char because int might match the return type of a gcc2
1385     builtin and then its argument prototype would still apply.  */
1386 char strerror();
1387
1388 int main() {
1389 strerror()
1390 ; return 0; }
1391 EOF
1392 if { (eval echo configure:1393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1393   rm -rf conftest*
1394   eval "ac_cv_lib_$ac_lib_var=yes"
1395 else
1396   echo "configure: failed program was:" >&5
1397   cat conftest.$ac_ext >&5
1398   rm -rf conftest*
1399   eval "ac_cv_lib_$ac_lib_var=no"
1400 fi
1401 rm -f conftest*
1402 LIBS="$ac_save_LIBS"
1403
1404 fi
1405 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1406   echo "$ac_t""yes" 1>&6
1407   LIBS="$LIBS -lcposix"
1408 else
1409   echo "$ac_t""no" 1>&6
1410 fi
1411
1412   
1413
1414
1415   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1416 set dummy ${ac_tool_prefix}as; ac_word=$2
1417 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1418 echo "configure:1419: checking for $ac_word" >&5
1419 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1420   echo $ac_n "(cached) $ac_c" 1>&6
1421 else
1422   if test -n "$AS"; then
1423   ac_cv_prog_AS="$AS" # Let the user override the test.
1424 else
1425   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1426   ac_dummy="$PATH"
1427   for ac_dir in $ac_dummy; do
1428     test -z "$ac_dir" && ac_dir=.
1429     if test -f $ac_dir/$ac_word; then
1430       ac_cv_prog_AS="${ac_tool_prefix}as"
1431       break
1432     fi
1433   done
1434   IFS="$ac_save_ifs"
1435   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1436 fi
1437 fi
1438 AS="$ac_cv_prog_AS"
1439 if test -n "$AS"; then
1440   echo "$ac_t""$AS" 1>&6
1441 else
1442   echo "$ac_t""no" 1>&6
1443 fi
1444
1445
1446
1447   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1448 set dummy ${ac_tool_prefix}ar; ac_word=$2
1449 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1450 echo "configure:1451: checking for $ac_word" >&5
1451 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1452   echo $ac_n "(cached) $ac_c" 1>&6
1453 else
1454   if test -n "$AR"; then
1455   ac_cv_prog_AR="$AR" # Let the user override the test.
1456 else
1457   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1458   ac_dummy="$PATH"
1459   for ac_dir in $ac_dummy; do
1460     test -z "$ac_dir" && ac_dir=.
1461     if test -f $ac_dir/$ac_word; then
1462       ac_cv_prog_AR="${ac_tool_prefix}ar"
1463       break
1464     fi
1465   done
1466   IFS="$ac_save_ifs"
1467   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1468 fi
1469 fi
1470 AR="$ac_cv_prog_AR"
1471 if test -n "$AR"; then
1472   echo "$ac_t""$AR" 1>&6
1473 else
1474   echo "$ac_t""no" 1>&6
1475 fi
1476
1477
1478
1479   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1480 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1481 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1482 echo "configure:1483: checking for $ac_word" >&5
1483 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1484   echo $ac_n "(cached) $ac_c" 1>&6
1485 else
1486   if test -n "$RANLIB"; then
1487   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1488 else
1489   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1490   ac_dummy="$PATH"
1491   for ac_dir in $ac_dummy; do
1492     test -z "$ac_dir" && ac_dir=.
1493     if test -f $ac_dir/$ac_word; then
1494       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1495       break
1496     fi
1497   done
1498   IFS="$ac_save_ifs"
1499 fi
1500 fi
1501 RANLIB="$ac_cv_prog_RANLIB"
1502 if test -n "$RANLIB"; then
1503   echo "$ac_t""$RANLIB" 1>&6
1504 else
1505   echo "$ac_t""no" 1>&6
1506 fi
1507
1508
1509 if test -z "$ac_cv_prog_RANLIB"; then
1510 if test -n "$ac_tool_prefix"; then
1511   # Extract the first word of "ranlib", so it can be a program name with args.
1512 set dummy ranlib; ac_word=$2
1513 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1514 echo "configure:1515: checking for $ac_word" >&5
1515 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1516   echo $ac_n "(cached) $ac_c" 1>&6
1517 else
1518   if test -n "$RANLIB"; then
1519   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1520 else
1521   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1522   ac_dummy="$PATH"
1523   for ac_dir in $ac_dummy; do
1524     test -z "$ac_dir" && ac_dir=.
1525     if test -f $ac_dir/$ac_word; then
1526       ac_cv_prog_RANLIB="ranlib"
1527       break
1528     fi
1529   done
1530   IFS="$ac_save_ifs"
1531   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1532 fi
1533 fi
1534 RANLIB="$ac_cv_prog_RANLIB"
1535 if test -n "$RANLIB"; then
1536   echo "$ac_t""$RANLIB" 1>&6
1537 else
1538   echo "$ac_t""no" 1>&6
1539 fi
1540
1541 else
1542   RANLIB="ranlib-not-found-in-path-error"
1543 fi
1544 fi
1545
1546   # Find a good install program.  We prefer a C program (faster),
1547 # so one script is as good as another.  But avoid the broken or
1548 # incompatible versions:
1549 # SysV /etc/install, /usr/sbin/install
1550 # SunOS /usr/etc/install
1551 # IRIX /sbin/install
1552 # AIX /bin/install
1553 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1554 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1555 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1556 # ./install, which can be erroneously created by make from ./install.sh.
1557 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1558 echo "configure:1559: checking for a BSD compatible install" >&5
1559 if test -z "$INSTALL"; then
1560 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1561   echo $ac_n "(cached) $ac_c" 1>&6
1562 else
1563     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1564   for ac_dir in $PATH; do
1565     # Account for people who put trailing slashes in PATH elements.
1566     case "$ac_dir/" in
1567     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1568     *)
1569       # OSF1 and SCO ODT 3.0 have their own names for install.
1570       # Don't use installbsd from OSF since it installs stuff as root
1571       # by default.
1572       for ac_prog in ginstall scoinst install; do
1573         if test -f $ac_dir/$ac_prog; then
1574           if test $ac_prog = install &&
1575             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1576             # AIX install.  It has an incompatible calling convention.
1577             :
1578           else
1579             ac_cv_path_install="$ac_dir/$ac_prog -c"
1580             break 2
1581           fi
1582         fi
1583       done
1584       ;;
1585     esac
1586   done
1587   IFS="$ac_save_IFS"
1588
1589 fi
1590   if test "${ac_cv_path_install+set}" = set; then
1591     INSTALL="$ac_cv_path_install"
1592   else
1593     # As a last resort, use the slow shell script.  We don't cache a
1594     # path for INSTALL within a source directory, because that will
1595     # break other packages using the cache if that directory is
1596     # removed, or if the path is relative.
1597     INSTALL="$ac_install_sh"
1598   fi
1599 fi
1600 echo "$ac_t""$INSTALL" 1>&6
1601
1602 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1603 # It thinks the first close brace ends the variable substitution.
1604 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1605
1606 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1607
1608 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1609
1610
1611   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1612 echo "configure:1613: checking whether to enable maintainer-specific portions of Makefiles" >&5
1613     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1614 if test "${enable_maintainer_mode+set}" = set; then
1615   enableval="$enable_maintainer_mode"
1616   USE_MAINTAINER_MODE=$enableval
1617 else
1618   USE_MAINTAINER_MODE=no
1619 fi
1620
1621   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1622   
1623
1624 if test $USE_MAINTAINER_MODE = yes; then
1625   MAINTAINER_MODE_TRUE=
1626   MAINTAINER_MODE_FALSE='#'
1627 else
1628   MAINTAINER_MODE_TRUE='#'
1629   MAINTAINER_MODE_FALSE=
1630 fi
1631   MAINT=$MAINTAINER_MODE_TRUE
1632   
1633
1634
1635   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1636   # at least currently, we never actually build a program, so we never
1637   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1638   # fails, because we are probably configuring with a cross compiler
1639   # which cant create executables.  So we include AC_EXEEXT to keep
1640   # automake happy, but we dont execute it, since we dont care about
1641   # the result.
1642   if false; then
1643     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1644     # to nothing, so nothing would remain between `then' and `fi' if it
1645     # were not for the `:' below.
1646     :
1647     
1648
1649 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1650 echo "configure:1651: checking for executable suffix" >&5
1651 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1652   echo $ac_n "(cached) $ac_c" 1>&6
1653 else
1654   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1655   ac_cv_exeext=.exe
1656 else
1657   rm -f conftest*
1658   echo 'int main () { return 0; }' > conftest.$ac_ext
1659   ac_cv_exeext=
1660   if { (eval echo configure:1661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1661     for file in conftest.*; do
1662       case $file in
1663       *.c | *.o | *.obj) ;;
1664       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1665       esac
1666     done
1667   else
1668     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1669   fi
1670   rm -f conftest*
1671   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1672 fi
1673 fi
1674
1675 EXEEXT=""
1676 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1677 echo "$ac_t""${ac_cv_exeext}" 1>&6
1678 ac_exeext=$EXEEXT
1679
1680   fi
1681
1682   . ${glibcpp_basedir}/configure.host
1683
1684   case ${glibcpp_basedir} in
1685     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1686     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1687   esac
1688
1689   # This does for the target what configure.host does for the host.  In
1690   # addition to possibly modifying the same flags, it also sets up symlinks.
1691   
1692     . ${glibcpp_basedir}/configure.target
1693     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1694     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1695
1696
1697   # 
1698
1699
1700
1701 # Check whether --enable-shared or --disable-shared was given.
1702 if test "${enable_shared+set}" = set; then
1703   enableval="$enable_shared"
1704   p=${PACKAGE-default}
1705 case $enableval in
1706 yes) enable_shared=yes ;;
1707 no) enable_shared=no ;;
1708 *)
1709   enable_shared=no
1710   # Look at the argument we got.  We use all the common list separators.
1711   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1712   for pkg in $enableval; do
1713     if test "X$pkg" = "X$p"; then
1714       enable_shared=yes
1715     fi
1716   done
1717   IFS="$ac_save_ifs"
1718   ;;
1719 esac
1720 else
1721   enable_shared=yes
1722 fi
1723
1724 # Check whether --enable-static or --disable-static was given.
1725 if test "${enable_static+set}" = set; then
1726   enableval="$enable_static"
1727   p=${PACKAGE-default}
1728 case $enableval in
1729 yes) enable_static=yes ;;
1730 no) enable_static=no ;;
1731 *)
1732   enable_static=no
1733   # Look at the argument we got.  We use all the common list separators.
1734   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1735   for pkg in $enableval; do
1736     if test "X$pkg" = "X$p"; then
1737       enable_static=yes
1738     fi
1739   done
1740   IFS="$ac_save_ifs"
1741   ;;
1742 esac
1743 else
1744   enable_static=yes
1745 fi
1746
1747 # Check whether --enable-fast-install or --disable-fast-install was given.
1748 if test "${enable_fast_install+set}" = set; then
1749   enableval="$enable_fast_install"
1750   p=${PACKAGE-default}
1751 case $enableval in
1752 yes) enable_fast_install=yes ;;
1753 no) enable_fast_install=no ;;
1754 *)
1755   enable_fast_install=no
1756   # Look at the argument we got.  We use all the common list separators.
1757   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1758   for pkg in $enableval; do
1759     if test "X$pkg" = "X$p"; then
1760       enable_fast_install=yes
1761     fi
1762   done
1763   IFS="$ac_save_ifs"
1764   ;;
1765 esac
1766 else
1767   enable_fast_install=yes
1768 fi
1769
1770 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1771 if test "${with_gnu_ld+set}" = set; then
1772   withval="$with_gnu_ld"
1773   test "$withval" = no || with_gnu_ld=yes
1774 else
1775   with_gnu_ld=no
1776 fi
1777
1778 ac_prog=ld
1779 if test "$GCC" = yes; then
1780   # Check if gcc -print-prog-name=ld gives a path.
1781   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1782 echo "configure:1783: checking for ld used by GCC" >&5
1783   case $host in
1784   *-*-mingw*)
1785     # gcc leaves a trailing carriage return which upsets mingw
1786     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1787   *)
1788     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1789   esac
1790   case $ac_prog in
1791     # Accept absolute paths.
1792     [\\/]* | [A-Za-z]:[\\/]*)
1793       re_direlt='/[^/][^/]*/\.\./'
1794       # Canonicalize the path of ld
1795       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1796       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1797         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1798       done
1799       test -z "$LD" && LD="$ac_prog"
1800       ;;
1801   "")
1802     # If it fails, then pretend we aren't using GCC.
1803     ac_prog=ld
1804     ;;
1805   *)
1806     # If it is relative, then search for the first ld in PATH.
1807     with_gnu_ld=unknown
1808     ;;
1809   esac
1810 elif test "$with_gnu_ld" = yes; then
1811   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1812 echo "configure:1813: checking for GNU ld" >&5
1813 else
1814   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1815 echo "configure:1816: checking for non-GNU ld" >&5
1816 fi
1817 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1818   echo $ac_n "(cached) $ac_c" 1>&6
1819 else
1820   if test -z "$LD"; then
1821   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1822   for ac_dir in $PATH; do
1823     test -z "$ac_dir" && ac_dir=.
1824     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1825       lt_cv_path_LD="$ac_dir/$ac_prog"
1826       # Check to see if the program is GNU ld.  I'd rather use --version,
1827       # but apparently some GNU ld's only accept -v.
1828       # Break only if it was the GNU/non-GNU ld that we prefer.
1829       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1830         test "$with_gnu_ld" != no && break
1831       else
1832         test "$with_gnu_ld" != yes && break
1833       fi
1834     fi
1835   done
1836   IFS="$ac_save_ifs"
1837 else
1838   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1839 fi
1840 fi
1841
1842 LD="$lt_cv_path_LD"
1843 if test -n "$LD"; then
1844   echo "$ac_t""$LD" 1>&6
1845 else
1846   echo "$ac_t""no" 1>&6
1847 fi
1848 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1849 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1850 echo "configure:1851: checking if the linker ($LD) is GNU ld" >&5
1851 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1852   echo $ac_n "(cached) $ac_c" 1>&6
1853 else
1854   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1855 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1856   lt_cv_prog_gnu_ld=yes
1857 else
1858   lt_cv_prog_gnu_ld=no
1859 fi
1860 fi
1861
1862 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1863 with_gnu_ld=$lt_cv_prog_gnu_ld
1864
1865
1866 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1867 echo "configure:1868: checking for $LD option to reload object files" >&5
1868 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1869   echo $ac_n "(cached) $ac_c" 1>&6
1870 else
1871   lt_cv_ld_reload_flag='-r'
1872 fi
1873
1874 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1875 reload_flag=$lt_cv_ld_reload_flag
1876 test -n "$reload_flag" && reload_flag=" $reload_flag"
1877
1878 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1879 echo "configure:1880: checking for BSD-compatible nm" >&5
1880 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1881   echo $ac_n "(cached) $ac_c" 1>&6
1882 else
1883   if test -n "$NM"; then
1884   # Let the user override the test.
1885   lt_cv_path_NM="$NM"
1886 else
1887   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1888   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1889     test -z "$ac_dir" && ac_dir=.
1890     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1891     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1892       # Check to see if the nm accepts a BSD-compat flag.
1893       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1894       #   nm: unknown option "B" ignored
1895       # Tru64's nm complains that /dev/null is an invalid object file
1896       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1897         lt_cv_path_NM="$tmp_nm -B"
1898         break
1899       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1900         lt_cv_path_NM="$tmp_nm -p"
1901         break
1902       else
1903         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1904         continue # so that we can try to find one that supports BSD flags
1905       fi
1906     fi
1907   done
1908   IFS="$ac_save_ifs"
1909   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1910 fi
1911 fi
1912
1913 NM="$lt_cv_path_NM"
1914 echo "$ac_t""$NM" 1>&6
1915
1916 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1917 echo "configure:1918: checking how to recognise dependant libraries" >&5
1918 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1919   echo $ac_n "(cached) $ac_c" 1>&6
1920 else
1921   lt_cv_file_magic_cmd='$MAGIC_CMD'
1922 lt_cv_file_magic_test_file=
1923 lt_cv_deplibs_check_method='unknown'
1924 # Need to set the preceding variable on all platforms that support
1925 # interlibrary dependencies.
1926 # 'none' -- dependencies not supported.
1927 # `unknown' -- same as none, but documents that we really don't know.
1928 # 'pass_all' -- all dependencies passed with no checks.
1929 # 'test_compile' -- check by making test program.
1930 # 'file_magic [regex]' -- check by looking for files in library path
1931 # which responds to the $file_magic_cmd with a given egrep regex.
1932 # If you have `file' or equivalent on your system and you're not sure
1933 # whether `pass_all' will *always* work, you probably want this one.
1934
1935 case $host_os in
1936 aix*)
1937   lt_cv_deplibs_check_method=pass_all
1938   ;;
1939
1940 beos*)
1941   lt_cv_deplibs_check_method=pass_all
1942   ;;
1943
1944 bsdi4*)
1945   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1946   lt_cv_file_magic_cmd='/usr/bin/file -L'
1947   lt_cv_file_magic_test_file=/shlib/libc.so
1948   ;;
1949
1950 cygwin* | mingw* |pw32*)
1951   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1952   lt_cv_file_magic_cmd='$OBJDUMP -f'
1953   ;;
1954
1955 darwin* | rhapsody*)
1956   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1957   lt_cv_file_magic_cmd='/usr/bin/file -L'
1958   case "$host_os" in
1959   rhapsody* | darwin1.012)
1960     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1961     ;;
1962   *) # Darwin 1.3 on
1963     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1964     ;;
1965   esac
1966   ;;
1967
1968 freebsd* )
1969   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1970     case $host_cpu in
1971     i*86 )
1972       # Not sure whether the presence of OpenBSD here was a mistake.
1973       # Let's accept both of them until this is cleared up.
1974       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1975       lt_cv_file_magic_cmd=/usr/bin/file
1976       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1977       ;;
1978     esac
1979   else
1980     lt_cv_deplibs_check_method=pass_all
1981   fi
1982   ;;
1983
1984 gnu*)
1985   lt_cv_deplibs_check_method=pass_all
1986   ;;
1987
1988 hpux10.20*|hpux11*)
1989   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1990   lt_cv_file_magic_cmd=/usr/bin/file
1991   lt_cv_file_magic_test_file=/usr/lib/libc.sl
1992   ;;
1993
1994 irix5* | irix6*)
1995   case $host_os in
1996   irix5*)
1997     # this will be overridden with pass_all, but let us keep it just in case
1998     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1999     ;;
2000   *)
2001     case $LD in
2002     *-32|*"-32 ") libmagic=32-bit;;
2003     *-n32|*"-n32 ") libmagic=N32;;
2004     *-64|*"-64 ") libmagic=64-bit;;
2005     *) libmagic=never-match;;
2006     esac
2007     # this will be overridden with pass_all, but let us keep it just in case
2008     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2009     ;;
2010   esac
2011   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2012   lt_cv_deplibs_check_method=pass_all
2013   ;;
2014
2015 # This must be Linux ELF.
2016 linux-gnu*)
2017   case $host_cpu in
2018   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2019     lt_cv_deplibs_check_method=pass_all ;;
2020   *)
2021     # glibc up to 2.1.1 does not perform some relocations on ARM
2022     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2023   esac
2024   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2025   ;;
2026
2027 netbsd*)
2028   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2029     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2030   else
2031     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2032   fi
2033   ;;
2034
2035 newsos6)
2036   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2037   lt_cv_file_magic_cmd=/usr/bin/file
2038   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2039   ;;
2040
2041 osf3* | osf4* | osf5*)
2042   # this will be overridden with pass_all, but let us keep it just in case
2043   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2044   lt_cv_file_magic_test_file=/shlib/libc.so
2045   lt_cv_deplibs_check_method=pass_all
2046   ;;
2047
2048 sco3.2v5*)
2049   lt_cv_deplibs_check_method=pass_all
2050   ;;
2051
2052 solaris*)
2053   lt_cv_deplibs_check_method=pass_all
2054   lt_cv_file_magic_test_file=/lib/libc.so
2055   ;;
2056
2057 sysv5uw[78]* | sysv4*uw2*)
2058   lt_cv_deplibs_check_method=pass_all
2059   ;;
2060
2061 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2062   case $host_vendor in
2063   ncr)
2064     lt_cv_deplibs_check_method=pass_all
2065     ;;
2066   motorola)
2067     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]'
2068     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2069     ;;
2070   esac
2071   ;;
2072 esac
2073
2074 fi
2075
2076 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2077 file_magic_cmd=$lt_cv_file_magic_cmd
2078 deplibs_check_method=$lt_cv_deplibs_check_method
2079
2080 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2081 echo "configure:2082: checking for object suffix" >&5
2082 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2083   echo $ac_n "(cached) $ac_c" 1>&6
2084 else
2085   rm -f conftest*
2086 echo 'int i = 1;' > conftest.$ac_ext
2087 if { (eval echo configure:2088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2088   for ac_file in conftest.*; do
2089     case $ac_file in
2090     *.c) ;;
2091     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2092     esac
2093   done
2094 else
2095   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2096 fi
2097 rm -f conftest*
2098 fi
2099
2100 echo "$ac_t""$ac_cv_objext" 1>&6
2101 OBJEXT=$ac_cv_objext
2102 ac_objext=$ac_cv_objext
2103
2104 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2105
2106 # Only perform the check for file, if the check method requires it
2107 case $deplibs_check_method in
2108 file_magic*)
2109   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2110     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2111 echo "configure:2112: checking for ${ac_tool_prefix}file" >&5
2112 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2113   echo $ac_n "(cached) $ac_c" 1>&6
2114 else
2115   case $MAGIC_CMD in
2116   /*)
2117   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2118   ;;
2119   ?:/*)
2120   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2121   ;;
2122   *)
2123   ac_save_MAGIC_CMD="$MAGIC_CMD"
2124   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2125   ac_dummy="/usr/bin:$PATH"
2126   for ac_dir in $ac_dummy; do
2127     test -z "$ac_dir" && ac_dir=.
2128     if test -f $ac_dir/${ac_tool_prefix}file; then
2129       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2130       if test -n "$file_magic_test_file"; then
2131         case $deplibs_check_method in
2132         "file_magic "*)
2133           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2134           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2135           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2136             egrep "$file_magic_regex" > /dev/null; then
2137             :
2138           else
2139             cat <<EOF 1>&2
2140
2141 *** Warning: the command libtool uses to detect shared libraries,
2142 *** $file_magic_cmd, produces output that libtool cannot recognize.
2143 *** The result is that libtool may fail to recognize shared libraries
2144 *** as such.  This will affect the creation of libtool libraries that
2145 *** depend on shared libraries, but programs linked with such libtool
2146 *** libraries will work regardless of this problem.  Nevertheless, you
2147 *** may want to report the problem to your system manager and/or to
2148 *** bug-libtool@gnu.org
2149
2150 EOF
2151           fi ;;
2152         esac
2153       fi
2154       break
2155     fi
2156   done
2157   IFS="$ac_save_ifs"
2158   MAGIC_CMD="$ac_save_MAGIC_CMD"
2159   ;;
2160 esac
2161 fi
2162
2163 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2164 if test -n "$MAGIC_CMD"; then
2165   echo "$ac_t""$MAGIC_CMD" 1>&6
2166 else
2167   echo "$ac_t""no" 1>&6
2168 fi
2169
2170 if test -z "$lt_cv_path_MAGIC_CMD"; then
2171   if test -n "$ac_tool_prefix"; then
2172     echo $ac_n "checking for file""... $ac_c" 1>&6
2173 echo "configure:2174: checking for file" >&5
2174 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2175   echo $ac_n "(cached) $ac_c" 1>&6
2176 else
2177   case $MAGIC_CMD in
2178   /*)
2179   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2180   ;;
2181   ?:/*)
2182   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2183   ;;
2184   *)
2185   ac_save_MAGIC_CMD="$MAGIC_CMD"
2186   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2187   ac_dummy="/usr/bin:$PATH"
2188   for ac_dir in $ac_dummy; do
2189     test -z "$ac_dir" && ac_dir=.
2190     if test -f $ac_dir/file; then
2191       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2192       if test -n "$file_magic_test_file"; then
2193         case $deplibs_check_method in
2194         "file_magic "*)
2195           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2196           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2197           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2198             egrep "$file_magic_regex" > /dev/null; then
2199             :
2200           else
2201             cat <<EOF 1>&2
2202
2203 *** Warning: the command libtool uses to detect shared libraries,
2204 *** $file_magic_cmd, produces output that libtool cannot recognize.
2205 *** The result is that libtool may fail to recognize shared libraries
2206 *** as such.  This will affect the creation of libtool libraries that
2207 *** depend on shared libraries, but programs linked with such libtool
2208 *** libraries will work regardless of this problem.  Nevertheless, you
2209 *** may want to report the problem to your system manager and/or to
2210 *** bug-libtool@gnu.org
2211
2212 EOF
2213           fi ;;
2214         esac
2215       fi
2216       break
2217     fi
2218   done
2219   IFS="$ac_save_ifs"
2220   MAGIC_CMD="$ac_save_MAGIC_CMD"
2221   ;;
2222 esac
2223 fi
2224
2225 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2226 if test -n "$MAGIC_CMD"; then
2227   echo "$ac_t""$MAGIC_CMD" 1>&6
2228 else
2229   echo "$ac_t""no" 1>&6
2230 fi
2231
2232   else
2233     MAGIC_CMD=:
2234   fi
2235 fi
2236
2237   fi
2238   ;;
2239 esac
2240
2241 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2242 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2243 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2244 echo "configure:2245: checking for $ac_word" >&5
2245 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2246   echo $ac_n "(cached) $ac_c" 1>&6
2247 else
2248   if test -n "$RANLIB"; then
2249   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2250 else
2251   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2252   ac_dummy="$PATH"
2253   for ac_dir in $ac_dummy; do
2254     test -z "$ac_dir" && ac_dir=.
2255     if test -f $ac_dir/$ac_word; then
2256       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2257       break
2258     fi
2259   done
2260   IFS="$ac_save_ifs"
2261 fi
2262 fi
2263 RANLIB="$ac_cv_prog_RANLIB"
2264 if test -n "$RANLIB"; then
2265   echo "$ac_t""$RANLIB" 1>&6
2266 else
2267   echo "$ac_t""no" 1>&6
2268 fi
2269
2270
2271 if test -z "$ac_cv_prog_RANLIB"; then
2272 if test -n "$ac_tool_prefix"; then
2273   # Extract the first word of "ranlib", so it can be a program name with args.
2274 set dummy ranlib; ac_word=$2
2275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2276 echo "configure:2277: checking for $ac_word" >&5
2277 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2278   echo $ac_n "(cached) $ac_c" 1>&6
2279 else
2280   if test -n "$RANLIB"; then
2281   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2282 else
2283   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2284   ac_dummy="$PATH"
2285   for ac_dir in $ac_dummy; do
2286     test -z "$ac_dir" && ac_dir=.
2287     if test -f $ac_dir/$ac_word; then
2288       ac_cv_prog_RANLIB="ranlib"
2289       break
2290     fi
2291   done
2292   IFS="$ac_save_ifs"
2293   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2294 fi
2295 fi
2296 RANLIB="$ac_cv_prog_RANLIB"
2297 if test -n "$RANLIB"; then
2298   echo "$ac_t""$RANLIB" 1>&6
2299 else
2300   echo "$ac_t""no" 1>&6
2301 fi
2302
2303 else
2304   RANLIB=":"
2305 fi
2306 fi
2307
2308 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2309 set dummy ${ac_tool_prefix}strip; ac_word=$2
2310 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2311 echo "configure:2312: checking for $ac_word" >&5
2312 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2313   echo $ac_n "(cached) $ac_c" 1>&6
2314 else
2315   if test -n "$STRIP"; then
2316   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2317 else
2318   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2319   ac_dummy="$PATH"
2320   for ac_dir in $ac_dummy; do
2321     test -z "$ac_dir" && ac_dir=.
2322     if test -f $ac_dir/$ac_word; then
2323       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2324       break
2325     fi
2326   done
2327   IFS="$ac_save_ifs"
2328 fi
2329 fi
2330 STRIP="$ac_cv_prog_STRIP"
2331 if test -n "$STRIP"; then
2332   echo "$ac_t""$STRIP" 1>&6
2333 else
2334   echo "$ac_t""no" 1>&6
2335 fi
2336
2337
2338 if test -z "$ac_cv_prog_STRIP"; then
2339 if test -n "$ac_tool_prefix"; then
2340   # Extract the first word of "strip", so it can be a program name with args.
2341 set dummy strip; ac_word=$2
2342 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2343 echo "configure:2344: checking for $ac_word" >&5
2344 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2345   echo $ac_n "(cached) $ac_c" 1>&6
2346 else
2347   if test -n "$STRIP"; then
2348   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2349 else
2350   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2351   ac_dummy="$PATH"
2352   for ac_dir in $ac_dummy; do
2353     test -z "$ac_dir" && ac_dir=.
2354     if test -f $ac_dir/$ac_word; then
2355       ac_cv_prog_STRIP="strip"
2356       break
2357     fi
2358   done
2359   IFS="$ac_save_ifs"
2360   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2361 fi
2362 fi
2363 STRIP="$ac_cv_prog_STRIP"
2364 if test -n "$STRIP"; then
2365   echo "$ac_t""$STRIP" 1>&6
2366 else
2367   echo "$ac_t""no" 1>&6
2368 fi
2369
2370 else
2371   STRIP=":"
2372 fi
2373 fi
2374
2375
2376 # Check for any special flags to pass to ltconfig.
2377 libtool_flags="--cache-file=$cache_file"
2378 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2379 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2380 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2381 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2382 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2383 libtool_flags="$libtool_flags --enable-dlopen"
2384
2385 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2386 if test "${enable_libtool_lock+set}" = set; then
2387   enableval="$enable_libtool_lock"
2388   :
2389 fi
2390
2391 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2392 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2393
2394 # Check whether --with-pic or --without-pic was given.
2395 if test "${with_pic+set}" = set; then
2396   withval="$with_pic"
2397   pic_mode="$withval"
2398 else
2399   pic_mode=default
2400 fi
2401
2402 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2403 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2404
2405 # Some flags need to be propagated to the compiler or linker for good
2406 # libtool support.
2407 case $host in
2408 *-*-irix6*)
2409   # Find out which ABI we are using.
2410   echo '#line 2411 "configure"' > conftest.$ac_ext
2411   if { (eval echo configure:2412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2412     case `/usr/bin/file conftest.$ac_objext` in
2413     *32-bit*)
2414       LD="${LD-ld} -32"
2415       ;;
2416     *N32*)
2417       LD="${LD-ld} -n32"
2418       ;;
2419     *64-bit*)
2420       LD="${LD-ld} -64"
2421       ;;
2422     esac
2423   fi
2424   rm -rf conftest*
2425   ;;
2426
2427 *-*-sco3.2v5*)
2428   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2429   SAVE_CFLAGS="$CFLAGS"
2430   CFLAGS="$CFLAGS -belf"
2431   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2432 echo "configure:2433: checking whether the C compiler needs -belf" >&5
2433 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2434   echo $ac_n "(cached) $ac_c" 1>&6
2435 else
2436   
2437      ac_ext=c
2438 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2439 ac_cpp='$CPP $CPPFLAGS'
2440 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2441 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2442 cross_compiling=$ac_cv_prog_cc_cross
2443
2444      cat > conftest.$ac_ext <<EOF
2445 #line 2446 "configure"
2446 #include "confdefs.h"
2447
2448 int main() {
2449
2450 ; return 0; }
2451 EOF
2452 if { (eval echo configure:2453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2453   rm -rf conftest*
2454   lt_cv_cc_needs_belf=yes
2455 else
2456   echo "configure: failed program was:" >&5
2457   cat conftest.$ac_ext >&5
2458   rm -rf conftest*
2459   lt_cv_cc_needs_belf=no
2460 fi
2461 rm -f conftest*
2462      ac_ext=c
2463 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2464 ac_cpp='$CPP $CPPFLAGS'
2465 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2466 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2467 cross_compiling=$ac_cv_prog_cc_cross
2468
2469 fi
2470
2471 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2472   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2473     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2474     CFLAGS="$SAVE_CFLAGS"
2475   fi
2476   ;;
2477
2478
2479 esac
2480
2481 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2482 echo "configure:2483: checking how to run the C++ preprocessor" >&5
2483 if test -z "$CXXCPP"; then
2484 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2485   echo $ac_n "(cached) $ac_c" 1>&6
2486 else
2487   ac_ext=C
2488 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2489 ac_cpp='$CXXCPP $CPPFLAGS'
2490 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2491 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2492 cross_compiling=$ac_cv_prog_cxx_cross
2493   CXXCPP="${CXX-g++} -E"
2494   cat > conftest.$ac_ext <<EOF
2495 #line 2496 "configure"
2496 #include "confdefs.h"
2497 #include <stdlib.h>
2498 EOF
2499 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2500 { (eval echo configure:2501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2501 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2502 if test -z "$ac_err"; then
2503   :
2504 else
2505   echo "$ac_err" >&5
2506   echo "configure: failed program was:" >&5
2507   cat conftest.$ac_ext >&5
2508   rm -rf conftest*
2509   CXXCPP=/lib/cpp
2510 fi
2511 rm -f conftest*
2512   ac_cv_prog_CXXCPP="$CXXCPP"
2513 ac_ext=c
2514 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2515 ac_cpp='$CPP $CPPFLAGS'
2516 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2517 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2518 cross_compiling=$ac_cv_prog_cc_cross
2519 fi
2520 fi
2521 CXXCPP="$ac_cv_prog_CXXCPP"
2522 echo "$ac_t""$CXXCPP" 1>&6
2523
2524
2525 # Save cache, so that ltconfig can load it
2526 cat > confcache <<\EOF
2527 # This file is a shell script that caches the results of configure
2528 # tests run on this system so they can be shared between configure
2529 # scripts and configure runs.  It is not useful on other systems.
2530 # If it contains results you don't want to keep, you may remove or edit it.
2531 #
2532 # By default, configure uses ./config.cache as the cache file,
2533 # creating it if it does not exist already.  You can give configure
2534 # the --cache-file=FILE option to use a different cache file; that is
2535 # what configure does when it calls configure scripts in
2536 # subdirectories, so they share the cache.
2537 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2538 # config.status only pays attention to the cache file if you give it the
2539 # --recheck option to rerun configure.
2540 #
2541 EOF
2542 # The following way of writing the cache mishandles newlines in values,
2543 # but we know of no workaround that is simple, portable, and efficient.
2544 # So, don't put newlines in cache variables' values.
2545 # Ultrix sh set writes to stderr and can't be redirected directly,
2546 # and sets the high bit in the cache file unless we assign to the vars.
2547 (set) 2>&1 |
2548   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2549   *ac_space=\ *)
2550     # `set' does not quote correctly, so add quotes (double-quote substitution
2551     # turns \\\\ into \\, and sed turns \\ into \).
2552     sed -n \
2553       -e "s/'/'\\\\''/g" \
2554       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2555     ;;
2556   *)
2557     # `set' quotes correctly as required by POSIX, so do not add quotes.
2558     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2559     ;;
2560   esac >> confcache
2561 if cmp -s $cache_file confcache; then
2562   :
2563 else
2564   if test -w $cache_file; then
2565     echo "updating cache $cache_file"
2566     cat confcache > $cache_file
2567   else
2568     echo "not updating unwritable cache $cache_file"
2569   fi
2570 fi
2571 rm -f confcache
2572
2573
2574 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2575 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2576 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2577 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2578 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2579 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2580 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2581 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2582 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2583 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2584
2585 # Reload cache, that may have been modified by ltconfig
2586 if test -r "$cache_file"; then
2587   echo "loading cache $cache_file"
2588   . $cache_file
2589 else
2590   echo "creating cache $cache_file"
2591   > $cache_file
2592 fi
2593
2594
2595 # This can be used to rebuild libtool when needed
2596 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2597
2598 # Always use our own libtool.
2599 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2600
2601 # Redirect the config.log output again, so that the ltconfig log is not
2602 # clobbered by the next message.
2603 exec 5>>./config.log
2604
2605
2606
2607 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2608 lt_save_CC="$CC"
2609 lt_save_CFLAGS="$CFLAGS"
2610 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2611 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2612 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2613 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2614 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2615 deplibs_check_method="$deplibs_check_method" \
2616 file_magic_cmd="$file_magic_cmd" \
2617 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2618 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2619 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2620 CC="$lt_save_CC"
2621 CFLAGS="$lt_save_CFLAGS"
2622
2623 # Redirect the config.log output again, so that the ltconfig log is not
2624 # clobbered by the next message.
2625 exec 5>>./config.log
2626
2627   
2628
2629   
2630          
2631          
2632
2633
2634
2635 # Check for c++ or library specific bits that don't require linking.
2636 #GLIBCPP_CHECK_COMPILER_VERSION
2637 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2638 echo "configure:2639: checking for GNU make" >&5
2639 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2640   echo $ac_n "(cached) $ac_c" 1>&6
2641 else
2642   _cv_gnu_make_command='' ;
2643           for a in "${MAKE-make}" make gmake gnumake ; do
2644                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2645                   then
2646                           _cv_gnu_make_command=$a ;
2647                           break;
2648                   fi
2649           done ;
2650   
2651 fi
2652
2653 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2654   if test  "x$_cv_gnu_make_command" != "x"  ; then
2655           ifGNUmake='' ;
2656   else
2657           ifGNUmake='#' ;
2658   fi
2659   
2660
2661
2662 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2663 # Check whether --enable-debug or --disable-debug was given.
2664 if test "${enable_debug+set}" = set; then
2665   enableval="$enable_debug"
2666   case "${enableval}" in
2667  yes) enable_debug=yes ;;
2668  no)  enable_debug=no ;;
2669  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2670  esac
2671 else
2672   enable_debug=no
2673 fi
2674
2675 case "${enable_debug}" in
2676     yes) 
2677         DEBUG_FLAGS='-O0 -ggdb3'                        
2678         ;; 
2679     no)   
2680         DEBUG_FLAGS='-g'
2681         ;;
2682 esac
2683
2684
2685 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2686 echo "configure:2687: checking how to run the C preprocessor" >&5
2687 # On Suns, sometimes $CPP names a directory.
2688 if test -n "$CPP" && test -d "$CPP"; then
2689   CPP=
2690 fi
2691 if test -z "$CPP"; then
2692 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2693   echo $ac_n "(cached) $ac_c" 1>&6
2694 else
2695     # This must be in double quotes, not single quotes, because CPP may get
2696   # substituted into the Makefile and "${CC-cc}" will confuse make.
2697   CPP="${CC-cc} -E"
2698   # On the NeXT, cc -E runs the code through the compiler's parser,
2699   # not just through cpp.
2700   cat > conftest.$ac_ext <<EOF
2701 #line 2702 "configure"
2702 #include "confdefs.h"
2703 #include <assert.h>
2704 Syntax Error
2705 EOF
2706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2707 { (eval echo configure:2708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2709 if test -z "$ac_err"; then
2710   :
2711 else
2712   echo "$ac_err" >&5
2713   echo "configure: failed program was:" >&5
2714   cat conftest.$ac_ext >&5
2715   rm -rf conftest*
2716   CPP="${CC-cc} -E -traditional-cpp"
2717   cat > conftest.$ac_ext <<EOF
2718 #line 2719 "configure"
2719 #include "confdefs.h"
2720 #include <assert.h>
2721 Syntax Error
2722 EOF
2723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2724 { (eval echo configure:2725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2725 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2726 if test -z "$ac_err"; then
2727   :
2728 else
2729   echo "$ac_err" >&5
2730   echo "configure: failed program was:" >&5
2731   cat conftest.$ac_ext >&5
2732   rm -rf conftest*
2733   CPP="${CC-cc} -nologo -E"
2734   cat > conftest.$ac_ext <<EOF
2735 #line 2736 "configure"
2736 #include "confdefs.h"
2737 #include <assert.h>
2738 Syntax Error
2739 EOF
2740 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2741 { (eval echo configure:2742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2742 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2743 if test -z "$ac_err"; then
2744   :
2745 else
2746   echo "$ac_err" >&5
2747   echo "configure: failed program was:" >&5
2748   cat conftest.$ac_ext >&5
2749   rm -rf conftest*
2750   CPP=/lib/cpp
2751 fi
2752 rm -f conftest*
2753 fi
2754 rm -f conftest*
2755 fi
2756 rm -f conftest*
2757   ac_cv_prog_CPP="$CPP"
2758 fi
2759   CPP="$ac_cv_prog_CPP"
2760 else
2761   ac_cv_prog_CPP="$CPP"
2762 fi
2763 echo "$ac_t""$CPP" 1>&6
2764
2765
2766   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2767 echo "configure:2768: checking for cstdio to use" >&5
2768   # Check whether --enable-cstdio or --disable-cstdio was given.
2769 if test "${enable_cstdio+set}" = set; then
2770   enableval="$enable_cstdio"
2771   if test x$enable_cstdio = xno; then
2772      enable_cstdio=stdio
2773   fi
2774 else
2775   enable_cstdio=stdio
2776 fi
2777
2778
2779   enable_cstdio_flag=$enable_cstdio
2780
2781     case x${enable_cstdio_flag} in
2782     xlibio)
2783       CSTDIO_H=config/io/c_io_libio.h
2784       BASIC_FILE_H=config/io/basic_file_libio.h
2785       BASIC_FILE_CC=config/io/basic_file_libio.cc
2786       echo "$ac_t""libio" 1>&6
2787
2788       # see if we are on a system with libio native (ie, linux)
2789       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2790 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2791 echo "configure:2792: checking for libio.h" >&5
2792 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2793   echo $ac_n "(cached) $ac_c" 1>&6
2794 else
2795   cat > conftest.$ac_ext <<EOF
2796 #line 2797 "configure"
2797 #include "confdefs.h"
2798 #include <libio.h>
2799 EOF
2800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2801 { (eval echo configure:2802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2803 if test -z "$ac_err"; then
2804   rm -rf conftest*
2805   eval "ac_cv_header_$ac_safe=yes"
2806 else
2807   echo "$ac_err" >&5
2808   echo "configure: failed program was:" >&5
2809   cat conftest.$ac_ext >&5
2810   rm -rf conftest*
2811   eval "ac_cv_header_$ac_safe=no"
2812 fi
2813 rm -f conftest*
2814 fi
2815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2816   echo "$ac_t""yes" 1>&6
2817   has_libio=yes
2818 else
2819   echo "$ac_t""no" 1>&6
2820 has_libio=no
2821 fi
2822
2823
2824       # Need to check and see what version of glibc is being used. If
2825       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2826       # compile most of libio for linux systems.
2827       if test x$has_libio = x"yes"; then
2828         case "$target" in
2829           *-*-linux*)
2830               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2831 echo "configure:2832: checking for glibc version >= 2.2" >&5
2832               cat > conftest.$ac_ext <<EOF
2833 #line 2834 "configure"
2834 #include "confdefs.h"
2835
2836             #include <features.h>
2837               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2838                     ok
2839               #endif
2840               
2841 EOF
2842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2843   egrep "ok" >/dev/null 2>&1; then
2844   rm -rf conftest*
2845   glibc_satisfactory=yes
2846 else
2847   rm -rf conftest*
2848   glibc_satisfactory=no
2849 fi
2850 rm -f conftest*
2851
2852               echo "$ac_t""$glibc_satisfactory" 1>&6
2853             ;;
2854         esac
2855
2856         # XXX at the moment, admit defeat and force the recompilation
2857         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2858         glibc_satisfactory=no        
2859
2860         if test x$glibc_satisfactory = x"yes"; then
2861            need_libio=no
2862            need_wlibio=no        
2863         else
2864            need_libio=yes
2865            # bkoz XXX need to add checks to enable this
2866            # pme XXX here's a first pass at such a check
2867            if test x$enable_c_mbchar != xno; then
2868               need_wlibio=yes
2869            else
2870               need_wlibio=no
2871            fi
2872         fi
2873
2874       else
2875          # Using libio, but <libio.h> doesn't exist on the target system. . .
2876          need_libio=yes
2877          # bkoz XXX need to add checks to enable this
2878          # pme XXX here's a first pass at such a check
2879          if test x$enable_c_mbchar != xno; then
2880              need_wlibio=yes
2881          else
2882              need_wlibio=no
2883          fi
2884       fi
2885       ;;
2886     xstdio | x | xno | xnone | xyes)
2887       # default
2888       CSTDIO_H=config/io/c_io_stdio.h
2889       BASIC_FILE_H=config/io/basic_file_stdio.h
2890       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2891       echo "$ac_t""stdio" 1>&6
2892
2893       # We're not using stdio.
2894       need_libio=no
2895       need_wlibio=no
2896       ;;
2897     *)
2898       echo "$enable_cstdio is an unknown io package" 1>&2
2899       exit 1
2900       ;;
2901   esac
2902   
2903   
2904   
2905
2906   # 2000-08-04 bkoz hack
2907   CCODECVT_C=config/io/c_io_libio_codecvt.c
2908   
2909   # 2000-08-04 bkoz hack
2910
2911   
2912
2913 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2914   GLIBCPP_BUILD_LIBIO_TRUE=
2915   GLIBCPP_BUILD_LIBIO_FALSE='#'
2916 else
2917   GLIBCPP_BUILD_LIBIO_TRUE='#'
2918   GLIBCPP_BUILD_LIBIO_FALSE=
2919 fi
2920   
2921
2922 if test "$need_libio" = yes; then
2923   GLIBCPP_NEED_LIBIO_TRUE=
2924   GLIBCPP_NEED_LIBIO_FALSE='#'
2925 else
2926   GLIBCPP_NEED_LIBIO_TRUE='#'
2927   GLIBCPP_NEED_LIBIO_FALSE=
2928 fi
2929   
2930
2931 if test "$need_wlibio" = yes; then
2932   GLIBCPP_NEED_WLIBIO_TRUE=
2933   GLIBCPP_NEED_WLIBIO_FALSE='#'
2934 else
2935   GLIBCPP_NEED_WLIBIO_TRUE='#'
2936   GLIBCPP_NEED_WLIBIO_FALSE=
2937 fi
2938   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2939     libio_la=../libio/libio.la
2940   else
2941     libio_la=
2942   fi
2943   
2944
2945
2946   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2947 echo "configure:2948: checking for clocale to use" >&5
2948   # Check whether --enable-clocale or --disable-clocale was given.
2949 if test "${enable_clocale+set}" = set; then
2950   enableval="$enable_clocale"
2951   if test x$enable_clocale = xno; then
2952      enable_clocale=generic
2953   fi
2954 else
2955   enable_clocale=generic
2956 fi
2957
2958
2959   enable_clocale_flag=$enable_clocale
2960
2961     case x${enable_clocale_flag} in
2962     xgeneric)
2963       echo "$ac_t""generic" 1>&6
2964
2965       # Don't use gettext.
2966       USE_NLS=no
2967
2968       CLOCALE_H=config/locale/c_locale_generic.h
2969       CLOCALE_CC=config/locale/c_locale_generic.cc
2970       CCODECVT_H=config/locale/codecvt_specializations_generic.h
2971       CCOLLATE_CC=config/locale/collate_members_generic.cc
2972       CMESSAGES_H=config/locale/messages_members_generic.h
2973       CMESSAGES_CC=config/locale/messages_members_generic.cc
2974       CMONEY_CC=config/locale/moneypunct_members_generic.cc
2975       CNUMERIC_CC=config/locale/numpunct_members_generic.cc
2976       CTIME_CC=config/locale/time_members_generic.cc
2977       ;;
2978     xgnu)
2979       echo "$ac_t""gnu" 1>&6
2980
2981       # Declare intention to use gettext, and add support for specific
2982       # languages.
2983       # For some reason, ALL_LINGUAS has to be before AM_GNU_GETTEXT
2984       ALL_LINGUAS="de fr"
2985       # Don't call AM_GNU_GETTEXT here. Instead, assume glibc.
2986       # Need to deal with MSGFMT, USE_NLS, and glibcpp_[P,M]OFILES
2987       USE_NLS=yes
2988
2989       # Export the build objects.
2990       for ling in $ALL_LINGUAS; do \
2991         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
2992         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
2993       done
2994       
2995       
2996
2997       CLOCALE_H=config/locale/c_locale_gnu.h
2998       CLOCALE_CC=config/locale/c_locale_gnu.cc
2999       CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
3000       CCOLLATE_CC=config/locale/collate_members_gnu.cc
3001       CMESSAGES_H=config/locale/messages_members_gnu.h
3002       CMESSAGES_CC=config/locale/messages_members_gnu.cc
3003       CMONEY_CC=config/locale/moneypunct_members_gnu.cc
3004       CNUMERIC_CC=config/locale/numpunct_members_gnu.cc
3005       CTIME_CC=config/locale/time_members_gnu.cc
3006       ;;
3007     xieee_1003.1)
3008       echo "$ac_t""generic" 1>&6
3009
3010       # Don't use gettext.
3011       USE_NLS=no
3012
3013       CLOCALE_H=config/locale/c_locale_ieee_1003.1-200x.h
3014       CLOCALE_CC=config/locale/c_locale_ieee_1003.1-200x.cc
3015       CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
3016       CCOLLATE_CC=config/locale/collate_members_generic.cc
3017       CMESSAGES_H=config/locale/messages_members_ieee_1003.1-200x.h
3018       CMESSAGES_CC=config/locale/messages_members_ieee_1003.1-200x.cc
3019       CMONEY_CC=config/locale/moneypunct_members_generic.cc
3020       CNUMERIC_CC=config/locale/numpunct_members_generic.cc
3021       CTIME_CC=config/locale/time_members_generic.cc
3022       ;;
3023     *)
3024       echo "$enable_clocale is an unknown locale package" 1>&2
3025       exit 1
3026       ;;
3027   esac
3028
3029   # This is where the testsuite looks for locale catalogs, using the
3030   # -DLOCALEDIR define during testsuite compilation.
3031   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3032   
3033
3034   
3035   
3036   
3037   
3038   
3039   
3040   
3041   
3042   
3043   
3044
3045 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3046 if test "${enable_c_mbchar+set}" = set; then
3047   enableval="$enable_c_mbchar"
3048   case "$enableval" in
3049  yes) enable_c_mbchar=yes ;;
3050  no)  enable_c_mbchar=no ;;
3051  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3052  esac
3053 else
3054   enable_c_mbchar=yes
3055 fi
3056
3057   
3058   # Check whether --enable-c99 or --disable-c99 was given.
3059 if test "${enable_c99+set}" = set; then
3060   enableval="$enable_c99"
3061     case "$enableval" in
3062    yes) enable_c99=yes ;;
3063    no)  enable_c99=no ;;
3064    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3065    esac
3066 else
3067   enable_c99=yes
3068 fi
3069  
3070   
3071   ac_ext=C
3072 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3073 ac_cpp='$CXXCPP $CPPFLAGS'
3074 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3075 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3076 cross_compiling=$ac_cv_prog_cxx_cross
3077
3078
3079   # Check for the existence of <math.h> functions used if C99 is enabled.
3080   ac_c99_math=yes;
3081   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3082 echo "configure:3083: checking for ISO C99 support in <math.h>" >&5
3083   cat > conftest.$ac_ext <<EOF
3084 #line 3085 "configure"
3085 #include "confdefs.h"
3086 #include <math.h>
3087 int main() {
3088 fpclassify(0.0);
3089 ; return 0; }
3090 EOF
3091 if { (eval echo configure:3092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3092   :
3093 else
3094   echo "configure: failed program was:" >&5
3095   cat conftest.$ac_ext >&5
3096   rm -rf conftest*
3097   ac_c99_math=no
3098 fi
3099 rm -f conftest*
3100   cat > conftest.$ac_ext <<EOF
3101 #line 3102 "configure"
3102 #include "confdefs.h"
3103 #include <math.h>
3104 int main() {
3105 isfinite(0.0);
3106 ; return 0; }
3107 EOF
3108 if { (eval echo configure:3109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3109   :
3110 else
3111   echo "configure: failed program was:" >&5
3112   cat conftest.$ac_ext >&5
3113   rm -rf conftest*
3114   ac_c99_math=no
3115 fi
3116 rm -f conftest*
3117   cat > conftest.$ac_ext <<EOF
3118 #line 3119 "configure"
3119 #include "confdefs.h"
3120 #include <math.h>
3121 int main() {
3122 isinf(0.0);
3123 ; return 0; }
3124 EOF
3125 if { (eval echo configure:3126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3126   :
3127 else
3128   echo "configure: failed program was:" >&5
3129   cat conftest.$ac_ext >&5
3130   rm -rf conftest*
3131   ac_c99_math=no
3132 fi
3133 rm -f conftest*
3134   cat > conftest.$ac_ext <<EOF
3135 #line 3136 "configure"
3136 #include "confdefs.h"
3137 #include <math.h>
3138 int main() {
3139 isnan(0.0);
3140 ; return 0; }
3141 EOF
3142 if { (eval echo configure:3143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3143   :
3144 else
3145   echo "configure: failed program was:" >&5
3146   cat conftest.$ac_ext >&5
3147   rm -rf conftest*
3148   ac_c99_math=no
3149 fi
3150 rm -f conftest*
3151   cat > conftest.$ac_ext <<EOF
3152 #line 3153 "configure"
3153 #include "confdefs.h"
3154 #include <math.h>
3155 int main() {
3156 isnormal(0.0);
3157 ; return 0; }
3158 EOF
3159 if { (eval echo configure:3160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3160   :
3161 else
3162   echo "configure: failed program was:" >&5
3163   cat conftest.$ac_ext >&5
3164   rm -rf conftest*
3165   ac_c99_math=no
3166 fi
3167 rm -f conftest*
3168   cat > conftest.$ac_ext <<EOF
3169 #line 3170 "configure"
3170 #include "confdefs.h"
3171 #include <math.h>
3172 int main() {
3173 signbit(0.0);
3174 ; return 0; }
3175 EOF
3176 if { (eval echo configure:3177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3177   :
3178 else
3179   echo "configure: failed program was:" >&5
3180   cat conftest.$ac_ext >&5
3181   rm -rf conftest*
3182   ac_c99_math=no
3183 fi
3184 rm -f conftest*
3185   cat > conftest.$ac_ext <<EOF
3186 #line 3187 "configure"
3187 #include "confdefs.h"
3188 #include <math.h>
3189 int main() {
3190 isgreater(0.0,0.0);
3191 ; return 0; }
3192 EOF
3193 if { (eval echo configure:3194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3194   :
3195 else
3196   echo "configure: failed program was:" >&5
3197   cat conftest.$ac_ext >&5
3198   rm -rf conftest*
3199   ac_c99_math=no
3200 fi
3201 rm -f conftest*
3202   cat > conftest.$ac_ext <<EOF
3203 #line 3204 "configure"
3204 #include "confdefs.h"
3205 #include <math.h>
3206 int main() {
3207 isgreaterequal(0.0,0.0);
3208 ; return 0; }
3209 EOF
3210 if { (eval echo configure:3211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3211   :
3212 else
3213   echo "configure: failed program was:" >&5
3214   cat conftest.$ac_ext >&5
3215   rm -rf conftest*
3216   ac_c99_math=no
3217 fi
3218 rm -f conftest*
3219   cat > conftest.$ac_ext <<EOF
3220 #line 3221 "configure"
3221 #include "confdefs.h"
3222 #include <math.h>
3223 int main() {
3224 isless(0.0,0.0);
3225 ; return 0; }
3226 EOF
3227 if { (eval echo configure:3228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3228   :
3229 else
3230   echo "configure: failed program was:" >&5
3231   cat conftest.$ac_ext >&5
3232   rm -rf conftest*
3233   ac_c99_math=no
3234 fi
3235 rm -f conftest*
3236   cat > conftest.$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3239 #include <math.h>
3240 int main() {
3241 islessequal(0.0,0.0);
3242 ; return 0; }
3243 EOF
3244 if { (eval echo configure:3245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3245   :
3246 else
3247   echo "configure: failed program was:" >&5
3248   cat conftest.$ac_ext >&5
3249   rm -rf conftest*
3250   ac_c99_math=no
3251 fi
3252 rm -f conftest*
3253   cat > conftest.$ac_ext <<EOF
3254 #line 3255 "configure"
3255 #include "confdefs.h"
3256 #include <math.h>
3257 int main() {
3258 islessgreater(0.0,0.0);
3259 ; return 0; }
3260 EOF
3261 if { (eval echo configure:3262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3262   :
3263 else
3264   echo "configure: failed program was:" >&5
3265   cat conftest.$ac_ext >&5
3266   rm -rf conftest*
3267   ac_c99_math=no
3268 fi
3269 rm -f conftest*
3270   cat > conftest.$ac_ext <<EOF
3271 #line 3272 "configure"
3272 #include "confdefs.h"
3273 #include <math.h>
3274 int main() {
3275 isunordered(0.0,0.0);
3276 ; return 0; }
3277 EOF
3278 if { (eval echo configure:3279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3279   :
3280 else
3281   echo "configure: failed program was:" >&5
3282   cat conftest.$ac_ext >&5
3283   rm -rf conftest*
3284   ac_c99_math=no
3285 fi
3286 rm -f conftest*
3287   echo "$ac_t""$ac_c99_math" 1>&6
3288
3289   # Check for the existence in <stdio.h> of vscanf, et. al.
3290   ac_c99_stdio=yes;
3291   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3292 echo "configure:3293: checking for ISO C99 support in <stdio.h>" >&5
3293   cat > conftest.$ac_ext <<EOF
3294 #line 3295 "configure"
3295 #include "confdefs.h"
3296 #include <stdio.h>
3297 int main() {
3298 snprintf("12", 0, "%i");
3299 ; return 0; }
3300 EOF
3301 if { (eval echo configure:3302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3302   :
3303 else
3304   echo "configure: failed program was:" >&5
3305   cat conftest.$ac_ext >&5
3306   rm -rf conftest*
3307   ac_c99_stdio=no
3308 fi
3309 rm -f conftest*
3310   cat > conftest.$ac_ext <<EOF
3311 #line 3312 "configure"
3312 #include "confdefs.h"
3313 #include <stdio.h>
3314                   #include <stdarg.h>
3315                   void foo(char* fmt, ...)
3316                   {va_list args; va_start(args, fmt);
3317                   vfscanf(stderr, "%i", args);}
3318 int main() {
3319
3320 ; return 0; }
3321 EOF
3322 if { (eval echo configure:3323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3323   :
3324 else
3325   echo "configure: failed program was:" >&5
3326   cat conftest.$ac_ext >&5
3327   rm -rf conftest*
3328   ac_c99_stdio=no
3329 fi
3330 rm -f conftest*
3331   cat > conftest.$ac_ext <<EOF
3332 #line 3333 "configure"
3333 #include "confdefs.h"
3334 #include <stdio.h>
3335                   #include <stdarg.h>
3336                   void foo(char* fmt, ...)
3337                   {va_list args; va_start(args, fmt);
3338                   vscanf("%i", args);}
3339 int main() {
3340
3341 ; return 0; }
3342 EOF
3343 if { (eval echo configure:3344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3344   :
3345 else
3346   echo "configure: failed program was:" >&5
3347   cat conftest.$ac_ext >&5
3348   rm -rf conftest*
3349   ac_c99_stdio=no
3350 fi
3351 rm -f conftest*
3352   cat > conftest.$ac_ext <<EOF
3353 #line 3354 "configure"
3354 #include "confdefs.h"
3355 #include <stdio.h>
3356                   #include <stdarg.h>
3357                   void foo(char* fmt, ...)
3358                   {va_list args; va_start(args, fmt);
3359                   vsnprintf(fmt, 0, "%i", args);}
3360 int main() {
3361
3362 ; return 0; }
3363 EOF
3364 if { (eval echo configure:3365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3365   :
3366 else
3367   echo "configure: failed program was:" >&5
3368   cat conftest.$ac_ext >&5
3369   rm -rf conftest*
3370   ac_c99_stdio=no
3371 fi
3372 rm -f conftest*
3373   cat > conftest.$ac_ext <<EOF
3374 #line 3375 "configure"
3375 #include "confdefs.h"
3376 #include <stdio.h>
3377                   #include <stdarg.h>
3378                   void foo(char* fmt, ...)
3379                   {va_list args; va_start(args, fmt);
3380                   vsscanf(fmt, "%i", args);}
3381 int main() {
3382
3383 ; return 0; }
3384 EOF
3385 if { (eval echo configure:3386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3386   :
3387 else
3388   echo "configure: failed program was:" >&5
3389   cat conftest.$ac_ext >&5
3390   rm -rf conftest*
3391   ac_c99_stdio=no
3392 fi
3393 rm -f conftest*
3394   echo "$ac_t""$ac_c99_stdio" 1>&6
3395
3396   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3397   ac_c99_stdlib=yes;
3398   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3399 echo "configure:3400: checking for lldiv_t declaration" >&5
3400   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3401   echo $ac_n "(cached) $ac_c" 1>&6
3402 else
3403   
3404   cat > conftest.$ac_ext <<EOF
3405 #line 3406 "configure"
3406 #include "confdefs.h"
3407 #include <stdlib.h>
3408 int main() {
3409  lldiv_t mydivt;
3410 ; return 0; }
3411 EOF
3412 if { (eval echo configure:3413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3413   rm -rf conftest*
3414   ac_c99_lldiv_t=yes
3415 else
3416   echo "configure: failed program was:" >&5
3417   cat conftest.$ac_ext >&5
3418   rm -rf conftest*
3419   ac_c99_lldiv_t=no
3420 fi
3421 rm -f conftest*
3422   
3423 fi
3424
3425   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3426
3427   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3428 echo "configure:3429: checking for ISO C99 support in <stdlib.h>" >&5
3429   cat > conftest.$ac_ext <<EOF
3430 #line 3431 "configure"
3431 #include "confdefs.h"
3432 #include <stdlib.h>
3433 int main() {
3434 char* tmp; strtof("gnu", &tmp);
3435 ; return 0; }
3436 EOF
3437 if { (eval echo configure:3438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3438   :
3439 else
3440   echo "configure: failed program was:" >&5
3441   cat conftest.$ac_ext >&5
3442   rm -rf conftest*
3443   ac_c99_stdlib=no
3444 fi
3445 rm -f conftest*
3446   cat > conftest.$ac_ext <<EOF
3447 #line 3448 "configure"
3448 #include "confdefs.h"
3449 #include <stdlib.h>
3450 int main() {
3451 char* tmp; strtold("gnu", &tmp);
3452 ; return 0; }
3453 EOF
3454 if { (eval echo configure:3455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3455   :
3456 else
3457   echo "configure: failed program was:" >&5
3458   cat conftest.$ac_ext >&5
3459   rm -rf conftest*
3460   ac_c99_stdlib=no
3461 fi
3462 rm -f conftest*
3463   cat > conftest.$ac_ext <<EOF
3464 #line 3465 "configure"
3465 #include "confdefs.h"
3466 #include <stdlib.h>
3467 int main() {
3468 char* tmp; strtoll("gnu", &tmp, 10);
3469 ; return 0; }
3470 EOF
3471 if { (eval echo configure:3472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3472   :
3473 else
3474   echo "configure: failed program was:" >&5
3475   cat conftest.$ac_ext >&5
3476   rm -rf conftest*
3477   ac_c99_stdlib=no
3478 fi
3479 rm -f conftest*
3480   cat > conftest.$ac_ext <<EOF
3481 #line 3482 "configure"
3482 #include "confdefs.h"
3483 #include <stdlib.h>
3484 int main() {
3485 char* tmp; strtoull("gnu", &tmp, 10);
3486 ; return 0; }
3487 EOF
3488 if { (eval echo configure:3489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3489   :
3490 else
3491   echo "configure: failed program was:" >&5
3492   cat conftest.$ac_ext >&5
3493   rm -rf conftest*
3494   ac_c99_stdlib=no
3495 fi
3496 rm -f conftest*
3497   cat > conftest.$ac_ext <<EOF
3498 #line 3499 "configure"
3499 #include "confdefs.h"
3500 #include <stdlib.h>
3501 int main() {
3502 llabs(10);
3503 ; return 0; }
3504 EOF
3505 if { (eval echo configure:3506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3506   :
3507 else
3508   echo "configure: failed program was:" >&5
3509   cat conftest.$ac_ext >&5
3510   rm -rf conftest*
3511   ac_c99_stdlib=no
3512 fi
3513 rm -f conftest*
3514   cat > conftest.$ac_ext <<EOF
3515 #line 3516 "configure"
3516 #include "confdefs.h"
3517 #include <stdlib.h>
3518 int main() {
3519 lldiv(10,1);
3520 ; return 0; }
3521 EOF
3522 if { (eval echo configure:3523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3523   :
3524 else
3525   echo "configure: failed program was:" >&5
3526   cat conftest.$ac_ext >&5
3527   rm -rf conftest*
3528   ac_c99_stdlib=no
3529 fi
3530 rm -f conftest*
3531   cat > conftest.$ac_ext <<EOF
3532 #line 3533 "configure"
3533 #include "confdefs.h"
3534 #include <stdlib.h>
3535 int main() {
3536 atoll("10");
3537 ; return 0; }
3538 EOF
3539 if { (eval echo configure:3540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3540   :
3541 else
3542   echo "configure: failed program was:" >&5
3543   cat conftest.$ac_ext >&5
3544   rm -rf conftest*
3545   ac_c99_stdlib=no
3546 fi
3547 rm -f conftest*
3548   cat > conftest.$ac_ext <<EOF
3549 #line 3550 "configure"
3550 #include "confdefs.h"
3551 #include <stdlib.h>
3552 int main() {
3553 _Exit(0);
3554 ; return 0; }
3555 EOF
3556 if { (eval echo configure:3557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3557   :
3558 else
3559   echo "configure: failed program was:" >&5
3560   cat conftest.$ac_ext >&5
3561   rm -rf conftest*
3562   ac_c99_stdlib=no
3563 fi
3564 rm -f conftest*
3565   if test x"$ac_c99_lldiv_t" = x"no"; then
3566     ac_c99_stdlib=no; 
3567   fi; 
3568   echo "$ac_t""$ac_c99_stdlib" 1>&6
3569
3570   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3571   # XXX the wchar.h checks should be rolled into the general C99 bits.
3572   ac_c99_wchar=yes;
3573   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3574 echo "configure:3575: checking for additional ISO C99 support in <wchar.h>" >&5
3575   cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3578 #include <wchar.h>
3579 int main() {
3580 wcstold(L"10.0", NULL);
3581 ; return 0; }
3582 EOF
3583 if { (eval echo configure:3584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3584   :
3585 else
3586   echo "configure: failed program was:" >&5
3587   cat conftest.$ac_ext >&5
3588   rm -rf conftest*
3589   ac_c99_wchar=no
3590 fi
3591 rm -f conftest*
3592   cat > conftest.$ac_ext <<EOF
3593 #line 3594 "configure"
3594 #include "confdefs.h"
3595 #include <wchar.h>
3596 int main() {
3597 wcstoll(L"10", NULL, 10);
3598 ; return 0; }
3599 EOF
3600 if { (eval echo configure:3601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3601   :
3602 else
3603   echo "configure: failed program was:" >&5
3604   cat conftest.$ac_ext >&5
3605   rm -rf conftest*
3606   ac_c99_wchar=no
3607 fi
3608 rm -f conftest*
3609   cat > conftest.$ac_ext <<EOF
3610 #line 3611 "configure"
3611 #include "confdefs.h"
3612 #include <wchar.h>
3613 int main() {
3614 wcstoull(L"10", NULL, 10);
3615 ; return 0; }
3616 EOF
3617 if { (eval echo configure:3618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3618   :
3619 else
3620   echo "configure: failed program was:" >&5
3621   cat conftest.$ac_ext >&5
3622   rm -rf conftest*
3623   ac_c99_wchar=no
3624 fi
3625 rm -f conftest*
3626   echo "$ac_t""$ac_c99_wchar" 1>&6
3627
3628   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3629 echo "configure:3630: checking for enabled ISO C99 support" >&5
3630   if test x"$ac_c99_math" = x"no" ||
3631      test x"$ac_c99_stdio" = x"no" ||
3632      test x"$ac_c99_stdlib" = x"no" ||
3633      test x"$ac_c99_wchar" = x"no"; then
3634     enable_c99=no; 
3635   fi; 
3636   echo "$ac_t""$enable_c99" 1>&6
3637
3638   # Option parsed, now set things appropriately
3639   if test x"$enable_c99" = x"yes"; then
3640     cat >> confdefs.h <<\EOF
3641 #define _GLIBCPP_USE_C99 1
3642 EOF
3643
3644   fi
3645
3646   ac_ext=c
3647 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3648 ac_cpp='$CPP $CPPFLAGS'
3649 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3650 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3651 cross_compiling=$ac_cv_prog_cc_cross
3652
3653
3654   
3655   # Check whether --enable-long-long or --disable-long-long was given.
3656 if test "${enable_long_long+set}" = set; then
3657   enableval="$enable_long_long"
3658     case "$enableval" in
3659    yes) enable_long_long=yes ;;
3660    no)  enable_long_long=no ;;
3661    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3662    esac
3663 else
3664   enable_long_long=yes
3665 fi
3666
3667   # iostreams require strtoll, strtoull to compile. If the
3668   # GLIBCPP_ENABLE_C99 tests found these, and if C99 support is enabled,
3669   # go ahead and allow long long to be used.
3670   if test x"$enable_c99" = x"no"; then
3671     enable_long_long=no; 
3672   fi
3673
3674   # Option parsed, now set things appropriately
3675   echo $ac_n "checking for enabled long long support""... $ac_c" 1>&6
3676 echo "configure:3677: checking for enabled long long support" >&5
3677   if test x"$enable_long_long" = xyes; then
3678     cat >> confdefs.h <<\EOF
3679 #define _GLIBCPP_USE_LONG_LONG 1
3680 EOF
3681
3682   fi
3683   echo "$ac_t""$enable_long_long" 1>&6
3684
3685 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3686 echo "configure:3687: checking for c header strategy to use" >&5
3687 # Check whether --enable-cheaders or --disable-cheaders was given.
3688 if test "${enable_cheaders+set}" = set; then
3689   enableval="$enable_cheaders"
3690   
3691   case "$enableval" in
3692    c) 
3693         enable_cheaders=c 
3694         ;;
3695    c_std)  
3696         enable_cheaders=c_std 
3697         ;;
3698    c_shadow)  
3699         enable_cheaders=c_shadow 
3700         ;;
3701    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3702         ;;
3703   esac
3704 else
3705   enable_cheaders=c_std
3706 fi
3707
3708   echo "$ac_t""$enable_cheaders" 1>&6
3709
3710     case "$enable_cheaders" in
3711     c_shadow) 
3712         CSHADOW_FLAGS="-fno-builtin"
3713         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3714         cat >> confdefs.h <<\EOF
3715 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3716 EOF
3717
3718         ;;
3719     c_std)   
3720         CSHADOW_FLAGS=""
3721         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3722         ;;
3723     c)   
3724         CSHADOW_FLAGS=""
3725         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3726         ;;
3727   esac
3728
3729   
3730   
3731   
3732
3733 if test "$enable_cheaders" = c_shadow; then
3734   GLIBCPP_USE_CSHADOW_TRUE=
3735   GLIBCPP_USE_CSHADOW_FALSE='#'
3736 else
3737   GLIBCPP_USE_CSHADOW_TRUE='#'
3738   GLIBCPP_USE_CSHADOW_FALSE=
3739 fi
3740
3741
3742   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3743 echo "configure:3744: checking for thread model used by GCC" >&5
3744   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3745   echo "$ac_t""$target_thread_file" 1>&6
3746
3747   if test $target_thread_file != single; then
3748     cat >> confdefs.h <<\EOF
3749 #define HAVE_GTHR_DEFAULT 1
3750 EOF
3751
3752     cat >> confdefs.h <<\EOF
3753 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3754 EOF
3755
3756   fi
3757
3758   glibcpp_thread_h=gthr-$target_thread_file.h
3759   
3760
3761 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3762 if test "${enable_cxx_flags+set}" = set; then
3763   enableval="$enable_cxx_flags"
3764   case "x$enableval" in
3765  xyes)   
3766         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3767  xno|x)  
3768         enable_cxx_flags='' ;;
3769  *)      
3770         enable_cxx_flags="$enableval" ;;
3771  esac
3772 else
3773   enable_cxx_flags='none'
3774 fi
3775
3776
3777 if test "$enable_cxx_flags" = "none"; then 
3778   enable_cxx_flags=''; 
3779 fi
3780
3781 if test -n "$enable_cxx_flags"; then
3782     for f in $enable_cxx_flags; do
3783         case "$f" in
3784             -fhonor-std)  ;;
3785             -*)  ;;
3786             *)   # and we're trying to pass /what/ exactly?
3787                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3788         esac
3789     done
3790 fi
3791 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3792
3793
3794
3795   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3796 echo "configure:3797: checking for exception model to use" >&5
3797   
3798   ac_ext=C
3799 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3800 ac_cpp='$CXXCPP $CPPFLAGS'
3801 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3802 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3803 cross_compiling=$ac_cv_prog_cxx_cross
3804
3805   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3806 if test "${enable_sjlj_exceptions+set}" = set; then
3807   enableval="$enable_sjlj_exceptions"
3808   :
3809 else
3810                        cat > conftest.$ac_ext << EOF
3811 #line 3812 "configure"
3812 struct S { ~S(); };
3813 void bar();
3814 void foo()
3815 {
3816   S s;
3817   bar();
3818 }
3819 EOF
3820    old_CXXFLAGS="$CXXFLAGS"  
3821    CXXFLAGS=-S
3822    if { (eval echo configure:3823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3823      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3824        enable_sjlj_exceptions=yes
3825      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3826        enable_sjlj_exceptions=no
3827      fi
3828    fi
3829    CXXFLAGS="$old_CXXFLAGS"
3830    rm -f conftest*
3831 fi
3832
3833    if test x$enable_sjlj_exceptions = xyes; then
3834      cat >> confdefs.h <<\EOF
3835 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3836 EOF
3837
3838      ac_exception_model_name=sjlj
3839    elif test x$enable_sjlj_exceptions = xno; then
3840      ac_exception_model_name="call frame"
3841    else
3842      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3843    fi
3844    ac_ext=c
3845 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3846 ac_cpp='$CPP $CPPFLAGS'
3847 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3848 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3849 cross_compiling=$ac_cv_prog_cc_cross
3850
3851    echo "$ac_t""$ac_exception_model_name" 1>&6
3852
3853
3854
3855 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
3856
3857   # This lets us hard-code the functionality we know
3858   # we'll have in the cross target environment. "Let" is a
3859   # sugar-coated word placed on an especially dull and tedious hack, actually.
3860   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
3861   # that involve linking can't be used:
3862   # "cannot open sim-crt0.o"
3863   # "cannot open crt0.o"
3864   # etc. All this is because there currently exists no unified,
3865   # consistent way for top level CC information to be passed down
3866   # to target directories: newlib includes, newlib linking info,
3867   # libgloss versus newlib crt0.o, etc. When all of this is done, all
3868   # of this hokey, excessive AC_DEFINE junk for crosses can be removed.
3869
3870   # We are being configured with some form of cross compiler.
3871   GLIBCPP_IS_CROSS_COMPILING=1
3872
3873   # If Canadian cross, then don't pick up tools from the build
3874   # directory.
3875   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
3876     CANADIAN=yes
3877   else
3878     CANADIAN=no
3879   fi
3880
3881   case "$target_alias" in
3882     *-linux*)
3883         # Construct linux crosses by hand, eliminating bits that need ld...
3884         # Check for available headers.
3885         for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3886         machine/endian.h machine/param.h sys/machine.h sys/types.h \
3887         fp.h locale.h float.h inttypes.h
3888 do
3889 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3890 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3891 echo "configure:3892: checking for $ac_hdr" >&5
3892 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3893   echo $ac_n "(cached) $ac_c" 1>&6
3894 else
3895   cat > conftest.$ac_ext <<EOF
3896 #line 3897 "configure"
3897 #include "confdefs.h"
3898 #include <$ac_hdr>
3899 EOF
3900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3901 { (eval echo configure:3902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3903 if test -z "$ac_err"; then
3904   rm -rf conftest*
3905   eval "ac_cv_header_$ac_safe=yes"
3906 else
3907   echo "$ac_err" >&5
3908   echo "configure: failed program was:" >&5
3909   cat conftest.$ac_ext >&5
3910   rm -rf conftest*
3911   eval "ac_cv_header_$ac_safe=no"
3912 fi
3913 rm -f conftest*
3914 fi
3915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3916   echo "$ac_t""yes" 1>&6
3917     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3918   cat >> confdefs.h <<EOF
3919 #define $ac_tr_hdr 1
3920 EOF
3921  
3922 else
3923   echo "$ac_t""no" 1>&6
3924 fi
3925 done
3926
3927
3928         # GLIBCPP_CHECK_COMPILER_FEATURES
3929         SECTION_FLAGS='-ffunction-sections -fdata-sections'
3930         
3931         
3932   # If we're not using GNU ld, then there's no point in even trying these
3933   # tests.  Check for that first.  We should have already tested for gld
3934   # by now (in libtool), but require it now just to be safe...
3935   SECTION_LDFLAGS=''
3936   OPT_LDFLAGS=''
3937   
3938
3939   # Set --gc-sections.
3940   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
3941     # GNU ld it is!  Joy and bunny rabbits!
3942
3943     # All these tests are for C++; save the language and the compiler flags.
3944     # Need to do this so that g++ won't try to link in libstdc++
3945     ac_test_CFLAGS="${CFLAGS+set}"
3946     ac_save_CFLAGS="$CFLAGS"
3947     CFLAGS='-x c++  -Wl,--gc-sections'
3948
3949     # Check for -Wl,--gc-sections
3950     # XXX This test is broken at the moment, as symbols required for
3951     # linking are now in libsupc++ (not built yet.....). In addition, 
3952     # this test has cored on solaris in the past. In addition,
3953     # --gc-sections doesn't really work at the moment (keeps on discarding
3954     # used sections, first .eh_frame and now some of the glibc sections for
3955     # iconv). Bzzzzt. Thanks for playing, maybe next time.
3956     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
3957 echo "configure:3958: checking for ld that supports -Wl,--gc-sections" >&5
3958     if test "$cross_compiling" = yes; then
3959   ac_sectionLDflags=yes
3960 else
3961   cat > conftest.$ac_ext <<EOF
3962 #line 3963 "configure"
3963 #include "confdefs.h"
3964
3965      int main(void) 
3966      {
3967        try { throw 1; }
3968        catch (...) { };
3969        return 0;
3970      }
3971     
3972 EOF
3973 if { (eval echo configure:3974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3974 then
3975   ac_sectionLDflags=yes
3976 else
3977   echo "configure: failed program was:" >&5
3978   cat conftest.$ac_ext >&5
3979   rm -fr conftest*
3980   ac_sectionLFflags=no
3981 fi
3982 rm -fr conftest*
3983 fi
3984
3985     if test "$ac_test_CFLAGS" = set; then
3986       CFLAGS="$ac_save_CFLAGS"
3987     else
3988       # this is the suspicious part
3989       CFLAGS=''
3990     fi
3991     if test "$ac_sectionLDflags" = "yes"; then
3992       SECTION_LDFLAGS='-Wl,--gc-sections'
3993     fi
3994     echo "$ac_t""$ac_sectionLDflags" 1>&6
3995   fi
3996
3997   # Set linker optimization flags.
3998   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
3999      test x"$enable_debug" = x"no"; then
4000     OPT_LDFLAGS='-Wl,-O1'
4001   fi
4002
4003   
4004   
4005
4006         # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4007         # GLIBCPP_CHECK_MATH_SUPPORT
4008         cat >> confdefs.h <<\EOF
4009 #define HAVE_ACOSF 1
4010 EOF
4011
4012         cat >> confdefs.h <<\EOF
4013 #define HAVE_ASINF 1
4014 EOF
4015
4016         cat >> confdefs.h <<\EOF
4017 #define HAVE_ATAN2F 1
4018 EOF
4019
4020         cat >> confdefs.h <<\EOF
4021 #define HAVE_ATANF 1
4022 EOF
4023
4024         cat >> confdefs.h <<\EOF
4025 #define HAVE_CEILF 1
4026 EOF
4027
4028         cat >> confdefs.h <<\EOF
4029 #define HAVE_COPYSIGN 1
4030 EOF
4031
4032         cat >> confdefs.h <<\EOF
4033 #define HAVE_COPYSIGNF 1
4034 EOF
4035
4036         cat >> confdefs.h <<\EOF
4037 #define HAVE_COSF 1
4038 EOF
4039
4040         cat >> confdefs.h <<\EOF
4041 #define HAVE_COSHF 1
4042 EOF
4043
4044         cat >> confdefs.h <<\EOF
4045 #define HAVE_EXPF 1
4046 EOF
4047
4048         cat >> confdefs.h <<\EOF
4049 #define HAVE_FABSF 1
4050 EOF
4051
4052         cat >> confdefs.h <<\EOF
4053 #define HAVE_FINITE 1
4054 EOF
4055
4056         cat >> confdefs.h <<\EOF
4057 #define HAVE_FINITEF 1
4058 EOF
4059
4060         cat >> confdefs.h <<\EOF
4061 #define HAVE_FLOORF 1
4062 EOF
4063
4064         cat >> confdefs.h <<\EOF
4065 #define HAVE_FMODF 1
4066 EOF
4067
4068         cat >> confdefs.h <<\EOF
4069 #define HAVE_FREXPF 1
4070 EOF
4071
4072         cat >> confdefs.h <<\EOF
4073 #define HAVE_HYPOTF 1
4074 EOF
4075
4076         cat >> confdefs.h <<\EOF
4077 #define HAVE_ISINF 1
4078 EOF
4079
4080         cat >> confdefs.h <<\EOF
4081 #define HAVE_ISINFF 1
4082 EOF
4083
4084         cat >> confdefs.h <<\EOF
4085 #define HAVE_ISNAN 1
4086 EOF
4087
4088         cat >> confdefs.h <<\EOF
4089 #define HAVE_ISNANF 1
4090 EOF
4091
4092         cat >> confdefs.h <<\EOF
4093 #define HAVE_LDEXPF 1
4094 EOF
4095
4096         cat >> confdefs.h <<\EOF
4097 #define HAVE_LOG10F 1
4098 EOF
4099
4100         cat >> confdefs.h <<\EOF
4101 #define HAVE_LOGF 1
4102 EOF
4103
4104         cat >> confdefs.h <<\EOF
4105 #define HAVE_MODFF 1
4106 EOF
4107
4108         cat >> confdefs.h <<\EOF
4109 #define HAVE_POWF 1
4110 EOF
4111
4112         cat >> confdefs.h <<\EOF
4113 #define HAVE_SINCOS 1
4114 EOF
4115
4116         cat >> confdefs.h <<\EOF
4117 #define HAVE_SINCOSF 1
4118 EOF
4119
4120         cat >> confdefs.h <<\EOF
4121 #define HAVE_SINF 1
4122 EOF
4123
4124         cat >> confdefs.h <<\EOF
4125 #define HAVE_SINHF 1
4126 EOF
4127
4128         cat >> confdefs.h <<\EOF
4129 #define HAVE_SQRTF 1
4130 EOF
4131
4132         cat >> confdefs.h <<\EOF
4133 #define HAVE_TANF 1
4134 EOF
4135
4136         cat >> confdefs.h <<\EOF
4137 #define HAVE_TANHF 1
4138 EOF
4139
4140
4141         # At some point, we should differentiate between architectures
4142         # like x86, which have long double versions, and alpha/powerpc/etc.,
4143         # which don't. For the time being, punt.
4144         if test x"long_double_math_on_this_cpu" = x"yes"; then
4145           cat >> confdefs.h <<\EOF
4146 #define HAVE_ACOSL 1
4147 EOF
4148
4149           cat >> confdefs.h <<\EOF
4150 #define HAVE_ASINL 1
4151 EOF
4152
4153           cat >> confdefs.h <<\EOF
4154 #define HAVE_ATAN2L 1
4155 EOF
4156
4157           cat >> confdefs.h <<\EOF
4158 #define HAVE_ATANL 1
4159 EOF
4160
4161           cat >> confdefs.h <<\EOF
4162 #define HAVE_CEILL 1
4163 EOF
4164
4165           cat >> confdefs.h <<\EOF
4166 #define HAVE_COPYSIGNL 1
4167 EOF
4168
4169           cat >> confdefs.h <<\EOF
4170 #define HAVE_COSL 1
4171 EOF
4172
4173           cat >> confdefs.h <<\EOF
4174 #define HAVE_COSHL 1
4175 EOF
4176
4177           cat >> confdefs.h <<\EOF
4178 #define HAVE_EXPL 1
4179 EOF
4180
4181           cat >> confdefs.h <<\EOF
4182 #define HAVE_FABSL 1
4183 EOF
4184
4185           cat >> confdefs.h <<\EOF
4186 #define HAVE_FINITEL 1
4187 EOF
4188
4189           cat >> confdefs.h <<\EOF
4190 #define HAVE_FLOORL 1
4191 EOF
4192
4193           cat >> confdefs.h <<\EOF
4194 #define HAVE_FMODL 1
4195 EOF
4196
4197           cat >> confdefs.h <<\EOF
4198 #define HAVE_FREXPL 1
4199 EOF
4200
4201           cat >> confdefs.h <<\EOF
4202 #define HAVE_HYPOTL 1
4203 EOF
4204
4205           cat >> confdefs.h <<\EOF
4206 #define HAVE_ISINFL 1
4207 EOF
4208
4209           cat >> confdefs.h <<\EOF
4210 #define HAVE_ISNANL 1
4211 EOF
4212
4213           cat >> confdefs.h <<\EOF
4214 #define HAVE_LDEXPL 1
4215 EOF
4216
4217           cat >> confdefs.h <<\EOF
4218 #define HAVE_LOG10L 1
4219 EOF
4220
4221           cat >> confdefs.h <<\EOF
4222 #define HAVE_LOGL 1
4223 EOF
4224
4225           cat >> confdefs.h <<\EOF
4226 #define HAVE_MODFL 1
4227 EOF
4228
4229           cat >> confdefs.h <<\EOF
4230 #define HAVE_POWL 1
4231 EOF
4232
4233           cat >> confdefs.h <<\EOF
4234 #define HAVE_SINCOSL 1
4235 EOF
4236
4237           cat >> confdefs.h <<\EOF
4238 #define HAVE_SINL 1
4239 EOF
4240
4241           cat >> confdefs.h <<\EOF
4242 #define HAVE_SINHL 1
4243 EOF
4244
4245           cat >> confdefs.h <<\EOF
4246 #define HAVE_SQRTL 1
4247 EOF
4248
4249           cat >> confdefs.h <<\EOF
4250 #define HAVE_TANL 1
4251 EOF
4252
4253           cat >> confdefs.h <<\EOF
4254 #define HAVE_TANHL 1
4255 EOF
4256
4257         fi
4258         
4259     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4260 echo "configure:4261: checking for main in -lm" >&5
4261 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4262 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4263   echo $ac_n "(cached) $ac_c" 1>&6
4264 else
4265   ac_save_LIBS="$LIBS"
4266 LIBS="-lm  $LIBS"
4267 cat > conftest.$ac_ext <<EOF
4268 #line 4269 "configure"
4269 #include "confdefs.h"
4270
4271 int main() {
4272 main()
4273 ; return 0; }
4274 EOF
4275 if { (eval echo configure:4276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4276   rm -rf conftest*
4277   eval "ac_cv_lib_$ac_lib_var=yes"
4278 else
4279   echo "configure: failed program was:" >&5
4280   cat conftest.$ac_ext >&5
4281   rm -rf conftest*
4282   eval "ac_cv_lib_$ac_lib_var=no"
4283 fi
4284 rm -f conftest*
4285 LIBS="$ac_save_LIBS"
4286
4287 fi
4288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4289   echo "$ac_t""yes" 1>&6
4290     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4291     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4292   cat >> confdefs.h <<EOF
4293 #define $ac_tr_lib 1
4294 EOF
4295
4296   LIBS="-lm $LIBS"
4297
4298 else
4299   echo "$ac_t""no" 1>&6
4300 fi
4301
4302   for ac_func in nan copysignf
4303 do
4304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4305 echo "configure:4306: checking for $ac_func" >&5
4306 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4307   echo $ac_n "(cached) $ac_c" 1>&6
4308 else
4309   cat > conftest.$ac_ext <<EOF
4310 #line 4311 "configure"
4311 #include "confdefs.h"
4312 /* System header to define __stub macros and hopefully few prototypes,
4313     which can conflict with char $ac_func(); below.  */
4314 #include <assert.h>
4315 /* Override any gcc2 internal prototype to avoid an error.  */
4316 /* We use char because int might match the return type of a gcc2
4317     builtin and then its argument prototype would still apply.  */
4318 char $ac_func();
4319
4320 int main() {
4321
4322 /* The GNU C library defines this for functions which it implements
4323     to always fail with ENOSYS.  Some functions are actually named
4324     something starting with __ and the normal name is an alias.  */
4325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4326 choke me
4327 #else
4328 $ac_func();
4329 #endif
4330
4331 ; return 0; }
4332 EOF
4333 if { (eval echo configure:4334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4334   rm -rf conftest*
4335   eval "ac_cv_func_$ac_func=yes"
4336 else
4337   echo "configure: failed program was:" >&5
4338   cat conftest.$ac_ext >&5
4339   rm -rf conftest*
4340   eval "ac_cv_func_$ac_func=no"
4341 fi
4342 rm -f conftest*
4343 fi
4344
4345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4346   echo "$ac_t""yes" 1>&6
4347     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4348   cat >> confdefs.h <<EOF
4349 #define $ac_tr_func 1
4350 EOF
4351  
4352 else
4353   echo "$ac_t""no" 1>&6
4354 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4355 fi
4356 done
4357
4358
4359
4360           USE_COMPLEX_LONG_DOUBLE=no
4361   if test x$ac_cv_func_copysignl = x"yes"; then
4362     USE_COMPLEX_LONG_DOUBLE=yes
4363     for ac_func in signbitl
4364 do
4365 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4366 echo "configure:4367: checking for $ac_func" >&5
4367 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4368   echo $ac_n "(cached) $ac_c" 1>&6
4369 else
4370   cat > conftest.$ac_ext <<EOF
4371 #line 4372 "configure"
4372 #include "confdefs.h"
4373 /* System header to define __stub macros and hopefully few prototypes,
4374     which can conflict with char $ac_func(); below.  */
4375 #include <assert.h>
4376 /* Override any gcc2 internal prototype to avoid an error.  */
4377 /* We use char because int might match the return type of a gcc2
4378     builtin and then its argument prototype would still apply.  */
4379 char $ac_func();
4380
4381 int main() {
4382
4383 /* The GNU C library defines this for functions which it implements
4384     to always fail with ENOSYS.  Some functions are actually named
4385     something starting with __ and the normal name is an alias.  */
4386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4387 choke me
4388 #else
4389 $ac_func();
4390 #endif
4391
4392 ; return 0; }
4393 EOF
4394 if { (eval echo configure:4395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4395   rm -rf conftest*
4396   eval "ac_cv_func_$ac_func=yes"
4397 else
4398   echo "configure: failed program was:" >&5
4399   cat conftest.$ac_ext >&5
4400   rm -rf conftest*
4401   eval "ac_cv_func_$ac_func=no"
4402 fi
4403 rm -f conftest*
4404 fi
4405
4406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4407   echo "$ac_t""yes" 1>&6
4408     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4409   cat >> confdefs.h <<EOF
4410 #define $ac_tr_func 1
4411 EOF
4412  
4413 else
4414   echo "$ac_t""no" 1>&6
4415 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4416 fi
4417 done
4418
4419
4420   fi
4421
4422   
4423
4424         
4425
4426       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4427 echo "configure:4428: checking for mbstate_t" >&5
4428   cat > conftest.$ac_ext <<EOF
4429 #line 4430 "configure"
4430 #include "confdefs.h"
4431 #include <wchar.h>
4432 int main() {
4433 mbstate_t teststate;
4434 ; return 0; }
4435 EOF
4436 if { (eval echo configure:4437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4437   rm -rf conftest*
4438   have_mbstate_t=yes
4439 else
4440   echo "configure: failed program was:" >&5
4441   cat conftest.$ac_ext >&5
4442   rm -rf conftest*
4443   have_mbstate_t=no
4444 fi
4445 rm -f conftest*
4446   echo "$ac_t""$have_mbstate_t" 1>&6
4447   if test x"$have_mbstate_t" = xyes; then
4448     cat >> confdefs.h <<\EOF
4449 #define HAVE_MBSTATE_T 1
4450 EOF
4451
4452   fi
4453
4454     for ac_hdr in wchar.h
4455 do
4456 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4457 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4458 echo "configure:4459: checking for $ac_hdr" >&5
4459 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4460   echo $ac_n "(cached) $ac_c" 1>&6
4461 else
4462   cat > conftest.$ac_ext <<EOF
4463 #line 4464 "configure"
4464 #include "confdefs.h"
4465 #include <$ac_hdr>
4466 EOF
4467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4468 { (eval echo configure:4469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4470 if test -z "$ac_err"; then
4471   rm -rf conftest*
4472   eval "ac_cv_header_$ac_safe=yes"
4473 else
4474   echo "$ac_err" >&5
4475   echo "configure: failed program was:" >&5
4476   cat conftest.$ac_ext >&5
4477   rm -rf conftest*
4478   eval "ac_cv_header_$ac_safe=no"
4479 fi
4480 rm -f conftest*
4481 fi
4482 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4483   echo "$ac_t""yes" 1>&6
4484     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4485   cat >> confdefs.h <<EOF
4486 #define $ac_tr_hdr 1
4487 EOF
4488  ac_has_wchar_h=yes
4489 else
4490   echo "$ac_t""no" 1>&6
4491 ac_has_wchar_h=no
4492 fi
4493 done
4494
4495   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4496 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4497 echo "configure:4498: checking for wctype.h" >&5
4498 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4499   echo $ac_n "(cached) $ac_c" 1>&6
4500 else
4501   cat > conftest.$ac_ext <<EOF
4502 #line 4503 "configure"
4503 #include "confdefs.h"
4504 #include <wctype.h>
4505 EOF
4506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4507 { (eval echo configure:4508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4509 if test -z "$ac_err"; then
4510   rm -rf conftest*
4511   eval "ac_cv_header_$ac_safe=yes"
4512 else
4513   echo "$ac_err" >&5
4514   echo "configure: failed program was:" >&5
4515   cat conftest.$ac_ext >&5
4516   rm -rf conftest*
4517   eval "ac_cv_header_$ac_safe=no"
4518 fi
4519 rm -f conftest*
4520 fi
4521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4522   echo "$ac_t""yes" 1>&6
4523   ac_has_wctype_h=yes
4524 else
4525   echo "$ac_t""no" 1>&6
4526 ac_has_wctype_h=no
4527 fi
4528
4529   
4530     if test x"$ac_has_wchar_h" = xyes &&
4531      test x"$ac_has_wctype_h" = xyes &&
4532      test x"$enable_c_mbchar" != xno; then
4533       
4534             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4535 echo "configure:4536: checking for WCHAR_MIN and WCHAR_MAX" >&5
4536     cat > conftest.$ac_ext <<EOF
4537 #line 4538 "configure"
4538 #include "confdefs.h"
4539 #include <wchar.h>
4540 int main() {
4541 int i = WCHAR_MIN; int j = WCHAR_MAX;
4542 ; return 0; }
4543 EOF
4544 if { (eval echo configure:4545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4545   rm -rf conftest*
4546   has_wchar_minmax=yes
4547 else
4548   echo "configure: failed program was:" >&5
4549   cat conftest.$ac_ext >&5
4550   rm -rf conftest*
4551   has_wchar_minmax=no
4552 fi
4553 rm -f conftest*
4554     echo "$ac_t""$has_wchar_minmax" 1>&6
4555     
4556             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4557 echo "configure:4558: checking for WEOF" >&5
4558     cat > conftest.$ac_ext <<EOF
4559 #line 4560 "configure"
4560 #include "confdefs.h"
4561
4562       #include <wchar.h>
4563       #include <stddef.h>
4564 int main() {
4565 wint_t i = WEOF;
4566 ; return 0; }
4567 EOF
4568 if { (eval echo configure:4569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4569   rm -rf conftest*
4570   has_weof=yes
4571 else
4572   echo "configure: failed program was:" >&5
4573   cat conftest.$ac_ext >&5
4574   rm -rf conftest*
4575   has_weof=no
4576 fi
4577 rm -f conftest*
4578     echo "$ac_t""$has_weof" 1>&6
4579   
4580         ac_wfuncs=yes
4581     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4582 do
4583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4584 echo "configure:4585: checking for $ac_func" >&5
4585 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4586   echo $ac_n "(cached) $ac_c" 1>&6
4587 else
4588   cat > conftest.$ac_ext <<EOF
4589 #line 4590 "configure"
4590 #include "confdefs.h"
4591 /* System header to define __stub macros and hopefully few prototypes,
4592     which can conflict with char $ac_func(); below.  */
4593 #include <assert.h>
4594 /* Override any gcc2 internal prototype to avoid an error.  */
4595 /* We use char because int might match the return type of a gcc2
4596     builtin and then its argument prototype would still apply.  */
4597 char $ac_func();
4598
4599 int main() {
4600
4601 /* The GNU C library defines this for functions which it implements
4602     to always fail with ENOSYS.  Some functions are actually named
4603     something starting with __ and the normal name is an alias.  */
4604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4605 choke me
4606 #else
4607 $ac_func();
4608 #endif
4609
4610 ; return 0; }
4611 EOF
4612 if { (eval echo configure:4613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4613   rm -rf conftest*
4614   eval "ac_cv_func_$ac_func=yes"
4615 else
4616   echo "configure: failed program was:" >&5
4617   cat conftest.$ac_ext >&5
4618   rm -rf conftest*
4619   eval "ac_cv_func_$ac_func=no"
4620 fi
4621 rm -f conftest*
4622 fi
4623
4624 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4625   echo "$ac_t""yes" 1>&6
4626     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4627   cat >> confdefs.h <<EOF
4628 #define $ac_tr_func 1
4629 EOF
4630  
4631 else
4632   echo "$ac_t""no" 1>&6
4633 \
4634     ac_wfuncs=no
4635 fi
4636 done
4637
4638   
4639         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4640     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4641     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4642     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4643     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4644     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4645 do
4646 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4647 echo "configure:4648: checking for $ac_func" >&5
4648 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4649   echo $ac_n "(cached) $ac_c" 1>&6
4650 else
4651   cat > conftest.$ac_ext <<EOF
4652 #line 4653 "configure"
4653 #include "confdefs.h"
4654 /* System header to define __stub macros and hopefully few prototypes,
4655     which can conflict with char $ac_func(); below.  */
4656 #include <assert.h>
4657 /* Override any gcc2 internal prototype to avoid an error.  */
4658 /* We use char because int might match the return type of a gcc2
4659     builtin and then its argument prototype would still apply.  */
4660 char $ac_func();
4661
4662 int main() {
4663
4664 /* The GNU C library defines this for functions which it implements
4665     to always fail with ENOSYS.  Some functions are actually named
4666     something starting with __ and the normal name is an alias.  */
4667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4668 choke me
4669 #else
4670 $ac_func();
4671 #endif
4672
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   eval "ac_cv_func_$ac_func=yes"
4678 else
4679   echo "configure: failed program was:" >&5
4680   cat conftest.$ac_ext >&5
4681   rm -rf conftest*
4682   eval "ac_cv_func_$ac_func=no"
4683 fi
4684 rm -f conftest*
4685 fi
4686
4687 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4688   echo "$ac_t""yes" 1>&6
4689     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4690   cat >> confdefs.h <<EOF
4691 #define $ac_tr_func 1
4692 EOF
4693  
4694 else
4695   echo "$ac_t""no" 1>&6
4696 \
4697     ac_wfuncs=no
4698 fi
4699 done
4700
4701
4702     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4703 echo "configure:4704: checking for ISO C99 wchar_t support" >&5
4704     if test x"$has_weof" = xyes &&
4705        test x"$has_wchar_minmax" = xyes &&
4706        test x"$ac_wfuncs" = xyes; then
4707       ac_isoC99_wchar_t=yes
4708     else
4709       ac_isoC99_wchar_t=no
4710     fi
4711     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4712   
4713             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4714 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4715 echo "configure:4716: checking for iconv.h" >&5
4716 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4717   echo $ac_n "(cached) $ac_c" 1>&6
4718 else
4719   cat > conftest.$ac_ext <<EOF
4720 #line 4721 "configure"
4721 #include "confdefs.h"
4722 #include <iconv.h>
4723 EOF
4724 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4725 { (eval echo configure:4726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4726 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4727 if test -z "$ac_err"; then
4728   rm -rf conftest*
4729   eval "ac_cv_header_$ac_safe=yes"
4730 else
4731   echo "$ac_err" >&5
4732   echo "configure: failed program was:" >&5
4733   cat conftest.$ac_ext >&5
4734   rm -rf conftest*
4735   eval "ac_cv_header_$ac_safe=no"
4736 fi
4737 rm -f conftest*
4738 fi
4739 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4740   echo "$ac_t""yes" 1>&6
4741   ac_has_iconv_h=yes
4742 else
4743   echo "$ac_t""no" 1>&6
4744 ac_has_iconv_h=no
4745 fi
4746
4747     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4748 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4749 echo "configure:4750: checking for langinfo.h" >&5
4750 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4751   echo $ac_n "(cached) $ac_c" 1>&6
4752 else
4753   cat > conftest.$ac_ext <<EOF
4754 #line 4755 "configure"
4755 #include "confdefs.h"
4756 #include <langinfo.h>
4757 EOF
4758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4759 { (eval echo configure:4760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4760 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4761 if test -z "$ac_err"; then
4762   rm -rf conftest*
4763   eval "ac_cv_header_$ac_safe=yes"
4764 else
4765   echo "$ac_err" >&5
4766   echo "configure: failed program was:" >&5
4767   cat conftest.$ac_ext >&5
4768   rm -rf conftest*
4769   eval "ac_cv_header_$ac_safe=no"
4770 fi
4771 rm -f conftest*
4772 fi
4773 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4774   echo "$ac_t""yes" 1>&6
4775   ac_has_langinfo_h=yes
4776 else
4777   echo "$ac_t""no" 1>&6
4778 ac_has_langinfo_h=no
4779 fi
4780
4781
4782         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4783 echo "configure:4784: checking for iconv in -liconv" >&5
4784 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4786   echo $ac_n "(cached) $ac_c" 1>&6
4787 else
4788   ac_save_LIBS="$LIBS"
4789 LIBS="-liconv  $LIBS"
4790 cat > conftest.$ac_ext <<EOF
4791 #line 4792 "configure"
4792 #include "confdefs.h"
4793 /* Override any gcc2 internal prototype to avoid an error.  */
4794 /* We use char because int might match the return type of a gcc2
4795     builtin and then its argument prototype would still apply.  */
4796 char iconv();
4797
4798 int main() {
4799 iconv()
4800 ; return 0; }
4801 EOF
4802 if { (eval echo configure:4803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4803   rm -rf conftest*
4804   eval "ac_cv_lib_$ac_lib_var=yes"
4805 else
4806   echo "configure: failed program was:" >&5
4807   cat conftest.$ac_ext >&5
4808   rm -rf conftest*
4809   eval "ac_cv_lib_$ac_lib_var=no"
4810 fi
4811 rm -f conftest*
4812 LIBS="$ac_save_LIBS"
4813
4814 fi
4815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4816   echo "$ac_t""yes" 1>&6
4817   libiconv="-liconv"
4818 else
4819   echo "$ac_t""no" 1>&6
4820 fi
4821
4822     ac_save_LIBS="$LIBS"
4823     LIBS="$LIBS $libiconv"
4824
4825     for ac_func in iconv_open iconv_close iconv nl_langinfo
4826 do
4827 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4828 echo "configure:4829: checking for $ac_func" >&5
4829 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4830   echo $ac_n "(cached) $ac_c" 1>&6
4831 else
4832   cat > conftest.$ac_ext <<EOF
4833 #line 4834 "configure"
4834 #include "confdefs.h"
4835 /* System header to define __stub macros and hopefully few prototypes,
4836     which can conflict with char $ac_func(); below.  */
4837 #include <assert.h>
4838 /* Override any gcc2 internal prototype to avoid an error.  */
4839 /* We use char because int might match the return type of a gcc2
4840     builtin and then its argument prototype would still apply.  */
4841 char $ac_func();
4842
4843 int main() {
4844
4845 /* The GNU C library defines this for functions which it implements
4846     to always fail with ENOSYS.  Some functions are actually named
4847     something starting with __ and the normal name is an alias.  */
4848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4849 choke me
4850 #else
4851 $ac_func();
4852 #endif
4853
4854 ; return 0; }
4855 EOF
4856 if { (eval echo configure:4857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4857   rm -rf conftest*
4858   eval "ac_cv_func_$ac_func=yes"
4859 else
4860   echo "configure: failed program was:" >&5
4861   cat conftest.$ac_ext >&5
4862   rm -rf conftest*
4863   eval "ac_cv_func_$ac_func=no"
4864 fi
4865 rm -f conftest*
4866 fi
4867
4868 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4869   echo "$ac_t""yes" 1>&6
4870     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4871   cat >> confdefs.h <<EOF
4872 #define $ac_tr_func 1
4873 EOF
4874  \
4875     ac_XPG2funcs=yes
4876 else
4877   echo "$ac_t""no" 1>&6
4878 ac_XPG2funcs=no
4879 fi
4880 done
4881
4882   
4883     LIBS="$ac_save_LIBS"
4884
4885     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4886 echo "configure:4887: checking for XPG2 wchar_t support" >&5
4887     if test x"$ac_has_iconv_h" = xyes &&
4888        test x"$ac_has_langinfo_h" = xyes &&
4889        test x"$ac_XPG2funcs" = xyes; then
4890       ac_XPG2_wchar_t=yes
4891     else
4892       ac_XPG2_wchar_t=no
4893     fi
4894     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4895   
4896             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4897 echo "configure:4898: checking for enabled wchar_t specializations" >&5
4898     if test x"$ac_isoC99_wchar_t" = xyes &&
4899        test x"$ac_XPG2_wchar_t" = xyes; then
4900       cat >> confdefs.h <<\EOF
4901 #define _GLIBCPP_USE_WCHAR_T 1
4902 EOF
4903
4904       echo "$ac_t"""yes"" 1>&6
4905     else
4906       echo "$ac_t"""no"" 1>&6
4907     fi
4908   else
4909         echo "configure: warning: wchar_t support disabled." 1>&2
4910   fi
4911
4912         os_include_dir="config/os/gnu-linux"
4913         # GLIBCPP_CHECK_STDLIB_SUPPORT
4914         cat >> confdefs.h <<\EOF
4915 #define HAVE_STRTOF 1
4916 EOF
4917         
4918         cat >> confdefs.h <<\EOF
4919 #define HAVE_STRTOLD 1
4920 EOF
4921         
4922         # AC_FUNC_MMAP
4923         cat >> confdefs.h <<\EOF
4924 #define HAVE_MMAP 1
4925 EOF
4926
4927         ;;
4928     *)
4929         # We assume newlib. 
4930         # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4931         # GLIBCPP_CHECK_MATH_SUPPORT
4932         cat >> confdefs.h <<\EOF
4933 #define HAVE_FINITE 1
4934 EOF
4935
4936         cat >> confdefs.h <<\EOF
4937 #define HAVE_HYPOT 1
4938 EOF
4939
4940         cat >> confdefs.h <<\EOF
4941 #define HAVE_ISNAN 1
4942 EOF
4943
4944         cat >> confdefs.h <<\EOF
4945 #define HAVE_ISINF 1
4946 EOF
4947
4948
4949         cat >> confdefs.h <<\EOF
4950 #define HAVE_ACOSF 1
4951 EOF
4952
4953         cat >> confdefs.h <<\EOF
4954 #define HAVE_ASINF 1
4955 EOF
4956
4957         cat >> confdefs.h <<\EOF
4958 #define HAVE_ATAN2F 1
4959 EOF
4960
4961         cat >> confdefs.h <<\EOF
4962 #define HAVE_ATANF 1
4963 EOF
4964
4965         cat >> confdefs.h <<\EOF
4966 #define HAVE_CEILF 1
4967 EOF
4968
4969         cat >> confdefs.h <<\EOF
4970 #define HAVE_COSF 1
4971 EOF
4972
4973         cat >> confdefs.h <<\EOF
4974 #define HAVE_COSHF 1
4975 EOF
4976
4977         cat >> confdefs.h <<\EOF
4978 #define HAVE_EXPF 1
4979 EOF
4980
4981         cat >> confdefs.h <<\EOF
4982 #define HAVE_FABSF 1
4983 EOF
4984
4985         cat >> confdefs.h <<\EOF
4986 #define HAVE_FLOORF 1
4987 EOF
4988
4989         cat >> confdefs.h <<\EOF
4990 #define HAVE_FMODF 1
4991 EOF
4992
4993         cat >> confdefs.h <<\EOF
4994 #define HAVE_HYPOTF 1
4995 EOF
4996
4997         cat >> confdefs.h <<\EOF
4998 #define HAVE_ISNANF 1
4999 EOF
5000
5001         cat >> confdefs.h <<\EOF
5002 #define HAVE_ISINFF 1
5003 EOF
5004
5005         cat >> confdefs.h <<\EOF
5006 #define HAVE_LDEXPF 1
5007 EOF
5008
5009         cat >> confdefs.h <<\EOF
5010 #define HAVE_LOG10F 1
5011 EOF
5012
5013         cat >> confdefs.h <<\EOF
5014 #define HAVE_LOGF 1
5015 EOF
5016
5017         cat >> confdefs.h <<\EOF
5018 #define HAVE_MODFF 1
5019 EOF
5020
5021         cat >> confdefs.h <<\EOF
5022 #define HAVE_POWF 1
5023 EOF
5024
5025         cat >> confdefs.h <<\EOF
5026 #define HAVE_SINF 1
5027 EOF
5028
5029         cat >> confdefs.h <<\EOF
5030 #define HAVE_SINHF 1
5031 EOF
5032
5033         cat >> confdefs.h <<\EOF
5034 #define HAVE_SQRTF 1
5035 EOF
5036
5037         cat >> confdefs.h <<\EOF
5038 #define HAVE_TANF 1
5039 EOF
5040
5041         cat >> confdefs.h <<\EOF
5042 #define HAVE_TANHF 1
5043 EOF
5044
5045
5046         os_include_dir="config/os/newlib"
5047         ;;
5048   esac
5049 else
5050
5051   # We are being configured natively. We can do more elaborate tests
5052   # that include AC_TRY_COMPILE now, as the linker is assumed to be
5053   # working.
5054   GLIBCPP_IS_CROSS_COMPILING=0
5055   CANADIAN=no
5056
5057   # Check for available headers.
5058   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
5059   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
5060 do
5061 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5062 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5063 echo "configure:5064: checking for $ac_hdr" >&5
5064 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5065   echo $ac_n "(cached) $ac_c" 1>&6
5066 else
5067   cat > conftest.$ac_ext <<EOF
5068 #line 5069 "configure"
5069 #include "confdefs.h"
5070 #include <$ac_hdr>
5071 EOF
5072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5073 { (eval echo configure:5074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5074 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5075 if test -z "$ac_err"; then
5076   rm -rf conftest*
5077   eval "ac_cv_header_$ac_safe=yes"
5078 else
5079   echo "$ac_err" >&5
5080   echo "configure: failed program was:" >&5
5081   cat conftest.$ac_ext >&5
5082   rm -rf conftest*
5083   eval "ac_cv_header_$ac_safe=no"
5084 fi
5085 rm -f conftest*
5086 fi
5087 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5088   echo "$ac_t""yes" 1>&6
5089     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5090   cat >> confdefs.h <<EOF
5091 #define $ac_tr_hdr 1
5092 EOF
5093  
5094 else
5095   echo "$ac_t""no" 1>&6
5096 fi
5097 done
5098
5099
5100   
5101   # All these tests are for C++; save the language and the compiler flags.
5102   # The CXXFLAGS thing is suspicious, but based on similar bits previously
5103   # found in GLIBCPP_CONFIGURE.
5104   
5105   ac_ext=C
5106 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5107 ac_cpp='$CXXCPP $CPPFLAGS'
5108 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5109 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5110 cross_compiling=$ac_cv_prog_cxx_cross
5111
5112   ac_test_CXXFLAGS="${CXXFLAGS+set}"
5113   ac_save_CXXFLAGS="$CXXFLAGS"
5114
5115   # Check for maintainer-mode bits.
5116   if test x"$USE_MAINTAINER_MODE" = xno; then
5117     WERROR=''
5118   else
5119     WERROR='-Werror'
5120   fi
5121
5122   # Check for -ffunction-sections -fdata-sections
5123   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
5124 echo "configure:5125: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
5125   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
5126   cat > conftest.$ac_ext <<EOF
5127 #line 5128 "configure"
5128 #include "confdefs.h"
5129
5130 int main() {
5131 int foo;
5132   
5133 ; return 0; }
5134 EOF
5135 if { (eval echo configure:5136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5136   rm -rf conftest*
5137   ac_fdsections=yes
5138 else
5139   echo "configure: failed program was:" >&5
5140   cat conftest.$ac_ext >&5
5141   rm -rf conftest*
5142   ac_fdsections=no
5143 fi
5144 rm -f conftest*
5145   if test "$ac_test_CXXFLAGS" = set; then
5146     CXXFLAGS="$ac_save_CXXFLAGS"
5147   else
5148     # this is the suspicious part
5149     CXXFLAGS=''
5150   fi
5151   if test x"$ac_fdsections" = x"yes" &&
5152      test x"$enable_debug" = x"no"; then
5153     SECTION_FLAGS='-ffunction-sections -fdata-sections'
5154   fi
5155   echo "$ac_t""$ac_fdsections" 1>&6
5156
5157   ac_ext=c
5158 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5159 ac_cpp='$CPP $CPPFLAGS'
5160 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5161 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5162 cross_compiling=$ac_cv_prog_cc_cross
5163
5164   
5165   
5166
5167   
5168   # If we're not using GNU ld, then there's no point in even trying these
5169   # tests.  Check for that first.  We should have already tested for gld
5170   # by now (in libtool), but require it now just to be safe...
5171   SECTION_LDFLAGS=''
5172   OPT_LDFLAGS=''
5173   
5174
5175   # Set --gc-sections.
5176   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
5177     # GNU ld it is!  Joy and bunny rabbits!
5178
5179     # All these tests are for C++; save the language and the compiler flags.
5180     # Need to do this so that g++ won't try to link in libstdc++
5181     ac_test_CFLAGS="${CFLAGS+set}"
5182     ac_save_CFLAGS="$CFLAGS"
5183     CFLAGS='-x c++  -Wl,--gc-sections'
5184
5185     # Check for -Wl,--gc-sections
5186     # XXX This test is broken at the moment, as symbols required for
5187     # linking are now in libsupc++ (not built yet.....). In addition, 
5188     # this test has cored on solaris in the past. In addition,
5189     # --gc-sections doesn't really work at the moment (keeps on discarding
5190     # used sections, first .eh_frame and now some of the glibc sections for
5191     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5192     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5193 echo "configure:5194: checking for ld that supports -Wl,--gc-sections" >&5
5194     if test "$cross_compiling" = yes; then
5195   ac_sectionLDflags=yes
5196 else
5197   cat > conftest.$ac_ext <<EOF
5198 #line 5199 "configure"
5199 #include "confdefs.h"
5200
5201      int main(void) 
5202      {
5203        try { throw 1; }
5204        catch (...) { };
5205        return 0;
5206      }
5207     
5208 EOF
5209 if { (eval echo configure:5210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5210 then
5211   ac_sectionLDflags=yes
5212 else
5213   echo "configure: failed program was:" >&5
5214   cat conftest.$ac_ext >&5
5215   rm -fr conftest*
5216   ac_sectionLFflags=no
5217 fi
5218 rm -fr conftest*
5219 fi
5220
5221     if test "$ac_test_CFLAGS" = set; then
5222       CFLAGS="$ac_save_CFLAGS"
5223     else
5224       # this is the suspicious part
5225       CFLAGS=''
5226     fi
5227     if test "$ac_sectionLDflags" = "yes"; then
5228       SECTION_LDFLAGS='-Wl,--gc-sections'
5229     fi
5230     echo "$ac_t""$ac_sectionLDflags" 1>&6
5231   fi
5232
5233   # Set linker optimization flags.
5234   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
5235      test x"$enable_debug" = x"no"; then
5236     OPT_LDFLAGS='-Wl,-O1'
5237   fi
5238
5239   
5240   
5241
5242   
5243       
5244   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
5245 echo "configure:5246: checking for __builtin_abs declaration" >&5
5246   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
5247     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
5248   echo $ac_n "(cached) $ac_c" 1>&6
5249 else
5250   
5251       
5252       ac_ext=C
5253 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5254 ac_cpp='$CXXCPP $CPPFLAGS'
5255 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5256 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5257 cross_compiling=$ac_cv_prog_cxx_cross
5258
5259       cat > conftest.$ac_ext <<EOF
5260 #line 5261 "configure"
5261 #include "confdefs.h"
5262 #include <math.h>
5263 int main() {
5264  __builtin_abs(0);
5265 ; return 0; }
5266 EOF
5267 if { (eval echo configure:5268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5268   rm -rf conftest*
5269   glibcpp_cv_func___builtin_abs_use=yes
5270 else
5271   echo "configure: failed program was:" >&5
5272   cat conftest.$ac_ext >&5
5273   rm -rf conftest*
5274   glibcpp_cv_func___builtin_abs_use=no
5275 fi
5276 rm -f conftest*
5277       ac_ext=c
5278 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5279 ac_cpp='$CPP $CPPFLAGS'
5280 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5281 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5282 cross_compiling=$ac_cv_prog_cc_cross
5283
5284     
5285 fi
5286
5287   fi
5288   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
5289   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
5290     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
5291 echo "configure:5292: checking for __builtin_abs linkage" >&5
5292     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
5293       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
5294   echo $ac_n "(cached) $ac_c" 1>&6
5295 else
5296   
5297         cat > conftest.$ac_ext <<EOF
5298 #line 5299 "configure"
5299 #include "confdefs.h"
5300 #include <math.h>
5301 int main() {
5302  __builtin_abs(0);
5303 ; return 0; }
5304 EOF
5305 if { (eval echo configure:5306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5306   rm -rf conftest*
5307   glibcpp_cv_func___builtin_abs_link=yes
5308 else
5309   echo "configure: failed program was:" >&5
5310   cat conftest.$ac_ext >&5
5311   rm -rf conftest*
5312   glibcpp_cv_func___builtin_abs_link=no
5313 fi
5314 rm -f conftest*
5315       
5316 fi
5317
5318     fi
5319     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
5320     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
5321       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5322       cat >> confdefs.h <<EOF
5323 #define ${ac_tr_func} 1
5324 EOF
5325
5326     fi
5327   fi
5328
5329   
5330   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
5331 echo "configure:5332: checking for __builtin_fabsf declaration" >&5
5332   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
5333     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
5334   echo $ac_n "(cached) $ac_c" 1>&6
5335 else
5336   
5337       
5338       ac_ext=C
5339 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5340 ac_cpp='$CXXCPP $CPPFLAGS'
5341 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5342 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5343 cross_compiling=$ac_cv_prog_cxx_cross
5344
5345       cat > conftest.$ac_ext <<EOF
5346 #line 5347 "configure"
5347 #include "confdefs.h"
5348 #include <math.h>
5349 int main() {
5350  __builtin_fabsf(0);
5351 ; return 0; }
5352 EOF
5353 if { (eval echo configure:5354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5354   rm -rf conftest*
5355   glibcpp_cv_func___builtin_fabsf_use=yes
5356 else
5357   echo "configure: failed program was:" >&5
5358   cat conftest.$ac_ext >&5
5359   rm -rf conftest*
5360   glibcpp_cv_func___builtin_fabsf_use=no
5361 fi
5362 rm -f conftest*
5363       ac_ext=c
5364 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5365 ac_cpp='$CPP $CPPFLAGS'
5366 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5367 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5368 cross_compiling=$ac_cv_prog_cc_cross
5369
5370     
5371 fi
5372
5373   fi
5374   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
5375   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
5376     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
5377 echo "configure:5378: checking for __builtin_fabsf linkage" >&5
5378     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
5379       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
5380   echo $ac_n "(cached) $ac_c" 1>&6
5381 else
5382   
5383         cat > conftest.$ac_ext <<EOF
5384 #line 5385 "configure"
5385 #include "confdefs.h"
5386 #include <math.h>
5387 int main() {
5388  __builtin_fabsf(0);
5389 ; return 0; }
5390 EOF
5391 if { (eval echo configure:5392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5392   rm -rf conftest*
5393   glibcpp_cv_func___builtin_fabsf_link=yes
5394 else
5395   echo "configure: failed program was:" >&5
5396   cat conftest.$ac_ext >&5
5397   rm -rf conftest*
5398   glibcpp_cv_func___builtin_fabsf_link=no
5399 fi
5400 rm -f conftest*
5401       
5402 fi
5403
5404     fi
5405     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
5406     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
5407       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5408       cat >> confdefs.h <<EOF
5409 #define ${ac_tr_func} 1
5410 EOF
5411
5412     fi
5413   fi
5414
5415   
5416   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
5417 echo "configure:5418: checking for __builtin_fabs declaration" >&5
5418   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
5419     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
5420   echo $ac_n "(cached) $ac_c" 1>&6
5421 else
5422   
5423       
5424       ac_ext=C
5425 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5426 ac_cpp='$CXXCPP $CPPFLAGS'
5427 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5428 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5429 cross_compiling=$ac_cv_prog_cxx_cross
5430
5431       cat > conftest.$ac_ext <<EOF
5432 #line 5433 "configure"
5433 #include "confdefs.h"
5434 #include <math.h>
5435 int main() {
5436  __builtin_fabs(0);
5437 ; return 0; }
5438 EOF
5439 if { (eval echo configure:5440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5440   rm -rf conftest*
5441   glibcpp_cv_func___builtin_fabs_use=yes
5442 else
5443   echo "configure: failed program was:" >&5
5444   cat conftest.$ac_ext >&5
5445   rm -rf conftest*
5446   glibcpp_cv_func___builtin_fabs_use=no
5447 fi
5448 rm -f conftest*
5449       ac_ext=c
5450 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5451 ac_cpp='$CPP $CPPFLAGS'
5452 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5453 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5454 cross_compiling=$ac_cv_prog_cc_cross
5455
5456     
5457 fi
5458
5459   fi
5460   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
5461   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
5462     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
5463 echo "configure:5464: checking for __builtin_fabs linkage" >&5
5464     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
5465       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
5466   echo $ac_n "(cached) $ac_c" 1>&6
5467 else
5468   
5469         cat > conftest.$ac_ext <<EOF
5470 #line 5471 "configure"
5471 #include "confdefs.h"
5472 #include <math.h>
5473 int main() {
5474  __builtin_fabs(0);
5475 ; return 0; }
5476 EOF
5477 if { (eval echo configure:5478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5478   rm -rf conftest*
5479   glibcpp_cv_func___builtin_fabs_link=yes
5480 else
5481   echo "configure: failed program was:" >&5
5482   cat conftest.$ac_ext >&5
5483   rm -rf conftest*
5484   glibcpp_cv_func___builtin_fabs_link=no
5485 fi
5486 rm -f conftest*
5487       
5488 fi
5489
5490     fi
5491     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
5492     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
5493       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5494       cat >> confdefs.h <<EOF
5495 #define ${ac_tr_func} 1
5496 EOF
5497
5498     fi
5499   fi
5500
5501   
5502   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
5503 echo "configure:5504: checking for __builtin_fabsl declaration" >&5
5504   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
5505     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
5506   echo $ac_n "(cached) $ac_c" 1>&6
5507 else
5508   
5509       
5510       ac_ext=C
5511 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5512 ac_cpp='$CXXCPP $CPPFLAGS'
5513 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5514 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5515 cross_compiling=$ac_cv_prog_cxx_cross
5516
5517       cat > conftest.$ac_ext <<EOF
5518 #line 5519 "configure"
5519 #include "confdefs.h"
5520 #include <math.h>
5521 int main() {
5522  __builtin_fabsl(0);
5523 ; return 0; }
5524 EOF
5525 if { (eval echo configure:5526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5526   rm -rf conftest*
5527   glibcpp_cv_func___builtin_fabsl_use=yes
5528 else
5529   echo "configure: failed program was:" >&5
5530   cat conftest.$ac_ext >&5
5531   rm -rf conftest*
5532   glibcpp_cv_func___builtin_fabsl_use=no
5533 fi
5534 rm -f conftest*
5535       ac_ext=c
5536 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5537 ac_cpp='$CPP $CPPFLAGS'
5538 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5539 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5540 cross_compiling=$ac_cv_prog_cc_cross
5541
5542     
5543 fi
5544
5545   fi
5546   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
5547   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
5548     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
5549 echo "configure:5550: checking for __builtin_fabsl linkage" >&5
5550     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
5551       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
5552   echo $ac_n "(cached) $ac_c" 1>&6
5553 else
5554   
5555         cat > conftest.$ac_ext <<EOF
5556 #line 5557 "configure"
5557 #include "confdefs.h"
5558 #include <math.h>
5559 int main() {
5560  __builtin_fabsl(0);
5561 ; return 0; }
5562 EOF
5563 if { (eval echo configure:5564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5564   rm -rf conftest*
5565   glibcpp_cv_func___builtin_fabsl_link=yes
5566 else
5567   echo "configure: failed program was:" >&5
5568   cat conftest.$ac_ext >&5
5569   rm -rf conftest*
5570   glibcpp_cv_func___builtin_fabsl_link=no
5571 fi
5572 rm -f conftest*
5573       
5574 fi
5575
5576     fi
5577     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
5578     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
5579       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5580       cat >> confdefs.h <<EOF
5581 #define ${ac_tr_func} 1
5582 EOF
5583
5584     fi
5585   fi
5586
5587   
5588   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
5589 echo "configure:5590: checking for __builtin_labs declaration" >&5
5590   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
5591     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
5592   echo $ac_n "(cached) $ac_c" 1>&6
5593 else
5594   
5595       
5596       ac_ext=C
5597 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5598 ac_cpp='$CXXCPP $CPPFLAGS'
5599 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5600 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5601 cross_compiling=$ac_cv_prog_cxx_cross
5602
5603       cat > conftest.$ac_ext <<EOF
5604 #line 5605 "configure"
5605 #include "confdefs.h"
5606 #include <math.h>
5607 int main() {
5608  __builtin_labs(0);
5609 ; return 0; }
5610 EOF
5611 if { (eval echo configure:5612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5612   rm -rf conftest*
5613   glibcpp_cv_func___builtin_labs_use=yes
5614 else
5615   echo "configure: failed program was:" >&5
5616   cat conftest.$ac_ext >&5
5617   rm -rf conftest*
5618   glibcpp_cv_func___builtin_labs_use=no
5619 fi
5620 rm -f conftest*
5621       ac_ext=c
5622 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5623 ac_cpp='$CPP $CPPFLAGS'
5624 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5625 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5626 cross_compiling=$ac_cv_prog_cc_cross
5627
5628     
5629 fi
5630
5631   fi
5632   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
5633   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
5634     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
5635 echo "configure:5636: checking for __builtin_labs linkage" >&5
5636     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
5637       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
5638   echo $ac_n "(cached) $ac_c" 1>&6
5639 else
5640   
5641         cat > conftest.$ac_ext <<EOF
5642 #line 5643 "configure"
5643 #include "confdefs.h"
5644 #include <math.h>
5645 int main() {
5646  __builtin_labs(0);
5647 ; return 0; }
5648 EOF
5649 if { (eval echo configure:5650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5650   rm -rf conftest*
5651   glibcpp_cv_func___builtin_labs_link=yes
5652 else
5653   echo "configure: failed program was:" >&5
5654   cat conftest.$ac_ext >&5
5655   rm -rf conftest*
5656   glibcpp_cv_func___builtin_labs_link=no
5657 fi
5658 rm -f conftest*
5659       
5660 fi
5661
5662     fi
5663     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
5664     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
5665       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5666       cat >> confdefs.h <<EOF
5667 #define ${ac_tr_func} 1
5668 EOF
5669
5670     fi
5671   fi
5672
5673
5674   
5675   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
5676 echo "configure:5677: checking for __builtin_sqrtf declaration" >&5
5677   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
5678     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
5679   echo $ac_n "(cached) $ac_c" 1>&6
5680 else
5681   
5682       
5683       ac_ext=C
5684 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5685 ac_cpp='$CXXCPP $CPPFLAGS'
5686 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5687 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5688 cross_compiling=$ac_cv_prog_cxx_cross
5689
5690       cat > conftest.$ac_ext <<EOF
5691 #line 5692 "configure"
5692 #include "confdefs.h"
5693 #include <math.h>
5694 int main() {
5695  __builtin_sqrtf(0);
5696 ; return 0; }
5697 EOF
5698 if { (eval echo configure:5699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5699   rm -rf conftest*
5700   glibcpp_cv_func___builtin_sqrtf_use=yes
5701 else
5702   echo "configure: failed program was:" >&5
5703   cat conftest.$ac_ext >&5
5704   rm -rf conftest*
5705   glibcpp_cv_func___builtin_sqrtf_use=no
5706 fi
5707 rm -f conftest*
5708       ac_ext=c
5709 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5710 ac_cpp='$CPP $CPPFLAGS'
5711 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5712 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5713 cross_compiling=$ac_cv_prog_cc_cross
5714
5715     
5716 fi
5717
5718   fi
5719   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
5720   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
5721     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
5722 echo "configure:5723: checking for __builtin_sqrtf linkage" >&5
5723     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
5724       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
5725   echo $ac_n "(cached) $ac_c" 1>&6
5726 else
5727   
5728         cat > conftest.$ac_ext <<EOF
5729 #line 5730 "configure"
5730 #include "confdefs.h"
5731 #include <math.h>
5732 int main() {
5733  __builtin_sqrtf(0);
5734 ; return 0; }
5735 EOF
5736 if { (eval echo configure:5737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5737   rm -rf conftest*
5738   glibcpp_cv_func___builtin_sqrtf_link=yes
5739 else
5740   echo "configure: failed program was:" >&5
5741   cat conftest.$ac_ext >&5
5742   rm -rf conftest*
5743   glibcpp_cv_func___builtin_sqrtf_link=no
5744 fi
5745 rm -f conftest*
5746       
5747 fi
5748
5749     fi
5750     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
5751     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
5752       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5753       cat >> confdefs.h <<EOF
5754 #define ${ac_tr_func} 1
5755 EOF
5756
5757     fi
5758   fi
5759
5760   
5761   echo $ac_n "checking for __builtin_fsqrt declaration""... $ac_c" 1>&6
5762 echo "configure:5763: checking for __builtin_fsqrt declaration" >&5
5763   if test x${glibcpp_cv_func___builtin_fsqrt_use+set} != xset; then
5764     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_use'+set}'`\" = set"; then
5765   echo $ac_n "(cached) $ac_c" 1>&6
5766 else
5767   
5768       
5769       ac_ext=C
5770 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5771 ac_cpp='$CXXCPP $CPPFLAGS'
5772 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5773 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5774 cross_compiling=$ac_cv_prog_cxx_cross
5775
5776       cat > conftest.$ac_ext <<EOF
5777 #line 5778 "configure"
5778 #include "confdefs.h"
5779 #include <math.h>
5780 int main() {
5781  __builtin_fsqrt(0);
5782 ; return 0; }
5783 EOF
5784 if { (eval echo configure:5785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5785   rm -rf conftest*
5786   glibcpp_cv_func___builtin_fsqrt_use=yes
5787 else
5788   echo "configure: failed program was:" >&5
5789   cat conftest.$ac_ext >&5
5790   rm -rf conftest*
5791   glibcpp_cv_func___builtin_fsqrt_use=no
5792 fi
5793 rm -f conftest*
5794       ac_ext=c
5795 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5796 ac_cpp='$CPP $CPPFLAGS'
5797 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5798 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5799 cross_compiling=$ac_cv_prog_cc_cross
5800
5801     
5802 fi
5803
5804   fi
5805   echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_use" 1>&6
5806   if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then
5807     echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6
5808 echo "configure:5809: checking for __builtin_fsqrt linkage" >&5
5809     if test x${glibcpp_cv_func___builtin_fsqrt_link+set} != xset; then
5810       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_link'+set}'`\" = set"; then
5811   echo $ac_n "(cached) $ac_c" 1>&6
5812 else
5813   
5814         cat > conftest.$ac_ext <<EOF
5815 #line 5816 "configure"
5816 #include "confdefs.h"
5817 #include <math.h>
5818 int main() {
5819  __builtin_fsqrt(0);
5820 ; return 0; }
5821 EOF
5822 if { (eval echo configure:5823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5823   rm -rf conftest*
5824   glibcpp_cv_func___builtin_fsqrt_link=yes
5825 else
5826   echo "configure: failed program was:" >&5
5827   cat conftest.$ac_ext >&5
5828   rm -rf conftest*
5829   glibcpp_cv_func___builtin_fsqrt_link=no
5830 fi
5831 rm -f conftest*
5832       
5833 fi
5834
5835     fi
5836     echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6
5837     if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then
5838       ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5839       cat >> confdefs.h <<EOF
5840 #define ${ac_tr_func} 1
5841 EOF
5842
5843     fi
5844   fi
5845
5846   
5847   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
5848 echo "configure:5849: checking for __builtin_sqrtl declaration" >&5
5849   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
5850     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
5851   echo $ac_n "(cached) $ac_c" 1>&6
5852 else
5853   
5854       
5855       ac_ext=C
5856 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5857 ac_cpp='$CXXCPP $CPPFLAGS'
5858 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5859 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5860 cross_compiling=$ac_cv_prog_cxx_cross
5861
5862       cat > conftest.$ac_ext <<EOF
5863 #line 5864 "configure"
5864 #include "confdefs.h"
5865 #include <math.h>
5866 int main() {
5867  __builtin_sqrtl(0);
5868 ; return 0; }
5869 EOF
5870 if { (eval echo configure:5871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5871   rm -rf conftest*
5872   glibcpp_cv_func___builtin_sqrtl_use=yes
5873 else
5874   echo "configure: failed program was:" >&5
5875   cat conftest.$ac_ext >&5
5876   rm -rf conftest*
5877   glibcpp_cv_func___builtin_sqrtl_use=no
5878 fi
5879 rm -f conftest*
5880       ac_ext=c
5881 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5882 ac_cpp='$CPP $CPPFLAGS'
5883 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5884 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5885 cross_compiling=$ac_cv_prog_cc_cross
5886
5887     
5888 fi
5889
5890   fi
5891   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
5892   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
5893     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
5894 echo "configure:5895: checking for __builtin_sqrtl linkage" >&5
5895     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
5896       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
5897   echo $ac_n "(cached) $ac_c" 1>&6
5898 else
5899   
5900         cat > conftest.$ac_ext <<EOF
5901 #line 5902 "configure"
5902 #include "confdefs.h"
5903 #include <math.h>
5904 int main() {
5905  __builtin_sqrtl(0);
5906 ; return 0; }
5907 EOF
5908 if { (eval echo configure:5909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5909   rm -rf conftest*
5910   glibcpp_cv_func___builtin_sqrtl_link=yes
5911 else
5912   echo "configure: failed program was:" >&5
5913   cat conftest.$ac_ext >&5
5914   rm -rf conftest*
5915   glibcpp_cv_func___builtin_sqrtl_link=no
5916 fi
5917 rm -f conftest*
5918       
5919 fi
5920
5921     fi
5922     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
5923     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
5924       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5925       cat >> confdefs.h <<EOF
5926 #define ${ac_tr_func} 1
5927 EOF
5928
5929     fi
5930   fi
5931
5932
5933   
5934   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
5935 echo "configure:5936: checking for __builtin_sinf declaration" >&5
5936   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
5937     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
5938   echo $ac_n "(cached) $ac_c" 1>&6
5939 else
5940   
5941       
5942       ac_ext=C
5943 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5944 ac_cpp='$CXXCPP $CPPFLAGS'
5945 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5946 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5947 cross_compiling=$ac_cv_prog_cxx_cross
5948
5949       cat > conftest.$ac_ext <<EOF
5950 #line 5951 "configure"
5951 #include "confdefs.h"
5952 #include <math.h>
5953 int main() {
5954  __builtin_sinf(0);
5955 ; return 0; }
5956 EOF
5957 if { (eval echo configure:5958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5958   rm -rf conftest*
5959   glibcpp_cv_func___builtin_sinf_use=yes
5960 else
5961   echo "configure: failed program was:" >&5
5962   cat conftest.$ac_ext >&5
5963   rm -rf conftest*
5964   glibcpp_cv_func___builtin_sinf_use=no
5965 fi
5966 rm -f conftest*
5967       ac_ext=c
5968 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5969 ac_cpp='$CPP $CPPFLAGS'
5970 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5971 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5972 cross_compiling=$ac_cv_prog_cc_cross
5973
5974     
5975 fi
5976
5977   fi
5978   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
5979   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
5980     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
5981 echo "configure:5982: checking for __builtin_sinf linkage" >&5
5982     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
5983       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
5984   echo $ac_n "(cached) $ac_c" 1>&6
5985 else
5986   
5987         cat > conftest.$ac_ext <<EOF
5988 #line 5989 "configure"
5989 #include "confdefs.h"
5990 #include <math.h>
5991 int main() {
5992  __builtin_sinf(0);
5993 ; return 0; }
5994 EOF
5995 if { (eval echo configure:5996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5996   rm -rf conftest*
5997   glibcpp_cv_func___builtin_sinf_link=yes
5998 else
5999   echo "configure: failed program was:" >&5
6000   cat conftest.$ac_ext >&5
6001   rm -rf conftest*
6002   glibcpp_cv_func___builtin_sinf_link=no
6003 fi
6004 rm -f conftest*
6005       
6006 fi
6007
6008     fi
6009     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
6010     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
6011       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6012       cat >> confdefs.h <<EOF
6013 #define ${ac_tr_func} 1
6014 EOF
6015
6016     fi
6017   fi
6018
6019   
6020   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
6021 echo "configure:6022: checking for __builtin_sin declaration" >&5
6022   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
6023     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
6024   echo $ac_n "(cached) $ac_c" 1>&6
6025 else
6026   
6027       
6028       ac_ext=C
6029 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6030 ac_cpp='$CXXCPP $CPPFLAGS'
6031 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6032 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6033 cross_compiling=$ac_cv_prog_cxx_cross
6034
6035       cat > conftest.$ac_ext <<EOF
6036 #line 6037 "configure"
6037 #include "confdefs.h"
6038 #include <math.h>
6039 int main() {
6040  __builtin_sin(0);
6041 ; return 0; }
6042 EOF
6043 if { (eval echo configure:6044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6044   rm -rf conftest*
6045   glibcpp_cv_func___builtin_sin_use=yes
6046 else
6047   echo "configure: failed program was:" >&5
6048   cat conftest.$ac_ext >&5
6049   rm -rf conftest*
6050   glibcpp_cv_func___builtin_sin_use=no
6051 fi
6052 rm -f conftest*
6053       ac_ext=c
6054 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6055 ac_cpp='$CPP $CPPFLAGS'
6056 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6057 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6058 cross_compiling=$ac_cv_prog_cc_cross
6059
6060     
6061 fi
6062
6063   fi
6064   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
6065   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
6066     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
6067 echo "configure:6068: checking for __builtin_sin linkage" >&5
6068     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
6069       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
6070   echo $ac_n "(cached) $ac_c" 1>&6
6071 else
6072   
6073         cat > conftest.$ac_ext <<EOF
6074 #line 6075 "configure"
6075 #include "confdefs.h"
6076 #include <math.h>
6077 int main() {
6078  __builtin_sin(0);
6079 ; return 0; }
6080 EOF
6081 if { (eval echo configure:6082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6082   rm -rf conftest*
6083   glibcpp_cv_func___builtin_sin_link=yes
6084 else
6085   echo "configure: failed program was:" >&5
6086   cat conftest.$ac_ext >&5
6087   rm -rf conftest*
6088   glibcpp_cv_func___builtin_sin_link=no
6089 fi
6090 rm -f conftest*
6091       
6092 fi
6093
6094     fi
6095     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
6096     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
6097       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6098       cat >> confdefs.h <<EOF
6099 #define ${ac_tr_func} 1
6100 EOF
6101
6102     fi
6103   fi
6104
6105   
6106   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
6107 echo "configure:6108: checking for __builtin_sinl declaration" >&5
6108   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
6109     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
6110   echo $ac_n "(cached) $ac_c" 1>&6
6111 else
6112   
6113       
6114       ac_ext=C
6115 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6116 ac_cpp='$CXXCPP $CPPFLAGS'
6117 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6118 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6119 cross_compiling=$ac_cv_prog_cxx_cross
6120
6121       cat > conftest.$ac_ext <<EOF
6122 #line 6123 "configure"
6123 #include "confdefs.h"
6124 #include <math.h>
6125 int main() {
6126  __builtin_sinl(0);
6127 ; return 0; }
6128 EOF
6129 if { (eval echo configure:6130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6130   rm -rf conftest*
6131   glibcpp_cv_func___builtin_sinl_use=yes
6132 else
6133   echo "configure: failed program was:" >&5
6134   cat conftest.$ac_ext >&5
6135   rm -rf conftest*
6136   glibcpp_cv_func___builtin_sinl_use=no
6137 fi
6138 rm -f conftest*
6139       ac_ext=c
6140 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6141 ac_cpp='$CPP $CPPFLAGS'
6142 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6143 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6144 cross_compiling=$ac_cv_prog_cc_cross
6145
6146     
6147 fi
6148
6149   fi
6150   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
6151   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
6152     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
6153 echo "configure:6154: checking for __builtin_sinl linkage" >&5
6154     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
6155       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
6156   echo $ac_n "(cached) $ac_c" 1>&6
6157 else
6158   
6159         cat > conftest.$ac_ext <<EOF
6160 #line 6161 "configure"
6161 #include "confdefs.h"
6162 #include <math.h>
6163 int main() {
6164  __builtin_sinl(0);
6165 ; return 0; }
6166 EOF
6167 if { (eval echo configure:6168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6168   rm -rf conftest*
6169   glibcpp_cv_func___builtin_sinl_link=yes
6170 else
6171   echo "configure: failed program was:" >&5
6172   cat conftest.$ac_ext >&5
6173   rm -rf conftest*
6174   glibcpp_cv_func___builtin_sinl_link=no
6175 fi
6176 rm -f conftest*
6177       
6178 fi
6179
6180     fi
6181     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
6182     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
6183       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6184       cat >> confdefs.h <<EOF
6185 #define ${ac_tr_func} 1
6186 EOF
6187
6188     fi
6189   fi
6190
6191
6192   
6193   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
6194 echo "configure:6195: checking for __builtin_cosf declaration" >&5
6195   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
6196     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
6197   echo $ac_n "(cached) $ac_c" 1>&6
6198 else
6199   
6200       
6201       ac_ext=C
6202 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6203 ac_cpp='$CXXCPP $CPPFLAGS'
6204 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6205 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6206 cross_compiling=$ac_cv_prog_cxx_cross
6207
6208       cat > conftest.$ac_ext <<EOF
6209 #line 6210 "configure"
6210 #include "confdefs.h"
6211 #include <math.h>
6212 int main() {
6213  __builtin_cosf(0);
6214 ; return 0; }
6215 EOF
6216 if { (eval echo configure:6217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6217   rm -rf conftest*
6218   glibcpp_cv_func___builtin_cosf_use=yes
6219 else
6220   echo "configure: failed program was:" >&5
6221   cat conftest.$ac_ext >&5
6222   rm -rf conftest*
6223   glibcpp_cv_func___builtin_cosf_use=no
6224 fi
6225 rm -f conftest*
6226       ac_ext=c
6227 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6228 ac_cpp='$CPP $CPPFLAGS'
6229 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6230 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6231 cross_compiling=$ac_cv_prog_cc_cross
6232
6233     
6234 fi
6235
6236   fi
6237   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
6238   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
6239     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
6240 echo "configure:6241: checking for __builtin_cosf linkage" >&5
6241     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
6242       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
6243   echo $ac_n "(cached) $ac_c" 1>&6
6244 else
6245   
6246         cat > conftest.$ac_ext <<EOF
6247 #line 6248 "configure"
6248 #include "confdefs.h"
6249 #include <math.h>
6250 int main() {
6251  __builtin_cosf(0);
6252 ; return 0; }
6253 EOF
6254 if { (eval echo configure:6255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6255   rm -rf conftest*
6256   glibcpp_cv_func___builtin_cosf_link=yes
6257 else
6258   echo "configure: failed program was:" >&5
6259   cat conftest.$ac_ext >&5
6260   rm -rf conftest*
6261   glibcpp_cv_func___builtin_cosf_link=no
6262 fi
6263 rm -f conftest*
6264       
6265 fi
6266
6267     fi
6268     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
6269     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
6270       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6271       cat >> confdefs.h <<EOF
6272 #define ${ac_tr_func} 1
6273 EOF
6274
6275     fi
6276   fi
6277
6278   
6279   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
6280 echo "configure:6281: checking for __builtin_cos declaration" >&5
6281   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
6282     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
6283   echo $ac_n "(cached) $ac_c" 1>&6
6284 else
6285   
6286       
6287       ac_ext=C
6288 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6289 ac_cpp='$CXXCPP $CPPFLAGS'
6290 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6291 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6292 cross_compiling=$ac_cv_prog_cxx_cross
6293
6294       cat > conftest.$ac_ext <<EOF
6295 #line 6296 "configure"
6296 #include "confdefs.h"
6297 #include <math.h>
6298 int main() {
6299  __builtin_cos(0);
6300 ; return 0; }
6301 EOF
6302 if { (eval echo configure:6303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6303   rm -rf conftest*
6304   glibcpp_cv_func___builtin_cos_use=yes
6305 else
6306   echo "configure: failed program was:" >&5
6307   cat conftest.$ac_ext >&5
6308   rm -rf conftest*
6309   glibcpp_cv_func___builtin_cos_use=no
6310 fi
6311 rm -f conftest*
6312       ac_ext=c
6313 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6314 ac_cpp='$CPP $CPPFLAGS'
6315 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6316 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6317 cross_compiling=$ac_cv_prog_cc_cross
6318
6319     
6320 fi
6321
6322   fi
6323   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
6324   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
6325     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
6326 echo "configure:6327: checking for __builtin_cos linkage" >&5
6327     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
6328       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
6329   echo $ac_n "(cached) $ac_c" 1>&6
6330 else
6331   
6332         cat > conftest.$ac_ext <<EOF
6333 #line 6334 "configure"
6334 #include "confdefs.h"
6335 #include <math.h>
6336 int main() {
6337  __builtin_cos(0);
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   glibcpp_cv_func___builtin_cos_link=yes
6343 else
6344   echo "configure: failed program was:" >&5
6345   cat conftest.$ac_ext >&5
6346   rm -rf conftest*
6347   glibcpp_cv_func___builtin_cos_link=no
6348 fi
6349 rm -f conftest*
6350       
6351 fi
6352
6353     fi
6354     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
6355     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
6356       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6357       cat >> confdefs.h <<EOF
6358 #define ${ac_tr_func} 1
6359 EOF
6360
6361     fi
6362   fi
6363
6364   
6365   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
6366 echo "configure:6367: checking for __builtin_cosl declaration" >&5
6367   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
6368     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
6369   echo $ac_n "(cached) $ac_c" 1>&6
6370 else
6371   
6372       
6373       ac_ext=C
6374 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6375 ac_cpp='$CXXCPP $CPPFLAGS'
6376 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6377 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6378 cross_compiling=$ac_cv_prog_cxx_cross
6379
6380       cat > conftest.$ac_ext <<EOF
6381 #line 6382 "configure"
6382 #include "confdefs.h"
6383 #include <math.h>
6384 int main() {
6385  __builtin_cosl(0);
6386 ; return 0; }
6387 EOF
6388 if { (eval echo configure:6389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6389   rm -rf conftest*
6390   glibcpp_cv_func___builtin_cosl_use=yes
6391 else
6392   echo "configure: failed program was:" >&5
6393   cat conftest.$ac_ext >&5
6394   rm -rf conftest*
6395   glibcpp_cv_func___builtin_cosl_use=no
6396 fi
6397 rm -f conftest*
6398       ac_ext=c
6399 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6400 ac_cpp='$CPP $CPPFLAGS'
6401 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6402 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6403 cross_compiling=$ac_cv_prog_cc_cross
6404
6405     
6406 fi
6407
6408   fi
6409   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
6410   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
6411     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
6412 echo "configure:6413: checking for __builtin_cosl linkage" >&5
6413     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
6414       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
6415   echo $ac_n "(cached) $ac_c" 1>&6
6416 else
6417   
6418         cat > conftest.$ac_ext <<EOF
6419 #line 6420 "configure"
6420 #include "confdefs.h"
6421 #include <math.h>
6422 int main() {
6423  __builtin_cosl(0);
6424 ; return 0; }
6425 EOF
6426 if { (eval echo configure:6427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6427   rm -rf conftest*
6428   glibcpp_cv_func___builtin_cosl_link=yes
6429 else
6430   echo "configure: failed program was:" >&5
6431   cat conftest.$ac_ext >&5
6432   rm -rf conftest*
6433   glibcpp_cv_func___builtin_cosl_link=no
6434 fi
6435 rm -f conftest*
6436       
6437 fi
6438
6439     fi
6440     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
6441     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
6442       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6443       cat >> confdefs.h <<EOF
6444 #define ${ac_tr_func} 1
6445 EOF
6446
6447     fi
6448   fi
6449
6450
6451               dummyvar=no
6452   if test x$dummyvar = x"yes"; then
6453     cat >> confdefs.h <<\EOF
6454 #define HAVE___BUILTIN_ABS 1
6455 EOF
6456
6457     cat >> confdefs.h <<\EOF
6458 #define HAVE___BUILTIN_LABS 1
6459 EOF
6460
6461     cat >> confdefs.h <<\EOF
6462 #define HAVE___BUILTIN_COS 1
6463 EOF
6464
6465     cat >> confdefs.h <<\EOF
6466 #define HAVE___BUILTIN_COSF 1
6467 EOF
6468
6469     cat >> confdefs.h <<\EOF
6470 #define HAVE___BUILTIN_COSL 1
6471 EOF
6472
6473     cat >> confdefs.h <<\EOF
6474 #define HAVE___BUILTIN_FABS 1
6475 EOF
6476
6477     cat >> confdefs.h <<\EOF
6478 #define HAVE___BUILTIN_FABSF 1
6479 EOF
6480
6481     cat >> confdefs.h <<\EOF
6482 #define HAVE___BUILTIN_FABSL 1
6483 EOF
6484
6485     cat >> confdefs.h <<\EOF
6486 #define HAVE___BUILTIN_SIN 1
6487 EOF
6488
6489     cat >> confdefs.h <<\EOF
6490 #define HAVE___BUILTIN_SINF 1
6491 EOF
6492
6493     cat >> confdefs.h <<\EOF
6494 #define HAVE___BUILTIN_SINL 1
6495 EOF
6496
6497     cat >> confdefs.h <<\EOF
6498 #define HAVE___BUILTIN_FSQRT 1
6499 EOF
6500
6501     cat >> confdefs.h <<\EOF
6502 #define HAVE___BUILTIN_SQRTF 1
6503 EOF
6504
6505     cat >> confdefs.h <<\EOF
6506 #define HAVE___BUILTIN_SQRTL 1
6507 EOF
6508
6509   fi
6510
6511   
6512   ac_test_CXXFLAGS="${CXXFLAGS+set}"
6513   ac_save_CXXFLAGS="$CXXFLAGS"
6514   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
6515
6516     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
6517 echo "configure:6518: checking for sin in -lm" >&5
6518 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
6519 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6520   echo $ac_n "(cached) $ac_c" 1>&6
6521 else
6522   ac_save_LIBS="$LIBS"
6523 LIBS="-lm  $LIBS"
6524 cat > conftest.$ac_ext <<EOF
6525 #line 6526 "configure"
6526 #include "confdefs.h"
6527 /* Override any gcc2 internal prototype to avoid an error.  */
6528 /* We use char because int might match the return type of a gcc2
6529     builtin and then its argument prototype would still apply.  */
6530 char sin();
6531
6532 int main() {
6533 sin()
6534 ; return 0; }
6535 EOF
6536 if { (eval echo configure:6537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6537   rm -rf conftest*
6538   eval "ac_cv_lib_$ac_lib_var=yes"
6539 else
6540   echo "configure: failed program was:" >&5
6541   cat conftest.$ac_ext >&5
6542   rm -rf conftest*
6543   eval "ac_cv_lib_$ac_lib_var=no"
6544 fi
6545 rm -f conftest*
6546 LIBS="$ac_save_LIBS"
6547
6548 fi
6549 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6550   echo "$ac_t""yes" 1>&6
6551   libm="-lm"
6552 else
6553   echo "$ac_t""no" 1>&6
6554 fi
6555
6556   ac_save_LIBS="$LIBS"
6557   LIBS="$LIBS $libm"
6558
6559     
6560   
6561   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
6562 echo "configure:6563: checking for isinf declaration" >&5
6563   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
6564     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
6565   echo $ac_n "(cached) $ac_c" 1>&6
6566 else
6567   
6568       
6569       ac_ext=C
6570 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6571 ac_cpp='$CXXCPP $CPPFLAGS'
6572 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6573 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6574 cross_compiling=$ac_cv_prog_cxx_cross
6575
6576       cat > conftest.$ac_ext <<EOF
6577 #line 6578 "configure"
6578 #include "confdefs.h"
6579 #include <math.h>
6580                       #ifdef HAVE_IEEEFP_H
6581                       #include <ieeefp.h>
6582                       #endif
6583                      
6584 int main() {
6585  isinf(0);
6586 ; return 0; }
6587 EOF
6588 if { (eval echo configure:6589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6589   rm -rf conftest*
6590   glibcpp_cv_func_isinf_use=yes
6591 else
6592   echo "configure: failed program was:" >&5
6593   cat conftest.$ac_ext >&5
6594   rm -rf conftest*
6595   glibcpp_cv_func_isinf_use=no
6596 fi
6597 rm -f conftest*
6598       ac_ext=c
6599 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6600 ac_cpp='$CPP $CPPFLAGS'
6601 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6602 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6603 cross_compiling=$ac_cv_prog_cc_cross
6604
6605     
6606 fi
6607
6608   fi
6609   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
6610
6611   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
6612     for ac_func in isinf
6613 do
6614 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6615 echo "configure:6616: checking for $ac_func" >&5
6616 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6617   echo $ac_n "(cached) $ac_c" 1>&6
6618 else
6619   cat > conftest.$ac_ext <<EOF
6620 #line 6621 "configure"
6621 #include "confdefs.h"
6622 /* System header to define __stub macros and hopefully few prototypes,
6623     which can conflict with char $ac_func(); below.  */
6624 #include <assert.h>
6625 /* Override any gcc2 internal prototype to avoid an error.  */
6626 /* We use char because int might match the return type of a gcc2
6627     builtin and then its argument prototype would still apply.  */
6628 char $ac_func();
6629
6630 int main() {
6631
6632 /* The GNU C library defines this for functions which it implements
6633     to always fail with ENOSYS.  Some functions are actually named
6634     something starting with __ and the normal name is an alias.  */
6635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6636 choke me
6637 #else
6638 $ac_func();
6639 #endif
6640
6641 ; return 0; }
6642 EOF
6643 if { (eval echo configure:6644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6644   rm -rf conftest*
6645   eval "ac_cv_func_$ac_func=yes"
6646 else
6647   echo "configure: failed program was:" >&5
6648   cat conftest.$ac_ext >&5
6649   rm -rf conftest*
6650   eval "ac_cv_func_$ac_func=no"
6651 fi
6652 rm -f conftest*
6653 fi
6654
6655 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6656   echo "$ac_t""yes" 1>&6
6657     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6658   cat >> confdefs.h <<EOF
6659 #define $ac_tr_func 1
6660 EOF
6661  
6662 else
6663   echo "$ac_t""no" 1>&6
6664 fi
6665 done
6666     
6667   else
6668     
6669   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
6670 echo "configure:6671: checking for _isinf declaration" >&5
6671   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
6672     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
6673   echo $ac_n "(cached) $ac_c" 1>&6
6674 else
6675   
6676       
6677       ac_ext=C
6678 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6679 ac_cpp='$CXXCPP $CPPFLAGS'
6680 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6681 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6682 cross_compiling=$ac_cv_prog_cxx_cross
6683
6684       cat > conftest.$ac_ext <<EOF
6685 #line 6686 "configure"
6686 #include "confdefs.h"
6687 #include <math.h>
6688                       #ifdef HAVE_IEEEFP_H
6689                       #include <ieeefp.h>
6690                       #endif
6691                      
6692 int main() {
6693  _isinf(0);
6694 ; return 0; }
6695 EOF
6696 if { (eval echo configure:6697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6697   rm -rf conftest*
6698   glibcpp_cv_func__isinf_use=yes
6699 else
6700   echo "configure: failed program was:" >&5
6701   cat conftest.$ac_ext >&5
6702   rm -rf conftest*
6703   glibcpp_cv_func__isinf_use=no
6704 fi
6705 rm -f conftest*
6706       ac_ext=c
6707 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6708 ac_cpp='$CPP $CPPFLAGS'
6709 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6710 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6711 cross_compiling=$ac_cv_prog_cc_cross
6712
6713     
6714 fi
6715
6716   fi
6717   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
6718
6719     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
6720       for ac_func in _isinf
6721 do
6722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6723 echo "configure:6724: checking for $ac_func" >&5
6724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6725   echo $ac_n "(cached) $ac_c" 1>&6
6726 else
6727   cat > conftest.$ac_ext <<EOF
6728 #line 6729 "configure"
6729 #include "confdefs.h"
6730 /* System header to define __stub macros and hopefully few prototypes,
6731     which can conflict with char $ac_func(); below.  */
6732 #include <assert.h>
6733 /* Override any gcc2 internal prototype to avoid an error.  */
6734 /* We use char because int might match the return type of a gcc2
6735     builtin and then its argument prototype would still apply.  */
6736 char $ac_func();
6737
6738 int main() {
6739
6740 /* The GNU C library defines this for functions which it implements
6741     to always fail with ENOSYS.  Some functions are actually named
6742     something starting with __ and the normal name is an alias.  */
6743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6744 choke me
6745 #else
6746 $ac_func();
6747 #endif
6748
6749 ; return 0; }
6750 EOF
6751 if { (eval echo configure:6752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6752   rm -rf conftest*
6753   eval "ac_cv_func_$ac_func=yes"
6754 else
6755   echo "configure: failed program was:" >&5
6756   cat conftest.$ac_ext >&5
6757   rm -rf conftest*
6758   eval "ac_cv_func_$ac_func=no"
6759 fi
6760 rm -f conftest*
6761 fi
6762
6763 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6764   echo "$ac_t""yes" 1>&6
6765     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6766   cat >> confdefs.h <<EOF
6767 #define $ac_tr_func 1
6768 EOF
6769  
6770 else
6771   echo "$ac_t""no" 1>&6
6772 fi
6773 done
6774     
6775     fi
6776   fi
6777
6778   
6779   
6780   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
6781 echo "configure:6782: checking for isnan declaration" >&5
6782   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
6783     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
6784   echo $ac_n "(cached) $ac_c" 1>&6
6785 else
6786   
6787       
6788       ac_ext=C
6789 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6790 ac_cpp='$CXXCPP $CPPFLAGS'
6791 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6792 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6793 cross_compiling=$ac_cv_prog_cxx_cross
6794
6795       cat > conftest.$ac_ext <<EOF
6796 #line 6797 "configure"
6797 #include "confdefs.h"
6798 #include <math.h>
6799                       #ifdef HAVE_IEEEFP_H
6800                       #include <ieeefp.h>
6801                       #endif
6802                      
6803 int main() {
6804  isnan(0);
6805 ; return 0; }
6806 EOF
6807 if { (eval echo configure:6808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6808   rm -rf conftest*
6809   glibcpp_cv_func_isnan_use=yes
6810 else
6811   echo "configure: failed program was:" >&5
6812   cat conftest.$ac_ext >&5
6813   rm -rf conftest*
6814   glibcpp_cv_func_isnan_use=no
6815 fi
6816 rm -f conftest*
6817       ac_ext=c
6818 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6819 ac_cpp='$CPP $CPPFLAGS'
6820 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6821 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6822 cross_compiling=$ac_cv_prog_cc_cross
6823
6824     
6825 fi
6826
6827   fi
6828   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
6829
6830   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
6831     for ac_func in isnan
6832 do
6833 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6834 echo "configure:6835: checking for $ac_func" >&5
6835 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6836   echo $ac_n "(cached) $ac_c" 1>&6
6837 else
6838   cat > conftest.$ac_ext <<EOF
6839 #line 6840 "configure"
6840 #include "confdefs.h"
6841 /* System header to define __stub macros and hopefully few prototypes,
6842     which can conflict with char $ac_func(); below.  */
6843 #include <assert.h>
6844 /* Override any gcc2 internal prototype to avoid an error.  */
6845 /* We use char because int might match the return type of a gcc2
6846     builtin and then its argument prototype would still apply.  */
6847 char $ac_func();
6848
6849 int main() {
6850
6851 /* The GNU C library defines this for functions which it implements
6852     to always fail with ENOSYS.  Some functions are actually named
6853     something starting with __ and the normal name is an alias.  */
6854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6855 choke me
6856 #else
6857 $ac_func();
6858 #endif
6859
6860 ; return 0; }
6861 EOF
6862 if { (eval echo configure:6863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6863   rm -rf conftest*
6864   eval "ac_cv_func_$ac_func=yes"
6865 else
6866   echo "configure: failed program was:" >&5
6867   cat conftest.$ac_ext >&5
6868   rm -rf conftest*
6869   eval "ac_cv_func_$ac_func=no"
6870 fi
6871 rm -f conftest*
6872 fi
6873
6874 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6875   echo "$ac_t""yes" 1>&6
6876     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6877   cat >> confdefs.h <<EOF
6878 #define $ac_tr_func 1
6879 EOF
6880  
6881 else
6882   echo "$ac_t""no" 1>&6
6883 fi
6884 done
6885     
6886   else
6887     
6888   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
6889 echo "configure:6890: checking for _isnan declaration" >&5
6890   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
6891     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
6892   echo $ac_n "(cached) $ac_c" 1>&6
6893 else
6894   
6895       
6896       ac_ext=C
6897 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6898 ac_cpp='$CXXCPP $CPPFLAGS'
6899 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6900 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6901 cross_compiling=$ac_cv_prog_cxx_cross
6902
6903       cat > conftest.$ac_ext <<EOF
6904 #line 6905 "configure"
6905 #include "confdefs.h"
6906 #include <math.h>
6907                       #ifdef HAVE_IEEEFP_H
6908                       #include <ieeefp.h>
6909                       #endif
6910                      
6911 int main() {
6912  _isnan(0);
6913 ; return 0; }
6914 EOF
6915 if { (eval echo configure:6916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6916   rm -rf conftest*
6917   glibcpp_cv_func__isnan_use=yes
6918 else
6919   echo "configure: failed program was:" >&5
6920   cat conftest.$ac_ext >&5
6921   rm -rf conftest*
6922   glibcpp_cv_func__isnan_use=no
6923 fi
6924 rm -f conftest*
6925       ac_ext=c
6926 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6927 ac_cpp='$CPP $CPPFLAGS'
6928 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6929 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6930 cross_compiling=$ac_cv_prog_cc_cross
6931
6932     
6933 fi
6934
6935   fi
6936   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
6937
6938     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
6939       for ac_func in _isnan
6940 do
6941 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6942 echo "configure:6943: checking for $ac_func" >&5
6943 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6944   echo $ac_n "(cached) $ac_c" 1>&6
6945 else
6946   cat > conftest.$ac_ext <<EOF
6947 #line 6948 "configure"
6948 #include "confdefs.h"
6949 /* System header to define __stub macros and hopefully few prototypes,
6950     which can conflict with char $ac_func(); below.  */
6951 #include <assert.h>
6952 /* Override any gcc2 internal prototype to avoid an error.  */
6953 /* We use char because int might match the return type of a gcc2
6954     builtin and then its argument prototype would still apply.  */
6955 char $ac_func();
6956
6957 int main() {
6958
6959 /* The GNU C library defines this for functions which it implements
6960     to always fail with ENOSYS.  Some functions are actually named
6961     something starting with __ and the normal name is an alias.  */
6962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6963 choke me
6964 #else
6965 $ac_func();
6966 #endif
6967
6968 ; return 0; }
6969 EOF
6970 if { (eval echo configure:6971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6971   rm -rf conftest*
6972   eval "ac_cv_func_$ac_func=yes"
6973 else
6974   echo "configure: failed program was:" >&5
6975   cat conftest.$ac_ext >&5
6976   rm -rf conftest*
6977   eval "ac_cv_func_$ac_func=no"
6978 fi
6979 rm -f conftest*
6980 fi
6981
6982 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6983   echo "$ac_t""yes" 1>&6
6984     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6985   cat >> confdefs.h <<EOF
6986 #define $ac_tr_func 1
6987 EOF
6988  
6989 else
6990   echo "$ac_t""no" 1>&6
6991 fi
6992 done
6993     
6994     fi
6995   fi
6996
6997   
6998   
6999   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
7000 echo "configure:7001: checking for finite declaration" >&5
7001   if test x${glibcpp_cv_func_finite_use+set} != xset; then
7002     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
7003   echo $ac_n "(cached) $ac_c" 1>&6
7004 else
7005   
7006       
7007       ac_ext=C
7008 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7009 ac_cpp='$CXXCPP $CPPFLAGS'
7010 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7011 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7012 cross_compiling=$ac_cv_prog_cxx_cross
7013
7014       cat > conftest.$ac_ext <<EOF
7015 #line 7016 "configure"
7016 #include "confdefs.h"
7017 #include <math.h>
7018                       #ifdef HAVE_IEEEFP_H
7019                       #include <ieeefp.h>
7020                       #endif
7021                      
7022 int main() {
7023  finite(0);
7024 ; return 0; }
7025 EOF
7026 if { (eval echo configure:7027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7027   rm -rf conftest*
7028   glibcpp_cv_func_finite_use=yes
7029 else
7030   echo "configure: failed program was:" >&5
7031   cat conftest.$ac_ext >&5
7032   rm -rf conftest*
7033   glibcpp_cv_func_finite_use=no
7034 fi
7035 rm -f conftest*
7036       ac_ext=c
7037 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7038 ac_cpp='$CPP $CPPFLAGS'
7039 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7040 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7041 cross_compiling=$ac_cv_prog_cc_cross
7042
7043     
7044 fi
7045
7046   fi
7047   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
7048
7049   if test x$glibcpp_cv_func_finite_use = x"yes"; then
7050     for ac_func in finite
7051 do
7052 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7053 echo "configure:7054: checking for $ac_func" >&5
7054 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7055   echo $ac_n "(cached) $ac_c" 1>&6
7056 else
7057   cat > conftest.$ac_ext <<EOF
7058 #line 7059 "configure"
7059 #include "confdefs.h"
7060 /* System header to define __stub macros and hopefully few prototypes,
7061     which can conflict with char $ac_func(); below.  */
7062 #include <assert.h>
7063 /* Override any gcc2 internal prototype to avoid an error.  */
7064 /* We use char because int might match the return type of a gcc2
7065     builtin and then its argument prototype would still apply.  */
7066 char $ac_func();
7067
7068 int main() {
7069
7070 /* The GNU C library defines this for functions which it implements
7071     to always fail with ENOSYS.  Some functions are actually named
7072     something starting with __ and the normal name is an alias.  */
7073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7074 choke me
7075 #else
7076 $ac_func();
7077 #endif
7078
7079 ; return 0; }
7080 EOF
7081 if { (eval echo configure:7082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7082   rm -rf conftest*
7083   eval "ac_cv_func_$ac_func=yes"
7084 else
7085   echo "configure: failed program was:" >&5
7086   cat conftest.$ac_ext >&5
7087   rm -rf conftest*
7088   eval "ac_cv_func_$ac_func=no"
7089 fi
7090 rm -f conftest*
7091 fi
7092
7093 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7094   echo "$ac_t""yes" 1>&6
7095     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7096   cat >> confdefs.h <<EOF
7097 #define $ac_tr_func 1
7098 EOF
7099  
7100 else
7101   echo "$ac_t""no" 1>&6
7102 fi
7103 done
7104     
7105   else
7106     
7107   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
7108 echo "configure:7109: checking for _finite declaration" >&5
7109   if test x${glibcpp_cv_func__finite_use+set} != xset; then
7110     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
7111   echo $ac_n "(cached) $ac_c" 1>&6
7112 else
7113   
7114       
7115       ac_ext=C
7116 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7117 ac_cpp='$CXXCPP $CPPFLAGS'
7118 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7119 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7120 cross_compiling=$ac_cv_prog_cxx_cross
7121
7122       cat > conftest.$ac_ext <<EOF
7123 #line 7124 "configure"
7124 #include "confdefs.h"
7125 #include <math.h>
7126                       #ifdef HAVE_IEEEFP_H
7127                       #include <ieeefp.h>
7128                       #endif
7129                      
7130 int main() {
7131  _finite(0);
7132 ; return 0; }
7133 EOF
7134 if { (eval echo configure:7135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7135   rm -rf conftest*
7136   glibcpp_cv_func__finite_use=yes
7137 else
7138   echo "configure: failed program was:" >&5
7139   cat conftest.$ac_ext >&5
7140   rm -rf conftest*
7141   glibcpp_cv_func__finite_use=no
7142 fi
7143 rm -f conftest*
7144       ac_ext=c
7145 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7146 ac_cpp='$CPP $CPPFLAGS'
7147 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7148 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7149 cross_compiling=$ac_cv_prog_cc_cross
7150
7151     
7152 fi
7153
7154   fi
7155   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
7156
7157     if test x$glibcpp_cv_func__finite_use = x"yes"; then
7158       for ac_func in _finite
7159 do
7160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7161 echo "configure:7162: checking for $ac_func" >&5
7162 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7163   echo $ac_n "(cached) $ac_c" 1>&6
7164 else
7165   cat > conftest.$ac_ext <<EOF
7166 #line 7167 "configure"
7167 #include "confdefs.h"
7168 /* System header to define __stub macros and hopefully few prototypes,
7169     which can conflict with char $ac_func(); below.  */
7170 #include <assert.h>
7171 /* Override any gcc2 internal prototype to avoid an error.  */
7172 /* We use char because int might match the return type of a gcc2
7173     builtin and then its argument prototype would still apply.  */
7174 char $ac_func();
7175
7176 int main() {
7177
7178 /* The GNU C library defines this for functions which it implements
7179     to always fail with ENOSYS.  Some functions are actually named
7180     something starting with __ and the normal name is an alias.  */
7181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7182 choke me
7183 #else
7184 $ac_func();
7185 #endif
7186
7187 ; return 0; }
7188 EOF
7189 if { (eval echo configure:7190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7190   rm -rf conftest*
7191   eval "ac_cv_func_$ac_func=yes"
7192 else
7193   echo "configure: failed program was:" >&5
7194   cat conftest.$ac_ext >&5
7195   rm -rf conftest*
7196   eval "ac_cv_func_$ac_func=no"
7197 fi
7198 rm -f conftest*
7199 fi
7200
7201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7202   echo "$ac_t""yes" 1>&6
7203     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7204   cat >> confdefs.h <<EOF
7205 #define $ac_tr_func 1
7206 EOF
7207  
7208 else
7209   echo "$ac_t""no" 1>&6
7210 fi
7211 done
7212     
7213     fi
7214   fi
7215
7216   
7217   
7218   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
7219 echo "configure:7220: checking for copysign declaration" >&5
7220   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
7221     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
7222   echo $ac_n "(cached) $ac_c" 1>&6
7223 else
7224   
7225       
7226       ac_ext=C
7227 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7228 ac_cpp='$CXXCPP $CPPFLAGS'
7229 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7230 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7231 cross_compiling=$ac_cv_prog_cxx_cross
7232
7233       cat > conftest.$ac_ext <<EOF
7234 #line 7235 "configure"
7235 #include "confdefs.h"
7236 #include <math.h>
7237 int main() {
7238  copysign(0, 0);
7239 ; return 0; }
7240 EOF
7241 if { (eval echo configure:7242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7242   rm -rf conftest*
7243   glibcpp_cv_func_copysign_use=yes
7244 else
7245   echo "configure: failed program was:" >&5
7246   cat conftest.$ac_ext >&5
7247   rm -rf conftest*
7248   glibcpp_cv_func_copysign_use=no
7249 fi
7250 rm -f conftest*
7251       ac_ext=c
7252 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7253 ac_cpp='$CPP $CPPFLAGS'
7254 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7255 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7256 cross_compiling=$ac_cv_prog_cc_cross
7257
7258     
7259 fi
7260
7261   fi
7262   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
7263
7264   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
7265     for ac_func in copysign
7266 do
7267 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7268 echo "configure:7269: checking for $ac_func" >&5
7269 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7270   echo $ac_n "(cached) $ac_c" 1>&6
7271 else
7272   cat > conftest.$ac_ext <<EOF
7273 #line 7274 "configure"
7274 #include "confdefs.h"
7275 /* System header to define __stub macros and hopefully few prototypes,
7276     which can conflict with char $ac_func(); below.  */
7277 #include <assert.h>
7278 /* Override any gcc2 internal prototype to avoid an error.  */
7279 /* We use char because int might match the return type of a gcc2
7280     builtin and then its argument prototype would still apply.  */
7281 char $ac_func();
7282
7283 int main() {
7284
7285 /* The GNU C library defines this for functions which it implements
7286     to always fail with ENOSYS.  Some functions are actually named
7287     something starting with __ and the normal name is an alias.  */
7288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7289 choke me
7290 #else
7291 $ac_func();
7292 #endif
7293
7294 ; return 0; }
7295 EOF
7296 if { (eval echo configure:7297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7297   rm -rf conftest*
7298   eval "ac_cv_func_$ac_func=yes"
7299 else
7300   echo "configure: failed program was:" >&5
7301   cat conftest.$ac_ext >&5
7302   rm -rf conftest*
7303   eval "ac_cv_func_$ac_func=no"
7304 fi
7305 rm -f conftest*
7306 fi
7307
7308 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7309   echo "$ac_t""yes" 1>&6
7310     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7311   cat >> confdefs.h <<EOF
7312 #define $ac_tr_func 1
7313 EOF
7314  
7315 else
7316   echo "$ac_t""no" 1>&6
7317 fi
7318 done
7319     
7320   else
7321     
7322   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
7323 echo "configure:7324: checking for _copysign declaration" >&5
7324   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
7325     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
7326   echo $ac_n "(cached) $ac_c" 1>&6
7327 else
7328   
7329       
7330       ac_ext=C
7331 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7332 ac_cpp='$CXXCPP $CPPFLAGS'
7333 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7334 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7335 cross_compiling=$ac_cv_prog_cxx_cross
7336
7337       cat > conftest.$ac_ext <<EOF
7338 #line 7339 "configure"
7339 #include "confdefs.h"
7340 #include <math.h>
7341 int main() {
7342  _copysign(0, 0);
7343 ; return 0; }
7344 EOF
7345 if { (eval echo configure:7346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7346   rm -rf conftest*
7347   glibcpp_cv_func__copysign_use=yes
7348 else
7349   echo "configure: failed program was:" >&5
7350   cat conftest.$ac_ext >&5
7351   rm -rf conftest*
7352   glibcpp_cv_func__copysign_use=no
7353 fi
7354 rm -f conftest*
7355       ac_ext=c
7356 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7357 ac_cpp='$CPP $CPPFLAGS'
7358 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7359 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7360 cross_compiling=$ac_cv_prog_cc_cross
7361
7362     
7363 fi
7364
7365   fi
7366   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
7367
7368     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
7369       for ac_func in _copysign
7370 do
7371 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7372 echo "configure:7373: checking for $ac_func" >&5
7373 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7374   echo $ac_n "(cached) $ac_c" 1>&6
7375 else
7376   cat > conftest.$ac_ext <<EOF
7377 #line 7378 "configure"
7378 #include "confdefs.h"
7379 /* System header to define __stub macros and hopefully few prototypes,
7380     which can conflict with char $ac_func(); below.  */
7381 #include <assert.h>
7382 /* Override any gcc2 internal prototype to avoid an error.  */
7383 /* We use char because int might match the return type of a gcc2
7384     builtin and then its argument prototype would still apply.  */
7385 char $ac_func();
7386
7387 int main() {
7388
7389 /* The GNU C library defines this for functions which it implements
7390     to always fail with ENOSYS.  Some functions are actually named
7391     something starting with __ and the normal name is an alias.  */
7392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7393 choke me
7394 #else
7395 $ac_func();
7396 #endif
7397
7398 ; return 0; }
7399 EOF
7400 if { (eval echo configure:7401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7401   rm -rf conftest*
7402   eval "ac_cv_func_$ac_func=yes"
7403 else
7404   echo "configure: failed program was:" >&5
7405   cat conftest.$ac_ext >&5
7406   rm -rf conftest*
7407   eval "ac_cv_func_$ac_func=no"
7408 fi
7409 rm -f conftest*
7410 fi
7411
7412 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7413   echo "$ac_t""yes" 1>&6
7414     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7415   cat >> confdefs.h <<EOF
7416 #define $ac_tr_func 1
7417 EOF
7418  
7419 else
7420   echo "$ac_t""no" 1>&6
7421 fi
7422 done
7423     
7424     fi
7425   fi
7426
7427   
7428   
7429   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
7430 echo "configure:7431: checking for sincos declaration" >&5
7431   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
7432     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
7433   echo $ac_n "(cached) $ac_c" 1>&6
7434 else
7435   
7436       
7437       ac_ext=C
7438 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7439 ac_cpp='$CXXCPP $CPPFLAGS'
7440 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7441 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7442 cross_compiling=$ac_cv_prog_cxx_cross
7443
7444       cat > conftest.$ac_ext <<EOF
7445 #line 7446 "configure"
7446 #include "confdefs.h"
7447 #include <math.h>
7448 int main() {
7449  sincos(0, 0, 0);
7450 ; return 0; }
7451 EOF
7452 if { (eval echo configure:7453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7453   rm -rf conftest*
7454   glibcpp_cv_func_sincos_use=yes
7455 else
7456   echo "configure: failed program was:" >&5
7457   cat conftest.$ac_ext >&5
7458   rm -rf conftest*
7459   glibcpp_cv_func_sincos_use=no
7460 fi
7461 rm -f conftest*
7462       ac_ext=c
7463 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7464 ac_cpp='$CPP $CPPFLAGS'
7465 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7466 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7467 cross_compiling=$ac_cv_prog_cc_cross
7468
7469     
7470 fi
7471
7472   fi
7473   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
7474
7475   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
7476     for ac_func in sincos
7477 do
7478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7479 echo "configure:7480: checking for $ac_func" >&5
7480 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7481   echo $ac_n "(cached) $ac_c" 1>&6
7482 else
7483   cat > conftest.$ac_ext <<EOF
7484 #line 7485 "configure"
7485 #include "confdefs.h"
7486 /* System header to define __stub macros and hopefully few prototypes,
7487     which can conflict with char $ac_func(); below.  */
7488 #include <assert.h>
7489 /* Override any gcc2 internal prototype to avoid an error.  */
7490 /* We use char because int might match the return type of a gcc2
7491     builtin and then its argument prototype would still apply.  */
7492 char $ac_func();
7493
7494 int main() {
7495
7496 /* The GNU C library defines this for functions which it implements
7497     to always fail with ENOSYS.  Some functions are actually named
7498     something starting with __ and the normal name is an alias.  */
7499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7500 choke me
7501 #else
7502 $ac_func();
7503 #endif
7504
7505 ; return 0; }
7506 EOF
7507 if { (eval echo configure:7508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7508   rm -rf conftest*
7509   eval "ac_cv_func_$ac_func=yes"
7510 else
7511   echo "configure: failed program was:" >&5
7512   cat conftest.$ac_ext >&5
7513   rm -rf conftest*
7514   eval "ac_cv_func_$ac_func=no"
7515 fi
7516 rm -f conftest*
7517 fi
7518
7519 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7520   echo "$ac_t""yes" 1>&6
7521     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7522   cat >> confdefs.h <<EOF
7523 #define $ac_tr_func 1
7524 EOF
7525  
7526 else
7527   echo "$ac_t""no" 1>&6
7528 fi
7529 done
7530     
7531   else
7532     
7533   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
7534 echo "configure:7535: checking for _sincos declaration" >&5
7535   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
7536     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
7537   echo $ac_n "(cached) $ac_c" 1>&6
7538 else
7539   
7540       
7541       ac_ext=C
7542 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7543 ac_cpp='$CXXCPP $CPPFLAGS'
7544 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7545 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7546 cross_compiling=$ac_cv_prog_cxx_cross
7547
7548       cat > conftest.$ac_ext <<EOF
7549 #line 7550 "configure"
7550 #include "confdefs.h"
7551 #include <math.h>
7552 int main() {
7553  _sincos(0, 0, 0);
7554 ; return 0; }
7555 EOF
7556 if { (eval echo configure:7557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7557   rm -rf conftest*
7558   glibcpp_cv_func__sincos_use=yes
7559 else
7560   echo "configure: failed program was:" >&5
7561   cat conftest.$ac_ext >&5
7562   rm -rf conftest*
7563   glibcpp_cv_func__sincos_use=no
7564 fi
7565 rm -f conftest*
7566       ac_ext=c
7567 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7568 ac_cpp='$CPP $CPPFLAGS'
7569 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7570 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7571 cross_compiling=$ac_cv_prog_cc_cross
7572
7573     
7574 fi
7575
7576   fi
7577   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
7578
7579     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
7580       for ac_func in _sincos
7581 do
7582 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7583 echo "configure:7584: checking for $ac_func" >&5
7584 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7585   echo $ac_n "(cached) $ac_c" 1>&6
7586 else
7587   cat > conftest.$ac_ext <<EOF
7588 #line 7589 "configure"
7589 #include "confdefs.h"
7590 /* System header to define __stub macros and hopefully few prototypes,
7591     which can conflict with char $ac_func(); below.  */
7592 #include <assert.h>
7593 /* Override any gcc2 internal prototype to avoid an error.  */
7594 /* We use char because int might match the return type of a gcc2
7595     builtin and then its argument prototype would still apply.  */
7596 char $ac_func();
7597
7598 int main() {
7599
7600 /* The GNU C library defines this for functions which it implements
7601     to always fail with ENOSYS.  Some functions are actually named
7602     something starting with __ and the normal name is an alias.  */
7603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7604 choke me
7605 #else
7606 $ac_func();
7607 #endif
7608
7609 ; return 0; }
7610 EOF
7611 if { (eval echo configure:7612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7612   rm -rf conftest*
7613   eval "ac_cv_func_$ac_func=yes"
7614 else
7615   echo "configure: failed program was:" >&5
7616   cat conftest.$ac_ext >&5
7617   rm -rf conftest*
7618   eval "ac_cv_func_$ac_func=no"
7619 fi
7620 rm -f conftest*
7621 fi
7622
7623 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7624   echo "$ac_t""yes" 1>&6
7625     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7626   cat >> confdefs.h <<EOF
7627 #define $ac_tr_func 1
7628 EOF
7629  
7630 else
7631   echo "$ac_t""no" 1>&6
7632 fi
7633 done
7634     
7635     fi
7636   fi
7637
7638   
7639   
7640   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
7641 echo "configure:7642: checking for fpclass declaration" >&5
7642   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
7643     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
7644   echo $ac_n "(cached) $ac_c" 1>&6
7645 else
7646   
7647       
7648       ac_ext=C
7649 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7650 ac_cpp='$CXXCPP $CPPFLAGS'
7651 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7652 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7653 cross_compiling=$ac_cv_prog_cxx_cross
7654
7655       cat > conftest.$ac_ext <<EOF
7656 #line 7657 "configure"
7657 #include "confdefs.h"
7658 #include <math.h>
7659                       #ifdef HAVE_IEEEFP_H
7660                       #include <ieeefp.h>
7661                       #endif
7662                      
7663 int main() {
7664  fpclass(0);
7665 ; return 0; }
7666 EOF
7667 if { (eval echo configure:7668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7668   rm -rf conftest*
7669   glibcpp_cv_func_fpclass_use=yes
7670 else
7671   echo "configure: failed program was:" >&5
7672   cat conftest.$ac_ext >&5
7673   rm -rf conftest*
7674   glibcpp_cv_func_fpclass_use=no
7675 fi
7676 rm -f conftest*
7677       ac_ext=c
7678 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7679 ac_cpp='$CPP $CPPFLAGS'
7680 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7681 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7682 cross_compiling=$ac_cv_prog_cc_cross
7683
7684     
7685 fi
7686
7687   fi
7688   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
7689
7690   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
7691     for ac_func in fpclass
7692 do
7693 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7694 echo "configure:7695: checking for $ac_func" >&5
7695 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7696   echo $ac_n "(cached) $ac_c" 1>&6
7697 else
7698   cat > conftest.$ac_ext <<EOF
7699 #line 7700 "configure"
7700 #include "confdefs.h"
7701 /* System header to define __stub macros and hopefully few prototypes,
7702     which can conflict with char $ac_func(); below.  */
7703 #include <assert.h>
7704 /* Override any gcc2 internal prototype to avoid an error.  */
7705 /* We use char because int might match the return type of a gcc2
7706     builtin and then its argument prototype would still apply.  */
7707 char $ac_func();
7708
7709 int main() {
7710
7711 /* The GNU C library defines this for functions which it implements
7712     to always fail with ENOSYS.  Some functions are actually named
7713     something starting with __ and the normal name is an alias.  */
7714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7715 choke me
7716 #else
7717 $ac_func();
7718 #endif
7719
7720 ; return 0; }
7721 EOF
7722 if { (eval echo configure:7723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7723   rm -rf conftest*
7724   eval "ac_cv_func_$ac_func=yes"
7725 else
7726   echo "configure: failed program was:" >&5
7727   cat conftest.$ac_ext >&5
7728   rm -rf conftest*
7729   eval "ac_cv_func_$ac_func=no"
7730 fi
7731 rm -f conftest*
7732 fi
7733
7734 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7735   echo "$ac_t""yes" 1>&6
7736     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7737   cat >> confdefs.h <<EOF
7738 #define $ac_tr_func 1
7739 EOF
7740  
7741 else
7742   echo "$ac_t""no" 1>&6
7743 fi
7744 done
7745     
7746   else
7747     
7748   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
7749 echo "configure:7750: checking for _fpclass declaration" >&5
7750   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
7751     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
7752   echo $ac_n "(cached) $ac_c" 1>&6
7753 else
7754   
7755       
7756       ac_ext=C
7757 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7758 ac_cpp='$CXXCPP $CPPFLAGS'
7759 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7760 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7761 cross_compiling=$ac_cv_prog_cxx_cross
7762
7763       cat > conftest.$ac_ext <<EOF
7764 #line 7765 "configure"
7765 #include "confdefs.h"
7766 #include <math.h>
7767                       #ifdef HAVE_IEEEFP_H
7768                       #include <ieeefp.h>
7769                       #endif
7770                      
7771 int main() {
7772  _fpclass(0);
7773 ; return 0; }
7774 EOF
7775 if { (eval echo configure:7776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7776   rm -rf conftest*
7777   glibcpp_cv_func__fpclass_use=yes
7778 else
7779   echo "configure: failed program was:" >&5
7780   cat conftest.$ac_ext >&5
7781   rm -rf conftest*
7782   glibcpp_cv_func__fpclass_use=no
7783 fi
7784 rm -f conftest*
7785       ac_ext=c
7786 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7787 ac_cpp='$CPP $CPPFLAGS'
7788 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7789 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7790 cross_compiling=$ac_cv_prog_cc_cross
7791
7792     
7793 fi
7794
7795   fi
7796   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
7797
7798     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
7799       for ac_func in _fpclass
7800 do
7801 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7802 echo "configure:7803: checking for $ac_func" >&5
7803 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7804   echo $ac_n "(cached) $ac_c" 1>&6
7805 else
7806   cat > conftest.$ac_ext <<EOF
7807 #line 7808 "configure"
7808 #include "confdefs.h"
7809 /* System header to define __stub macros and hopefully few prototypes,
7810     which can conflict with char $ac_func(); below.  */
7811 #include <assert.h>
7812 /* Override any gcc2 internal prototype to avoid an error.  */
7813 /* We use char because int might match the return type of a gcc2
7814     builtin and then its argument prototype would still apply.  */
7815 char $ac_func();
7816
7817 int main() {
7818
7819 /* The GNU C library defines this for functions which it implements
7820     to always fail with ENOSYS.  Some functions are actually named
7821     something starting with __ and the normal name is an alias.  */
7822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7823 choke me
7824 #else
7825 $ac_func();
7826 #endif
7827
7828 ; return 0; }
7829 EOF
7830 if { (eval echo configure:7831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7831   rm -rf conftest*
7832   eval "ac_cv_func_$ac_func=yes"
7833 else
7834   echo "configure: failed program was:" >&5
7835   cat conftest.$ac_ext >&5
7836   rm -rf conftest*
7837   eval "ac_cv_func_$ac_func=no"
7838 fi
7839 rm -f conftest*
7840 fi
7841
7842 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7843   echo "$ac_t""yes" 1>&6
7844     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7845   cat >> confdefs.h <<EOF
7846 #define $ac_tr_func 1
7847 EOF
7848  
7849 else
7850   echo "$ac_t""no" 1>&6
7851 fi
7852 done
7853     
7854     fi
7855   fi
7856
7857   
7858   
7859   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
7860 echo "configure:7861: checking for qfpclass declaration" >&5
7861   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
7862     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
7863   echo $ac_n "(cached) $ac_c" 1>&6
7864 else
7865   
7866       
7867       ac_ext=C
7868 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7869 ac_cpp='$CXXCPP $CPPFLAGS'
7870 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7871 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7872 cross_compiling=$ac_cv_prog_cxx_cross
7873
7874       cat > conftest.$ac_ext <<EOF
7875 #line 7876 "configure"
7876 #include "confdefs.h"
7877 #include <math.h>
7878                       #ifdef HAVE_IEEEFP_H
7879                       #include <ieeefp.h>
7880                       #endif
7881                      
7882 int main() {
7883  qfpclass(0);
7884 ; return 0; }
7885 EOF
7886 if { (eval echo configure:7887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7887   rm -rf conftest*
7888   glibcpp_cv_func_qfpclass_use=yes
7889 else
7890   echo "configure: failed program was:" >&5
7891   cat conftest.$ac_ext >&5
7892   rm -rf conftest*
7893   glibcpp_cv_func_qfpclass_use=no
7894 fi
7895 rm -f conftest*
7896       ac_ext=c
7897 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7898 ac_cpp='$CPP $CPPFLAGS'
7899 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7900 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7901 cross_compiling=$ac_cv_prog_cc_cross
7902
7903     
7904 fi
7905
7906   fi
7907   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
7908
7909   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
7910     for ac_func in qfpclass
7911 do
7912 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7913 echo "configure:7914: checking for $ac_func" >&5
7914 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7915   echo $ac_n "(cached) $ac_c" 1>&6
7916 else
7917   cat > conftest.$ac_ext <<EOF
7918 #line 7919 "configure"
7919 #include "confdefs.h"
7920 /* System header to define __stub macros and hopefully few prototypes,
7921     which can conflict with char $ac_func(); below.  */
7922 #include <assert.h>
7923 /* Override any gcc2 internal prototype to avoid an error.  */
7924 /* We use char because int might match the return type of a gcc2
7925     builtin and then its argument prototype would still apply.  */
7926 char $ac_func();
7927
7928 int main() {
7929
7930 /* The GNU C library defines this for functions which it implements
7931     to always fail with ENOSYS.  Some functions are actually named
7932     something starting with __ and the normal name is an alias.  */
7933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7934 choke me
7935 #else
7936 $ac_func();
7937 #endif
7938
7939 ; return 0; }
7940 EOF
7941 if { (eval echo configure:7942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7942   rm -rf conftest*
7943   eval "ac_cv_func_$ac_func=yes"
7944 else
7945   echo "configure: failed program was:" >&5
7946   cat conftest.$ac_ext >&5
7947   rm -rf conftest*
7948   eval "ac_cv_func_$ac_func=no"
7949 fi
7950 rm -f conftest*
7951 fi
7952
7953 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7954   echo "$ac_t""yes" 1>&6
7955     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7956   cat >> confdefs.h <<EOF
7957 #define $ac_tr_func 1
7958 EOF
7959  
7960 else
7961   echo "$ac_t""no" 1>&6
7962 fi
7963 done
7964     
7965   else
7966     
7967   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
7968 echo "configure:7969: checking for _qfpclass declaration" >&5
7969   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
7970     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
7971   echo $ac_n "(cached) $ac_c" 1>&6
7972 else
7973   
7974       
7975       ac_ext=C
7976 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7977 ac_cpp='$CXXCPP $CPPFLAGS'
7978 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7979 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7980 cross_compiling=$ac_cv_prog_cxx_cross
7981
7982       cat > conftest.$ac_ext <<EOF
7983 #line 7984 "configure"
7984 #include "confdefs.h"
7985 #include <math.h>
7986                       #ifdef HAVE_IEEEFP_H
7987                       #include <ieeefp.h>
7988                       #endif
7989                      
7990 int main() {
7991  _qfpclass(0);
7992 ; return 0; }
7993 EOF
7994 if { (eval echo configure:7995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7995   rm -rf conftest*
7996   glibcpp_cv_func__qfpclass_use=yes
7997 else
7998   echo "configure: failed program was:" >&5
7999   cat conftest.$ac_ext >&5
8000   rm -rf conftest*
8001   glibcpp_cv_func__qfpclass_use=no
8002 fi
8003 rm -f conftest*
8004       ac_ext=c
8005 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8006 ac_cpp='$CPP $CPPFLAGS'
8007 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8008 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8009 cross_compiling=$ac_cv_prog_cc_cross
8010
8011     
8012 fi
8013
8014   fi
8015   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
8016
8017     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
8018       for ac_func in _qfpclass
8019 do
8020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8021 echo "configure:8022: checking for $ac_func" >&5
8022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8023   echo $ac_n "(cached) $ac_c" 1>&6
8024 else
8025   cat > conftest.$ac_ext <<EOF
8026 #line 8027 "configure"
8027 #include "confdefs.h"
8028 /* System header to define __stub macros and hopefully few prototypes,
8029     which can conflict with char $ac_func(); below.  */
8030 #include <assert.h>
8031 /* Override any gcc2 internal prototype to avoid an error.  */
8032 /* We use char because int might match the return type of a gcc2
8033     builtin and then its argument prototype would still apply.  */
8034 char $ac_func();
8035
8036 int main() {
8037
8038 /* The GNU C library defines this for functions which it implements
8039     to always fail with ENOSYS.  Some functions are actually named
8040     something starting with __ and the normal name is an alias.  */
8041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8042 choke me
8043 #else
8044 $ac_func();
8045 #endif
8046
8047 ; return 0; }
8048 EOF
8049 if { (eval echo configure:8050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8050   rm -rf conftest*
8051   eval "ac_cv_func_$ac_func=yes"
8052 else
8053   echo "configure: failed program was:" >&5
8054   cat conftest.$ac_ext >&5
8055   rm -rf conftest*
8056   eval "ac_cv_func_$ac_func=no"
8057 fi
8058 rm -f conftest*
8059 fi
8060
8061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8062   echo "$ac_t""yes" 1>&6
8063     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8064   cat >> confdefs.h <<EOF
8065 #define $ac_tr_func 1
8066 EOF
8067  
8068 else
8069   echo "$ac_t""no" 1>&6
8070 fi
8071 done
8072     
8073     fi
8074   fi
8075
8076   
8077   
8078   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
8079 echo "configure:8080: checking for hypot declaration" >&5
8080   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
8081     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
8082   echo $ac_n "(cached) $ac_c" 1>&6
8083 else
8084   
8085       
8086       ac_ext=C
8087 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8088 ac_cpp='$CXXCPP $CPPFLAGS'
8089 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8090 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8091 cross_compiling=$ac_cv_prog_cxx_cross
8092
8093       cat > conftest.$ac_ext <<EOF
8094 #line 8095 "configure"
8095 #include "confdefs.h"
8096 #include <math.h>
8097 int main() {
8098  hypot(0, 0);
8099 ; return 0; }
8100 EOF
8101 if { (eval echo configure:8102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8102   rm -rf conftest*
8103   glibcpp_cv_func_hypot_use=yes
8104 else
8105   echo "configure: failed program was:" >&5
8106   cat conftest.$ac_ext >&5
8107   rm -rf conftest*
8108   glibcpp_cv_func_hypot_use=no
8109 fi
8110 rm -f conftest*
8111       ac_ext=c
8112 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8113 ac_cpp='$CPP $CPPFLAGS'
8114 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8115 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8116 cross_compiling=$ac_cv_prog_cc_cross
8117
8118     
8119 fi
8120
8121   fi
8122   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
8123
8124   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
8125     for ac_func in hypot
8126 do
8127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8128 echo "configure:8129: checking for $ac_func" >&5
8129 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8130   echo $ac_n "(cached) $ac_c" 1>&6
8131 else
8132   cat > conftest.$ac_ext <<EOF
8133 #line 8134 "configure"
8134 #include "confdefs.h"
8135 /* System header to define __stub macros and hopefully few prototypes,
8136     which can conflict with char $ac_func(); below.  */
8137 #include <assert.h>
8138 /* Override any gcc2 internal prototype to avoid an error.  */
8139 /* We use char because int might match the return type of a gcc2
8140     builtin and then its argument prototype would still apply.  */
8141 char $ac_func();
8142
8143 int main() {
8144
8145 /* The GNU C library defines this for functions which it implements
8146     to always fail with ENOSYS.  Some functions are actually named
8147     something starting with __ and the normal name is an alias.  */
8148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8149 choke me
8150 #else
8151 $ac_func();
8152 #endif
8153
8154 ; return 0; }
8155 EOF
8156 if { (eval echo configure:8157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8157   rm -rf conftest*
8158   eval "ac_cv_func_$ac_func=yes"
8159 else
8160   echo "configure: failed program was:" >&5
8161   cat conftest.$ac_ext >&5
8162   rm -rf conftest*
8163   eval "ac_cv_func_$ac_func=no"
8164 fi
8165 rm -f conftest*
8166 fi
8167
8168 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8169   echo "$ac_t""yes" 1>&6
8170     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8171   cat >> confdefs.h <<EOF
8172 #define $ac_tr_func 1
8173 EOF
8174  
8175 else
8176   echo "$ac_t""no" 1>&6
8177 fi
8178 done
8179     
8180   else
8181     
8182   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
8183 echo "configure:8184: checking for _hypot declaration" >&5
8184   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
8185     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
8186   echo $ac_n "(cached) $ac_c" 1>&6
8187 else
8188   
8189       
8190       ac_ext=C
8191 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8192 ac_cpp='$CXXCPP $CPPFLAGS'
8193 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8194 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8195 cross_compiling=$ac_cv_prog_cxx_cross
8196
8197       cat > conftest.$ac_ext <<EOF
8198 #line 8199 "configure"
8199 #include "confdefs.h"
8200 #include <math.h>
8201 int main() {
8202  _hypot(0, 0);
8203 ; return 0; }
8204 EOF
8205 if { (eval echo configure:8206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8206   rm -rf conftest*
8207   glibcpp_cv_func__hypot_use=yes
8208 else
8209   echo "configure: failed program was:" >&5
8210   cat conftest.$ac_ext >&5
8211   rm -rf conftest*
8212   glibcpp_cv_func__hypot_use=no
8213 fi
8214 rm -f conftest*
8215       ac_ext=c
8216 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8217 ac_cpp='$CPP $CPPFLAGS'
8218 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8219 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8220 cross_compiling=$ac_cv_prog_cc_cross
8221
8222     
8223 fi
8224
8225   fi
8226   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
8227
8228     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
8229       for ac_func in _hypot
8230 do
8231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8232 echo "configure:8233: checking for $ac_func" >&5
8233 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8234   echo $ac_n "(cached) $ac_c" 1>&6
8235 else
8236   cat > conftest.$ac_ext <<EOF
8237 #line 8238 "configure"
8238 #include "confdefs.h"
8239 /* System header to define __stub macros and hopefully few prototypes,
8240     which can conflict with char $ac_func(); below.  */
8241 #include <assert.h>
8242 /* Override any gcc2 internal prototype to avoid an error.  */
8243 /* We use char because int might match the return type of a gcc2
8244     builtin and then its argument prototype would still apply.  */
8245 char $ac_func();
8246
8247 int main() {
8248
8249 /* The GNU C library defines this for functions which it implements
8250     to always fail with ENOSYS.  Some functions are actually named
8251     something starting with __ and the normal name is an alias.  */
8252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8253 choke me
8254 #else
8255 $ac_func();
8256 #endif
8257
8258 ; return 0; }
8259 EOF
8260 if { (eval echo configure:8261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8261   rm -rf conftest*
8262   eval "ac_cv_func_$ac_func=yes"
8263 else
8264   echo "configure: failed program was:" >&5
8265   cat conftest.$ac_ext >&5
8266   rm -rf conftest*
8267   eval "ac_cv_func_$ac_func=no"
8268 fi
8269 rm -f conftest*
8270 fi
8271
8272 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8273   echo "$ac_t""yes" 1>&6
8274     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8275   cat >> confdefs.h <<EOF
8276 #define $ac_tr_func 1
8277 EOF
8278  
8279 else
8280   echo "$ac_t""no" 1>&6
8281 fi
8282 done
8283     
8284     fi
8285   fi
8286
8287
8288     
8289   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
8290 echo "configure:8291: checking for float trig functions" >&5
8291   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
8292   echo $ac_n "(cached) $ac_c" 1>&6
8293 else
8294   
8295     
8296     ac_ext=C
8297 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8298 ac_cpp='$CXXCPP $CPPFLAGS'
8299 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8300 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8301 cross_compiling=$ac_cv_prog_cxx_cross
8302
8303     cat > conftest.$ac_ext <<EOF
8304 #line 8305 "configure"
8305 #include "confdefs.h"
8306 #include <math.h>
8307 int main() {
8308  `for x in acosf asinf atanf \
8309                                           cosf sinf tanf \
8310                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
8311 ; return 0; }
8312 EOF
8313 if { (eval echo configure:8314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8314   rm -rf conftest*
8315   glibcpp_cv_func_float_trig_use=yes
8316 else
8317   echo "configure: failed program was:" >&5
8318   cat conftest.$ac_ext >&5
8319   rm -rf conftest*
8320   glibcpp_cv_func_float_trig_use=no
8321 fi
8322 rm -f conftest*
8323     ac_ext=c
8324 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8325 ac_cpp='$CPP $CPPFLAGS'
8326 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8327 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8328 cross_compiling=$ac_cv_prog_cc_cross
8329
8330 fi
8331
8332   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
8333   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
8334     for ac_func in acosf asinf atanf \
8335                                           cosf sinf tanf \
8336                                           coshf sinhf tanhf
8337 do
8338 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8339 echo "configure:8340: checking for $ac_func" >&5
8340 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8341   echo $ac_n "(cached) $ac_c" 1>&6
8342 else
8343   cat > conftest.$ac_ext <<EOF
8344 #line 8345 "configure"
8345 #include "confdefs.h"
8346 /* System header to define __stub macros and hopefully few prototypes,
8347     which can conflict with char $ac_func(); below.  */
8348 #include <assert.h>
8349 /* Override any gcc2 internal prototype to avoid an error.  */
8350 /* We use char because int might match the return type of a gcc2
8351     builtin and then its argument prototype would still apply.  */
8352 char $ac_func();
8353
8354 int main() {
8355
8356 /* The GNU C library defines this for functions which it implements
8357     to always fail with ENOSYS.  Some functions are actually named
8358     something starting with __ and the normal name is an alias.  */
8359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8360 choke me
8361 #else
8362 $ac_func();
8363 #endif
8364
8365 ; return 0; }
8366 EOF
8367 if { (eval echo configure:8368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8368   rm -rf conftest*
8369   eval "ac_cv_func_$ac_func=yes"
8370 else
8371   echo "configure: failed program was:" >&5
8372   cat conftest.$ac_ext >&5
8373   rm -rf conftest*
8374   eval "ac_cv_func_$ac_func=no"
8375 fi
8376 rm -f conftest*
8377 fi
8378
8379 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8380   echo "$ac_t""yes" 1>&6
8381     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8382   cat >> confdefs.h <<EOF
8383 #define $ac_tr_func 1
8384 EOF
8385  
8386 else
8387   echo "$ac_t""no" 1>&6
8388 fi
8389 done
8390
8391   fi
8392
8393   
8394   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
8395 echo "configure:8396: checking for float round functions" >&5
8396   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
8397   echo $ac_n "(cached) $ac_c" 1>&6
8398 else
8399   
8400     
8401     ac_ext=C
8402 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8403 ac_cpp='$CXXCPP $CPPFLAGS'
8404 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8405 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8406 cross_compiling=$ac_cv_prog_cxx_cross
8407
8408     cat > conftest.$ac_ext <<EOF
8409 #line 8410 "configure"
8410 #include "confdefs.h"
8411 #include <math.h>
8412 int main() {
8413  `for x in ceilf floorf; do echo "$x (0);"; done` 
8414 ; return 0; }
8415 EOF
8416 if { (eval echo configure:8417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8417   rm -rf conftest*
8418   glibcpp_cv_func_float_round_use=yes
8419 else
8420   echo "configure: failed program was:" >&5
8421   cat conftest.$ac_ext >&5
8422   rm -rf conftest*
8423   glibcpp_cv_func_float_round_use=no
8424 fi
8425 rm -f conftest*
8426     ac_ext=c
8427 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8428 ac_cpp='$CPP $CPPFLAGS'
8429 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8430 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8431 cross_compiling=$ac_cv_prog_cc_cross
8432
8433 fi
8434
8435   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
8436   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
8437     for ac_func in ceilf floorf
8438 do
8439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8440 echo "configure:8441: checking for $ac_func" >&5
8441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8442   echo $ac_n "(cached) $ac_c" 1>&6
8443 else
8444   cat > conftest.$ac_ext <<EOF
8445 #line 8446 "configure"
8446 #include "confdefs.h"
8447 /* System header to define __stub macros and hopefully few prototypes,
8448     which can conflict with char $ac_func(); below.  */
8449 #include <assert.h>
8450 /* Override any gcc2 internal prototype to avoid an error.  */
8451 /* We use char because int might match the return type of a gcc2
8452     builtin and then its argument prototype would still apply.  */
8453 char $ac_func();
8454
8455 int main() {
8456
8457 /* The GNU C library defines this for functions which it implements
8458     to always fail with ENOSYS.  Some functions are actually named
8459     something starting with __ and the normal name is an alias.  */
8460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8461 choke me
8462 #else
8463 $ac_func();
8464 #endif
8465
8466 ; return 0; }
8467 EOF
8468 if { (eval echo configure:8469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8469   rm -rf conftest*
8470   eval "ac_cv_func_$ac_func=yes"
8471 else
8472   echo "configure: failed program was:" >&5
8473   cat conftest.$ac_ext >&5
8474   rm -rf conftest*
8475   eval "ac_cv_func_$ac_func=no"
8476 fi
8477 rm -f conftest*
8478 fi
8479
8480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8481   echo "$ac_t""yes" 1>&6
8482     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8483   cat >> confdefs.h <<EOF
8484 #define $ac_tr_func 1
8485 EOF
8486  
8487 else
8488   echo "$ac_t""no" 1>&6
8489 fi
8490 done
8491
8492   fi
8493
8494   
8495   
8496   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
8497 echo "configure:8498: checking for isnanf declaration" >&5
8498   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
8499     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
8500   echo $ac_n "(cached) $ac_c" 1>&6
8501 else
8502   
8503       
8504       ac_ext=C
8505 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8506 ac_cpp='$CXXCPP $CPPFLAGS'
8507 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8508 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8509 cross_compiling=$ac_cv_prog_cxx_cross
8510
8511       cat > conftest.$ac_ext <<EOF
8512 #line 8513 "configure"
8513 #include "confdefs.h"
8514 #include <math.h>
8515                       #ifdef HAVE_IEEEFP_H
8516                       #include <ieeefp.h>
8517                       #endif
8518                      
8519 int main() {
8520  isnanf(0);
8521 ; return 0; }
8522 EOF
8523 if { (eval echo configure:8524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8524   rm -rf conftest*
8525   glibcpp_cv_func_isnanf_use=yes
8526 else
8527   echo "configure: failed program was:" >&5
8528   cat conftest.$ac_ext >&5
8529   rm -rf conftest*
8530   glibcpp_cv_func_isnanf_use=no
8531 fi
8532 rm -f conftest*
8533       ac_ext=c
8534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8535 ac_cpp='$CPP $CPPFLAGS'
8536 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8537 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8538 cross_compiling=$ac_cv_prog_cc_cross
8539
8540     
8541 fi
8542
8543   fi
8544   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
8545
8546   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
8547     for ac_func in isnanf
8548 do
8549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8550 echo "configure:8551: checking for $ac_func" >&5
8551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8552   echo $ac_n "(cached) $ac_c" 1>&6
8553 else
8554   cat > conftest.$ac_ext <<EOF
8555 #line 8556 "configure"
8556 #include "confdefs.h"
8557 /* System header to define __stub macros and hopefully few prototypes,
8558     which can conflict with char $ac_func(); below.  */
8559 #include <assert.h>
8560 /* Override any gcc2 internal prototype to avoid an error.  */
8561 /* We use char because int might match the return type of a gcc2
8562     builtin and then its argument prototype would still apply.  */
8563 char $ac_func();
8564
8565 int main() {
8566
8567 /* The GNU C library defines this for functions which it implements
8568     to always fail with ENOSYS.  Some functions are actually named
8569     something starting with __ and the normal name is an alias.  */
8570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8571 choke me
8572 #else
8573 $ac_func();
8574 #endif
8575
8576 ; return 0; }
8577 EOF
8578 if { (eval echo configure:8579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8579   rm -rf conftest*
8580   eval "ac_cv_func_$ac_func=yes"
8581 else
8582   echo "configure: failed program was:" >&5
8583   cat conftest.$ac_ext >&5
8584   rm -rf conftest*
8585   eval "ac_cv_func_$ac_func=no"
8586 fi
8587 rm -f conftest*
8588 fi
8589
8590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8591   echo "$ac_t""yes" 1>&6
8592     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8593   cat >> confdefs.h <<EOF
8594 #define $ac_tr_func 1
8595 EOF
8596  
8597 else
8598   echo "$ac_t""no" 1>&6
8599 fi
8600 done
8601     
8602   else
8603     
8604   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
8605 echo "configure:8606: checking for _isnanf declaration" >&5
8606   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
8607     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
8608   echo $ac_n "(cached) $ac_c" 1>&6
8609 else
8610   
8611       
8612       ac_ext=C
8613 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8614 ac_cpp='$CXXCPP $CPPFLAGS'
8615 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8616 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8617 cross_compiling=$ac_cv_prog_cxx_cross
8618
8619       cat > conftest.$ac_ext <<EOF
8620 #line 8621 "configure"
8621 #include "confdefs.h"
8622 #include <math.h>
8623                       #ifdef HAVE_IEEEFP_H
8624                       #include <ieeefp.h>
8625                       #endif
8626                      
8627 int main() {
8628  _isnanf(0);
8629 ; return 0; }
8630 EOF
8631 if { (eval echo configure:8632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8632   rm -rf conftest*
8633   glibcpp_cv_func__isnanf_use=yes
8634 else
8635   echo "configure: failed program was:" >&5
8636   cat conftest.$ac_ext >&5
8637   rm -rf conftest*
8638   glibcpp_cv_func__isnanf_use=no
8639 fi
8640 rm -f conftest*
8641       ac_ext=c
8642 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8643 ac_cpp='$CPP $CPPFLAGS'
8644 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8645 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8646 cross_compiling=$ac_cv_prog_cc_cross
8647
8648     
8649 fi
8650
8651   fi
8652   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
8653
8654     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
8655       for ac_func in _isnanf
8656 do
8657 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8658 echo "configure:8659: checking for $ac_func" >&5
8659 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8660   echo $ac_n "(cached) $ac_c" 1>&6
8661 else
8662   cat > conftest.$ac_ext <<EOF
8663 #line 8664 "configure"
8664 #include "confdefs.h"
8665 /* System header to define __stub macros and hopefully few prototypes,
8666     which can conflict with char $ac_func(); below.  */
8667 #include <assert.h>
8668 /* Override any gcc2 internal prototype to avoid an error.  */
8669 /* We use char because int might match the return type of a gcc2
8670     builtin and then its argument prototype would still apply.  */
8671 char $ac_func();
8672
8673 int main() {
8674
8675 /* The GNU C library defines this for functions which it implements
8676     to always fail with ENOSYS.  Some functions are actually named
8677     something starting with __ and the normal name is an alias.  */
8678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8679 choke me
8680 #else
8681 $ac_func();
8682 #endif
8683
8684 ; return 0; }
8685 EOF
8686 if { (eval echo configure:8687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8687   rm -rf conftest*
8688   eval "ac_cv_func_$ac_func=yes"
8689 else
8690   echo "configure: failed program was:" >&5
8691   cat conftest.$ac_ext >&5
8692   rm -rf conftest*
8693   eval "ac_cv_func_$ac_func=no"
8694 fi
8695 rm -f conftest*
8696 fi
8697
8698 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8699   echo "$ac_t""yes" 1>&6
8700     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8701   cat >> confdefs.h <<EOF
8702 #define $ac_tr_func 1
8703 EOF
8704  
8705 else
8706   echo "$ac_t""no" 1>&6
8707 fi
8708 done
8709     
8710     fi
8711   fi
8712
8713   
8714   
8715   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
8716 echo "configure:8717: checking for isinff declaration" >&5
8717   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
8718     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
8719   echo $ac_n "(cached) $ac_c" 1>&6
8720 else
8721   
8722       
8723       ac_ext=C
8724 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8725 ac_cpp='$CXXCPP $CPPFLAGS'
8726 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8727 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8728 cross_compiling=$ac_cv_prog_cxx_cross
8729
8730       cat > conftest.$ac_ext <<EOF
8731 #line 8732 "configure"
8732 #include "confdefs.h"
8733 #include <math.h>
8734                       #ifdef HAVE_IEEEFP_H
8735                       #include <ieeefp.h>
8736                       #endif
8737                      
8738 int main() {
8739  isinff(0);
8740 ; return 0; }
8741 EOF
8742 if { (eval echo configure:8743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8743   rm -rf conftest*
8744   glibcpp_cv_func_isinff_use=yes
8745 else
8746   echo "configure: failed program was:" >&5
8747   cat conftest.$ac_ext >&5
8748   rm -rf conftest*
8749   glibcpp_cv_func_isinff_use=no
8750 fi
8751 rm -f conftest*
8752       ac_ext=c
8753 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8754 ac_cpp='$CPP $CPPFLAGS'
8755 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8756 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8757 cross_compiling=$ac_cv_prog_cc_cross
8758
8759     
8760 fi
8761
8762   fi
8763   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
8764
8765   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
8766     for ac_func in isinff
8767 do
8768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8769 echo "configure:8770: checking for $ac_func" >&5
8770 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8771   echo $ac_n "(cached) $ac_c" 1>&6
8772 else
8773   cat > conftest.$ac_ext <<EOF
8774 #line 8775 "configure"
8775 #include "confdefs.h"
8776 /* System header to define __stub macros and hopefully few prototypes,
8777     which can conflict with char $ac_func(); below.  */
8778 #include <assert.h>
8779 /* Override any gcc2 internal prototype to avoid an error.  */
8780 /* We use char because int might match the return type of a gcc2
8781     builtin and then its argument prototype would still apply.  */
8782 char $ac_func();
8783
8784 int main() {
8785
8786 /* The GNU C library defines this for functions which it implements
8787     to always fail with ENOSYS.  Some functions are actually named
8788     something starting with __ and the normal name is an alias.  */
8789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8790 choke me
8791 #else
8792 $ac_func();
8793 #endif
8794
8795 ; return 0; }
8796 EOF
8797 if { (eval echo configure:8798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8798   rm -rf conftest*
8799   eval "ac_cv_func_$ac_func=yes"
8800 else
8801   echo "configure: failed program was:" >&5
8802   cat conftest.$ac_ext >&5
8803   rm -rf conftest*
8804   eval "ac_cv_func_$ac_func=no"
8805 fi
8806 rm -f conftest*
8807 fi
8808
8809 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8810   echo "$ac_t""yes" 1>&6
8811     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8812   cat >> confdefs.h <<EOF
8813 #define $ac_tr_func 1
8814 EOF
8815  
8816 else
8817   echo "$ac_t""no" 1>&6
8818 fi
8819 done
8820     
8821   else
8822     
8823   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
8824 echo "configure:8825: checking for _isinff declaration" >&5
8825   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
8826     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
8827   echo $ac_n "(cached) $ac_c" 1>&6
8828 else
8829   
8830       
8831       ac_ext=C
8832 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8833 ac_cpp='$CXXCPP $CPPFLAGS'
8834 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8835 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8836 cross_compiling=$ac_cv_prog_cxx_cross
8837
8838       cat > conftest.$ac_ext <<EOF
8839 #line 8840 "configure"
8840 #include "confdefs.h"
8841 #include <math.h>
8842                       #ifdef HAVE_IEEEFP_H
8843                       #include <ieeefp.h>
8844                       #endif
8845                      
8846 int main() {
8847  _isinff(0);
8848 ; return 0; }
8849 EOF
8850 if { (eval echo configure:8851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8851   rm -rf conftest*
8852   glibcpp_cv_func__isinff_use=yes
8853 else
8854   echo "configure: failed program was:" >&5
8855   cat conftest.$ac_ext >&5
8856   rm -rf conftest*
8857   glibcpp_cv_func__isinff_use=no
8858 fi
8859 rm -f conftest*
8860       ac_ext=c
8861 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8862 ac_cpp='$CPP $CPPFLAGS'
8863 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8864 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8865 cross_compiling=$ac_cv_prog_cc_cross
8866
8867     
8868 fi
8869
8870   fi
8871   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
8872
8873     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
8874       for ac_func in _isinff
8875 do
8876 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8877 echo "configure:8878: checking for $ac_func" >&5
8878 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8879   echo $ac_n "(cached) $ac_c" 1>&6
8880 else
8881   cat > conftest.$ac_ext <<EOF
8882 #line 8883 "configure"
8883 #include "confdefs.h"
8884 /* System header to define __stub macros and hopefully few prototypes,
8885     which can conflict with char $ac_func(); below.  */
8886 #include <assert.h>
8887 /* Override any gcc2 internal prototype to avoid an error.  */
8888 /* We use char because int might match the return type of a gcc2
8889     builtin and then its argument prototype would still apply.  */
8890 char $ac_func();
8891
8892 int main() {
8893
8894 /* The GNU C library defines this for functions which it implements
8895     to always fail with ENOSYS.  Some functions are actually named
8896     something starting with __ and the normal name is an alias.  */
8897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8898 choke me
8899 #else
8900 $ac_func();
8901 #endif
8902
8903 ; return 0; }
8904 EOF
8905 if { (eval echo configure:8906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8906   rm -rf conftest*
8907   eval "ac_cv_func_$ac_func=yes"
8908 else
8909   echo "configure: failed program was:" >&5
8910   cat conftest.$ac_ext >&5
8911   rm -rf conftest*
8912   eval "ac_cv_func_$ac_func=no"
8913 fi
8914 rm -f conftest*
8915 fi
8916
8917 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8918   echo "$ac_t""yes" 1>&6
8919     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8920   cat >> confdefs.h <<EOF
8921 #define $ac_tr_func 1
8922 EOF
8923  
8924 else
8925   echo "$ac_t""no" 1>&6
8926 fi
8927 done
8928     
8929     fi
8930   fi
8931
8932   
8933   
8934   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
8935 echo "configure:8936: checking for atan2f declaration" >&5
8936   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
8937     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
8938   echo $ac_n "(cached) $ac_c" 1>&6
8939 else
8940   
8941       
8942       ac_ext=C
8943 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8944 ac_cpp='$CXXCPP $CPPFLAGS'
8945 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8946 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8947 cross_compiling=$ac_cv_prog_cxx_cross
8948
8949       cat > conftest.$ac_ext <<EOF
8950 #line 8951 "configure"
8951 #include "confdefs.h"
8952 #include <math.h>
8953 int main() {
8954  atan2f(0, 0);
8955 ; return 0; }
8956 EOF
8957 if { (eval echo configure:8958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8958   rm -rf conftest*
8959   glibcpp_cv_func_atan2f_use=yes
8960 else
8961   echo "configure: failed program was:" >&5
8962   cat conftest.$ac_ext >&5
8963   rm -rf conftest*
8964   glibcpp_cv_func_atan2f_use=no
8965 fi
8966 rm -f conftest*
8967       ac_ext=c
8968 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8969 ac_cpp='$CPP $CPPFLAGS'
8970 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8971 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8972 cross_compiling=$ac_cv_prog_cc_cross
8973
8974     
8975 fi
8976
8977   fi
8978   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
8979
8980   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
8981     for ac_func in atan2f
8982 do
8983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8984 echo "configure:8985: checking for $ac_func" >&5
8985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8986   echo $ac_n "(cached) $ac_c" 1>&6
8987 else
8988   cat > conftest.$ac_ext <<EOF
8989 #line 8990 "configure"
8990 #include "confdefs.h"
8991 /* System header to define __stub macros and hopefully few prototypes,
8992     which can conflict with char $ac_func(); below.  */
8993 #include <assert.h>
8994 /* Override any gcc2 internal prototype to avoid an error.  */
8995 /* We use char because int might match the return type of a gcc2
8996     builtin and then its argument prototype would still apply.  */
8997 char $ac_func();
8998
8999 int main() {
9000
9001 /* The GNU C library defines this for functions which it implements
9002     to always fail with ENOSYS.  Some functions are actually named
9003     something starting with __ and the normal name is an alias.  */
9004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9005 choke me
9006 #else
9007 $ac_func();
9008 #endif
9009
9010 ; return 0; }
9011 EOF
9012 if { (eval echo configure:9013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9013   rm -rf conftest*
9014   eval "ac_cv_func_$ac_func=yes"
9015 else
9016   echo "configure: failed program was:" >&5
9017   cat conftest.$ac_ext >&5
9018   rm -rf conftest*
9019   eval "ac_cv_func_$ac_func=no"
9020 fi
9021 rm -f conftest*
9022 fi
9023
9024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9025   echo "$ac_t""yes" 1>&6
9026     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9027   cat >> confdefs.h <<EOF
9028 #define $ac_tr_func 1
9029 EOF
9030  
9031 else
9032   echo "$ac_t""no" 1>&6
9033 fi
9034 done
9035     
9036   else
9037     
9038   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
9039 echo "configure:9040: checking for _atan2f declaration" >&5
9040   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
9041     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
9042   echo $ac_n "(cached) $ac_c" 1>&6
9043 else
9044   
9045       
9046       ac_ext=C
9047 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9048 ac_cpp='$CXXCPP $CPPFLAGS'
9049 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9050 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9051 cross_compiling=$ac_cv_prog_cxx_cross
9052
9053       cat > conftest.$ac_ext <<EOF
9054 #line 9055 "configure"
9055 #include "confdefs.h"
9056 #include <math.h>
9057 int main() {
9058  _atan2f(0, 0);
9059 ; return 0; }
9060 EOF
9061 if { (eval echo configure:9062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9062   rm -rf conftest*
9063   glibcpp_cv_func__atan2f_use=yes
9064 else
9065   echo "configure: failed program was:" >&5
9066   cat conftest.$ac_ext >&5
9067   rm -rf conftest*
9068   glibcpp_cv_func__atan2f_use=no
9069 fi
9070 rm -f conftest*
9071       ac_ext=c
9072 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9073 ac_cpp='$CPP $CPPFLAGS'
9074 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9075 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9076 cross_compiling=$ac_cv_prog_cc_cross
9077
9078     
9079 fi
9080
9081   fi
9082   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
9083
9084     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
9085       for ac_func in _atan2f
9086 do
9087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9088 echo "configure:9089: checking for $ac_func" >&5
9089 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9090   echo $ac_n "(cached) $ac_c" 1>&6
9091 else
9092   cat > conftest.$ac_ext <<EOF
9093 #line 9094 "configure"
9094 #include "confdefs.h"
9095 /* System header to define __stub macros and hopefully few prototypes,
9096     which can conflict with char $ac_func(); below.  */
9097 #include <assert.h>
9098 /* Override any gcc2 internal prototype to avoid an error.  */
9099 /* We use char because int might match the return type of a gcc2
9100     builtin and then its argument prototype would still apply.  */
9101 char $ac_func();
9102
9103 int main() {
9104
9105 /* The GNU C library defines this for functions which it implements
9106     to always fail with ENOSYS.  Some functions are actually named
9107     something starting with __ and the normal name is an alias.  */
9108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9109 choke me
9110 #else
9111 $ac_func();
9112 #endif
9113
9114 ; return 0; }
9115 EOF
9116 if { (eval echo configure:9117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9117   rm -rf conftest*
9118   eval "ac_cv_func_$ac_func=yes"
9119 else
9120   echo "configure: failed program was:" >&5
9121   cat conftest.$ac_ext >&5
9122   rm -rf conftest*
9123   eval "ac_cv_func_$ac_func=no"
9124 fi
9125 rm -f conftest*
9126 fi
9127
9128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9129   echo "$ac_t""yes" 1>&6
9130     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9131   cat >> confdefs.h <<EOF
9132 #define $ac_tr_func 1
9133 EOF
9134  
9135 else
9136   echo "$ac_t""no" 1>&6
9137 fi
9138 done
9139     
9140     fi
9141   fi
9142
9143   
9144   
9145   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
9146 echo "configure:9147: checking for fabsf declaration" >&5
9147   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
9148     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
9149   echo $ac_n "(cached) $ac_c" 1>&6
9150 else
9151   
9152       
9153       ac_ext=C
9154 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9155 ac_cpp='$CXXCPP $CPPFLAGS'
9156 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9157 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9158 cross_compiling=$ac_cv_prog_cxx_cross
9159
9160       cat > conftest.$ac_ext <<EOF
9161 #line 9162 "configure"
9162 #include "confdefs.h"
9163 #include <math.h>
9164                       #ifdef HAVE_IEEEFP_H
9165                       #include <ieeefp.h>
9166                       #endif
9167                      
9168 int main() {
9169  fabsf(0);
9170 ; return 0; }
9171 EOF
9172 if { (eval echo configure:9173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9173   rm -rf conftest*
9174   glibcpp_cv_func_fabsf_use=yes
9175 else
9176   echo "configure: failed program was:" >&5
9177   cat conftest.$ac_ext >&5
9178   rm -rf conftest*
9179   glibcpp_cv_func_fabsf_use=no
9180 fi
9181 rm -f conftest*
9182       ac_ext=c
9183 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9184 ac_cpp='$CPP $CPPFLAGS'
9185 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9186 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9187 cross_compiling=$ac_cv_prog_cc_cross
9188
9189     
9190 fi
9191
9192   fi
9193   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
9194
9195   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
9196     for ac_func in fabsf
9197 do
9198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9199 echo "configure:9200: checking for $ac_func" >&5
9200 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9201   echo $ac_n "(cached) $ac_c" 1>&6
9202 else
9203   cat > conftest.$ac_ext <<EOF
9204 #line 9205 "configure"
9205 #include "confdefs.h"
9206 /* System header to define __stub macros and hopefully few prototypes,
9207     which can conflict with char $ac_func(); below.  */
9208 #include <assert.h>
9209 /* Override any gcc2 internal prototype to avoid an error.  */
9210 /* We use char because int might match the return type of a gcc2
9211     builtin and then its argument prototype would still apply.  */
9212 char $ac_func();
9213
9214 int main() {
9215
9216 /* The GNU C library defines this for functions which it implements
9217     to always fail with ENOSYS.  Some functions are actually named
9218     something starting with __ and the normal name is an alias.  */
9219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9220 choke me
9221 #else
9222 $ac_func();
9223 #endif
9224
9225 ; return 0; }
9226 EOF
9227 if { (eval echo configure:9228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9228   rm -rf conftest*
9229   eval "ac_cv_func_$ac_func=yes"
9230 else
9231   echo "configure: failed program was:" >&5
9232   cat conftest.$ac_ext >&5
9233   rm -rf conftest*
9234   eval "ac_cv_func_$ac_func=no"
9235 fi
9236 rm -f conftest*
9237 fi
9238
9239 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9240   echo "$ac_t""yes" 1>&6
9241     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9242   cat >> confdefs.h <<EOF
9243 #define $ac_tr_func 1
9244 EOF
9245  
9246 else
9247   echo "$ac_t""no" 1>&6
9248 fi
9249 done
9250     
9251   else
9252     
9253   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
9254 echo "configure:9255: checking for _fabsf declaration" >&5
9255   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
9256     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
9257   echo $ac_n "(cached) $ac_c" 1>&6
9258 else
9259   
9260       
9261       ac_ext=C
9262 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9263 ac_cpp='$CXXCPP $CPPFLAGS'
9264 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9265 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9266 cross_compiling=$ac_cv_prog_cxx_cross
9267
9268       cat > conftest.$ac_ext <<EOF
9269 #line 9270 "configure"
9270 #include "confdefs.h"
9271 #include <math.h>
9272                       #ifdef HAVE_IEEEFP_H
9273                       #include <ieeefp.h>
9274                       #endif
9275                      
9276 int main() {
9277  _fabsf(0);
9278 ; return 0; }
9279 EOF
9280 if { (eval echo configure:9281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9281   rm -rf conftest*
9282   glibcpp_cv_func__fabsf_use=yes
9283 else
9284   echo "configure: failed program was:" >&5
9285   cat conftest.$ac_ext >&5
9286   rm -rf conftest*
9287   glibcpp_cv_func__fabsf_use=no
9288 fi
9289 rm -f conftest*
9290       ac_ext=c
9291 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9292 ac_cpp='$CPP $CPPFLAGS'
9293 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9294 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9295 cross_compiling=$ac_cv_prog_cc_cross
9296
9297     
9298 fi
9299
9300   fi
9301   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
9302
9303     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
9304       for ac_func in _fabsf
9305 do
9306 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9307 echo "configure:9308: checking for $ac_func" >&5
9308 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9309   echo $ac_n "(cached) $ac_c" 1>&6
9310 else
9311   cat > conftest.$ac_ext <<EOF
9312 #line 9313 "configure"
9313 #include "confdefs.h"
9314 /* System header to define __stub macros and hopefully few prototypes,
9315     which can conflict with char $ac_func(); below.  */
9316 #include <assert.h>
9317 /* Override any gcc2 internal prototype to avoid an error.  */
9318 /* We use char because int might match the return type of a gcc2
9319     builtin and then its argument prototype would still apply.  */
9320 char $ac_func();
9321
9322 int main() {
9323
9324 /* The GNU C library defines this for functions which it implements
9325     to always fail with ENOSYS.  Some functions are actually named
9326     something starting with __ and the normal name is an alias.  */
9327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9328 choke me
9329 #else
9330 $ac_func();
9331 #endif
9332
9333 ; return 0; }
9334 EOF
9335 if { (eval echo configure:9336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9336   rm -rf conftest*
9337   eval "ac_cv_func_$ac_func=yes"
9338 else
9339   echo "configure: failed program was:" >&5
9340   cat conftest.$ac_ext >&5
9341   rm -rf conftest*
9342   eval "ac_cv_func_$ac_func=no"
9343 fi
9344 rm -f conftest*
9345 fi
9346
9347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9348   echo "$ac_t""yes" 1>&6
9349     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9350   cat >> confdefs.h <<EOF
9351 #define $ac_tr_func 1
9352 EOF
9353  
9354 else
9355   echo "$ac_t""no" 1>&6
9356 fi
9357 done
9358     
9359     fi
9360   fi
9361
9362   
9363   
9364   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
9365 echo "configure:9366: checking for fmodf declaration" >&5
9366   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
9367     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
9368   echo $ac_n "(cached) $ac_c" 1>&6
9369 else
9370   
9371       
9372       ac_ext=C
9373 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9374 ac_cpp='$CXXCPP $CPPFLAGS'
9375 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9376 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9377 cross_compiling=$ac_cv_prog_cxx_cross
9378
9379       cat > conftest.$ac_ext <<EOF
9380 #line 9381 "configure"
9381 #include "confdefs.h"
9382 #include <math.h>
9383 int main() {
9384  fmodf(0, 0);
9385 ; return 0; }
9386 EOF
9387 if { (eval echo configure:9388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9388   rm -rf conftest*
9389   glibcpp_cv_func_fmodf_use=yes
9390 else
9391   echo "configure: failed program was:" >&5
9392   cat conftest.$ac_ext >&5
9393   rm -rf conftest*
9394   glibcpp_cv_func_fmodf_use=no
9395 fi
9396 rm -f conftest*
9397       ac_ext=c
9398 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9399 ac_cpp='$CPP $CPPFLAGS'
9400 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9401 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9402 cross_compiling=$ac_cv_prog_cc_cross
9403
9404     
9405 fi
9406
9407   fi
9408   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
9409
9410   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
9411     for ac_func in fmodf
9412 do
9413 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9414 echo "configure:9415: checking for $ac_func" >&5
9415 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9416   echo $ac_n "(cached) $ac_c" 1>&6
9417 else
9418   cat > conftest.$ac_ext <<EOF
9419 #line 9420 "configure"
9420 #include "confdefs.h"
9421 /* System header to define __stub macros and hopefully few prototypes,
9422     which can conflict with char $ac_func(); below.  */
9423 #include <assert.h>
9424 /* Override any gcc2 internal prototype to avoid an error.  */
9425 /* We use char because int might match the return type of a gcc2
9426     builtin and then its argument prototype would still apply.  */
9427 char $ac_func();
9428
9429 int main() {
9430
9431 /* The GNU C library defines this for functions which it implements
9432     to always fail with ENOSYS.  Some functions are actually named
9433     something starting with __ and the normal name is an alias.  */
9434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9435 choke me
9436 #else
9437 $ac_func();
9438 #endif
9439
9440 ; return 0; }
9441 EOF
9442 if { (eval echo configure:9443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9443   rm -rf conftest*
9444   eval "ac_cv_func_$ac_func=yes"
9445 else
9446   echo "configure: failed program was:" >&5
9447   cat conftest.$ac_ext >&5
9448   rm -rf conftest*
9449   eval "ac_cv_func_$ac_func=no"
9450 fi
9451 rm -f conftest*
9452 fi
9453
9454 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9455   echo "$ac_t""yes" 1>&6
9456     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9457   cat >> confdefs.h <<EOF
9458 #define $ac_tr_func 1
9459 EOF
9460  
9461 else
9462   echo "$ac_t""no" 1>&6
9463 fi
9464 done
9465     
9466   else
9467     
9468   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
9469 echo "configure:9470: checking for _fmodf declaration" >&5
9470   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
9471     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
9472   echo $ac_n "(cached) $ac_c" 1>&6
9473 else
9474   
9475       
9476       ac_ext=C
9477 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9478 ac_cpp='$CXXCPP $CPPFLAGS'
9479 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9480 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9481 cross_compiling=$ac_cv_prog_cxx_cross
9482
9483       cat > conftest.$ac_ext <<EOF
9484 #line 9485 "configure"
9485 #include "confdefs.h"
9486 #include <math.h>
9487 int main() {
9488  _fmodf(0, 0);
9489 ; return 0; }
9490 EOF
9491 if { (eval echo configure:9492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9492   rm -rf conftest*
9493   glibcpp_cv_func__fmodf_use=yes
9494 else
9495   echo "configure: failed program was:" >&5
9496   cat conftest.$ac_ext >&5
9497   rm -rf conftest*
9498   glibcpp_cv_func__fmodf_use=no
9499 fi
9500 rm -f conftest*
9501       ac_ext=c
9502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9503 ac_cpp='$CPP $CPPFLAGS'
9504 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9505 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9506 cross_compiling=$ac_cv_prog_cc_cross
9507
9508     
9509 fi
9510
9511   fi
9512   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
9513
9514     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
9515       for ac_func in _fmodf
9516 do
9517 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9518 echo "configure:9519: checking for $ac_func" >&5
9519 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9520   echo $ac_n "(cached) $ac_c" 1>&6
9521 else
9522   cat > conftest.$ac_ext <<EOF
9523 #line 9524 "configure"
9524 #include "confdefs.h"
9525 /* System header to define __stub macros and hopefully few prototypes,
9526     which can conflict with char $ac_func(); below.  */
9527 #include <assert.h>
9528 /* Override any gcc2 internal prototype to avoid an error.  */
9529 /* We use char because int might match the return type of a gcc2
9530     builtin and then its argument prototype would still apply.  */
9531 char $ac_func();
9532
9533 int main() {
9534
9535 /* The GNU C library defines this for functions which it implements
9536     to always fail with ENOSYS.  Some functions are actually named
9537     something starting with __ and the normal name is an alias.  */
9538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9539 choke me
9540 #else
9541 $ac_func();
9542 #endif
9543
9544 ; return 0; }
9545 EOF
9546 if { (eval echo configure:9547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9547   rm -rf conftest*
9548   eval "ac_cv_func_$ac_func=yes"
9549 else
9550   echo "configure: failed program was:" >&5
9551   cat conftest.$ac_ext >&5
9552   rm -rf conftest*
9553   eval "ac_cv_func_$ac_func=no"
9554 fi
9555 rm -f conftest*
9556 fi
9557
9558 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9559   echo "$ac_t""yes" 1>&6
9560     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9561   cat >> confdefs.h <<EOF
9562 #define $ac_tr_func 1
9563 EOF
9564  
9565 else
9566   echo "$ac_t""no" 1>&6
9567 fi
9568 done
9569     
9570     fi
9571   fi
9572
9573   
9574   
9575   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
9576 echo "configure:9577: checking for frexpf declaration" >&5
9577   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
9578     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
9579   echo $ac_n "(cached) $ac_c" 1>&6
9580 else
9581   
9582       
9583       ac_ext=C
9584 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9585 ac_cpp='$CXXCPP $CPPFLAGS'
9586 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9587 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9588 cross_compiling=$ac_cv_prog_cxx_cross
9589
9590       cat > conftest.$ac_ext <<EOF
9591 #line 9592 "configure"
9592 #include "confdefs.h"
9593 #include <math.h>
9594 int main() {
9595  frexpf(0, 0);
9596 ; return 0; }
9597 EOF
9598 if { (eval echo configure:9599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9599   rm -rf conftest*
9600   glibcpp_cv_func_frexpf_use=yes
9601 else
9602   echo "configure: failed program was:" >&5
9603   cat conftest.$ac_ext >&5
9604   rm -rf conftest*
9605   glibcpp_cv_func_frexpf_use=no
9606 fi
9607 rm -f conftest*
9608       ac_ext=c
9609 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9610 ac_cpp='$CPP $CPPFLAGS'
9611 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9612 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9613 cross_compiling=$ac_cv_prog_cc_cross
9614
9615     
9616 fi
9617
9618   fi
9619   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
9620
9621   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
9622     for ac_func in frexpf
9623 do
9624 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9625 echo "configure:9626: checking for $ac_func" >&5
9626 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9627   echo $ac_n "(cached) $ac_c" 1>&6
9628 else
9629   cat > conftest.$ac_ext <<EOF
9630 #line 9631 "configure"
9631 #include "confdefs.h"
9632 /* System header to define __stub macros and hopefully few prototypes,
9633     which can conflict with char $ac_func(); below.  */
9634 #include <assert.h>
9635 /* Override any gcc2 internal prototype to avoid an error.  */
9636 /* We use char because int might match the return type of a gcc2
9637     builtin and then its argument prototype would still apply.  */
9638 char $ac_func();
9639
9640 int main() {
9641
9642 /* The GNU C library defines this for functions which it implements
9643     to always fail with ENOSYS.  Some functions are actually named
9644     something starting with __ and the normal name is an alias.  */
9645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9646 choke me
9647 #else
9648 $ac_func();
9649 #endif
9650
9651 ; return 0; }
9652 EOF
9653 if { (eval echo configure:9654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9654   rm -rf conftest*
9655   eval "ac_cv_func_$ac_func=yes"
9656 else
9657   echo "configure: failed program was:" >&5
9658   cat conftest.$ac_ext >&5
9659   rm -rf conftest*
9660   eval "ac_cv_func_$ac_func=no"
9661 fi
9662 rm -f conftest*
9663 fi
9664
9665 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9666   echo "$ac_t""yes" 1>&6
9667     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9668   cat >> confdefs.h <<EOF
9669 #define $ac_tr_func 1
9670 EOF
9671  
9672 else
9673   echo "$ac_t""no" 1>&6
9674 fi
9675 done
9676     
9677   else
9678     
9679   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
9680 echo "configure:9681: checking for _frexpf declaration" >&5
9681   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
9682     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
9683   echo $ac_n "(cached) $ac_c" 1>&6
9684 else
9685   
9686       
9687       ac_ext=C
9688 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9689 ac_cpp='$CXXCPP $CPPFLAGS'
9690 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9691 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9692 cross_compiling=$ac_cv_prog_cxx_cross
9693
9694       cat > conftest.$ac_ext <<EOF
9695 #line 9696 "configure"
9696 #include "confdefs.h"
9697 #include <math.h>
9698 int main() {
9699  _frexpf(0, 0);
9700 ; return 0; }
9701 EOF
9702 if { (eval echo configure:9703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9703   rm -rf conftest*
9704   glibcpp_cv_func__frexpf_use=yes
9705 else
9706   echo "configure: failed program was:" >&5
9707   cat conftest.$ac_ext >&5
9708   rm -rf conftest*
9709   glibcpp_cv_func__frexpf_use=no
9710 fi
9711 rm -f conftest*
9712       ac_ext=c
9713 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9714 ac_cpp='$CPP $CPPFLAGS'
9715 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9716 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9717 cross_compiling=$ac_cv_prog_cc_cross
9718
9719     
9720 fi
9721
9722   fi
9723   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
9724
9725     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
9726       for ac_func in _frexpf
9727 do
9728 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9729 echo "configure:9730: checking for $ac_func" >&5
9730 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9731   echo $ac_n "(cached) $ac_c" 1>&6
9732 else
9733   cat > conftest.$ac_ext <<EOF
9734 #line 9735 "configure"
9735 #include "confdefs.h"
9736 /* System header to define __stub macros and hopefully few prototypes,
9737     which can conflict with char $ac_func(); below.  */
9738 #include <assert.h>
9739 /* Override any gcc2 internal prototype to avoid an error.  */
9740 /* We use char because int might match the return type of a gcc2
9741     builtin and then its argument prototype would still apply.  */
9742 char $ac_func();
9743
9744 int main() {
9745
9746 /* The GNU C library defines this for functions which it implements
9747     to always fail with ENOSYS.  Some functions are actually named
9748     something starting with __ and the normal name is an alias.  */
9749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9750 choke me
9751 #else
9752 $ac_func();
9753 #endif
9754
9755 ; return 0; }
9756 EOF
9757 if { (eval echo configure:9758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9758   rm -rf conftest*
9759   eval "ac_cv_func_$ac_func=yes"
9760 else
9761   echo "configure: failed program was:" >&5
9762   cat conftest.$ac_ext >&5
9763   rm -rf conftest*
9764   eval "ac_cv_func_$ac_func=no"
9765 fi
9766 rm -f conftest*
9767 fi
9768
9769 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9770   echo "$ac_t""yes" 1>&6
9771     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9772   cat >> confdefs.h <<EOF
9773 #define $ac_tr_func 1
9774 EOF
9775  
9776 else
9777   echo "$ac_t""no" 1>&6
9778 fi
9779 done
9780     
9781     fi
9782   fi
9783
9784   
9785   
9786   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
9787 echo "configure:9788: checking for hypotf declaration" >&5
9788   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
9789     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
9790   echo $ac_n "(cached) $ac_c" 1>&6
9791 else
9792   
9793       
9794       ac_ext=C
9795 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9796 ac_cpp='$CXXCPP $CPPFLAGS'
9797 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9798 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9799 cross_compiling=$ac_cv_prog_cxx_cross
9800
9801       cat > conftest.$ac_ext <<EOF
9802 #line 9803 "configure"
9803 #include "confdefs.h"
9804 #include <math.h>
9805 int main() {
9806  hypotf(0, 0);
9807 ; return 0; }
9808 EOF
9809 if { (eval echo configure:9810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9810   rm -rf conftest*
9811   glibcpp_cv_func_hypotf_use=yes
9812 else
9813   echo "configure: failed program was:" >&5
9814   cat conftest.$ac_ext >&5
9815   rm -rf conftest*
9816   glibcpp_cv_func_hypotf_use=no
9817 fi
9818 rm -f conftest*
9819       ac_ext=c
9820 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9821 ac_cpp='$CPP $CPPFLAGS'
9822 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9823 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9824 cross_compiling=$ac_cv_prog_cc_cross
9825
9826     
9827 fi
9828
9829   fi
9830   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
9831
9832   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
9833     for ac_func in hypotf
9834 do
9835 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9836 echo "configure:9837: checking for $ac_func" >&5
9837 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9838   echo $ac_n "(cached) $ac_c" 1>&6
9839 else
9840   cat > conftest.$ac_ext <<EOF
9841 #line 9842 "configure"
9842 #include "confdefs.h"
9843 /* System header to define __stub macros and hopefully few prototypes,
9844     which can conflict with char $ac_func(); below.  */
9845 #include <assert.h>
9846 /* Override any gcc2 internal prototype to avoid an error.  */
9847 /* We use char because int might match the return type of a gcc2
9848     builtin and then its argument prototype would still apply.  */
9849 char $ac_func();
9850
9851 int main() {
9852
9853 /* The GNU C library defines this for functions which it implements
9854     to always fail with ENOSYS.  Some functions are actually named
9855     something starting with __ and the normal name is an alias.  */
9856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9857 choke me
9858 #else
9859 $ac_func();
9860 #endif
9861
9862 ; return 0; }
9863 EOF
9864 if { (eval echo configure:9865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9865   rm -rf conftest*
9866   eval "ac_cv_func_$ac_func=yes"
9867 else
9868   echo "configure: failed program was:" >&5
9869   cat conftest.$ac_ext >&5
9870   rm -rf conftest*
9871   eval "ac_cv_func_$ac_func=no"
9872 fi
9873 rm -f conftest*
9874 fi
9875
9876 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9877   echo "$ac_t""yes" 1>&6
9878     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9879   cat >> confdefs.h <<EOF
9880 #define $ac_tr_func 1
9881 EOF
9882  
9883 else
9884   echo "$ac_t""no" 1>&6
9885 fi
9886 done
9887     
9888   else
9889     
9890   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
9891 echo "configure:9892: checking for _hypotf declaration" >&5
9892   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
9893     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
9894   echo $ac_n "(cached) $ac_c" 1>&6
9895 else
9896   
9897       
9898       ac_ext=C
9899 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9900 ac_cpp='$CXXCPP $CPPFLAGS'
9901 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9902 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9903 cross_compiling=$ac_cv_prog_cxx_cross
9904
9905       cat > conftest.$ac_ext <<EOF
9906 #line 9907 "configure"
9907 #include "confdefs.h"
9908 #include <math.h>
9909 int main() {
9910  _hypotf(0, 0);
9911 ; return 0; }
9912 EOF
9913 if { (eval echo configure:9914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9914   rm -rf conftest*
9915   glibcpp_cv_func__hypotf_use=yes
9916 else
9917   echo "configure: failed program was:" >&5
9918   cat conftest.$ac_ext >&5
9919   rm -rf conftest*
9920   glibcpp_cv_func__hypotf_use=no
9921 fi
9922 rm -f conftest*
9923       ac_ext=c
9924 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9925 ac_cpp='$CPP $CPPFLAGS'
9926 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9927 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9928 cross_compiling=$ac_cv_prog_cc_cross
9929
9930     
9931 fi
9932
9933   fi
9934   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
9935
9936     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
9937       for ac_func in _hypotf
9938 do
9939 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9940 echo "configure:9941: checking for $ac_func" >&5
9941 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9942   echo $ac_n "(cached) $ac_c" 1>&6
9943 else
9944   cat > conftest.$ac_ext <<EOF
9945 #line 9946 "configure"
9946 #include "confdefs.h"
9947 /* System header to define __stub macros and hopefully few prototypes,
9948     which can conflict with char $ac_func(); below.  */
9949 #include <assert.h>
9950 /* Override any gcc2 internal prototype to avoid an error.  */
9951 /* We use char because int might match the return type of a gcc2
9952     builtin and then its argument prototype would still apply.  */
9953 char $ac_func();
9954
9955 int main() {
9956
9957 /* The GNU C library defines this for functions which it implements
9958     to always fail with ENOSYS.  Some functions are actually named
9959     something starting with __ and the normal name is an alias.  */
9960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9961 choke me
9962 #else
9963 $ac_func();
9964 #endif
9965
9966 ; return 0; }
9967 EOF
9968 if { (eval echo configure:9969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9969   rm -rf conftest*
9970   eval "ac_cv_func_$ac_func=yes"
9971 else
9972   echo "configure: failed program was:" >&5
9973   cat conftest.$ac_ext >&5
9974   rm -rf conftest*
9975   eval "ac_cv_func_$ac_func=no"
9976 fi
9977 rm -f conftest*
9978 fi
9979
9980 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9981   echo "$ac_t""yes" 1>&6
9982     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9983   cat >> confdefs.h <<EOF
9984 #define $ac_tr_func 1
9985 EOF
9986  
9987 else
9988   echo "$ac_t""no" 1>&6
9989 fi
9990 done
9991     
9992     fi
9993   fi
9994
9995   
9996   
9997   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
9998 echo "configure:9999: checking for ldexpf declaration" >&5
9999   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
10000     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
10001   echo $ac_n "(cached) $ac_c" 1>&6
10002 else
10003   
10004       
10005       ac_ext=C
10006 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10007 ac_cpp='$CXXCPP $CPPFLAGS'
10008 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10009 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10010 cross_compiling=$ac_cv_prog_cxx_cross
10011
10012       cat > conftest.$ac_ext <<EOF
10013 #line 10014 "configure"
10014 #include "confdefs.h"
10015 #include <math.h>
10016 int main() {
10017  ldexpf(0, 0);
10018 ; return 0; }
10019 EOF
10020 if { (eval echo configure:10021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10021   rm -rf conftest*
10022   glibcpp_cv_func_ldexpf_use=yes
10023 else
10024   echo "configure: failed program was:" >&5
10025   cat conftest.$ac_ext >&5
10026   rm -rf conftest*
10027   glibcpp_cv_func_ldexpf_use=no
10028 fi
10029 rm -f conftest*
10030       ac_ext=c
10031 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10032 ac_cpp='$CPP $CPPFLAGS'
10033 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10034 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10035 cross_compiling=$ac_cv_prog_cc_cross
10036
10037     
10038 fi
10039
10040   fi
10041   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
10042
10043   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
10044     for ac_func in ldexpf
10045 do
10046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10047 echo "configure:10048: checking for $ac_func" >&5
10048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10049   echo $ac_n "(cached) $ac_c" 1>&6
10050 else
10051   cat > conftest.$ac_ext <<EOF
10052 #line 10053 "configure"
10053 #include "confdefs.h"
10054 /* System header to define __stub macros and hopefully few prototypes,
10055     which can conflict with char $ac_func(); below.  */
10056 #include <assert.h>
10057 /* Override any gcc2 internal prototype to avoid an error.  */
10058 /* We use char because int might match the return type of a gcc2
10059     builtin and then its argument prototype would still apply.  */
10060 char $ac_func();
10061
10062 int main() {
10063
10064 /* The GNU C library defines this for functions which it implements
10065     to always fail with ENOSYS.  Some functions are actually named
10066     something starting with __ and the normal name is an alias.  */
10067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10068 choke me
10069 #else
10070 $ac_func();
10071 #endif
10072
10073 ; return 0; }
10074 EOF
10075 if { (eval echo configure:10076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10076   rm -rf conftest*
10077   eval "ac_cv_func_$ac_func=yes"
10078 else
10079   echo "configure: failed program was:" >&5
10080   cat conftest.$ac_ext >&5
10081   rm -rf conftest*
10082   eval "ac_cv_func_$ac_func=no"
10083 fi
10084 rm -f conftest*
10085 fi
10086
10087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10088   echo "$ac_t""yes" 1>&6
10089     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10090   cat >> confdefs.h <<EOF
10091 #define $ac_tr_func 1
10092 EOF
10093  
10094 else
10095   echo "$ac_t""no" 1>&6
10096 fi
10097 done
10098     
10099   else
10100     
10101   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
10102 echo "configure:10103: checking for _ldexpf declaration" >&5
10103   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
10104     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
10105   echo $ac_n "(cached) $ac_c" 1>&6
10106 else
10107   
10108       
10109       ac_ext=C
10110 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10111 ac_cpp='$CXXCPP $CPPFLAGS'
10112 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10113 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10114 cross_compiling=$ac_cv_prog_cxx_cross
10115
10116       cat > conftest.$ac_ext <<EOF
10117 #line 10118 "configure"
10118 #include "confdefs.h"
10119 #include <math.h>
10120 int main() {
10121  _ldexpf(0, 0);
10122 ; return 0; }
10123 EOF
10124 if { (eval echo configure:10125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10125   rm -rf conftest*
10126   glibcpp_cv_func__ldexpf_use=yes
10127 else
10128   echo "configure: failed program was:" >&5
10129   cat conftest.$ac_ext >&5
10130   rm -rf conftest*
10131   glibcpp_cv_func__ldexpf_use=no
10132 fi
10133 rm -f conftest*
10134       ac_ext=c
10135 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10136 ac_cpp='$CPP $CPPFLAGS'
10137 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10138 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10139 cross_compiling=$ac_cv_prog_cc_cross
10140
10141     
10142 fi
10143
10144   fi
10145   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
10146
10147     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
10148       for ac_func in _ldexpf
10149 do
10150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10151 echo "configure:10152: checking for $ac_func" >&5
10152 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10153   echo $ac_n "(cached) $ac_c" 1>&6
10154 else
10155   cat > conftest.$ac_ext <<EOF
10156 #line 10157 "configure"
10157 #include "confdefs.h"
10158 /* System header to define __stub macros and hopefully few prototypes,
10159     which can conflict with char $ac_func(); below.  */
10160 #include <assert.h>
10161 /* Override any gcc2 internal prototype to avoid an error.  */
10162 /* We use char because int might match the return type of a gcc2
10163     builtin and then its argument prototype would still apply.  */
10164 char $ac_func();
10165
10166 int main() {
10167
10168 /* The GNU C library defines this for functions which it implements
10169     to always fail with ENOSYS.  Some functions are actually named
10170     something starting with __ and the normal name is an alias.  */
10171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10172 choke me
10173 #else
10174 $ac_func();
10175 #endif
10176
10177 ; return 0; }
10178 EOF
10179 if { (eval echo configure:10180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10180   rm -rf conftest*
10181   eval "ac_cv_func_$ac_func=yes"
10182 else
10183   echo "configure: failed program was:" >&5
10184   cat conftest.$ac_ext >&5
10185   rm -rf conftest*
10186   eval "ac_cv_func_$ac_func=no"
10187 fi
10188 rm -f conftest*
10189 fi
10190
10191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10192   echo "$ac_t""yes" 1>&6
10193     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10194   cat >> confdefs.h <<EOF
10195 #define $ac_tr_func 1
10196 EOF
10197  
10198 else
10199   echo "$ac_t""no" 1>&6
10200 fi
10201 done
10202     
10203     fi
10204   fi
10205
10206   
10207   
10208   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
10209 echo "configure:10210: checking for logf declaration" >&5
10210   if test x${glibcpp_cv_func_logf_use+set} != xset; then
10211     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
10212   echo $ac_n "(cached) $ac_c" 1>&6
10213 else
10214   
10215       
10216       ac_ext=C
10217 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10218 ac_cpp='$CXXCPP $CPPFLAGS'
10219 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10220 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10221 cross_compiling=$ac_cv_prog_cxx_cross
10222
10223       cat > conftest.$ac_ext <<EOF
10224 #line 10225 "configure"
10225 #include "confdefs.h"
10226 #include <math.h>
10227                       #ifdef HAVE_IEEEFP_H
10228                       #include <ieeefp.h>
10229                       #endif
10230                      
10231 int main() {
10232  logf(0);
10233 ; return 0; }
10234 EOF
10235 if { (eval echo configure:10236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10236   rm -rf conftest*
10237   glibcpp_cv_func_logf_use=yes
10238 else
10239   echo "configure: failed program was:" >&5
10240   cat conftest.$ac_ext >&5
10241   rm -rf conftest*
10242   glibcpp_cv_func_logf_use=no
10243 fi
10244 rm -f conftest*
10245       ac_ext=c
10246 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10247 ac_cpp='$CPP $CPPFLAGS'
10248 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10249 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10250 cross_compiling=$ac_cv_prog_cc_cross
10251
10252     
10253 fi
10254
10255   fi
10256   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
10257
10258   if test x$glibcpp_cv_func_logf_use = x"yes"; then
10259     for ac_func in logf
10260 do
10261 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10262 echo "configure:10263: checking for $ac_func" >&5
10263 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10264   echo $ac_n "(cached) $ac_c" 1>&6
10265 else
10266   cat > conftest.$ac_ext <<EOF
10267 #line 10268 "configure"
10268 #include "confdefs.h"
10269 /* System header to define __stub macros and hopefully few prototypes,
10270     which can conflict with char $ac_func(); below.  */
10271 #include <assert.h>
10272 /* Override any gcc2 internal prototype to avoid an error.  */
10273 /* We use char because int might match the return type of a gcc2
10274     builtin and then its argument prototype would still apply.  */
10275 char $ac_func();
10276
10277 int main() {
10278
10279 /* The GNU C library defines this for functions which it implements
10280     to always fail with ENOSYS.  Some functions are actually named
10281     something starting with __ and the normal name is an alias.  */
10282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10283 choke me
10284 #else
10285 $ac_func();
10286 #endif
10287
10288 ; return 0; }
10289 EOF
10290 if { (eval echo configure:10291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10291   rm -rf conftest*
10292   eval "ac_cv_func_$ac_func=yes"
10293 else
10294   echo "configure: failed program was:" >&5
10295   cat conftest.$ac_ext >&5
10296   rm -rf conftest*
10297   eval "ac_cv_func_$ac_func=no"
10298 fi
10299 rm -f conftest*
10300 fi
10301
10302 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10303   echo "$ac_t""yes" 1>&6
10304     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10305   cat >> confdefs.h <<EOF
10306 #define $ac_tr_func 1
10307 EOF
10308  
10309 else
10310   echo "$ac_t""no" 1>&6
10311 fi
10312 done
10313     
10314   else
10315     
10316   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
10317 echo "configure:10318: checking for _logf declaration" >&5
10318   if test x${glibcpp_cv_func__logf_use+set} != xset; then
10319     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
10320   echo $ac_n "(cached) $ac_c" 1>&6
10321 else
10322   
10323       
10324       ac_ext=C
10325 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10326 ac_cpp='$CXXCPP $CPPFLAGS'
10327 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10328 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10329 cross_compiling=$ac_cv_prog_cxx_cross
10330
10331       cat > conftest.$ac_ext <<EOF
10332 #line 10333 "configure"
10333 #include "confdefs.h"
10334 #include <math.h>
10335                       #ifdef HAVE_IEEEFP_H
10336                       #include <ieeefp.h>
10337                       #endif
10338                      
10339 int main() {
10340  _logf(0);
10341 ; return 0; }
10342 EOF
10343 if { (eval echo configure:10344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10344   rm -rf conftest*
10345   glibcpp_cv_func__logf_use=yes
10346 else
10347   echo "configure: failed program was:" >&5
10348   cat conftest.$ac_ext >&5
10349   rm -rf conftest*
10350   glibcpp_cv_func__logf_use=no
10351 fi
10352 rm -f conftest*
10353       ac_ext=c
10354 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10355 ac_cpp='$CPP $CPPFLAGS'
10356 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10357 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10358 cross_compiling=$ac_cv_prog_cc_cross
10359
10360     
10361 fi
10362
10363   fi
10364   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
10365
10366     if test x$glibcpp_cv_func__logf_use = x"yes"; then
10367       for ac_func in _logf
10368 do
10369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10370 echo "configure:10371: checking for $ac_func" >&5
10371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10372   echo $ac_n "(cached) $ac_c" 1>&6
10373 else
10374   cat > conftest.$ac_ext <<EOF
10375 #line 10376 "configure"
10376 #include "confdefs.h"
10377 /* System header to define __stub macros and hopefully few prototypes,
10378     which can conflict with char $ac_func(); below.  */
10379 #include <assert.h>
10380 /* Override any gcc2 internal prototype to avoid an error.  */
10381 /* We use char because int might match the return type of a gcc2
10382     builtin and then its argument prototype would still apply.  */
10383 char $ac_func();
10384
10385 int main() {
10386
10387 /* The GNU C library defines this for functions which it implements
10388     to always fail with ENOSYS.  Some functions are actually named
10389     something starting with __ and the normal name is an alias.  */
10390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10391 choke me
10392 #else
10393 $ac_func();
10394 #endif
10395
10396 ; return 0; }
10397 EOF
10398 if { (eval echo configure:10399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10399   rm -rf conftest*
10400   eval "ac_cv_func_$ac_func=yes"
10401 else
10402   echo "configure: failed program was:" >&5
10403   cat conftest.$ac_ext >&5
10404   rm -rf conftest*
10405   eval "ac_cv_func_$ac_func=no"
10406 fi
10407 rm -f conftest*
10408 fi
10409
10410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10411   echo "$ac_t""yes" 1>&6
10412     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10413   cat >> confdefs.h <<EOF
10414 #define $ac_tr_func 1
10415 EOF
10416  
10417 else
10418   echo "$ac_t""no" 1>&6
10419 fi
10420 done
10421     
10422     fi
10423   fi
10424
10425   
10426   
10427   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
10428 echo "configure:10429: checking for log10f declaration" >&5
10429   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
10430     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
10431   echo $ac_n "(cached) $ac_c" 1>&6
10432 else
10433   
10434       
10435       ac_ext=C
10436 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10437 ac_cpp='$CXXCPP $CPPFLAGS'
10438 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10439 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10440 cross_compiling=$ac_cv_prog_cxx_cross
10441
10442       cat > conftest.$ac_ext <<EOF
10443 #line 10444 "configure"
10444 #include "confdefs.h"
10445 #include <math.h>
10446                       #ifdef HAVE_IEEEFP_H
10447                       #include <ieeefp.h>
10448                       #endif
10449                      
10450 int main() {
10451  log10f(0);
10452 ; return 0; }
10453 EOF
10454 if { (eval echo configure:10455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10455   rm -rf conftest*
10456   glibcpp_cv_func_log10f_use=yes
10457 else
10458   echo "configure: failed program was:" >&5
10459   cat conftest.$ac_ext >&5
10460   rm -rf conftest*
10461   glibcpp_cv_func_log10f_use=no
10462 fi
10463 rm -f conftest*
10464       ac_ext=c
10465 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10466 ac_cpp='$CPP $CPPFLAGS'
10467 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10468 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10469 cross_compiling=$ac_cv_prog_cc_cross
10470
10471     
10472 fi
10473
10474   fi
10475   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
10476
10477   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
10478     for ac_func in log10f
10479 do
10480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10481 echo "configure:10482: checking for $ac_func" >&5
10482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10483   echo $ac_n "(cached) $ac_c" 1>&6
10484 else
10485   cat > conftest.$ac_ext <<EOF
10486 #line 10487 "configure"
10487 #include "confdefs.h"
10488 /* System header to define __stub macros and hopefully few prototypes,
10489     which can conflict with char $ac_func(); below.  */
10490 #include <assert.h>
10491 /* Override any gcc2 internal prototype to avoid an error.  */
10492 /* We use char because int might match the return type of a gcc2
10493     builtin and then its argument prototype would still apply.  */
10494 char $ac_func();
10495
10496 int main() {
10497
10498 /* The GNU C library defines this for functions which it implements
10499     to always fail with ENOSYS.  Some functions are actually named
10500     something starting with __ and the normal name is an alias.  */
10501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10502 choke me
10503 #else
10504 $ac_func();
10505 #endif
10506
10507 ; return 0; }
10508 EOF
10509 if { (eval echo configure:10510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10510   rm -rf conftest*
10511   eval "ac_cv_func_$ac_func=yes"
10512 else
10513   echo "configure: failed program was:" >&5
10514   cat conftest.$ac_ext >&5
10515   rm -rf conftest*
10516   eval "ac_cv_func_$ac_func=no"
10517 fi
10518 rm -f conftest*
10519 fi
10520
10521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10522   echo "$ac_t""yes" 1>&6
10523     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10524   cat >> confdefs.h <<EOF
10525 #define $ac_tr_func 1
10526 EOF
10527  
10528 else
10529   echo "$ac_t""no" 1>&6
10530 fi
10531 done
10532     
10533   else
10534     
10535   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
10536 echo "configure:10537: checking for _log10f declaration" >&5
10537   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
10538     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
10539   echo $ac_n "(cached) $ac_c" 1>&6
10540 else
10541   
10542       
10543       ac_ext=C
10544 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10545 ac_cpp='$CXXCPP $CPPFLAGS'
10546 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10547 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10548 cross_compiling=$ac_cv_prog_cxx_cross
10549
10550       cat > conftest.$ac_ext <<EOF
10551 #line 10552 "configure"
10552 #include "confdefs.h"
10553 #include <math.h>
10554                       #ifdef HAVE_IEEEFP_H
10555                       #include <ieeefp.h>
10556                       #endif
10557                      
10558 int main() {
10559  _log10f(0);
10560 ; return 0; }
10561 EOF
10562 if { (eval echo configure:10563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10563   rm -rf conftest*
10564   glibcpp_cv_func__log10f_use=yes
10565 else
10566   echo "configure: failed program was:" >&5
10567   cat conftest.$ac_ext >&5
10568   rm -rf conftest*
10569   glibcpp_cv_func__log10f_use=no
10570 fi
10571 rm -f conftest*
10572       ac_ext=c
10573 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10574 ac_cpp='$CPP $CPPFLAGS'
10575 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10576 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10577 cross_compiling=$ac_cv_prog_cc_cross
10578
10579     
10580 fi
10581
10582   fi
10583   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
10584
10585     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
10586       for ac_func in _log10f
10587 do
10588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10589 echo "configure:10590: checking for $ac_func" >&5
10590 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10591   echo $ac_n "(cached) $ac_c" 1>&6
10592 else
10593   cat > conftest.$ac_ext <<EOF
10594 #line 10595 "configure"
10595 #include "confdefs.h"
10596 /* System header to define __stub macros and hopefully few prototypes,
10597     which can conflict with char $ac_func(); below.  */
10598 #include <assert.h>
10599 /* Override any gcc2 internal prototype to avoid an error.  */
10600 /* We use char because int might match the return type of a gcc2
10601     builtin and then its argument prototype would still apply.  */
10602 char $ac_func();
10603
10604 int main() {
10605
10606 /* The GNU C library defines this for functions which it implements
10607     to always fail with ENOSYS.  Some functions are actually named
10608     something starting with __ and the normal name is an alias.  */
10609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10610 choke me
10611 #else
10612 $ac_func();
10613 #endif
10614
10615 ; return 0; }
10616 EOF
10617 if { (eval echo configure:10618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10618   rm -rf conftest*
10619   eval "ac_cv_func_$ac_func=yes"
10620 else
10621   echo "configure: failed program was:" >&5
10622   cat conftest.$ac_ext >&5
10623   rm -rf conftest*
10624   eval "ac_cv_func_$ac_func=no"
10625 fi
10626 rm -f conftest*
10627 fi
10628
10629 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10630   echo "$ac_t""yes" 1>&6
10631     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10632   cat >> confdefs.h <<EOF
10633 #define $ac_tr_func 1
10634 EOF
10635  
10636 else
10637   echo "$ac_t""no" 1>&6
10638 fi
10639 done
10640     
10641     fi
10642   fi
10643
10644   
10645   
10646   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
10647 echo "configure:10648: checking for modff declaration" >&5
10648   if test x${glibcpp_cv_func_modff_use+set} != xset; then
10649     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
10650   echo $ac_n "(cached) $ac_c" 1>&6
10651 else
10652   
10653       
10654       ac_ext=C
10655 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10656 ac_cpp='$CXXCPP $CPPFLAGS'
10657 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10658 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10659 cross_compiling=$ac_cv_prog_cxx_cross
10660
10661       cat > conftest.$ac_ext <<EOF
10662 #line 10663 "configure"
10663 #include "confdefs.h"
10664 #include <math.h>
10665 int main() {
10666  modff(0, 0);
10667 ; return 0; }
10668 EOF
10669 if { (eval echo configure:10670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10670   rm -rf conftest*
10671   glibcpp_cv_func_modff_use=yes
10672 else
10673   echo "configure: failed program was:" >&5
10674   cat conftest.$ac_ext >&5
10675   rm -rf conftest*
10676   glibcpp_cv_func_modff_use=no
10677 fi
10678 rm -f conftest*
10679       ac_ext=c
10680 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10681 ac_cpp='$CPP $CPPFLAGS'
10682 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10683 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10684 cross_compiling=$ac_cv_prog_cc_cross
10685
10686     
10687 fi
10688
10689   fi
10690   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
10691
10692   if test x$glibcpp_cv_func_modff_use = x"yes"; then
10693     for ac_func in modff
10694 do
10695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10696 echo "configure:10697: checking for $ac_func" >&5
10697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10698   echo $ac_n "(cached) $ac_c" 1>&6
10699 else
10700   cat > conftest.$ac_ext <<EOF
10701 #line 10702 "configure"
10702 #include "confdefs.h"
10703 /* System header to define __stub macros and hopefully few prototypes,
10704     which can conflict with char $ac_func(); below.  */
10705 #include <assert.h>
10706 /* Override any gcc2 internal prototype to avoid an error.  */
10707 /* We use char because int might match the return type of a gcc2
10708     builtin and then its argument prototype would still apply.  */
10709 char $ac_func();
10710
10711 int main() {
10712
10713 /* The GNU C library defines this for functions which it implements
10714     to always fail with ENOSYS.  Some functions are actually named
10715     something starting with __ and the normal name is an alias.  */
10716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10717 choke me
10718 #else
10719 $ac_func();
10720 #endif
10721
10722 ; return 0; }
10723 EOF
10724 if { (eval echo configure:10725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10725   rm -rf conftest*
10726   eval "ac_cv_func_$ac_func=yes"
10727 else
10728   echo "configure: failed program was:" >&5
10729   cat conftest.$ac_ext >&5
10730   rm -rf conftest*
10731   eval "ac_cv_func_$ac_func=no"
10732 fi
10733 rm -f conftest*
10734 fi
10735
10736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10737   echo "$ac_t""yes" 1>&6
10738     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10739   cat >> confdefs.h <<EOF
10740 #define $ac_tr_func 1
10741 EOF
10742  
10743 else
10744   echo "$ac_t""no" 1>&6
10745 fi
10746 done
10747     
10748   else
10749     
10750   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
10751 echo "configure:10752: checking for _modff declaration" >&5
10752   if test x${glibcpp_cv_func__modff_use+set} != xset; then
10753     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
10754   echo $ac_n "(cached) $ac_c" 1>&6
10755 else
10756   
10757       
10758       ac_ext=C
10759 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10760 ac_cpp='$CXXCPP $CPPFLAGS'
10761 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10762 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10763 cross_compiling=$ac_cv_prog_cxx_cross
10764
10765       cat > conftest.$ac_ext <<EOF
10766 #line 10767 "configure"
10767 #include "confdefs.h"
10768 #include <math.h>
10769 int main() {
10770  _modff(0, 0);
10771 ; return 0; }
10772 EOF
10773 if { (eval echo configure:10774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10774   rm -rf conftest*
10775   glibcpp_cv_func__modff_use=yes
10776 else
10777   echo "configure: failed program was:" >&5
10778   cat conftest.$ac_ext >&5
10779   rm -rf conftest*
10780   glibcpp_cv_func__modff_use=no
10781 fi
10782 rm -f conftest*
10783       ac_ext=c
10784 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10785 ac_cpp='$CPP $CPPFLAGS'
10786 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10787 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10788 cross_compiling=$ac_cv_prog_cc_cross
10789
10790     
10791 fi
10792
10793   fi
10794   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
10795
10796     if test x$glibcpp_cv_func__modff_use = x"yes"; then
10797       for ac_func in _modff
10798 do
10799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10800 echo "configure:10801: checking for $ac_func" >&5
10801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10802   echo $ac_n "(cached) $ac_c" 1>&6
10803 else
10804   cat > conftest.$ac_ext <<EOF
10805 #line 10806 "configure"
10806 #include "confdefs.h"
10807 /* System header to define __stub macros and hopefully few prototypes,
10808     which can conflict with char $ac_func(); below.  */
10809 #include <assert.h>
10810 /* Override any gcc2 internal prototype to avoid an error.  */
10811 /* We use char because int might match the return type of a gcc2
10812     builtin and then its argument prototype would still apply.  */
10813 char $ac_func();
10814
10815 int main() {
10816
10817 /* The GNU C library defines this for functions which it implements
10818     to always fail with ENOSYS.  Some functions are actually named
10819     something starting with __ and the normal name is an alias.  */
10820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10821 choke me
10822 #else
10823 $ac_func();
10824 #endif
10825
10826 ; return 0; }
10827 EOF
10828 if { (eval echo configure:10829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10829   rm -rf conftest*
10830   eval "ac_cv_func_$ac_func=yes"
10831 else
10832   echo "configure: failed program was:" >&5
10833   cat conftest.$ac_ext >&5
10834   rm -rf conftest*
10835   eval "ac_cv_func_$ac_func=no"
10836 fi
10837 rm -f conftest*
10838 fi
10839
10840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10841   echo "$ac_t""yes" 1>&6
10842     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10843   cat >> confdefs.h <<EOF
10844 #define $ac_tr_func 1
10845 EOF
10846  
10847 else
10848   echo "$ac_t""no" 1>&6
10849 fi
10850 done
10851     
10852     fi
10853   fi
10854
10855   
10856   
10857   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
10858 echo "configure:10859: checking for powf declaration" >&5
10859   if test x${glibcpp_cv_func_powf_use+set} != xset; then
10860     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
10861   echo $ac_n "(cached) $ac_c" 1>&6
10862 else
10863   
10864       
10865       ac_ext=C
10866 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10867 ac_cpp='$CXXCPP $CPPFLAGS'
10868 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10869 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10870 cross_compiling=$ac_cv_prog_cxx_cross
10871
10872       cat > conftest.$ac_ext <<EOF
10873 #line 10874 "configure"
10874 #include "confdefs.h"
10875 #include <math.h>
10876 int main() {
10877  powf(0, 0);
10878 ; return 0; }
10879 EOF
10880 if { (eval echo configure:10881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10881   rm -rf conftest*
10882   glibcpp_cv_func_powf_use=yes
10883 else
10884   echo "configure: failed program was:" >&5
10885   cat conftest.$ac_ext >&5
10886   rm -rf conftest*
10887   glibcpp_cv_func_powf_use=no
10888 fi
10889 rm -f conftest*
10890       ac_ext=c
10891 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10892 ac_cpp='$CPP $CPPFLAGS'
10893 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10894 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10895 cross_compiling=$ac_cv_prog_cc_cross
10896
10897     
10898 fi
10899
10900   fi
10901   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
10902
10903   if test x$glibcpp_cv_func_powf_use = x"yes"; then
10904     for ac_func in powf
10905 do
10906 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10907 echo "configure:10908: checking for $ac_func" >&5
10908 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10909   echo $ac_n "(cached) $ac_c" 1>&6
10910 else
10911   cat > conftest.$ac_ext <<EOF
10912 #line 10913 "configure"
10913 #include "confdefs.h"
10914 /* System header to define __stub macros and hopefully few prototypes,
10915     which can conflict with char $ac_func(); below.  */
10916 #include <assert.h>
10917 /* Override any gcc2 internal prototype to avoid an error.  */
10918 /* We use char because int might match the return type of a gcc2
10919     builtin and then its argument prototype would still apply.  */
10920 char $ac_func();
10921
10922 int main() {
10923
10924 /* The GNU C library defines this for functions which it implements
10925     to always fail with ENOSYS.  Some functions are actually named
10926     something starting with __ and the normal name is an alias.  */
10927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10928 choke me
10929 #else
10930 $ac_func();
10931 #endif
10932
10933 ; return 0; }
10934 EOF
10935 if { (eval echo configure:10936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10936   rm -rf conftest*
10937   eval "ac_cv_func_$ac_func=yes"
10938 else
10939   echo "configure: failed program was:" >&5
10940   cat conftest.$ac_ext >&5
10941   rm -rf conftest*
10942   eval "ac_cv_func_$ac_func=no"
10943 fi
10944 rm -f conftest*
10945 fi
10946
10947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10948   echo "$ac_t""yes" 1>&6
10949     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10950   cat >> confdefs.h <<EOF
10951 #define $ac_tr_func 1
10952 EOF
10953  
10954 else
10955   echo "$ac_t""no" 1>&6
10956 fi
10957 done
10958     
10959   else
10960     
10961   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
10962 echo "configure:10963: checking for _powf declaration" >&5
10963   if test x${glibcpp_cv_func__powf_use+set} != xset; then
10964     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
10965   echo $ac_n "(cached) $ac_c" 1>&6
10966 else
10967   
10968       
10969       ac_ext=C
10970 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10971 ac_cpp='$CXXCPP $CPPFLAGS'
10972 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10973 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10974 cross_compiling=$ac_cv_prog_cxx_cross
10975
10976       cat > conftest.$ac_ext <<EOF
10977 #line 10978 "configure"
10978 #include "confdefs.h"
10979 #include <math.h>
10980 int main() {
10981  _powf(0, 0);
10982 ; return 0; }
10983 EOF
10984 if { (eval echo configure:10985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10985   rm -rf conftest*
10986   glibcpp_cv_func__powf_use=yes
10987 else
10988   echo "configure: failed program was:" >&5
10989   cat conftest.$ac_ext >&5
10990   rm -rf conftest*
10991   glibcpp_cv_func__powf_use=no
10992 fi
10993 rm -f conftest*
10994       ac_ext=c
10995 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10996 ac_cpp='$CPP $CPPFLAGS'
10997 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10998 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10999 cross_compiling=$ac_cv_prog_cc_cross
11000
11001     
11002 fi
11003
11004   fi
11005   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
11006
11007     if test x$glibcpp_cv_func__powf_use = x"yes"; then
11008       for ac_func in _powf
11009 do
11010 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11011 echo "configure:11012: checking for $ac_func" >&5
11012 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11013   echo $ac_n "(cached) $ac_c" 1>&6
11014 else
11015   cat > conftest.$ac_ext <<EOF
11016 #line 11017 "configure"
11017 #include "confdefs.h"
11018 /* System header to define __stub macros and hopefully few prototypes,
11019     which can conflict with char $ac_func(); below.  */
11020 #include <assert.h>
11021 /* Override any gcc2 internal prototype to avoid an error.  */
11022 /* We use char because int might match the return type of a gcc2
11023     builtin and then its argument prototype would still apply.  */
11024 char $ac_func();
11025
11026 int main() {
11027
11028 /* The GNU C library defines this for functions which it implements
11029     to always fail with ENOSYS.  Some functions are actually named
11030     something starting with __ and the normal name is an alias.  */
11031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11032 choke me
11033 #else
11034 $ac_func();
11035 #endif
11036
11037 ; return 0; }
11038 EOF
11039 if { (eval echo configure:11040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11040   rm -rf conftest*
11041   eval "ac_cv_func_$ac_func=yes"
11042 else
11043   echo "configure: failed program was:" >&5
11044   cat conftest.$ac_ext >&5
11045   rm -rf conftest*
11046   eval "ac_cv_func_$ac_func=no"
11047 fi
11048 rm -f conftest*
11049 fi
11050
11051 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11052   echo "$ac_t""yes" 1>&6
11053     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11054   cat >> confdefs.h <<EOF
11055 #define $ac_tr_func 1
11056 EOF
11057  
11058 else
11059   echo "$ac_t""no" 1>&6
11060 fi
11061 done
11062     
11063     fi
11064   fi
11065
11066   
11067   
11068   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
11069 echo "configure:11070: checking for sqrtf declaration" >&5
11070   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
11071     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
11072   echo $ac_n "(cached) $ac_c" 1>&6
11073 else
11074   
11075       
11076       ac_ext=C
11077 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11078 ac_cpp='$CXXCPP $CPPFLAGS'
11079 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11080 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11081 cross_compiling=$ac_cv_prog_cxx_cross
11082
11083       cat > conftest.$ac_ext <<EOF
11084 #line 11085 "configure"
11085 #include "confdefs.h"
11086 #include <math.h>
11087                       #ifdef HAVE_IEEEFP_H
11088                       #include <ieeefp.h>
11089                       #endif
11090                      
11091 int main() {
11092  sqrtf(0);
11093 ; return 0; }
11094 EOF
11095 if { (eval echo configure:11096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11096   rm -rf conftest*
11097   glibcpp_cv_func_sqrtf_use=yes
11098 else
11099   echo "configure: failed program was:" >&5
11100   cat conftest.$ac_ext >&5
11101   rm -rf conftest*
11102   glibcpp_cv_func_sqrtf_use=no
11103 fi
11104 rm -f conftest*
11105       ac_ext=c
11106 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11107 ac_cpp='$CPP $CPPFLAGS'
11108 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11109 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11110 cross_compiling=$ac_cv_prog_cc_cross
11111
11112     
11113 fi
11114
11115   fi
11116   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
11117
11118   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
11119     for ac_func in sqrtf
11120 do
11121 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11122 echo "configure:11123: checking for $ac_func" >&5
11123 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11124   echo $ac_n "(cached) $ac_c" 1>&6
11125 else
11126   cat > conftest.$ac_ext <<EOF
11127 #line 11128 "configure"
11128 #include "confdefs.h"
11129 /* System header to define __stub macros and hopefully few prototypes,
11130     which can conflict with char $ac_func(); below.  */
11131 #include <assert.h>
11132 /* Override any gcc2 internal prototype to avoid an error.  */
11133 /* We use char because int might match the return type of a gcc2
11134     builtin and then its argument prototype would still apply.  */
11135 char $ac_func();
11136
11137 int main() {
11138
11139 /* The GNU C library defines this for functions which it implements
11140     to always fail with ENOSYS.  Some functions are actually named
11141     something starting with __ and the normal name is an alias.  */
11142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11143 choke me
11144 #else
11145 $ac_func();
11146 #endif
11147
11148 ; return 0; }
11149 EOF
11150 if { (eval echo configure:11151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11151   rm -rf conftest*
11152   eval "ac_cv_func_$ac_func=yes"
11153 else
11154   echo "configure: failed program was:" >&5
11155   cat conftest.$ac_ext >&5
11156   rm -rf conftest*
11157   eval "ac_cv_func_$ac_func=no"
11158 fi
11159 rm -f conftest*
11160 fi
11161
11162 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11163   echo "$ac_t""yes" 1>&6
11164     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11165   cat >> confdefs.h <<EOF
11166 #define $ac_tr_func 1
11167 EOF
11168  
11169 else
11170   echo "$ac_t""no" 1>&6
11171 fi
11172 done
11173     
11174   else
11175     
11176   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
11177 echo "configure:11178: checking for _sqrtf declaration" >&5
11178   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
11179     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
11180   echo $ac_n "(cached) $ac_c" 1>&6
11181 else
11182   
11183       
11184       ac_ext=C
11185 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11186 ac_cpp='$CXXCPP $CPPFLAGS'
11187 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11188 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11189 cross_compiling=$ac_cv_prog_cxx_cross
11190
11191       cat > conftest.$ac_ext <<EOF
11192 #line 11193 "configure"
11193 #include "confdefs.h"
11194 #include <math.h>
11195                       #ifdef HAVE_IEEEFP_H
11196                       #include <ieeefp.h>
11197                       #endif
11198                      
11199 int main() {
11200  _sqrtf(0);
11201 ; return 0; }
11202 EOF
11203 if { (eval echo configure:11204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11204   rm -rf conftest*
11205   glibcpp_cv_func__sqrtf_use=yes
11206 else
11207   echo "configure: failed program was:" >&5
11208   cat conftest.$ac_ext >&5
11209   rm -rf conftest*
11210   glibcpp_cv_func__sqrtf_use=no
11211 fi
11212 rm -f conftest*
11213       ac_ext=c
11214 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11215 ac_cpp='$CPP $CPPFLAGS'
11216 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11217 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11218 cross_compiling=$ac_cv_prog_cc_cross
11219
11220     
11221 fi
11222
11223   fi
11224   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
11225
11226     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
11227       for ac_func in _sqrtf
11228 do
11229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11230 echo "configure:11231: checking for $ac_func" >&5
11231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11232   echo $ac_n "(cached) $ac_c" 1>&6
11233 else
11234   cat > conftest.$ac_ext <<EOF
11235 #line 11236 "configure"
11236 #include "confdefs.h"
11237 /* System header to define __stub macros and hopefully few prototypes,
11238     which can conflict with char $ac_func(); below.  */
11239 #include <assert.h>
11240 /* Override any gcc2 internal prototype to avoid an error.  */
11241 /* We use char because int might match the return type of a gcc2
11242     builtin and then its argument prototype would still apply.  */
11243 char $ac_func();
11244
11245 int main() {
11246
11247 /* The GNU C library defines this for functions which it implements
11248     to always fail with ENOSYS.  Some functions are actually named
11249     something starting with __ and the normal name is an alias.  */
11250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11251 choke me
11252 #else
11253 $ac_func();
11254 #endif
11255
11256 ; return 0; }
11257 EOF
11258 if { (eval echo configure:11259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11259   rm -rf conftest*
11260   eval "ac_cv_func_$ac_func=yes"
11261 else
11262   echo "configure: failed program was:" >&5
11263   cat conftest.$ac_ext >&5
11264   rm -rf conftest*
11265   eval "ac_cv_func_$ac_func=no"
11266 fi
11267 rm -f conftest*
11268 fi
11269
11270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11271   echo "$ac_t""yes" 1>&6
11272     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11273   cat >> confdefs.h <<EOF
11274 #define $ac_tr_func 1
11275 EOF
11276  
11277 else
11278   echo "$ac_t""no" 1>&6
11279 fi
11280 done
11281     
11282     fi
11283   fi
11284
11285   
11286   
11287   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
11288 echo "configure:11289: checking for sincosf declaration" >&5
11289   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
11290     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
11291   echo $ac_n "(cached) $ac_c" 1>&6
11292 else
11293   
11294       
11295       ac_ext=C
11296 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11297 ac_cpp='$CXXCPP $CPPFLAGS'
11298 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11299 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11300 cross_compiling=$ac_cv_prog_cxx_cross
11301
11302       cat > conftest.$ac_ext <<EOF
11303 #line 11304 "configure"
11304 #include "confdefs.h"
11305 #include <math.h>
11306 int main() {
11307  sincosf(0, 0, 0);
11308 ; return 0; }
11309 EOF
11310 if { (eval echo configure:11311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11311   rm -rf conftest*
11312   glibcpp_cv_func_sincosf_use=yes
11313 else
11314   echo "configure: failed program was:" >&5
11315   cat conftest.$ac_ext >&5
11316   rm -rf conftest*
11317   glibcpp_cv_func_sincosf_use=no
11318 fi
11319 rm -f conftest*
11320       ac_ext=c
11321 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11322 ac_cpp='$CPP $CPPFLAGS'
11323 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11324 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11325 cross_compiling=$ac_cv_prog_cc_cross
11326
11327     
11328 fi
11329
11330   fi
11331   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
11332
11333   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
11334     for ac_func in sincosf
11335 do
11336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11337 echo "configure:11338: checking for $ac_func" >&5
11338 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11339   echo $ac_n "(cached) $ac_c" 1>&6
11340 else
11341   cat > conftest.$ac_ext <<EOF
11342 #line 11343 "configure"
11343 #include "confdefs.h"
11344 /* System header to define __stub macros and hopefully few prototypes,
11345     which can conflict with char $ac_func(); below.  */
11346 #include <assert.h>
11347 /* Override any gcc2 internal prototype to avoid an error.  */
11348 /* We use char because int might match the return type of a gcc2
11349     builtin and then its argument prototype would still apply.  */
11350 char $ac_func();
11351
11352 int main() {
11353
11354 /* The GNU C library defines this for functions which it implements
11355     to always fail with ENOSYS.  Some functions are actually named
11356     something starting with __ and the normal name is an alias.  */
11357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11358 choke me
11359 #else
11360 $ac_func();
11361 #endif
11362
11363 ; return 0; }
11364 EOF
11365 if { (eval echo configure:11366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11366   rm -rf conftest*
11367   eval "ac_cv_func_$ac_func=yes"
11368 else
11369   echo "configure: failed program was:" >&5
11370   cat conftest.$ac_ext >&5
11371   rm -rf conftest*
11372   eval "ac_cv_func_$ac_func=no"
11373 fi
11374 rm -f conftest*
11375 fi
11376
11377 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11378   echo "$ac_t""yes" 1>&6
11379     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11380   cat >> confdefs.h <<EOF
11381 #define $ac_tr_func 1
11382 EOF
11383  
11384 else
11385   echo "$ac_t""no" 1>&6
11386 fi
11387 done
11388     
11389   else
11390     
11391   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
11392 echo "configure:11393: checking for _sincosf declaration" >&5
11393   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
11394     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
11395   echo $ac_n "(cached) $ac_c" 1>&6
11396 else
11397   
11398       
11399       ac_ext=C
11400 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11401 ac_cpp='$CXXCPP $CPPFLAGS'
11402 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11403 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11404 cross_compiling=$ac_cv_prog_cxx_cross
11405
11406       cat > conftest.$ac_ext <<EOF
11407 #line 11408 "configure"
11408 #include "confdefs.h"
11409 #include <math.h>
11410 int main() {
11411  _sincosf(0, 0, 0);
11412 ; return 0; }
11413 EOF
11414 if { (eval echo configure:11415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11415   rm -rf conftest*
11416   glibcpp_cv_func__sincosf_use=yes
11417 else
11418   echo "configure: failed program was:" >&5
11419   cat conftest.$ac_ext >&5
11420   rm -rf conftest*
11421   glibcpp_cv_func__sincosf_use=no
11422 fi
11423 rm -f conftest*
11424       ac_ext=c
11425 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11426 ac_cpp='$CPP $CPPFLAGS'
11427 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11428 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11429 cross_compiling=$ac_cv_prog_cc_cross
11430
11431     
11432 fi
11433
11434   fi
11435   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
11436
11437     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
11438       for ac_func in _sincosf
11439 do
11440 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11441 echo "configure:11442: checking for $ac_func" >&5
11442 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11443   echo $ac_n "(cached) $ac_c" 1>&6
11444 else
11445   cat > conftest.$ac_ext <<EOF
11446 #line 11447 "configure"
11447 #include "confdefs.h"
11448 /* System header to define __stub macros and hopefully few prototypes,
11449     which can conflict with char $ac_func(); below.  */
11450 #include <assert.h>
11451 /* Override any gcc2 internal prototype to avoid an error.  */
11452 /* We use char because int might match the return type of a gcc2
11453     builtin and then its argument prototype would still apply.  */
11454 char $ac_func();
11455
11456 int main() {
11457
11458 /* The GNU C library defines this for functions which it implements
11459     to always fail with ENOSYS.  Some functions are actually named
11460     something starting with __ and the normal name is an alias.  */
11461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11462 choke me
11463 #else
11464 $ac_func();
11465 #endif
11466
11467 ; return 0; }
11468 EOF
11469 if { (eval echo configure:11470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11470   rm -rf conftest*
11471   eval "ac_cv_func_$ac_func=yes"
11472 else
11473   echo "configure: failed program was:" >&5
11474   cat conftest.$ac_ext >&5
11475   rm -rf conftest*
11476   eval "ac_cv_func_$ac_func=no"
11477 fi
11478 rm -f conftest*
11479 fi
11480
11481 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11482   echo "$ac_t""yes" 1>&6
11483     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11484   cat >> confdefs.h <<EOF
11485 #define $ac_tr_func 1
11486 EOF
11487  
11488 else
11489   echo "$ac_t""no" 1>&6
11490 fi
11491 done
11492     
11493     fi
11494   fi
11495
11496   
11497   
11498   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
11499 echo "configure:11500: checking for finitef declaration" >&5
11500   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
11501     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
11502   echo $ac_n "(cached) $ac_c" 1>&6
11503 else
11504   
11505       
11506       ac_ext=C
11507 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11508 ac_cpp='$CXXCPP $CPPFLAGS'
11509 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11510 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11511 cross_compiling=$ac_cv_prog_cxx_cross
11512
11513       cat > conftest.$ac_ext <<EOF
11514 #line 11515 "configure"
11515 #include "confdefs.h"
11516 #include <math.h>
11517                       #ifdef HAVE_IEEEFP_H
11518                       #include <ieeefp.h>
11519                       #endif
11520                      
11521 int main() {
11522  finitef(0);
11523 ; return 0; }
11524 EOF
11525 if { (eval echo configure:11526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11526   rm -rf conftest*
11527   glibcpp_cv_func_finitef_use=yes
11528 else
11529   echo "configure: failed program was:" >&5
11530   cat conftest.$ac_ext >&5
11531   rm -rf conftest*
11532   glibcpp_cv_func_finitef_use=no
11533 fi
11534 rm -f conftest*
11535       ac_ext=c
11536 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11537 ac_cpp='$CPP $CPPFLAGS'
11538 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11539 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11540 cross_compiling=$ac_cv_prog_cc_cross
11541
11542     
11543 fi
11544
11545   fi
11546   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
11547
11548   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
11549     for ac_func in finitef
11550 do
11551 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11552 echo "configure:11553: checking for $ac_func" >&5
11553 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11554   echo $ac_n "(cached) $ac_c" 1>&6
11555 else
11556   cat > conftest.$ac_ext <<EOF
11557 #line 11558 "configure"
11558 #include "confdefs.h"
11559 /* System header to define __stub macros and hopefully few prototypes,
11560     which can conflict with char $ac_func(); below.  */
11561 #include <assert.h>
11562 /* Override any gcc2 internal prototype to avoid an error.  */
11563 /* We use char because int might match the return type of a gcc2
11564     builtin and then its argument prototype would still apply.  */
11565 char $ac_func();
11566
11567 int main() {
11568
11569 /* The GNU C library defines this for functions which it implements
11570     to always fail with ENOSYS.  Some functions are actually named
11571     something starting with __ and the normal name is an alias.  */
11572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11573 choke me
11574 #else
11575 $ac_func();
11576 #endif
11577
11578 ; return 0; }
11579 EOF
11580 if { (eval echo configure:11581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11581   rm -rf conftest*
11582   eval "ac_cv_func_$ac_func=yes"
11583 else
11584   echo "configure: failed program was:" >&5
11585   cat conftest.$ac_ext >&5
11586   rm -rf conftest*
11587   eval "ac_cv_func_$ac_func=no"
11588 fi
11589 rm -f conftest*
11590 fi
11591
11592 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11593   echo "$ac_t""yes" 1>&6
11594     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11595   cat >> confdefs.h <<EOF
11596 #define $ac_tr_func 1
11597 EOF
11598  
11599 else
11600   echo "$ac_t""no" 1>&6
11601 fi
11602 done
11603     
11604   else
11605     
11606   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
11607 echo "configure:11608: checking for _finitef declaration" >&5
11608   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
11609     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
11610   echo $ac_n "(cached) $ac_c" 1>&6
11611 else
11612   
11613       
11614       ac_ext=C
11615 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11616 ac_cpp='$CXXCPP $CPPFLAGS'
11617 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11618 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11619 cross_compiling=$ac_cv_prog_cxx_cross
11620
11621       cat > conftest.$ac_ext <<EOF
11622 #line 11623 "configure"
11623 #include "confdefs.h"
11624 #include <math.h>
11625                       #ifdef HAVE_IEEEFP_H
11626                       #include <ieeefp.h>
11627                       #endif
11628                      
11629 int main() {
11630  _finitef(0);
11631 ; return 0; }
11632 EOF
11633 if { (eval echo configure:11634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11634   rm -rf conftest*
11635   glibcpp_cv_func__finitef_use=yes
11636 else
11637   echo "configure: failed program was:" >&5
11638   cat conftest.$ac_ext >&5
11639   rm -rf conftest*
11640   glibcpp_cv_func__finitef_use=no
11641 fi
11642 rm -f conftest*
11643       ac_ext=c
11644 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11645 ac_cpp='$CPP $CPPFLAGS'
11646 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11647 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11648 cross_compiling=$ac_cv_prog_cc_cross
11649
11650     
11651 fi
11652
11653   fi
11654   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
11655
11656     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
11657       for ac_func in _finitef
11658 do
11659 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11660 echo "configure:11661: checking for $ac_func" >&5
11661 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11662   echo $ac_n "(cached) $ac_c" 1>&6
11663 else
11664   cat > conftest.$ac_ext <<EOF
11665 #line 11666 "configure"
11666 #include "confdefs.h"
11667 /* System header to define __stub macros and hopefully few prototypes,
11668     which can conflict with char $ac_func(); below.  */
11669 #include <assert.h>
11670 /* Override any gcc2 internal prototype to avoid an error.  */
11671 /* We use char because int might match the return type of a gcc2
11672     builtin and then its argument prototype would still apply.  */
11673 char $ac_func();
11674
11675 int main() {
11676
11677 /* The GNU C library defines this for functions which it implements
11678     to always fail with ENOSYS.  Some functions are actually named
11679     something starting with __ and the normal name is an alias.  */
11680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11681 choke me
11682 #else
11683 $ac_func();
11684 #endif
11685
11686 ; return 0; }
11687 EOF
11688 if { (eval echo configure:11689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11689   rm -rf conftest*
11690   eval "ac_cv_func_$ac_func=yes"
11691 else
11692   echo "configure: failed program was:" >&5
11693   cat conftest.$ac_ext >&5
11694   rm -rf conftest*
11695   eval "ac_cv_func_$ac_func=no"
11696 fi
11697 rm -f conftest*
11698 fi
11699
11700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11701   echo "$ac_t""yes" 1>&6
11702     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11703   cat >> confdefs.h <<EOF
11704 #define $ac_tr_func 1
11705 EOF
11706  
11707 else
11708   echo "$ac_t""no" 1>&6
11709 fi
11710 done
11711     
11712     fi
11713   fi
11714
11715
11716     
11717   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
11718 echo "configure:11719: checking for long double trig functions" >&5
11719   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
11720   echo $ac_n "(cached) $ac_c" 1>&6
11721 else
11722   
11723     
11724     ac_ext=C
11725 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11726 ac_cpp='$CXXCPP $CPPFLAGS'
11727 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11728 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11729 cross_compiling=$ac_cv_prog_cxx_cross
11730
11731     cat > conftest.$ac_ext <<EOF
11732 #line 11733 "configure"
11733 #include "confdefs.h"
11734 #include <math.h>
11735 int main() {
11736  `for x in acosl asinl atanl \
11737                                           cosl sinl tanl \
11738                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
11739 ; return 0; }
11740 EOF
11741 if { (eval echo configure:11742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11742   rm -rf conftest*
11743   glibcpp_cv_func_long_double_trig_use=yes
11744 else
11745   echo "configure: failed program was:" >&5
11746   cat conftest.$ac_ext >&5
11747   rm -rf conftest*
11748   glibcpp_cv_func_long_double_trig_use=no
11749 fi
11750 rm -f conftest*
11751     ac_ext=c
11752 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11753 ac_cpp='$CPP $CPPFLAGS'
11754 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11755 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11756 cross_compiling=$ac_cv_prog_cc_cross
11757
11758 fi
11759
11760   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
11761   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
11762     for ac_func in acosl asinl atanl \
11763                                           cosl sinl tanl \
11764                                           coshl sinhl tanhl
11765 do
11766 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11767 echo "configure:11768: checking for $ac_func" >&5
11768 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11769   echo $ac_n "(cached) $ac_c" 1>&6
11770 else
11771   cat > conftest.$ac_ext <<EOF
11772 #line 11773 "configure"
11773 #include "confdefs.h"
11774 /* System header to define __stub macros and hopefully few prototypes,
11775     which can conflict with char $ac_func(); below.  */
11776 #include <assert.h>
11777 /* Override any gcc2 internal prototype to avoid an error.  */
11778 /* We use char because int might match the return type of a gcc2
11779     builtin and then its argument prototype would still apply.  */
11780 char $ac_func();
11781
11782 int main() {
11783
11784 /* The GNU C library defines this for functions which it implements
11785     to always fail with ENOSYS.  Some functions are actually named
11786     something starting with __ and the normal name is an alias.  */
11787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11788 choke me
11789 #else
11790 $ac_func();
11791 #endif
11792
11793 ; return 0; }
11794 EOF
11795 if { (eval echo configure:11796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11796   rm -rf conftest*
11797   eval "ac_cv_func_$ac_func=yes"
11798 else
11799   echo "configure: failed program was:" >&5
11800   cat conftest.$ac_ext >&5
11801   rm -rf conftest*
11802   eval "ac_cv_func_$ac_func=no"
11803 fi
11804 rm -f conftest*
11805 fi
11806
11807 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11808   echo "$ac_t""yes" 1>&6
11809     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11810   cat >> confdefs.h <<EOF
11811 #define $ac_tr_func 1
11812 EOF
11813  
11814 else
11815   echo "$ac_t""no" 1>&6
11816 fi
11817 done
11818
11819   fi
11820
11821   
11822   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
11823 echo "configure:11824: checking for long double round functions" >&5
11824   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
11825   echo $ac_n "(cached) $ac_c" 1>&6
11826 else
11827   
11828     
11829     ac_ext=C
11830 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11831 ac_cpp='$CXXCPP $CPPFLAGS'
11832 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11833 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11834 cross_compiling=$ac_cv_prog_cxx_cross
11835
11836     cat > conftest.$ac_ext <<EOF
11837 #line 11838 "configure"
11838 #include "confdefs.h"
11839 #include <math.h>
11840 int main() {
11841  `for x in ceill floorl; do echo "$x (0);"; done` 
11842 ; return 0; }
11843 EOF
11844 if { (eval echo configure:11845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11845   rm -rf conftest*
11846   glibcpp_cv_func_long_double_round_use=yes
11847 else
11848   echo "configure: failed program was:" >&5
11849   cat conftest.$ac_ext >&5
11850   rm -rf conftest*
11851   glibcpp_cv_func_long_double_round_use=no
11852 fi
11853 rm -f conftest*
11854     ac_ext=c
11855 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11856 ac_cpp='$CPP $CPPFLAGS'
11857 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11858 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11859 cross_compiling=$ac_cv_prog_cc_cross
11860
11861 fi
11862
11863   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
11864   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
11865     for ac_func in ceill floorl
11866 do
11867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11868 echo "configure:11869: checking for $ac_func" >&5
11869 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11870   echo $ac_n "(cached) $ac_c" 1>&6
11871 else
11872   cat > conftest.$ac_ext <<EOF
11873 #line 11874 "configure"
11874 #include "confdefs.h"
11875 /* System header to define __stub macros and hopefully few prototypes,
11876     which can conflict with char $ac_func(); below.  */
11877 #include <assert.h>
11878 /* Override any gcc2 internal prototype to avoid an error.  */
11879 /* We use char because int might match the return type of a gcc2
11880     builtin and then its argument prototype would still apply.  */
11881 char $ac_func();
11882
11883 int main() {
11884
11885 /* The GNU C library defines this for functions which it implements
11886     to always fail with ENOSYS.  Some functions are actually named
11887     something starting with __ and the normal name is an alias.  */
11888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11889 choke me
11890 #else
11891 $ac_func();
11892 #endif
11893
11894 ; return 0; }
11895 EOF
11896 if { (eval echo configure:11897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11897   rm -rf conftest*
11898   eval "ac_cv_func_$ac_func=yes"
11899 else
11900   echo "configure: failed program was:" >&5
11901   cat conftest.$ac_ext >&5
11902   rm -rf conftest*
11903   eval "ac_cv_func_$ac_func=no"
11904 fi
11905 rm -f conftest*
11906 fi
11907
11908 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11909   echo "$ac_t""yes" 1>&6
11910     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11911   cat >> confdefs.h <<EOF
11912 #define $ac_tr_func 1
11913 EOF
11914  
11915 else
11916   echo "$ac_t""no" 1>&6
11917 fi
11918 done
11919
11920   fi
11921
11922   
11923   
11924   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
11925 echo "configure:11926: checking for isnanl declaration" >&5
11926   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
11927     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
11928   echo $ac_n "(cached) $ac_c" 1>&6
11929 else
11930   
11931       
11932       ac_ext=C
11933 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11934 ac_cpp='$CXXCPP $CPPFLAGS'
11935 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11936 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11937 cross_compiling=$ac_cv_prog_cxx_cross
11938
11939       cat > conftest.$ac_ext <<EOF
11940 #line 11941 "configure"
11941 #include "confdefs.h"
11942 #include <math.h>
11943                       #ifdef HAVE_IEEEFP_H
11944                       #include <ieeefp.h>
11945                       #endif
11946                      
11947 int main() {
11948  isnanl(0);
11949 ; return 0; }
11950 EOF
11951 if { (eval echo configure:11952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11952   rm -rf conftest*
11953   glibcpp_cv_func_isnanl_use=yes
11954 else
11955   echo "configure: failed program was:" >&5
11956   cat conftest.$ac_ext >&5
11957   rm -rf conftest*
11958   glibcpp_cv_func_isnanl_use=no
11959 fi
11960 rm -f conftest*
11961       ac_ext=c
11962 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11963 ac_cpp='$CPP $CPPFLAGS'
11964 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11965 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11966 cross_compiling=$ac_cv_prog_cc_cross
11967
11968     
11969 fi
11970
11971   fi
11972   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
11973
11974   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
11975     for ac_func in isnanl
11976 do
11977 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11978 echo "configure:11979: checking for $ac_func" >&5
11979 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11980   echo $ac_n "(cached) $ac_c" 1>&6
11981 else
11982   cat > conftest.$ac_ext <<EOF
11983 #line 11984 "configure"
11984 #include "confdefs.h"
11985 /* System header to define __stub macros and hopefully few prototypes,
11986     which can conflict with char $ac_func(); below.  */
11987 #include <assert.h>
11988 /* Override any gcc2 internal prototype to avoid an error.  */
11989 /* We use char because int might match the return type of a gcc2
11990     builtin and then its argument prototype would still apply.  */
11991 char $ac_func();
11992
11993 int main() {
11994
11995 /* The GNU C library defines this for functions which it implements
11996     to always fail with ENOSYS.  Some functions are actually named
11997     something starting with __ and the normal name is an alias.  */
11998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11999 choke me
12000 #else
12001 $ac_func();
12002 #endif
12003
12004 ; return 0; }
12005 EOF
12006 if { (eval echo configure:12007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12007   rm -rf conftest*
12008   eval "ac_cv_func_$ac_func=yes"
12009 else
12010   echo "configure: failed program was:" >&5
12011   cat conftest.$ac_ext >&5
12012   rm -rf conftest*
12013   eval "ac_cv_func_$ac_func=no"
12014 fi
12015 rm -f conftest*
12016 fi
12017
12018 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12019   echo "$ac_t""yes" 1>&6
12020     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12021   cat >> confdefs.h <<EOF
12022 #define $ac_tr_func 1
12023 EOF
12024  
12025 else
12026   echo "$ac_t""no" 1>&6
12027 fi
12028 done
12029     
12030   else
12031     
12032   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
12033 echo "configure:12034: checking for _isnanl declaration" >&5
12034   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
12035     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
12036   echo $ac_n "(cached) $ac_c" 1>&6
12037 else
12038   
12039       
12040       ac_ext=C
12041 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12042 ac_cpp='$CXXCPP $CPPFLAGS'
12043 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12044 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12045 cross_compiling=$ac_cv_prog_cxx_cross
12046
12047       cat > conftest.$ac_ext <<EOF
12048 #line 12049 "configure"
12049 #include "confdefs.h"
12050 #include <math.h>
12051                       #ifdef HAVE_IEEEFP_H
12052                       #include <ieeefp.h>
12053                       #endif
12054                      
12055 int main() {
12056  _isnanl(0);
12057 ; return 0; }
12058 EOF
12059 if { (eval echo configure:12060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12060   rm -rf conftest*
12061   glibcpp_cv_func__isnanl_use=yes
12062 else
12063   echo "configure: failed program was:" >&5
12064   cat conftest.$ac_ext >&5
12065   rm -rf conftest*
12066   glibcpp_cv_func__isnanl_use=no
12067 fi
12068 rm -f conftest*
12069       ac_ext=c
12070 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12071 ac_cpp='$CPP $CPPFLAGS'
12072 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12073 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12074 cross_compiling=$ac_cv_prog_cc_cross
12075
12076     
12077 fi
12078
12079   fi
12080   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
12081
12082     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
12083       for ac_func in _isnanl
12084 do
12085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12086 echo "configure:12087: checking for $ac_func" >&5
12087 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12088   echo $ac_n "(cached) $ac_c" 1>&6
12089 else
12090   cat > conftest.$ac_ext <<EOF
12091 #line 12092 "configure"
12092 #include "confdefs.h"
12093 /* System header to define __stub macros and hopefully few prototypes,
12094     which can conflict with char $ac_func(); below.  */
12095 #include <assert.h>
12096 /* Override any gcc2 internal prototype to avoid an error.  */
12097 /* We use char because int might match the return type of a gcc2
12098     builtin and then its argument prototype would still apply.  */
12099 char $ac_func();
12100
12101 int main() {
12102
12103 /* The GNU C library defines this for functions which it implements
12104     to always fail with ENOSYS.  Some functions are actually named
12105     something starting with __ and the normal name is an alias.  */
12106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12107 choke me
12108 #else
12109 $ac_func();
12110 #endif
12111
12112 ; return 0; }
12113 EOF
12114 if { (eval echo configure:12115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12115   rm -rf conftest*
12116   eval "ac_cv_func_$ac_func=yes"
12117 else
12118   echo "configure: failed program was:" >&5
12119   cat conftest.$ac_ext >&5
12120   rm -rf conftest*
12121   eval "ac_cv_func_$ac_func=no"
12122 fi
12123 rm -f conftest*
12124 fi
12125
12126 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12127   echo "$ac_t""yes" 1>&6
12128     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12129   cat >> confdefs.h <<EOF
12130 #define $ac_tr_func 1
12131 EOF
12132  
12133 else
12134   echo "$ac_t""no" 1>&6
12135 fi
12136 done
12137     
12138     fi
12139   fi
12140
12141   
12142   
12143   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
12144 echo "configure:12145: checking for isinfl declaration" >&5
12145   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
12146     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
12147   echo $ac_n "(cached) $ac_c" 1>&6
12148 else
12149   
12150       
12151       ac_ext=C
12152 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12153 ac_cpp='$CXXCPP $CPPFLAGS'
12154 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12155 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12156 cross_compiling=$ac_cv_prog_cxx_cross
12157
12158       cat > conftest.$ac_ext <<EOF
12159 #line 12160 "configure"
12160 #include "confdefs.h"
12161 #include <math.h>
12162                       #ifdef HAVE_IEEEFP_H
12163                       #include <ieeefp.h>
12164                       #endif
12165                      
12166 int main() {
12167  isinfl(0);
12168 ; return 0; }
12169 EOF
12170 if { (eval echo configure:12171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12171   rm -rf conftest*
12172   glibcpp_cv_func_isinfl_use=yes
12173 else
12174   echo "configure: failed program was:" >&5
12175   cat conftest.$ac_ext >&5
12176   rm -rf conftest*
12177   glibcpp_cv_func_isinfl_use=no
12178 fi
12179 rm -f conftest*
12180       ac_ext=c
12181 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12182 ac_cpp='$CPP $CPPFLAGS'
12183 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12184 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12185 cross_compiling=$ac_cv_prog_cc_cross
12186
12187     
12188 fi
12189
12190   fi
12191   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
12192
12193   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
12194     for ac_func in isinfl
12195 do
12196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12197 echo "configure:12198: checking for $ac_func" >&5
12198 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12199   echo $ac_n "(cached) $ac_c" 1>&6
12200 else
12201   cat > conftest.$ac_ext <<EOF
12202 #line 12203 "configure"
12203 #include "confdefs.h"
12204 /* System header to define __stub macros and hopefully few prototypes,
12205     which can conflict with char $ac_func(); below.  */
12206 #include <assert.h>
12207 /* Override any gcc2 internal prototype to avoid an error.  */
12208 /* We use char because int might match the return type of a gcc2
12209     builtin and then its argument prototype would still apply.  */
12210 char $ac_func();
12211
12212 int main() {
12213
12214 /* The GNU C library defines this for functions which it implements
12215     to always fail with ENOSYS.  Some functions are actually named
12216     something starting with __ and the normal name is an alias.  */
12217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12218 choke me
12219 #else
12220 $ac_func();
12221 #endif
12222
12223 ; return 0; }
12224 EOF
12225 if { (eval echo configure:12226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12226   rm -rf conftest*
12227   eval "ac_cv_func_$ac_func=yes"
12228 else
12229   echo "configure: failed program was:" >&5
12230   cat conftest.$ac_ext >&5
12231   rm -rf conftest*
12232   eval "ac_cv_func_$ac_func=no"
12233 fi
12234 rm -f conftest*
12235 fi
12236
12237 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12238   echo "$ac_t""yes" 1>&6
12239     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12240   cat >> confdefs.h <<EOF
12241 #define $ac_tr_func 1
12242 EOF
12243  
12244 else
12245   echo "$ac_t""no" 1>&6
12246 fi
12247 done
12248     
12249   else
12250     
12251   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
12252 echo "configure:12253: checking for _isinfl declaration" >&5
12253   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
12254     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
12255   echo $ac_n "(cached) $ac_c" 1>&6
12256 else
12257   
12258       
12259       ac_ext=C
12260 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12261 ac_cpp='$CXXCPP $CPPFLAGS'
12262 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12263 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12264 cross_compiling=$ac_cv_prog_cxx_cross
12265
12266       cat > conftest.$ac_ext <<EOF
12267 #line 12268 "configure"
12268 #include "confdefs.h"
12269 #include <math.h>
12270                       #ifdef HAVE_IEEEFP_H
12271                       #include <ieeefp.h>
12272                       #endif
12273                      
12274 int main() {
12275  _isinfl(0);
12276 ; return 0; }
12277 EOF
12278 if { (eval echo configure:12279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12279   rm -rf conftest*
12280   glibcpp_cv_func__isinfl_use=yes
12281 else
12282   echo "configure: failed program was:" >&5
12283   cat conftest.$ac_ext >&5
12284   rm -rf conftest*
12285   glibcpp_cv_func__isinfl_use=no
12286 fi
12287 rm -f conftest*
12288       ac_ext=c
12289 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12290 ac_cpp='$CPP $CPPFLAGS'
12291 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12292 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12293 cross_compiling=$ac_cv_prog_cc_cross
12294
12295     
12296 fi
12297
12298   fi
12299   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
12300
12301     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
12302       for ac_func in _isinfl
12303 do
12304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12305 echo "configure:12306: checking for $ac_func" >&5
12306 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12307   echo $ac_n "(cached) $ac_c" 1>&6
12308 else
12309   cat > conftest.$ac_ext <<EOF
12310 #line 12311 "configure"
12311 #include "confdefs.h"
12312 /* System header to define __stub macros and hopefully few prototypes,
12313     which can conflict with char $ac_func(); below.  */
12314 #include <assert.h>
12315 /* Override any gcc2 internal prototype to avoid an error.  */
12316 /* We use char because int might match the return type of a gcc2
12317     builtin and then its argument prototype would still apply.  */
12318 char $ac_func();
12319
12320 int main() {
12321
12322 /* The GNU C library defines this for functions which it implements
12323     to always fail with ENOSYS.  Some functions are actually named
12324     something starting with __ and the normal name is an alias.  */
12325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12326 choke me
12327 #else
12328 $ac_func();
12329 #endif
12330
12331 ; return 0; }
12332 EOF
12333 if { (eval echo configure:12334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12334   rm -rf conftest*
12335   eval "ac_cv_func_$ac_func=yes"
12336 else
12337   echo "configure: failed program was:" >&5
12338   cat conftest.$ac_ext >&5
12339   rm -rf conftest*
12340   eval "ac_cv_func_$ac_func=no"
12341 fi
12342 rm -f conftest*
12343 fi
12344
12345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12346   echo "$ac_t""yes" 1>&6
12347     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12348   cat >> confdefs.h <<EOF
12349 #define $ac_tr_func 1
12350 EOF
12351  
12352 else
12353   echo "$ac_t""no" 1>&6
12354 fi
12355 done
12356     
12357     fi
12358   fi
12359
12360   
12361   
12362   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
12363 echo "configure:12364: checking for copysignl declaration" >&5
12364   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
12365     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
12366   echo $ac_n "(cached) $ac_c" 1>&6
12367 else
12368   
12369       
12370       ac_ext=C
12371 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12372 ac_cpp='$CXXCPP $CPPFLAGS'
12373 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12374 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12375 cross_compiling=$ac_cv_prog_cxx_cross
12376
12377       cat > conftest.$ac_ext <<EOF
12378 #line 12379 "configure"
12379 #include "confdefs.h"
12380 #include <math.h>
12381 int main() {
12382  copysignl(0, 0);
12383 ; return 0; }
12384 EOF
12385 if { (eval echo configure:12386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12386   rm -rf conftest*
12387   glibcpp_cv_func_copysignl_use=yes
12388 else
12389   echo "configure: failed program was:" >&5
12390   cat conftest.$ac_ext >&5
12391   rm -rf conftest*
12392   glibcpp_cv_func_copysignl_use=no
12393 fi
12394 rm -f conftest*
12395       ac_ext=c
12396 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12397 ac_cpp='$CPP $CPPFLAGS'
12398 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12399 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12400 cross_compiling=$ac_cv_prog_cc_cross
12401
12402     
12403 fi
12404
12405   fi
12406   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
12407
12408   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
12409     for ac_func in copysignl
12410 do
12411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12412 echo "configure:12413: checking for $ac_func" >&5
12413 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12414   echo $ac_n "(cached) $ac_c" 1>&6
12415 else
12416   cat > conftest.$ac_ext <<EOF
12417 #line 12418 "configure"
12418 #include "confdefs.h"
12419 /* System header to define __stub macros and hopefully few prototypes,
12420     which can conflict with char $ac_func(); below.  */
12421 #include <assert.h>
12422 /* Override any gcc2 internal prototype to avoid an error.  */
12423 /* We use char because int might match the return type of a gcc2
12424     builtin and then its argument prototype would still apply.  */
12425 char $ac_func();
12426
12427 int main() {
12428
12429 /* The GNU C library defines this for functions which it implements
12430     to always fail with ENOSYS.  Some functions are actually named
12431     something starting with __ and the normal name is an alias.  */
12432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12433 choke me
12434 #else
12435 $ac_func();
12436 #endif
12437
12438 ; return 0; }
12439 EOF
12440 if { (eval echo configure:12441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12441   rm -rf conftest*
12442   eval "ac_cv_func_$ac_func=yes"
12443 else
12444   echo "configure: failed program was:" >&5
12445   cat conftest.$ac_ext >&5
12446   rm -rf conftest*
12447   eval "ac_cv_func_$ac_func=no"
12448 fi
12449 rm -f conftest*
12450 fi
12451
12452 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12453   echo "$ac_t""yes" 1>&6
12454     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12455   cat >> confdefs.h <<EOF
12456 #define $ac_tr_func 1
12457 EOF
12458  
12459 else
12460   echo "$ac_t""no" 1>&6
12461 fi
12462 done
12463     
12464   else
12465     
12466   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
12467 echo "configure:12468: checking for _copysignl declaration" >&5
12468   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
12469     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
12470   echo $ac_n "(cached) $ac_c" 1>&6
12471 else
12472   
12473       
12474       ac_ext=C
12475 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12476 ac_cpp='$CXXCPP $CPPFLAGS'
12477 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12478 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12479 cross_compiling=$ac_cv_prog_cxx_cross
12480
12481       cat > conftest.$ac_ext <<EOF
12482 #line 12483 "configure"
12483 #include "confdefs.h"
12484 #include <math.h>
12485 int main() {
12486  _copysignl(0, 0);
12487 ; return 0; }
12488 EOF
12489 if { (eval echo configure:12490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12490   rm -rf conftest*
12491   glibcpp_cv_func__copysignl_use=yes
12492 else
12493   echo "configure: failed program was:" >&5
12494   cat conftest.$ac_ext >&5
12495   rm -rf conftest*
12496   glibcpp_cv_func__copysignl_use=no
12497 fi
12498 rm -f conftest*
12499       ac_ext=c
12500 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12501 ac_cpp='$CPP $CPPFLAGS'
12502 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12503 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12504 cross_compiling=$ac_cv_prog_cc_cross
12505
12506     
12507 fi
12508
12509   fi
12510   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
12511
12512     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
12513       for ac_func in _copysignl
12514 do
12515 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12516 echo "configure:12517: checking for $ac_func" >&5
12517 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12518   echo $ac_n "(cached) $ac_c" 1>&6
12519 else
12520   cat > conftest.$ac_ext <<EOF
12521 #line 12522 "configure"
12522 #include "confdefs.h"
12523 /* System header to define __stub macros and hopefully few prototypes,
12524     which can conflict with char $ac_func(); below.  */
12525 #include <assert.h>
12526 /* Override any gcc2 internal prototype to avoid an error.  */
12527 /* We use char because int might match the return type of a gcc2
12528     builtin and then its argument prototype would still apply.  */
12529 char $ac_func();
12530
12531 int main() {
12532
12533 /* The GNU C library defines this for functions which it implements
12534     to always fail with ENOSYS.  Some functions are actually named
12535     something starting with __ and the normal name is an alias.  */
12536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12537 choke me
12538 #else
12539 $ac_func();
12540 #endif
12541
12542 ; return 0; }
12543 EOF
12544 if { (eval echo configure:12545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12545   rm -rf conftest*
12546   eval "ac_cv_func_$ac_func=yes"
12547 else
12548   echo "configure: failed program was:" >&5
12549   cat conftest.$ac_ext >&5
12550   rm -rf conftest*
12551   eval "ac_cv_func_$ac_func=no"
12552 fi
12553 rm -f conftest*
12554 fi
12555
12556 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12557   echo "$ac_t""yes" 1>&6
12558     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12559   cat >> confdefs.h <<EOF
12560 #define $ac_tr_func 1
12561 EOF
12562  
12563 else
12564   echo "$ac_t""no" 1>&6
12565 fi
12566 done
12567     
12568     fi
12569   fi
12570
12571   
12572   
12573   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
12574 echo "configure:12575: checking for atan2l declaration" >&5
12575   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
12576     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
12577   echo $ac_n "(cached) $ac_c" 1>&6
12578 else
12579   
12580       
12581       ac_ext=C
12582 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12583 ac_cpp='$CXXCPP $CPPFLAGS'
12584 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12585 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12586 cross_compiling=$ac_cv_prog_cxx_cross
12587
12588       cat > conftest.$ac_ext <<EOF
12589 #line 12590 "configure"
12590 #include "confdefs.h"
12591 #include <math.h>
12592 int main() {
12593  atan2l(0, 0);
12594 ; return 0; }
12595 EOF
12596 if { (eval echo configure:12597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12597   rm -rf conftest*
12598   glibcpp_cv_func_atan2l_use=yes
12599 else
12600   echo "configure: failed program was:" >&5
12601   cat conftest.$ac_ext >&5
12602   rm -rf conftest*
12603   glibcpp_cv_func_atan2l_use=no
12604 fi
12605 rm -f conftest*
12606       ac_ext=c
12607 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12608 ac_cpp='$CPP $CPPFLAGS'
12609 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12610 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12611 cross_compiling=$ac_cv_prog_cc_cross
12612
12613     
12614 fi
12615
12616   fi
12617   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
12618
12619   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
12620     for ac_func in atan2l
12621 do
12622 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12623 echo "configure:12624: checking for $ac_func" >&5
12624 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12625   echo $ac_n "(cached) $ac_c" 1>&6
12626 else
12627   cat > conftest.$ac_ext <<EOF
12628 #line 12629 "configure"
12629 #include "confdefs.h"
12630 /* System header to define __stub macros and hopefully few prototypes,
12631     which can conflict with char $ac_func(); below.  */
12632 #include <assert.h>
12633 /* Override any gcc2 internal prototype to avoid an error.  */
12634 /* We use char because int might match the return type of a gcc2
12635     builtin and then its argument prototype would still apply.  */
12636 char $ac_func();
12637
12638 int main() {
12639
12640 /* The GNU C library defines this for functions which it implements
12641     to always fail with ENOSYS.  Some functions are actually named
12642     something starting with __ and the normal name is an alias.  */
12643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12644 choke me
12645 #else
12646 $ac_func();
12647 #endif
12648
12649 ; return 0; }
12650 EOF
12651 if { (eval echo configure:12652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12652   rm -rf conftest*
12653   eval "ac_cv_func_$ac_func=yes"
12654 else
12655   echo "configure: failed program was:" >&5
12656   cat conftest.$ac_ext >&5
12657   rm -rf conftest*
12658   eval "ac_cv_func_$ac_func=no"
12659 fi
12660 rm -f conftest*
12661 fi
12662
12663 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12664   echo "$ac_t""yes" 1>&6
12665     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12666   cat >> confdefs.h <<EOF
12667 #define $ac_tr_func 1
12668 EOF
12669  
12670 else
12671   echo "$ac_t""no" 1>&6
12672 fi
12673 done
12674     
12675   else
12676     
12677   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
12678 echo "configure:12679: checking for _atan2l declaration" >&5
12679   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
12680     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
12681   echo $ac_n "(cached) $ac_c" 1>&6
12682 else
12683   
12684       
12685       ac_ext=C
12686 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12687 ac_cpp='$CXXCPP $CPPFLAGS'
12688 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12689 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12690 cross_compiling=$ac_cv_prog_cxx_cross
12691
12692       cat > conftest.$ac_ext <<EOF
12693 #line 12694 "configure"
12694 #include "confdefs.h"
12695 #include <math.h>
12696 int main() {
12697  _atan2l(0, 0);
12698 ; return 0; }
12699 EOF
12700 if { (eval echo configure:12701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12701   rm -rf conftest*
12702   glibcpp_cv_func__atan2l_use=yes
12703 else
12704   echo "configure: failed program was:" >&5
12705   cat conftest.$ac_ext >&5
12706   rm -rf conftest*
12707   glibcpp_cv_func__atan2l_use=no
12708 fi
12709 rm -f conftest*
12710       ac_ext=c
12711 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12712 ac_cpp='$CPP $CPPFLAGS'
12713 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12714 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12715 cross_compiling=$ac_cv_prog_cc_cross
12716
12717     
12718 fi
12719
12720   fi
12721   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
12722
12723     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
12724       for ac_func in _atan2l
12725 do
12726 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12727 echo "configure:12728: checking for $ac_func" >&5
12728 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12729   echo $ac_n "(cached) $ac_c" 1>&6
12730 else
12731   cat > conftest.$ac_ext <<EOF
12732 #line 12733 "configure"
12733 #include "confdefs.h"
12734 /* System header to define __stub macros and hopefully few prototypes,
12735     which can conflict with char $ac_func(); below.  */
12736 #include <assert.h>
12737 /* Override any gcc2 internal prototype to avoid an error.  */
12738 /* We use char because int might match the return type of a gcc2
12739     builtin and then its argument prototype would still apply.  */
12740 char $ac_func();
12741
12742 int main() {
12743
12744 /* The GNU C library defines this for functions which it implements
12745     to always fail with ENOSYS.  Some functions are actually named
12746     something starting with __ and the normal name is an alias.  */
12747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12748 choke me
12749 #else
12750 $ac_func();
12751 #endif
12752
12753 ; return 0; }
12754 EOF
12755 if { (eval echo configure:12756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12756   rm -rf conftest*
12757   eval "ac_cv_func_$ac_func=yes"
12758 else
12759   echo "configure: failed program was:" >&5
12760   cat conftest.$ac_ext >&5
12761   rm -rf conftest*
12762   eval "ac_cv_func_$ac_func=no"
12763 fi
12764 rm -f conftest*
12765 fi
12766
12767 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12768   echo "$ac_t""yes" 1>&6
12769     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12770   cat >> confdefs.h <<EOF
12771 #define $ac_tr_func 1
12772 EOF
12773  
12774 else
12775   echo "$ac_t""no" 1>&6
12776 fi
12777 done
12778     
12779     fi
12780   fi
12781
12782   
12783   
12784   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
12785 echo "configure:12786: checking for expl declaration" >&5
12786   if test x${glibcpp_cv_func_expl_use+set} != xset; then
12787     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
12788   echo $ac_n "(cached) $ac_c" 1>&6
12789 else
12790   
12791       
12792       ac_ext=C
12793 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12794 ac_cpp='$CXXCPP $CPPFLAGS'
12795 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12796 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12797 cross_compiling=$ac_cv_prog_cxx_cross
12798
12799       cat > conftest.$ac_ext <<EOF
12800 #line 12801 "configure"
12801 #include "confdefs.h"
12802 #include <math.h>
12803                       #ifdef HAVE_IEEEFP_H
12804                       #include <ieeefp.h>
12805                       #endif
12806                      
12807 int main() {
12808  expl(0);
12809 ; return 0; }
12810 EOF
12811 if { (eval echo configure:12812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12812   rm -rf conftest*
12813   glibcpp_cv_func_expl_use=yes
12814 else
12815   echo "configure: failed program was:" >&5
12816   cat conftest.$ac_ext >&5
12817   rm -rf conftest*
12818   glibcpp_cv_func_expl_use=no
12819 fi
12820 rm -f conftest*
12821       ac_ext=c
12822 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12823 ac_cpp='$CPP $CPPFLAGS'
12824 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12825 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12826 cross_compiling=$ac_cv_prog_cc_cross
12827
12828     
12829 fi
12830
12831   fi
12832   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
12833
12834   if test x$glibcpp_cv_func_expl_use = x"yes"; then
12835     for ac_func in expl
12836 do
12837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12838 echo "configure:12839: checking for $ac_func" >&5
12839 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12840   echo $ac_n "(cached) $ac_c" 1>&6
12841 else
12842   cat > conftest.$ac_ext <<EOF
12843 #line 12844 "configure"
12844 #include "confdefs.h"
12845 /* System header to define __stub macros and hopefully few prototypes,
12846     which can conflict with char $ac_func(); below.  */
12847 #include <assert.h>
12848 /* Override any gcc2 internal prototype to avoid an error.  */
12849 /* We use char because int might match the return type of a gcc2
12850     builtin and then its argument prototype would still apply.  */
12851 char $ac_func();
12852
12853 int main() {
12854
12855 /* The GNU C library defines this for functions which it implements
12856     to always fail with ENOSYS.  Some functions are actually named
12857     something starting with __ and the normal name is an alias.  */
12858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12859 choke me
12860 #else
12861 $ac_func();
12862 #endif
12863
12864 ; return 0; }
12865 EOF
12866 if { (eval echo configure:12867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12867   rm -rf conftest*
12868   eval "ac_cv_func_$ac_func=yes"
12869 else
12870   echo "configure: failed program was:" >&5
12871   cat conftest.$ac_ext >&5
12872   rm -rf conftest*
12873   eval "ac_cv_func_$ac_func=no"
12874 fi
12875 rm -f conftest*
12876 fi
12877
12878 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12879   echo "$ac_t""yes" 1>&6
12880     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12881   cat >> confdefs.h <<EOF
12882 #define $ac_tr_func 1
12883 EOF
12884  
12885 else
12886   echo "$ac_t""no" 1>&6
12887 fi
12888 done
12889     
12890   else
12891     
12892   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
12893 echo "configure:12894: checking for _expl declaration" >&5
12894   if test x${glibcpp_cv_func__expl_use+set} != xset; then
12895     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
12896   echo $ac_n "(cached) $ac_c" 1>&6
12897 else
12898   
12899       
12900       ac_ext=C
12901 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12902 ac_cpp='$CXXCPP $CPPFLAGS'
12903 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12904 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12905 cross_compiling=$ac_cv_prog_cxx_cross
12906
12907       cat > conftest.$ac_ext <<EOF
12908 #line 12909 "configure"
12909 #include "confdefs.h"
12910 #include <math.h>
12911                       #ifdef HAVE_IEEEFP_H
12912                       #include <ieeefp.h>
12913                       #endif
12914                      
12915 int main() {
12916  _expl(0);
12917 ; return 0; }
12918 EOF
12919 if { (eval echo configure:12920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12920   rm -rf conftest*
12921   glibcpp_cv_func__expl_use=yes
12922 else
12923   echo "configure: failed program was:" >&5
12924   cat conftest.$ac_ext >&5
12925   rm -rf conftest*
12926   glibcpp_cv_func__expl_use=no
12927 fi
12928 rm -f conftest*
12929       ac_ext=c
12930 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12931 ac_cpp='$CPP $CPPFLAGS'
12932 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12933 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12934 cross_compiling=$ac_cv_prog_cc_cross
12935
12936     
12937 fi
12938
12939   fi
12940   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
12941
12942     if test x$glibcpp_cv_func__expl_use = x"yes"; then
12943       for ac_func in _expl
12944 do
12945 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12946 echo "configure:12947: checking for $ac_func" >&5
12947 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12948   echo $ac_n "(cached) $ac_c" 1>&6
12949 else
12950   cat > conftest.$ac_ext <<EOF
12951 #line 12952 "configure"
12952 #include "confdefs.h"
12953 /* System header to define __stub macros and hopefully few prototypes,
12954     which can conflict with char $ac_func(); below.  */
12955 #include <assert.h>
12956 /* Override any gcc2 internal prototype to avoid an error.  */
12957 /* We use char because int might match the return type of a gcc2
12958     builtin and then its argument prototype would still apply.  */
12959 char $ac_func();
12960
12961 int main() {
12962
12963 /* The GNU C library defines this for functions which it implements
12964     to always fail with ENOSYS.  Some functions are actually named
12965     something starting with __ and the normal name is an alias.  */
12966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12967 choke me
12968 #else
12969 $ac_func();
12970 #endif
12971
12972 ; return 0; }
12973 EOF
12974 if { (eval echo configure:12975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12975   rm -rf conftest*
12976   eval "ac_cv_func_$ac_func=yes"
12977 else
12978   echo "configure: failed program was:" >&5
12979   cat conftest.$ac_ext >&5
12980   rm -rf conftest*
12981   eval "ac_cv_func_$ac_func=no"
12982 fi
12983 rm -f conftest*
12984 fi
12985
12986 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12987   echo "$ac_t""yes" 1>&6
12988     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12989   cat >> confdefs.h <<EOF
12990 #define $ac_tr_func 1
12991 EOF
12992  
12993 else
12994   echo "$ac_t""no" 1>&6
12995 fi
12996 done
12997     
12998     fi
12999   fi
13000
13001   
13002   
13003   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
13004 echo "configure:13005: checking for fabsl declaration" >&5
13005   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
13006     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
13007   echo $ac_n "(cached) $ac_c" 1>&6
13008 else
13009   
13010       
13011       ac_ext=C
13012 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13013 ac_cpp='$CXXCPP $CPPFLAGS'
13014 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13015 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13016 cross_compiling=$ac_cv_prog_cxx_cross
13017
13018       cat > conftest.$ac_ext <<EOF
13019 #line 13020 "configure"
13020 #include "confdefs.h"
13021 #include <math.h>
13022                       #ifdef HAVE_IEEEFP_H
13023                       #include <ieeefp.h>
13024                       #endif
13025                      
13026 int main() {
13027  fabsl(0);
13028 ; return 0; }
13029 EOF
13030 if { (eval echo configure:13031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13031   rm -rf conftest*
13032   glibcpp_cv_func_fabsl_use=yes
13033 else
13034   echo "configure: failed program was:" >&5
13035   cat conftest.$ac_ext >&5
13036   rm -rf conftest*
13037   glibcpp_cv_func_fabsl_use=no
13038 fi
13039 rm -f conftest*
13040       ac_ext=c
13041 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13042 ac_cpp='$CPP $CPPFLAGS'
13043 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13044 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13045 cross_compiling=$ac_cv_prog_cc_cross
13046
13047     
13048 fi
13049
13050   fi
13051   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
13052
13053   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
13054     for ac_func in fabsl
13055 do
13056 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13057 echo "configure:13058: checking for $ac_func" >&5
13058 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13059   echo $ac_n "(cached) $ac_c" 1>&6
13060 else
13061   cat > conftest.$ac_ext <<EOF
13062 #line 13063 "configure"
13063 #include "confdefs.h"
13064 /* System header to define __stub macros and hopefully few prototypes,
13065     which can conflict with char $ac_func(); below.  */
13066 #include <assert.h>
13067 /* Override any gcc2 internal prototype to avoid an error.  */
13068 /* We use char because int might match the return type of a gcc2
13069     builtin and then its argument prototype would still apply.  */
13070 char $ac_func();
13071
13072 int main() {
13073
13074 /* The GNU C library defines this for functions which it implements
13075     to always fail with ENOSYS.  Some functions are actually named
13076     something starting with __ and the normal name is an alias.  */
13077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13078 choke me
13079 #else
13080 $ac_func();
13081 #endif
13082
13083 ; return 0; }
13084 EOF
13085 if { (eval echo configure:13086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13086   rm -rf conftest*
13087   eval "ac_cv_func_$ac_func=yes"
13088 else
13089   echo "configure: failed program was:" >&5
13090   cat conftest.$ac_ext >&5
13091   rm -rf conftest*
13092   eval "ac_cv_func_$ac_func=no"
13093 fi
13094 rm -f conftest*
13095 fi
13096
13097 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13098   echo "$ac_t""yes" 1>&6
13099     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13100   cat >> confdefs.h <<EOF
13101 #define $ac_tr_func 1
13102 EOF
13103  
13104 else
13105   echo "$ac_t""no" 1>&6
13106 fi
13107 done
13108     
13109   else
13110     
13111   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
13112 echo "configure:13113: checking for _fabsl declaration" >&5
13113   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
13114     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
13115   echo $ac_n "(cached) $ac_c" 1>&6
13116 else
13117   
13118       
13119       ac_ext=C
13120 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13121 ac_cpp='$CXXCPP $CPPFLAGS'
13122 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13123 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13124 cross_compiling=$ac_cv_prog_cxx_cross
13125
13126       cat > conftest.$ac_ext <<EOF
13127 #line 13128 "configure"
13128 #include "confdefs.h"
13129 #include <math.h>
13130                       #ifdef HAVE_IEEEFP_H
13131                       #include <ieeefp.h>
13132                       #endif
13133                      
13134 int main() {
13135  _fabsl(0);
13136 ; return 0; }
13137 EOF
13138 if { (eval echo configure:13139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13139   rm -rf conftest*
13140   glibcpp_cv_func__fabsl_use=yes
13141 else
13142   echo "configure: failed program was:" >&5
13143   cat conftest.$ac_ext >&5
13144   rm -rf conftest*
13145   glibcpp_cv_func__fabsl_use=no
13146 fi
13147 rm -f conftest*
13148       ac_ext=c
13149 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13150 ac_cpp='$CPP $CPPFLAGS'
13151 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13152 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13153 cross_compiling=$ac_cv_prog_cc_cross
13154
13155     
13156 fi
13157
13158   fi
13159   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
13160
13161     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
13162       for ac_func in _fabsl
13163 do
13164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13165 echo "configure:13166: checking for $ac_func" >&5
13166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13167   echo $ac_n "(cached) $ac_c" 1>&6
13168 else
13169   cat > conftest.$ac_ext <<EOF
13170 #line 13171 "configure"
13171 #include "confdefs.h"
13172 /* System header to define __stub macros and hopefully few prototypes,
13173     which can conflict with char $ac_func(); below.  */
13174 #include <assert.h>
13175 /* Override any gcc2 internal prototype to avoid an error.  */
13176 /* We use char because int might match the return type of a gcc2
13177     builtin and then its argument prototype would still apply.  */
13178 char $ac_func();
13179
13180 int main() {
13181
13182 /* The GNU C library defines this for functions which it implements
13183     to always fail with ENOSYS.  Some functions are actually named
13184     something starting with __ and the normal name is an alias.  */
13185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13186 choke me
13187 #else
13188 $ac_func();
13189 #endif
13190
13191 ; return 0; }
13192 EOF
13193 if { (eval echo configure:13194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13194   rm -rf conftest*
13195   eval "ac_cv_func_$ac_func=yes"
13196 else
13197   echo "configure: failed program was:" >&5
13198   cat conftest.$ac_ext >&5
13199   rm -rf conftest*
13200   eval "ac_cv_func_$ac_func=no"
13201 fi
13202 rm -f conftest*
13203 fi
13204
13205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13206   echo "$ac_t""yes" 1>&6
13207     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13208   cat >> confdefs.h <<EOF
13209 #define $ac_tr_func 1
13210 EOF
13211  
13212 else
13213   echo "$ac_t""no" 1>&6
13214 fi
13215 done
13216     
13217     fi
13218   fi
13219
13220   
13221   
13222   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
13223 echo "configure:13224: checking for fmodl declaration" >&5
13224   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
13225     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
13226   echo $ac_n "(cached) $ac_c" 1>&6
13227 else
13228   
13229       
13230       ac_ext=C
13231 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13232 ac_cpp='$CXXCPP $CPPFLAGS'
13233 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13234 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13235 cross_compiling=$ac_cv_prog_cxx_cross
13236
13237       cat > conftest.$ac_ext <<EOF
13238 #line 13239 "configure"
13239 #include "confdefs.h"
13240 #include <math.h>
13241 int main() {
13242  fmodl(0, 0);
13243 ; return 0; }
13244 EOF
13245 if { (eval echo configure:13246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13246   rm -rf conftest*
13247   glibcpp_cv_func_fmodl_use=yes
13248 else
13249   echo "configure: failed program was:" >&5
13250   cat conftest.$ac_ext >&5
13251   rm -rf conftest*
13252   glibcpp_cv_func_fmodl_use=no
13253 fi
13254 rm -f conftest*
13255       ac_ext=c
13256 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13257 ac_cpp='$CPP $CPPFLAGS'
13258 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13259 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13260 cross_compiling=$ac_cv_prog_cc_cross
13261
13262     
13263 fi
13264
13265   fi
13266   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
13267
13268   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
13269     for ac_func in fmodl
13270 do
13271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13272 echo "configure:13273: checking for $ac_func" >&5
13273 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13274   echo $ac_n "(cached) $ac_c" 1>&6
13275 else
13276   cat > conftest.$ac_ext <<EOF
13277 #line 13278 "configure"
13278 #include "confdefs.h"
13279 /* System header to define __stub macros and hopefully few prototypes,
13280     which can conflict with char $ac_func(); below.  */
13281 #include <assert.h>
13282 /* Override any gcc2 internal prototype to avoid an error.  */
13283 /* We use char because int might match the return type of a gcc2
13284     builtin and then its argument prototype would still apply.  */
13285 char $ac_func();
13286
13287 int main() {
13288
13289 /* The GNU C library defines this for functions which it implements
13290     to always fail with ENOSYS.  Some functions are actually named
13291     something starting with __ and the normal name is an alias.  */
13292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13293 choke me
13294 #else
13295 $ac_func();
13296 #endif
13297
13298 ; return 0; }
13299 EOF
13300 if { (eval echo configure:13301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13301   rm -rf conftest*
13302   eval "ac_cv_func_$ac_func=yes"
13303 else
13304   echo "configure: failed program was:" >&5
13305   cat conftest.$ac_ext >&5
13306   rm -rf conftest*
13307   eval "ac_cv_func_$ac_func=no"
13308 fi
13309 rm -f conftest*
13310 fi
13311
13312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13313   echo "$ac_t""yes" 1>&6
13314     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13315   cat >> confdefs.h <<EOF
13316 #define $ac_tr_func 1
13317 EOF
13318  
13319 else
13320   echo "$ac_t""no" 1>&6
13321 fi
13322 done
13323     
13324   else
13325     
13326   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
13327 echo "configure:13328: checking for _fmodl declaration" >&5
13328   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
13329     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
13330   echo $ac_n "(cached) $ac_c" 1>&6
13331 else
13332   
13333       
13334       ac_ext=C
13335 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13336 ac_cpp='$CXXCPP $CPPFLAGS'
13337 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13338 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13339 cross_compiling=$ac_cv_prog_cxx_cross
13340
13341       cat > conftest.$ac_ext <<EOF
13342 #line 13343 "configure"
13343 #include "confdefs.h"
13344 #include <math.h>
13345 int main() {
13346  _fmodl(0, 0);
13347 ; return 0; }
13348 EOF
13349 if { (eval echo configure:13350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13350   rm -rf conftest*
13351   glibcpp_cv_func__fmodl_use=yes
13352 else
13353   echo "configure: failed program was:" >&5
13354   cat conftest.$ac_ext >&5
13355   rm -rf conftest*
13356   glibcpp_cv_func__fmodl_use=no
13357 fi
13358 rm -f conftest*
13359       ac_ext=c
13360 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13361 ac_cpp='$CPP $CPPFLAGS'
13362 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13363 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13364 cross_compiling=$ac_cv_prog_cc_cross
13365
13366     
13367 fi
13368
13369   fi
13370   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
13371
13372     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
13373       for ac_func in _fmodl
13374 do
13375 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13376 echo "configure:13377: checking for $ac_func" >&5
13377 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13378   echo $ac_n "(cached) $ac_c" 1>&6
13379 else
13380   cat > conftest.$ac_ext <<EOF
13381 #line 13382 "configure"
13382 #include "confdefs.h"
13383 /* System header to define __stub macros and hopefully few prototypes,
13384     which can conflict with char $ac_func(); below.  */
13385 #include <assert.h>
13386 /* Override any gcc2 internal prototype to avoid an error.  */
13387 /* We use char because int might match the return type of a gcc2
13388     builtin and then its argument prototype would still apply.  */
13389 char $ac_func();
13390
13391 int main() {
13392
13393 /* The GNU C library defines this for functions which it implements
13394     to always fail with ENOSYS.  Some functions are actually named
13395     something starting with __ and the normal name is an alias.  */
13396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13397 choke me
13398 #else
13399 $ac_func();
13400 #endif
13401
13402 ; return 0; }
13403 EOF
13404 if { (eval echo configure:13405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13405   rm -rf conftest*
13406   eval "ac_cv_func_$ac_func=yes"
13407 else
13408   echo "configure: failed program was:" >&5
13409   cat conftest.$ac_ext >&5
13410   rm -rf conftest*
13411   eval "ac_cv_func_$ac_func=no"
13412 fi
13413 rm -f conftest*
13414 fi
13415
13416 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13417   echo "$ac_t""yes" 1>&6
13418     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13419   cat >> confdefs.h <<EOF
13420 #define $ac_tr_func 1
13421 EOF
13422  
13423 else
13424   echo "$ac_t""no" 1>&6
13425 fi
13426 done
13427     
13428     fi
13429   fi
13430
13431   
13432   
13433   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
13434 echo "configure:13435: checking for frexpl declaration" >&5
13435   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
13436     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
13437   echo $ac_n "(cached) $ac_c" 1>&6
13438 else
13439   
13440       
13441       ac_ext=C
13442 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13443 ac_cpp='$CXXCPP $CPPFLAGS'
13444 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13445 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13446 cross_compiling=$ac_cv_prog_cxx_cross
13447
13448       cat > conftest.$ac_ext <<EOF
13449 #line 13450 "configure"
13450 #include "confdefs.h"
13451 #include <math.h>
13452 int main() {
13453  frexpl(0, 0);
13454 ; return 0; }
13455 EOF
13456 if { (eval echo configure:13457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13457   rm -rf conftest*
13458   glibcpp_cv_func_frexpl_use=yes
13459 else
13460   echo "configure: failed program was:" >&5
13461   cat conftest.$ac_ext >&5
13462   rm -rf conftest*
13463   glibcpp_cv_func_frexpl_use=no
13464 fi
13465 rm -f conftest*
13466       ac_ext=c
13467 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13468 ac_cpp='$CPP $CPPFLAGS'
13469 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13470 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13471 cross_compiling=$ac_cv_prog_cc_cross
13472
13473     
13474 fi
13475
13476   fi
13477   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
13478
13479   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
13480     for ac_func in frexpl
13481 do
13482 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13483 echo "configure:13484: checking for $ac_func" >&5
13484 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13485   echo $ac_n "(cached) $ac_c" 1>&6
13486 else
13487   cat > conftest.$ac_ext <<EOF
13488 #line 13489 "configure"
13489 #include "confdefs.h"
13490 /* System header to define __stub macros and hopefully few prototypes,
13491     which can conflict with char $ac_func(); below.  */
13492 #include <assert.h>
13493 /* Override any gcc2 internal prototype to avoid an error.  */
13494 /* We use char because int might match the return type of a gcc2
13495     builtin and then its argument prototype would still apply.  */
13496 char $ac_func();
13497
13498 int main() {
13499
13500 /* The GNU C library defines this for functions which it implements
13501     to always fail with ENOSYS.  Some functions are actually named
13502     something starting with __ and the normal name is an alias.  */
13503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13504 choke me
13505 #else
13506 $ac_func();
13507 #endif
13508
13509 ; return 0; }
13510 EOF
13511 if { (eval echo configure:13512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13512   rm -rf conftest*
13513   eval "ac_cv_func_$ac_func=yes"
13514 else
13515   echo "configure: failed program was:" >&5
13516   cat conftest.$ac_ext >&5
13517   rm -rf conftest*
13518   eval "ac_cv_func_$ac_func=no"
13519 fi
13520 rm -f conftest*
13521 fi
13522
13523 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13524   echo "$ac_t""yes" 1>&6
13525     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13526   cat >> confdefs.h <<EOF
13527 #define $ac_tr_func 1
13528 EOF
13529  
13530 else
13531   echo "$ac_t""no" 1>&6
13532 fi
13533 done
13534     
13535   else
13536     
13537   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
13538 echo "configure:13539: checking for _frexpl declaration" >&5
13539   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
13540     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
13541   echo $ac_n "(cached) $ac_c" 1>&6
13542 else
13543   
13544       
13545       ac_ext=C
13546 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13547 ac_cpp='$CXXCPP $CPPFLAGS'
13548 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13549 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13550 cross_compiling=$ac_cv_prog_cxx_cross
13551
13552       cat > conftest.$ac_ext <<EOF
13553 #line 13554 "configure"
13554 #include "confdefs.h"
13555 #include <math.h>
13556 int main() {
13557  _frexpl(0, 0);
13558 ; return 0; }
13559 EOF
13560 if { (eval echo configure:13561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13561   rm -rf conftest*
13562   glibcpp_cv_func__frexpl_use=yes
13563 else
13564   echo "configure: failed program was:" >&5
13565   cat conftest.$ac_ext >&5
13566   rm -rf conftest*
13567   glibcpp_cv_func__frexpl_use=no
13568 fi
13569 rm -f conftest*
13570       ac_ext=c
13571 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13572 ac_cpp='$CPP $CPPFLAGS'
13573 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13574 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13575 cross_compiling=$ac_cv_prog_cc_cross
13576
13577     
13578 fi
13579
13580   fi
13581   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
13582
13583     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
13584       for ac_func in _frexpl
13585 do
13586 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13587 echo "configure:13588: checking for $ac_func" >&5
13588 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13589   echo $ac_n "(cached) $ac_c" 1>&6
13590 else
13591   cat > conftest.$ac_ext <<EOF
13592 #line 13593 "configure"
13593 #include "confdefs.h"
13594 /* System header to define __stub macros and hopefully few prototypes,
13595     which can conflict with char $ac_func(); below.  */
13596 #include <assert.h>
13597 /* Override any gcc2 internal prototype to avoid an error.  */
13598 /* We use char because int might match the return type of a gcc2
13599     builtin and then its argument prototype would still apply.  */
13600 char $ac_func();
13601
13602 int main() {
13603
13604 /* The GNU C library defines this for functions which it implements
13605     to always fail with ENOSYS.  Some functions are actually named
13606     something starting with __ and the normal name is an alias.  */
13607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13608 choke me
13609 #else
13610 $ac_func();
13611 #endif
13612
13613 ; return 0; }
13614 EOF
13615 if { (eval echo configure:13616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13616   rm -rf conftest*
13617   eval "ac_cv_func_$ac_func=yes"
13618 else
13619   echo "configure: failed program was:" >&5
13620   cat conftest.$ac_ext >&5
13621   rm -rf conftest*
13622   eval "ac_cv_func_$ac_func=no"
13623 fi
13624 rm -f conftest*
13625 fi
13626
13627 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13628   echo "$ac_t""yes" 1>&6
13629     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13630   cat >> confdefs.h <<EOF
13631 #define $ac_tr_func 1
13632 EOF
13633  
13634 else
13635   echo "$ac_t""no" 1>&6
13636 fi
13637 done
13638     
13639     fi
13640   fi
13641
13642   
13643   
13644   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
13645 echo "configure:13646: checking for hypotl declaration" >&5
13646   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
13647     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
13648   echo $ac_n "(cached) $ac_c" 1>&6
13649 else
13650   
13651       
13652       ac_ext=C
13653 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13654 ac_cpp='$CXXCPP $CPPFLAGS'
13655 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13656 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13657 cross_compiling=$ac_cv_prog_cxx_cross
13658
13659       cat > conftest.$ac_ext <<EOF
13660 #line 13661 "configure"
13661 #include "confdefs.h"
13662 #include <math.h>
13663 int main() {
13664  hypotl(0, 0);
13665 ; return 0; }
13666 EOF
13667 if { (eval echo configure:13668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13668   rm -rf conftest*
13669   glibcpp_cv_func_hypotl_use=yes
13670 else
13671   echo "configure: failed program was:" >&5
13672   cat conftest.$ac_ext >&5
13673   rm -rf conftest*
13674   glibcpp_cv_func_hypotl_use=no
13675 fi
13676 rm -f conftest*
13677       ac_ext=c
13678 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13679 ac_cpp='$CPP $CPPFLAGS'
13680 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13681 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13682 cross_compiling=$ac_cv_prog_cc_cross
13683
13684     
13685 fi
13686
13687   fi
13688   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
13689
13690   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
13691     for ac_func in hypotl
13692 do
13693 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13694 echo "configure:13695: checking for $ac_func" >&5
13695 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13696   echo $ac_n "(cached) $ac_c" 1>&6
13697 else
13698   cat > conftest.$ac_ext <<EOF
13699 #line 13700 "configure"
13700 #include "confdefs.h"
13701 /* System header to define __stub macros and hopefully few prototypes,
13702     which can conflict with char $ac_func(); below.  */
13703 #include <assert.h>
13704 /* Override any gcc2 internal prototype to avoid an error.  */
13705 /* We use char because int might match the return type of a gcc2
13706     builtin and then its argument prototype would still apply.  */
13707 char $ac_func();
13708
13709 int main() {
13710
13711 /* The GNU C library defines this for functions which it implements
13712     to always fail with ENOSYS.  Some functions are actually named
13713     something starting with __ and the normal name is an alias.  */
13714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13715 choke me
13716 #else
13717 $ac_func();
13718 #endif
13719
13720 ; return 0; }
13721 EOF
13722 if { (eval echo configure:13723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13723   rm -rf conftest*
13724   eval "ac_cv_func_$ac_func=yes"
13725 else
13726   echo "configure: failed program was:" >&5
13727   cat conftest.$ac_ext >&5
13728   rm -rf conftest*
13729   eval "ac_cv_func_$ac_func=no"
13730 fi
13731 rm -f conftest*
13732 fi
13733
13734 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13735   echo "$ac_t""yes" 1>&6
13736     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13737   cat >> confdefs.h <<EOF
13738 #define $ac_tr_func 1
13739 EOF
13740  
13741 else
13742   echo "$ac_t""no" 1>&6
13743 fi
13744 done
13745     
13746   else
13747     
13748   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
13749 echo "configure:13750: checking for _hypotl declaration" >&5
13750   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
13751     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
13752   echo $ac_n "(cached) $ac_c" 1>&6
13753 else
13754   
13755       
13756       ac_ext=C
13757 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13758 ac_cpp='$CXXCPP $CPPFLAGS'
13759 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13760 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13761 cross_compiling=$ac_cv_prog_cxx_cross
13762
13763       cat > conftest.$ac_ext <<EOF
13764 #line 13765 "configure"
13765 #include "confdefs.h"
13766 #include <math.h>
13767 int main() {
13768  _hypotl(0, 0);
13769 ; return 0; }
13770 EOF
13771 if { (eval echo configure:13772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13772   rm -rf conftest*
13773   glibcpp_cv_func__hypotl_use=yes
13774 else
13775   echo "configure: failed program was:" >&5
13776   cat conftest.$ac_ext >&5
13777   rm -rf conftest*
13778   glibcpp_cv_func__hypotl_use=no
13779 fi
13780 rm -f conftest*
13781       ac_ext=c
13782 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13783 ac_cpp='$CPP $CPPFLAGS'
13784 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13785 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13786 cross_compiling=$ac_cv_prog_cc_cross
13787
13788     
13789 fi
13790
13791   fi
13792   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
13793
13794     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
13795       for ac_func in _hypotl
13796 do
13797 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13798 echo "configure:13799: checking for $ac_func" >&5
13799 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13800   echo $ac_n "(cached) $ac_c" 1>&6
13801 else
13802   cat > conftest.$ac_ext <<EOF
13803 #line 13804 "configure"
13804 #include "confdefs.h"
13805 /* System header to define __stub macros and hopefully few prototypes,
13806     which can conflict with char $ac_func(); below.  */
13807 #include <assert.h>
13808 /* Override any gcc2 internal prototype to avoid an error.  */
13809 /* We use char because int might match the return type of a gcc2
13810     builtin and then its argument prototype would still apply.  */
13811 char $ac_func();
13812
13813 int main() {
13814
13815 /* The GNU C library defines this for functions which it implements
13816     to always fail with ENOSYS.  Some functions are actually named
13817     something starting with __ and the normal name is an alias.  */
13818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13819 choke me
13820 #else
13821 $ac_func();
13822 #endif
13823
13824 ; return 0; }
13825 EOF
13826 if { (eval echo configure:13827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13827   rm -rf conftest*
13828   eval "ac_cv_func_$ac_func=yes"
13829 else
13830   echo "configure: failed program was:" >&5
13831   cat conftest.$ac_ext >&5
13832   rm -rf conftest*
13833   eval "ac_cv_func_$ac_func=no"
13834 fi
13835 rm -f conftest*
13836 fi
13837
13838 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13839   echo "$ac_t""yes" 1>&6
13840     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13841   cat >> confdefs.h <<EOF
13842 #define $ac_tr_func 1
13843 EOF
13844  
13845 else
13846   echo "$ac_t""no" 1>&6
13847 fi
13848 done
13849     
13850     fi
13851   fi
13852
13853   
13854   
13855   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
13856 echo "configure:13857: checking for ldexpl declaration" >&5
13857   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
13858     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
13859   echo $ac_n "(cached) $ac_c" 1>&6
13860 else
13861   
13862       
13863       ac_ext=C
13864 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13865 ac_cpp='$CXXCPP $CPPFLAGS'
13866 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13867 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13868 cross_compiling=$ac_cv_prog_cxx_cross
13869
13870       cat > conftest.$ac_ext <<EOF
13871 #line 13872 "configure"
13872 #include "confdefs.h"
13873 #include <math.h>
13874 int main() {
13875  ldexpl(0, 0);
13876 ; return 0; }
13877 EOF
13878 if { (eval echo configure:13879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13879   rm -rf conftest*
13880   glibcpp_cv_func_ldexpl_use=yes
13881 else
13882   echo "configure: failed program was:" >&5
13883   cat conftest.$ac_ext >&5
13884   rm -rf conftest*
13885   glibcpp_cv_func_ldexpl_use=no
13886 fi
13887 rm -f conftest*
13888       ac_ext=c
13889 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13890 ac_cpp='$CPP $CPPFLAGS'
13891 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13892 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13893 cross_compiling=$ac_cv_prog_cc_cross
13894
13895     
13896 fi
13897
13898   fi
13899   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
13900
13901   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
13902     for ac_func in ldexpl
13903 do
13904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13905 echo "configure:13906: checking for $ac_func" >&5
13906 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13907   echo $ac_n "(cached) $ac_c" 1>&6
13908 else
13909   cat > conftest.$ac_ext <<EOF
13910 #line 13911 "configure"
13911 #include "confdefs.h"
13912 /* System header to define __stub macros and hopefully few prototypes,
13913     which can conflict with char $ac_func(); below.  */
13914 #include <assert.h>
13915 /* Override any gcc2 internal prototype to avoid an error.  */
13916 /* We use char because int might match the return type of a gcc2
13917     builtin and then its argument prototype would still apply.  */
13918 char $ac_func();
13919
13920 int main() {
13921
13922 /* The GNU C library defines this for functions which it implements
13923     to always fail with ENOSYS.  Some functions are actually named
13924     something starting with __ and the normal name is an alias.  */
13925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13926 choke me
13927 #else
13928 $ac_func();
13929 #endif
13930
13931 ; return 0; }
13932 EOF
13933 if { (eval echo configure:13934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13934   rm -rf conftest*
13935   eval "ac_cv_func_$ac_func=yes"
13936 else
13937   echo "configure: failed program was:" >&5
13938   cat conftest.$ac_ext >&5
13939   rm -rf conftest*
13940   eval "ac_cv_func_$ac_func=no"
13941 fi
13942 rm -f conftest*
13943 fi
13944
13945 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13946   echo "$ac_t""yes" 1>&6
13947     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13948   cat >> confdefs.h <<EOF
13949 #define $ac_tr_func 1
13950 EOF
13951  
13952 else
13953   echo "$ac_t""no" 1>&6
13954 fi
13955 done
13956     
13957   else
13958     
13959   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
13960 echo "configure:13961: checking for _ldexpl declaration" >&5
13961   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
13962     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
13963   echo $ac_n "(cached) $ac_c" 1>&6
13964 else
13965   
13966       
13967       ac_ext=C
13968 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13969 ac_cpp='$CXXCPP $CPPFLAGS'
13970 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13971 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13972 cross_compiling=$ac_cv_prog_cxx_cross
13973
13974       cat > conftest.$ac_ext <<EOF
13975 #line 13976 "configure"
13976 #include "confdefs.h"
13977 #include <math.h>
13978 int main() {
13979  _ldexpl(0, 0);
13980 ; return 0; }
13981 EOF
13982 if { (eval echo configure:13983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13983   rm -rf conftest*
13984   glibcpp_cv_func__ldexpl_use=yes
13985 else
13986   echo "configure: failed program was:" >&5
13987   cat conftest.$ac_ext >&5
13988   rm -rf conftest*
13989   glibcpp_cv_func__ldexpl_use=no
13990 fi
13991 rm -f conftest*
13992       ac_ext=c
13993 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13994 ac_cpp='$CPP $CPPFLAGS'
13995 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13996 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13997 cross_compiling=$ac_cv_prog_cc_cross
13998
13999     
14000 fi
14001
14002   fi
14003   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
14004
14005     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
14006       for ac_func in _ldexpl
14007 do
14008 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14009 echo "configure:14010: checking for $ac_func" >&5
14010 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14011   echo $ac_n "(cached) $ac_c" 1>&6
14012 else
14013   cat > conftest.$ac_ext <<EOF
14014 #line 14015 "configure"
14015 #include "confdefs.h"
14016 /* System header to define __stub macros and hopefully few prototypes,
14017     which can conflict with char $ac_func(); below.  */
14018 #include <assert.h>
14019 /* Override any gcc2 internal prototype to avoid an error.  */
14020 /* We use char because int might match the return type of a gcc2
14021     builtin and then its argument prototype would still apply.  */
14022 char $ac_func();
14023
14024 int main() {
14025
14026 /* The GNU C library defines this for functions which it implements
14027     to always fail with ENOSYS.  Some functions are actually named
14028     something starting with __ and the normal name is an alias.  */
14029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14030 choke me
14031 #else
14032 $ac_func();
14033 #endif
14034
14035 ; return 0; }
14036 EOF
14037 if { (eval echo configure:14038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14038   rm -rf conftest*
14039   eval "ac_cv_func_$ac_func=yes"
14040 else
14041   echo "configure: failed program was:" >&5
14042   cat conftest.$ac_ext >&5
14043   rm -rf conftest*
14044   eval "ac_cv_func_$ac_func=no"
14045 fi
14046 rm -f conftest*
14047 fi
14048
14049 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14050   echo "$ac_t""yes" 1>&6
14051     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14052   cat >> confdefs.h <<EOF
14053 #define $ac_tr_func 1
14054 EOF
14055  
14056 else
14057   echo "$ac_t""no" 1>&6
14058 fi
14059 done
14060     
14061     fi
14062   fi
14063
14064   
14065   
14066   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
14067 echo "configure:14068: checking for logl declaration" >&5
14068   if test x${glibcpp_cv_func_logl_use+set} != xset; then
14069     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
14070   echo $ac_n "(cached) $ac_c" 1>&6
14071 else
14072   
14073       
14074       ac_ext=C
14075 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14076 ac_cpp='$CXXCPP $CPPFLAGS'
14077 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14078 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14079 cross_compiling=$ac_cv_prog_cxx_cross
14080
14081       cat > conftest.$ac_ext <<EOF
14082 #line 14083 "configure"
14083 #include "confdefs.h"
14084 #include <math.h>
14085                       #ifdef HAVE_IEEEFP_H
14086                       #include <ieeefp.h>
14087                       #endif
14088                      
14089 int main() {
14090  logl(0);
14091 ; return 0; }
14092 EOF
14093 if { (eval echo configure:14094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14094   rm -rf conftest*
14095   glibcpp_cv_func_logl_use=yes
14096 else
14097   echo "configure: failed program was:" >&5
14098   cat conftest.$ac_ext >&5
14099   rm -rf conftest*
14100   glibcpp_cv_func_logl_use=no
14101 fi
14102 rm -f conftest*
14103       ac_ext=c
14104 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14105 ac_cpp='$CPP $CPPFLAGS'
14106 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14107 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14108 cross_compiling=$ac_cv_prog_cc_cross
14109
14110     
14111 fi
14112
14113   fi
14114   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
14115
14116   if test x$glibcpp_cv_func_logl_use = x"yes"; then
14117     for ac_func in logl
14118 do
14119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14120 echo "configure:14121: checking for $ac_func" >&5
14121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14122   echo $ac_n "(cached) $ac_c" 1>&6
14123 else
14124   cat > conftest.$ac_ext <<EOF
14125 #line 14126 "configure"
14126 #include "confdefs.h"
14127 /* System header to define __stub macros and hopefully few prototypes,
14128     which can conflict with char $ac_func(); below.  */
14129 #include <assert.h>
14130 /* Override any gcc2 internal prototype to avoid an error.  */
14131 /* We use char because int might match the return type of a gcc2
14132     builtin and then its argument prototype would still apply.  */
14133 char $ac_func();
14134
14135 int main() {
14136
14137 /* The GNU C library defines this for functions which it implements
14138     to always fail with ENOSYS.  Some functions are actually named
14139     something starting with __ and the normal name is an alias.  */
14140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14141 choke me
14142 #else
14143 $ac_func();
14144 #endif
14145
14146 ; return 0; }
14147 EOF
14148 if { (eval echo configure:14149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14149   rm -rf conftest*
14150   eval "ac_cv_func_$ac_func=yes"
14151 else
14152   echo "configure: failed program was:" >&5
14153   cat conftest.$ac_ext >&5
14154   rm -rf conftest*
14155   eval "ac_cv_func_$ac_func=no"
14156 fi
14157 rm -f conftest*
14158 fi
14159
14160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14161   echo "$ac_t""yes" 1>&6
14162     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14163   cat >> confdefs.h <<EOF
14164 #define $ac_tr_func 1
14165 EOF
14166  
14167 else
14168   echo "$ac_t""no" 1>&6
14169 fi
14170 done
14171     
14172   else
14173     
14174   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
14175 echo "configure:14176: checking for _logl declaration" >&5
14176   if test x${glibcpp_cv_func__logl_use+set} != xset; then
14177     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
14178   echo $ac_n "(cached) $ac_c" 1>&6
14179 else
14180   
14181       
14182       ac_ext=C
14183 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14184 ac_cpp='$CXXCPP $CPPFLAGS'
14185 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14186 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14187 cross_compiling=$ac_cv_prog_cxx_cross
14188
14189       cat > conftest.$ac_ext <<EOF
14190 #line 14191 "configure"
14191 #include "confdefs.h"
14192 #include <math.h>
14193                       #ifdef HAVE_IEEEFP_H
14194                       #include <ieeefp.h>
14195                       #endif
14196                      
14197 int main() {
14198  _logl(0);
14199 ; return 0; }
14200 EOF
14201 if { (eval echo configure:14202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14202   rm -rf conftest*
14203   glibcpp_cv_func__logl_use=yes
14204 else
14205   echo "configure: failed program was:" >&5
14206   cat conftest.$ac_ext >&5
14207   rm -rf conftest*
14208   glibcpp_cv_func__logl_use=no
14209 fi
14210 rm -f conftest*
14211       ac_ext=c
14212 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14213 ac_cpp='$CPP $CPPFLAGS'
14214 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14215 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14216 cross_compiling=$ac_cv_prog_cc_cross
14217
14218     
14219 fi
14220
14221   fi
14222   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
14223
14224     if test x$glibcpp_cv_func__logl_use = x"yes"; then
14225       for ac_func in _logl
14226 do
14227 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14228 echo "configure:14229: checking for $ac_func" >&5
14229 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14230   echo $ac_n "(cached) $ac_c" 1>&6
14231 else
14232   cat > conftest.$ac_ext <<EOF
14233 #line 14234 "configure"
14234 #include "confdefs.h"
14235 /* System header to define __stub macros and hopefully few prototypes,
14236     which can conflict with char $ac_func(); below.  */
14237 #include <assert.h>
14238 /* Override any gcc2 internal prototype to avoid an error.  */
14239 /* We use char because int might match the return type of a gcc2
14240     builtin and then its argument prototype would still apply.  */
14241 char $ac_func();
14242
14243 int main() {
14244
14245 /* The GNU C library defines this for functions which it implements
14246     to always fail with ENOSYS.  Some functions are actually named
14247     something starting with __ and the normal name is an alias.  */
14248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14249 choke me
14250 #else
14251 $ac_func();
14252 #endif
14253
14254 ; return 0; }
14255 EOF
14256 if { (eval echo configure:14257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14257   rm -rf conftest*
14258   eval "ac_cv_func_$ac_func=yes"
14259 else
14260   echo "configure: failed program was:" >&5
14261   cat conftest.$ac_ext >&5
14262   rm -rf conftest*
14263   eval "ac_cv_func_$ac_func=no"
14264 fi
14265 rm -f conftest*
14266 fi
14267
14268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14269   echo "$ac_t""yes" 1>&6
14270     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14271   cat >> confdefs.h <<EOF
14272 #define $ac_tr_func 1
14273 EOF
14274  
14275 else
14276   echo "$ac_t""no" 1>&6
14277 fi
14278 done
14279     
14280     fi
14281   fi
14282
14283   
14284   
14285   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
14286 echo "configure:14287: checking for log10l declaration" >&5
14287   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
14288     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
14289   echo $ac_n "(cached) $ac_c" 1>&6
14290 else
14291   
14292       
14293       ac_ext=C
14294 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14295 ac_cpp='$CXXCPP $CPPFLAGS'
14296 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14297 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14298 cross_compiling=$ac_cv_prog_cxx_cross
14299
14300       cat > conftest.$ac_ext <<EOF
14301 #line 14302 "configure"
14302 #include "confdefs.h"
14303 #include <math.h>
14304                       #ifdef HAVE_IEEEFP_H
14305                       #include <ieeefp.h>
14306                       #endif
14307                      
14308 int main() {
14309  log10l(0);
14310 ; return 0; }
14311 EOF
14312 if { (eval echo configure:14313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14313   rm -rf conftest*
14314   glibcpp_cv_func_log10l_use=yes
14315 else
14316   echo "configure: failed program was:" >&5
14317   cat conftest.$ac_ext >&5
14318   rm -rf conftest*
14319   glibcpp_cv_func_log10l_use=no
14320 fi
14321 rm -f conftest*
14322       ac_ext=c
14323 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14324 ac_cpp='$CPP $CPPFLAGS'
14325 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14326 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14327 cross_compiling=$ac_cv_prog_cc_cross
14328
14329     
14330 fi
14331
14332   fi
14333   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
14334
14335   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
14336     for ac_func in log10l
14337 do
14338 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14339 echo "configure:14340: checking for $ac_func" >&5
14340 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14341   echo $ac_n "(cached) $ac_c" 1>&6
14342 else
14343   cat > conftest.$ac_ext <<EOF
14344 #line 14345 "configure"
14345 #include "confdefs.h"
14346 /* System header to define __stub macros and hopefully few prototypes,
14347     which can conflict with char $ac_func(); below.  */
14348 #include <assert.h>
14349 /* Override any gcc2 internal prototype to avoid an error.  */
14350 /* We use char because int might match the return type of a gcc2
14351     builtin and then its argument prototype would still apply.  */
14352 char $ac_func();
14353
14354 int main() {
14355
14356 /* The GNU C library defines this for functions which it implements
14357     to always fail with ENOSYS.  Some functions are actually named
14358     something starting with __ and the normal name is an alias.  */
14359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14360 choke me
14361 #else
14362 $ac_func();
14363 #endif
14364
14365 ; return 0; }
14366 EOF
14367 if { (eval echo configure:14368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14368   rm -rf conftest*
14369   eval "ac_cv_func_$ac_func=yes"
14370 else
14371   echo "configure: failed program was:" >&5
14372   cat conftest.$ac_ext >&5
14373   rm -rf conftest*
14374   eval "ac_cv_func_$ac_func=no"
14375 fi
14376 rm -f conftest*
14377 fi
14378
14379 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14380   echo "$ac_t""yes" 1>&6
14381     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14382   cat >> confdefs.h <<EOF
14383 #define $ac_tr_func 1
14384 EOF
14385  
14386 else
14387   echo "$ac_t""no" 1>&6
14388 fi
14389 done
14390     
14391   else
14392     
14393   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
14394 echo "configure:14395: checking for _log10l declaration" >&5
14395   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
14396     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
14397   echo $ac_n "(cached) $ac_c" 1>&6
14398 else
14399   
14400       
14401       ac_ext=C
14402 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14403 ac_cpp='$CXXCPP $CPPFLAGS'
14404 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14405 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14406 cross_compiling=$ac_cv_prog_cxx_cross
14407
14408       cat > conftest.$ac_ext <<EOF
14409 #line 14410 "configure"
14410 #include "confdefs.h"
14411 #include <math.h>
14412                       #ifdef HAVE_IEEEFP_H
14413                       #include <ieeefp.h>
14414                       #endif
14415                      
14416 int main() {
14417  _log10l(0);
14418 ; return 0; }
14419 EOF
14420 if { (eval echo configure:14421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14421   rm -rf conftest*
14422   glibcpp_cv_func__log10l_use=yes
14423 else
14424   echo "configure: failed program was:" >&5
14425   cat conftest.$ac_ext >&5
14426   rm -rf conftest*
14427   glibcpp_cv_func__log10l_use=no
14428 fi
14429 rm -f conftest*
14430       ac_ext=c
14431 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14432 ac_cpp='$CPP $CPPFLAGS'
14433 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14434 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14435 cross_compiling=$ac_cv_prog_cc_cross
14436
14437     
14438 fi
14439
14440   fi
14441   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
14442
14443     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
14444       for ac_func in _log10l
14445 do
14446 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14447 echo "configure:14448: checking for $ac_func" >&5
14448 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14449   echo $ac_n "(cached) $ac_c" 1>&6
14450 else
14451   cat > conftest.$ac_ext <<EOF
14452 #line 14453 "configure"
14453 #include "confdefs.h"
14454 /* System header to define __stub macros and hopefully few prototypes,
14455     which can conflict with char $ac_func(); below.  */
14456 #include <assert.h>
14457 /* Override any gcc2 internal prototype to avoid an error.  */
14458 /* We use char because int might match the return type of a gcc2
14459     builtin and then its argument prototype would still apply.  */
14460 char $ac_func();
14461
14462 int main() {
14463
14464 /* The GNU C library defines this for functions which it implements
14465     to always fail with ENOSYS.  Some functions are actually named
14466     something starting with __ and the normal name is an alias.  */
14467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14468 choke me
14469 #else
14470 $ac_func();
14471 #endif
14472
14473 ; return 0; }
14474 EOF
14475 if { (eval echo configure:14476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14476   rm -rf conftest*
14477   eval "ac_cv_func_$ac_func=yes"
14478 else
14479   echo "configure: failed program was:" >&5
14480   cat conftest.$ac_ext >&5
14481   rm -rf conftest*
14482   eval "ac_cv_func_$ac_func=no"
14483 fi
14484 rm -f conftest*
14485 fi
14486
14487 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14488   echo "$ac_t""yes" 1>&6
14489     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14490   cat >> confdefs.h <<EOF
14491 #define $ac_tr_func 1
14492 EOF
14493  
14494 else
14495   echo "$ac_t""no" 1>&6
14496 fi
14497 done
14498     
14499     fi
14500   fi
14501
14502   
14503   
14504   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
14505 echo "configure:14506: checking for modfl declaration" >&5
14506   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
14507     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
14508   echo $ac_n "(cached) $ac_c" 1>&6
14509 else
14510   
14511       
14512       ac_ext=C
14513 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14514 ac_cpp='$CXXCPP $CPPFLAGS'
14515 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14516 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14517 cross_compiling=$ac_cv_prog_cxx_cross
14518
14519       cat > conftest.$ac_ext <<EOF
14520 #line 14521 "configure"
14521 #include "confdefs.h"
14522 #include <math.h>
14523 int main() {
14524  modfl(0, 0);
14525 ; return 0; }
14526 EOF
14527 if { (eval echo configure:14528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14528   rm -rf conftest*
14529   glibcpp_cv_func_modfl_use=yes
14530 else
14531   echo "configure: failed program was:" >&5
14532   cat conftest.$ac_ext >&5
14533   rm -rf conftest*
14534   glibcpp_cv_func_modfl_use=no
14535 fi
14536 rm -f conftest*
14537       ac_ext=c
14538 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14539 ac_cpp='$CPP $CPPFLAGS'
14540 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14541 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14542 cross_compiling=$ac_cv_prog_cc_cross
14543
14544     
14545 fi
14546
14547   fi
14548   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
14549
14550   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
14551     for ac_func in modfl
14552 do
14553 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14554 echo "configure:14555: checking for $ac_func" >&5
14555 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14556   echo $ac_n "(cached) $ac_c" 1>&6
14557 else
14558   cat > conftest.$ac_ext <<EOF
14559 #line 14560 "configure"
14560 #include "confdefs.h"
14561 /* System header to define __stub macros and hopefully few prototypes,
14562     which can conflict with char $ac_func(); below.  */
14563 #include <assert.h>
14564 /* Override any gcc2 internal prototype to avoid an error.  */
14565 /* We use char because int might match the return type of a gcc2
14566     builtin and then its argument prototype would still apply.  */
14567 char $ac_func();
14568
14569 int main() {
14570
14571 /* The GNU C library defines this for functions which it implements
14572     to always fail with ENOSYS.  Some functions are actually named
14573     something starting with __ and the normal name is an alias.  */
14574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14575 choke me
14576 #else
14577 $ac_func();
14578 #endif
14579
14580 ; return 0; }
14581 EOF
14582 if { (eval echo configure:14583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14583   rm -rf conftest*
14584   eval "ac_cv_func_$ac_func=yes"
14585 else
14586   echo "configure: failed program was:" >&5
14587   cat conftest.$ac_ext >&5
14588   rm -rf conftest*
14589   eval "ac_cv_func_$ac_func=no"
14590 fi
14591 rm -f conftest*
14592 fi
14593
14594 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14595   echo "$ac_t""yes" 1>&6
14596     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14597   cat >> confdefs.h <<EOF
14598 #define $ac_tr_func 1
14599 EOF
14600  
14601 else
14602   echo "$ac_t""no" 1>&6
14603 fi
14604 done
14605     
14606   else
14607     
14608   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
14609 echo "configure:14610: checking for _modfl declaration" >&5
14610   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
14611     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
14612   echo $ac_n "(cached) $ac_c" 1>&6
14613 else
14614   
14615       
14616       ac_ext=C
14617 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14618 ac_cpp='$CXXCPP $CPPFLAGS'
14619 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14620 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14621 cross_compiling=$ac_cv_prog_cxx_cross
14622
14623       cat > conftest.$ac_ext <<EOF
14624 #line 14625 "configure"
14625 #include "confdefs.h"
14626 #include <math.h>
14627 int main() {
14628  _modfl(0, 0);
14629 ; return 0; }
14630 EOF
14631 if { (eval echo configure:14632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14632   rm -rf conftest*
14633   glibcpp_cv_func__modfl_use=yes
14634 else
14635   echo "configure: failed program was:" >&5
14636   cat conftest.$ac_ext >&5
14637   rm -rf conftest*
14638   glibcpp_cv_func__modfl_use=no
14639 fi
14640 rm -f conftest*
14641       ac_ext=c
14642 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14643 ac_cpp='$CPP $CPPFLAGS'
14644 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14645 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14646 cross_compiling=$ac_cv_prog_cc_cross
14647
14648     
14649 fi
14650
14651   fi
14652   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
14653
14654     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
14655       for ac_func in _modfl
14656 do
14657 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14658 echo "configure:14659: checking for $ac_func" >&5
14659 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14660   echo $ac_n "(cached) $ac_c" 1>&6
14661 else
14662   cat > conftest.$ac_ext <<EOF
14663 #line 14664 "configure"
14664 #include "confdefs.h"
14665 /* System header to define __stub macros and hopefully few prototypes,
14666     which can conflict with char $ac_func(); below.  */
14667 #include <assert.h>
14668 /* Override any gcc2 internal prototype to avoid an error.  */
14669 /* We use char because int might match the return type of a gcc2
14670     builtin and then its argument prototype would still apply.  */
14671 char $ac_func();
14672
14673 int main() {
14674
14675 /* The GNU C library defines this for functions which it implements
14676     to always fail with ENOSYS.  Some functions are actually named
14677     something starting with __ and the normal name is an alias.  */
14678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14679 choke me
14680 #else
14681 $ac_func();
14682 #endif
14683
14684 ; return 0; }
14685 EOF
14686 if { (eval echo configure:14687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14687   rm -rf conftest*
14688   eval "ac_cv_func_$ac_func=yes"
14689 else
14690   echo "configure: failed program was:" >&5
14691   cat conftest.$ac_ext >&5
14692   rm -rf conftest*
14693   eval "ac_cv_func_$ac_func=no"
14694 fi
14695 rm -f conftest*
14696 fi
14697
14698 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14699   echo "$ac_t""yes" 1>&6
14700     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14701   cat >> confdefs.h <<EOF
14702 #define $ac_tr_func 1
14703 EOF
14704  
14705 else
14706   echo "$ac_t""no" 1>&6
14707 fi
14708 done
14709     
14710     fi
14711   fi
14712
14713   
14714   
14715   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
14716 echo "configure:14717: checking for powl declaration" >&5
14717   if test x${glibcpp_cv_func_powl_use+set} != xset; then
14718     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
14719   echo $ac_n "(cached) $ac_c" 1>&6
14720 else
14721   
14722       
14723       ac_ext=C
14724 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14725 ac_cpp='$CXXCPP $CPPFLAGS'
14726 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14727 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14728 cross_compiling=$ac_cv_prog_cxx_cross
14729
14730       cat > conftest.$ac_ext <<EOF
14731 #line 14732 "configure"
14732 #include "confdefs.h"
14733 #include <math.h>
14734 int main() {
14735  powl(0, 0);
14736 ; return 0; }
14737 EOF
14738 if { (eval echo configure:14739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14739   rm -rf conftest*
14740   glibcpp_cv_func_powl_use=yes
14741 else
14742   echo "configure: failed program was:" >&5
14743   cat conftest.$ac_ext >&5
14744   rm -rf conftest*
14745   glibcpp_cv_func_powl_use=no
14746 fi
14747 rm -f conftest*
14748       ac_ext=c
14749 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14750 ac_cpp='$CPP $CPPFLAGS'
14751 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14752 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14753 cross_compiling=$ac_cv_prog_cc_cross
14754
14755     
14756 fi
14757
14758   fi
14759   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
14760
14761   if test x$glibcpp_cv_func_powl_use = x"yes"; then
14762     for ac_func in powl
14763 do
14764 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14765 echo "configure:14766: checking for $ac_func" >&5
14766 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14767   echo $ac_n "(cached) $ac_c" 1>&6
14768 else
14769   cat > conftest.$ac_ext <<EOF
14770 #line 14771 "configure"
14771 #include "confdefs.h"
14772 /* System header to define __stub macros and hopefully few prototypes,
14773     which can conflict with char $ac_func(); below.  */
14774 #include <assert.h>
14775 /* Override any gcc2 internal prototype to avoid an error.  */
14776 /* We use char because int might match the return type of a gcc2
14777     builtin and then its argument prototype would still apply.  */
14778 char $ac_func();
14779
14780 int main() {
14781
14782 /* The GNU C library defines this for functions which it implements
14783     to always fail with ENOSYS.  Some functions are actually named
14784     something starting with __ and the normal name is an alias.  */
14785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14786 choke me
14787 #else
14788 $ac_func();
14789 #endif
14790
14791 ; return 0; }
14792 EOF
14793 if { (eval echo configure:14794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14794   rm -rf conftest*
14795   eval "ac_cv_func_$ac_func=yes"
14796 else
14797   echo "configure: failed program was:" >&5
14798   cat conftest.$ac_ext >&5
14799   rm -rf conftest*
14800   eval "ac_cv_func_$ac_func=no"
14801 fi
14802 rm -f conftest*
14803 fi
14804
14805 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14806   echo "$ac_t""yes" 1>&6
14807     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14808   cat >> confdefs.h <<EOF
14809 #define $ac_tr_func 1
14810 EOF
14811  
14812 else
14813   echo "$ac_t""no" 1>&6
14814 fi
14815 done
14816     
14817   else
14818     
14819   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
14820 echo "configure:14821: checking for _powl declaration" >&5
14821   if test x${glibcpp_cv_func__powl_use+set} != xset; then
14822     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
14823   echo $ac_n "(cached) $ac_c" 1>&6
14824 else
14825   
14826       
14827       ac_ext=C
14828 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14829 ac_cpp='$CXXCPP $CPPFLAGS'
14830 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14831 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14832 cross_compiling=$ac_cv_prog_cxx_cross
14833
14834       cat > conftest.$ac_ext <<EOF
14835 #line 14836 "configure"
14836 #include "confdefs.h"
14837 #include <math.h>
14838 int main() {
14839  _powl(0, 0);
14840 ; return 0; }
14841 EOF
14842 if { (eval echo configure:14843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14843   rm -rf conftest*
14844   glibcpp_cv_func__powl_use=yes
14845 else
14846   echo "configure: failed program was:" >&5
14847   cat conftest.$ac_ext >&5
14848   rm -rf conftest*
14849   glibcpp_cv_func__powl_use=no
14850 fi
14851 rm -f conftest*
14852       ac_ext=c
14853 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14854 ac_cpp='$CPP $CPPFLAGS'
14855 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14856 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14857 cross_compiling=$ac_cv_prog_cc_cross
14858
14859     
14860 fi
14861
14862   fi
14863   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
14864
14865     if test x$glibcpp_cv_func__powl_use = x"yes"; then
14866       for ac_func in _powl
14867 do
14868 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14869 echo "configure:14870: checking for $ac_func" >&5
14870 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14871   echo $ac_n "(cached) $ac_c" 1>&6
14872 else
14873   cat > conftest.$ac_ext <<EOF
14874 #line 14875 "configure"
14875 #include "confdefs.h"
14876 /* System header to define __stub macros and hopefully few prototypes,
14877     which can conflict with char $ac_func(); below.  */
14878 #include <assert.h>
14879 /* Override any gcc2 internal prototype to avoid an error.  */
14880 /* We use char because int might match the return type of a gcc2
14881     builtin and then its argument prototype would still apply.  */
14882 char $ac_func();
14883
14884 int main() {
14885
14886 /* The GNU C library defines this for functions which it implements
14887     to always fail with ENOSYS.  Some functions are actually named
14888     something starting with __ and the normal name is an alias.  */
14889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14890 choke me
14891 #else
14892 $ac_func();
14893 #endif
14894
14895 ; return 0; }
14896 EOF
14897 if { (eval echo configure:14898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14898   rm -rf conftest*
14899   eval "ac_cv_func_$ac_func=yes"
14900 else
14901   echo "configure: failed program was:" >&5
14902   cat conftest.$ac_ext >&5
14903   rm -rf conftest*
14904   eval "ac_cv_func_$ac_func=no"
14905 fi
14906 rm -f conftest*
14907 fi
14908
14909 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14910   echo "$ac_t""yes" 1>&6
14911     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14912   cat >> confdefs.h <<EOF
14913 #define $ac_tr_func 1
14914 EOF
14915  
14916 else
14917   echo "$ac_t""no" 1>&6
14918 fi
14919 done
14920     
14921     fi
14922   fi
14923
14924   
14925   
14926   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
14927 echo "configure:14928: checking for sqrtl declaration" >&5
14928   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
14929     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
14930   echo $ac_n "(cached) $ac_c" 1>&6
14931 else
14932   
14933       
14934       ac_ext=C
14935 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14936 ac_cpp='$CXXCPP $CPPFLAGS'
14937 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14938 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14939 cross_compiling=$ac_cv_prog_cxx_cross
14940
14941       cat > conftest.$ac_ext <<EOF
14942 #line 14943 "configure"
14943 #include "confdefs.h"
14944 #include <math.h>
14945                       #ifdef HAVE_IEEEFP_H
14946                       #include <ieeefp.h>
14947                       #endif
14948                      
14949 int main() {
14950  sqrtl(0);
14951 ; return 0; }
14952 EOF
14953 if { (eval echo configure:14954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14954   rm -rf conftest*
14955   glibcpp_cv_func_sqrtl_use=yes
14956 else
14957   echo "configure: failed program was:" >&5
14958   cat conftest.$ac_ext >&5
14959   rm -rf conftest*
14960   glibcpp_cv_func_sqrtl_use=no
14961 fi
14962 rm -f conftest*
14963       ac_ext=c
14964 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14965 ac_cpp='$CPP $CPPFLAGS'
14966 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14967 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14968 cross_compiling=$ac_cv_prog_cc_cross
14969
14970     
14971 fi
14972
14973   fi
14974   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
14975
14976   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
14977     for ac_func in sqrtl
14978 do
14979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14980 echo "configure:14981: checking for $ac_func" >&5
14981 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14982   echo $ac_n "(cached) $ac_c" 1>&6
14983 else
14984   cat > conftest.$ac_ext <<EOF
14985 #line 14986 "configure"
14986 #include "confdefs.h"
14987 /* System header to define __stub macros and hopefully few prototypes,
14988     which can conflict with char $ac_func(); below.  */
14989 #include <assert.h>
14990 /* Override any gcc2 internal prototype to avoid an error.  */
14991 /* We use char because int might match the return type of a gcc2
14992     builtin and then its argument prototype would still apply.  */
14993 char $ac_func();
14994
14995 int main() {
14996
14997 /* The GNU C library defines this for functions which it implements
14998     to always fail with ENOSYS.  Some functions are actually named
14999     something starting with __ and the normal name is an alias.  */
15000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15001 choke me
15002 #else
15003 $ac_func();
15004 #endif
15005
15006 ; return 0; }
15007 EOF
15008 if { (eval echo configure:15009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15009   rm -rf conftest*
15010   eval "ac_cv_func_$ac_func=yes"
15011 else
15012   echo "configure: failed program was:" >&5
15013   cat conftest.$ac_ext >&5
15014   rm -rf conftest*
15015   eval "ac_cv_func_$ac_func=no"
15016 fi
15017 rm -f conftest*
15018 fi
15019
15020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15021   echo "$ac_t""yes" 1>&6
15022     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15023   cat >> confdefs.h <<EOF
15024 #define $ac_tr_func 1
15025 EOF
15026  
15027 else
15028   echo "$ac_t""no" 1>&6
15029 fi
15030 done
15031     
15032   else
15033     
15034   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
15035 echo "configure:15036: checking for _sqrtl declaration" >&5
15036   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
15037     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
15038   echo $ac_n "(cached) $ac_c" 1>&6
15039 else
15040   
15041       
15042       ac_ext=C
15043 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15044 ac_cpp='$CXXCPP $CPPFLAGS'
15045 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15046 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15047 cross_compiling=$ac_cv_prog_cxx_cross
15048
15049       cat > conftest.$ac_ext <<EOF
15050 #line 15051 "configure"
15051 #include "confdefs.h"
15052 #include <math.h>
15053                       #ifdef HAVE_IEEEFP_H
15054                       #include <ieeefp.h>
15055                       #endif
15056                      
15057 int main() {
15058  _sqrtl(0);
15059 ; return 0; }
15060 EOF
15061 if { (eval echo configure:15062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15062   rm -rf conftest*
15063   glibcpp_cv_func__sqrtl_use=yes
15064 else
15065   echo "configure: failed program was:" >&5
15066   cat conftest.$ac_ext >&5
15067   rm -rf conftest*
15068   glibcpp_cv_func__sqrtl_use=no
15069 fi
15070 rm -f conftest*
15071       ac_ext=c
15072 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15073 ac_cpp='$CPP $CPPFLAGS'
15074 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15075 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15076 cross_compiling=$ac_cv_prog_cc_cross
15077
15078     
15079 fi
15080
15081   fi
15082   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
15083
15084     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
15085       for ac_func in _sqrtl
15086 do
15087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15088 echo "configure:15089: checking for $ac_func" >&5
15089 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15090   echo $ac_n "(cached) $ac_c" 1>&6
15091 else
15092   cat > conftest.$ac_ext <<EOF
15093 #line 15094 "configure"
15094 #include "confdefs.h"
15095 /* System header to define __stub macros and hopefully few prototypes,
15096     which can conflict with char $ac_func(); below.  */
15097 #include <assert.h>
15098 /* Override any gcc2 internal prototype to avoid an error.  */
15099 /* We use char because int might match the return type of a gcc2
15100     builtin and then its argument prototype would still apply.  */
15101 char $ac_func();
15102
15103 int main() {
15104
15105 /* The GNU C library defines this for functions which it implements
15106     to always fail with ENOSYS.  Some functions are actually named
15107     something starting with __ and the normal name is an alias.  */
15108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15109 choke me
15110 #else
15111 $ac_func();
15112 #endif
15113
15114 ; return 0; }
15115 EOF
15116 if { (eval echo configure:15117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15117   rm -rf conftest*
15118   eval "ac_cv_func_$ac_func=yes"
15119 else
15120   echo "configure: failed program was:" >&5
15121   cat conftest.$ac_ext >&5
15122   rm -rf conftest*
15123   eval "ac_cv_func_$ac_func=no"
15124 fi
15125 rm -f conftest*
15126 fi
15127
15128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15129   echo "$ac_t""yes" 1>&6
15130     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15131   cat >> confdefs.h <<EOF
15132 #define $ac_tr_func 1
15133 EOF
15134  
15135 else
15136   echo "$ac_t""no" 1>&6
15137 fi
15138 done
15139     
15140     fi
15141   fi
15142
15143   
15144   
15145   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
15146 echo "configure:15147: checking for sincosl declaration" >&5
15147   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
15148     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
15149   echo $ac_n "(cached) $ac_c" 1>&6
15150 else
15151   
15152       
15153       ac_ext=C
15154 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15155 ac_cpp='$CXXCPP $CPPFLAGS'
15156 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15157 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15158 cross_compiling=$ac_cv_prog_cxx_cross
15159
15160       cat > conftest.$ac_ext <<EOF
15161 #line 15162 "configure"
15162 #include "confdefs.h"
15163 #include <math.h>
15164 int main() {
15165  sincosl(0, 0, 0);
15166 ; return 0; }
15167 EOF
15168 if { (eval echo configure:15169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15169   rm -rf conftest*
15170   glibcpp_cv_func_sincosl_use=yes
15171 else
15172   echo "configure: failed program was:" >&5
15173   cat conftest.$ac_ext >&5
15174   rm -rf conftest*
15175   glibcpp_cv_func_sincosl_use=no
15176 fi
15177 rm -f conftest*
15178       ac_ext=c
15179 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15180 ac_cpp='$CPP $CPPFLAGS'
15181 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15182 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15183 cross_compiling=$ac_cv_prog_cc_cross
15184
15185     
15186 fi
15187
15188   fi
15189   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
15190
15191   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
15192     for ac_func in sincosl
15193 do
15194 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15195 echo "configure:15196: checking for $ac_func" >&5
15196 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15197   echo $ac_n "(cached) $ac_c" 1>&6
15198 else
15199   cat > conftest.$ac_ext <<EOF
15200 #line 15201 "configure"
15201 #include "confdefs.h"
15202 /* System header to define __stub macros and hopefully few prototypes,
15203     which can conflict with char $ac_func(); below.  */
15204 #include <assert.h>
15205 /* Override any gcc2 internal prototype to avoid an error.  */
15206 /* We use char because int might match the return type of a gcc2
15207     builtin and then its argument prototype would still apply.  */
15208 char $ac_func();
15209
15210 int main() {
15211
15212 /* The GNU C library defines this for functions which it implements
15213     to always fail with ENOSYS.  Some functions are actually named
15214     something starting with __ and the normal name is an alias.  */
15215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15216 choke me
15217 #else
15218 $ac_func();
15219 #endif
15220
15221 ; return 0; }
15222 EOF
15223 if { (eval echo configure:15224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15224   rm -rf conftest*
15225   eval "ac_cv_func_$ac_func=yes"
15226 else
15227   echo "configure: failed program was:" >&5
15228   cat conftest.$ac_ext >&5
15229   rm -rf conftest*
15230   eval "ac_cv_func_$ac_func=no"
15231 fi
15232 rm -f conftest*
15233 fi
15234
15235 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15236   echo "$ac_t""yes" 1>&6
15237     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15238   cat >> confdefs.h <<EOF
15239 #define $ac_tr_func 1
15240 EOF
15241  
15242 else
15243   echo "$ac_t""no" 1>&6
15244 fi
15245 done
15246     
15247   else
15248     
15249   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
15250 echo "configure:15251: checking for _sincosl declaration" >&5
15251   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
15252     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
15253   echo $ac_n "(cached) $ac_c" 1>&6
15254 else
15255   
15256       
15257       ac_ext=C
15258 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15259 ac_cpp='$CXXCPP $CPPFLAGS'
15260 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15261 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15262 cross_compiling=$ac_cv_prog_cxx_cross
15263
15264       cat > conftest.$ac_ext <<EOF
15265 #line 15266 "configure"
15266 #include "confdefs.h"
15267 #include <math.h>
15268 int main() {
15269  _sincosl(0, 0, 0);
15270 ; return 0; }
15271 EOF
15272 if { (eval echo configure:15273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15273   rm -rf conftest*
15274   glibcpp_cv_func__sincosl_use=yes
15275 else
15276   echo "configure: failed program was:" >&5
15277   cat conftest.$ac_ext >&5
15278   rm -rf conftest*
15279   glibcpp_cv_func__sincosl_use=no
15280 fi
15281 rm -f conftest*
15282       ac_ext=c
15283 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15284 ac_cpp='$CPP $CPPFLAGS'
15285 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15286 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15287 cross_compiling=$ac_cv_prog_cc_cross
15288
15289     
15290 fi
15291
15292   fi
15293   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
15294
15295     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
15296       for ac_func in _sincosl
15297 do
15298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15299 echo "configure:15300: checking for $ac_func" >&5
15300 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15301   echo $ac_n "(cached) $ac_c" 1>&6
15302 else
15303   cat > conftest.$ac_ext <<EOF
15304 #line 15305 "configure"
15305 #include "confdefs.h"
15306 /* System header to define __stub macros and hopefully few prototypes,
15307     which can conflict with char $ac_func(); below.  */
15308 #include <assert.h>
15309 /* Override any gcc2 internal prototype to avoid an error.  */
15310 /* We use char because int might match the return type of a gcc2
15311     builtin and then its argument prototype would still apply.  */
15312 char $ac_func();
15313
15314 int main() {
15315
15316 /* The GNU C library defines this for functions which it implements
15317     to always fail with ENOSYS.  Some functions are actually named
15318     something starting with __ and the normal name is an alias.  */
15319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15320 choke me
15321 #else
15322 $ac_func();
15323 #endif
15324
15325 ; return 0; }
15326 EOF
15327 if { (eval echo configure:15328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15328   rm -rf conftest*
15329   eval "ac_cv_func_$ac_func=yes"
15330 else
15331   echo "configure: failed program was:" >&5
15332   cat conftest.$ac_ext >&5
15333   rm -rf conftest*
15334   eval "ac_cv_func_$ac_func=no"
15335 fi
15336 rm -f conftest*
15337 fi
15338
15339 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15340   echo "$ac_t""yes" 1>&6
15341     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15342   cat >> confdefs.h <<EOF
15343 #define $ac_tr_func 1
15344 EOF
15345  
15346 else
15347   echo "$ac_t""no" 1>&6
15348 fi
15349 done
15350     
15351     fi
15352   fi
15353
15354   
15355   
15356   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
15357 echo "configure:15358: checking for finitel declaration" >&5
15358   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
15359     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
15360   echo $ac_n "(cached) $ac_c" 1>&6
15361 else
15362   
15363       
15364       ac_ext=C
15365 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15366 ac_cpp='$CXXCPP $CPPFLAGS'
15367 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15368 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15369 cross_compiling=$ac_cv_prog_cxx_cross
15370
15371       cat > conftest.$ac_ext <<EOF
15372 #line 15373 "configure"
15373 #include "confdefs.h"
15374 #include <math.h>
15375                       #ifdef HAVE_IEEEFP_H
15376                       #include <ieeefp.h>
15377                       #endif
15378                      
15379 int main() {
15380  finitel(0);
15381 ; return 0; }
15382 EOF
15383 if { (eval echo configure:15384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15384   rm -rf conftest*
15385   glibcpp_cv_func_finitel_use=yes
15386 else
15387   echo "configure: failed program was:" >&5
15388   cat conftest.$ac_ext >&5
15389   rm -rf conftest*
15390   glibcpp_cv_func_finitel_use=no
15391 fi
15392 rm -f conftest*
15393       ac_ext=c
15394 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15395 ac_cpp='$CPP $CPPFLAGS'
15396 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15397 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15398 cross_compiling=$ac_cv_prog_cc_cross
15399
15400     
15401 fi
15402
15403   fi
15404   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
15405
15406   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
15407     for ac_func in finitel
15408 do
15409 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15410 echo "configure:15411: checking for $ac_func" >&5
15411 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15412   echo $ac_n "(cached) $ac_c" 1>&6
15413 else
15414   cat > conftest.$ac_ext <<EOF
15415 #line 15416 "configure"
15416 #include "confdefs.h"
15417 /* System header to define __stub macros and hopefully few prototypes,
15418     which can conflict with char $ac_func(); below.  */
15419 #include <assert.h>
15420 /* Override any gcc2 internal prototype to avoid an error.  */
15421 /* We use char because int might match the return type of a gcc2
15422     builtin and then its argument prototype would still apply.  */
15423 char $ac_func();
15424
15425 int main() {
15426
15427 /* The GNU C library defines this for functions which it implements
15428     to always fail with ENOSYS.  Some functions are actually named
15429     something starting with __ and the normal name is an alias.  */
15430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15431 choke me
15432 #else
15433 $ac_func();
15434 #endif
15435
15436 ; return 0; }
15437 EOF
15438 if { (eval echo configure:15439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15439   rm -rf conftest*
15440   eval "ac_cv_func_$ac_func=yes"
15441 else
15442   echo "configure: failed program was:" >&5
15443   cat conftest.$ac_ext >&5
15444   rm -rf conftest*
15445   eval "ac_cv_func_$ac_func=no"
15446 fi
15447 rm -f conftest*
15448 fi
15449
15450 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15451   echo "$ac_t""yes" 1>&6
15452     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15453   cat >> confdefs.h <<EOF
15454 #define $ac_tr_func 1
15455 EOF
15456  
15457 else
15458   echo "$ac_t""no" 1>&6
15459 fi
15460 done
15461     
15462   else
15463     
15464   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
15465 echo "configure:15466: checking for _finitel declaration" >&5
15466   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
15467     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
15468   echo $ac_n "(cached) $ac_c" 1>&6
15469 else
15470   
15471       
15472       ac_ext=C
15473 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15474 ac_cpp='$CXXCPP $CPPFLAGS'
15475 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15476 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15477 cross_compiling=$ac_cv_prog_cxx_cross
15478
15479       cat > conftest.$ac_ext <<EOF
15480 #line 15481 "configure"
15481 #include "confdefs.h"
15482 #include <math.h>
15483                       #ifdef HAVE_IEEEFP_H
15484                       #include <ieeefp.h>
15485                       #endif
15486                      
15487 int main() {
15488  _finitel(0);
15489 ; return 0; }
15490 EOF
15491 if { (eval echo configure:15492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15492   rm -rf conftest*
15493   glibcpp_cv_func__finitel_use=yes
15494 else
15495   echo "configure: failed program was:" >&5
15496   cat conftest.$ac_ext >&5
15497   rm -rf conftest*
15498   glibcpp_cv_func__finitel_use=no
15499 fi
15500 rm -f conftest*
15501       ac_ext=c
15502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15503 ac_cpp='$CPP $CPPFLAGS'
15504 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15505 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15506 cross_compiling=$ac_cv_prog_cc_cross
15507
15508     
15509 fi
15510
15511   fi
15512   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
15513
15514     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
15515       for ac_func in _finitel
15516 do
15517 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15518 echo "configure:15519: checking for $ac_func" >&5
15519 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15520   echo $ac_n "(cached) $ac_c" 1>&6
15521 else
15522   cat > conftest.$ac_ext <<EOF
15523 #line 15524 "configure"
15524 #include "confdefs.h"
15525 /* System header to define __stub macros and hopefully few prototypes,
15526     which can conflict with char $ac_func(); below.  */
15527 #include <assert.h>
15528 /* Override any gcc2 internal prototype to avoid an error.  */
15529 /* We use char because int might match the return type of a gcc2
15530     builtin and then its argument prototype would still apply.  */
15531 char $ac_func();
15532
15533 int main() {
15534
15535 /* The GNU C library defines this for functions which it implements
15536     to always fail with ENOSYS.  Some functions are actually named
15537     something starting with __ and the normal name is an alias.  */
15538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15539 choke me
15540 #else
15541 $ac_func();
15542 #endif
15543
15544 ; return 0; }
15545 EOF
15546 if { (eval echo configure:15547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15547   rm -rf conftest*
15548   eval "ac_cv_func_$ac_func=yes"
15549 else
15550   echo "configure: failed program was:" >&5
15551   cat conftest.$ac_ext >&5
15552   rm -rf conftest*
15553   eval "ac_cv_func_$ac_func=no"
15554 fi
15555 rm -f conftest*
15556 fi
15557
15558 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15559   echo "$ac_t""yes" 1>&6
15560     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15561   cat >> confdefs.h <<EOF
15562 #define $ac_tr_func 1
15563 EOF
15564  
15565 else
15566   echo "$ac_t""no" 1>&6
15567 fi
15568 done
15569     
15570     fi
15571   fi
15572
15573
15574         
15575     
15576   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
15577 echo "configure:15578: checking for _float trig functions" >&5
15578   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
15579   echo $ac_n "(cached) $ac_c" 1>&6
15580 else
15581   
15582     
15583     ac_ext=C
15584 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15585 ac_cpp='$CXXCPP $CPPFLAGS'
15586 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15587 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15588 cross_compiling=$ac_cv_prog_cxx_cross
15589
15590     cat > conftest.$ac_ext <<EOF
15591 #line 15592 "configure"
15592 #include "confdefs.h"
15593 #include <math.h>
15594 int main() {
15595  `for x in _acosf _asinf _atanf \
15596                                           _cosf _sinf _tanf \
15597                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
15598 ; return 0; }
15599 EOF
15600 if { (eval echo configure:15601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15601   rm -rf conftest*
15602   glibcpp_cv_func__float_trig_use=yes
15603 else
15604   echo "configure: failed program was:" >&5
15605   cat conftest.$ac_ext >&5
15606   rm -rf conftest*
15607   glibcpp_cv_func__float_trig_use=no
15608 fi
15609 rm -f conftest*
15610     ac_ext=c
15611 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15612 ac_cpp='$CPP $CPPFLAGS'
15613 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15614 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15615 cross_compiling=$ac_cv_prog_cc_cross
15616
15617 fi
15618
15619   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
15620   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
15621     for ac_func in _acosf _asinf _atanf \
15622                                           _cosf _sinf _tanf \
15623                                           _coshf _sinhf _tanhf
15624 do
15625 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15626 echo "configure:15627: checking for $ac_func" >&5
15627 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15628   echo $ac_n "(cached) $ac_c" 1>&6
15629 else
15630   cat > conftest.$ac_ext <<EOF
15631 #line 15632 "configure"
15632 #include "confdefs.h"
15633 /* System header to define __stub macros and hopefully few prototypes,
15634     which can conflict with char $ac_func(); below.  */
15635 #include <assert.h>
15636 /* Override any gcc2 internal prototype to avoid an error.  */
15637 /* We use char because int might match the return type of a gcc2
15638     builtin and then its argument prototype would still apply.  */
15639 char $ac_func();
15640
15641 int main() {
15642
15643 /* The GNU C library defines this for functions which it implements
15644     to always fail with ENOSYS.  Some functions are actually named
15645     something starting with __ and the normal name is an alias.  */
15646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15647 choke me
15648 #else
15649 $ac_func();
15650 #endif
15651
15652 ; return 0; }
15653 EOF
15654 if { (eval echo configure:15655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15655   rm -rf conftest*
15656   eval "ac_cv_func_$ac_func=yes"
15657 else
15658   echo "configure: failed program was:" >&5
15659   cat conftest.$ac_ext >&5
15660   rm -rf conftest*
15661   eval "ac_cv_func_$ac_func=no"
15662 fi
15663 rm -f conftest*
15664 fi
15665
15666 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15667   echo "$ac_t""yes" 1>&6
15668     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15669   cat >> confdefs.h <<EOF
15670 #define $ac_tr_func 1
15671 EOF
15672  
15673 else
15674   echo "$ac_t""no" 1>&6
15675 fi
15676 done
15677
15678   fi
15679
15680   
15681   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
15682 echo "configure:15683: checking for _float round functions" >&5
15683   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
15684   echo $ac_n "(cached) $ac_c" 1>&6
15685 else
15686   
15687     
15688     ac_ext=C
15689 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15690 ac_cpp='$CXXCPP $CPPFLAGS'
15691 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15692 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15693 cross_compiling=$ac_cv_prog_cxx_cross
15694
15695     cat > conftest.$ac_ext <<EOF
15696 #line 15697 "configure"
15697 #include "confdefs.h"
15698 #include <math.h>
15699 int main() {
15700  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
15701 ; return 0; }
15702 EOF
15703 if { (eval echo configure:15704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15704   rm -rf conftest*
15705   glibcpp_cv_func__float_round_use=yes
15706 else
15707   echo "configure: failed program was:" >&5
15708   cat conftest.$ac_ext >&5
15709   rm -rf conftest*
15710   glibcpp_cv_func__float_round_use=no
15711 fi
15712 rm -f conftest*
15713     ac_ext=c
15714 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15715 ac_cpp='$CPP $CPPFLAGS'
15716 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15717 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15718 cross_compiling=$ac_cv_prog_cc_cross
15719
15720 fi
15721
15722   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
15723   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
15724     for ac_func in _ceilf _floorf
15725 do
15726 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15727 echo "configure:15728: checking for $ac_func" >&5
15728 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15729   echo $ac_n "(cached) $ac_c" 1>&6
15730 else
15731   cat > conftest.$ac_ext <<EOF
15732 #line 15733 "configure"
15733 #include "confdefs.h"
15734 /* System header to define __stub macros and hopefully few prototypes,
15735     which can conflict with char $ac_func(); below.  */
15736 #include <assert.h>
15737 /* Override any gcc2 internal prototype to avoid an error.  */
15738 /* We use char because int might match the return type of a gcc2
15739     builtin and then its argument prototype would still apply.  */
15740 char $ac_func();
15741
15742 int main() {
15743
15744 /* The GNU C library defines this for functions which it implements
15745     to always fail with ENOSYS.  Some functions are actually named
15746     something starting with __ and the normal name is an alias.  */
15747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15748 choke me
15749 #else
15750 $ac_func();
15751 #endif
15752
15753 ; return 0; }
15754 EOF
15755 if { (eval echo configure:15756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15756   rm -rf conftest*
15757   eval "ac_cv_func_$ac_func=yes"
15758 else
15759   echo "configure: failed program was:" >&5
15760   cat conftest.$ac_ext >&5
15761   rm -rf conftest*
15762   eval "ac_cv_func_$ac_func=no"
15763 fi
15764 rm -f conftest*
15765 fi
15766
15767 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15768   echo "$ac_t""yes" 1>&6
15769     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15770   cat >> confdefs.h <<EOF
15771 #define $ac_tr_func 1
15772 EOF
15773  
15774 else
15775   echo "$ac_t""no" 1>&6
15776 fi
15777 done
15778
15779   fi
15780
15781
15782     
15783   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
15784 echo "configure:15785: checking for _long double trig functions" >&5
15785   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
15786   echo $ac_n "(cached) $ac_c" 1>&6
15787 else
15788   
15789     
15790     ac_ext=C
15791 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15792 ac_cpp='$CXXCPP $CPPFLAGS'
15793 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15794 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15795 cross_compiling=$ac_cv_prog_cxx_cross
15796
15797     cat > conftest.$ac_ext <<EOF
15798 #line 15799 "configure"
15799 #include "confdefs.h"
15800 #include <math.h>
15801 int main() {
15802  `for x in _acosl _asinl _atanl \
15803                                           _cosl _sinl _tanl \
15804                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
15805 ; return 0; }
15806 EOF
15807 if { (eval echo configure:15808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15808   rm -rf conftest*
15809   glibcpp_cv_func__long_double_trig_use=yes
15810 else
15811   echo "configure: failed program was:" >&5
15812   cat conftest.$ac_ext >&5
15813   rm -rf conftest*
15814   glibcpp_cv_func__long_double_trig_use=no
15815 fi
15816 rm -f conftest*
15817     ac_ext=c
15818 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15819 ac_cpp='$CPP $CPPFLAGS'
15820 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15821 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15822 cross_compiling=$ac_cv_prog_cc_cross
15823
15824 fi
15825
15826   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
15827   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
15828     for ac_func in _acosl _asinl _atanl \
15829                                           _cosl _sinl _tanl \
15830                                           _coshl _sinhl _tanhl
15831 do
15832 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15833 echo "configure:15834: checking for $ac_func" >&5
15834 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15835   echo $ac_n "(cached) $ac_c" 1>&6
15836 else
15837   cat > conftest.$ac_ext <<EOF
15838 #line 15839 "configure"
15839 #include "confdefs.h"
15840 /* System header to define __stub macros and hopefully few prototypes,
15841     which can conflict with char $ac_func(); below.  */
15842 #include <assert.h>
15843 /* Override any gcc2 internal prototype to avoid an error.  */
15844 /* We use char because int might match the return type of a gcc2
15845     builtin and then its argument prototype would still apply.  */
15846 char $ac_func();
15847
15848 int main() {
15849
15850 /* The GNU C library defines this for functions which it implements
15851     to always fail with ENOSYS.  Some functions are actually named
15852     something starting with __ and the normal name is an alias.  */
15853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15854 choke me
15855 #else
15856 $ac_func();
15857 #endif
15858
15859 ; return 0; }
15860 EOF
15861 if { (eval echo configure:15862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15862   rm -rf conftest*
15863   eval "ac_cv_func_$ac_func=yes"
15864 else
15865   echo "configure: failed program was:" >&5
15866   cat conftest.$ac_ext >&5
15867   rm -rf conftest*
15868   eval "ac_cv_func_$ac_func=no"
15869 fi
15870 rm -f conftest*
15871 fi
15872
15873 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15874   echo "$ac_t""yes" 1>&6
15875     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15876   cat >> confdefs.h <<EOF
15877 #define $ac_tr_func 1
15878 EOF
15879  
15880 else
15881   echo "$ac_t""no" 1>&6
15882 fi
15883 done
15884
15885   fi
15886
15887   
15888   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
15889 echo "configure:15890: checking for _long double round functions" >&5
15890   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
15891   echo $ac_n "(cached) $ac_c" 1>&6
15892 else
15893   
15894     
15895     ac_ext=C
15896 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15897 ac_cpp='$CXXCPP $CPPFLAGS'
15898 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15899 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15900 cross_compiling=$ac_cv_prog_cxx_cross
15901
15902     cat > conftest.$ac_ext <<EOF
15903 #line 15904 "configure"
15904 #include "confdefs.h"
15905 #include <math.h>
15906 int main() {
15907  `for x in _ceill _floorl; do echo "$x (0);"; done` 
15908 ; return 0; }
15909 EOF
15910 if { (eval echo configure:15911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15911   rm -rf conftest*
15912   glibcpp_cv_func__long_double_round_use=yes
15913 else
15914   echo "configure: failed program was:" >&5
15915   cat conftest.$ac_ext >&5
15916   rm -rf conftest*
15917   glibcpp_cv_func__long_double_round_use=no
15918 fi
15919 rm -f conftest*
15920     ac_ext=c
15921 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15922 ac_cpp='$CPP $CPPFLAGS'
15923 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15924 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15925 cross_compiling=$ac_cv_prog_cc_cross
15926
15927 fi
15928
15929   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
15930   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
15931     for ac_func in _ceill _floorl
15932 do
15933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15934 echo "configure:15935: checking for $ac_func" >&5
15935 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15936   echo $ac_n "(cached) $ac_c" 1>&6
15937 else
15938   cat > conftest.$ac_ext <<EOF
15939 #line 15940 "configure"
15940 #include "confdefs.h"
15941 /* System header to define __stub macros and hopefully few prototypes,
15942     which can conflict with char $ac_func(); below.  */
15943 #include <assert.h>
15944 /* Override any gcc2 internal prototype to avoid an error.  */
15945 /* We use char because int might match the return type of a gcc2
15946     builtin and then its argument prototype would still apply.  */
15947 char $ac_func();
15948
15949 int main() {
15950
15951 /* The GNU C library defines this for functions which it implements
15952     to always fail with ENOSYS.  Some functions are actually named
15953     something starting with __ and the normal name is an alias.  */
15954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15955 choke me
15956 #else
15957 $ac_func();
15958 #endif
15959
15960 ; return 0; }
15961 EOF
15962 if { (eval echo configure:15963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15963   rm -rf conftest*
15964   eval "ac_cv_func_$ac_func=yes"
15965 else
15966   echo "configure: failed program was:" >&5
15967   cat conftest.$ac_ext >&5
15968   rm -rf conftest*
15969   eval "ac_cv_func_$ac_func=no"
15970 fi
15971 rm -f conftest*
15972 fi
15973
15974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15975   echo "$ac_t""yes" 1>&6
15976     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15977   cat >> confdefs.h <<EOF
15978 #define $ac_tr_func 1
15979 EOF
15980  
15981 else
15982   echo "$ac_t""no" 1>&6
15983 fi
15984 done
15985
15986   fi
15987
15988
15989   LIBS="$ac_save_LIBS"
15990   CXXFLAGS="$ac_save_CXXFLAGS"
15991
15992   
15993     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
15994 echo "configure:15995: checking for main in -lm" >&5
15995 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
15996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15997   echo $ac_n "(cached) $ac_c" 1>&6
15998 else
15999   ac_save_LIBS="$LIBS"
16000 LIBS="-lm  $LIBS"
16001 cat > conftest.$ac_ext <<EOF
16002 #line 16003 "configure"
16003 #include "confdefs.h"
16004
16005 int main() {
16006 main()
16007 ; return 0; }
16008 EOF
16009 if { (eval echo configure:16010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16010   rm -rf conftest*
16011   eval "ac_cv_lib_$ac_lib_var=yes"
16012 else
16013   echo "configure: failed program was:" >&5
16014   cat conftest.$ac_ext >&5
16015   rm -rf conftest*
16016   eval "ac_cv_lib_$ac_lib_var=no"
16017 fi
16018 rm -f conftest*
16019 LIBS="$ac_save_LIBS"
16020
16021 fi
16022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16023   echo "$ac_t""yes" 1>&6
16024     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
16025     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
16026   cat >> confdefs.h <<EOF
16027 #define $ac_tr_lib 1
16028 EOF
16029
16030   LIBS="-lm $LIBS"
16031
16032 else
16033   echo "$ac_t""no" 1>&6
16034 fi
16035
16036   for ac_func in nan copysignf
16037 do
16038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16039 echo "configure:16040: checking for $ac_func" >&5
16040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16041   echo $ac_n "(cached) $ac_c" 1>&6
16042 else
16043   cat > conftest.$ac_ext <<EOF
16044 #line 16045 "configure"
16045 #include "confdefs.h"
16046 /* System header to define __stub macros and hopefully few prototypes,
16047     which can conflict with char $ac_func(); below.  */
16048 #include <assert.h>
16049 /* Override any gcc2 internal prototype to avoid an error.  */
16050 /* We use char because int might match the return type of a gcc2
16051     builtin and then its argument prototype would still apply.  */
16052 char $ac_func();
16053
16054 int main() {
16055
16056 /* The GNU C library defines this for functions which it implements
16057     to always fail with ENOSYS.  Some functions are actually named
16058     something starting with __ and the normal name is an alias.  */
16059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16060 choke me
16061 #else
16062 $ac_func();
16063 #endif
16064
16065 ; return 0; }
16066 EOF
16067 if { (eval echo configure:16068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16068   rm -rf conftest*
16069   eval "ac_cv_func_$ac_func=yes"
16070 else
16071   echo "configure: failed program was:" >&5
16072   cat conftest.$ac_ext >&5
16073   rm -rf conftest*
16074   eval "ac_cv_func_$ac_func=no"
16075 fi
16076 rm -f conftest*
16077 fi
16078
16079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16080   echo "$ac_t""yes" 1>&6
16081     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16082   cat >> confdefs.h <<EOF
16083 #define $ac_tr_func 1
16084 EOF
16085  
16086 else
16087   echo "$ac_t""no" 1>&6
16088 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
16089 fi
16090 done
16091
16092
16093
16094           USE_COMPLEX_LONG_DOUBLE=no
16095   if test x$ac_cv_func_copysignl = x"yes"; then
16096     USE_COMPLEX_LONG_DOUBLE=yes
16097     for ac_func in signbitl
16098 do
16099 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16100 echo "configure:16101: checking for $ac_func" >&5
16101 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16102   echo $ac_n "(cached) $ac_c" 1>&6
16103 else
16104   cat > conftest.$ac_ext <<EOF
16105 #line 16106 "configure"
16106 #include "confdefs.h"
16107 /* System header to define __stub macros and hopefully few prototypes,
16108     which can conflict with char $ac_func(); below.  */
16109 #include <assert.h>
16110 /* Override any gcc2 internal prototype to avoid an error.  */
16111 /* We use char because int might match the return type of a gcc2
16112     builtin and then its argument prototype would still apply.  */
16113 char $ac_func();
16114
16115 int main() {
16116
16117 /* The GNU C library defines this for functions which it implements
16118     to always fail with ENOSYS.  Some functions are actually named
16119     something starting with __ and the normal name is an alias.  */
16120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16121 choke me
16122 #else
16123 $ac_func();
16124 #endif
16125
16126 ; return 0; }
16127 EOF
16128 if { (eval echo configure:16129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16129   rm -rf conftest*
16130   eval "ac_cv_func_$ac_func=yes"
16131 else
16132   echo "configure: failed program was:" >&5
16133   cat conftest.$ac_ext >&5
16134   rm -rf conftest*
16135   eval "ac_cv_func_$ac_func=no"
16136 fi
16137 rm -f conftest*
16138 fi
16139
16140 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16141   echo "$ac_t""yes" 1>&6
16142     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16143   cat >> confdefs.h <<EOF
16144 #define $ac_tr_func 1
16145 EOF
16146  
16147 else
16148   echo "$ac_t""no" 1>&6
16149 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
16150 fi
16151 done
16152
16153
16154   fi
16155
16156   
16157
16158   
16159
16160       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
16161 echo "configure:16162: checking for mbstate_t" >&5
16162   cat > conftest.$ac_ext <<EOF
16163 #line 16164 "configure"
16164 #include "confdefs.h"
16165 #include <wchar.h>
16166 int main() {
16167 mbstate_t teststate;
16168 ; return 0; }
16169 EOF
16170 if { (eval echo configure:16171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16171   rm -rf conftest*
16172   have_mbstate_t=yes
16173 else
16174   echo "configure: failed program was:" >&5
16175   cat conftest.$ac_ext >&5
16176   rm -rf conftest*
16177   have_mbstate_t=no
16178 fi
16179 rm -f conftest*
16180   echo "$ac_t""$have_mbstate_t" 1>&6
16181   if test x"$have_mbstate_t" = xyes; then
16182     cat >> confdefs.h <<\EOF
16183 #define HAVE_MBSTATE_T 1
16184 EOF
16185
16186   fi
16187
16188     for ac_hdr in wchar.h
16189 do
16190 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16191 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16192 echo "configure:16193: checking for $ac_hdr" >&5
16193 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16194   echo $ac_n "(cached) $ac_c" 1>&6
16195 else
16196   cat > conftest.$ac_ext <<EOF
16197 #line 16198 "configure"
16198 #include "confdefs.h"
16199 #include <$ac_hdr>
16200 EOF
16201 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16202 { (eval echo configure:16203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16203 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16204 if test -z "$ac_err"; then
16205   rm -rf conftest*
16206   eval "ac_cv_header_$ac_safe=yes"
16207 else
16208   echo "$ac_err" >&5
16209   echo "configure: failed program was:" >&5
16210   cat conftest.$ac_ext >&5
16211   rm -rf conftest*
16212   eval "ac_cv_header_$ac_safe=no"
16213 fi
16214 rm -f conftest*
16215 fi
16216 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16217   echo "$ac_t""yes" 1>&6
16218     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16219   cat >> confdefs.h <<EOF
16220 #define $ac_tr_hdr 1
16221 EOF
16222  ac_has_wchar_h=yes
16223 else
16224   echo "$ac_t""no" 1>&6
16225 ac_has_wchar_h=no
16226 fi
16227 done
16228
16229   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
16230 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
16231 echo "configure:16232: checking for wctype.h" >&5
16232 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16233   echo $ac_n "(cached) $ac_c" 1>&6
16234 else
16235   cat > conftest.$ac_ext <<EOF
16236 #line 16237 "configure"
16237 #include "confdefs.h"
16238 #include <wctype.h>
16239 EOF
16240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16241 { (eval echo configure:16242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16243 if test -z "$ac_err"; then
16244   rm -rf conftest*
16245   eval "ac_cv_header_$ac_safe=yes"
16246 else
16247   echo "$ac_err" >&5
16248   echo "configure: failed program was:" >&5
16249   cat conftest.$ac_ext >&5
16250   rm -rf conftest*
16251   eval "ac_cv_header_$ac_safe=no"
16252 fi
16253 rm -f conftest*
16254 fi
16255 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16256   echo "$ac_t""yes" 1>&6
16257   ac_has_wctype_h=yes
16258 else
16259   echo "$ac_t""no" 1>&6
16260 ac_has_wctype_h=no
16261 fi
16262
16263   
16264     if test x"$ac_has_wchar_h" = xyes &&
16265      test x"$ac_has_wctype_h" = xyes &&
16266      test x"$enable_c_mbchar" != xno; then
16267       
16268             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
16269 echo "configure:16270: checking for WCHAR_MIN and WCHAR_MAX" >&5
16270     cat > conftest.$ac_ext <<EOF
16271 #line 16272 "configure"
16272 #include "confdefs.h"
16273 #include <wchar.h>
16274 int main() {
16275 int i = WCHAR_MIN; int j = WCHAR_MAX;
16276 ; return 0; }
16277 EOF
16278 if { (eval echo configure:16279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16279   rm -rf conftest*
16280   has_wchar_minmax=yes
16281 else
16282   echo "configure: failed program was:" >&5
16283   cat conftest.$ac_ext >&5
16284   rm -rf conftest*
16285   has_wchar_minmax=no
16286 fi
16287 rm -f conftest*
16288     echo "$ac_t""$has_wchar_minmax" 1>&6
16289     
16290             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
16291 echo "configure:16292: checking for WEOF" >&5
16292     cat > conftest.$ac_ext <<EOF
16293 #line 16294 "configure"
16294 #include "confdefs.h"
16295
16296       #include <wchar.h>
16297       #include <stddef.h>
16298 int main() {
16299 wint_t i = WEOF;
16300 ; return 0; }
16301 EOF
16302 if { (eval echo configure:16303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16303   rm -rf conftest*
16304   has_weof=yes
16305 else
16306   echo "configure: failed program was:" >&5
16307   cat conftest.$ac_ext >&5
16308   rm -rf conftest*
16309   has_weof=no
16310 fi
16311 rm -f conftest*
16312     echo "$ac_t""$has_weof" 1>&6
16313   
16314         ac_wfuncs=yes
16315     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
16316 do
16317 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16318 echo "configure:16319: checking for $ac_func" >&5
16319 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16320   echo $ac_n "(cached) $ac_c" 1>&6
16321 else
16322   cat > conftest.$ac_ext <<EOF
16323 #line 16324 "configure"
16324 #include "confdefs.h"
16325 /* System header to define __stub macros and hopefully few prototypes,
16326     which can conflict with char $ac_func(); below.  */
16327 #include <assert.h>
16328 /* Override any gcc2 internal prototype to avoid an error.  */
16329 /* We use char because int might match the return type of a gcc2
16330     builtin and then its argument prototype would still apply.  */
16331 char $ac_func();
16332
16333 int main() {
16334
16335 /* The GNU C library defines this for functions which it implements
16336     to always fail with ENOSYS.  Some functions are actually named
16337     something starting with __ and the normal name is an alias.  */
16338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16339 choke me
16340 #else
16341 $ac_func();
16342 #endif
16343
16344 ; return 0; }
16345 EOF
16346 if { (eval echo configure:16347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16347   rm -rf conftest*
16348   eval "ac_cv_func_$ac_func=yes"
16349 else
16350   echo "configure: failed program was:" >&5
16351   cat conftest.$ac_ext >&5
16352   rm -rf conftest*
16353   eval "ac_cv_func_$ac_func=no"
16354 fi
16355 rm -f conftest*
16356 fi
16357
16358 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16359   echo "$ac_t""yes" 1>&6
16360     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16361   cat >> confdefs.h <<EOF
16362 #define $ac_tr_func 1
16363 EOF
16364  
16365 else
16366   echo "$ac_t""no" 1>&6
16367 \
16368     ac_wfuncs=no
16369 fi
16370 done
16371
16372   
16373         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
16374     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
16375     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
16376     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
16377     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
16378     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
16379 do
16380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16381 echo "configure:16382: checking for $ac_func" >&5
16382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16383   echo $ac_n "(cached) $ac_c" 1>&6
16384 else
16385   cat > conftest.$ac_ext <<EOF
16386 #line 16387 "configure"
16387 #include "confdefs.h"
16388 /* System header to define __stub macros and hopefully few prototypes,
16389     which can conflict with char $ac_func(); below.  */
16390 #include <assert.h>
16391 /* Override any gcc2 internal prototype to avoid an error.  */
16392 /* We use char because int might match the return type of a gcc2
16393     builtin and then its argument prototype would still apply.  */
16394 char $ac_func();
16395
16396 int main() {
16397
16398 /* The GNU C library defines this for functions which it implements
16399     to always fail with ENOSYS.  Some functions are actually named
16400     something starting with __ and the normal name is an alias.  */
16401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16402 choke me
16403 #else
16404 $ac_func();
16405 #endif
16406
16407 ; return 0; }
16408 EOF
16409 if { (eval echo configure:16410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16410   rm -rf conftest*
16411   eval "ac_cv_func_$ac_func=yes"
16412 else
16413   echo "configure: failed program was:" >&5
16414   cat conftest.$ac_ext >&5
16415   rm -rf conftest*
16416   eval "ac_cv_func_$ac_func=no"
16417 fi
16418 rm -f conftest*
16419 fi
16420
16421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16422   echo "$ac_t""yes" 1>&6
16423     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16424   cat >> confdefs.h <<EOF
16425 #define $ac_tr_func 1
16426 EOF
16427  
16428 else
16429   echo "$ac_t""no" 1>&6
16430 \
16431     ac_wfuncs=no
16432 fi
16433 done
16434
16435
16436     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
16437 echo "configure:16438: checking for ISO C99 wchar_t support" >&5
16438     if test x"$has_weof" = xyes &&
16439        test x"$has_wchar_minmax" = xyes &&
16440        test x"$ac_wfuncs" = xyes; then
16441       ac_isoC99_wchar_t=yes
16442     else
16443       ac_isoC99_wchar_t=no
16444     fi
16445     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
16446   
16447             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
16448 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
16449 echo "configure:16450: checking for iconv.h" >&5
16450 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16451   echo $ac_n "(cached) $ac_c" 1>&6
16452 else
16453   cat > conftest.$ac_ext <<EOF
16454 #line 16455 "configure"
16455 #include "confdefs.h"
16456 #include <iconv.h>
16457 EOF
16458 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16459 { (eval echo configure:16460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16460 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16461 if test -z "$ac_err"; then
16462   rm -rf conftest*
16463   eval "ac_cv_header_$ac_safe=yes"
16464 else
16465   echo "$ac_err" >&5
16466   echo "configure: failed program was:" >&5
16467   cat conftest.$ac_ext >&5
16468   rm -rf conftest*
16469   eval "ac_cv_header_$ac_safe=no"
16470 fi
16471 rm -f conftest*
16472 fi
16473 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16474   echo "$ac_t""yes" 1>&6
16475   ac_has_iconv_h=yes
16476 else
16477   echo "$ac_t""no" 1>&6
16478 ac_has_iconv_h=no
16479 fi
16480
16481     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
16482 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
16483 echo "configure:16484: checking for langinfo.h" >&5
16484 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16485   echo $ac_n "(cached) $ac_c" 1>&6
16486 else
16487   cat > conftest.$ac_ext <<EOF
16488 #line 16489 "configure"
16489 #include "confdefs.h"
16490 #include <langinfo.h>
16491 EOF
16492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16493 { (eval echo configure:16494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16495 if test -z "$ac_err"; then
16496   rm -rf conftest*
16497   eval "ac_cv_header_$ac_safe=yes"
16498 else
16499   echo "$ac_err" >&5
16500   echo "configure: failed program was:" >&5
16501   cat conftest.$ac_ext >&5
16502   rm -rf conftest*
16503   eval "ac_cv_header_$ac_safe=no"
16504 fi
16505 rm -f conftest*
16506 fi
16507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16508   echo "$ac_t""yes" 1>&6
16509   ac_has_langinfo_h=yes
16510 else
16511   echo "$ac_t""no" 1>&6
16512 ac_has_langinfo_h=no
16513 fi
16514
16515
16516         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
16517 echo "configure:16518: checking for iconv in -liconv" >&5
16518 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
16519 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16520   echo $ac_n "(cached) $ac_c" 1>&6
16521 else
16522   ac_save_LIBS="$LIBS"
16523 LIBS="-liconv  $LIBS"
16524 cat > conftest.$ac_ext <<EOF
16525 #line 16526 "configure"
16526 #include "confdefs.h"
16527 /* Override any gcc2 internal prototype to avoid an error.  */
16528 /* We use char because int might match the return type of a gcc2
16529     builtin and then its argument prototype would still apply.  */
16530 char iconv();
16531
16532 int main() {
16533 iconv()
16534 ; return 0; }
16535 EOF
16536 if { (eval echo configure:16537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16537   rm -rf conftest*
16538   eval "ac_cv_lib_$ac_lib_var=yes"
16539 else
16540   echo "configure: failed program was:" >&5
16541   cat conftest.$ac_ext >&5
16542   rm -rf conftest*
16543   eval "ac_cv_lib_$ac_lib_var=no"
16544 fi
16545 rm -f conftest*
16546 LIBS="$ac_save_LIBS"
16547
16548 fi
16549 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16550   echo "$ac_t""yes" 1>&6
16551   libiconv="-liconv"
16552 else
16553   echo "$ac_t""no" 1>&6
16554 fi
16555
16556     ac_save_LIBS="$LIBS"
16557     LIBS="$LIBS $libiconv"
16558
16559     for ac_func in iconv_open iconv_close iconv nl_langinfo
16560 do
16561 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16562 echo "configure:16563: checking for $ac_func" >&5
16563 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16564   echo $ac_n "(cached) $ac_c" 1>&6
16565 else
16566   cat > conftest.$ac_ext <<EOF
16567 #line 16568 "configure"
16568 #include "confdefs.h"
16569 /* System header to define __stub macros and hopefully few prototypes,
16570     which can conflict with char $ac_func(); below.  */
16571 #include <assert.h>
16572 /* Override any gcc2 internal prototype to avoid an error.  */
16573 /* We use char because int might match the return type of a gcc2
16574     builtin and then its argument prototype would still apply.  */
16575 char $ac_func();
16576
16577 int main() {
16578
16579 /* The GNU C library defines this for functions which it implements
16580     to always fail with ENOSYS.  Some functions are actually named
16581     something starting with __ and the normal name is an alias.  */
16582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16583 choke me
16584 #else
16585 $ac_func();
16586 #endif
16587
16588 ; return 0; }
16589 EOF
16590 if { (eval echo configure:16591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16591   rm -rf conftest*
16592   eval "ac_cv_func_$ac_func=yes"
16593 else
16594   echo "configure: failed program was:" >&5
16595   cat conftest.$ac_ext >&5
16596   rm -rf conftest*
16597   eval "ac_cv_func_$ac_func=no"
16598 fi
16599 rm -f conftest*
16600 fi
16601
16602 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16603   echo "$ac_t""yes" 1>&6
16604     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16605   cat >> confdefs.h <<EOF
16606 #define $ac_tr_func 1
16607 EOF
16608  \
16609     ac_XPG2funcs=yes
16610 else
16611   echo "$ac_t""no" 1>&6
16612 ac_XPG2funcs=no
16613 fi
16614 done
16615
16616   
16617     LIBS="$ac_save_LIBS"
16618
16619     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
16620 echo "configure:16621: checking for XPG2 wchar_t support" >&5
16621     if test x"$ac_has_iconv_h" = xyes &&
16622        test x"$ac_has_langinfo_h" = xyes &&
16623        test x"$ac_XPG2funcs" = xyes; then
16624       ac_XPG2_wchar_t=yes
16625     else
16626       ac_XPG2_wchar_t=no
16627     fi
16628     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
16629   
16630             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
16631 echo "configure:16632: checking for enabled wchar_t specializations" >&5
16632     if test x"$ac_isoC99_wchar_t" = xyes &&
16633        test x"$ac_XPG2_wchar_t" = xyes; then
16634       cat >> confdefs.h <<\EOF
16635 #define _GLIBCPP_USE_WCHAR_T 1
16636 EOF
16637
16638       echo "$ac_t"""yes"" 1>&6
16639     else
16640       echo "$ac_t"""no"" 1>&6
16641     fi
16642   else
16643         echo "configure: warning: wchar_t support disabled." 1>&2
16644   fi
16645
16646   
16647   ac_test_CXXFLAGS="${CXXFLAGS+set}"
16648   ac_save_CXXFLAGS="$CXXFLAGS"
16649   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
16650
16651   
16652   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
16653 echo "configure:16654: checking for strtold declaration" >&5
16654   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
16655     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
16656   echo $ac_n "(cached) $ac_c" 1>&6
16657 else
16658   
16659       
16660       ac_ext=C
16661 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16662 ac_cpp='$CXXCPP $CPPFLAGS'
16663 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16664 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16665 cross_compiling=$ac_cv_prog_cxx_cross
16666
16667       cat > conftest.$ac_ext <<EOF
16668 #line 16669 "configure"
16669 #include "confdefs.h"
16670 #include <stdlib.h>
16671 int main() {
16672  strtold(0, 0);
16673 ; return 0; }
16674 EOF
16675 if { (eval echo configure:16676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16676   rm -rf conftest*
16677   glibcpp_cv_func_strtold_use=yes
16678 else
16679   echo "configure: failed program was:" >&5
16680   cat conftest.$ac_ext >&5
16681   rm -rf conftest*
16682   glibcpp_cv_func_strtold_use=no
16683 fi
16684 rm -f conftest*
16685       ac_ext=c
16686 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16687 ac_cpp='$CPP $CPPFLAGS'
16688 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16689 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16690 cross_compiling=$ac_cv_prog_cc_cross
16691
16692     
16693 fi
16694
16695   fi
16696   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
16697   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
16698     for ac_func in strtold
16699 do
16700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16701 echo "configure:16702: checking for $ac_func" >&5
16702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16703   echo $ac_n "(cached) $ac_c" 1>&6
16704 else
16705   cat > conftest.$ac_ext <<EOF
16706 #line 16707 "configure"
16707 #include "confdefs.h"
16708 /* System header to define __stub macros and hopefully few prototypes,
16709     which can conflict with char $ac_func(); below.  */
16710 #include <assert.h>
16711 /* Override any gcc2 internal prototype to avoid an error.  */
16712 /* We use char because int might match the return type of a gcc2
16713     builtin and then its argument prototype would still apply.  */
16714 char $ac_func();
16715
16716 int main() {
16717
16718 /* The GNU C library defines this for functions which it implements
16719     to always fail with ENOSYS.  Some functions are actually named
16720     something starting with __ and the normal name is an alias.  */
16721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16722 choke me
16723 #else
16724 $ac_func();
16725 #endif
16726
16727 ; return 0; }
16728 EOF
16729 if { (eval echo configure:16730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16730   rm -rf conftest*
16731   eval "ac_cv_func_$ac_func=yes"
16732 else
16733   echo "configure: failed program was:" >&5
16734   cat conftest.$ac_ext >&5
16735   rm -rf conftest*
16736   eval "ac_cv_func_$ac_func=no"
16737 fi
16738 rm -f conftest*
16739 fi
16740
16741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16742   echo "$ac_t""yes" 1>&6
16743     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16744   cat >> confdefs.h <<EOF
16745 #define $ac_tr_func 1
16746 EOF
16747  
16748 else
16749   echo "$ac_t""no" 1>&6
16750 fi
16751 done
16752     
16753   fi
16754
16755   for ac_func in drand48
16756 do
16757 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16758 echo "configure:16759: checking for $ac_func" >&5
16759 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16760   echo $ac_n "(cached) $ac_c" 1>&6
16761 else
16762   cat > conftest.$ac_ext <<EOF
16763 #line 16764 "configure"
16764 #include "confdefs.h"
16765 /* System header to define __stub macros and hopefully few prototypes,
16766     which can conflict with char $ac_func(); below.  */
16767 #include <assert.h>
16768 /* Override any gcc2 internal prototype to avoid an error.  */
16769 /* We use char because int might match the return type of a gcc2
16770     builtin and then its argument prototype would still apply.  */
16771 char $ac_func();
16772
16773 int main() {
16774
16775 /* The GNU C library defines this for functions which it implements
16776     to always fail with ENOSYS.  Some functions are actually named
16777     something starting with __ and the normal name is an alias.  */
16778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16779 choke me
16780 #else
16781 $ac_func();
16782 #endif
16783
16784 ; return 0; }
16785 EOF
16786 if { (eval echo configure:16787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16787   rm -rf conftest*
16788   eval "ac_cv_func_$ac_func=yes"
16789 else
16790   echo "configure: failed program was:" >&5
16791   cat conftest.$ac_ext >&5
16792   rm -rf conftest*
16793   eval "ac_cv_func_$ac_func=no"
16794 fi
16795 rm -f conftest*
16796 fi
16797
16798 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16799   echo "$ac_t""yes" 1>&6
16800     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16801   cat >> confdefs.h <<EOF
16802 #define $ac_tr_func 1
16803 EOF
16804  
16805 else
16806   echo "$ac_t""no" 1>&6
16807 fi
16808 done
16809
16810
16811   CXXFLAGS="$ac_save_CXXFLAGS"
16812
16813   
16814   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
16815 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
16816 echo "configure:16817: checking for locale.h" >&5
16817 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16818   echo $ac_n "(cached) $ac_c" 1>&6
16819 else
16820   cat > conftest.$ac_ext <<EOF
16821 #line 16822 "configure"
16822 #include "confdefs.h"
16823 #include <locale.h>
16824 EOF
16825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16826 { (eval echo configure:16827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16828 if test -z "$ac_err"; then
16829   rm -rf conftest*
16830   eval "ac_cv_header_$ac_safe=yes"
16831 else
16832   echo "$ac_err" >&5
16833   echo "configure: failed program was:" >&5
16834   cat conftest.$ac_ext >&5
16835   rm -rf conftest*
16836   eval "ac_cv_header_$ac_safe=no"
16837 fi
16838 rm -f conftest*
16839 fi
16840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16841   echo "$ac_t""yes" 1>&6
16842   
16843     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
16844 echo "configure:16845: checking for LC_MESSAGES" >&5
16845 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
16846   echo $ac_n "(cached) $ac_c" 1>&6
16847 else
16848   cat > conftest.$ac_ext <<EOF
16849 #line 16850 "configure"
16850 #include "confdefs.h"
16851 #include <locale.h>
16852 int main() {
16853 return LC_MESSAGES
16854 ; return 0; }
16855 EOF
16856 if { (eval echo configure:16857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16857   rm -rf conftest*
16858   ac_cv_val_LC_MESSAGES=yes
16859 else
16860   echo "configure: failed program was:" >&5
16861   cat conftest.$ac_ext >&5
16862   rm -rf conftest*
16863   ac_cv_val_LC_MESSAGES=no
16864 fi
16865 rm -f conftest*
16866 fi
16867
16868 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
16869     if test $ac_cv_val_LC_MESSAGES = yes; then
16870       cat >> confdefs.h <<\EOF
16871 #define HAVE_LC_MESSAGES 1
16872 EOF
16873
16874     fi
16875   
16876 else
16877   echo "$ac_t""no" 1>&6
16878 fi
16879
16880
16881
16882   cat > conftest.$ac_ext <<EOF
16883 #line 16884 "configure"
16884 #include "confdefs.h"
16885
16886   #include <setjmp.h>
16887   
16888 int main() {
16889 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16890 ; return 0; }
16891 EOF
16892 if { (eval echo configure:16893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16893   rm -rf conftest*
16894   cat >> confdefs.h <<\EOF
16895 #define HAVE_SIGSETJMP 1
16896 EOF
16897
16898   
16899 else
16900   echo "configure: failed program was:" >&5
16901   cat conftest.$ac_ext >&5
16902 fi
16903 rm -f conftest*
16904
16905   for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
16906 do
16907 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16908 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16909 echo "configure:16910: checking for $ac_hdr" >&5
16910 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16911   echo $ac_n "(cached) $ac_c" 1>&6
16912 else
16913   cat > conftest.$ac_ext <<EOF
16914 #line 16915 "configure"
16915 #include "confdefs.h"
16916 #include <$ac_hdr>
16917 EOF
16918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16919 { (eval echo configure:16920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16921 if test -z "$ac_err"; then
16922   rm -rf conftest*
16923   eval "ac_cv_header_$ac_safe=yes"
16924 else
16925   echo "$ac_err" >&5
16926   echo "configure: failed program was:" >&5
16927   cat conftest.$ac_ext >&5
16928   rm -rf conftest*
16929   eval "ac_cv_header_$ac_safe=no"
16930 fi
16931 rm -f conftest*
16932 fi
16933 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16934   echo "$ac_t""yes" 1>&6
16935     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16936   cat >> confdefs.h <<EOF
16937 #define $ac_tr_hdr 1
16938 EOF
16939  
16940 else
16941   echo "$ac_t""no" 1>&6
16942 fi
16943 done
16944
16945 for ac_func in getpagesize
16946 do
16947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16948 echo "configure:16949: checking for $ac_func" >&5
16949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16950   echo $ac_n "(cached) $ac_c" 1>&6
16951 else
16952   cat > conftest.$ac_ext <<EOF
16953 #line 16954 "configure"
16954 #include "confdefs.h"
16955 /* System header to define __stub macros and hopefully few prototypes,
16956     which can conflict with char $ac_func(); below.  */
16957 #include <assert.h>
16958 /* Override any gcc2 internal prototype to avoid an error.  */
16959 /* We use char because int might match the return type of a gcc2
16960     builtin and then its argument prototype would still apply.  */
16961 char $ac_func();
16962
16963 int main() {
16964
16965 /* The GNU C library defines this for functions which it implements
16966     to always fail with ENOSYS.  Some functions are actually named
16967     something starting with __ and the normal name is an alias.  */
16968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16969 choke me
16970 #else
16971 $ac_func();
16972 #endif
16973
16974 ; return 0; }
16975 EOF
16976 if { (eval echo configure:16977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16977   rm -rf conftest*
16978   eval "ac_cv_func_$ac_func=yes"
16979 else
16980   echo "configure: failed program was:" >&5
16981   cat conftest.$ac_ext >&5
16982   rm -rf conftest*
16983   eval "ac_cv_func_$ac_func=no"
16984 fi
16985 rm -f conftest*
16986 fi
16987
16988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16989   echo "$ac_t""yes" 1>&6
16990     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16991   cat >> confdefs.h <<EOF
16992 #define $ac_tr_func 1
16993 EOF
16994  
16995 else
16996   echo "$ac_t""no" 1>&6
16997 fi
16998 done
16999
17000 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
17001 echo "configure:17002: checking for working mmap" >&5
17002 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
17003   echo $ac_n "(cached) $ac_c" 1>&6
17004 else
17005   if test "$cross_compiling" = yes; then
17006   ac_cv_func_mmap_fixed_mapped=no
17007 else
17008   cat > conftest.$ac_ext <<EOF
17009 #line 17010 "configure"
17010 #include "confdefs.h"
17011
17012 /* Thanks to Mike Haertel and Jim Avera for this test.
17013    Here is a matrix of mmap possibilities:
17014         mmap private not fixed
17015         mmap private fixed at somewhere currently unmapped
17016         mmap private fixed at somewhere already mapped
17017         mmap shared not fixed
17018         mmap shared fixed at somewhere currently unmapped
17019         mmap shared fixed at somewhere already mapped
17020    For private mappings, we should verify that changes cannot be read()
17021    back from the file, nor mmap's back from the file at a different
17022    address.  (There have been systems where private was not correctly
17023    implemented like the infamous i386 svr4.0, and systems where the
17024    VM page cache was not coherent with the filesystem buffer cache
17025    like early versions of FreeBSD and possibly contemporary NetBSD.)
17026    For shared mappings, we should conversely verify that changes get
17027    propogated back to all the places they're supposed to be.
17028
17029    Grep wants private fixed already mapped.
17030    The main things grep needs to know about mmap are:
17031    * does it exist and is it safe to write into the mmap'd area
17032    * how to use it (BSD variants)  */
17033 #include <sys/types.h>
17034 #include <fcntl.h>
17035 #include <sys/mman.h>
17036
17037 #if HAVE_SYS_TYPES_H
17038 # include <sys/types.h>
17039 #endif
17040
17041 #if HAVE_STDLIB_H
17042 # include <stdlib.h>
17043 #endif
17044
17045 #if HAVE_SYS_STAT_H
17046 # include <sys/stat.h>
17047 #endif
17048
17049 #if HAVE_UNISTD_H
17050 # include <unistd.h>
17051 #endif
17052
17053 /* This mess was copied from the GNU getpagesize.h.  */
17054 #ifndef HAVE_GETPAGESIZE
17055
17056 /* Assume that all systems that can run configure have sys/param.h.  */
17057 # ifndef HAVE_SYS_PARAM_H
17058 #  define HAVE_SYS_PARAM_H 1
17059 # endif
17060
17061 # ifdef _SC_PAGESIZE
17062 #  define getpagesize() sysconf(_SC_PAGESIZE)
17063 # else /* no _SC_PAGESIZE */
17064 #  ifdef HAVE_SYS_PARAM_H
17065 #   include <sys/param.h>
17066 #   ifdef EXEC_PAGESIZE
17067 #    define getpagesize() EXEC_PAGESIZE
17068 #   else /* no EXEC_PAGESIZE */
17069 #    ifdef NBPG
17070 #     define getpagesize() NBPG * CLSIZE
17071 #     ifndef CLSIZE
17072 #      define CLSIZE 1
17073 #     endif /* no CLSIZE */
17074 #    else /* no NBPG */
17075 #     ifdef NBPC
17076 #      define getpagesize() NBPC
17077 #     else /* no NBPC */
17078 #      ifdef PAGESIZE
17079 #       define getpagesize() PAGESIZE
17080 #      endif /* PAGESIZE */
17081 #     endif /* no NBPC */
17082 #    endif /* no NBPG */
17083 #   endif /* no EXEC_PAGESIZE */
17084 #  else /* no HAVE_SYS_PARAM_H */
17085 #   define getpagesize() 8192   /* punt totally */
17086 #  endif /* no HAVE_SYS_PARAM_H */
17087 # endif /* no _SC_PAGESIZE */
17088
17089 #endif /* no HAVE_GETPAGESIZE */
17090
17091 #ifdef __cplusplus
17092 extern "C" { void *malloc(unsigned); }
17093 #else
17094 char *malloc();
17095 #endif
17096
17097 int
17098 main()
17099 {
17100         char *data, *data2, *data3;
17101         int i, pagesize;
17102         int fd;
17103
17104         pagesize = getpagesize();
17105
17106         /*
17107          * First, make a file with some known garbage in it.
17108          */
17109         data = malloc(pagesize);
17110         if (!data)
17111                 exit(1);
17112         for (i = 0; i < pagesize; ++i)
17113                 *(data + i) = rand();
17114         umask(0);
17115         fd = creat("conftestmmap", 0600);
17116         if (fd < 0)
17117                 exit(1);
17118         if (write(fd, data, pagesize) != pagesize)
17119                 exit(1);
17120         close(fd);
17121
17122         /*
17123          * Next, try to mmap the file at a fixed address which
17124          * already has something else allocated at it.  If we can,
17125          * also make sure that we see the same garbage.
17126          */
17127         fd = open("conftestmmap", O_RDWR);
17128         if (fd < 0)
17129                 exit(1);
17130         data2 = malloc(2 * pagesize);
17131         if (!data2)
17132                 exit(1);
17133         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
17134         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
17135             MAP_PRIVATE | MAP_FIXED, fd, 0L))
17136                 exit(1);
17137         for (i = 0; i < pagesize; ++i)
17138                 if (*(data + i) != *(data2 + i))
17139                         exit(1);
17140
17141         /*
17142          * Finally, make sure that changes to the mapped area
17143          * do not percolate back to the file as seen by read().
17144          * (This is a bug on some variants of i386 svr4.0.)
17145          */
17146         for (i = 0; i < pagesize; ++i)
17147                 *(data2 + i) = *(data2 + i) + 1;
17148         data3 = malloc(pagesize);
17149         if (!data3)
17150                 exit(1);
17151         if (read(fd, data3, pagesize) != pagesize)
17152                 exit(1);
17153         for (i = 0; i < pagesize; ++i)
17154                 if (*(data + i) != *(data3 + i))
17155                         exit(1);
17156         close(fd);
17157         unlink("conftestmmap");
17158         exit(0);
17159 }
17160
17161 EOF
17162 if { (eval echo configure:17163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
17163 then
17164   ac_cv_func_mmap_fixed_mapped=yes
17165 else
17166   echo "configure: failed program was:" >&5
17167   cat conftest.$ac_ext >&5
17168   rm -fr conftest*
17169   ac_cv_func_mmap_fixed_mapped=no
17170 fi
17171 rm -fr conftest*
17172 fi
17173
17174 fi
17175
17176 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
17177 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17178   cat >> confdefs.h <<\EOF
17179 #define HAVE_MMAP 1
17180 EOF
17181
17182 fi
17183
17184
17185   # Establish limits on memory usage during 'make check'
17186   
17187   
17188   setrlimit_have_headers=yes
17189   for ac_hdr in sys/resource.h unistd.h
17190 do
17191 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17192 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17193 echo "configure:17194: checking for $ac_hdr" >&5
17194 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17195   echo $ac_n "(cached) $ac_c" 1>&6
17196 else
17197   cat > conftest.$ac_ext <<EOF
17198 #line 17199 "configure"
17199 #include "confdefs.h"
17200 #include <$ac_hdr>
17201 EOF
17202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17203 { (eval echo configure:17204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17204 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17205 if test -z "$ac_err"; then
17206   rm -rf conftest*
17207   eval "ac_cv_header_$ac_safe=yes"
17208 else
17209   echo "$ac_err" >&5
17210   echo "configure: failed program was:" >&5
17211   cat conftest.$ac_ext >&5
17212   rm -rf conftest*
17213   eval "ac_cv_header_$ac_safe=no"
17214 fi
17215 rm -f conftest*
17216 fi
17217 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17218   echo "$ac_t""yes" 1>&6
17219     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17220   cat >> confdefs.h <<EOF
17221 #define $ac_tr_hdr 1
17222 EOF
17223  
17224 else
17225   echo "$ac_t""no" 1>&6
17226 setrlimit_have_headers=no
17227 fi
17228 done
17229
17230   # If don't have the headers, then we can't run the tests now, and we
17231   # won't be seeing any of these during testsuite compilation.
17232   if test $setrlimit_have_headers = yes; then
17233     # Can't do these in a loop, else the resulting syntax is wrong.
17234     
17235   cat > conftest.$ac_ext <<EOF
17236 #line 17237 "configure"
17237 #include "confdefs.h"
17238 #include <sys/resource.h>
17239                   #include <unistd.h>
17240                  
17241 int main() {
17242  int f = RLIMIT_DATA ; 
17243 ; return 0; }
17244 EOF
17245 if { (eval echo configure:17246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17246   rm -rf conftest*
17247   glibcpp_mresult=1
17248 else
17249   echo "configure: failed program was:" >&5
17250   cat conftest.$ac_ext >&5
17251   rm -rf conftest*
17252   glibcpp_mresult=0
17253 fi
17254 rm -f conftest*
17255   cat >> confdefs.h <<EOF
17256 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
17257 EOF
17258
17259
17260     
17261   cat > conftest.$ac_ext <<EOF
17262 #line 17263 "configure"
17263 #include "confdefs.h"
17264 #include <sys/resource.h>
17265                   #include <unistd.h>
17266                  
17267 int main() {
17268  int f = RLIMIT_RSS ; 
17269 ; return 0; }
17270 EOF
17271 if { (eval echo configure:17272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17272   rm -rf conftest*
17273   glibcpp_mresult=1
17274 else
17275   echo "configure: failed program was:" >&5
17276   cat conftest.$ac_ext >&5
17277   rm -rf conftest*
17278   glibcpp_mresult=0
17279 fi
17280 rm -f conftest*
17281   cat >> confdefs.h <<EOF
17282 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
17283 EOF
17284
17285
17286     
17287   cat > conftest.$ac_ext <<EOF
17288 #line 17289 "configure"
17289 #include "confdefs.h"
17290 #include <sys/resource.h>
17291                   #include <unistd.h>
17292                  
17293 int main() {
17294  int f = RLIMIT_VMEM ; 
17295 ; return 0; }
17296 EOF
17297 if { (eval echo configure:17298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17298   rm -rf conftest*
17299   glibcpp_mresult=1
17300 else
17301   echo "configure: failed program was:" >&5
17302   cat conftest.$ac_ext >&5
17303   rm -rf conftest*
17304   glibcpp_mresult=0
17305 fi
17306 rm -f conftest*
17307   cat >> confdefs.h <<EOF
17308 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
17309 EOF
17310
17311
17312     
17313   cat > conftest.$ac_ext <<EOF
17314 #line 17315 "configure"
17315 #include "confdefs.h"
17316 #include <sys/resource.h>
17317                   #include <unistd.h>
17318                  
17319 int main() {
17320  int f = RLIMIT_AS ; 
17321 ; return 0; }
17322 EOF
17323 if { (eval echo configure:17324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17324   rm -rf conftest*
17325   glibcpp_mresult=1
17326 else
17327   echo "configure: failed program was:" >&5
17328   cat conftest.$ac_ext >&5
17329   rm -rf conftest*
17330   glibcpp_mresult=0
17331 fi
17332 rm -f conftest*
17333   cat >> confdefs.h <<EOF
17334 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
17335 EOF
17336
17337
17338
17339     # Check for rlimit, setrlimit.
17340     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
17341   echo $ac_n "(cached) $ac_c" 1>&6
17342 else
17343   
17344       cat > conftest.$ac_ext <<EOF
17345 #line 17346 "configure"
17346 #include "confdefs.h"
17347 #include <sys/resource.h>
17348                       #include <unistd.h>
17349                      
17350 int main() {
17351  struct rlimit r; setrlimit(0, &r);
17352 ; return 0; }
17353 EOF
17354 if { (eval echo configure:17355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17355   rm -rf conftest*
17356   ac_setrlimit=yes
17357 else
17358   echo "configure: failed program was:" >&5
17359   cat conftest.$ac_ext >&5
17360   rm -rf conftest*
17361   ac_setrlimit=no
17362 fi
17363 rm -f conftest*
17364     
17365 fi
17366
17367   fi
17368
17369   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
17370 echo "configure:17371: checking for testsuite memory limit support" >&5
17371   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
17372     ac_mem_limits=yes
17373     cat >> confdefs.h <<\EOF
17374 #define _GLIBCPP_MEM_LIMITS 1
17375 EOF
17376
17377   else
17378     ac_mem_limits=no
17379   fi
17380   echo "$ac_t""$ac_mem_limits" 1>&6
17381
17382
17383 fi
17384
17385
17386 # Propagate the target-specific source directories through the build chain.
17387 OS_INC_SRCDIR=$os_include_dir/bits
17388 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
17389 CPU_LIMITS_INC_SRCDIR=$CPULIMITSH/bits
17390
17391
17392
17393
17394 # Set up cross-compile flags
17395
17396
17397
17398 if test "$CANADIAN" = yes; then
17399   CANADIAN_TRUE=
17400   CANADIAN_FALSE='#'
17401 else
17402   CANADIAN_TRUE='#'
17403   CANADIAN_FALSE=
17404 fi
17405  
17406 cat > confcache <<\EOF
17407 # This file is a shell script that caches the results of configure
17408 # tests run on this system so they can be shared between configure
17409 # scripts and configure runs.  It is not useful on other systems.
17410 # If it contains results you don't want to keep, you may remove or edit it.
17411 #
17412 # By default, configure uses ./config.cache as the cache file,
17413 # creating it if it does not exist already.  You can give configure
17414 # the --cache-file=FILE option to use a different cache file; that is
17415 # what configure does when it calls configure scripts in
17416 # subdirectories, so they share the cache.
17417 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17418 # config.status only pays attention to the cache file if you give it the
17419 # --recheck option to rerun configure.
17420 #
17421 EOF
17422 # The following way of writing the cache mishandles newlines in values,
17423 # but we know of no workaround that is simple, portable, and efficient.
17424 # So, don't put newlines in cache variables' values.
17425 # Ultrix sh set writes to stderr and can't be redirected directly,
17426 # and sets the high bit in the cache file unless we assign to the vars.
17427 (set) 2>&1 |
17428   case `(ac_space=' '; set | grep ac_space) 2>&1` in
17429   *ac_space=\ *)
17430     # `set' does not quote correctly, so add quotes (double-quote substitution
17431     # turns \\\\ into \\, and sed turns \\ into \).
17432     sed -n \
17433       -e "s/'/'\\\\''/g" \
17434       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17435     ;;
17436   *)
17437     # `set' quotes correctly as required by POSIX, so do not add quotes.
17438     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17439     ;;
17440   esac >> confcache
17441 if cmp -s $cache_file confcache; then
17442   :
17443 else
17444   if test -w $cache_file; then
17445     echo "updating cache $cache_file"
17446     cat confcache > $cache_file
17447   else
17448     echo "not updating unwritable cache $cache_file"
17449   fi
17450 fi
17451 rm -f confcache
17452
17453
17454 if test "${multilib}" = "yes"; then
17455   multilib_arg="--enable-multilib"
17456 else
17457   multilib_arg=
17458 fi
17459
17460 # Needed so that g++ can find the correct include subdir automatically.
17461 INTERFACE=v3
17462
17463 # Export all the install information
17464
17465 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
17466 # exported correctly in GLIBCPP_CONFIGURE.
17467 glibcpp_toolexecdir=no
17468 glibcpp_toolexeclibdir=no
17469 glibcpp_prefixdir=${prefix}
17470
17471 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
17472 echo "configure:17473: checking for interface version number" >&5
17473 libstdcxx_interface=$INTERFACE
17474 echo "$ac_t""$libstdcxx_interface" 1>&6
17475
17476 # Process the option --with-gxx-include-dir=<path to include-files directory>
17477 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
17478 echo "configure:17479: checking for --with-gxx-include-dir" >&5
17479 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
17480 if test "${with_gxx_include_dir+set}" = set; then
17481   withval="$with_gxx_include_dir"
17482   case "${withval}" in
17483   yes)
17484     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
17485     gxx_include_dir=no
17486     ;;
17487   no)
17488     gxx_include_dir=no
17489     ;;
17490   *)
17491     gxx_include_dir=${withval}
17492     ;;
17493 esac
17494 else
17495   gxx_include_dir=no
17496 fi
17497
17498 echo "$ac_t""$gxx_include_dir" 1>&6
17499
17500 # Process the option "--enable-version-specific-runtime-libs"
17501 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
17502 echo "configure:17503: checking for --enable-version-specific-runtime-libs" >&5
17503 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
17504 if test "${enable_version_specific_runtime_libs+set}" = set; then
17505   enableval="$enable_version_specific_runtime_libs"
17506   case "$enableval" in
17507  yes) version_specific_libs=yes ;;
17508  no)  version_specific_libs=no ;;
17509  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
17510  esac
17511 else
17512   version_specific_libs=no
17513 fi
17514 # Option set, now we can test it.
17515 echo "$ac_t""$version_specific_libs" 1>&6
17516
17517 if test $version_specific_libs = yes; then
17518   # Need the gcc compiler version to know where to install libraries
17519   # and header files if --enable-version-specific-runtime-libs option
17520   # is selected.
17521     gcc_version_trigger=${srcdir}/../gcc/version.c
17522   gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
17523   gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
17524   gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
17525   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
17526   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
17527   fi
17528
17529 # Default case for install directory for include files.
17530 if test $version_specific_libs = no &&
17531    test $gxx_include_dir = no; then
17532   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
17533 fi
17534
17535 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
17536 # Install a library built with a cross compiler in tooldir, not libdir.
17537 if test x"$glibcpp_toolexecdir" = x"no"; then 
17538   if test -n "$with_cross_host" &&
17539      test x"$with_cross_host" != x"no"; then
17540     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
17541     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
17542   else
17543     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
17544     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
17545   fi
17546 fi
17547
17548 echo $ac_n "checking for install location""... $ac_c" 1>&6
17549 echo "configure:17550: checking for install location" >&5
17550 echo "$ac_t""$gxx_include_dir" 1>&6
17551
17552
17553
17554
17555
17556
17557
17558 # Export all the include and flag information to makefiles.
17559
17560   # Root level of the build directory include sources.
17561   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
17562
17563   # Passed down for canadian crosses.
17564   if test x"$CANADIAN" = xyes; then
17565     TOPLEVEL_INCLUDES='-I$(includedir)'
17566   fi
17567
17568   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
17569
17570   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
17571
17572   if test x"$need_libio" = xyes; then
17573     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
17574     
17575   fi
17576
17577   # Now, export this to all the little Makefiles....
17578   
17579   
17580   
17581   
17582
17583
17584   # Optimization flags that are probably a good idea for thrill-seekers. Just
17585   # uncomment the lines below and make, everything else is ready to go... 
17586   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
17587   OPTIMIZE_CXXFLAGS=
17588   
17589
17590   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
17591   
17592
17593
17594 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
17595    grep "enable shared" > /dev/null; then
17596   LIBSUPCXX_PICFLAGS=-prefer-pic
17597 else
17598   LIBSUPCXX_PICFLAGS=
17599 fi
17600
17601
17602 # Generate the various Makefiles, include files, and scripts.
17603 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
17604 # and libsupc++/Makefile.am so that multilib installs will end up
17605 # installed in the correct place. To work around this not being passed
17606 # down from config-ml.in -> top_srcdir/Makefile.am ->
17607 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
17608 trap '' 1 2 15
17609 cat > confcache <<\EOF
17610 # This file is a shell script that caches the results of configure
17611 # tests run on this system so they can be shared between configure
17612 # scripts and configure runs.  It is not useful on other systems.
17613 # If it contains results you don't want to keep, you may remove or edit it.
17614 #
17615 # By default, configure uses ./config.cache as the cache file,
17616 # creating it if it does not exist already.  You can give configure
17617 # the --cache-file=FILE option to use a different cache file; that is
17618 # what configure does when it calls configure scripts in
17619 # subdirectories, so they share the cache.
17620 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17621 # config.status only pays attention to the cache file if you give it the
17622 # --recheck option to rerun configure.
17623 #
17624 EOF
17625 # The following way of writing the cache mishandles newlines in values,
17626 # but we know of no workaround that is simple, portable, and efficient.
17627 # So, don't put newlines in cache variables' values.
17628 # Ultrix sh set writes to stderr and can't be redirected directly,
17629 # and sets the high bit in the cache file unless we assign to the vars.
17630 (set) 2>&1 |
17631   case `(ac_space=' '; set | grep ac_space) 2>&1` in
17632   *ac_space=\ *)
17633     # `set' does not quote correctly, so add quotes (double-quote substitution
17634     # turns \\\\ into \\, and sed turns \\ into \).
17635     sed -n \
17636       -e "s/'/'\\\\''/g" \
17637       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17638     ;;
17639   *)
17640     # `set' quotes correctly as required by POSIX, so do not add quotes.
17641     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17642     ;;
17643   esac >> confcache
17644 if cmp -s $cache_file confcache; then
17645   :
17646 else
17647   if test -w $cache_file; then
17648     echo "updating cache $cache_file"
17649     cat confcache > $cache_file
17650   else
17651     echo "not updating unwritable cache $cache_file"
17652   fi
17653 fi
17654 rm -f confcache
17655
17656 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17657
17658 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17659 # Let make expand exec_prefix.
17660 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17661
17662 # Any assignment to VPATH causes Sun make to only execute
17663 # the first set of double-colon rules, so remove it if not needed.
17664 # If there is a colon in the path, we need to keep it.
17665 if test "x$srcdir" = x.; then
17666   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
17667 fi
17668
17669 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17670
17671 DEFS=-DHAVE_CONFIG_H
17672
17673 # Without the "./", some shells look in PATH for config.status.
17674 : ${CONFIG_STATUS=./config.status}
17675
17676 echo creating $CONFIG_STATUS
17677 rm -f $CONFIG_STATUS
17678 cat > $CONFIG_STATUS <<EOF
17679 #! /bin/sh
17680 # Generated automatically by configure.
17681 # Run this file to recreate the current configuration.
17682 # This directory was configured as follows,
17683 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17684 #
17685 # $0 $ac_configure_args
17686 #
17687 # Compiler output produced by configure, useful for debugging
17688 # configure, is in ./config.log if it exists.
17689
17690 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17691 for ac_option
17692 do
17693   case "\$ac_option" in
17694   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17695     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17696     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17697   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17698     echo "$CONFIG_STATUS generated by autoconf version 2.13"
17699     exit 0 ;;
17700   -help | --help | --hel | --he | --h)
17701     echo "\$ac_cs_usage"; exit 0 ;;
17702   *) echo "\$ac_cs_usage"; exit 1 ;;
17703   esac
17704 done
17705
17706 ac_given_srcdir=$srcdir
17707 ac_given_INSTALL="$INSTALL"
17708
17709 trap 'rm -fr `echo "Makefile \
17710     include/Makefile src/Makefile \
17711     libmath/Makefile libio/Makefile libsupc++/Makefile \
17712     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
17713 EOF
17714 cat >> $CONFIG_STATUS <<EOF
17715
17716 # Protect against being on the right side of a sed subst in config.status.
17717 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17718  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17719 $ac_vpsub
17720 $extrasub
17721 s%@SHELL@%$SHELL%g
17722 s%@CFLAGS@%$CFLAGS%g
17723 s%@CPPFLAGS@%$CPPFLAGS%g
17724 s%@CXXFLAGS@%$CXXFLAGS%g
17725 s%@FFLAGS@%$FFLAGS%g
17726 s%@DEFS@%$DEFS%g
17727 s%@LDFLAGS@%$LDFLAGS%g
17728 s%@LIBS@%$LIBS%g
17729 s%@exec_prefix@%$exec_prefix%g
17730 s%@prefix@%$prefix%g
17731 s%@program_transform_name@%$program_transform_name%g
17732 s%@bindir@%$bindir%g
17733 s%@sbindir@%$sbindir%g
17734 s%@libexecdir@%$libexecdir%g
17735 s%@datadir@%$datadir%g
17736 s%@sysconfdir@%$sysconfdir%g
17737 s%@sharedstatedir@%$sharedstatedir%g
17738 s%@localstatedir@%$localstatedir%g
17739 s%@libdir@%$libdir%g
17740 s%@includedir@%$includedir%g
17741 s%@oldincludedir@%$oldincludedir%g
17742 s%@infodir@%$infodir%g
17743 s%@mandir@%$mandir%g
17744 s%@PACKAGE@%$PACKAGE%g
17745 s%@release_VERSION@%$release_VERSION%g
17746 s%@libtool_VERSION@%$libtool_VERSION%g
17747 s%@host@%$host%g
17748 s%@host_alias@%$host_alias%g
17749 s%@host_cpu@%$host_cpu%g
17750 s%@host_vendor@%$host_vendor%g
17751 s%@host_os@%$host_os%g
17752 s%@target@%$target%g
17753 s%@target_alias@%$target_alias%g
17754 s%@target_cpu@%$target_cpu%g
17755 s%@target_vendor@%$target_vendor%g
17756 s%@target_os@%$target_os%g
17757 s%@build@%$build%g
17758 s%@build_alias@%$build_alias%g
17759 s%@build_cpu@%$build_cpu%g
17760 s%@build_vendor@%$build_vendor%g
17761 s%@build_os@%$build_os%g
17762 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17763 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17764 s%@INSTALL_DATA@%$INSTALL_DATA%g
17765 s%@VERSION@%$VERSION%g
17766 s%@ACLOCAL@%$ACLOCAL%g
17767 s%@AUTOCONF@%$AUTOCONF%g
17768 s%@AUTOMAKE@%$AUTOMAKE%g
17769 s%@AUTOHEADER@%$AUTOHEADER%g
17770 s%@MAKEINFO@%$MAKEINFO%g
17771 s%@SET_MAKE@%$SET_MAKE%g
17772 s%@toplevel_srcdir@%$toplevel_srcdir%g
17773 s%@glibcpp_builddir@%$glibcpp_builddir%g
17774 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
17775 s%@LN_S@%$LN_S%g
17776 s%@glibcpp_basedir@%$glibcpp_basedir%g
17777 s%@CC@%$CC%g
17778 s%@glibcpp_CXX@%$glibcpp_CXX%g
17779 s%@AS@%$AS%g
17780 s%@AR@%$AR%g
17781 s%@RANLIB@%$RANLIB%g
17782 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
17783 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
17784 s%@MAINT@%$MAINT%g
17785 s%@EXEEXT@%$EXEEXT%g
17786 s%@OBJEXT@%$OBJEXT%g
17787 s%@STRIP@%$STRIP%g
17788 s%@LIBTOOL@%$LIBTOOL%g
17789 s%@CXXCPP@%$CXXCPP%g
17790 s%@enable_shared@%$enable_shared%g
17791 s%@enable_static@%$enable_static%g
17792 s%@ifGNUmake@%$ifGNUmake%g
17793 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
17794 s%@CPP@%$CPP%g
17795 s%@CSTDIO_H@%$CSTDIO_H%g
17796 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
17797 s%@CCODECVT_C@%$CCODECVT_C%g
17798 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
17799 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
17800 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
17801 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
17802 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
17803 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
17804 s%@libio_la@%$libio_la%g
17805 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
17806 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
17807 s%@glibcpp_localedir@%$glibcpp_localedir%g
17808 s%@USE_NLS@%$USE_NLS%g
17809 s%@CLOCALE_H@%$CLOCALE_H%g
17810 s%@CCODECVT_H@%$CCODECVT_H%g
17811 s%@CMESSAGES_H@%$CMESSAGES_H%g
17812 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
17813 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
17814 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
17815 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
17816 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
17817 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
17818 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
17819 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
17820 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
17821 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
17822 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
17823 s%@WERROR@%$WERROR%g
17824 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
17825 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
17826 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
17827 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
17828 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
17829 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
17830 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
17831 s%@gxx_include_dir@%$gxx_include_dir%g
17832 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
17833 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
17834 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
17835 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
17836 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
17837 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
17838 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
17839 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
17840 s%@WARN_FLAGS@%$WARN_FLAGS%g
17841 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
17842
17843 CEOF
17844 EOF
17845
17846 cat >> $CONFIG_STATUS <<\EOF
17847
17848 # Split the substitutions into bite-sized pieces for seds with
17849 # small command number limits, like on Digital OSF/1 and HP-UX.
17850 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17851 ac_file=1 # Number of current file.
17852 ac_beg=1 # First line for current file.
17853 ac_end=$ac_max_sed_cmds # Line after last line for current file.
17854 ac_more_lines=:
17855 ac_sed_cmds=""
17856 while $ac_more_lines; do
17857   if test $ac_beg -gt 1; then
17858     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17859   else
17860     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17861   fi
17862   if test ! -s conftest.s$ac_file; then
17863     ac_more_lines=false
17864     rm -f conftest.s$ac_file
17865   else
17866     if test -z "$ac_sed_cmds"; then
17867       ac_sed_cmds="sed -f conftest.s$ac_file"
17868     else
17869       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
17870     fi
17871     ac_file=`expr $ac_file + 1`
17872     ac_beg=$ac_end
17873     ac_end=`expr $ac_end + $ac_max_sed_cmds`
17874   fi
17875 done
17876 if test -z "$ac_sed_cmds"; then
17877   ac_sed_cmds=cat
17878 fi
17879 EOF
17880
17881 cat >> $CONFIG_STATUS <<EOF
17882
17883 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
17884     include/Makefile src/Makefile \
17885     libmath/Makefile libio/Makefile libsupc++/Makefile \
17886     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
17887 EOF
17888 cat >> $CONFIG_STATUS <<\EOF
17889 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
17890   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17891   case "$ac_file" in
17892   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17893        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17894   *) ac_file_in="${ac_file}.in" ;;
17895   esac
17896
17897   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
17898
17899   # Remove last slash and all that follows it.  Not all systems have dirname.
17900   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17901   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17902     # The file is in a subdirectory.
17903     test ! -d "$ac_dir" && mkdir "$ac_dir"
17904     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
17905     # A "../" for each directory in $ac_dir_suffix.
17906     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
17907   else
17908     ac_dir_suffix= ac_dots=
17909   fi
17910
17911   case "$ac_given_srcdir" in
17912   .)  srcdir=.
17913       if test -z "$ac_dots"; then top_srcdir=.
17914       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17915   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
17916   *) # Relative path.
17917     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17918     top_srcdir="$ac_dots$ac_given_srcdir" ;;
17919   esac
17920
17921   case "$ac_given_INSTALL" in
17922   [/$]*) INSTALL="$ac_given_INSTALL" ;;
17923   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17924   esac
17925
17926   echo creating "$ac_file"
17927   rm -f "$ac_file"
17928   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17929   case "$ac_file" in
17930   *Makefile*) ac_comsub="1i\\
17931 # $configure_input" ;;
17932   *) ac_comsub= ;;
17933   esac
17934
17935   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17936   sed -e "$ac_comsub
17937 s%@configure_input@%$configure_input%g
17938 s%@srcdir@%$srcdir%g
17939 s%@top_srcdir@%$top_srcdir%g
17940 s%@INSTALL@%$INSTALL%g
17941 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17942 fi; done
17943 rm -f conftest.s*
17944
17945 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17946 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17947 #
17948 # ac_d sets the value in "#define NAME VALUE" lines.
17949 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
17950 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
17951 ac_dC='\3'
17952 ac_dD='%g'
17953 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17954 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17955 ac_uB='\([      ]\)%\1#\2define\3'
17956 ac_uC=' '
17957 ac_uD='\4%g'
17958 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17959 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17960 ac_eB='$%\1#\2define\3'
17961 ac_eC=' '
17962 ac_eD='%g'
17963
17964 if test "${CONFIG_HEADERS+set}" != set; then
17965 EOF
17966 cat >> $CONFIG_STATUS <<EOF
17967   CONFIG_HEADERS="config.h"
17968 EOF
17969 cat >> $CONFIG_STATUS <<\EOF
17970 fi
17971 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17972   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17973   case "$ac_file" in
17974   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17975        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17976   *) ac_file_in="${ac_file}.in" ;;
17977   esac
17978
17979   echo creating $ac_file
17980
17981   rm -f conftest.frag conftest.in conftest.out
17982   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17983   cat $ac_file_inputs > conftest.in
17984
17985 EOF
17986
17987 # Transform confdefs.h into a sed script conftest.vals that substitutes
17988 # the proper values into config.h.in to produce config.h.  And first:
17989 # Protect against being on the right side of a sed subst in config.status.
17990 # Protect against being in an unquoted here document in config.status.
17991 rm -f conftest.vals
17992 cat > conftest.hdr <<\EOF
17993 s/[\\&%]/\\&/g
17994 s%[\\$`]%\\&%g
17995 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17996 s%ac_d%ac_u%gp
17997 s%ac_u%ac_e%gp
17998 EOF
17999 sed -n -f conftest.hdr confdefs.h > conftest.vals
18000 rm -f conftest.hdr
18001
18002 # This sed command replaces #undef with comments.  This is necessary, for
18003 # example, in the case of _POSIX_SOURCE, which is predefined and required
18004 # on some systems where configure will not decide to define it.
18005 cat >> conftest.vals <<\EOF
18006 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18007 EOF
18008
18009 # Break up conftest.vals because some shells have a limit on
18010 # the size of here documents, and old seds have small limits too.
18011
18012 rm -f conftest.tail
18013 while :
18014 do
18015   ac_lines=`grep -c . conftest.vals`
18016   # grep -c gives empty output for an empty file on some AIX systems.
18017   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18018   # Write a limited-size here document to conftest.frag.
18019   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18020   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18021   echo 'CEOF
18022   sed -f conftest.frag conftest.in > conftest.out
18023   rm -f conftest.in
18024   mv conftest.out conftest.in
18025 ' >> $CONFIG_STATUS
18026   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18027   rm -f conftest.vals
18028   mv conftest.tail conftest.vals
18029 done
18030 rm -f conftest.vals
18031
18032 cat >> $CONFIG_STATUS <<\EOF
18033   rm -f conftest.frag conftest.h
18034   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
18035   cat conftest.in >> conftest.h
18036   rm -f conftest.in
18037   if cmp -s $ac_file conftest.h 2>/dev/null; then
18038     echo "$ac_file is unchanged"
18039     rm -f conftest.h
18040   else
18041     # Remove last slash and all that follows it.  Not all systems have dirname.
18042       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18043       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18044       # The file is in a subdirectory.
18045       test ! -d "$ac_dir" && mkdir "$ac_dir"
18046     fi
18047     rm -f $ac_file
18048     mv conftest.h $ac_file
18049   fi
18050 fi; done
18051
18052 EOF
18053
18054 cat >> $CONFIG_STATUS <<EOF
18055 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC"
18056 ac_dests="src/basic_file.cc src/c++locale.cc src/collate.cc src/messages.cc src/moneypunct.cc src/numpunct.cc src/time.cc"
18057 EOF
18058
18059 cat >> $CONFIG_STATUS <<\EOF
18060 srcdir=$ac_given_srcdir
18061 while test -n "$ac_sources"; do
18062   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
18063   set $ac_sources; ac_source=$1; shift; ac_sources=$*
18064
18065   echo "linking $srcdir/$ac_source to $ac_dest"
18066
18067   if test ! -r $srcdir/$ac_source; then
18068     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
18069   fi
18070   rm -f $ac_dest
18071
18072   # Make relative symlinks.
18073   # Remove last slash and all that follows it.  Not all systems have dirname.
18074   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
18075   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
18076     # The dest file is in a subdirectory.
18077     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
18078     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
18079     # A "../" for each directory in $ac_dest_dir_suffix.
18080     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
18081   else
18082     ac_dest_dir_suffix= ac_dots=
18083   fi
18084
18085   case "$srcdir" in
18086   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
18087   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
18088   esac
18089
18090   # Make a symlink if possible; otherwise try a hard link.
18091   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18092     ln $srcdir/$ac_source $ac_dest; then :
18093   else
18094     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
18095   fi
18096 done
18097 EOF
18098 cat >> $CONFIG_STATUS <<EOF
18099
18100 srcdir=${srcdir}
18101 host=${host}
18102 target=${target}
18103 with_multisubdir=${with_multisubdir}
18104 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18105 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18106 glibcpp_basedir=${glibcpp_basedir}
18107 CC="${CC}"
18108 CXX="${CXX}"
18109
18110 EOF
18111 cat >> $CONFIG_STATUS <<\EOF
18112 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
18113 if test -n "$CONFIG_FILES"; then
18114   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
18115   grep '^MULTISUBDIR =' Makefile >> src/Makefile
18116   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
18117 fi
18118 chmod +x mkcheck
18119 chmod +x testsuite_flags
18120
18121 exit 0
18122 EOF
18123 chmod +x $CONFIG_STATUS
18124 rm -fr confdefs* $ac_clean_files
18125 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
18126
18127
18128
18129 # Sanity checking & User-visible messages.
18130 # Checks down here, otherwise they get scrolled off before
18131 # the user will notice.
18132
18133 # Trying to get more people to read documentation.  Possibly remove
18134 # check and warn all the time. There is no "informational" AC_MSG_
18135 # macro, so these are going to be printed even when --quiet/--silent
18136 # is given.
18137 if test ! -f stamp-sanity-warned; then
18138   touch stamp-sanity-warned
18139   echo ""
18140   echo "Please make certain that you read the installation information here:"
18141   echo "  faster => ${srcdir}/docs/install.html"
18142   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
18143   echo ""
18144   echo "and the configuration information here:"
18145   echo "  faster => ${srcdir}/docs/configopts.html"
18146   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
18147   echo ""
18148   echo "before proceeding with ${_cv_gnu_make_command}."
18149   echo ""
18150 fi