OSDN Git Service

Fix typo in 2001-12-26 entry
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-multilib       build hella library versions (default)"
16 ac_help="$ac_help
17   --with-target-subdir=SUBDIR
18                            configuring in a subdirectory"
19 ac_help="$ac_help
20   --with-cross-host=HOST  configuring with a cross compiler"
21 ac_help="$ac_help
22   --enable-maintainer-mode enable make rules and dependencies not useful
23                           (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25   --enable-shared[=PKGS]  build shared libraries [default=yes]"
26 ac_help="$ac_help
27   --enable-static[=PKGS]  build static libraries [default=yes]"
28 ac_help="$ac_help
29   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33   --disable-libtool-lock  avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37   --enable-debug          extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39   --enable-cstdio         enable stdio for target io package. 
40   --enable-cstdio=LIB     use LIB target-speific io package. [default=stdio]
41   "
42 ac_help="$ac_help
43   --enable-clocale        enable model for target locale package. 
44   --enable-clocale=MODEL  use MODEL target-speific locale package. [default=generic]
45   "
46 ac_help="$ac_help
47   --enable-c-mbchar       enable multibyte (wide) characters [default=yes]"
48 ac_help="$ac_help
49   --enable-c99            turns on 'ISO/IEC 9899:1999 support' [default=yes]"
50 ac_help="$ac_help
51   --enable-long-long      turns on 'long long' [default=yes]"
52 ac_help="$ac_help
53   --enable-cheaders       construct "C" header files for g++ [default=c_std]"
54 ac_help="$ac_help
55   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
56                                 [default=none]"
57 ac_help="$ac_help
58   --enable-sjlj-exceptions  force use of builtin_setjmp for exceptions"
59 ac_help="$ac_help
60   --enable-concept-checks use Boost-derived template checks [default=no]"
61 ac_help="$ac_help
62   --with-gxx-include-dir  the installation directory for include files"
63 ac_help="$ac_help
64   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
65
66 # Initialize some variables set by options.
67 # The variables have the same names as the options, with
68 # dashes changed to underlines.
69 build=NONE
70 cache_file=./config.cache
71 exec_prefix=NONE
72 host=NONE
73 no_create=
74 nonopt=NONE
75 no_recursion=
76 prefix=NONE
77 program_prefix=NONE
78 program_suffix=NONE
79 program_transform_name=s,x,x,
80 silent=
81 site=
82 srcdir=
83 target=NONE
84 verbose=
85 x_includes=NONE
86 x_libraries=NONE
87 bindir='${exec_prefix}/bin'
88 sbindir='${exec_prefix}/sbin'
89 libexecdir='${exec_prefix}/libexec'
90 datadir='${prefix}/share'
91 sysconfdir='${prefix}/etc'
92 sharedstatedir='${prefix}/com'
93 localstatedir='${prefix}/var'
94 libdir='${exec_prefix}/lib'
95 includedir='${prefix}/include'
96 oldincludedir='/usr/include'
97 infodir='${prefix}/info'
98 mandir='${prefix}/man'
99
100 # Initialize some other variables.
101 subdirs=
102 MFLAGS= MAKEFLAGS=
103 SHELL=${CONFIG_SHELL-/bin/sh}
104 # Maximum number of lines to put in a shell here document.
105 ac_max_here_lines=12
106
107 ac_prev=
108 for ac_option
109 do
110
111   # If the previous option needs an argument, assign it.
112   if test -n "$ac_prev"; then
113     eval "$ac_prev=\$ac_option"
114     ac_prev=
115     continue
116   fi
117
118   case "$ac_option" in
119   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
120   *) ac_optarg= ;;
121   esac
122
123   # Accept the important Cygnus configure options, so we can diagnose typos.
124
125   case "$ac_option" in
126
127   -bindir | --bindir | --bindi | --bind | --bin | --bi)
128     ac_prev=bindir ;;
129   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
130     bindir="$ac_optarg" ;;
131
132   -build | --build | --buil | --bui | --bu)
133     ac_prev=build ;;
134   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
135     build="$ac_optarg" ;;
136
137   -cache-file | --cache-file | --cache-fil | --cache-fi \
138   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
139     ac_prev=cache_file ;;
140   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
141   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
142     cache_file="$ac_optarg" ;;
143
144   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
145     ac_prev=datadir ;;
146   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
147   | --da=*)
148     datadir="$ac_optarg" ;;
149
150   -disable-* | --disable-*)
151     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
152     # Reject names that are not valid shell variable names.
153     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
154       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
155     fi
156     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
157     eval "enable_${ac_feature}=no" ;;
158
159   -enable-* | --enable-*)
160     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
161     # Reject names that are not valid shell variable names.
162     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
163       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
164     fi
165     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
166     case "$ac_option" in
167       *=*) ;;
168       *) ac_optarg=yes ;;
169     esac
170     eval "enable_${ac_feature}='$ac_optarg'" ;;
171
172   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
173   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
174   | --exec | --exe | --ex)
175     ac_prev=exec_prefix ;;
176   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
177   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
178   | --exec=* | --exe=* | --ex=*)
179     exec_prefix="$ac_optarg" ;;
180
181   -gas | --gas | --ga | --g)
182     # Obsolete; use --with-gas.
183     with_gas=yes ;;
184
185   -help | --help | --hel | --he)
186     # Omit some internal or obsolete options to make the list less imposing.
187     # This message is too long to be a string in the A/UX 3.1 sh.
188     cat << EOF
189 Usage: configure [options] [host]
190 Options: [defaults in brackets after descriptions]
191 Configuration:
192   --cache-file=FILE       cache test results in FILE
193   --help                  print this message
194   --no-create             do not create output files
195   --quiet, --silent       do not print \`checking...' messages
196   --version               print the version of autoconf that created configure
197 Directory and file names:
198   --prefix=PREFIX         install architecture-independent files in PREFIX
199                           [$ac_default_prefix]
200   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
201                           [same as prefix]
202   --bindir=DIR            user executables in DIR [EPREFIX/bin]
203   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
204   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
205   --datadir=DIR           read-only architecture-independent data in DIR
206                           [PREFIX/share]
207   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
208   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
209                           [PREFIX/com]
210   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
211   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
212   --includedir=DIR        C header files in DIR [PREFIX/include]
213   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
214   --infodir=DIR           info documentation in DIR [PREFIX/info]
215   --mandir=DIR            man documentation in DIR [PREFIX/man]
216   --srcdir=DIR            find the sources in DIR [configure dir or ..]
217   --program-prefix=PREFIX prepend PREFIX to installed program names
218   --program-suffix=SUFFIX append SUFFIX to installed program names
219   --program-transform-name=PROGRAM
220                           run sed PROGRAM on installed program names
221 EOF
222     cat << EOF
223 Host type:
224   --build=BUILD           configure for building on BUILD [BUILD=HOST]
225   --host=HOST             configure for HOST [guessed]
226   --target=TARGET         configure for TARGET [TARGET=HOST]
227 Features and packages:
228   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
229   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
230   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
231   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
232   --x-includes=DIR        X include files are in DIR
233   --x-libraries=DIR       X library files are in DIR
234 EOF
235     if test -n "$ac_help"; then
236       echo "--enable and --with options recognized:$ac_help"
237     fi
238     exit 0 ;;
239
240   -host | --host | --hos | --ho)
241     ac_prev=host ;;
242   -host=* | --host=* | --hos=* | --ho=*)
243     host="$ac_optarg" ;;
244
245   -includedir | --includedir | --includedi | --included | --include \
246   | --includ | --inclu | --incl | --inc)
247     ac_prev=includedir ;;
248   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
249   | --includ=* | --inclu=* | --incl=* | --inc=*)
250     includedir="$ac_optarg" ;;
251
252   -infodir | --infodir | --infodi | --infod | --info | --inf)
253     ac_prev=infodir ;;
254   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
255     infodir="$ac_optarg" ;;
256
257   -libdir | --libdir | --libdi | --libd)
258     ac_prev=libdir ;;
259   -libdir=* | --libdir=* | --libdi=* | --libd=*)
260     libdir="$ac_optarg" ;;
261
262   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
263   | --libexe | --libex | --libe)
264     ac_prev=libexecdir ;;
265   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
266   | --libexe=* | --libex=* | --libe=*)
267     libexecdir="$ac_optarg" ;;
268
269   -localstatedir | --localstatedir | --localstatedi | --localstated \
270   | --localstate | --localstat | --localsta | --localst \
271   | --locals | --local | --loca | --loc | --lo)
272     ac_prev=localstatedir ;;
273   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
274   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
275   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
276     localstatedir="$ac_optarg" ;;
277
278   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
279     ac_prev=mandir ;;
280   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
281     mandir="$ac_optarg" ;;
282
283   -nfp | --nfp | --nf)
284     # Obsolete; use --without-fp.
285     with_fp=no ;;
286
287   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
288   | --no-cr | --no-c)
289     no_create=yes ;;
290
291   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
292   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
293     no_recursion=yes ;;
294
295   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
296   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
297   | --oldin | --oldi | --old | --ol | --o)
298     ac_prev=oldincludedir ;;
299   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
300   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
301   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
302     oldincludedir="$ac_optarg" ;;
303
304   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
305     ac_prev=prefix ;;
306   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
307     prefix="$ac_optarg" ;;
308
309   -program-prefix | --program-prefix | --program-prefi | --program-pref \
310   | --program-pre | --program-pr | --program-p)
311     ac_prev=program_prefix ;;
312   -program-prefix=* | --program-prefix=* | --program-prefi=* \
313   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
314     program_prefix="$ac_optarg" ;;
315
316   -program-suffix | --program-suffix | --program-suffi | --program-suff \
317   | --program-suf | --program-su | --program-s)
318     ac_prev=program_suffix ;;
319   -program-suffix=* | --program-suffix=* | --program-suffi=* \
320   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
321     program_suffix="$ac_optarg" ;;
322
323   -program-transform-name | --program-transform-name \
324   | --program-transform-nam | --program-transform-na \
325   | --program-transform-n | --program-transform- \
326   | --program-transform | --program-transfor \
327   | --program-transfo | --program-transf \
328   | --program-trans | --program-tran \
329   | --progr-tra | --program-tr | --program-t)
330     ac_prev=program_transform_name ;;
331   -program-transform-name=* | --program-transform-name=* \
332   | --program-transform-nam=* | --program-transform-na=* \
333   | --program-transform-n=* | --program-transform-=* \
334   | --program-transform=* | --program-transfor=* \
335   | --program-transfo=* | --program-transf=* \
336   | --program-trans=* | --program-tran=* \
337   | --progr-tra=* | --program-tr=* | --program-t=*)
338     program_transform_name="$ac_optarg" ;;
339
340   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
341   | -silent | --silent | --silen | --sile | --sil)
342     silent=yes ;;
343
344   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
345     ac_prev=sbindir ;;
346   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
347   | --sbi=* | --sb=*)
348     sbindir="$ac_optarg" ;;
349
350   -sharedstatedir | --sharedstatedir | --sharedstatedi \
351   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
352   | --sharedst | --shareds | --shared | --share | --shar \
353   | --sha | --sh)
354     ac_prev=sharedstatedir ;;
355   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
356   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
357   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
358   | --sha=* | --sh=*)
359     sharedstatedir="$ac_optarg" ;;
360
361   -site | --site | --sit)
362     ac_prev=site ;;
363   -site=* | --site=* | --sit=*)
364     site="$ac_optarg" ;;
365
366   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
367     ac_prev=srcdir ;;
368   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
369     srcdir="$ac_optarg" ;;
370
371   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
372   | --syscon | --sysco | --sysc | --sys | --sy)
373     ac_prev=sysconfdir ;;
374   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
375   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
376     sysconfdir="$ac_optarg" ;;
377
378   -target | --target | --targe | --targ | --tar | --ta | --t)
379     ac_prev=target ;;
380   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
381     target="$ac_optarg" ;;
382
383   -v | -verbose | --verbose | --verbos | --verbo | --verb)
384     verbose=yes ;;
385
386   -version | --version | --versio | --versi | --vers)
387     echo "configure generated by autoconf version 2.13"
388     exit 0 ;;
389
390   -with-* | --with-*)
391     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
392     # Reject names that are not valid shell variable names.
393     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
394       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
395     fi
396     ac_package=`echo $ac_package| sed 's/-/_/g'`
397     case "$ac_option" in
398       *=*) ;;
399       *) ac_optarg=yes ;;
400     esac
401     eval "with_${ac_package}='$ac_optarg'" ;;
402
403   -without-* | --without-*)
404     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
405     # Reject names that are not valid shell variable names.
406     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
407       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408     fi
409     ac_package=`echo $ac_package| sed 's/-/_/g'`
410     eval "with_${ac_package}=no" ;;
411
412   --x)
413     # Obsolete; use --with-x.
414     with_x=yes ;;
415
416   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
417   | --x-incl | --x-inc | --x-in | --x-i)
418     ac_prev=x_includes ;;
419   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
420   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
421     x_includes="$ac_optarg" ;;
422
423   -x-libraries | --x-libraries | --x-librarie | --x-librari \
424   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
425     ac_prev=x_libraries ;;
426   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
427   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
428     x_libraries="$ac_optarg" ;;
429
430   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
431     ;;
432
433   *)
434     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
435       echo "configure: warning: $ac_option: invalid host type" 1>&2
436     fi
437     if test "x$nonopt" != xNONE; then
438       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
439     fi
440     nonopt="$ac_option"
441     ;;
442
443   esac
444 done
445
446 if test -n "$ac_prev"; then
447   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
448 fi
449
450 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
451
452 # File descriptor usage:
453 # 0 standard input
454 # 1 file creation
455 # 2 errors and warnings
456 # 3 some systems may open it to /dev/tty
457 # 4 used on the Kubota Titan
458 # 6 checking for... messages and results
459 # 5 compiler messages saved in config.log
460 if test "$silent" = yes; then
461   exec 6>/dev/null
462 else
463   exec 6>&1
464 fi
465 exec 5>./config.log
466
467 echo "\
468 This file contains any messages produced by compilers while
469 running configure, to aid debugging if configure makes a mistake.
470 " 1>&5
471
472 # Strip out --no-create and --no-recursion so they do not pile up.
473 # Also quote any args containing shell metacharacters.
474 ac_configure_args=
475 for ac_arg
476 do
477   case "$ac_arg" in
478   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
479   | --no-cr | --no-c) ;;
480   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
481   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
482   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
483   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
484   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
485   esac
486 done
487
488 # NLS nuisances.
489 # Only set these to C if already set.  These must not be set unconditionally
490 # because not all systems understand e.g. LANG=C (notably SCO).
491 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
492 # Non-C LC_CTYPE values break the ctype check.
493 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
494 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
495 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
496 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
497
498 # confdefs.h avoids OS command line length limits that DEFS can exceed.
499 rm -rf conftest* confdefs.h
500 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
501 echo > confdefs.h
502
503 # A filename unique to this package, relative to the directory that
504 # configure is in, which we can look for to find out if srcdir is correct.
505 ac_unique_file=src/ios.cc
506
507 # Find the source files, if location was not specified.
508 if test -z "$srcdir"; then
509   ac_srcdir_defaulted=yes
510   # Try the directory containing this script, then its parent.
511   ac_prog=$0
512   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
513   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
514   srcdir=$ac_confdir
515   if test ! -r $srcdir/$ac_unique_file; then
516     srcdir=..
517   fi
518 else
519   ac_srcdir_defaulted=no
520 fi
521 if test ! -r $srcdir/$ac_unique_file; then
522   if test "$ac_srcdir_defaulted" = yes; then
523     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
524   else
525     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
526   fi
527 fi
528 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
529
530 # Prefer explicitly selected file to automatically selected ones.
531 if test -z "$CONFIG_SITE"; then
532   if test "x$prefix" != xNONE; then
533     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
534   else
535     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
536   fi
537 fi
538 for ac_site_file in $CONFIG_SITE; do
539   if test -r "$ac_site_file"; then
540     echo "loading site script $ac_site_file"
541     . "$ac_site_file"
542   fi
543 done
544
545 if test -r "$cache_file"; then
546   echo "loading cache $cache_file"
547   . $cache_file
548 else
549   echo "creating cache $cache_file"
550   > $cache_file
551 fi
552
553 ac_ext=c
554 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
555 ac_cpp='$CPP $CPPFLAGS'
556 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
557 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
558 cross_compiling=$ac_cv_prog_cc_cross
559
560 ac_exeext=
561 ac_objext=o
562 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
563   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
564   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
565     ac_n= ac_c='
566 ' ac_t='        '
567   else
568     ac_n=-n ac_c= ac_t=
569   fi
570 else
571   ac_n= ac_c='\c' ac_t=
572 fi
573
574
575
576 PACKAGE=libstdc++
577
578 # For typical GNU versioning info, format is MAJOR.MINOR.MICRO
579 release_VERSION=3.1.0
580
581 # For libtool versioning info, format is CURRENT:REVISION:AGE
582 libtool_VERSION=4:0:0
583
584
585 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
586 # AC 2.50 sets target_alias iff the user specified --target, but we use it
587 # everywhere, so we set it here just to be sure.
588 ac_aux_dir=
589 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
590   if test -f $ac_dir/install-sh; then
591     ac_aux_dir=$ac_dir
592     ac_install_sh="$ac_aux_dir/install-sh -c"
593     break
594   elif test -f $ac_dir/install.sh; then
595     ac_aux_dir=$ac_dir
596     ac_install_sh="$ac_aux_dir/install.sh -c"
597     break
598   fi
599 done
600 if test -z "$ac_aux_dir"; then
601   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
602 fi
603 ac_config_guess=$ac_aux_dir/config.guess
604 ac_config_sub=$ac_aux_dir/config.sub
605 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
606
607
608 # Do some error checking and defaulting for the host and target type.
609 # The inputs are:
610 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
611 #
612 # The rules are:
613 # 1. You are not allowed to specify --host, --target, and nonopt at the
614 #    same time.
615 # 2. Host defaults to nonopt.
616 # 3. If nonopt is not specified, then host defaults to the current host,
617 #    as determined by config.guess.
618 # 4. Target and build default to nonopt.
619 # 5. If nonopt is not specified, then target and build default to host.
620
621 # The aliases save the names the user supplied, while $host etc.
622 # will get canonicalized.
623 case $host---$target---$nonopt in
624 NONE---*---* | *---NONE---* | *---*---NONE) ;;
625 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
626 esac
627
628
629 # Make sure we can run config.sub.
630 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
631 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
632 fi
633
634 echo $ac_n "checking host system type""... $ac_c" 1>&6
635 echo "configure:636: checking host system type" >&5
636
637 host_alias=$host
638 case "$host_alias" in
639 NONE)
640   case $nonopt in
641   NONE)
642     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
643     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
644     fi ;;
645   *) host_alias=$nonopt ;;
646   esac ;;
647 esac
648
649 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
650 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
651 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
652 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
653 echo "$ac_t""$host" 1>&6
654
655 echo $ac_n "checking target system type""... $ac_c" 1>&6
656 echo "configure:657: checking target system type" >&5
657
658 target_alias=$target
659 case "$target_alias" in
660 NONE)
661   case $nonopt in
662   NONE) target_alias=$host_alias ;;
663   *) target_alias=$nonopt ;;
664   esac ;;
665 esac
666
667 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
668 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
669 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
670 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671 echo "$ac_t""$target" 1>&6
672
673 echo $ac_n "checking build system type""... $ac_c" 1>&6
674 echo "configure:675: checking build system type" >&5
675
676 build_alias=$build
677 case "$build_alias" in
678 NONE)
679   case $nonopt in
680   NONE) build_alias=$host_alias ;;
681   *) build_alias=$nonopt ;;
682   esac ;;
683 esac
684
685 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
686 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
687 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
688 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
689 echo "$ac_t""$build" 1>&6
690
691 test "$host_alias" != "$target_alias" &&
692   test "$program_prefix$program_suffix$program_transform_name" = \
693     NONENONEs,x,x, &&
694   program_prefix=${target_alias}-
695
696 target_alias=${target_alias-$target}
697
698
699 # Find a good install program.  We prefer a C program (faster),
700 # so one script is as good as another.  But avoid the broken or
701 # incompatible versions:
702 # SysV /etc/install, /usr/sbin/install
703 # SunOS /usr/etc/install
704 # IRIX /sbin/install
705 # AIX /bin/install
706 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
707 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
708 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
709 # ./install, which can be erroneously created by make from ./install.sh.
710 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
711 echo "configure:712: checking for a BSD compatible install" >&5
712 if test -z "$INSTALL"; then
713 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
714   echo $ac_n "(cached) $ac_c" 1>&6
715 else
716     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
717   for ac_dir in $PATH; do
718     # Account for people who put trailing slashes in PATH elements.
719     case "$ac_dir/" in
720     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
721     *)
722       # OSF1 and SCO ODT 3.0 have their own names for install.
723       # Don't use installbsd from OSF since it installs stuff as root
724       # by default.
725       for ac_prog in ginstall scoinst install; do
726         if test -f $ac_dir/$ac_prog; then
727           if test $ac_prog = install &&
728             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
729             # AIX install.  It has an incompatible calling convention.
730             :
731           else
732             ac_cv_path_install="$ac_dir/$ac_prog -c"
733             break 2
734           fi
735         fi
736       done
737       ;;
738     esac
739   done
740   IFS="$ac_save_IFS"
741
742 fi
743   if test "${ac_cv_path_install+set}" = set; then
744     INSTALL="$ac_cv_path_install"
745   else
746     # As a last resort, use the slow shell script.  We don't cache a
747     # path for INSTALL within a source directory, because that will
748     # break other packages using the cache if that directory is
749     # removed, or if the path is relative.
750     INSTALL="$ac_install_sh"
751   fi
752 fi
753 echo "$ac_t""$INSTALL" 1>&6
754
755 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
756 # It thinks the first close brace ends the variable substitution.
757 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
758
759 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
760
761 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
762
763 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
764 echo "configure:765: checking whether build environment is sane" >&5
765 # Just in case
766 sleep 1
767 echo timestamp > conftestfile
768 # Do `set' in a subshell so we don't clobber the current shell's
769 # arguments.  Must try -L first in case configure is actually a
770 # symlink; some systems play weird games with the mod time of symlinks
771 # (eg FreeBSD returns the mod time of the symlink's containing
772 # directory).
773 if (
774    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
775    if test "$*" = "X"; then
776       # -L didn't work.
777       set X `ls -t $srcdir/configure conftestfile`
778    fi
779    if test "$*" != "X $srcdir/configure conftestfile" \
780       && test "$*" != "X conftestfile $srcdir/configure"; then
781
782       # If neither matched, then we have a broken ls.  This can happen
783       # if, for instance, CONFIG_SHELL is bash and it inherits a
784       # broken ls alias from the environment.  This has actually
785       # happened.  Such a system could not be considered "sane".
786       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
787 alias in your environment" 1>&2; exit 1; }
788    fi
789
790    test "$2" = conftestfile
791    )
792 then
793    # Ok.
794    :
795 else
796    { echo "configure: error: newly created file is older than distributed files!
797 Check your system clock" 1>&2; exit 1; }
798 fi
799 rm -f conftest*
800 echo "$ac_t""yes" 1>&6
801 if test "$program_transform_name" = s,x,x,; then
802   program_transform_name=
803 else
804   # Double any \ or $.  echo might interpret backslashes.
805   cat <<\EOF_SED > conftestsed
806 s,\\,\\\\,g; s,\$,$$,g
807 EOF_SED
808   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
809   rm -f conftestsed
810 fi
811 test "$program_prefix" != NONE &&
812   program_transform_name="s,^,${program_prefix},; $program_transform_name"
813 # Use a double $ so make ignores it.
814 test "$program_suffix" != NONE &&
815   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
816
817 # sed with no file args requires a program.
818 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
819
820 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
821 echo "configure:822: checking whether ${MAKE-make} sets \${MAKE}" >&5
822 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
823 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
824   echo $ac_n "(cached) $ac_c" 1>&6
825 else
826   cat > conftestmake <<\EOF
827 all:
828         @echo 'ac_maketemp="${MAKE}"'
829 EOF
830 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
831 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
832 if test -n "$ac_maketemp"; then
833   eval ac_cv_prog_make_${ac_make}_set=yes
834 else
835   eval ac_cv_prog_make_${ac_make}_set=no
836 fi
837 rm -f conftestmake
838 fi
839 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
840   echo "$ac_t""yes" 1>&6
841   SET_MAKE=
842 else
843   echo "$ac_t""no" 1>&6
844   SET_MAKE="MAKE=${MAKE-make}"
845 fi
846
847
848 PACKAGE=$PACKAGE
849
850 VERSION=$release_VERSION
851
852 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
853   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
854 fi
855 cat >> confdefs.h <<EOF
856 #define PACKAGE "$PACKAGE"
857 EOF
858
859 cat >> confdefs.h <<EOF
860 #define VERSION "$VERSION"
861 EOF
862
863
864
865 missing_dir=`cd $ac_aux_dir && pwd`
866 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
867 echo "configure:868: checking for working aclocal" >&5
868 # Run test in a subshell; some versions of sh will print an error if
869 # an executable is not found, even if stderr is redirected.
870 # Redirect stdin to placate older versions of autoconf.  Sigh.
871 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
872    ACLOCAL=aclocal
873    echo "$ac_t""found" 1>&6
874 else
875    ACLOCAL="$missing_dir/missing aclocal"
876    echo "$ac_t""missing" 1>&6
877 fi
878
879 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
880 echo "configure:881: checking for working autoconf" >&5
881 # Run test in a subshell; some versions of sh will print an error if
882 # an executable is not found, even if stderr is redirected.
883 # Redirect stdin to placate older versions of autoconf.  Sigh.
884 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
885    AUTOCONF=autoconf
886    echo "$ac_t""found" 1>&6
887 else
888    AUTOCONF="$missing_dir/missing autoconf"
889    echo "$ac_t""missing" 1>&6
890 fi
891
892 echo $ac_n "checking for working automake""... $ac_c" 1>&6
893 echo "configure:894: checking for working automake" >&5
894 # Run test in a subshell; some versions of sh will print an error if
895 # an executable is not found, even if stderr is redirected.
896 # Redirect stdin to placate older versions of autoconf.  Sigh.
897 if (automake --version) < /dev/null > /dev/null 2>&1; then
898    AUTOMAKE=automake
899    echo "$ac_t""found" 1>&6
900 else
901    AUTOMAKE="$missing_dir/missing automake"
902    echo "$ac_t""missing" 1>&6
903 fi
904
905 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
906 echo "configure:907: checking for working autoheader" >&5
907 # Run test in a subshell; some versions of sh will print an error if
908 # an executable is not found, even if stderr is redirected.
909 # Redirect stdin to placate older versions of autoconf.  Sigh.
910 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
911    AUTOHEADER=autoheader
912    echo "$ac_t""found" 1>&6
913 else
914    AUTOHEADER="$missing_dir/missing autoheader"
915    echo "$ac_t""missing" 1>&6
916 fi
917
918 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
919 echo "configure:920: checking for working makeinfo" >&5
920 # Run test in a subshell; some versions of sh will print an error if
921 # an executable is not found, even if stderr is redirected.
922 # Redirect stdin to placate older versions of autoconf.  Sigh.
923 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
924    MAKEINFO=makeinfo
925    echo "$ac_t""found" 1>&6
926 else
927    MAKEINFO="$missing_dir/missing makeinfo"
928    echo "$ac_t""missing" 1>&6
929 fi
930
931
932
933
934
935
936 # Runs configure.host and configure.target, as well as finds CC, CXX
937 # and assorted other critical bits. Have to run this before the
938 # GLIBCPP_ENABLE_* macros below.
939 if test $host != $build; then
940   ac_tool_prefix=${host_alias}-
941 else
942   ac_tool_prefix=
943 fi
944
945 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
946 echo "configure:947: checking for Cygwin environment" >&5
947 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
948   echo $ac_n "(cached) $ac_c" 1>&6
949 else
950   cat > conftest.$ac_ext <<EOF
951 #line 952 "configure"
952 #include "confdefs.h"
953
954 int main() {
955
956 #ifndef __CYGWIN__
957 #define __CYGWIN__ __CYGWIN32__
958 #endif
959 return __CYGWIN__;
960 ; return 0; }
961 EOF
962 if { (eval echo configure:963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
963   rm -rf conftest*
964   ac_cv_cygwin=yes
965 else
966   echo "configure: failed program was:" >&5
967   cat conftest.$ac_ext >&5
968   rm -rf conftest*
969   ac_cv_cygwin=no
970 fi
971 rm -f conftest*
972 rm -f conftest*
973 fi
974
975 echo "$ac_t""$ac_cv_cygwin" 1>&6
976 CYGWIN=
977 test "$ac_cv_cygwin" = yes && CYGWIN=yes
978 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
979 echo "configure:980: checking for mingw32 environment" >&5
980 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
981   echo $ac_n "(cached) $ac_c" 1>&6
982 else
983   cat > conftest.$ac_ext <<EOF
984 #line 985 "configure"
985 #include "confdefs.h"
986
987 int main() {
988 return __MINGW32__;
989 ; return 0; }
990 EOF
991 if { (eval echo configure:992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
992   rm -rf conftest*
993   ac_cv_mingw32=yes
994 else
995   echo "configure: failed program was:" >&5
996   cat conftest.$ac_ext >&5
997   rm -rf conftest*
998   ac_cv_mingw32=no
999 fi
1000 rm -f conftest*
1001 rm -f conftest*
1002 fi
1003
1004 echo "$ac_t""$ac_cv_mingw32" 1>&6
1005 MINGW32=
1006 test "$ac_cv_mingw32" = yes && MINGW32=yes
1007
1008     # Check whether --enable-multilib or --disable-multilib was given.
1009 if test "${enable_multilib+set}" = set; then
1010   enableval="$enable_multilib"
1011   case "${enableval}" in
1012     yes) multilib=yes ;;
1013     no)  multilib=no ;;
1014     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1015    esac
1016 else
1017   multilib=yes
1018 fi
1019
1020 # When building with srcdir == objdir, links to the source files will
1021 # be created in directories within the target_subdir.  We have to
1022 # adjust toplevel_srcdir accordingly, so that configure finds
1023 # install-sh and other auxiliary files that live in the top-level
1024 # source directory.
1025 if test "${srcdir}" = "."; then
1026   if test -z "${with_target_subdir}"; then
1027     toprel=".."
1028   else
1029     if test "${with_target_subdir}" != "."; then
1030       toprel="${with_multisrctop}../.."
1031     else
1032       toprel="${with_multisrctop}.."
1033     fi
1034   fi
1035 else
1036   toprel=".."
1037 fi
1038 ac_aux_dir=
1039 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1040   if test -f $ac_dir/install-sh; then
1041     ac_aux_dir=$ac_dir
1042     ac_install_sh="$ac_aux_dir/install-sh -c"
1043     break
1044   elif test -f $ac_dir/install.sh; then
1045     ac_aux_dir=$ac_dir
1046     ac_install_sh="$ac_aux_dir/install.sh -c"
1047     break
1048   fi
1049 done
1050 if test -z "$ac_aux_dir"; then
1051   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
1052 fi
1053 ac_config_guess=$ac_aux_dir/config.guess
1054 ac_config_sub=$ac_aux_dir/config.sub
1055 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1056
1057 toplevel_srcdir=\${top_srcdir}/$toprel
1058
1059
1060 # Export build and source directories.
1061 # These need to be absolute paths, yet at the same time need to
1062 # canonicalize only relative paths, because then amd will not unmount
1063 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1064 glibcpp_builddir=`pwd`
1065 case $srcdir in
1066 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1067 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1068 esac
1069
1070
1071
1072
1073
1074 # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.50+, can also
1075 # be 'cp -p' if linking isn't available.
1076 #ac_cv_prog_LN_S='cp -p'
1077 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1078 echo "configure:1079: checking whether ln -s works" >&5
1079 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1080   echo $ac_n "(cached) $ac_c" 1>&6
1081 else
1082   rm -f conftestdata
1083 if ln -s X conftestdata 2>/dev/null
1084 then
1085   rm -f conftestdata
1086   ac_cv_prog_LN_S="ln -s"
1087 else
1088   ac_cv_prog_LN_S=ln
1089 fi
1090 fi
1091 LN_S="$ac_cv_prog_LN_S"
1092 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1093   echo "$ac_t""yes" 1>&6
1094 else
1095   echo "$ac_t""no" 1>&6
1096 fi
1097
1098
1099 # We use these options to decide which functions to include.
1100 # Check whether --with-target-subdir or --without-target-subdir was given.
1101 if test "${with_target_subdir+set}" = set; then
1102   withval="$with_target_subdir"
1103   :
1104 fi
1105
1106 # Check whether --with-cross-host or --without-cross-host was given.
1107 if test "${with_cross_host+set}" = set; then
1108   withval="$with_cross_host"
1109   :
1110 fi
1111
1112
1113   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
1114   
1115
1116   # Never versions of autoconf add an underscore to these functions.
1117   # Prevent future problems ...
1118   
1119   
1120   
1121   
1122
1123 #  AC_PROG_CC
1124
1125 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1126 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1127 # are probably using a cross compiler, which will not be able to fully
1128 # link an executable.  This should really be fixed in autoconf
1129 # itself.
1130
1131
1132
1133
1134 # Extract the first word of "gcc", so it can be a program name with args.
1135 set dummy gcc; ac_word=$2
1136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1137 echo "configure:1138: checking for $ac_word" >&5
1138 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1139   echo $ac_n "(cached) $ac_c" 1>&6
1140 else
1141   if test -n "$CC"; then
1142   ac_cv_prog_CC="$CC" # Let the user override the test.
1143 else
1144   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1145   ac_dummy="$PATH"
1146   for ac_dir in $ac_dummy; do
1147     test -z "$ac_dir" && ac_dir=.
1148     if test -f $ac_dir/$ac_word; then
1149       ac_cv_prog_CC="gcc"
1150       break
1151     fi
1152   done
1153   IFS="$ac_save_ifs"
1154 fi
1155 fi
1156 CC="$ac_cv_prog_CC"
1157 if test -n "$CC"; then
1158   echo "$ac_t""$CC" 1>&6
1159 else
1160   echo "$ac_t""no" 1>&6
1161 fi
1162
1163 if test -z "$CC"; then
1164   # Extract the first word of "cc", so it can be a program name with args.
1165 set dummy cc; ac_word=$2
1166 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1167 echo "configure:1168: checking for $ac_word" >&5
1168 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1169   echo $ac_n "(cached) $ac_c" 1>&6
1170 else
1171   if test -n "$CC"; then
1172   ac_cv_prog_CC="$CC" # Let the user override the test.
1173 else
1174   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1175   ac_prog_rejected=no
1176   ac_dummy="$PATH"
1177   for ac_dir in $ac_dummy; do
1178     test -z "$ac_dir" && ac_dir=.
1179     if test -f $ac_dir/$ac_word; then
1180       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1181         ac_prog_rejected=yes
1182         continue
1183       fi
1184       ac_cv_prog_CC="cc"
1185       break
1186     fi
1187   done
1188   IFS="$ac_save_ifs"
1189 if test $ac_prog_rejected = yes; then
1190   # We found a bogon in the path, so make sure we never use it.
1191   set dummy $ac_cv_prog_CC
1192   shift
1193   if test $# -gt 0; then
1194     # We chose a different compiler from the bogus one.
1195     # However, it has the same basename, so the bogon will be chosen
1196     # first if we set CC to just the basename; use the full file name.
1197     shift
1198     set dummy "$ac_dir/$ac_word" "$@"
1199     shift
1200     ac_cv_prog_CC="$@"
1201   fi
1202 fi
1203 fi
1204 fi
1205 CC="$ac_cv_prog_CC"
1206 if test -n "$CC"; then
1207   echo "$ac_t""$CC" 1>&6
1208 else
1209   echo "$ac_t""no" 1>&6
1210 fi
1211
1212   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1213 fi
1214
1215 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1216 echo "configure:1217: checking whether we are using GNU C" >&5
1217 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1218   echo $ac_n "(cached) $ac_c" 1>&6
1219 else
1220   cat > conftest.c <<EOF
1221 #ifdef __GNUC__
1222   yes;
1223 #endif
1224 EOF
1225 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1226   ac_cv_prog_gcc=yes
1227 else
1228   ac_cv_prog_gcc=no
1229 fi
1230 fi
1231
1232 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1233
1234 if test $ac_cv_prog_gcc = yes; then
1235   GCC=yes
1236   ac_test_CFLAGS="${CFLAGS+set}"
1237   ac_save_CFLAGS="$CFLAGS"
1238   CFLAGS=
1239   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1240 echo "configure:1241: checking whether ${CC-cc} accepts -g" >&5
1241 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1242   echo $ac_n "(cached) $ac_c" 1>&6
1243 else
1244   echo 'void f(){}' > conftest.c
1245 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1246   ac_cv_prog_cc_g=yes
1247 else
1248   ac_cv_prog_cc_g=no
1249 fi
1250 rm -f conftest*
1251
1252 fi
1253
1254 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1255   if test "$ac_test_CFLAGS" = set; then
1256     CFLAGS="$ac_save_CFLAGS"
1257   elif test $ac_cv_prog_cc_g = yes; then
1258     CFLAGS="-g -O2"
1259   else
1260     CFLAGS="-O2"
1261   fi
1262 else
1263   GCC=
1264   test "${CFLAGS+set}" = set || CFLAGS="-g"
1265 fi
1266
1267
1268 # Can't just call these here as g++ requires libstc++ to be built....
1269 #  AC_PROG_CXX
1270
1271 # Likewise for AC_PROG_CXX.
1272
1273
1274
1275 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1276 # flags that come in CXX while configuring libstdc++.  They're different
1277 # from those used for all other target libraries.  If CXX is set in
1278 # the environment, respect that here.
1279 glibcpp_CXX=$CXX
1280 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1281 do
1282 # Extract the first word of "$ac_prog", so it can be a program name with args.
1283 set dummy $ac_prog; ac_word=$2
1284 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1285 echo "configure:1286: checking for $ac_word" >&5
1286 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1287   echo $ac_n "(cached) $ac_c" 1>&6
1288 else
1289   if test -n "$glibcpp_CXX"; then
1290   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1291 else
1292   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1293   ac_dummy="$PATH"
1294   for ac_dir in $ac_dummy; do
1295     test -z "$ac_dir" && ac_dir=.
1296     if test -f $ac_dir/$ac_word; then
1297       ac_cv_prog_glibcpp_CXX="$ac_prog"
1298       break
1299     fi
1300   done
1301   IFS="$ac_save_ifs"
1302 fi
1303 fi
1304 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1305 if test -n "$glibcpp_CXX"; then
1306   echo "$ac_t""$glibcpp_CXX" 1>&6
1307 else
1308   echo "$ac_t""no" 1>&6
1309 fi
1310
1311 test -n "$glibcpp_CXX" && break
1312 done
1313 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1314
1315
1316 CXX=$glibcpp_CXX
1317 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1318
1319 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1320 echo "configure:1321: checking whether we are using GNU C++" >&5
1321 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1322   echo $ac_n "(cached) $ac_c" 1>&6
1323 else
1324   cat > conftest.C <<EOF
1325 #ifdef __GNUC__
1326   yes;
1327 #endif
1328 EOF
1329 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1330   ac_cv_prog_gxx=yes
1331 else
1332   ac_cv_prog_gxx=no
1333 fi
1334 fi
1335
1336 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1337
1338 if test $ac_cv_prog_gxx = yes; then
1339   GXX=yes
1340   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1341   ac_save_CXXFLAGS="$CXXFLAGS"
1342   CXXFLAGS=
1343   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1344 echo "configure:1345: checking whether ${CXX-g++} accepts -g" >&5
1345 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1346   echo $ac_n "(cached) $ac_c" 1>&6
1347 else
1348   echo 'void f(){}' > conftest.cc
1349 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1350   ac_cv_prog_cxx_g=yes
1351 else
1352   ac_cv_prog_cxx_g=no
1353 fi
1354 rm -f conftest*
1355
1356 fi
1357
1358 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1359   if test "$ac_test_CXXFLAGS" = set; then
1360     CXXFLAGS="$ac_save_CXXFLAGS"
1361   elif test $ac_cv_prog_cxx_g = yes; then
1362     CXXFLAGS="-g -O2"
1363   else
1364     CXXFLAGS="-O2"
1365   fi
1366 else
1367   GXX=
1368   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1369 fi
1370
1371
1372    # For some reason, gettext needs this.
1373    
1374         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1375 echo "configure:1376: checking for strerror in -lcposix" >&5
1376 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1377 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1378   echo $ac_n "(cached) $ac_c" 1>&6
1379 else
1380   ac_save_LIBS="$LIBS"
1381 LIBS="-lcposix  $LIBS"
1382 cat > conftest.$ac_ext <<EOF
1383 #line 1384 "configure"
1384 #include "confdefs.h"
1385 /* Override any gcc2 internal prototype to avoid an error.  */
1386 /* We use char because int might match the return type of a gcc2
1387     builtin and then its argument prototype would still apply.  */
1388 char strerror();
1389
1390 int main() {
1391 strerror()
1392 ; return 0; }
1393 EOF
1394 if { (eval echo configure:1395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1395   rm -rf conftest*
1396   eval "ac_cv_lib_$ac_lib_var=yes"
1397 else
1398   echo "configure: failed program was:" >&5
1399   cat conftest.$ac_ext >&5
1400   rm -rf conftest*
1401   eval "ac_cv_lib_$ac_lib_var=no"
1402 fi
1403 rm -f conftest*
1404 LIBS="$ac_save_LIBS"
1405
1406 fi
1407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1408   echo "$ac_t""yes" 1>&6
1409   LIBS="$LIBS -lcposix"
1410 else
1411   echo "$ac_t""no" 1>&6
1412 fi
1413
1414   
1415
1416
1417   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1418 set dummy ${ac_tool_prefix}as; ac_word=$2
1419 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1420 echo "configure:1421: checking for $ac_word" >&5
1421 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1422   echo $ac_n "(cached) $ac_c" 1>&6
1423 else
1424   if test -n "$AS"; then
1425   ac_cv_prog_AS="$AS" # Let the user override the test.
1426 else
1427   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1428   ac_dummy="$PATH"
1429   for ac_dir in $ac_dummy; do
1430     test -z "$ac_dir" && ac_dir=.
1431     if test -f $ac_dir/$ac_word; then
1432       ac_cv_prog_AS="${ac_tool_prefix}as"
1433       break
1434     fi
1435   done
1436   IFS="$ac_save_ifs"
1437   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1438 fi
1439 fi
1440 AS="$ac_cv_prog_AS"
1441 if test -n "$AS"; then
1442   echo "$ac_t""$AS" 1>&6
1443 else
1444   echo "$ac_t""no" 1>&6
1445 fi
1446
1447
1448
1449   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1450 set dummy ${ac_tool_prefix}ar; ac_word=$2
1451 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1452 echo "configure:1453: checking for $ac_word" >&5
1453 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1454   echo $ac_n "(cached) $ac_c" 1>&6
1455 else
1456   if test -n "$AR"; then
1457   ac_cv_prog_AR="$AR" # Let the user override the test.
1458 else
1459   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1460   ac_dummy="$PATH"
1461   for ac_dir in $ac_dummy; do
1462     test -z "$ac_dir" && ac_dir=.
1463     if test -f $ac_dir/$ac_word; then
1464       ac_cv_prog_AR="${ac_tool_prefix}ar"
1465       break
1466     fi
1467   done
1468   IFS="$ac_save_ifs"
1469   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1470 fi
1471 fi
1472 AR="$ac_cv_prog_AR"
1473 if test -n "$AR"; then
1474   echo "$ac_t""$AR" 1>&6
1475 else
1476   echo "$ac_t""no" 1>&6
1477 fi
1478
1479
1480
1481   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1482 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1483 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1484 echo "configure:1485: checking for $ac_word" >&5
1485 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1486   echo $ac_n "(cached) $ac_c" 1>&6
1487 else
1488   if test -n "$RANLIB"; then
1489   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1490 else
1491   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1492   ac_dummy="$PATH"
1493   for ac_dir in $ac_dummy; do
1494     test -z "$ac_dir" && ac_dir=.
1495     if test -f $ac_dir/$ac_word; then
1496       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1497       break
1498     fi
1499   done
1500   IFS="$ac_save_ifs"
1501 fi
1502 fi
1503 RANLIB="$ac_cv_prog_RANLIB"
1504 if test -n "$RANLIB"; then
1505   echo "$ac_t""$RANLIB" 1>&6
1506 else
1507   echo "$ac_t""no" 1>&6
1508 fi
1509
1510
1511 if test -z "$ac_cv_prog_RANLIB"; then
1512 if test -n "$ac_tool_prefix"; then
1513   # Extract the first word of "ranlib", so it can be a program name with args.
1514 set dummy ranlib; ac_word=$2
1515 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1516 echo "configure:1517: checking for $ac_word" >&5
1517 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1518   echo $ac_n "(cached) $ac_c" 1>&6
1519 else
1520   if test -n "$RANLIB"; then
1521   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1522 else
1523   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1524   ac_dummy="$PATH"
1525   for ac_dir in $ac_dummy; do
1526     test -z "$ac_dir" && ac_dir=.
1527     if test -f $ac_dir/$ac_word; then
1528       ac_cv_prog_RANLIB="ranlib"
1529       break
1530     fi
1531   done
1532   IFS="$ac_save_ifs"
1533   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1534 fi
1535 fi
1536 RANLIB="$ac_cv_prog_RANLIB"
1537 if test -n "$RANLIB"; then
1538   echo "$ac_t""$RANLIB" 1>&6
1539 else
1540   echo "$ac_t""no" 1>&6
1541 fi
1542
1543 else
1544   RANLIB="ranlib-not-found-in-path-error"
1545 fi
1546 fi
1547
1548   # Find a good install program.  We prefer a C program (faster),
1549 # so one script is as good as another.  But avoid the broken or
1550 # incompatible versions:
1551 # SysV /etc/install, /usr/sbin/install
1552 # SunOS /usr/etc/install
1553 # IRIX /sbin/install
1554 # AIX /bin/install
1555 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1556 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1557 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1558 # ./install, which can be erroneously created by make from ./install.sh.
1559 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1560 echo "configure:1561: checking for a BSD compatible install" >&5
1561 if test -z "$INSTALL"; then
1562 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1563   echo $ac_n "(cached) $ac_c" 1>&6
1564 else
1565     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1566   for ac_dir in $PATH; do
1567     # Account for people who put trailing slashes in PATH elements.
1568     case "$ac_dir/" in
1569     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1570     *)
1571       # OSF1 and SCO ODT 3.0 have their own names for install.
1572       # Don't use installbsd from OSF since it installs stuff as root
1573       # by default.
1574       for ac_prog in ginstall scoinst install; do
1575         if test -f $ac_dir/$ac_prog; then
1576           if test $ac_prog = install &&
1577             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1578             # AIX install.  It has an incompatible calling convention.
1579             :
1580           else
1581             ac_cv_path_install="$ac_dir/$ac_prog -c"
1582             break 2
1583           fi
1584         fi
1585       done
1586       ;;
1587     esac
1588   done
1589   IFS="$ac_save_IFS"
1590
1591 fi
1592   if test "${ac_cv_path_install+set}" = set; then
1593     INSTALL="$ac_cv_path_install"
1594   else
1595     # As a last resort, use the slow shell script.  We don't cache a
1596     # path for INSTALL within a source directory, because that will
1597     # break other packages using the cache if that directory is
1598     # removed, or if the path is relative.
1599     INSTALL="$ac_install_sh"
1600   fi
1601 fi
1602 echo "$ac_t""$INSTALL" 1>&6
1603
1604 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1605 # It thinks the first close brace ends the variable substitution.
1606 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1607
1608 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1609
1610 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1611
1612
1613   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1614 echo "configure:1615: checking whether to enable maintainer-specific portions of Makefiles" >&5
1615     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1616 if test "${enable_maintainer_mode+set}" = set; then
1617   enableval="$enable_maintainer_mode"
1618   USE_MAINTAINER_MODE=$enableval
1619 else
1620   USE_MAINTAINER_MODE=no
1621 fi
1622
1623   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1624   
1625
1626 if test $USE_MAINTAINER_MODE = yes; then
1627   MAINTAINER_MODE_TRUE=
1628   MAINTAINER_MODE_FALSE='#'
1629 else
1630   MAINTAINER_MODE_TRUE='#'
1631   MAINTAINER_MODE_FALSE=
1632 fi
1633   MAINT=$MAINTAINER_MODE_TRUE
1634   
1635
1636
1637   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1638   # at least currently, we never actually build a program, so we never
1639   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1640   # fails, because we are probably configuring with a cross compiler
1641   # which can't create executables.  So we include AC_EXEEXT to keep
1642   # automake happy, but we don't execute it, since we don't care about
1643   # the result.
1644   if false; then
1645     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1646     # to nothing, so nothing would remain between `then' and `fi' if it
1647     # were not for the `:' below.
1648     :
1649     
1650
1651 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1652 echo "configure:1653: checking for executable suffix" >&5
1653 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1654   echo $ac_n "(cached) $ac_c" 1>&6
1655 else
1656   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1657   ac_cv_exeext=.exe
1658 else
1659   rm -f conftest*
1660   echo 'int main () { return 0; }' > conftest.$ac_ext
1661   ac_cv_exeext=
1662   if { (eval echo configure:1663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1663     for file in conftest.*; do
1664       case $file in
1665       *.c | *.o | *.obj) ;;
1666       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1667       esac
1668     done
1669   else
1670     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1671   fi
1672   rm -f conftest*
1673   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1674 fi
1675 fi
1676
1677 EXEEXT=""
1678 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1679 echo "$ac_t""${ac_cv_exeext}" 1>&6
1680 ac_exeext=$EXEEXT
1681
1682   fi
1683
1684   . ${glibcpp_basedir}/configure.host
1685
1686   case ${glibcpp_basedir} in
1687     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1688     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1689   esac
1690
1691   # This does for the target what configure.host does for the host.  In
1692   # addition to possibly modifying the same flags, it also sets up symlinks.
1693   
1694     . ${glibcpp_basedir}/configure.target
1695     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1696     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1697
1698
1699   # 
1700
1701
1702
1703 # Check whether --enable-shared or --disable-shared was given.
1704 if test "${enable_shared+set}" = set; then
1705   enableval="$enable_shared"
1706   p=${PACKAGE-default}
1707 case $enableval in
1708 yes) enable_shared=yes ;;
1709 no) enable_shared=no ;;
1710 *)
1711   enable_shared=no
1712   # Look at the argument we got.  We use all the common list separators.
1713   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1714   for pkg in $enableval; do
1715     if test "X$pkg" = "X$p"; then
1716       enable_shared=yes
1717     fi
1718   done
1719   IFS="$ac_save_ifs"
1720   ;;
1721 esac
1722 else
1723   enable_shared=yes
1724 fi
1725
1726 # Check whether --enable-static or --disable-static was given.
1727 if test "${enable_static+set}" = set; then
1728   enableval="$enable_static"
1729   p=${PACKAGE-default}
1730 case $enableval in
1731 yes) enable_static=yes ;;
1732 no) enable_static=no ;;
1733 *)
1734   enable_static=no
1735   # Look at the argument we got.  We use all the common list separators.
1736   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1737   for pkg in $enableval; do
1738     if test "X$pkg" = "X$p"; then
1739       enable_static=yes
1740     fi
1741   done
1742   IFS="$ac_save_ifs"
1743   ;;
1744 esac
1745 else
1746   enable_static=yes
1747 fi
1748
1749 # Check whether --enable-fast-install or --disable-fast-install was given.
1750 if test "${enable_fast_install+set}" = set; then
1751   enableval="$enable_fast_install"
1752   p=${PACKAGE-default}
1753 case $enableval in
1754 yes) enable_fast_install=yes ;;
1755 no) enable_fast_install=no ;;
1756 *)
1757   enable_fast_install=no
1758   # Look at the argument we got.  We use all the common list separators.
1759   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1760   for pkg in $enableval; do
1761     if test "X$pkg" = "X$p"; then
1762       enable_fast_install=yes
1763     fi
1764   done
1765   IFS="$ac_save_ifs"
1766   ;;
1767 esac
1768 else
1769   enable_fast_install=yes
1770 fi
1771
1772 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1773 if test "${with_gnu_ld+set}" = set; then
1774   withval="$with_gnu_ld"
1775   test "$withval" = no || with_gnu_ld=yes
1776 else
1777   with_gnu_ld=no
1778 fi
1779
1780 ac_prog=ld
1781 if test "$GCC" = yes; then
1782   # Check if gcc -print-prog-name=ld gives a path.
1783   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1784 echo "configure:1785: checking for ld used by GCC" >&5
1785   case $host in
1786   *-*-mingw*)
1787     # gcc leaves a trailing carriage return which upsets mingw
1788     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1789   *)
1790     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1791   esac
1792   case $ac_prog in
1793     # Accept absolute paths.
1794     [\\/]* | [A-Za-z]:[\\/]*)
1795       re_direlt='/[^/][^/]*/\.\./'
1796       # Canonicalize the path of ld
1797       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1798       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1799         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1800       done
1801       test -z "$LD" && LD="$ac_prog"
1802       ;;
1803   "")
1804     # If it fails, then pretend we aren't using GCC.
1805     ac_prog=ld
1806     ;;
1807   *)
1808     # If it is relative, then search for the first ld in PATH.
1809     with_gnu_ld=unknown
1810     ;;
1811   esac
1812 elif test "$with_gnu_ld" = yes; then
1813   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1814 echo "configure:1815: checking for GNU ld" >&5
1815 else
1816   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1817 echo "configure:1818: checking for non-GNU ld" >&5
1818 fi
1819 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1820   echo $ac_n "(cached) $ac_c" 1>&6
1821 else
1822   if test -z "$LD"; then
1823   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1824   for ac_dir in $PATH; do
1825     test -z "$ac_dir" && ac_dir=.
1826     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1827       lt_cv_path_LD="$ac_dir/$ac_prog"
1828       # Check to see if the program is GNU ld.  I'd rather use --version,
1829       # but apparently some GNU ld's only accept -v.
1830       # Break only if it was the GNU/non-GNU ld that we prefer.
1831       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1832         test "$with_gnu_ld" != no && break
1833       else
1834         test "$with_gnu_ld" != yes && break
1835       fi
1836     fi
1837   done
1838   IFS="$ac_save_ifs"
1839 else
1840   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1841 fi
1842 fi
1843
1844 LD="$lt_cv_path_LD"
1845 if test -n "$LD"; then
1846   echo "$ac_t""$LD" 1>&6
1847 else
1848   echo "$ac_t""no" 1>&6
1849 fi
1850 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1851 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1852 echo "configure:1853: checking if the linker ($LD) is GNU ld" >&5
1853 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1854   echo $ac_n "(cached) $ac_c" 1>&6
1855 else
1856   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1857 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1858   lt_cv_prog_gnu_ld=yes
1859 else
1860   lt_cv_prog_gnu_ld=no
1861 fi
1862 fi
1863
1864 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1865 with_gnu_ld=$lt_cv_prog_gnu_ld
1866
1867
1868 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1869 echo "configure:1870: checking for $LD option to reload object files" >&5
1870 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1871   echo $ac_n "(cached) $ac_c" 1>&6
1872 else
1873   lt_cv_ld_reload_flag='-r'
1874 fi
1875
1876 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1877 reload_flag=$lt_cv_ld_reload_flag
1878 test -n "$reload_flag" && reload_flag=" $reload_flag"
1879
1880 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1881 echo "configure:1882: checking for BSD-compatible nm" >&5
1882 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1883   echo $ac_n "(cached) $ac_c" 1>&6
1884 else
1885   if test -n "$NM"; then
1886   # Let the user override the test.
1887   lt_cv_path_NM="$NM"
1888 else
1889   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1890   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1891     test -z "$ac_dir" && ac_dir=.
1892     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1893     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1894       # Check to see if the nm accepts a BSD-compat flag.
1895       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1896       #   nm: unknown option "B" ignored
1897       # Tru64's nm complains that /dev/null is an invalid object file
1898       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1899         lt_cv_path_NM="$tmp_nm -B"
1900         break
1901       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1902         lt_cv_path_NM="$tmp_nm -p"
1903         break
1904       else
1905         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1906         continue # so that we can try to find one that supports BSD flags
1907       fi
1908     fi
1909   done
1910   IFS="$ac_save_ifs"
1911   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1912 fi
1913 fi
1914
1915 NM="$lt_cv_path_NM"
1916 echo "$ac_t""$NM" 1>&6
1917
1918 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1919 echo "configure:1920: checking how to recognise dependant libraries" >&5
1920 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1921   echo $ac_n "(cached) $ac_c" 1>&6
1922 else
1923   lt_cv_file_magic_cmd='$MAGIC_CMD'
1924 lt_cv_file_magic_test_file=
1925 lt_cv_deplibs_check_method='unknown'
1926 # Need to set the preceding variable on all platforms that support
1927 # interlibrary dependencies.
1928 # 'none' -- dependencies not supported.
1929 # `unknown' -- same as none, but documents that we really don't know.
1930 # 'pass_all' -- all dependencies passed with no checks.
1931 # 'test_compile' -- check by making test program.
1932 # 'file_magic [regex]' -- check by looking for files in library path
1933 # which responds to the $file_magic_cmd with a given egrep regex.
1934 # If you have `file' or equivalent on your system and you're not sure
1935 # whether `pass_all' will *always* work, you probably want this one.
1936
1937 case $host_os in
1938 aix*)
1939   lt_cv_deplibs_check_method=pass_all
1940   ;;
1941
1942 beos*)
1943   lt_cv_deplibs_check_method=pass_all
1944   ;;
1945
1946 bsdi4*)
1947   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1948   lt_cv_file_magic_cmd='/usr/bin/file -L'
1949   lt_cv_file_magic_test_file=/shlib/libc.so
1950   ;;
1951
1952 cygwin* | mingw* |pw32*)
1953   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1954   lt_cv_file_magic_cmd='$OBJDUMP -f'
1955   ;;
1956
1957 darwin* | rhapsody*)
1958   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1959   lt_cv_file_magic_cmd='/usr/bin/file -L'
1960   case "$host_os" in
1961   rhapsody* | darwin1.012)
1962     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1963     ;;
1964   *) # Darwin 1.3 on
1965     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1966     ;;
1967   esac
1968   ;;
1969
1970 freebsd* )
1971   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1972     case $host_cpu in
1973     i*86 )
1974       # Not sure whether the presence of OpenBSD here was a mistake.
1975       # Let's accept both of them until this is cleared up.
1976       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1977       lt_cv_file_magic_cmd=/usr/bin/file
1978       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1979       ;;
1980     esac
1981   else
1982     lt_cv_deplibs_check_method=pass_all
1983   fi
1984   ;;
1985
1986 gnu*)
1987   lt_cv_deplibs_check_method=pass_all
1988   ;;
1989
1990 hpux10.20*|hpux11*)
1991   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1992   lt_cv_file_magic_cmd=/usr/bin/file
1993   lt_cv_file_magic_test_file=/usr/lib/libc.sl
1994   ;;
1995
1996 irix5* | irix6*)
1997   case $host_os in
1998   irix5*)
1999     # this will be overridden with pass_all, but let us keep it just in case
2000     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2001     ;;
2002   *)
2003     case $LD in
2004     *-32|*"-32 ") libmagic=32-bit;;
2005     *-n32|*"-n32 ") libmagic=N32;;
2006     *-64|*"-64 ") libmagic=64-bit;;
2007     *) libmagic=never-match;;
2008     esac
2009     # this will be overridden with pass_all, but let us keep it just in case
2010     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2011     ;;
2012   esac
2013   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2014   lt_cv_deplibs_check_method=pass_all
2015   ;;
2016
2017 # This must be Linux ELF.
2018 linux-gnu*)
2019   case $host_cpu in
2020   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2021     lt_cv_deplibs_check_method=pass_all ;;
2022   *)
2023     # glibc up to 2.1.1 does not perform some relocations on ARM
2024     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2025   esac
2026   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2027   ;;
2028
2029 netbsd*)
2030   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2031     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2032   else
2033     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2034   fi
2035   ;;
2036
2037 newsos6)
2038   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2039   lt_cv_file_magic_cmd=/usr/bin/file
2040   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2041   ;;
2042
2043 osf3* | osf4* | osf5*)
2044   # this will be overridden with pass_all, but let us keep it just in case
2045   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2046   lt_cv_file_magic_test_file=/shlib/libc.so
2047   lt_cv_deplibs_check_method=pass_all
2048   ;;
2049
2050 sco3.2v5*)
2051   lt_cv_deplibs_check_method=pass_all
2052   ;;
2053
2054 solaris*)
2055   lt_cv_deplibs_check_method=pass_all
2056   lt_cv_file_magic_test_file=/lib/libc.so
2057   ;;
2058
2059 sysv5uw[78]* | sysv4*uw2*)
2060   lt_cv_deplibs_check_method=pass_all
2061   ;;
2062
2063 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2064   case $host_vendor in
2065   ncr)
2066     lt_cv_deplibs_check_method=pass_all
2067     ;;
2068   motorola)
2069     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2070     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2071     ;;
2072   esac
2073   ;;
2074 esac
2075
2076 fi
2077
2078 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2079 file_magic_cmd=$lt_cv_file_magic_cmd
2080 deplibs_check_method=$lt_cv_deplibs_check_method
2081
2082 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2083 echo "configure:2084: checking for object suffix" >&5
2084 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2085   echo $ac_n "(cached) $ac_c" 1>&6
2086 else
2087   rm -f conftest*
2088 echo 'int i = 1;' > conftest.$ac_ext
2089 if { (eval echo configure:2090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2090   for ac_file in conftest.*; do
2091     case $ac_file in
2092     *.c) ;;
2093     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2094     esac
2095   done
2096 else
2097   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2098 fi
2099 rm -f conftest*
2100 fi
2101
2102 echo "$ac_t""$ac_cv_objext" 1>&6
2103 OBJEXT=$ac_cv_objext
2104 ac_objext=$ac_cv_objext
2105
2106 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2107
2108 # Only perform the check for file, if the check method requires it
2109 case $deplibs_check_method in
2110 file_magic*)
2111   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2112     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2113 echo "configure:2114: checking for ${ac_tool_prefix}file" >&5
2114 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2115   echo $ac_n "(cached) $ac_c" 1>&6
2116 else
2117   case $MAGIC_CMD in
2118   /*)
2119   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2120   ;;
2121   ?:/*)
2122   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2123   ;;
2124   *)
2125   ac_save_MAGIC_CMD="$MAGIC_CMD"
2126   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2127   ac_dummy="/usr/bin:$PATH"
2128   for ac_dir in $ac_dummy; do
2129     test -z "$ac_dir" && ac_dir=.
2130     if test -f $ac_dir/${ac_tool_prefix}file; then
2131       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2132       if test -n "$file_magic_test_file"; then
2133         case $deplibs_check_method in
2134         "file_magic "*)
2135           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2136           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2137           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2138             egrep "$file_magic_regex" > /dev/null; then
2139             :
2140           else
2141             cat <<EOF 1>&2
2142
2143 *** Warning: the command libtool uses to detect shared libraries,
2144 *** $file_magic_cmd, produces output that libtool cannot recognize.
2145 *** The result is that libtool may fail to recognize shared libraries
2146 *** as such.  This will affect the creation of libtool libraries that
2147 *** depend on shared libraries, but programs linked with such libtool
2148 *** libraries will work regardless of this problem.  Nevertheless, you
2149 *** may want to report the problem to your system manager and/or to
2150 *** bug-libtool@gnu.org
2151
2152 EOF
2153           fi ;;
2154         esac
2155       fi
2156       break
2157     fi
2158   done
2159   IFS="$ac_save_ifs"
2160   MAGIC_CMD="$ac_save_MAGIC_CMD"
2161   ;;
2162 esac
2163 fi
2164
2165 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2166 if test -n "$MAGIC_CMD"; then
2167   echo "$ac_t""$MAGIC_CMD" 1>&6
2168 else
2169   echo "$ac_t""no" 1>&6
2170 fi
2171
2172 if test -z "$lt_cv_path_MAGIC_CMD"; then
2173   if test -n "$ac_tool_prefix"; then
2174     echo $ac_n "checking for file""... $ac_c" 1>&6
2175 echo "configure:2176: checking for file" >&5
2176 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2177   echo $ac_n "(cached) $ac_c" 1>&6
2178 else
2179   case $MAGIC_CMD in
2180   /*)
2181   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2182   ;;
2183   ?:/*)
2184   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2185   ;;
2186   *)
2187   ac_save_MAGIC_CMD="$MAGIC_CMD"
2188   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2189   ac_dummy="/usr/bin:$PATH"
2190   for ac_dir in $ac_dummy; do
2191     test -z "$ac_dir" && ac_dir=.
2192     if test -f $ac_dir/file; then
2193       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2194       if test -n "$file_magic_test_file"; then
2195         case $deplibs_check_method in
2196         "file_magic "*)
2197           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2198           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2199           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2200             egrep "$file_magic_regex" > /dev/null; then
2201             :
2202           else
2203             cat <<EOF 1>&2
2204
2205 *** Warning: the command libtool uses to detect shared libraries,
2206 *** $file_magic_cmd, produces output that libtool cannot recognize.
2207 *** The result is that libtool may fail to recognize shared libraries
2208 *** as such.  This will affect the creation of libtool libraries that
2209 *** depend on shared libraries, but programs linked with such libtool
2210 *** libraries will work regardless of this problem.  Nevertheless, you
2211 *** may want to report the problem to your system manager and/or to
2212 *** bug-libtool@gnu.org
2213
2214 EOF
2215           fi ;;
2216         esac
2217       fi
2218       break
2219     fi
2220   done
2221   IFS="$ac_save_ifs"
2222   MAGIC_CMD="$ac_save_MAGIC_CMD"
2223   ;;
2224 esac
2225 fi
2226
2227 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2228 if test -n "$MAGIC_CMD"; then
2229   echo "$ac_t""$MAGIC_CMD" 1>&6
2230 else
2231   echo "$ac_t""no" 1>&6
2232 fi
2233
2234   else
2235     MAGIC_CMD=:
2236   fi
2237 fi
2238
2239   fi
2240   ;;
2241 esac
2242
2243 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2244 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2246 echo "configure:2247: checking for $ac_word" >&5
2247 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2248   echo $ac_n "(cached) $ac_c" 1>&6
2249 else
2250   if test -n "$RANLIB"; then
2251   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2252 else
2253   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2254   ac_dummy="$PATH"
2255   for ac_dir in $ac_dummy; do
2256     test -z "$ac_dir" && ac_dir=.
2257     if test -f $ac_dir/$ac_word; then
2258       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2259       break
2260     fi
2261   done
2262   IFS="$ac_save_ifs"
2263 fi
2264 fi
2265 RANLIB="$ac_cv_prog_RANLIB"
2266 if test -n "$RANLIB"; then
2267   echo "$ac_t""$RANLIB" 1>&6
2268 else
2269   echo "$ac_t""no" 1>&6
2270 fi
2271
2272
2273 if test -z "$ac_cv_prog_RANLIB"; then
2274 if test -n "$ac_tool_prefix"; then
2275   # Extract the first word of "ranlib", so it can be a program name with args.
2276 set dummy ranlib; ac_word=$2
2277 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2278 echo "configure:2279: checking for $ac_word" >&5
2279 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2280   echo $ac_n "(cached) $ac_c" 1>&6
2281 else
2282   if test -n "$RANLIB"; then
2283   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2284 else
2285   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2286   ac_dummy="$PATH"
2287   for ac_dir in $ac_dummy; do
2288     test -z "$ac_dir" && ac_dir=.
2289     if test -f $ac_dir/$ac_word; then
2290       ac_cv_prog_RANLIB="ranlib"
2291       break
2292     fi
2293   done
2294   IFS="$ac_save_ifs"
2295   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2296 fi
2297 fi
2298 RANLIB="$ac_cv_prog_RANLIB"
2299 if test -n "$RANLIB"; then
2300   echo "$ac_t""$RANLIB" 1>&6
2301 else
2302   echo "$ac_t""no" 1>&6
2303 fi
2304
2305 else
2306   RANLIB=":"
2307 fi
2308 fi
2309
2310 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2311 set dummy ${ac_tool_prefix}strip; ac_word=$2
2312 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2313 echo "configure:2314: checking for $ac_word" >&5
2314 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2315   echo $ac_n "(cached) $ac_c" 1>&6
2316 else
2317   if test -n "$STRIP"; then
2318   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2319 else
2320   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2321   ac_dummy="$PATH"
2322   for ac_dir in $ac_dummy; do
2323     test -z "$ac_dir" && ac_dir=.
2324     if test -f $ac_dir/$ac_word; then
2325       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2326       break
2327     fi
2328   done
2329   IFS="$ac_save_ifs"
2330 fi
2331 fi
2332 STRIP="$ac_cv_prog_STRIP"
2333 if test -n "$STRIP"; then
2334   echo "$ac_t""$STRIP" 1>&6
2335 else
2336   echo "$ac_t""no" 1>&6
2337 fi
2338
2339
2340 if test -z "$ac_cv_prog_STRIP"; then
2341 if test -n "$ac_tool_prefix"; then
2342   # Extract the first word of "strip", so it can be a program name with args.
2343 set dummy strip; ac_word=$2
2344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2345 echo "configure:2346: checking for $ac_word" >&5
2346 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2347   echo $ac_n "(cached) $ac_c" 1>&6
2348 else
2349   if test -n "$STRIP"; then
2350   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2351 else
2352   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2353   ac_dummy="$PATH"
2354   for ac_dir in $ac_dummy; do
2355     test -z "$ac_dir" && ac_dir=.
2356     if test -f $ac_dir/$ac_word; then
2357       ac_cv_prog_STRIP="strip"
2358       break
2359     fi
2360   done
2361   IFS="$ac_save_ifs"
2362   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2363 fi
2364 fi
2365 STRIP="$ac_cv_prog_STRIP"
2366 if test -n "$STRIP"; then
2367   echo "$ac_t""$STRIP" 1>&6
2368 else
2369   echo "$ac_t""no" 1>&6
2370 fi
2371
2372 else
2373   STRIP=":"
2374 fi
2375 fi
2376
2377
2378 # Check for any special flags to pass to ltconfig.
2379 libtool_flags="--cache-file=$cache_file"
2380 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2381 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2382 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2383 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2384 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2385 libtool_flags="$libtool_flags --enable-dlopen"
2386
2387 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2388 if test "${enable_libtool_lock+set}" = set; then
2389   enableval="$enable_libtool_lock"
2390   :
2391 fi
2392
2393 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2394 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2395
2396 # Check whether --with-pic or --without-pic was given.
2397 if test "${with_pic+set}" = set; then
2398   withval="$with_pic"
2399   pic_mode="$withval"
2400 else
2401   pic_mode=default
2402 fi
2403
2404 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2405 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2406
2407 # Some flags need to be propagated to the compiler or linker for good
2408 # libtool support.
2409 case $host in
2410 *-*-irix6*)
2411   # Find out which ABI we are using.
2412   echo '#line 2413 "configure"' > conftest.$ac_ext
2413   if { (eval echo configure:2414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2414     case `/usr/bin/file conftest.$ac_objext` in
2415     *32-bit*)
2416       LD="${LD-ld} -32"
2417       ;;
2418     *N32*)
2419       LD="${LD-ld} -n32"
2420       ;;
2421     *64-bit*)
2422       LD="${LD-ld} -64"
2423       ;;
2424     esac
2425   fi
2426   rm -rf conftest*
2427   ;;
2428
2429 *-*-sco3.2v5*)
2430   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2431   SAVE_CFLAGS="$CFLAGS"
2432   CFLAGS="$CFLAGS -belf"
2433   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2434 echo "configure:2435: checking whether the C compiler needs -belf" >&5
2435 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2436   echo $ac_n "(cached) $ac_c" 1>&6
2437 else
2438   
2439      ac_ext=c
2440 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2441 ac_cpp='$CPP $CPPFLAGS'
2442 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2443 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2444 cross_compiling=$ac_cv_prog_cc_cross
2445
2446      cat > conftest.$ac_ext <<EOF
2447 #line 2448 "configure"
2448 #include "confdefs.h"
2449
2450 int main() {
2451
2452 ; return 0; }
2453 EOF
2454 if { (eval echo configure:2455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2455   rm -rf conftest*
2456   lt_cv_cc_needs_belf=yes
2457 else
2458   echo "configure: failed program was:" >&5
2459   cat conftest.$ac_ext >&5
2460   rm -rf conftest*
2461   lt_cv_cc_needs_belf=no
2462 fi
2463 rm -f conftest*
2464      ac_ext=c
2465 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2466 ac_cpp='$CPP $CPPFLAGS'
2467 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2468 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2469 cross_compiling=$ac_cv_prog_cc_cross
2470
2471 fi
2472
2473 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2474   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2475     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2476     CFLAGS="$SAVE_CFLAGS"
2477   fi
2478   ;;
2479
2480
2481 esac
2482
2483 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2484 echo "configure:2485: checking how to run the C++ preprocessor" >&5
2485 if test -z "$CXXCPP"; then
2486 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2487   echo $ac_n "(cached) $ac_c" 1>&6
2488 else
2489   ac_ext=C
2490 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2491 ac_cpp='$CXXCPP $CPPFLAGS'
2492 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2493 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2494 cross_compiling=$ac_cv_prog_cxx_cross
2495   CXXCPP="${CXX-g++} -E"
2496   cat > conftest.$ac_ext <<EOF
2497 #line 2498 "configure"
2498 #include "confdefs.h"
2499 #include <stdlib.h>
2500 EOF
2501 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2502 { (eval echo configure:2503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2503 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2504 if test -z "$ac_err"; then
2505   :
2506 else
2507   echo "$ac_err" >&5
2508   echo "configure: failed program was:" >&5
2509   cat conftest.$ac_ext >&5
2510   rm -rf conftest*
2511   CXXCPP=/lib/cpp
2512 fi
2513 rm -f conftest*
2514   ac_cv_prog_CXXCPP="$CXXCPP"
2515 ac_ext=c
2516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2517 ac_cpp='$CPP $CPPFLAGS'
2518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2519 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2520 cross_compiling=$ac_cv_prog_cc_cross
2521 fi
2522 fi
2523 CXXCPP="$ac_cv_prog_CXXCPP"
2524 echo "$ac_t""$CXXCPP" 1>&6
2525
2526
2527 # Save cache, so that ltconfig can load it
2528 cat > confcache <<\EOF
2529 # This file is a shell script that caches the results of configure
2530 # tests run on this system so they can be shared between configure
2531 # scripts and configure runs.  It is not useful on other systems.
2532 # If it contains results you don't want to keep, you may remove or edit it.
2533 #
2534 # By default, configure uses ./config.cache as the cache file,
2535 # creating it if it does not exist already.  You can give configure
2536 # the --cache-file=FILE option to use a different cache file; that is
2537 # what configure does when it calls configure scripts in
2538 # subdirectories, so they share the cache.
2539 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2540 # config.status only pays attention to the cache file if you give it the
2541 # --recheck option to rerun configure.
2542 #
2543 EOF
2544 # The following way of writing the cache mishandles newlines in values,
2545 # but we know of no workaround that is simple, portable, and efficient.
2546 # So, don't put newlines in cache variables' values.
2547 # Ultrix sh set writes to stderr and can't be redirected directly,
2548 # and sets the high bit in the cache file unless we assign to the vars.
2549 (set) 2>&1 |
2550   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2551   *ac_space=\ *)
2552     # `set' does not quote correctly, so add quotes (double-quote substitution
2553     # turns \\\\ into \\, and sed turns \\ into \).
2554     sed -n \
2555       -e "s/'/'\\\\''/g" \
2556       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2557     ;;
2558   *)
2559     # `set' quotes correctly as required by POSIX, so do not add quotes.
2560     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2561     ;;
2562   esac >> confcache
2563 if cmp -s $cache_file confcache; then
2564   :
2565 else
2566   if test -w $cache_file; then
2567     echo "updating cache $cache_file"
2568     cat confcache > $cache_file
2569   else
2570     echo "not updating unwritable cache $cache_file"
2571   fi
2572 fi
2573 rm -f confcache
2574
2575
2576 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2577 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2578 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2579 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2580 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2581 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2582 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2583 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2584 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2585 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2586
2587 # Reload cache, that may have been modified by ltconfig
2588 if test -r "$cache_file"; then
2589   echo "loading cache $cache_file"
2590   . $cache_file
2591 else
2592   echo "creating cache $cache_file"
2593   > $cache_file
2594 fi
2595
2596
2597 # This can be used to rebuild libtool when needed
2598 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2599
2600 # Always use our own libtool.
2601 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2602
2603 # Redirect the config.log output again, so that the ltconfig log is not
2604 # clobbered by the next message.
2605 exec 5>>./config.log
2606
2607
2608
2609 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2610 lt_save_CC="$CC"
2611 lt_save_CFLAGS="$CFLAGS"
2612 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2613 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2614 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2615 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2616 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2617 deplibs_check_method="$deplibs_check_method" \
2618 file_magic_cmd="$file_magic_cmd" \
2619 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2620 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2621 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2622 CC="$lt_save_CC"
2623 CFLAGS="$lt_save_CFLAGS"
2624
2625 # Redirect the config.log output again, so that the ltconfig log is not
2626 # clobbered by the next message.
2627 exec 5>>./config.log
2628
2629   
2630
2631   
2632          
2633          
2634
2635
2636
2637 # Check for c++ or library specific bits that don't require linking.
2638 #GLIBCPP_CHECK_COMPILER_VERSION
2639 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2640 echo "configure:2641: checking for GNU make" >&5
2641 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2642   echo $ac_n "(cached) $ac_c" 1>&6
2643 else
2644   _cv_gnu_make_command='' ;
2645           for a in "${MAKE-make}" make gmake gnumake ; do
2646                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2647                   then
2648                           _cv_gnu_make_command=$a ;
2649                           break;
2650                   fi
2651           done ;
2652   
2653 fi
2654
2655 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2656   if test  "x$_cv_gnu_make_command" != "x"  ; then
2657           ifGNUmake='' ;
2658   else
2659           ifGNUmake='#' ;
2660   fi
2661   
2662
2663
2664 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2665 # Check whether --enable-debug or --disable-debug was given.
2666 if test "${enable_debug+set}" = set; then
2667   enableval="$enable_debug"
2668   case "${enableval}" in
2669  yes) enable_debug=yes ;;
2670  no)  enable_debug=no ;;
2671  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2672  esac
2673 else
2674   enable_debug=no
2675 fi
2676
2677 case "${enable_debug}" in
2678     yes) 
2679         DEBUG_FLAGS='-O0 -ggdb3'                        
2680         ;; 
2681     no)   
2682         DEBUG_FLAGS='-g'
2683         ;;
2684 esac
2685
2686
2687 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2688 echo "configure:2689: checking how to run the C preprocessor" >&5
2689 # On Suns, sometimes $CPP names a directory.
2690 if test -n "$CPP" && test -d "$CPP"; then
2691   CPP=
2692 fi
2693 if test -z "$CPP"; then
2694 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2695   echo $ac_n "(cached) $ac_c" 1>&6
2696 else
2697     # This must be in double quotes, not single quotes, because CPP may get
2698   # substituted into the Makefile and "${CC-cc}" will confuse make.
2699   CPP="${CC-cc} -E"
2700   # On the NeXT, cc -E runs the code through the compiler's parser,
2701   # not just through cpp.
2702   cat > conftest.$ac_ext <<EOF
2703 #line 2704 "configure"
2704 #include "confdefs.h"
2705 #include <assert.h>
2706 Syntax Error
2707 EOF
2708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2709 { (eval echo configure:2710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2711 if test -z "$ac_err"; then
2712   :
2713 else
2714   echo "$ac_err" >&5
2715   echo "configure: failed program was:" >&5
2716   cat conftest.$ac_ext >&5
2717   rm -rf conftest*
2718   CPP="${CC-cc} -E -traditional-cpp"
2719   cat > conftest.$ac_ext <<EOF
2720 #line 2721 "configure"
2721 #include "confdefs.h"
2722 #include <assert.h>
2723 Syntax Error
2724 EOF
2725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2726 { (eval echo configure:2727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2728 if test -z "$ac_err"; then
2729   :
2730 else
2731   echo "$ac_err" >&5
2732   echo "configure: failed program was:" >&5
2733   cat conftest.$ac_ext >&5
2734   rm -rf conftest*
2735   CPP="${CC-cc} -nologo -E"
2736   cat > conftest.$ac_ext <<EOF
2737 #line 2738 "configure"
2738 #include "confdefs.h"
2739 #include <assert.h>
2740 Syntax Error
2741 EOF
2742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2743 { (eval echo configure:2744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2745 if test -z "$ac_err"; then
2746   :
2747 else
2748   echo "$ac_err" >&5
2749   echo "configure: failed program was:" >&5
2750   cat conftest.$ac_ext >&5
2751   rm -rf conftest*
2752   CPP=/lib/cpp
2753 fi
2754 rm -f conftest*
2755 fi
2756 rm -f conftest*
2757 fi
2758 rm -f conftest*
2759   ac_cv_prog_CPP="$CPP"
2760 fi
2761   CPP="$ac_cv_prog_CPP"
2762 else
2763   ac_cv_prog_CPP="$CPP"
2764 fi
2765 echo "$ac_t""$CPP" 1>&6
2766
2767
2768   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2769 echo "configure:2770: checking for cstdio to use" >&5
2770   # Check whether --enable-cstdio or --disable-cstdio was given.
2771 if test "${enable_cstdio+set}" = set; then
2772   enableval="$enable_cstdio"
2773   if test x$enable_cstdio = xno; then
2774      enable_cstdio=stdio
2775   fi
2776 else
2777   enable_cstdio=stdio
2778 fi
2779
2780
2781   enable_cstdio_flag=$enable_cstdio
2782
2783     case x${enable_cstdio_flag} in
2784     xlibio)
2785       CSTDIO_H=config/io/c_io_libio.h
2786       BASIC_FILE_H=config/io/basic_file_libio.h
2787       BASIC_FILE_CC=config/io/basic_file_libio.cc
2788       echo "$ac_t""libio" 1>&6
2789
2790       # see if we are on a system with libio native (ie, linux)
2791       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2792 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2793 echo "configure:2794: checking for libio.h" >&5
2794 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2795   echo $ac_n "(cached) $ac_c" 1>&6
2796 else
2797   cat > conftest.$ac_ext <<EOF
2798 #line 2799 "configure"
2799 #include "confdefs.h"
2800 #include <libio.h>
2801 EOF
2802 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2803 { (eval echo configure:2804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2804 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2805 if test -z "$ac_err"; then
2806   rm -rf conftest*
2807   eval "ac_cv_header_$ac_safe=yes"
2808 else
2809   echo "$ac_err" >&5
2810   echo "configure: failed program was:" >&5
2811   cat conftest.$ac_ext >&5
2812   rm -rf conftest*
2813   eval "ac_cv_header_$ac_safe=no"
2814 fi
2815 rm -f conftest*
2816 fi
2817 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2818   echo "$ac_t""yes" 1>&6
2819   has_libio=yes
2820 else
2821   echo "$ac_t""no" 1>&6
2822 has_libio=no
2823 fi
2824
2825
2826       # Need to check and see what version of glibc is being used. If
2827       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2828       # compile most of libio for linux systems.
2829       if test x$has_libio = x"yes"; then
2830         case "$target" in
2831           *-*-linux*)
2832               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2833 echo "configure:2834: checking for glibc version >= 2.2" >&5
2834               cat > conftest.$ac_ext <<EOF
2835 #line 2836 "configure"
2836 #include "confdefs.h"
2837
2838             #include <features.h>
2839               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2840                     ok
2841               #endif
2842               
2843 EOF
2844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2845   egrep "ok" >/dev/null 2>&1; then
2846   rm -rf conftest*
2847   glibc_satisfactory=yes
2848 else
2849   rm -rf conftest*
2850   glibc_satisfactory=no
2851 fi
2852 rm -f conftest*
2853
2854               echo "$ac_t""$glibc_satisfactory" 1>&6
2855             ;;
2856         esac
2857
2858         # XXX at the moment, admit defeat and force the recompilation
2859         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2860         glibc_satisfactory=no        
2861
2862         if test x$glibc_satisfactory = x"yes"; then
2863            need_libio=no
2864            need_wlibio=no        
2865         else
2866            need_libio=yes
2867            # bkoz XXX need to add checks to enable this
2868            # pme XXX here's a first pass at such a check
2869            if test x$enable_c_mbchar != xno; then
2870               need_wlibio=yes
2871            else
2872               need_wlibio=no
2873            fi
2874         fi
2875
2876       else
2877          # Using libio, but <libio.h> doesn't exist on the target system. . .
2878          need_libio=yes
2879          # bkoz XXX need to add checks to enable this
2880          # pme XXX here's a first pass at such a check
2881          if test x$enable_c_mbchar != xno; then
2882              need_wlibio=yes
2883          else
2884              need_wlibio=no
2885          fi
2886       fi
2887       ;;
2888     xstdio | x | xno | xnone | xyes)
2889       # default
2890       CSTDIO_H=config/io/c_io_stdio.h
2891       BASIC_FILE_H=config/io/basic_file_stdio.h
2892       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2893       echo "$ac_t""stdio" 1>&6
2894
2895       # We're not using stdio.
2896       need_libio=no
2897       need_wlibio=no
2898       ;;
2899     *)
2900       echo "$enable_cstdio is an unknown io package" 1>&2
2901       exit 1
2902       ;;
2903   esac
2904   
2905   
2906   
2907
2908   # 2000-08-04 bkoz hack
2909   CCODECVT_C=config/io/c_io_libio_codecvt.c
2910   
2911   # 2000-08-04 bkoz hack
2912
2913   
2914
2915 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2916   GLIBCPP_BUILD_LIBIO_TRUE=
2917   GLIBCPP_BUILD_LIBIO_FALSE='#'
2918 else
2919   GLIBCPP_BUILD_LIBIO_TRUE='#'
2920   GLIBCPP_BUILD_LIBIO_FALSE=
2921 fi
2922   
2923
2924 if test "$need_libio" = yes; then
2925   GLIBCPP_NEED_LIBIO_TRUE=
2926   GLIBCPP_NEED_LIBIO_FALSE='#'
2927 else
2928   GLIBCPP_NEED_LIBIO_TRUE='#'
2929   GLIBCPP_NEED_LIBIO_FALSE=
2930 fi
2931   
2932
2933 if test "$need_wlibio" = yes; then
2934   GLIBCPP_NEED_WLIBIO_TRUE=
2935   GLIBCPP_NEED_WLIBIO_FALSE='#'
2936 else
2937   GLIBCPP_NEED_WLIBIO_TRUE='#'
2938   GLIBCPP_NEED_WLIBIO_FALSE=
2939 fi
2940   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2941     libio_la=../libio/libio.la
2942   else
2943     libio_la=
2944   fi
2945   
2946
2947
2948   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2949 echo "configure:2950: checking for clocale to use" >&5
2950   # Check whether --enable-clocale or --disable-clocale was given.
2951 if test "${enable_clocale+set}" = set; then
2952   enableval="$enable_clocale"
2953   if test x$enable_clocale = xno; then
2954      enable_clocale=no
2955   fi
2956 else
2957   enable_clocale=no
2958 fi
2959
2960
2961   enable_clocale_flag=$enable_clocale
2962
2963       if test x$enable_clocale_flag = xno; then
2964     case x${target_os} in
2965       xlinux* | xgnu*)
2966         cat > conftest.$ac_ext <<EOF
2967 #line 2968 "configure"
2968 #include "confdefs.h"
2969
2970         #include <features.h>
2971         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2972           _GLIBCPP_ok
2973         #endif
2974         
2975 EOF
2976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2977   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
2978   rm -rf conftest*
2979   enable_clocale_flag=gnu
2980 else
2981   rm -rf conftest*
2982   enable_clocale_flag=generic
2983 fi
2984 rm -f conftest*
2985
2986
2987         # Test for bugs early in glibc-2.2.x series
2988         if test x$enable_clocale_flag = xgnu; then
2989           if test "$cross_compiling" = yes; then
2990   enable_clocale_flag=generic
2991 else
2992   cat > conftest.$ac_ext <<EOF
2993 #line 2994 "configure"
2994 #include "confdefs.h"
2995
2996           #define _GNU_SOURCE 1
2997           #include <locale.h>
2998           int main()
2999           {
3000             const char __one[] = "Äuglein Augmen";
3001             const char __two[] = "Äuglein";
3002             int i;
3003             int j;
3004             __locale_t  loc;
3005             __locale_t  loc_dup;
3006             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3007             loc_dup = __duplocale(loc);
3008             i = __strcoll_l(__one, __two, loc);
3009             j = __strcoll_l(__one, __two, loc_dup);
3010             return 0;
3011           }
3012           
3013 EOF
3014 if { (eval echo configure:3015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3015 then
3016   enable_clocale_flag=gnu
3017 else
3018   echo "configure: failed program was:" >&5
3019   cat conftest.$ac_ext >&5
3020   rm -fr conftest*
3021   enable_clocale_flag=generic
3022 fi
3023 rm -fr conftest*
3024 fi
3025
3026         fi
3027
3028         # ... at some point put __strxfrm_l tests in as well.
3029         ;;
3030       *)
3031         enable_clocale_flag=generic
3032         ;;
3033     esac
3034   fi
3035
3036     case x${enable_clocale_flag} in
3037     xgeneric)
3038       echo "$ac_t""generic" 1>&6
3039
3040       # Don't use gettext.
3041       USE_NLS=no
3042
3043       CLOCALE_H=config/locale/c_locale_generic.h
3044       CLOCALE_CC=config/locale/c_locale_generic.cc
3045       CCODECVT_H=config/locale/codecvt_specializations_generic.h
3046       CCOLLATE_CC=config/locale/collate_members_generic.cc
3047       CCTYPE_CC=config/locale/ctype_members_generic.cc
3048       CMESSAGES_H=config/locale/messages_members_generic.h
3049       CMESSAGES_CC=config/locale/messages_members_generic.cc
3050       CMONEY_CC=config/locale/moneypunct_members_generic.cc
3051       CNUMERIC_CC=config/locale/numpunct_members_generic.cc
3052       CTIME_CC=config/locale/time_members_generic.cc
3053       ;;
3054     xgnu)
3055       echo "$ac_t""gnu" 1>&6
3056
3057       # Declare intention to use gettext, and add support for specific
3058       # languages.
3059       # For some reason, ALL_LINGUAS has to be before AM_GNU_GETTEXT
3060       ALL_LINGUAS="de fr"
3061       # Don't call AM_GNU_GETTEXT here. Instead, assume glibc.
3062       # Need to deal with MSGFMT, USE_NLS, and glibcpp_[P,M]OFILES
3063       USE_NLS=yes
3064
3065       # Export the build objects.
3066       for ling in $ALL_LINGUAS; do \
3067         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3068         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3069       done
3070       
3071       
3072
3073       CLOCALE_H=config/locale/c_locale_gnu.h
3074       CLOCALE_CC=config/locale/c_locale_gnu.cc
3075       CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
3076       CCOLLATE_CC=config/locale/collate_members_gnu.cc
3077       CCTYPE_CC=config/locale/ctype_members_gnu.cc
3078       CMESSAGES_H=config/locale/messages_members_gnu.h
3079       CMESSAGES_CC=config/locale/messages_members_gnu.cc
3080       CMONEY_CC=config/locale/moneypunct_members_gnu.cc
3081       CNUMERIC_CC=config/locale/numpunct_members_gnu.cc
3082       CTIME_CC=config/locale/time_members_gnu.cc
3083       ;;
3084     xieee_1003.1)
3085       echo "$ac_t""generic" 1>&6
3086
3087       # Don't use gettext.
3088       USE_NLS=no
3089
3090       CLOCALE_H=config/locale/c_locale_ieee_1003.1-200x.h
3091       CLOCALE_CC=config/locale/c_locale_ieee_1003.1-200x.cc
3092       CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
3093       CCOLLATE_CC=config/locale/collate_members_generic.cc
3094       CCTYPE_CC=config/locale/ctype_members_generic.cc
3095       CMESSAGES_H=config/locale/messages_members_ieee_1003.1-200x.h
3096       CMESSAGES_CC=config/locale/messages_members_ieee_1003.1-200x.cc
3097       CMONEY_CC=config/locale/moneypunct_members_generic.cc
3098       CNUMERIC_CC=config/locale/numpunct_members_generic.cc
3099       CTIME_CC=config/locale/time_members_generic.cc
3100       ;;
3101     *)
3102       echo "$enable_clocale is an unknown locale package" 1>&2
3103       exit 1
3104       ;;
3105   esac
3106
3107   # This is where the testsuite looks for locale catalogs, using the
3108   # -DLOCALEDIR define during testsuite compilation.
3109   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3110   
3111
3112   
3113   
3114   
3115   
3116   
3117   
3118   
3119   
3120   
3121   
3122   
3123
3124 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3125 if test "${enable_c_mbchar+set}" = set; then
3126   enableval="$enable_c_mbchar"
3127   case "$enableval" in
3128  yes) enable_c_mbchar=yes ;;
3129  no)  enable_c_mbchar=no ;;
3130  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3131  esac
3132 else
3133   enable_c_mbchar=yes
3134 fi
3135
3136   
3137   # Check whether --enable-c99 or --disable-c99 was given.
3138 if test "${enable_c99+set}" = set; then
3139   enableval="$enable_c99"
3140     case "$enableval" in
3141    yes) enable_c99=yes ;;
3142    no)  enable_c99=no ;;
3143    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3144    esac
3145 else
3146   enable_c99=yes
3147 fi
3148  
3149   
3150   ac_ext=C
3151 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3152 ac_cpp='$CXXCPP $CPPFLAGS'
3153 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3154 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3155 cross_compiling=$ac_cv_prog_cxx_cross
3156
3157
3158   # Check for the existence of <math.h> functions used if C99 is enabled.
3159   ac_c99_math=yes;
3160   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3161 echo "configure:3162: checking for ISO C99 support in <math.h>" >&5
3162   cat > conftest.$ac_ext <<EOF
3163 #line 3164 "configure"
3164 #include "confdefs.h"
3165 #include <math.h>
3166 int main() {
3167 fpclassify(0.0);
3168 ; return 0; }
3169 EOF
3170 if { (eval echo configure:3171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3171   :
3172 else
3173   echo "configure: failed program was:" >&5
3174   cat conftest.$ac_ext >&5
3175   rm -rf conftest*
3176   ac_c99_math=no
3177 fi
3178 rm -f conftest*
3179   cat > conftest.$ac_ext <<EOF
3180 #line 3181 "configure"
3181 #include "confdefs.h"
3182 #include <math.h>
3183 int main() {
3184 isfinite(0.0);
3185 ; return 0; }
3186 EOF
3187 if { (eval echo configure:3188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3188   :
3189 else
3190   echo "configure: failed program was:" >&5
3191   cat conftest.$ac_ext >&5
3192   rm -rf conftest*
3193   ac_c99_math=no
3194 fi
3195 rm -f conftest*
3196   cat > conftest.$ac_ext <<EOF
3197 #line 3198 "configure"
3198 #include "confdefs.h"
3199 #include <math.h>
3200 int main() {
3201 isinf(0.0);
3202 ; return 0; }
3203 EOF
3204 if { (eval echo configure:3205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3205   :
3206 else
3207   echo "configure: failed program was:" >&5
3208   cat conftest.$ac_ext >&5
3209   rm -rf conftest*
3210   ac_c99_math=no
3211 fi
3212 rm -f conftest*
3213   cat > conftest.$ac_ext <<EOF
3214 #line 3215 "configure"
3215 #include "confdefs.h"
3216 #include <math.h>
3217 int main() {
3218 isnan(0.0);
3219 ; return 0; }
3220 EOF
3221 if { (eval echo configure:3222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3222   :
3223 else
3224   echo "configure: failed program was:" >&5
3225   cat conftest.$ac_ext >&5
3226   rm -rf conftest*
3227   ac_c99_math=no
3228 fi
3229 rm -f conftest*
3230   cat > conftest.$ac_ext <<EOF
3231 #line 3232 "configure"
3232 #include "confdefs.h"
3233 #include <math.h>
3234 int main() {
3235 isnormal(0.0);
3236 ; return 0; }
3237 EOF
3238 if { (eval echo configure:3239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3239   :
3240 else
3241   echo "configure: failed program was:" >&5
3242   cat conftest.$ac_ext >&5
3243   rm -rf conftest*
3244   ac_c99_math=no
3245 fi
3246 rm -f conftest*
3247   cat > conftest.$ac_ext <<EOF
3248 #line 3249 "configure"
3249 #include "confdefs.h"
3250 #include <math.h>
3251 int main() {
3252 signbit(0.0);
3253 ; return 0; }
3254 EOF
3255 if { (eval echo configure:3256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3256   :
3257 else
3258   echo "configure: failed program was:" >&5
3259   cat conftest.$ac_ext >&5
3260   rm -rf conftest*
3261   ac_c99_math=no
3262 fi
3263 rm -f conftest*
3264   cat > conftest.$ac_ext <<EOF
3265 #line 3266 "configure"
3266 #include "confdefs.h"
3267 #include <math.h>
3268 int main() {
3269 isgreater(0.0,0.0);
3270 ; return 0; }
3271 EOF
3272 if { (eval echo configure:3273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3273   :
3274 else
3275   echo "configure: failed program was:" >&5
3276   cat conftest.$ac_ext >&5
3277   rm -rf conftest*
3278   ac_c99_math=no
3279 fi
3280 rm -f conftest*
3281   cat > conftest.$ac_ext <<EOF
3282 #line 3283 "configure"
3283 #include "confdefs.h"
3284 #include <math.h>
3285 int main() {
3286 isgreaterequal(0.0,0.0);
3287 ; return 0; }
3288 EOF
3289 if { (eval echo configure:3290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3290   :
3291 else
3292   echo "configure: failed program was:" >&5
3293   cat conftest.$ac_ext >&5
3294   rm -rf conftest*
3295   ac_c99_math=no
3296 fi
3297 rm -f conftest*
3298   cat > conftest.$ac_ext <<EOF
3299 #line 3300 "configure"
3300 #include "confdefs.h"
3301 #include <math.h>
3302 int main() {
3303 isless(0.0,0.0);
3304 ; return 0; }
3305 EOF
3306 if { (eval echo configure:3307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3307   :
3308 else
3309   echo "configure: failed program was:" >&5
3310   cat conftest.$ac_ext >&5
3311   rm -rf conftest*
3312   ac_c99_math=no
3313 fi
3314 rm -f conftest*
3315   cat > conftest.$ac_ext <<EOF
3316 #line 3317 "configure"
3317 #include "confdefs.h"
3318 #include <math.h>
3319 int main() {
3320 islessequal(0.0,0.0);
3321 ; return 0; }
3322 EOF
3323 if { (eval echo configure:3324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3324   :
3325 else
3326   echo "configure: failed program was:" >&5
3327   cat conftest.$ac_ext >&5
3328   rm -rf conftest*
3329   ac_c99_math=no
3330 fi
3331 rm -f conftest*
3332   cat > conftest.$ac_ext <<EOF
3333 #line 3334 "configure"
3334 #include "confdefs.h"
3335 #include <math.h>
3336 int main() {
3337 islessgreater(0.0,0.0);
3338 ; return 0; }
3339 EOF
3340 if { (eval echo configure:3341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3341   :
3342 else
3343   echo "configure: failed program was:" >&5
3344   cat conftest.$ac_ext >&5
3345   rm -rf conftest*
3346   ac_c99_math=no
3347 fi
3348 rm -f conftest*
3349   cat > conftest.$ac_ext <<EOF
3350 #line 3351 "configure"
3351 #include "confdefs.h"
3352 #include <math.h>
3353 int main() {
3354 isunordered(0.0,0.0);
3355 ; return 0; }
3356 EOF
3357 if { (eval echo configure:3358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3358   :
3359 else
3360   echo "configure: failed program was:" >&5
3361   cat conftest.$ac_ext >&5
3362   rm -rf conftest*
3363   ac_c99_math=no
3364 fi
3365 rm -f conftest*
3366   echo "$ac_t""$ac_c99_math" 1>&6
3367
3368   # Check for the existence in <stdio.h> of vscanf, et. al.
3369   ac_c99_stdio=yes;
3370   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3371 echo "configure:3372: checking for ISO C99 support in <stdio.h>" >&5
3372   cat > conftest.$ac_ext <<EOF
3373 #line 3374 "configure"
3374 #include "confdefs.h"
3375 #include <stdio.h>
3376 int main() {
3377 snprintf("12", 0, "%i");
3378 ; return 0; }
3379 EOF
3380 if { (eval echo configure:3381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3381   :
3382 else
3383   echo "configure: failed program was:" >&5
3384   cat conftest.$ac_ext >&5
3385   rm -rf conftest*
3386   ac_c99_stdio=no
3387 fi
3388 rm -f conftest*
3389   cat > conftest.$ac_ext <<EOF
3390 #line 3391 "configure"
3391 #include "confdefs.h"
3392 #include <stdio.h>
3393                   #include <stdarg.h>
3394                   void foo(char* fmt, ...)
3395                   {va_list args; va_start(args, fmt);
3396                   vfscanf(stderr, "%i", args);}
3397 int main() {
3398
3399 ; return 0; }
3400 EOF
3401 if { (eval echo configure:3402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3402   :
3403 else
3404   echo "configure: failed program was:" >&5
3405   cat conftest.$ac_ext >&5
3406   rm -rf conftest*
3407   ac_c99_stdio=no
3408 fi
3409 rm -f conftest*
3410   cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3413 #include <stdio.h>
3414                   #include <stdarg.h>
3415                   void foo(char* fmt, ...)
3416                   {va_list args; va_start(args, fmt);
3417                   vscanf("%i", args);}
3418 int main() {
3419
3420 ; return 0; }
3421 EOF
3422 if { (eval echo configure:3423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3423   :
3424 else
3425   echo "configure: failed program was:" >&5
3426   cat conftest.$ac_ext >&5
3427   rm -rf conftest*
3428   ac_c99_stdio=no
3429 fi
3430 rm -f conftest*
3431   cat > conftest.$ac_ext <<EOF
3432 #line 3433 "configure"
3433 #include "confdefs.h"
3434 #include <stdio.h>
3435                   #include <stdarg.h>
3436                   void foo(char* fmt, ...)
3437                   {va_list args; va_start(args, fmt);
3438                   vsnprintf(fmt, 0, "%i", args);}
3439 int main() {
3440
3441 ; return 0; }
3442 EOF
3443 if { (eval echo configure:3444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3444   :
3445 else
3446   echo "configure: failed program was:" >&5
3447   cat conftest.$ac_ext >&5
3448   rm -rf conftest*
3449   ac_c99_stdio=no
3450 fi
3451 rm -f conftest*
3452   cat > conftest.$ac_ext <<EOF
3453 #line 3454 "configure"
3454 #include "confdefs.h"
3455 #include <stdio.h>
3456                   #include <stdarg.h>
3457                   void foo(char* fmt, ...)
3458                   {va_list args; va_start(args, fmt);
3459                   vsscanf(fmt, "%i", args);}
3460 int main() {
3461
3462 ; return 0; }
3463 EOF
3464 if { (eval echo configure:3465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3465   :
3466 else
3467   echo "configure: failed program was:" >&5
3468   cat conftest.$ac_ext >&5
3469   rm -rf conftest*
3470   ac_c99_stdio=no
3471 fi
3472 rm -f conftest*
3473   echo "$ac_t""$ac_c99_stdio" 1>&6
3474
3475   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3476   ac_c99_stdlib=yes;
3477   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3478 echo "configure:3479: checking for lldiv_t declaration" >&5
3479   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3480   echo $ac_n "(cached) $ac_c" 1>&6
3481 else
3482   
3483   cat > conftest.$ac_ext <<EOF
3484 #line 3485 "configure"
3485 #include "confdefs.h"
3486 #include <stdlib.h>
3487 int main() {
3488  lldiv_t mydivt;
3489 ; return 0; }
3490 EOF
3491 if { (eval echo configure:3492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3492   rm -rf conftest*
3493   ac_c99_lldiv_t=yes
3494 else
3495   echo "configure: failed program was:" >&5
3496   cat conftest.$ac_ext >&5
3497   rm -rf conftest*
3498   ac_c99_lldiv_t=no
3499 fi
3500 rm -f conftest*
3501   
3502 fi
3503
3504   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3505
3506   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3507 echo "configure:3508: checking for ISO C99 support in <stdlib.h>" >&5
3508   cat > conftest.$ac_ext <<EOF
3509 #line 3510 "configure"
3510 #include "confdefs.h"
3511 #include <stdlib.h>
3512 int main() {
3513 char* tmp; strtof("gnu", &tmp);
3514 ; return 0; }
3515 EOF
3516 if { (eval echo configure:3517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3517   :
3518 else
3519   echo "configure: failed program was:" >&5
3520   cat conftest.$ac_ext >&5
3521   rm -rf conftest*
3522   ac_c99_stdlib=no
3523 fi
3524 rm -f conftest*
3525   cat > conftest.$ac_ext <<EOF
3526 #line 3527 "configure"
3527 #include "confdefs.h"
3528 #include <stdlib.h>
3529 int main() {
3530 char* tmp; strtold("gnu", &tmp);
3531 ; return 0; }
3532 EOF
3533 if { (eval echo configure:3534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3534   :
3535 else
3536   echo "configure: failed program was:" >&5
3537   cat conftest.$ac_ext >&5
3538   rm -rf conftest*
3539   ac_c99_stdlib=no
3540 fi
3541 rm -f conftest*
3542   cat > conftest.$ac_ext <<EOF
3543 #line 3544 "configure"
3544 #include "confdefs.h"
3545 #include <stdlib.h>
3546 int main() {
3547 llabs(10);
3548 ; return 0; }
3549 EOF
3550 if { (eval echo configure:3551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3551   :
3552 else
3553   echo "configure: failed program was:" >&5
3554   cat conftest.$ac_ext >&5
3555   rm -rf conftest*
3556   ac_c99_stdlib=no
3557 fi
3558 rm -f conftest*
3559   cat > conftest.$ac_ext <<EOF
3560 #line 3561 "configure"
3561 #include "confdefs.h"
3562 #include <stdlib.h>
3563 int main() {
3564 lldiv(10,1);
3565 ; return 0; }
3566 EOF
3567 if { (eval echo configure:3568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3568   :
3569 else
3570   echo "configure: failed program was:" >&5
3571   cat conftest.$ac_ext >&5
3572   rm -rf conftest*
3573   ac_c99_stdlib=no
3574 fi
3575 rm -f conftest*
3576   cat > conftest.$ac_ext <<EOF
3577 #line 3578 "configure"
3578 #include "confdefs.h"
3579 #include <stdlib.h>
3580 int main() {
3581 atoll("10");
3582 ; return 0; }
3583 EOF
3584 if { (eval echo configure:3585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3585   :
3586 else
3587   echo "configure: failed program was:" >&5
3588   cat conftest.$ac_ext >&5
3589   rm -rf conftest*
3590   ac_c99_stdlib=no
3591 fi
3592 rm -f conftest*
3593   cat > conftest.$ac_ext <<EOF
3594 #line 3595 "configure"
3595 #include "confdefs.h"
3596 #include <stdlib.h>
3597 int main() {
3598 _Exit(0);
3599 ; return 0; }
3600 EOF
3601 if { (eval echo configure:3602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3602   :
3603 else
3604   echo "configure: failed program was:" >&5
3605   cat conftest.$ac_ext >&5
3606   rm -rf conftest*
3607   ac_c99_stdlib=no
3608 fi
3609 rm -f conftest*
3610   if test x"$ac_c99_lldiv_t" = x"no"; then
3611     ac_c99_stdlib=no; 
3612   fi; 
3613   echo "$ac_t""$ac_c99_stdlib" 1>&6
3614
3615   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3616   # XXX the wchar.h checks should be rolled into the general C99 bits.
3617   ac_c99_wchar=yes;
3618   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3619 echo "configure:3620: checking for additional ISO C99 support in <wchar.h>" >&5
3620   cat > conftest.$ac_ext <<EOF
3621 #line 3622 "configure"
3622 #include "confdefs.h"
3623 #include <wchar.h>
3624 int main() {
3625 wcstold(L"10.0", NULL);
3626 ; return 0; }
3627 EOF
3628 if { (eval echo configure:3629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3629   :
3630 else
3631   echo "configure: failed program was:" >&5
3632   cat conftest.$ac_ext >&5
3633   rm -rf conftest*
3634   ac_c99_wchar=no
3635 fi
3636 rm -f conftest*
3637   cat > conftest.$ac_ext <<EOF
3638 #line 3639 "configure"
3639 #include "confdefs.h"
3640 #include <wchar.h>
3641 int main() {
3642 wcstoll(L"10", NULL, 10);
3643 ; return 0; }
3644 EOF
3645 if { (eval echo configure:3646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3646   :
3647 else
3648   echo "configure: failed program was:" >&5
3649   cat conftest.$ac_ext >&5
3650   rm -rf conftest*
3651   ac_c99_wchar=no
3652 fi
3653 rm -f conftest*
3654   cat > conftest.$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3657 #include <wchar.h>
3658 int main() {
3659 wcstoull(L"10", NULL, 10);
3660 ; return 0; }
3661 EOF
3662 if { (eval echo configure:3663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3663   :
3664 else
3665   echo "configure: failed program was:" >&5
3666   cat conftest.$ac_ext >&5
3667   rm -rf conftest*
3668   ac_c99_wchar=no
3669 fi
3670 rm -f conftest*
3671   echo "$ac_t""$ac_c99_wchar" 1>&6
3672
3673   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3674 echo "configure:3675: checking for enabled ISO C99 support" >&5
3675   if test x"$ac_c99_math" = x"no" ||
3676      test x"$ac_c99_stdio" = x"no" ||
3677      test x"$ac_c99_stdlib" = x"no" ||
3678      test x"$ac_c99_wchar" = x"no"; then
3679     enable_c99=no; 
3680   fi; 
3681   echo "$ac_t""$enable_c99" 1>&6
3682
3683   # Option parsed, now set things appropriately
3684   if test x"$enable_c99" = x"yes"; then
3685     cat >> confdefs.h <<\EOF
3686 #define _GLIBCPP_USE_C99 1
3687 EOF
3688
3689   fi
3690
3691   ac_ext=c
3692 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3693 ac_cpp='$CPP $CPPFLAGS'
3694 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3695 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3696 cross_compiling=$ac_cv_prog_cc_cross
3697
3698
3699   
3700   # Check whether --enable-long-long or --disable-long-long was given.
3701 if test "${enable_long_long+set}" = set; then
3702   enableval="$enable_long_long"
3703     case "$enableval" in
3704    yes) enable_long_long=yes ;;
3705    no)  enable_long_long=no ;;
3706    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3707    esac
3708 else
3709   enable_long_long=yes
3710 fi
3711
3712   
3713   ac_ext=C
3714 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3715 ac_cpp='$CXXCPP $CPPFLAGS'
3716 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3717 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3718 cross_compiling=$ac_cv_prog_cxx_cross
3719
3720
3721   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3722 echo "configure:3723: checking for enabled long long I/O support" >&5
3723   # iostreams require strtoll, strtoull to compile
3724   cat > conftest.$ac_ext <<EOF
3725 #line 3726 "configure"
3726 #include "confdefs.h"
3727 #include <stdlib.h>
3728 int main() {
3729 char* tmp; strtoll("gnu", &tmp, 10);
3730 ; return 0; }
3731 EOF
3732 if { (eval echo configure:3733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3733   :
3734 else
3735   echo "configure: failed program was:" >&5
3736   cat conftest.$ac_ext >&5
3737   rm -rf conftest*
3738   enable_long_long=no
3739 fi
3740 rm -f conftest*
3741   cat > conftest.$ac_ext <<EOF
3742 #line 3743 "configure"
3743 #include "confdefs.h"
3744 #include <stdlib.h>
3745 int main() {
3746 char* tmp; strtoull("gnu", &tmp, 10);
3747 ; return 0; }
3748 EOF
3749 if { (eval echo configure:3750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3750   :
3751 else
3752   echo "configure: failed program was:" >&5
3753   cat conftest.$ac_ext >&5
3754   rm -rf conftest*
3755   enable_long_long=no
3756 fi
3757 rm -f conftest*
3758
3759   # Option parsed, now set things appropriately
3760   if test x"$enable_long_long" = xyes; then
3761     cat >> confdefs.h <<\EOF
3762 #define _GLIBCPP_USE_LONG_LONG 1
3763 EOF
3764
3765   fi
3766   echo "$ac_t""$enable_long_long" 1>&6
3767
3768   ac_ext=c
3769 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3770 ac_cpp='$CPP $CPPFLAGS'
3771 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3772 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3773 cross_compiling=$ac_cv_prog_cc_cross
3774
3775
3776 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3777 echo "configure:3778: checking for c header strategy to use" >&5
3778 # Check whether --enable-cheaders or --disable-cheaders was given.
3779 if test "${enable_cheaders+set}" = set; then
3780   enableval="$enable_cheaders"
3781   
3782   case "$enableval" in
3783    c) 
3784         enable_cheaders=c 
3785         ;;
3786    c_std)  
3787         enable_cheaders=c_std 
3788         ;;
3789    c_shadow)  
3790         enable_cheaders=c_shadow 
3791         ;;
3792    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3793         ;;
3794   esac
3795 else
3796   enable_cheaders=c_std
3797 fi
3798
3799   echo "$ac_t""$enable_cheaders" 1>&6
3800
3801     case "$enable_cheaders" in
3802     c_shadow) 
3803         CSHADOW_FLAGS="-fno-builtin"
3804         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3805         cat >> confdefs.h <<\EOF
3806 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3807 EOF
3808
3809         ;;
3810     c_std)   
3811         CSHADOW_FLAGS=""
3812         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3813         ;;
3814     c)   
3815         CSHADOW_FLAGS=""
3816         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3817         ;;
3818   esac
3819
3820   
3821   
3822   
3823
3824 if test "$enable_cheaders" = c_shadow; then
3825   GLIBCPP_USE_CSHADOW_TRUE=
3826   GLIBCPP_USE_CSHADOW_FALSE='#'
3827 else
3828   GLIBCPP_USE_CSHADOW_TRUE='#'
3829   GLIBCPP_USE_CSHADOW_FALSE=
3830 fi
3831
3832
3833   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3834 echo "configure:3835: checking for thread model used by GCC" >&5
3835   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3836   echo "$ac_t""$target_thread_file" 1>&6
3837
3838   if test $target_thread_file != single; then
3839     cat >> confdefs.h <<\EOF
3840 #define HAVE_GTHR_DEFAULT 1
3841 EOF
3842
3843     cat >> confdefs.h <<\EOF
3844 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3845 EOF
3846
3847   fi
3848
3849   glibcpp_thread_h=gthr-$target_thread_file.h
3850   
3851
3852 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3853 if test "${enable_cxx_flags+set}" = set; then
3854   enableval="$enable_cxx_flags"
3855   case "x$enableval" in
3856  xyes)   
3857         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3858  xno|x)  
3859         enable_cxx_flags='' ;;
3860  *)      
3861         enable_cxx_flags="$enableval" ;;
3862  esac
3863 else
3864   enable_cxx_flags='none'
3865 fi
3866
3867
3868 if test "$enable_cxx_flags" = "none"; then 
3869   enable_cxx_flags=''; 
3870 fi
3871
3872 if test -n "$enable_cxx_flags"; then
3873     for f in $enable_cxx_flags; do
3874         case "$f" in
3875             -fhonor-std)  ;;
3876             -*)  ;;
3877             *)   # and we're trying to pass /what/ exactly?
3878                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3879         esac
3880     done
3881 fi
3882 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3883
3884
3885
3886   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3887 echo "configure:3888: checking for exception model to use" >&5
3888   
3889   ac_ext=C
3890 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3891 ac_cpp='$CXXCPP $CPPFLAGS'
3892 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3893 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3894 cross_compiling=$ac_cv_prog_cxx_cross
3895
3896   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3897 if test "${enable_sjlj_exceptions+set}" = set; then
3898   enableval="$enable_sjlj_exceptions"
3899   :
3900 else
3901                        cat > conftest.$ac_ext << EOF
3902 #line 3903 "configure"
3903 struct S { ~S(); };
3904 void bar();
3905 void foo()
3906 {
3907   S s;
3908   bar();
3909 }
3910 EOF
3911    old_CXXFLAGS="$CXXFLAGS"  
3912    CXXFLAGS=-S
3913    if { (eval echo configure:3914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3914      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3915        enable_sjlj_exceptions=yes
3916      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3917        enable_sjlj_exceptions=no
3918      fi
3919    fi
3920    CXXFLAGS="$old_CXXFLAGS"
3921    rm -f conftest*
3922 fi
3923
3924    if test x$enable_sjlj_exceptions = xyes; then
3925      cat >> confdefs.h <<\EOF
3926 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3927 EOF
3928
3929      ac_exception_model_name=sjlj
3930    elif test x$enable_sjlj_exceptions = xno; then
3931      ac_exception_model_name="call frame"
3932    else
3933      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3934    fi
3935    ac_ext=c
3936 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3937 ac_cpp='$CPP $CPPFLAGS'
3938 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3939 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3940 cross_compiling=$ac_cv_prog_cc_cross
3941
3942    echo "$ac_t""$ac_exception_model_name" 1>&6
3943
3944 # Check whether --enable-concept-checks or --disable-concept-checks was given.
3945 if test "${enable_concept_checks+set}" = set; then
3946   enableval="$enable_concept_checks"
3947   case "$enableval" in
3948  yes) enable_concept_checks=yes ;;
3949  no)  enable_concept_checks=no ;;
3950  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
3951  esac
3952 else
3953   enable_concept_checks=no
3954 fi
3955 if test x"$enable_concept_checks" = xyes; then
3956   cat >> confdefs.h <<\EOF
3957 #define _GLIBCPP_CONCEPT_CHECKS 1
3958 EOF
3959
3960 fi
3961
3962
3963
3964 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
3965
3966   # This lets us hard-code the functionality we know
3967   # we'll have in the cross target environment. "Let" is a
3968   # sugar-coated word placed on an especially dull and tedious hack, actually.
3969   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
3970   # that involve linking can't be used:
3971   # "cannot open sim-crt0.o"
3972   # "cannot open crt0.o"
3973   # etc. All this is because there currently exists no unified,
3974   # consistent way for top level CC information to be passed down
3975   # to target directories: newlib includes, newlib linking info,
3976   # libgloss versus newlib crt0.o, etc. When all of this is done, all
3977   # of this hokey, excessive AC_DEFINE junk for crosses can be removed.
3978
3979   # We are being configured with some form of cross compiler.
3980   GLIBCPP_IS_CROSS_COMPILING=1
3981
3982   # If Canadian cross, then don't pick up tools from the build
3983   # directory.
3984   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
3985     CANADIAN=yes
3986   else
3987     CANADIAN=no
3988   fi
3989
3990   # Construct crosses by hand, eliminating bits that need ld...
3991   # GLIBCPP_CHECK_COMPILER_FEATURES
3992   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
3993   # GLIBCPP_CHECK_MATH_SUPPORT
3994
3995   case "$target_alias" in
3996     *-linux*)
3997       # Check for available headers.
3998       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3999         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4000         fp.h locale.h float.h inttypes.h
4001 do
4002 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4003 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4004 echo "configure:4005: checking for $ac_hdr" >&5
4005 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4006   echo $ac_n "(cached) $ac_c" 1>&6
4007 else
4008   cat > conftest.$ac_ext <<EOF
4009 #line 4010 "configure"
4010 #include "confdefs.h"
4011 #include <$ac_hdr>
4012 EOF
4013 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4014 { (eval echo configure:4015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4015 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4016 if test -z "$ac_err"; then
4017   rm -rf conftest*
4018   eval "ac_cv_header_$ac_safe=yes"
4019 else
4020   echo "$ac_err" >&5
4021   echo "configure: failed program was:" >&5
4022   cat conftest.$ac_ext >&5
4023   rm -rf conftest*
4024   eval "ac_cv_header_$ac_safe=no"
4025 fi
4026 rm -f conftest*
4027 fi
4028 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4029   echo "$ac_t""yes" 1>&6
4030     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4031   cat >> confdefs.h <<EOF
4032 #define $ac_tr_hdr 1
4033 EOF
4034  
4035 else
4036   echo "$ac_t""no" 1>&6
4037 fi
4038 done
4039
4040       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4041       
4042       
4043   # If we're not using GNU ld, then there's no point in even trying these
4044   # tests.  Check for that first.  We should have already tested for gld
4045   # by now (in libtool), but require it now just to be safe...
4046   SECTION_LDFLAGS=''
4047   OPT_LDFLAGS=''
4048   
4049
4050   # Set --gc-sections.
4051   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4052     # GNU ld it is!  Joy and bunny rabbits!
4053
4054     # All these tests are for C++; save the language and the compiler flags.
4055     # Need to do this so that g++ won't try to link in libstdc++
4056     ac_test_CFLAGS="${CFLAGS+set}"
4057     ac_save_CFLAGS="$CFLAGS"
4058     CFLAGS='-x c++  -Wl,--gc-sections'
4059
4060     # Check for -Wl,--gc-sections
4061     # XXX This test is broken at the moment, as symbols required for
4062     # linking are now in libsupc++ (not built yet.....). In addition, 
4063     # this test has cored on solaris in the past. In addition,
4064     # --gc-sections doesn't really work at the moment (keeps on discarding
4065     # used sections, first .eh_frame and now some of the glibc sections for
4066     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4067     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4068 echo "configure:4069: checking for ld that supports -Wl,--gc-sections" >&5
4069     if test "$cross_compiling" = yes; then
4070   ac_sectionLDflags=yes
4071 else
4072   cat > conftest.$ac_ext <<EOF
4073 #line 4074 "configure"
4074 #include "confdefs.h"
4075
4076      int main(void) 
4077      {
4078        try { throw 1; }
4079        catch (...) { };
4080        return 0;
4081      }
4082     
4083 EOF
4084 if { (eval echo configure:4085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4085 then
4086   ac_sectionLDflags=yes
4087 else
4088   echo "configure: failed program was:" >&5
4089   cat conftest.$ac_ext >&5
4090   rm -fr conftest*
4091   ac_sectionLFflags=no
4092 fi
4093 rm -fr conftest*
4094 fi
4095
4096     if test "$ac_test_CFLAGS" = set; then
4097       CFLAGS="$ac_save_CFLAGS"
4098     else
4099       # this is the suspicious part
4100       CFLAGS=''
4101     fi
4102     if test "$ac_sectionLDflags" = "yes"; then
4103       SECTION_LDFLAGS='-Wl,--gc-sections'
4104     fi
4105     echo "$ac_t""$ac_sectionLDflags" 1>&6
4106   fi
4107
4108   # Set linker optimization flags.
4109   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
4110      test x"$enable_debug" = x"no"; then
4111     OPT_LDFLAGS='-Wl,-O1'
4112   fi
4113
4114   
4115   
4116
4117       
4118     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4119 echo "configure:4120: checking for main in -lm" >&5
4120 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4121 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4122   echo $ac_n "(cached) $ac_c" 1>&6
4123 else
4124   ac_save_LIBS="$LIBS"
4125 LIBS="-lm  $LIBS"
4126 cat > conftest.$ac_ext <<EOF
4127 #line 4128 "configure"
4128 #include "confdefs.h"
4129
4130 int main() {
4131 main()
4132 ; return 0; }
4133 EOF
4134 if { (eval echo configure:4135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4135   rm -rf conftest*
4136   eval "ac_cv_lib_$ac_lib_var=yes"
4137 else
4138   echo "configure: failed program was:" >&5
4139   cat conftest.$ac_ext >&5
4140   rm -rf conftest*
4141   eval "ac_cv_lib_$ac_lib_var=no"
4142 fi
4143 rm -f conftest*
4144 LIBS="$ac_save_LIBS"
4145
4146 fi
4147 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4148   echo "$ac_t""yes" 1>&6
4149     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4150     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4151   cat >> confdefs.h <<EOF
4152 #define $ac_tr_lib 1
4153 EOF
4154
4155   LIBS="-lm $LIBS"
4156
4157 else
4158   echo "$ac_t""no" 1>&6
4159 fi
4160
4161   for ac_func in nan copysignf
4162 do
4163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4164 echo "configure:4165: checking for $ac_func" >&5
4165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4166   echo $ac_n "(cached) $ac_c" 1>&6
4167 else
4168   cat > conftest.$ac_ext <<EOF
4169 #line 4170 "configure"
4170 #include "confdefs.h"
4171 /* System header to define __stub macros and hopefully few prototypes,
4172     which can conflict with char $ac_func(); below.  */
4173 #include <assert.h>
4174 /* Override any gcc2 internal prototype to avoid an error.  */
4175 /* We use char because int might match the return type of a gcc2
4176     builtin and then its argument prototype would still apply.  */
4177 char $ac_func();
4178
4179 int main() {
4180
4181 /* The GNU C library defines this for functions which it implements
4182     to always fail with ENOSYS.  Some functions are actually named
4183     something starting with __ and the normal name is an alias.  */
4184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4185 choke me
4186 #else
4187 $ac_func();
4188 #endif
4189
4190 ; return 0; }
4191 EOF
4192 if { (eval echo configure:4193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4193   rm -rf conftest*
4194   eval "ac_cv_func_$ac_func=yes"
4195 else
4196   echo "configure: failed program was:" >&5
4197   cat conftest.$ac_ext >&5
4198   rm -rf conftest*
4199   eval "ac_cv_func_$ac_func=no"
4200 fi
4201 rm -f conftest*
4202 fi
4203
4204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4205   echo "$ac_t""yes" 1>&6
4206     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4207   cat >> confdefs.h <<EOF
4208 #define $ac_tr_func 1
4209 EOF
4210  
4211 else
4212   echo "$ac_t""no" 1>&6
4213 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4214 fi
4215 done
4216
4217
4218
4219           USE_COMPLEX_LONG_DOUBLE=no
4220   if test x$ac_cv_func_copysignl = x"yes"; then
4221     USE_COMPLEX_LONG_DOUBLE=yes
4222     for ac_func in signbitl
4223 do
4224 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4225 echo "configure:4226: checking for $ac_func" >&5
4226 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4227   echo $ac_n "(cached) $ac_c" 1>&6
4228 else
4229   cat > conftest.$ac_ext <<EOF
4230 #line 4231 "configure"
4231 #include "confdefs.h"
4232 /* System header to define __stub macros and hopefully few prototypes,
4233     which can conflict with char $ac_func(); below.  */
4234 #include <assert.h>
4235 /* Override any gcc2 internal prototype to avoid an error.  */
4236 /* We use char because int might match the return type of a gcc2
4237     builtin and then its argument prototype would still apply.  */
4238 char $ac_func();
4239
4240 int main() {
4241
4242 /* The GNU C library defines this for functions which it implements
4243     to always fail with ENOSYS.  Some functions are actually named
4244     something starting with __ and the normal name is an alias.  */
4245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4246 choke me
4247 #else
4248 $ac_func();
4249 #endif
4250
4251 ; return 0; }
4252 EOF
4253 if { (eval echo configure:4254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4254   rm -rf conftest*
4255   eval "ac_cv_func_$ac_func=yes"
4256 else
4257   echo "configure: failed program was:" >&5
4258   cat conftest.$ac_ext >&5
4259   rm -rf conftest*
4260   eval "ac_cv_func_$ac_func=no"
4261 fi
4262 rm -f conftest*
4263 fi
4264
4265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4266   echo "$ac_t""yes" 1>&6
4267     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4268   cat >> confdefs.h <<EOF
4269 #define $ac_tr_func 1
4270 EOF
4271  
4272 else
4273   echo "$ac_t""no" 1>&6
4274 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4275 fi
4276 done
4277
4278
4279   fi
4280
4281   
4282
4283       
4284
4285       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4286 echo "configure:4287: checking for mbstate_t" >&5
4287   cat > conftest.$ac_ext <<EOF
4288 #line 4289 "configure"
4289 #include "confdefs.h"
4290 #include <wchar.h>
4291 int main() {
4292 mbstate_t teststate;
4293 ; return 0; }
4294 EOF
4295 if { (eval echo configure:4296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4296   rm -rf conftest*
4297   have_mbstate_t=yes
4298 else
4299   echo "configure: failed program was:" >&5
4300   cat conftest.$ac_ext >&5
4301   rm -rf conftest*
4302   have_mbstate_t=no
4303 fi
4304 rm -f conftest*
4305   echo "$ac_t""$have_mbstate_t" 1>&6
4306   if test x"$have_mbstate_t" = xyes; then
4307     cat >> confdefs.h <<\EOF
4308 #define HAVE_MBSTATE_T 1
4309 EOF
4310
4311   fi
4312
4313     for ac_hdr in wchar.h
4314 do
4315 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4316 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4317 echo "configure:4318: checking for $ac_hdr" >&5
4318 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4319   echo $ac_n "(cached) $ac_c" 1>&6
4320 else
4321   cat > conftest.$ac_ext <<EOF
4322 #line 4323 "configure"
4323 #include "confdefs.h"
4324 #include <$ac_hdr>
4325 EOF
4326 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4327 { (eval echo configure:4328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4328 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4329 if test -z "$ac_err"; then
4330   rm -rf conftest*
4331   eval "ac_cv_header_$ac_safe=yes"
4332 else
4333   echo "$ac_err" >&5
4334   echo "configure: failed program was:" >&5
4335   cat conftest.$ac_ext >&5
4336   rm -rf conftest*
4337   eval "ac_cv_header_$ac_safe=no"
4338 fi
4339 rm -f conftest*
4340 fi
4341 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4342   echo "$ac_t""yes" 1>&6
4343     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4344   cat >> confdefs.h <<EOF
4345 #define $ac_tr_hdr 1
4346 EOF
4347  ac_has_wchar_h=yes
4348 else
4349   echo "$ac_t""no" 1>&6
4350 ac_has_wchar_h=no
4351 fi
4352 done
4353
4354   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4355 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4356 echo "configure:4357: checking for wctype.h" >&5
4357 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4358   echo $ac_n "(cached) $ac_c" 1>&6
4359 else
4360   cat > conftest.$ac_ext <<EOF
4361 #line 4362 "configure"
4362 #include "confdefs.h"
4363 #include <wctype.h>
4364 EOF
4365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4366 { (eval echo configure:4367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4368 if test -z "$ac_err"; then
4369   rm -rf conftest*
4370   eval "ac_cv_header_$ac_safe=yes"
4371 else
4372   echo "$ac_err" >&5
4373   echo "configure: failed program was:" >&5
4374   cat conftest.$ac_ext >&5
4375   rm -rf conftest*
4376   eval "ac_cv_header_$ac_safe=no"
4377 fi
4378 rm -f conftest*
4379 fi
4380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4381   echo "$ac_t""yes" 1>&6
4382   ac_has_wctype_h=yes
4383 else
4384   echo "$ac_t""no" 1>&6
4385 ac_has_wctype_h=no
4386 fi
4387
4388   
4389     if test x"$ac_has_wchar_h" = xyes &&
4390      test x"$ac_has_wctype_h" = xyes &&
4391      test x"$enable_c_mbchar" != xno; then
4392       
4393             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4394 echo "configure:4395: checking for WCHAR_MIN and WCHAR_MAX" >&5
4395     cat > conftest.$ac_ext <<EOF
4396 #line 4397 "configure"
4397 #include "confdefs.h"
4398 #include <wchar.h>
4399 int main() {
4400 int i = WCHAR_MIN; int j = WCHAR_MAX;
4401 ; return 0; }
4402 EOF
4403 if { (eval echo configure:4404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4404   rm -rf conftest*
4405   has_wchar_minmax=yes
4406 else
4407   echo "configure: failed program was:" >&5
4408   cat conftest.$ac_ext >&5
4409   rm -rf conftest*
4410   has_wchar_minmax=no
4411 fi
4412 rm -f conftest*
4413     echo "$ac_t""$has_wchar_minmax" 1>&6
4414     
4415             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4416 echo "configure:4417: checking for WEOF" >&5
4417     cat > conftest.$ac_ext <<EOF
4418 #line 4419 "configure"
4419 #include "confdefs.h"
4420
4421       #include <wchar.h>
4422       #include <stddef.h>
4423 int main() {
4424 wint_t i = WEOF;
4425 ; return 0; }
4426 EOF
4427 if { (eval echo configure:4428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4428   rm -rf conftest*
4429   has_weof=yes
4430 else
4431   echo "configure: failed program was:" >&5
4432   cat conftest.$ac_ext >&5
4433   rm -rf conftest*
4434   has_weof=no
4435 fi
4436 rm -f conftest*
4437     echo "$ac_t""$has_weof" 1>&6
4438   
4439         ac_wfuncs=yes
4440     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4441 do
4442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4443 echo "configure:4444: checking for $ac_func" >&5
4444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4445   echo $ac_n "(cached) $ac_c" 1>&6
4446 else
4447   cat > conftest.$ac_ext <<EOF
4448 #line 4449 "configure"
4449 #include "confdefs.h"
4450 /* System header to define __stub macros and hopefully few prototypes,
4451     which can conflict with char $ac_func(); below.  */
4452 #include <assert.h>
4453 /* Override any gcc2 internal prototype to avoid an error.  */
4454 /* We use char because int might match the return type of a gcc2
4455     builtin and then its argument prototype would still apply.  */
4456 char $ac_func();
4457
4458 int main() {
4459
4460 /* The GNU C library defines this for functions which it implements
4461     to always fail with ENOSYS.  Some functions are actually named
4462     something starting with __ and the normal name is an alias.  */
4463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4464 choke me
4465 #else
4466 $ac_func();
4467 #endif
4468
4469 ; return 0; }
4470 EOF
4471 if { (eval echo configure:4472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4472   rm -rf conftest*
4473   eval "ac_cv_func_$ac_func=yes"
4474 else
4475   echo "configure: failed program was:" >&5
4476   cat conftest.$ac_ext >&5
4477   rm -rf conftest*
4478   eval "ac_cv_func_$ac_func=no"
4479 fi
4480 rm -f conftest*
4481 fi
4482
4483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4484   echo "$ac_t""yes" 1>&6
4485     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4486   cat >> confdefs.h <<EOF
4487 #define $ac_tr_func 1
4488 EOF
4489  
4490 else
4491   echo "$ac_t""no" 1>&6
4492 \
4493     ac_wfuncs=no
4494 fi
4495 done
4496
4497   
4498         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4499     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4500     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4501     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4502     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4503     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4504 do
4505 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4506 echo "configure:4507: checking for $ac_func" >&5
4507 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4508   echo $ac_n "(cached) $ac_c" 1>&6
4509 else
4510   cat > conftest.$ac_ext <<EOF
4511 #line 4512 "configure"
4512 #include "confdefs.h"
4513 /* System header to define __stub macros and hopefully few prototypes,
4514     which can conflict with char $ac_func(); below.  */
4515 #include <assert.h>
4516 /* Override any gcc2 internal prototype to avoid an error.  */
4517 /* We use char because int might match the return type of a gcc2
4518     builtin and then its argument prototype would still apply.  */
4519 char $ac_func();
4520
4521 int main() {
4522
4523 /* The GNU C library defines this for functions which it implements
4524     to always fail with ENOSYS.  Some functions are actually named
4525     something starting with __ and the normal name is an alias.  */
4526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4527 choke me
4528 #else
4529 $ac_func();
4530 #endif
4531
4532 ; return 0; }
4533 EOF
4534 if { (eval echo configure:4535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4535   rm -rf conftest*
4536   eval "ac_cv_func_$ac_func=yes"
4537 else
4538   echo "configure: failed program was:" >&5
4539   cat conftest.$ac_ext >&5
4540   rm -rf conftest*
4541   eval "ac_cv_func_$ac_func=no"
4542 fi
4543 rm -f conftest*
4544 fi
4545
4546 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4547   echo "$ac_t""yes" 1>&6
4548     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4549   cat >> confdefs.h <<EOF
4550 #define $ac_tr_func 1
4551 EOF
4552  
4553 else
4554   echo "$ac_t""no" 1>&6
4555 \
4556     ac_wfuncs=no
4557 fi
4558 done
4559
4560
4561     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4562 echo "configure:4563: checking for ISO C99 wchar_t support" >&5
4563     if test x"$has_weof" = xyes &&
4564        test x"$has_wchar_minmax" = xyes &&
4565        test x"$ac_wfuncs" = xyes; then
4566       ac_isoC99_wchar_t=yes
4567     else
4568       ac_isoC99_wchar_t=no
4569     fi
4570     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4571   
4572             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4573 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4574 echo "configure:4575: checking for iconv.h" >&5
4575 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4576   echo $ac_n "(cached) $ac_c" 1>&6
4577 else
4578   cat > conftest.$ac_ext <<EOF
4579 #line 4580 "configure"
4580 #include "confdefs.h"
4581 #include <iconv.h>
4582 EOF
4583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4584 { (eval echo configure:4585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4586 if test -z "$ac_err"; then
4587   rm -rf conftest*
4588   eval "ac_cv_header_$ac_safe=yes"
4589 else
4590   echo "$ac_err" >&5
4591   echo "configure: failed program was:" >&5
4592   cat conftest.$ac_ext >&5
4593   rm -rf conftest*
4594   eval "ac_cv_header_$ac_safe=no"
4595 fi
4596 rm -f conftest*
4597 fi
4598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4599   echo "$ac_t""yes" 1>&6
4600   ac_has_iconv_h=yes
4601 else
4602   echo "$ac_t""no" 1>&6
4603 ac_has_iconv_h=no
4604 fi
4605
4606     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4607 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4608 echo "configure:4609: checking for langinfo.h" >&5
4609 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4610   echo $ac_n "(cached) $ac_c" 1>&6
4611 else
4612   cat > conftest.$ac_ext <<EOF
4613 #line 4614 "configure"
4614 #include "confdefs.h"
4615 #include <langinfo.h>
4616 EOF
4617 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4618 { (eval echo configure:4619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4619 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4620 if test -z "$ac_err"; then
4621   rm -rf conftest*
4622   eval "ac_cv_header_$ac_safe=yes"
4623 else
4624   echo "$ac_err" >&5
4625   echo "configure: failed program was:" >&5
4626   cat conftest.$ac_ext >&5
4627   rm -rf conftest*
4628   eval "ac_cv_header_$ac_safe=no"
4629 fi
4630 rm -f conftest*
4631 fi
4632 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4633   echo "$ac_t""yes" 1>&6
4634   ac_has_langinfo_h=yes
4635 else
4636   echo "$ac_t""no" 1>&6
4637 ac_has_langinfo_h=no
4638 fi
4639
4640
4641         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4642 echo "configure:4643: checking for iconv in -liconv" >&5
4643 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4644 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4645   echo $ac_n "(cached) $ac_c" 1>&6
4646 else
4647   ac_save_LIBS="$LIBS"
4648 LIBS="-liconv  $LIBS"
4649 cat > conftest.$ac_ext <<EOF
4650 #line 4651 "configure"
4651 #include "confdefs.h"
4652 /* Override any gcc2 internal prototype to avoid an error.  */
4653 /* We use char because int might match the return type of a gcc2
4654     builtin and then its argument prototype would still apply.  */
4655 char iconv();
4656
4657 int main() {
4658 iconv()
4659 ; return 0; }
4660 EOF
4661 if { (eval echo configure:4662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4662   rm -rf conftest*
4663   eval "ac_cv_lib_$ac_lib_var=yes"
4664 else
4665   echo "configure: failed program was:" >&5
4666   cat conftest.$ac_ext >&5
4667   rm -rf conftest*
4668   eval "ac_cv_lib_$ac_lib_var=no"
4669 fi
4670 rm -f conftest*
4671 LIBS="$ac_save_LIBS"
4672
4673 fi
4674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4675   echo "$ac_t""yes" 1>&6
4676   libiconv="-liconv"
4677 else
4678   echo "$ac_t""no" 1>&6
4679 fi
4680
4681     ac_save_LIBS="$LIBS"
4682     LIBS="$LIBS $libiconv"
4683
4684     for ac_func in iconv_open iconv_close iconv nl_langinfo
4685 do
4686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4687 echo "configure:4688: checking for $ac_func" >&5
4688 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4689   echo $ac_n "(cached) $ac_c" 1>&6
4690 else
4691   cat > conftest.$ac_ext <<EOF
4692 #line 4693 "configure"
4693 #include "confdefs.h"
4694 /* System header to define __stub macros and hopefully few prototypes,
4695     which can conflict with char $ac_func(); below.  */
4696 #include <assert.h>
4697 /* Override any gcc2 internal prototype to avoid an error.  */
4698 /* We use char because int might match the return type of a gcc2
4699     builtin and then its argument prototype would still apply.  */
4700 char $ac_func();
4701
4702 int main() {
4703
4704 /* The GNU C library defines this for functions which it implements
4705     to always fail with ENOSYS.  Some functions are actually named
4706     something starting with __ and the normal name is an alias.  */
4707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4708 choke me
4709 #else
4710 $ac_func();
4711 #endif
4712
4713 ; return 0; }
4714 EOF
4715 if { (eval echo configure:4716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4716   rm -rf conftest*
4717   eval "ac_cv_func_$ac_func=yes"
4718 else
4719   echo "configure: failed program was:" >&5
4720   cat conftest.$ac_ext >&5
4721   rm -rf conftest*
4722   eval "ac_cv_func_$ac_func=no"
4723 fi
4724 rm -f conftest*
4725 fi
4726
4727 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4728   echo "$ac_t""yes" 1>&6
4729     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4730   cat >> confdefs.h <<EOF
4731 #define $ac_tr_func 1
4732 EOF
4733  \
4734     ac_XPG2funcs=yes
4735 else
4736   echo "$ac_t""no" 1>&6
4737 ac_XPG2funcs=no
4738 fi
4739 done
4740
4741   
4742     LIBS="$ac_save_LIBS"
4743
4744     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4745 echo "configure:4746: checking for XPG2 wchar_t support" >&5
4746     if test x"$ac_has_iconv_h" = xyes &&
4747        test x"$ac_has_langinfo_h" = xyes &&
4748        test x"$ac_XPG2funcs" = xyes; then
4749       ac_XPG2_wchar_t=yes
4750     else
4751       ac_XPG2_wchar_t=no
4752     fi
4753     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4754   
4755             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4756 echo "configure:4757: checking for enabled wchar_t specializations" >&5
4757     if test x"$ac_isoC99_wchar_t" = xyes &&
4758        test x"$ac_XPG2_wchar_t" = xyes; then
4759       cat >> confdefs.h <<\EOF
4760 #define _GLIBCPP_USE_WCHAR_T 1
4761 EOF
4762
4763       echo "$ac_t"""yes"" 1>&6
4764     else
4765       echo "$ac_t"""no"" 1>&6
4766     fi
4767   else
4768         echo "configure: warning: wchar_t support disabled." 1>&2
4769   fi
4770
4771       os_include_dir="config/os/gnu-linux"
4772       cat >> confdefs.h <<\EOF
4773 #define HAVE_COPYSIGN 1
4774 EOF
4775
4776       cat >> confdefs.h <<\EOF
4777 #define HAVE_COPYSIGNF 1
4778 EOF
4779
4780       cat >> confdefs.h <<\EOF
4781 #define HAVE_FINITEF 1
4782 EOF
4783
4784       cat >> confdefs.h <<\EOF
4785 #define HAVE_FREXPF 1
4786 EOF
4787
4788       cat >> confdefs.h <<\EOF
4789 #define HAVE_HYPOTF 1
4790 EOF
4791
4792       cat >> confdefs.h <<\EOF
4793 #define HAVE_SINCOS 1
4794 EOF
4795
4796       cat >> confdefs.h <<\EOF
4797 #define HAVE_SINCOSF 1
4798 EOF
4799
4800       if test x"long_double_math_on_this_cpu" = x"yes"; then
4801         cat >> confdefs.h <<\EOF
4802 #define HAVE_HYPOTL 1
4803 EOF
4804
4805       fi
4806       ;;
4807     *-hpux*)
4808       # Check for available headers.
4809       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4810         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4811         fp.h locale.h float.h inttypes.h
4812 do
4813 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4815 echo "configure:4816: checking for $ac_hdr" >&5
4816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4817   echo $ac_n "(cached) $ac_c" 1>&6
4818 else
4819   cat > conftest.$ac_ext <<EOF
4820 #line 4821 "configure"
4821 #include "confdefs.h"
4822 #include <$ac_hdr>
4823 EOF
4824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4825 { (eval echo configure:4826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4827 if test -z "$ac_err"; then
4828   rm -rf conftest*
4829   eval "ac_cv_header_$ac_safe=yes"
4830 else
4831   echo "$ac_err" >&5
4832   echo "configure: failed program was:" >&5
4833   cat conftest.$ac_ext >&5
4834   rm -rf conftest*
4835   eval "ac_cv_header_$ac_safe=no"
4836 fi
4837 rm -f conftest*
4838 fi
4839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4840   echo "$ac_t""yes" 1>&6
4841     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4842   cat >> confdefs.h <<EOF
4843 #define $ac_tr_hdr 1
4844 EOF
4845  
4846 else
4847   echo "$ac_t""no" 1>&6
4848 fi
4849 done
4850
4851       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4852       
4853       
4854   # If we're not using GNU ld, then there's no point in even trying these
4855   # tests.  Check for that first.  We should have already tested for gld
4856   # by now (in libtool), but require it now just to be safe...
4857   SECTION_LDFLAGS=''
4858   OPT_LDFLAGS=''
4859   
4860
4861   # Set --gc-sections.
4862   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4863     # GNU ld it is!  Joy and bunny rabbits!
4864
4865     # All these tests are for C++; save the language and the compiler flags.
4866     # Need to do this so that g++ won't try to link in libstdc++
4867     ac_test_CFLAGS="${CFLAGS+set}"
4868     ac_save_CFLAGS="$CFLAGS"
4869     CFLAGS='-x c++  -Wl,--gc-sections'
4870
4871     # Check for -Wl,--gc-sections
4872     # XXX This test is broken at the moment, as symbols required for
4873     # linking are now in libsupc++ (not built yet.....). In addition, 
4874     # this test has cored on solaris in the past. In addition,
4875     # --gc-sections doesn't really work at the moment (keeps on discarding
4876     # used sections, first .eh_frame and now some of the glibc sections for
4877     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4878     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4879 echo "configure:4880: checking for ld that supports -Wl,--gc-sections" >&5
4880     if test "$cross_compiling" = yes; then
4881   ac_sectionLDflags=yes
4882 else
4883   cat > conftest.$ac_ext <<EOF
4884 #line 4885 "configure"
4885 #include "confdefs.h"
4886
4887      int main(void) 
4888      {
4889        try { throw 1; }
4890        catch (...) { };
4891        return 0;
4892      }
4893     
4894 EOF
4895 if { (eval echo configure:4896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4896 then
4897   ac_sectionLDflags=yes
4898 else
4899   echo "configure: failed program was:" >&5
4900   cat conftest.$ac_ext >&5
4901   rm -fr conftest*
4902   ac_sectionLFflags=no
4903 fi
4904 rm -fr conftest*
4905 fi
4906
4907     if test "$ac_test_CFLAGS" = set; then
4908       CFLAGS="$ac_save_CFLAGS"
4909     else
4910       # this is the suspicious part
4911       CFLAGS=''
4912     fi
4913     if test "$ac_sectionLDflags" = "yes"; then
4914       SECTION_LDFLAGS='-Wl,--gc-sections'
4915     fi
4916     echo "$ac_t""$ac_sectionLDflags" 1>&6
4917   fi
4918
4919   # Set linker optimization flags.
4920   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
4921      test x"$enable_debug" = x"no"; then
4922     OPT_LDFLAGS='-Wl,-O1'
4923   fi
4924
4925   
4926   
4927
4928       
4929     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4930 echo "configure:4931: checking for main in -lm" >&5
4931 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4932 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4933   echo $ac_n "(cached) $ac_c" 1>&6
4934 else
4935   ac_save_LIBS="$LIBS"
4936 LIBS="-lm  $LIBS"
4937 cat > conftest.$ac_ext <<EOF
4938 #line 4939 "configure"
4939 #include "confdefs.h"
4940
4941 int main() {
4942 main()
4943 ; return 0; }
4944 EOF
4945 if { (eval echo configure:4946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4946   rm -rf conftest*
4947   eval "ac_cv_lib_$ac_lib_var=yes"
4948 else
4949   echo "configure: failed program was:" >&5
4950   cat conftest.$ac_ext >&5
4951   rm -rf conftest*
4952   eval "ac_cv_lib_$ac_lib_var=no"
4953 fi
4954 rm -f conftest*
4955 LIBS="$ac_save_LIBS"
4956
4957 fi
4958 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4959   echo "$ac_t""yes" 1>&6
4960     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4961     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4962   cat >> confdefs.h <<EOF
4963 #define $ac_tr_lib 1
4964 EOF
4965
4966   LIBS="-lm $LIBS"
4967
4968 else
4969   echo "$ac_t""no" 1>&6
4970 fi
4971
4972   for ac_func in nan copysignf
4973 do
4974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4975 echo "configure:4976: checking for $ac_func" >&5
4976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4977   echo $ac_n "(cached) $ac_c" 1>&6
4978 else
4979   cat > conftest.$ac_ext <<EOF
4980 #line 4981 "configure"
4981 #include "confdefs.h"
4982 /* System header to define __stub macros and hopefully few prototypes,
4983     which can conflict with char $ac_func(); below.  */
4984 #include <assert.h>
4985 /* Override any gcc2 internal prototype to avoid an error.  */
4986 /* We use char because int might match the return type of a gcc2
4987     builtin and then its argument prototype would still apply.  */
4988 char $ac_func();
4989
4990 int main() {
4991
4992 /* The GNU C library defines this for functions which it implements
4993     to always fail with ENOSYS.  Some functions are actually named
4994     something starting with __ and the normal name is an alias.  */
4995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4996 choke me
4997 #else
4998 $ac_func();
4999 #endif
5000
5001 ; return 0; }
5002 EOF
5003 if { (eval echo configure:5004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5004   rm -rf conftest*
5005   eval "ac_cv_func_$ac_func=yes"
5006 else
5007   echo "configure: failed program was:" >&5
5008   cat conftest.$ac_ext >&5
5009   rm -rf conftest*
5010   eval "ac_cv_func_$ac_func=no"
5011 fi
5012 rm -f conftest*
5013 fi
5014
5015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5016   echo "$ac_t""yes" 1>&6
5017     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5018   cat >> confdefs.h <<EOF
5019 #define $ac_tr_func 1
5020 EOF
5021  
5022 else
5023   echo "$ac_t""no" 1>&6
5024 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5025 fi
5026 done
5027
5028
5029
5030           USE_COMPLEX_LONG_DOUBLE=no
5031   if test x$ac_cv_func_copysignl = x"yes"; then
5032     USE_COMPLEX_LONG_DOUBLE=yes
5033     for ac_func in signbitl
5034 do
5035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5036 echo "configure:5037: checking for $ac_func" >&5
5037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5038   echo $ac_n "(cached) $ac_c" 1>&6
5039 else
5040   cat > conftest.$ac_ext <<EOF
5041 #line 5042 "configure"
5042 #include "confdefs.h"
5043 /* System header to define __stub macros and hopefully few prototypes,
5044     which can conflict with char $ac_func(); below.  */
5045 #include <assert.h>
5046 /* Override any gcc2 internal prototype to avoid an error.  */
5047 /* We use char because int might match the return type of a gcc2
5048     builtin and then its argument prototype would still apply.  */
5049 char $ac_func();
5050
5051 int main() {
5052
5053 /* The GNU C library defines this for functions which it implements
5054     to always fail with ENOSYS.  Some functions are actually named
5055     something starting with __ and the normal name is an alias.  */
5056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5057 choke me
5058 #else
5059 $ac_func();
5060 #endif
5061
5062 ; return 0; }
5063 EOF
5064 if { (eval echo configure:5065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5065   rm -rf conftest*
5066   eval "ac_cv_func_$ac_func=yes"
5067 else
5068   echo "configure: failed program was:" >&5
5069   cat conftest.$ac_ext >&5
5070   rm -rf conftest*
5071   eval "ac_cv_func_$ac_func=no"
5072 fi
5073 rm -f conftest*
5074 fi
5075
5076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5077   echo "$ac_t""yes" 1>&6
5078     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5079   cat >> confdefs.h <<EOF
5080 #define $ac_tr_func 1
5081 EOF
5082  
5083 else
5084   echo "$ac_t""no" 1>&6
5085 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5086 fi
5087 done
5088
5089
5090   fi
5091
5092   
5093
5094       
5095
5096       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5097 echo "configure:5098: checking for mbstate_t" >&5
5098   cat > conftest.$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5101 #include <wchar.h>
5102 int main() {
5103 mbstate_t teststate;
5104 ; return 0; }
5105 EOF
5106 if { (eval echo configure:5107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5107   rm -rf conftest*
5108   have_mbstate_t=yes
5109 else
5110   echo "configure: failed program was:" >&5
5111   cat conftest.$ac_ext >&5
5112   rm -rf conftest*
5113   have_mbstate_t=no
5114 fi
5115 rm -f conftest*
5116   echo "$ac_t""$have_mbstate_t" 1>&6
5117   if test x"$have_mbstate_t" = xyes; then
5118     cat >> confdefs.h <<\EOF
5119 #define HAVE_MBSTATE_T 1
5120 EOF
5121
5122   fi
5123
5124     for ac_hdr in wchar.h
5125 do
5126 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5127 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5128 echo "configure:5129: checking for $ac_hdr" >&5
5129 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5130   echo $ac_n "(cached) $ac_c" 1>&6
5131 else
5132   cat > conftest.$ac_ext <<EOF
5133 #line 5134 "configure"
5134 #include "confdefs.h"
5135 #include <$ac_hdr>
5136 EOF
5137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5138 { (eval echo configure:5139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5139 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5140 if test -z "$ac_err"; then
5141   rm -rf conftest*
5142   eval "ac_cv_header_$ac_safe=yes"
5143 else
5144   echo "$ac_err" >&5
5145   echo "configure: failed program was:" >&5
5146   cat conftest.$ac_ext >&5
5147   rm -rf conftest*
5148   eval "ac_cv_header_$ac_safe=no"
5149 fi
5150 rm -f conftest*
5151 fi
5152 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5153   echo "$ac_t""yes" 1>&6
5154     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5155   cat >> confdefs.h <<EOF
5156 #define $ac_tr_hdr 1
5157 EOF
5158  ac_has_wchar_h=yes
5159 else
5160   echo "$ac_t""no" 1>&6
5161 ac_has_wchar_h=no
5162 fi
5163 done
5164
5165   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
5166 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
5167 echo "configure:5168: checking for wctype.h" >&5
5168 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5169   echo $ac_n "(cached) $ac_c" 1>&6
5170 else
5171   cat > conftest.$ac_ext <<EOF
5172 #line 5173 "configure"
5173 #include "confdefs.h"
5174 #include <wctype.h>
5175 EOF
5176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5177 { (eval echo configure:5178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5179 if test -z "$ac_err"; then
5180   rm -rf conftest*
5181   eval "ac_cv_header_$ac_safe=yes"
5182 else
5183   echo "$ac_err" >&5
5184   echo "configure: failed program was:" >&5
5185   cat conftest.$ac_ext >&5
5186   rm -rf conftest*
5187   eval "ac_cv_header_$ac_safe=no"
5188 fi
5189 rm -f conftest*
5190 fi
5191 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5192   echo "$ac_t""yes" 1>&6
5193   ac_has_wctype_h=yes
5194 else
5195   echo "$ac_t""no" 1>&6
5196 ac_has_wctype_h=no
5197 fi
5198
5199   
5200     if test x"$ac_has_wchar_h" = xyes &&
5201      test x"$ac_has_wctype_h" = xyes &&
5202      test x"$enable_c_mbchar" != xno; then
5203       
5204             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5205 echo "configure:5206: checking for WCHAR_MIN and WCHAR_MAX" >&5
5206     cat > conftest.$ac_ext <<EOF
5207 #line 5208 "configure"
5208 #include "confdefs.h"
5209 #include <wchar.h>
5210 int main() {
5211 int i = WCHAR_MIN; int j = WCHAR_MAX;
5212 ; return 0; }
5213 EOF
5214 if { (eval echo configure:5215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5215   rm -rf conftest*
5216   has_wchar_minmax=yes
5217 else
5218   echo "configure: failed program was:" >&5
5219   cat conftest.$ac_ext >&5
5220   rm -rf conftest*
5221   has_wchar_minmax=no
5222 fi
5223 rm -f conftest*
5224     echo "$ac_t""$has_wchar_minmax" 1>&6
5225     
5226             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5227 echo "configure:5228: checking for WEOF" >&5
5228     cat > conftest.$ac_ext <<EOF
5229 #line 5230 "configure"
5230 #include "confdefs.h"
5231
5232       #include <wchar.h>
5233       #include <stddef.h>
5234 int main() {
5235 wint_t i = WEOF;
5236 ; return 0; }
5237 EOF
5238 if { (eval echo configure:5239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5239   rm -rf conftest*
5240   has_weof=yes
5241 else
5242   echo "configure: failed program was:" >&5
5243   cat conftest.$ac_ext >&5
5244   rm -rf conftest*
5245   has_weof=no
5246 fi
5247 rm -f conftest*
5248     echo "$ac_t""$has_weof" 1>&6
5249   
5250         ac_wfuncs=yes
5251     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5252 do
5253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5254 echo "configure:5255: checking for $ac_func" >&5
5255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5256   echo $ac_n "(cached) $ac_c" 1>&6
5257 else
5258   cat > conftest.$ac_ext <<EOF
5259 #line 5260 "configure"
5260 #include "confdefs.h"
5261 /* System header to define __stub macros and hopefully few prototypes,
5262     which can conflict with char $ac_func(); below.  */
5263 #include <assert.h>
5264 /* Override any gcc2 internal prototype to avoid an error.  */
5265 /* We use char because int might match the return type of a gcc2
5266     builtin and then its argument prototype would still apply.  */
5267 char $ac_func();
5268
5269 int main() {
5270
5271 /* The GNU C library defines this for functions which it implements
5272     to always fail with ENOSYS.  Some functions are actually named
5273     something starting with __ and the normal name is an alias.  */
5274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5275 choke me
5276 #else
5277 $ac_func();
5278 #endif
5279
5280 ; return 0; }
5281 EOF
5282 if { (eval echo configure:5283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5283   rm -rf conftest*
5284   eval "ac_cv_func_$ac_func=yes"
5285 else
5286   echo "configure: failed program was:" >&5
5287   cat conftest.$ac_ext >&5
5288   rm -rf conftest*
5289   eval "ac_cv_func_$ac_func=no"
5290 fi
5291 rm -f conftest*
5292 fi
5293
5294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5295   echo "$ac_t""yes" 1>&6
5296     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5297   cat >> confdefs.h <<EOF
5298 #define $ac_tr_func 1
5299 EOF
5300  
5301 else
5302   echo "$ac_t""no" 1>&6
5303 \
5304     ac_wfuncs=no
5305 fi
5306 done
5307
5308   
5309         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5310     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5311     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5312     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5313     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5314     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5315 do
5316 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5317 echo "configure:5318: checking for $ac_func" >&5
5318 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5319   echo $ac_n "(cached) $ac_c" 1>&6
5320 else
5321   cat > conftest.$ac_ext <<EOF
5322 #line 5323 "configure"
5323 #include "confdefs.h"
5324 /* System header to define __stub macros and hopefully few prototypes,
5325     which can conflict with char $ac_func(); below.  */
5326 #include <assert.h>
5327 /* Override any gcc2 internal prototype to avoid an error.  */
5328 /* We use char because int might match the return type of a gcc2
5329     builtin and then its argument prototype would still apply.  */
5330 char $ac_func();
5331
5332 int main() {
5333
5334 /* The GNU C library defines this for functions which it implements
5335     to always fail with ENOSYS.  Some functions are actually named
5336     something starting with __ and the normal name is an alias.  */
5337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5338 choke me
5339 #else
5340 $ac_func();
5341 #endif
5342
5343 ; return 0; }
5344 EOF
5345 if { (eval echo configure:5346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5346   rm -rf conftest*
5347   eval "ac_cv_func_$ac_func=yes"
5348 else
5349   echo "configure: failed program was:" >&5
5350   cat conftest.$ac_ext >&5
5351   rm -rf conftest*
5352   eval "ac_cv_func_$ac_func=no"
5353 fi
5354 rm -f conftest*
5355 fi
5356
5357 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5358   echo "$ac_t""yes" 1>&6
5359     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5360   cat >> confdefs.h <<EOF
5361 #define $ac_tr_func 1
5362 EOF
5363  
5364 else
5365   echo "$ac_t""no" 1>&6
5366 \
5367     ac_wfuncs=no
5368 fi
5369 done
5370
5371
5372     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5373 echo "configure:5374: checking for ISO C99 wchar_t support" >&5
5374     if test x"$has_weof" = xyes &&
5375        test x"$has_wchar_minmax" = xyes &&
5376        test x"$ac_wfuncs" = xyes; then
5377       ac_isoC99_wchar_t=yes
5378     else
5379       ac_isoC99_wchar_t=no
5380     fi
5381     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5382   
5383             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5384 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5385 echo "configure:5386: checking for iconv.h" >&5
5386 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5387   echo $ac_n "(cached) $ac_c" 1>&6
5388 else
5389   cat > conftest.$ac_ext <<EOF
5390 #line 5391 "configure"
5391 #include "confdefs.h"
5392 #include <iconv.h>
5393 EOF
5394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5395 { (eval echo configure:5396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5397 if test -z "$ac_err"; then
5398   rm -rf conftest*
5399   eval "ac_cv_header_$ac_safe=yes"
5400 else
5401   echo "$ac_err" >&5
5402   echo "configure: failed program was:" >&5
5403   cat conftest.$ac_ext >&5
5404   rm -rf conftest*
5405   eval "ac_cv_header_$ac_safe=no"
5406 fi
5407 rm -f conftest*
5408 fi
5409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5410   echo "$ac_t""yes" 1>&6
5411   ac_has_iconv_h=yes
5412 else
5413   echo "$ac_t""no" 1>&6
5414 ac_has_iconv_h=no
5415 fi
5416
5417     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5418 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5419 echo "configure:5420: checking for langinfo.h" >&5
5420 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5421   echo $ac_n "(cached) $ac_c" 1>&6
5422 else
5423   cat > conftest.$ac_ext <<EOF
5424 #line 5425 "configure"
5425 #include "confdefs.h"
5426 #include <langinfo.h>
5427 EOF
5428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5429 { (eval echo configure:5430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5430 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5431 if test -z "$ac_err"; then
5432   rm -rf conftest*
5433   eval "ac_cv_header_$ac_safe=yes"
5434 else
5435   echo "$ac_err" >&5
5436   echo "configure: failed program was:" >&5
5437   cat conftest.$ac_ext >&5
5438   rm -rf conftest*
5439   eval "ac_cv_header_$ac_safe=no"
5440 fi
5441 rm -f conftest*
5442 fi
5443 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5444   echo "$ac_t""yes" 1>&6
5445   ac_has_langinfo_h=yes
5446 else
5447   echo "$ac_t""no" 1>&6
5448 ac_has_langinfo_h=no
5449 fi
5450
5451
5452         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5453 echo "configure:5454: checking for iconv in -liconv" >&5
5454 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5455 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5456   echo $ac_n "(cached) $ac_c" 1>&6
5457 else
5458   ac_save_LIBS="$LIBS"
5459 LIBS="-liconv  $LIBS"
5460 cat > conftest.$ac_ext <<EOF
5461 #line 5462 "configure"
5462 #include "confdefs.h"
5463 /* Override any gcc2 internal prototype to avoid an error.  */
5464 /* We use char because int might match the return type of a gcc2
5465     builtin and then its argument prototype would still apply.  */
5466 char iconv();
5467
5468 int main() {
5469 iconv()
5470 ; return 0; }
5471 EOF
5472 if { (eval echo configure:5473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5473   rm -rf conftest*
5474   eval "ac_cv_lib_$ac_lib_var=yes"
5475 else
5476   echo "configure: failed program was:" >&5
5477   cat conftest.$ac_ext >&5
5478   rm -rf conftest*
5479   eval "ac_cv_lib_$ac_lib_var=no"
5480 fi
5481 rm -f conftest*
5482 LIBS="$ac_save_LIBS"
5483
5484 fi
5485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5486   echo "$ac_t""yes" 1>&6
5487   libiconv="-liconv"
5488 else
5489   echo "$ac_t""no" 1>&6
5490 fi
5491
5492     ac_save_LIBS="$LIBS"
5493     LIBS="$LIBS $libiconv"
5494
5495     for ac_func in iconv_open iconv_close iconv nl_langinfo
5496 do
5497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5498 echo "configure:5499: checking for $ac_func" >&5
5499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5500   echo $ac_n "(cached) $ac_c" 1>&6
5501 else
5502   cat > conftest.$ac_ext <<EOF
5503 #line 5504 "configure"
5504 #include "confdefs.h"
5505 /* System header to define __stub macros and hopefully few prototypes,
5506     which can conflict with char $ac_func(); below.  */
5507 #include <assert.h>
5508 /* Override any gcc2 internal prototype to avoid an error.  */
5509 /* We use char because int might match the return type of a gcc2
5510     builtin and then its argument prototype would still apply.  */
5511 char $ac_func();
5512
5513 int main() {
5514
5515 /* The GNU C library defines this for functions which it implements
5516     to always fail with ENOSYS.  Some functions are actually named
5517     something starting with __ and the normal name is an alias.  */
5518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5519 choke me
5520 #else
5521 $ac_func();
5522 #endif
5523
5524 ; return 0; }
5525 EOF
5526 if { (eval echo configure:5527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5527   rm -rf conftest*
5528   eval "ac_cv_func_$ac_func=yes"
5529 else
5530   echo "configure: failed program was:" >&5
5531   cat conftest.$ac_ext >&5
5532   rm -rf conftest*
5533   eval "ac_cv_func_$ac_func=no"
5534 fi
5535 rm -f conftest*
5536 fi
5537
5538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5539   echo "$ac_t""yes" 1>&6
5540     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5541   cat >> confdefs.h <<EOF
5542 #define $ac_tr_func 1
5543 EOF
5544  \
5545     ac_XPG2funcs=yes
5546 else
5547   echo "$ac_t""no" 1>&6
5548 ac_XPG2funcs=no
5549 fi
5550 done
5551
5552   
5553     LIBS="$ac_save_LIBS"
5554
5555     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5556 echo "configure:5557: checking for XPG2 wchar_t support" >&5
5557     if test x"$ac_has_iconv_h" = xyes &&
5558        test x"$ac_has_langinfo_h" = xyes &&
5559        test x"$ac_XPG2funcs" = xyes; then
5560       ac_XPG2_wchar_t=yes
5561     else
5562       ac_XPG2_wchar_t=no
5563     fi
5564     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5565   
5566             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5567 echo "configure:5568: checking for enabled wchar_t specializations" >&5
5568     if test x"$ac_isoC99_wchar_t" = xyes &&
5569        test x"$ac_XPG2_wchar_t" = xyes; then
5570       cat >> confdefs.h <<\EOF
5571 #define _GLIBCPP_USE_WCHAR_T 1
5572 EOF
5573
5574       echo "$ac_t"""yes"" 1>&6
5575     else
5576       echo "$ac_t"""no"" 1>&6
5577     fi
5578   else
5579         echo "configure: warning: wchar_t support disabled." 1>&2
5580   fi
5581
5582       os_include_dir="config/os/hpux"
5583       cat >> confdefs.h <<\EOF
5584 #define HAVE_COPYSIGN 1
5585 EOF
5586
5587       cat >> confdefs.h <<\EOF
5588 #define HAVE_COPYSIGNF 1
5589 EOF
5590
5591       cat >> confdefs.h <<\EOF
5592 #define HAVE_FINITEF 1
5593 EOF
5594
5595       cat >> confdefs.h <<\EOF
5596 #define HAVE_FREXPF 1
5597 EOF
5598
5599       cat >> confdefs.h <<\EOF
5600 #define HAVE_HYPOT 1
5601 EOF
5602
5603       cat >> confdefs.h <<\EOF
5604 #define HAVE_SINCOS 1
5605 EOF
5606
5607       cat >> confdefs.h <<\EOF
5608 #define HAVE_SINCOSF 1
5609 EOF
5610
5611       ;;
5612     *)
5613       os_include_dir="config/os/newlib"
5614       cat >> confdefs.h <<\EOF
5615 #define HAVE_HYPOT 1
5616 EOF
5617
5618       ;;
5619   esac
5620
5621   # GLIBCPP_CHECK_STDLIB_SUPPORT
5622   cat >> confdefs.h <<\EOF
5623 #define HAVE_STRTOF 1
5624 EOF
5625         
5626   cat >> confdefs.h <<\EOF
5627 #define HAVE_STRTOLD 1
5628 EOF
5629         
5630   # AC_FUNC_MMAP
5631   cat >> confdefs.h <<\EOF
5632 #define HAVE_MMAP 1
5633 EOF
5634
5635
5636   cat >> confdefs.h <<\EOF
5637 #define HAVE_ACOSF 1
5638 EOF
5639
5640   cat >> confdefs.h <<\EOF
5641 #define HAVE_ASINF 1
5642 EOF
5643
5644   cat >> confdefs.h <<\EOF
5645 #define HAVE_ATAN2F 1
5646 EOF
5647
5648   cat >> confdefs.h <<\EOF
5649 #define HAVE_ATANF 1
5650 EOF
5651
5652   cat >> confdefs.h <<\EOF
5653 #define HAVE_CEILF 1
5654 EOF
5655
5656   cat >> confdefs.h <<\EOF
5657 #define HAVE_COPYSIGN 1
5658 EOF
5659
5660   cat >> confdefs.h <<\EOF
5661 #define HAVE_COPYSIGNF 1
5662 EOF
5663
5664   cat >> confdefs.h <<\EOF
5665 #define HAVE_COSF 1
5666 EOF
5667
5668   cat >> confdefs.h <<\EOF
5669 #define HAVE_COSHF 1
5670 EOF
5671
5672   cat >> confdefs.h <<\EOF
5673 #define HAVE_EXPF 1
5674 EOF
5675
5676   cat >> confdefs.h <<\EOF
5677 #define HAVE_FABSF 1
5678 EOF
5679
5680   cat >> confdefs.h <<\EOF
5681 #define HAVE_FINITE 1
5682 EOF
5683
5684   cat >> confdefs.h <<\EOF
5685 #define HAVE_FINITEF 1
5686 EOF
5687
5688   cat >> confdefs.h <<\EOF
5689 #define HAVE_FLOORF 1
5690 EOF
5691
5692   cat >> confdefs.h <<\EOF
5693 #define HAVE_FMODF 1
5694 EOF
5695
5696   cat >> confdefs.h <<\EOF
5697 #define HAVE_FREXPF 1
5698 EOF
5699
5700   cat >> confdefs.h <<\EOF
5701 #define HAVE_ISINF 1
5702 EOF
5703
5704   cat >> confdefs.h <<\EOF
5705 #define HAVE_ISINFF 1
5706 EOF
5707
5708   cat >> confdefs.h <<\EOF
5709 #define HAVE_ISNAN 1
5710 EOF
5711
5712   cat >> confdefs.h <<\EOF
5713 #define HAVE_ISNANF 1
5714 EOF
5715
5716   cat >> confdefs.h <<\EOF
5717 #define HAVE_LDEXPF 1
5718 EOF
5719
5720   cat >> confdefs.h <<\EOF
5721 #define HAVE_LOG10F 1
5722 EOF
5723
5724   cat >> confdefs.h <<\EOF
5725 #define HAVE_LOGF 1
5726 EOF
5727
5728   cat >> confdefs.h <<\EOF
5729 #define HAVE_MODFF 1
5730 EOF
5731
5732   cat >> confdefs.h <<\EOF
5733 #define HAVE_POWF 1
5734 EOF
5735
5736   cat >> confdefs.h <<\EOF
5737 #define HAVE_SINF 1
5738 EOF
5739
5740   cat >> confdefs.h <<\EOF
5741 #define HAVE_SINHF 1
5742 EOF
5743
5744   cat >> confdefs.h <<\EOF
5745 #define HAVE_SQRTF 1
5746 EOF
5747
5748   cat >> confdefs.h <<\EOF
5749 #define HAVE_TANF 1
5750 EOF
5751
5752   cat >> confdefs.h <<\EOF
5753 #define HAVE_TANHF 1
5754 EOF
5755
5756
5757   # At some point, we should differentiate between architectures
5758   # like x86, which have long double versions, and alpha/powerpc/etc.,
5759   # which don't. For the time being, punt.
5760   if test x"long_double_math_on_this_cpu" = x"yes"; then
5761     cat >> confdefs.h <<\EOF
5762 #define HAVE_ACOSL 1
5763 EOF
5764
5765     cat >> confdefs.h <<\EOF
5766 #define HAVE_ASINL 1
5767 EOF
5768
5769     cat >> confdefs.h <<\EOF
5770 #define HAVE_ATAN2L 1
5771 EOF
5772
5773     cat >> confdefs.h <<\EOF
5774 #define HAVE_ATANL 1
5775 EOF
5776
5777     cat >> confdefs.h <<\EOF
5778 #define HAVE_CEILL 1
5779 EOF
5780
5781     cat >> confdefs.h <<\EOF
5782 #define HAVE_COPYSIGNL 1
5783 EOF
5784
5785     cat >> confdefs.h <<\EOF
5786 #define HAVE_COSL 1
5787 EOF
5788
5789     cat >> confdefs.h <<\EOF
5790 #define HAVE_COSHL 1
5791 EOF
5792
5793     cat >> confdefs.h <<\EOF
5794 #define HAVE_EXPL 1
5795 EOF
5796
5797     cat >> confdefs.h <<\EOF
5798 #define HAVE_FABSL 1
5799 EOF
5800
5801     cat >> confdefs.h <<\EOF
5802 #define HAVE_FINITEL 1
5803 EOF
5804
5805     cat >> confdefs.h <<\EOF
5806 #define HAVE_FLOORL 1
5807 EOF
5808
5809     cat >> confdefs.h <<\EOF
5810 #define HAVE_FMODL 1
5811 EOF
5812
5813     cat >> confdefs.h <<\EOF
5814 #define HAVE_FREXPL 1
5815 EOF
5816
5817     cat >> confdefs.h <<\EOF
5818 #define HAVE_ISINFL 1
5819 EOF
5820
5821     cat >> confdefs.h <<\EOF
5822 #define HAVE_ISNANL 1
5823 EOF
5824
5825     cat >> confdefs.h <<\EOF
5826 #define HAVE_LDEXPL 1
5827 EOF
5828
5829     cat >> confdefs.h <<\EOF
5830 #define HAVE_LOG10L 1
5831 EOF
5832
5833     cat >> confdefs.h <<\EOF
5834 #define HAVE_LOGL 1
5835 EOF
5836
5837     cat >> confdefs.h <<\EOF
5838 #define HAVE_MODFL 1
5839 EOF
5840
5841     cat >> confdefs.h <<\EOF
5842 #define HAVE_POWL 1
5843 EOF
5844
5845     cat >> confdefs.h <<\EOF
5846 #define HAVE_SINCOSL 1
5847 EOF
5848
5849     cat >> confdefs.h <<\EOF
5850 #define HAVE_SINL 1
5851 EOF
5852
5853     cat >> confdefs.h <<\EOF
5854 #define HAVE_SINHL 1
5855 EOF
5856
5857     cat >> confdefs.h <<\EOF
5858 #define HAVE_SQRTL 1
5859 EOF
5860
5861     cat >> confdefs.h <<\EOF
5862 #define HAVE_TANL 1
5863 EOF
5864
5865     cat >> confdefs.h <<\EOF
5866 #define HAVE_TANHL 1
5867 EOF
5868
5869   fi
5870 else
5871
5872   # We are being configured natively. We can do more elaborate tests
5873   # that include AC_TRY_COMPILE now, as the linker is assumed to be
5874   # working.
5875   GLIBCPP_IS_CROSS_COMPILING=0
5876   CANADIAN=no
5877
5878   # Check for available headers.
5879   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
5880   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
5881 do
5882 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5883 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5884 echo "configure:5885: checking for $ac_hdr" >&5
5885 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5886   echo $ac_n "(cached) $ac_c" 1>&6
5887 else
5888   cat > conftest.$ac_ext <<EOF
5889 #line 5890 "configure"
5890 #include "confdefs.h"
5891 #include <$ac_hdr>
5892 EOF
5893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5894 { (eval echo configure:5895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5896 if test -z "$ac_err"; then
5897   rm -rf conftest*
5898   eval "ac_cv_header_$ac_safe=yes"
5899 else
5900   echo "$ac_err" >&5
5901   echo "configure: failed program was:" >&5
5902   cat conftest.$ac_ext >&5
5903   rm -rf conftest*
5904   eval "ac_cv_header_$ac_safe=no"
5905 fi
5906 rm -f conftest*
5907 fi
5908 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5909   echo "$ac_t""yes" 1>&6
5910     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5911   cat >> confdefs.h <<EOF
5912 #define $ac_tr_hdr 1
5913 EOF
5914  
5915 else
5916   echo "$ac_t""no" 1>&6
5917 fi
5918 done
5919
5920
5921   
5922   # All these tests are for C++; save the language and the compiler flags.
5923   # The CXXFLAGS thing is suspicious, but based on similar bits previously
5924   # found in GLIBCPP_CONFIGURE.
5925   
5926   ac_ext=C
5927 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5928 ac_cpp='$CXXCPP $CPPFLAGS'
5929 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5930 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5931 cross_compiling=$ac_cv_prog_cxx_cross
5932
5933   ac_test_CXXFLAGS="${CXXFLAGS+set}"
5934   ac_save_CXXFLAGS="$CXXFLAGS"
5935
5936   # Check for maintainer-mode bits.
5937   if test x"$USE_MAINTAINER_MODE" = xno; then
5938     WERROR=''
5939   else
5940     WERROR='-Werror'
5941   fi
5942
5943   # Check for -ffunction-sections -fdata-sections
5944   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
5945 echo "configure:5946: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
5946   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
5947   cat > conftest.$ac_ext <<EOF
5948 #line 5949 "configure"
5949 #include "confdefs.h"
5950
5951 int main() {
5952 int foo;
5953   
5954 ; return 0; }
5955 EOF
5956 if { (eval echo configure:5957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5957   rm -rf conftest*
5958   ac_fdsections=yes
5959 else
5960   echo "configure: failed program was:" >&5
5961   cat conftest.$ac_ext >&5
5962   rm -rf conftest*
5963   ac_fdsections=no
5964 fi
5965 rm -f conftest*
5966   if test "$ac_test_CXXFLAGS" = set; then
5967     CXXFLAGS="$ac_save_CXXFLAGS"
5968   else
5969     # this is the suspicious part
5970     CXXFLAGS=''
5971   fi
5972   if test x"$ac_fdsections" = x"yes" &&
5973      test x"$enable_debug" = x"no"; then
5974     SECTION_FLAGS='-ffunction-sections -fdata-sections'
5975   fi
5976   echo "$ac_t""$ac_fdsections" 1>&6
5977
5978   ac_ext=c
5979 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5980 ac_cpp='$CPP $CPPFLAGS'
5981 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5982 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5983 cross_compiling=$ac_cv_prog_cc_cross
5984
5985   
5986   
5987
5988   
5989   # If we're not using GNU ld, then there's no point in even trying these
5990   # tests.  Check for that first.  We should have already tested for gld
5991   # by now (in libtool), but require it now just to be safe...
5992   SECTION_LDFLAGS=''
5993   OPT_LDFLAGS=''
5994   
5995
5996   # Set --gc-sections.
5997   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
5998     # GNU ld it is!  Joy and bunny rabbits!
5999
6000     # All these tests are for C++; save the language and the compiler flags.
6001     # Need to do this so that g++ won't try to link in libstdc++
6002     ac_test_CFLAGS="${CFLAGS+set}"
6003     ac_save_CFLAGS="$CFLAGS"
6004     CFLAGS='-x c++  -Wl,--gc-sections'
6005
6006     # Check for -Wl,--gc-sections
6007     # XXX This test is broken at the moment, as symbols required for
6008     # linking are now in libsupc++ (not built yet.....). In addition, 
6009     # this test has cored on solaris in the past. In addition,
6010     # --gc-sections doesn't really work at the moment (keeps on discarding
6011     # used sections, first .eh_frame and now some of the glibc sections for
6012     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6013     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6014 echo "configure:6015: checking for ld that supports -Wl,--gc-sections" >&5
6015     if test "$cross_compiling" = yes; then
6016   ac_sectionLDflags=yes
6017 else
6018   cat > conftest.$ac_ext <<EOF
6019 #line 6020 "configure"
6020 #include "confdefs.h"
6021
6022      int main(void) 
6023      {
6024        try { throw 1; }
6025        catch (...) { };
6026        return 0;
6027      }
6028     
6029 EOF
6030 if { (eval echo configure:6031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6031 then
6032   ac_sectionLDflags=yes
6033 else
6034   echo "configure: failed program was:" >&5
6035   cat conftest.$ac_ext >&5
6036   rm -fr conftest*
6037   ac_sectionLFflags=no
6038 fi
6039 rm -fr conftest*
6040 fi
6041
6042     if test "$ac_test_CFLAGS" = set; then
6043       CFLAGS="$ac_save_CFLAGS"
6044     else
6045       # this is the suspicious part
6046       CFLAGS=''
6047     fi
6048     if test "$ac_sectionLDflags" = "yes"; then
6049       SECTION_LDFLAGS='-Wl,--gc-sections'
6050     fi
6051     echo "$ac_t""$ac_sectionLDflags" 1>&6
6052   fi
6053
6054   # Set linker optimization flags.
6055   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
6056      test x"$enable_debug" = x"no"; then
6057     OPT_LDFLAGS='-Wl,-O1'
6058   fi
6059
6060   
6061   
6062
6063   
6064       
6065   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
6066 echo "configure:6067: checking for __builtin_abs declaration" >&5
6067   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
6068     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
6069   echo $ac_n "(cached) $ac_c" 1>&6
6070 else
6071   
6072       
6073       ac_ext=C
6074 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6075 ac_cpp='$CXXCPP $CPPFLAGS'
6076 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6077 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6078 cross_compiling=$ac_cv_prog_cxx_cross
6079
6080       cat > conftest.$ac_ext <<EOF
6081 #line 6082 "configure"
6082 #include "confdefs.h"
6083 #include <math.h>
6084 int main() {
6085  __builtin_abs(0);
6086 ; return 0; }
6087 EOF
6088 if { (eval echo configure:6089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6089   rm -rf conftest*
6090   glibcpp_cv_func___builtin_abs_use=yes
6091 else
6092   echo "configure: failed program was:" >&5
6093   cat conftest.$ac_ext >&5
6094   rm -rf conftest*
6095   glibcpp_cv_func___builtin_abs_use=no
6096 fi
6097 rm -f conftest*
6098       ac_ext=c
6099 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6100 ac_cpp='$CPP $CPPFLAGS'
6101 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6102 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6103 cross_compiling=$ac_cv_prog_cc_cross
6104
6105     
6106 fi
6107
6108   fi
6109   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
6110   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
6111     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
6112 echo "configure:6113: checking for __builtin_abs linkage" >&5
6113     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
6114       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
6115   echo $ac_n "(cached) $ac_c" 1>&6
6116 else
6117   
6118         cat > conftest.$ac_ext <<EOF
6119 #line 6120 "configure"
6120 #include "confdefs.h"
6121 #include <math.h>
6122 int main() {
6123  __builtin_abs(0);
6124 ; return 0; }
6125 EOF
6126 if { (eval echo configure:6127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6127   rm -rf conftest*
6128   glibcpp_cv_func___builtin_abs_link=yes
6129 else
6130   echo "configure: failed program was:" >&5
6131   cat conftest.$ac_ext >&5
6132   rm -rf conftest*
6133   glibcpp_cv_func___builtin_abs_link=no
6134 fi
6135 rm -f conftest*
6136       
6137 fi
6138
6139     fi
6140     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
6141     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
6142       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6143       cat >> confdefs.h <<EOF
6144 #define ${ac_tr_func} 1
6145 EOF
6146
6147     fi
6148   fi
6149
6150   
6151   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
6152 echo "configure:6153: checking for __builtin_fabsf declaration" >&5
6153   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
6154     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
6155   echo $ac_n "(cached) $ac_c" 1>&6
6156 else
6157   
6158       
6159       ac_ext=C
6160 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6161 ac_cpp='$CXXCPP $CPPFLAGS'
6162 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6163 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6164 cross_compiling=$ac_cv_prog_cxx_cross
6165
6166       cat > conftest.$ac_ext <<EOF
6167 #line 6168 "configure"
6168 #include "confdefs.h"
6169 #include <math.h>
6170 int main() {
6171  __builtin_fabsf(0);
6172 ; return 0; }
6173 EOF
6174 if { (eval echo configure:6175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6175   rm -rf conftest*
6176   glibcpp_cv_func___builtin_fabsf_use=yes
6177 else
6178   echo "configure: failed program was:" >&5
6179   cat conftest.$ac_ext >&5
6180   rm -rf conftest*
6181   glibcpp_cv_func___builtin_fabsf_use=no
6182 fi
6183 rm -f conftest*
6184       ac_ext=c
6185 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6186 ac_cpp='$CPP $CPPFLAGS'
6187 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6188 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6189 cross_compiling=$ac_cv_prog_cc_cross
6190
6191     
6192 fi
6193
6194   fi
6195   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
6196   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
6197     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
6198 echo "configure:6199: checking for __builtin_fabsf linkage" >&5
6199     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
6200       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
6201   echo $ac_n "(cached) $ac_c" 1>&6
6202 else
6203   
6204         cat > conftest.$ac_ext <<EOF
6205 #line 6206 "configure"
6206 #include "confdefs.h"
6207 #include <math.h>
6208 int main() {
6209  __builtin_fabsf(0);
6210 ; return 0; }
6211 EOF
6212 if { (eval echo configure:6213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6213   rm -rf conftest*
6214   glibcpp_cv_func___builtin_fabsf_link=yes
6215 else
6216   echo "configure: failed program was:" >&5
6217   cat conftest.$ac_ext >&5
6218   rm -rf conftest*
6219   glibcpp_cv_func___builtin_fabsf_link=no
6220 fi
6221 rm -f conftest*
6222       
6223 fi
6224
6225     fi
6226     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
6227     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
6228       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6229       cat >> confdefs.h <<EOF
6230 #define ${ac_tr_func} 1
6231 EOF
6232
6233     fi
6234   fi
6235
6236   
6237   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
6238 echo "configure:6239: checking for __builtin_fabs declaration" >&5
6239   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
6240     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
6241   echo $ac_n "(cached) $ac_c" 1>&6
6242 else
6243   
6244       
6245       ac_ext=C
6246 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6247 ac_cpp='$CXXCPP $CPPFLAGS'
6248 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6249 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6250 cross_compiling=$ac_cv_prog_cxx_cross
6251
6252       cat > conftest.$ac_ext <<EOF
6253 #line 6254 "configure"
6254 #include "confdefs.h"
6255 #include <math.h>
6256 int main() {
6257  __builtin_fabs(0);
6258 ; return 0; }
6259 EOF
6260 if { (eval echo configure:6261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6261   rm -rf conftest*
6262   glibcpp_cv_func___builtin_fabs_use=yes
6263 else
6264   echo "configure: failed program was:" >&5
6265   cat conftest.$ac_ext >&5
6266   rm -rf conftest*
6267   glibcpp_cv_func___builtin_fabs_use=no
6268 fi
6269 rm -f conftest*
6270       ac_ext=c
6271 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6272 ac_cpp='$CPP $CPPFLAGS'
6273 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6274 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6275 cross_compiling=$ac_cv_prog_cc_cross
6276
6277     
6278 fi
6279
6280   fi
6281   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
6282   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
6283     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
6284 echo "configure:6285: checking for __builtin_fabs linkage" >&5
6285     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
6286       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
6287   echo $ac_n "(cached) $ac_c" 1>&6
6288 else
6289   
6290         cat > conftest.$ac_ext <<EOF
6291 #line 6292 "configure"
6292 #include "confdefs.h"
6293 #include <math.h>
6294 int main() {
6295  __builtin_fabs(0);
6296 ; return 0; }
6297 EOF
6298 if { (eval echo configure:6299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6299   rm -rf conftest*
6300   glibcpp_cv_func___builtin_fabs_link=yes
6301 else
6302   echo "configure: failed program was:" >&5
6303   cat conftest.$ac_ext >&5
6304   rm -rf conftest*
6305   glibcpp_cv_func___builtin_fabs_link=no
6306 fi
6307 rm -f conftest*
6308       
6309 fi
6310
6311     fi
6312     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
6313     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
6314       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6315       cat >> confdefs.h <<EOF
6316 #define ${ac_tr_func} 1
6317 EOF
6318
6319     fi
6320   fi
6321
6322   
6323   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
6324 echo "configure:6325: checking for __builtin_fabsl declaration" >&5
6325   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
6326     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
6327   echo $ac_n "(cached) $ac_c" 1>&6
6328 else
6329   
6330       
6331       ac_ext=C
6332 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6333 ac_cpp='$CXXCPP $CPPFLAGS'
6334 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6335 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6336 cross_compiling=$ac_cv_prog_cxx_cross
6337
6338       cat > conftest.$ac_ext <<EOF
6339 #line 6340 "configure"
6340 #include "confdefs.h"
6341 #include <math.h>
6342 int main() {
6343  __builtin_fabsl(0);
6344 ; return 0; }
6345 EOF
6346 if { (eval echo configure:6347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6347   rm -rf conftest*
6348   glibcpp_cv_func___builtin_fabsl_use=yes
6349 else
6350   echo "configure: failed program was:" >&5
6351   cat conftest.$ac_ext >&5
6352   rm -rf conftest*
6353   glibcpp_cv_func___builtin_fabsl_use=no
6354 fi
6355 rm -f conftest*
6356       ac_ext=c
6357 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6358 ac_cpp='$CPP $CPPFLAGS'
6359 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6360 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6361 cross_compiling=$ac_cv_prog_cc_cross
6362
6363     
6364 fi
6365
6366   fi
6367   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
6368   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
6369     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
6370 echo "configure:6371: checking for __builtin_fabsl linkage" >&5
6371     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
6372       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
6373   echo $ac_n "(cached) $ac_c" 1>&6
6374 else
6375   
6376         cat > conftest.$ac_ext <<EOF
6377 #line 6378 "configure"
6378 #include "confdefs.h"
6379 #include <math.h>
6380 int main() {
6381  __builtin_fabsl(0);
6382 ; return 0; }
6383 EOF
6384 if { (eval echo configure:6385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6385   rm -rf conftest*
6386   glibcpp_cv_func___builtin_fabsl_link=yes
6387 else
6388   echo "configure: failed program was:" >&5
6389   cat conftest.$ac_ext >&5
6390   rm -rf conftest*
6391   glibcpp_cv_func___builtin_fabsl_link=no
6392 fi
6393 rm -f conftest*
6394       
6395 fi
6396
6397     fi
6398     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
6399     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
6400       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6401       cat >> confdefs.h <<EOF
6402 #define ${ac_tr_func} 1
6403 EOF
6404
6405     fi
6406   fi
6407
6408   
6409   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
6410 echo "configure:6411: checking for __builtin_labs declaration" >&5
6411   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
6412     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
6413   echo $ac_n "(cached) $ac_c" 1>&6
6414 else
6415   
6416       
6417       ac_ext=C
6418 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6419 ac_cpp='$CXXCPP $CPPFLAGS'
6420 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6421 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6422 cross_compiling=$ac_cv_prog_cxx_cross
6423
6424       cat > conftest.$ac_ext <<EOF
6425 #line 6426 "configure"
6426 #include "confdefs.h"
6427 #include <math.h>
6428 int main() {
6429  __builtin_labs(0);
6430 ; return 0; }
6431 EOF
6432 if { (eval echo configure:6433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6433   rm -rf conftest*
6434   glibcpp_cv_func___builtin_labs_use=yes
6435 else
6436   echo "configure: failed program was:" >&5
6437   cat conftest.$ac_ext >&5
6438   rm -rf conftest*
6439   glibcpp_cv_func___builtin_labs_use=no
6440 fi
6441 rm -f conftest*
6442       ac_ext=c
6443 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6444 ac_cpp='$CPP $CPPFLAGS'
6445 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6446 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6447 cross_compiling=$ac_cv_prog_cc_cross
6448
6449     
6450 fi
6451
6452   fi
6453   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
6454   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
6455     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
6456 echo "configure:6457: checking for __builtin_labs linkage" >&5
6457     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
6458       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
6459   echo $ac_n "(cached) $ac_c" 1>&6
6460 else
6461   
6462         cat > conftest.$ac_ext <<EOF
6463 #line 6464 "configure"
6464 #include "confdefs.h"
6465 #include <math.h>
6466 int main() {
6467  __builtin_labs(0);
6468 ; return 0; }
6469 EOF
6470 if { (eval echo configure:6471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6471   rm -rf conftest*
6472   glibcpp_cv_func___builtin_labs_link=yes
6473 else
6474   echo "configure: failed program was:" >&5
6475   cat conftest.$ac_ext >&5
6476   rm -rf conftest*
6477   glibcpp_cv_func___builtin_labs_link=no
6478 fi
6479 rm -f conftest*
6480       
6481 fi
6482
6483     fi
6484     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
6485     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
6486       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6487       cat >> confdefs.h <<EOF
6488 #define ${ac_tr_func} 1
6489 EOF
6490
6491     fi
6492   fi
6493
6494
6495   
6496   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
6497 echo "configure:6498: checking for __builtin_sqrtf declaration" >&5
6498   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
6499     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
6500   echo $ac_n "(cached) $ac_c" 1>&6
6501 else
6502   
6503       
6504       ac_ext=C
6505 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6506 ac_cpp='$CXXCPP $CPPFLAGS'
6507 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6508 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6509 cross_compiling=$ac_cv_prog_cxx_cross
6510
6511       cat > conftest.$ac_ext <<EOF
6512 #line 6513 "configure"
6513 #include "confdefs.h"
6514 #include <math.h>
6515 int main() {
6516  __builtin_sqrtf(0);
6517 ; return 0; }
6518 EOF
6519 if { (eval echo configure:6520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6520   rm -rf conftest*
6521   glibcpp_cv_func___builtin_sqrtf_use=yes
6522 else
6523   echo "configure: failed program was:" >&5
6524   cat conftest.$ac_ext >&5
6525   rm -rf conftest*
6526   glibcpp_cv_func___builtin_sqrtf_use=no
6527 fi
6528 rm -f conftest*
6529       ac_ext=c
6530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6531 ac_cpp='$CPP $CPPFLAGS'
6532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6533 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6534 cross_compiling=$ac_cv_prog_cc_cross
6535
6536     
6537 fi
6538
6539   fi
6540   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
6541   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
6542     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
6543 echo "configure:6544: checking for __builtin_sqrtf linkage" >&5
6544     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
6545       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
6546   echo $ac_n "(cached) $ac_c" 1>&6
6547 else
6548   
6549         cat > conftest.$ac_ext <<EOF
6550 #line 6551 "configure"
6551 #include "confdefs.h"
6552 #include <math.h>
6553 int main() {
6554  __builtin_sqrtf(0);
6555 ; return 0; }
6556 EOF
6557 if { (eval echo configure:6558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6558   rm -rf conftest*
6559   glibcpp_cv_func___builtin_sqrtf_link=yes
6560 else
6561   echo "configure: failed program was:" >&5
6562   cat conftest.$ac_ext >&5
6563   rm -rf conftest*
6564   glibcpp_cv_func___builtin_sqrtf_link=no
6565 fi
6566 rm -f conftest*
6567       
6568 fi
6569
6570     fi
6571     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
6572     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
6573       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6574       cat >> confdefs.h <<EOF
6575 #define ${ac_tr_func} 1
6576 EOF
6577
6578     fi
6579   fi
6580
6581   
6582   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
6583 echo "configure:6584: checking for __builtin_sqrt declaration" >&5
6584   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
6585     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
6586   echo $ac_n "(cached) $ac_c" 1>&6
6587 else
6588   
6589       
6590       ac_ext=C
6591 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6592 ac_cpp='$CXXCPP $CPPFLAGS'
6593 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6594 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6595 cross_compiling=$ac_cv_prog_cxx_cross
6596
6597       cat > conftest.$ac_ext <<EOF
6598 #line 6599 "configure"
6599 #include "confdefs.h"
6600 #include <math.h>
6601 int main() {
6602  __builtin_sqrt(0);
6603 ; return 0; }
6604 EOF
6605 if { (eval echo configure:6606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6606   rm -rf conftest*
6607   glibcpp_cv_func___builtin_sqrt_use=yes
6608 else
6609   echo "configure: failed program was:" >&5
6610   cat conftest.$ac_ext >&5
6611   rm -rf conftest*
6612   glibcpp_cv_func___builtin_sqrt_use=no
6613 fi
6614 rm -f conftest*
6615       ac_ext=c
6616 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6617 ac_cpp='$CPP $CPPFLAGS'
6618 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6619 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6620 cross_compiling=$ac_cv_prog_cc_cross
6621
6622     
6623 fi
6624
6625   fi
6626   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
6627   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
6628     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
6629 echo "configure:6630: checking for __builtin_sqrt linkage" >&5
6630     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
6631       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
6632   echo $ac_n "(cached) $ac_c" 1>&6
6633 else
6634   
6635         cat > conftest.$ac_ext <<EOF
6636 #line 6637 "configure"
6637 #include "confdefs.h"
6638 #include <math.h>
6639 int main() {
6640  __builtin_sqrt(0);
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   glibcpp_cv_func___builtin_sqrt_link=yes
6646 else
6647   echo "configure: failed program was:" >&5
6648   cat conftest.$ac_ext >&5
6649   rm -rf conftest*
6650   glibcpp_cv_func___builtin_sqrt_link=no
6651 fi
6652 rm -f conftest*
6653       
6654 fi
6655
6656     fi
6657     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
6658     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
6659       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6660       cat >> confdefs.h <<EOF
6661 #define ${ac_tr_func} 1
6662 EOF
6663
6664     fi
6665   fi
6666
6667   
6668   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
6669 echo "configure:6670: checking for __builtin_sqrtl declaration" >&5
6670   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
6671     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
6672   echo $ac_n "(cached) $ac_c" 1>&6
6673 else
6674   
6675       
6676       ac_ext=C
6677 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6678 ac_cpp='$CXXCPP $CPPFLAGS'
6679 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6680 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6681 cross_compiling=$ac_cv_prog_cxx_cross
6682
6683       cat > conftest.$ac_ext <<EOF
6684 #line 6685 "configure"
6685 #include "confdefs.h"
6686 #include <math.h>
6687 int main() {
6688  __builtin_sqrtl(0);
6689 ; return 0; }
6690 EOF
6691 if { (eval echo configure:6692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6692   rm -rf conftest*
6693   glibcpp_cv_func___builtin_sqrtl_use=yes
6694 else
6695   echo "configure: failed program was:" >&5
6696   cat conftest.$ac_ext >&5
6697   rm -rf conftest*
6698   glibcpp_cv_func___builtin_sqrtl_use=no
6699 fi
6700 rm -f conftest*
6701       ac_ext=c
6702 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6703 ac_cpp='$CPP $CPPFLAGS'
6704 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6705 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6706 cross_compiling=$ac_cv_prog_cc_cross
6707
6708     
6709 fi
6710
6711   fi
6712   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
6713   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
6714     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
6715 echo "configure:6716: checking for __builtin_sqrtl linkage" >&5
6716     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
6717       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
6718   echo $ac_n "(cached) $ac_c" 1>&6
6719 else
6720   
6721         cat > conftest.$ac_ext <<EOF
6722 #line 6723 "configure"
6723 #include "confdefs.h"
6724 #include <math.h>
6725 int main() {
6726  __builtin_sqrtl(0);
6727 ; return 0; }
6728 EOF
6729 if { (eval echo configure:6730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6730   rm -rf conftest*
6731   glibcpp_cv_func___builtin_sqrtl_link=yes
6732 else
6733   echo "configure: failed program was:" >&5
6734   cat conftest.$ac_ext >&5
6735   rm -rf conftest*
6736   glibcpp_cv_func___builtin_sqrtl_link=no
6737 fi
6738 rm -f conftest*
6739       
6740 fi
6741
6742     fi
6743     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
6744     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
6745       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6746       cat >> confdefs.h <<EOF
6747 #define ${ac_tr_func} 1
6748 EOF
6749
6750     fi
6751   fi
6752
6753
6754   
6755   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
6756 echo "configure:6757: checking for __builtin_sinf declaration" >&5
6757   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
6758     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
6759   echo $ac_n "(cached) $ac_c" 1>&6
6760 else
6761   
6762       
6763       ac_ext=C
6764 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6765 ac_cpp='$CXXCPP $CPPFLAGS'
6766 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6767 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6768 cross_compiling=$ac_cv_prog_cxx_cross
6769
6770       cat > conftest.$ac_ext <<EOF
6771 #line 6772 "configure"
6772 #include "confdefs.h"
6773 #include <math.h>
6774 int main() {
6775  __builtin_sinf(0);
6776 ; return 0; }
6777 EOF
6778 if { (eval echo configure:6779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6779   rm -rf conftest*
6780   glibcpp_cv_func___builtin_sinf_use=yes
6781 else
6782   echo "configure: failed program was:" >&5
6783   cat conftest.$ac_ext >&5
6784   rm -rf conftest*
6785   glibcpp_cv_func___builtin_sinf_use=no
6786 fi
6787 rm -f conftest*
6788       ac_ext=c
6789 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6790 ac_cpp='$CPP $CPPFLAGS'
6791 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6792 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6793 cross_compiling=$ac_cv_prog_cc_cross
6794
6795     
6796 fi
6797
6798   fi
6799   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
6800   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
6801     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
6802 echo "configure:6803: checking for __builtin_sinf linkage" >&5
6803     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
6804       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
6805   echo $ac_n "(cached) $ac_c" 1>&6
6806 else
6807   
6808         cat > conftest.$ac_ext <<EOF
6809 #line 6810 "configure"
6810 #include "confdefs.h"
6811 #include <math.h>
6812 int main() {
6813  __builtin_sinf(0);
6814 ; return 0; }
6815 EOF
6816 if { (eval echo configure:6817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6817   rm -rf conftest*
6818   glibcpp_cv_func___builtin_sinf_link=yes
6819 else
6820   echo "configure: failed program was:" >&5
6821   cat conftest.$ac_ext >&5
6822   rm -rf conftest*
6823   glibcpp_cv_func___builtin_sinf_link=no
6824 fi
6825 rm -f conftest*
6826       
6827 fi
6828
6829     fi
6830     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
6831     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
6832       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6833       cat >> confdefs.h <<EOF
6834 #define ${ac_tr_func} 1
6835 EOF
6836
6837     fi
6838   fi
6839
6840   
6841   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
6842 echo "configure:6843: checking for __builtin_sin declaration" >&5
6843   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
6844     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
6845   echo $ac_n "(cached) $ac_c" 1>&6
6846 else
6847   
6848       
6849       ac_ext=C
6850 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6851 ac_cpp='$CXXCPP $CPPFLAGS'
6852 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6853 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6854 cross_compiling=$ac_cv_prog_cxx_cross
6855
6856       cat > conftest.$ac_ext <<EOF
6857 #line 6858 "configure"
6858 #include "confdefs.h"
6859 #include <math.h>
6860 int main() {
6861  __builtin_sin(0);
6862 ; return 0; }
6863 EOF
6864 if { (eval echo configure:6865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6865   rm -rf conftest*
6866   glibcpp_cv_func___builtin_sin_use=yes
6867 else
6868   echo "configure: failed program was:" >&5
6869   cat conftest.$ac_ext >&5
6870   rm -rf conftest*
6871   glibcpp_cv_func___builtin_sin_use=no
6872 fi
6873 rm -f conftest*
6874       ac_ext=c
6875 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6876 ac_cpp='$CPP $CPPFLAGS'
6877 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6878 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6879 cross_compiling=$ac_cv_prog_cc_cross
6880
6881     
6882 fi
6883
6884   fi
6885   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
6886   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
6887     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
6888 echo "configure:6889: checking for __builtin_sin linkage" >&5
6889     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
6890       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
6891   echo $ac_n "(cached) $ac_c" 1>&6
6892 else
6893   
6894         cat > conftest.$ac_ext <<EOF
6895 #line 6896 "configure"
6896 #include "confdefs.h"
6897 #include <math.h>
6898 int main() {
6899  __builtin_sin(0);
6900 ; return 0; }
6901 EOF
6902 if { (eval echo configure:6903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6903   rm -rf conftest*
6904   glibcpp_cv_func___builtin_sin_link=yes
6905 else
6906   echo "configure: failed program was:" >&5
6907   cat conftest.$ac_ext >&5
6908   rm -rf conftest*
6909   glibcpp_cv_func___builtin_sin_link=no
6910 fi
6911 rm -f conftest*
6912       
6913 fi
6914
6915     fi
6916     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
6917     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
6918       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6919       cat >> confdefs.h <<EOF
6920 #define ${ac_tr_func} 1
6921 EOF
6922
6923     fi
6924   fi
6925
6926   
6927   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
6928 echo "configure:6929: checking for __builtin_sinl declaration" >&5
6929   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
6930     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
6931   echo $ac_n "(cached) $ac_c" 1>&6
6932 else
6933   
6934       
6935       ac_ext=C
6936 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6937 ac_cpp='$CXXCPP $CPPFLAGS'
6938 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6939 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6940 cross_compiling=$ac_cv_prog_cxx_cross
6941
6942       cat > conftest.$ac_ext <<EOF
6943 #line 6944 "configure"
6944 #include "confdefs.h"
6945 #include <math.h>
6946 int main() {
6947  __builtin_sinl(0);
6948 ; return 0; }
6949 EOF
6950 if { (eval echo configure:6951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6951   rm -rf conftest*
6952   glibcpp_cv_func___builtin_sinl_use=yes
6953 else
6954   echo "configure: failed program was:" >&5
6955   cat conftest.$ac_ext >&5
6956   rm -rf conftest*
6957   glibcpp_cv_func___builtin_sinl_use=no
6958 fi
6959 rm -f conftest*
6960       ac_ext=c
6961 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6962 ac_cpp='$CPP $CPPFLAGS'
6963 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6964 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6965 cross_compiling=$ac_cv_prog_cc_cross
6966
6967     
6968 fi
6969
6970   fi
6971   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
6972   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
6973     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
6974 echo "configure:6975: checking for __builtin_sinl linkage" >&5
6975     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
6976       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
6977   echo $ac_n "(cached) $ac_c" 1>&6
6978 else
6979   
6980         cat > conftest.$ac_ext <<EOF
6981 #line 6982 "configure"
6982 #include "confdefs.h"
6983 #include <math.h>
6984 int main() {
6985  __builtin_sinl(0);
6986 ; return 0; }
6987 EOF
6988 if { (eval echo configure:6989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6989   rm -rf conftest*
6990   glibcpp_cv_func___builtin_sinl_link=yes
6991 else
6992   echo "configure: failed program was:" >&5
6993   cat conftest.$ac_ext >&5
6994   rm -rf conftest*
6995   glibcpp_cv_func___builtin_sinl_link=no
6996 fi
6997 rm -f conftest*
6998       
6999 fi
7000
7001     fi
7002     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
7003     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
7004       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7005       cat >> confdefs.h <<EOF
7006 #define ${ac_tr_func} 1
7007 EOF
7008
7009     fi
7010   fi
7011
7012
7013   
7014   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
7015 echo "configure:7016: checking for __builtin_cosf declaration" >&5
7016   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
7017     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
7018   echo $ac_n "(cached) $ac_c" 1>&6
7019 else
7020   
7021       
7022       ac_ext=C
7023 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7024 ac_cpp='$CXXCPP $CPPFLAGS'
7025 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7026 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7027 cross_compiling=$ac_cv_prog_cxx_cross
7028
7029       cat > conftest.$ac_ext <<EOF
7030 #line 7031 "configure"
7031 #include "confdefs.h"
7032 #include <math.h>
7033 int main() {
7034  __builtin_cosf(0);
7035 ; return 0; }
7036 EOF
7037 if { (eval echo configure:7038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7038   rm -rf conftest*
7039   glibcpp_cv_func___builtin_cosf_use=yes
7040 else
7041   echo "configure: failed program was:" >&5
7042   cat conftest.$ac_ext >&5
7043   rm -rf conftest*
7044   glibcpp_cv_func___builtin_cosf_use=no
7045 fi
7046 rm -f conftest*
7047       ac_ext=c
7048 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7049 ac_cpp='$CPP $CPPFLAGS'
7050 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7051 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7052 cross_compiling=$ac_cv_prog_cc_cross
7053
7054     
7055 fi
7056
7057   fi
7058   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
7059   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
7060     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
7061 echo "configure:7062: checking for __builtin_cosf linkage" >&5
7062     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
7063       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
7064   echo $ac_n "(cached) $ac_c" 1>&6
7065 else
7066   
7067         cat > conftest.$ac_ext <<EOF
7068 #line 7069 "configure"
7069 #include "confdefs.h"
7070 #include <math.h>
7071 int main() {
7072  __builtin_cosf(0);
7073 ; return 0; }
7074 EOF
7075 if { (eval echo configure:7076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7076   rm -rf conftest*
7077   glibcpp_cv_func___builtin_cosf_link=yes
7078 else
7079   echo "configure: failed program was:" >&5
7080   cat conftest.$ac_ext >&5
7081   rm -rf conftest*
7082   glibcpp_cv_func___builtin_cosf_link=no
7083 fi
7084 rm -f conftest*
7085       
7086 fi
7087
7088     fi
7089     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
7090     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
7091       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7092       cat >> confdefs.h <<EOF
7093 #define ${ac_tr_func} 1
7094 EOF
7095
7096     fi
7097   fi
7098
7099   
7100   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
7101 echo "configure:7102: checking for __builtin_cos declaration" >&5
7102   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
7103     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
7104   echo $ac_n "(cached) $ac_c" 1>&6
7105 else
7106   
7107       
7108       ac_ext=C
7109 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7110 ac_cpp='$CXXCPP $CPPFLAGS'
7111 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7112 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7113 cross_compiling=$ac_cv_prog_cxx_cross
7114
7115       cat > conftest.$ac_ext <<EOF
7116 #line 7117 "configure"
7117 #include "confdefs.h"
7118 #include <math.h>
7119 int main() {
7120  __builtin_cos(0);
7121 ; return 0; }
7122 EOF
7123 if { (eval echo configure:7124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7124   rm -rf conftest*
7125   glibcpp_cv_func___builtin_cos_use=yes
7126 else
7127   echo "configure: failed program was:" >&5
7128   cat conftest.$ac_ext >&5
7129   rm -rf conftest*
7130   glibcpp_cv_func___builtin_cos_use=no
7131 fi
7132 rm -f conftest*
7133       ac_ext=c
7134 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7135 ac_cpp='$CPP $CPPFLAGS'
7136 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7137 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7138 cross_compiling=$ac_cv_prog_cc_cross
7139
7140     
7141 fi
7142
7143   fi
7144   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
7145   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
7146     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
7147 echo "configure:7148: checking for __builtin_cos linkage" >&5
7148     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
7149       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
7150   echo $ac_n "(cached) $ac_c" 1>&6
7151 else
7152   
7153         cat > conftest.$ac_ext <<EOF
7154 #line 7155 "configure"
7155 #include "confdefs.h"
7156 #include <math.h>
7157 int main() {
7158  __builtin_cos(0);
7159 ; return 0; }
7160 EOF
7161 if { (eval echo configure:7162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7162   rm -rf conftest*
7163   glibcpp_cv_func___builtin_cos_link=yes
7164 else
7165   echo "configure: failed program was:" >&5
7166   cat conftest.$ac_ext >&5
7167   rm -rf conftest*
7168   glibcpp_cv_func___builtin_cos_link=no
7169 fi
7170 rm -f conftest*
7171       
7172 fi
7173
7174     fi
7175     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
7176     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
7177       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7178       cat >> confdefs.h <<EOF
7179 #define ${ac_tr_func} 1
7180 EOF
7181
7182     fi
7183   fi
7184
7185   
7186   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
7187 echo "configure:7188: checking for __builtin_cosl declaration" >&5
7188   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
7189     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
7190   echo $ac_n "(cached) $ac_c" 1>&6
7191 else
7192   
7193       
7194       ac_ext=C
7195 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7196 ac_cpp='$CXXCPP $CPPFLAGS'
7197 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7198 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7199 cross_compiling=$ac_cv_prog_cxx_cross
7200
7201       cat > conftest.$ac_ext <<EOF
7202 #line 7203 "configure"
7203 #include "confdefs.h"
7204 #include <math.h>
7205 int main() {
7206  __builtin_cosl(0);
7207 ; return 0; }
7208 EOF
7209 if { (eval echo configure:7210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7210   rm -rf conftest*
7211   glibcpp_cv_func___builtin_cosl_use=yes
7212 else
7213   echo "configure: failed program was:" >&5
7214   cat conftest.$ac_ext >&5
7215   rm -rf conftest*
7216   glibcpp_cv_func___builtin_cosl_use=no
7217 fi
7218 rm -f conftest*
7219       ac_ext=c
7220 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7221 ac_cpp='$CPP $CPPFLAGS'
7222 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7223 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7224 cross_compiling=$ac_cv_prog_cc_cross
7225
7226     
7227 fi
7228
7229   fi
7230   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
7231   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
7232     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
7233 echo "configure:7234: checking for __builtin_cosl linkage" >&5
7234     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
7235       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
7236   echo $ac_n "(cached) $ac_c" 1>&6
7237 else
7238   
7239         cat > conftest.$ac_ext <<EOF
7240 #line 7241 "configure"
7241 #include "confdefs.h"
7242 #include <math.h>
7243 int main() {
7244  __builtin_cosl(0);
7245 ; return 0; }
7246 EOF
7247 if { (eval echo configure:7248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7248   rm -rf conftest*
7249   glibcpp_cv_func___builtin_cosl_link=yes
7250 else
7251   echo "configure: failed program was:" >&5
7252   cat conftest.$ac_ext >&5
7253   rm -rf conftest*
7254   glibcpp_cv_func___builtin_cosl_link=no
7255 fi
7256 rm -f conftest*
7257       
7258 fi
7259
7260     fi
7261     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
7262     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
7263       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7264       cat >> confdefs.h <<EOF
7265 #define ${ac_tr_func} 1
7266 EOF
7267
7268     fi
7269   fi
7270
7271
7272               dummyvar=no
7273   if test x$dummyvar = x"yes"; then
7274     cat >> confdefs.h <<\EOF
7275 #define HAVE___BUILTIN_ABS 1
7276 EOF
7277
7278     cat >> confdefs.h <<\EOF
7279 #define HAVE___BUILTIN_LABS 1
7280 EOF
7281
7282     cat >> confdefs.h <<\EOF
7283 #define HAVE___BUILTIN_COS 1
7284 EOF
7285
7286     cat >> confdefs.h <<\EOF
7287 #define HAVE___BUILTIN_COSF 1
7288 EOF
7289
7290     cat >> confdefs.h <<\EOF
7291 #define HAVE___BUILTIN_COSL 1
7292 EOF
7293
7294     cat >> confdefs.h <<\EOF
7295 #define HAVE___BUILTIN_FABS 1
7296 EOF
7297
7298     cat >> confdefs.h <<\EOF
7299 #define HAVE___BUILTIN_FABSF 1
7300 EOF
7301
7302     cat >> confdefs.h <<\EOF
7303 #define HAVE___BUILTIN_FABSL 1
7304 EOF
7305
7306     cat >> confdefs.h <<\EOF
7307 #define HAVE___BUILTIN_SIN 1
7308 EOF
7309
7310     cat >> confdefs.h <<\EOF
7311 #define HAVE___BUILTIN_SINF 1
7312 EOF
7313
7314     cat >> confdefs.h <<\EOF
7315 #define HAVE___BUILTIN_SINL 1
7316 EOF
7317
7318     cat >> confdefs.h <<\EOF
7319 #define HAVE___BUILTIN_SQRT 1
7320 EOF
7321
7322     cat >> confdefs.h <<\EOF
7323 #define HAVE___BUILTIN_SQRTF 1
7324 EOF
7325
7326     cat >> confdefs.h <<\EOF
7327 #define HAVE___BUILTIN_SQRTL 1
7328 EOF
7329
7330   fi
7331
7332   
7333   ac_test_CXXFLAGS="${CXXFLAGS+set}"
7334   ac_save_CXXFLAGS="$CXXFLAGS"
7335   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
7336
7337     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
7338 echo "configure:7339: checking for sin in -lm" >&5
7339 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
7340 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7341   echo $ac_n "(cached) $ac_c" 1>&6
7342 else
7343   ac_save_LIBS="$LIBS"
7344 LIBS="-lm  $LIBS"
7345 cat > conftest.$ac_ext <<EOF
7346 #line 7347 "configure"
7347 #include "confdefs.h"
7348 /* Override any gcc2 internal prototype to avoid an error.  */
7349 /* We use char because int might match the return type of a gcc2
7350     builtin and then its argument prototype would still apply.  */
7351 char sin();
7352
7353 int main() {
7354 sin()
7355 ; return 0; }
7356 EOF
7357 if { (eval echo configure:7358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7358   rm -rf conftest*
7359   eval "ac_cv_lib_$ac_lib_var=yes"
7360 else
7361   echo "configure: failed program was:" >&5
7362   cat conftest.$ac_ext >&5
7363   rm -rf conftest*
7364   eval "ac_cv_lib_$ac_lib_var=no"
7365 fi
7366 rm -f conftest*
7367 LIBS="$ac_save_LIBS"
7368
7369 fi
7370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7371   echo "$ac_t""yes" 1>&6
7372   libm="-lm"
7373 else
7374   echo "$ac_t""no" 1>&6
7375 fi
7376
7377   ac_save_LIBS="$LIBS"
7378   LIBS="$LIBS $libm"
7379
7380     
7381   
7382   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
7383 echo "configure:7384: checking for isinf declaration" >&5
7384   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
7385     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
7386   echo $ac_n "(cached) $ac_c" 1>&6
7387 else
7388   
7389       
7390       ac_ext=C
7391 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7392 ac_cpp='$CXXCPP $CPPFLAGS'
7393 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7394 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7395 cross_compiling=$ac_cv_prog_cxx_cross
7396
7397       cat > conftest.$ac_ext <<EOF
7398 #line 7399 "configure"
7399 #include "confdefs.h"
7400 #include <math.h>
7401                       #ifdef HAVE_IEEEFP_H
7402                       #include <ieeefp.h>
7403                       #endif
7404                      
7405 int main() {
7406  isinf(0);
7407 ; return 0; }
7408 EOF
7409 if { (eval echo configure:7410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7410   rm -rf conftest*
7411   glibcpp_cv_func_isinf_use=yes
7412 else
7413   echo "configure: failed program was:" >&5
7414   cat conftest.$ac_ext >&5
7415   rm -rf conftest*
7416   glibcpp_cv_func_isinf_use=no
7417 fi
7418 rm -f conftest*
7419       ac_ext=c
7420 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7421 ac_cpp='$CPP $CPPFLAGS'
7422 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7423 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7424 cross_compiling=$ac_cv_prog_cc_cross
7425
7426     
7427 fi
7428
7429   fi
7430   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
7431
7432   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
7433     for ac_func in isinf
7434 do
7435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7436 echo "configure:7437: checking for $ac_func" >&5
7437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7438   echo $ac_n "(cached) $ac_c" 1>&6
7439 else
7440   cat > conftest.$ac_ext <<EOF
7441 #line 7442 "configure"
7442 #include "confdefs.h"
7443 /* System header to define __stub macros and hopefully few prototypes,
7444     which can conflict with char $ac_func(); below.  */
7445 #include <assert.h>
7446 /* Override any gcc2 internal prototype to avoid an error.  */
7447 /* We use char because int might match the return type of a gcc2
7448     builtin and then its argument prototype would still apply.  */
7449 char $ac_func();
7450
7451 int main() {
7452
7453 /* The GNU C library defines this for functions which it implements
7454     to always fail with ENOSYS.  Some functions are actually named
7455     something starting with __ and the normal name is an alias.  */
7456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7457 choke me
7458 #else
7459 $ac_func();
7460 #endif
7461
7462 ; return 0; }
7463 EOF
7464 if { (eval echo configure:7465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7465   rm -rf conftest*
7466   eval "ac_cv_func_$ac_func=yes"
7467 else
7468   echo "configure: failed program was:" >&5
7469   cat conftest.$ac_ext >&5
7470   rm -rf conftest*
7471   eval "ac_cv_func_$ac_func=no"
7472 fi
7473 rm -f conftest*
7474 fi
7475
7476 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7477   echo "$ac_t""yes" 1>&6
7478     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7479   cat >> confdefs.h <<EOF
7480 #define $ac_tr_func 1
7481 EOF
7482  
7483 else
7484   echo "$ac_t""no" 1>&6
7485 fi
7486 done
7487     
7488   else
7489     
7490   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
7491 echo "configure:7492: checking for _isinf declaration" >&5
7492   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
7493     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
7494   echo $ac_n "(cached) $ac_c" 1>&6
7495 else
7496   
7497       
7498       ac_ext=C
7499 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7500 ac_cpp='$CXXCPP $CPPFLAGS'
7501 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7502 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7503 cross_compiling=$ac_cv_prog_cxx_cross
7504
7505       cat > conftest.$ac_ext <<EOF
7506 #line 7507 "configure"
7507 #include "confdefs.h"
7508 #include <math.h>
7509                       #ifdef HAVE_IEEEFP_H
7510                       #include <ieeefp.h>
7511                       #endif
7512                      
7513 int main() {
7514  _isinf(0);
7515 ; return 0; }
7516 EOF
7517 if { (eval echo configure:7518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7518   rm -rf conftest*
7519   glibcpp_cv_func__isinf_use=yes
7520 else
7521   echo "configure: failed program was:" >&5
7522   cat conftest.$ac_ext >&5
7523   rm -rf conftest*
7524   glibcpp_cv_func__isinf_use=no
7525 fi
7526 rm -f conftest*
7527       ac_ext=c
7528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7529 ac_cpp='$CPP $CPPFLAGS'
7530 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7531 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7532 cross_compiling=$ac_cv_prog_cc_cross
7533
7534     
7535 fi
7536
7537   fi
7538   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
7539
7540     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
7541       for ac_func in _isinf
7542 do
7543 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7544 echo "configure:7545: checking for $ac_func" >&5
7545 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7546   echo $ac_n "(cached) $ac_c" 1>&6
7547 else
7548   cat > conftest.$ac_ext <<EOF
7549 #line 7550 "configure"
7550 #include "confdefs.h"
7551 /* System header to define __stub macros and hopefully few prototypes,
7552     which can conflict with char $ac_func(); below.  */
7553 #include <assert.h>
7554 /* Override any gcc2 internal prototype to avoid an error.  */
7555 /* We use char because int might match the return type of a gcc2
7556     builtin and then its argument prototype would still apply.  */
7557 char $ac_func();
7558
7559 int main() {
7560
7561 /* The GNU C library defines this for functions which it implements
7562     to always fail with ENOSYS.  Some functions are actually named
7563     something starting with __ and the normal name is an alias.  */
7564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7565 choke me
7566 #else
7567 $ac_func();
7568 #endif
7569
7570 ; return 0; }
7571 EOF
7572 if { (eval echo configure:7573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7573   rm -rf conftest*
7574   eval "ac_cv_func_$ac_func=yes"
7575 else
7576   echo "configure: failed program was:" >&5
7577   cat conftest.$ac_ext >&5
7578   rm -rf conftest*
7579   eval "ac_cv_func_$ac_func=no"
7580 fi
7581 rm -f conftest*
7582 fi
7583
7584 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7585   echo "$ac_t""yes" 1>&6
7586     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7587   cat >> confdefs.h <<EOF
7588 #define $ac_tr_func 1
7589 EOF
7590  
7591 else
7592   echo "$ac_t""no" 1>&6
7593 fi
7594 done
7595     
7596     fi
7597   fi
7598
7599   
7600   
7601   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
7602 echo "configure:7603: checking for isnan declaration" >&5
7603   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
7604     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
7605   echo $ac_n "(cached) $ac_c" 1>&6
7606 else
7607   
7608       
7609       ac_ext=C
7610 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7611 ac_cpp='$CXXCPP $CPPFLAGS'
7612 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7613 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7614 cross_compiling=$ac_cv_prog_cxx_cross
7615
7616       cat > conftest.$ac_ext <<EOF
7617 #line 7618 "configure"
7618 #include "confdefs.h"
7619 #include <math.h>
7620                       #ifdef HAVE_IEEEFP_H
7621                       #include <ieeefp.h>
7622                       #endif
7623                      
7624 int main() {
7625  isnan(0);
7626 ; return 0; }
7627 EOF
7628 if { (eval echo configure:7629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7629   rm -rf conftest*
7630   glibcpp_cv_func_isnan_use=yes
7631 else
7632   echo "configure: failed program was:" >&5
7633   cat conftest.$ac_ext >&5
7634   rm -rf conftest*
7635   glibcpp_cv_func_isnan_use=no
7636 fi
7637 rm -f conftest*
7638       ac_ext=c
7639 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7640 ac_cpp='$CPP $CPPFLAGS'
7641 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7642 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7643 cross_compiling=$ac_cv_prog_cc_cross
7644
7645     
7646 fi
7647
7648   fi
7649   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
7650
7651   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
7652     for ac_func in isnan
7653 do
7654 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7655 echo "configure:7656: checking for $ac_func" >&5
7656 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7657   echo $ac_n "(cached) $ac_c" 1>&6
7658 else
7659   cat > conftest.$ac_ext <<EOF
7660 #line 7661 "configure"
7661 #include "confdefs.h"
7662 /* System header to define __stub macros and hopefully few prototypes,
7663     which can conflict with char $ac_func(); below.  */
7664 #include <assert.h>
7665 /* Override any gcc2 internal prototype to avoid an error.  */
7666 /* We use char because int might match the return type of a gcc2
7667     builtin and then its argument prototype would still apply.  */
7668 char $ac_func();
7669
7670 int main() {
7671
7672 /* The GNU C library defines this for functions which it implements
7673     to always fail with ENOSYS.  Some functions are actually named
7674     something starting with __ and the normal name is an alias.  */
7675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7676 choke me
7677 #else
7678 $ac_func();
7679 #endif
7680
7681 ; return 0; }
7682 EOF
7683 if { (eval echo configure:7684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7684   rm -rf conftest*
7685   eval "ac_cv_func_$ac_func=yes"
7686 else
7687   echo "configure: failed program was:" >&5
7688   cat conftest.$ac_ext >&5
7689   rm -rf conftest*
7690   eval "ac_cv_func_$ac_func=no"
7691 fi
7692 rm -f conftest*
7693 fi
7694
7695 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7696   echo "$ac_t""yes" 1>&6
7697     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7698   cat >> confdefs.h <<EOF
7699 #define $ac_tr_func 1
7700 EOF
7701  
7702 else
7703   echo "$ac_t""no" 1>&6
7704 fi
7705 done
7706     
7707   else
7708     
7709   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
7710 echo "configure:7711: checking for _isnan declaration" >&5
7711   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
7712     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
7713   echo $ac_n "(cached) $ac_c" 1>&6
7714 else
7715   
7716       
7717       ac_ext=C
7718 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7719 ac_cpp='$CXXCPP $CPPFLAGS'
7720 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7721 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7722 cross_compiling=$ac_cv_prog_cxx_cross
7723
7724       cat > conftest.$ac_ext <<EOF
7725 #line 7726 "configure"
7726 #include "confdefs.h"
7727 #include <math.h>
7728                       #ifdef HAVE_IEEEFP_H
7729                       #include <ieeefp.h>
7730                       #endif
7731                      
7732 int main() {
7733  _isnan(0);
7734 ; return 0; }
7735 EOF
7736 if { (eval echo configure:7737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7737   rm -rf conftest*
7738   glibcpp_cv_func__isnan_use=yes
7739 else
7740   echo "configure: failed program was:" >&5
7741   cat conftest.$ac_ext >&5
7742   rm -rf conftest*
7743   glibcpp_cv_func__isnan_use=no
7744 fi
7745 rm -f conftest*
7746       ac_ext=c
7747 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7748 ac_cpp='$CPP $CPPFLAGS'
7749 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7750 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7751 cross_compiling=$ac_cv_prog_cc_cross
7752
7753     
7754 fi
7755
7756   fi
7757   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
7758
7759     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
7760       for ac_func in _isnan
7761 do
7762 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7763 echo "configure:7764: checking for $ac_func" >&5
7764 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7765   echo $ac_n "(cached) $ac_c" 1>&6
7766 else
7767   cat > conftest.$ac_ext <<EOF
7768 #line 7769 "configure"
7769 #include "confdefs.h"
7770 /* System header to define __stub macros and hopefully few prototypes,
7771     which can conflict with char $ac_func(); below.  */
7772 #include <assert.h>
7773 /* Override any gcc2 internal prototype to avoid an error.  */
7774 /* We use char because int might match the return type of a gcc2
7775     builtin and then its argument prototype would still apply.  */
7776 char $ac_func();
7777
7778 int main() {
7779
7780 /* The GNU C library defines this for functions which it implements
7781     to always fail with ENOSYS.  Some functions are actually named
7782     something starting with __ and the normal name is an alias.  */
7783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7784 choke me
7785 #else
7786 $ac_func();
7787 #endif
7788
7789 ; return 0; }
7790 EOF
7791 if { (eval echo configure:7792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7792   rm -rf conftest*
7793   eval "ac_cv_func_$ac_func=yes"
7794 else
7795   echo "configure: failed program was:" >&5
7796   cat conftest.$ac_ext >&5
7797   rm -rf conftest*
7798   eval "ac_cv_func_$ac_func=no"
7799 fi
7800 rm -f conftest*
7801 fi
7802
7803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7804   echo "$ac_t""yes" 1>&6
7805     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7806   cat >> confdefs.h <<EOF
7807 #define $ac_tr_func 1
7808 EOF
7809  
7810 else
7811   echo "$ac_t""no" 1>&6
7812 fi
7813 done
7814     
7815     fi
7816   fi
7817
7818   
7819   
7820   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
7821 echo "configure:7822: checking for finite declaration" >&5
7822   if test x${glibcpp_cv_func_finite_use+set} != xset; then
7823     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
7824   echo $ac_n "(cached) $ac_c" 1>&6
7825 else
7826   
7827       
7828       ac_ext=C
7829 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7830 ac_cpp='$CXXCPP $CPPFLAGS'
7831 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7832 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7833 cross_compiling=$ac_cv_prog_cxx_cross
7834
7835       cat > conftest.$ac_ext <<EOF
7836 #line 7837 "configure"
7837 #include "confdefs.h"
7838 #include <math.h>
7839                       #ifdef HAVE_IEEEFP_H
7840                       #include <ieeefp.h>
7841                       #endif
7842                      
7843 int main() {
7844  finite(0);
7845 ; return 0; }
7846 EOF
7847 if { (eval echo configure:7848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7848   rm -rf conftest*
7849   glibcpp_cv_func_finite_use=yes
7850 else
7851   echo "configure: failed program was:" >&5
7852   cat conftest.$ac_ext >&5
7853   rm -rf conftest*
7854   glibcpp_cv_func_finite_use=no
7855 fi
7856 rm -f conftest*
7857       ac_ext=c
7858 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7859 ac_cpp='$CPP $CPPFLAGS'
7860 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7861 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7862 cross_compiling=$ac_cv_prog_cc_cross
7863
7864     
7865 fi
7866
7867   fi
7868   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
7869
7870   if test x$glibcpp_cv_func_finite_use = x"yes"; then
7871     for ac_func in finite
7872 do
7873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7874 echo "configure:7875: checking for $ac_func" >&5
7875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7876   echo $ac_n "(cached) $ac_c" 1>&6
7877 else
7878   cat > conftest.$ac_ext <<EOF
7879 #line 7880 "configure"
7880 #include "confdefs.h"
7881 /* System header to define __stub macros and hopefully few prototypes,
7882     which can conflict with char $ac_func(); below.  */
7883 #include <assert.h>
7884 /* Override any gcc2 internal prototype to avoid an error.  */
7885 /* We use char because int might match the return type of a gcc2
7886     builtin and then its argument prototype would still apply.  */
7887 char $ac_func();
7888
7889 int main() {
7890
7891 /* The GNU C library defines this for functions which it implements
7892     to always fail with ENOSYS.  Some functions are actually named
7893     something starting with __ and the normal name is an alias.  */
7894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7895 choke me
7896 #else
7897 $ac_func();
7898 #endif
7899
7900 ; return 0; }
7901 EOF
7902 if { (eval echo configure:7903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7903   rm -rf conftest*
7904   eval "ac_cv_func_$ac_func=yes"
7905 else
7906   echo "configure: failed program was:" >&5
7907   cat conftest.$ac_ext >&5
7908   rm -rf conftest*
7909   eval "ac_cv_func_$ac_func=no"
7910 fi
7911 rm -f conftest*
7912 fi
7913
7914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7915   echo "$ac_t""yes" 1>&6
7916     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7917   cat >> confdefs.h <<EOF
7918 #define $ac_tr_func 1
7919 EOF
7920  
7921 else
7922   echo "$ac_t""no" 1>&6
7923 fi
7924 done
7925     
7926   else
7927     
7928   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
7929 echo "configure:7930: checking for _finite declaration" >&5
7930   if test x${glibcpp_cv_func__finite_use+set} != xset; then
7931     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
7932   echo $ac_n "(cached) $ac_c" 1>&6
7933 else
7934   
7935       
7936       ac_ext=C
7937 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7938 ac_cpp='$CXXCPP $CPPFLAGS'
7939 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7940 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7941 cross_compiling=$ac_cv_prog_cxx_cross
7942
7943       cat > conftest.$ac_ext <<EOF
7944 #line 7945 "configure"
7945 #include "confdefs.h"
7946 #include <math.h>
7947                       #ifdef HAVE_IEEEFP_H
7948                       #include <ieeefp.h>
7949                       #endif
7950                      
7951 int main() {
7952  _finite(0);
7953 ; return 0; }
7954 EOF
7955 if { (eval echo configure:7956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7956   rm -rf conftest*
7957   glibcpp_cv_func__finite_use=yes
7958 else
7959   echo "configure: failed program was:" >&5
7960   cat conftest.$ac_ext >&5
7961   rm -rf conftest*
7962   glibcpp_cv_func__finite_use=no
7963 fi
7964 rm -f conftest*
7965       ac_ext=c
7966 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7967 ac_cpp='$CPP $CPPFLAGS'
7968 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7969 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7970 cross_compiling=$ac_cv_prog_cc_cross
7971
7972     
7973 fi
7974
7975   fi
7976   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
7977
7978     if test x$glibcpp_cv_func__finite_use = x"yes"; then
7979       for ac_func in _finite
7980 do
7981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7982 echo "configure:7983: checking for $ac_func" >&5
7983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7984   echo $ac_n "(cached) $ac_c" 1>&6
7985 else
7986   cat > conftest.$ac_ext <<EOF
7987 #line 7988 "configure"
7988 #include "confdefs.h"
7989 /* System header to define __stub macros and hopefully few prototypes,
7990     which can conflict with char $ac_func(); below.  */
7991 #include <assert.h>
7992 /* Override any gcc2 internal prototype to avoid an error.  */
7993 /* We use char because int might match the return type of a gcc2
7994     builtin and then its argument prototype would still apply.  */
7995 char $ac_func();
7996
7997 int main() {
7998
7999 /* The GNU C library defines this for functions which it implements
8000     to always fail with ENOSYS.  Some functions are actually named
8001     something starting with __ and the normal name is an alias.  */
8002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8003 choke me
8004 #else
8005 $ac_func();
8006 #endif
8007
8008 ; return 0; }
8009 EOF
8010 if { (eval echo configure:8011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8011   rm -rf conftest*
8012   eval "ac_cv_func_$ac_func=yes"
8013 else
8014   echo "configure: failed program was:" >&5
8015   cat conftest.$ac_ext >&5
8016   rm -rf conftest*
8017   eval "ac_cv_func_$ac_func=no"
8018 fi
8019 rm -f conftest*
8020 fi
8021
8022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8023   echo "$ac_t""yes" 1>&6
8024     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8025   cat >> confdefs.h <<EOF
8026 #define $ac_tr_func 1
8027 EOF
8028  
8029 else
8030   echo "$ac_t""no" 1>&6
8031 fi
8032 done
8033     
8034     fi
8035   fi
8036
8037   
8038   
8039   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
8040 echo "configure:8041: checking for copysign declaration" >&5
8041   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
8042     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
8043   echo $ac_n "(cached) $ac_c" 1>&6
8044 else
8045   
8046       
8047       ac_ext=C
8048 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8049 ac_cpp='$CXXCPP $CPPFLAGS'
8050 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8051 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8052 cross_compiling=$ac_cv_prog_cxx_cross
8053
8054       cat > conftest.$ac_ext <<EOF
8055 #line 8056 "configure"
8056 #include "confdefs.h"
8057 #include <math.h>
8058 int main() {
8059  copysign(0, 0);
8060 ; return 0; }
8061 EOF
8062 if { (eval echo configure:8063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8063   rm -rf conftest*
8064   glibcpp_cv_func_copysign_use=yes
8065 else
8066   echo "configure: failed program was:" >&5
8067   cat conftest.$ac_ext >&5
8068   rm -rf conftest*
8069   glibcpp_cv_func_copysign_use=no
8070 fi
8071 rm -f conftest*
8072       ac_ext=c
8073 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8074 ac_cpp='$CPP $CPPFLAGS'
8075 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8076 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8077 cross_compiling=$ac_cv_prog_cc_cross
8078
8079     
8080 fi
8081
8082   fi
8083   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
8084
8085   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
8086     for ac_func in copysign
8087 do
8088 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8089 echo "configure:8090: checking for $ac_func" >&5
8090 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8091   echo $ac_n "(cached) $ac_c" 1>&6
8092 else
8093   cat > conftest.$ac_ext <<EOF
8094 #line 8095 "configure"
8095 #include "confdefs.h"
8096 /* System header to define __stub macros and hopefully few prototypes,
8097     which can conflict with char $ac_func(); below.  */
8098 #include <assert.h>
8099 /* Override any gcc2 internal prototype to avoid an error.  */
8100 /* We use char because int might match the return type of a gcc2
8101     builtin and then its argument prototype would still apply.  */
8102 char $ac_func();
8103
8104 int main() {
8105
8106 /* The GNU C library defines this for functions which it implements
8107     to always fail with ENOSYS.  Some functions are actually named
8108     something starting with __ and the normal name is an alias.  */
8109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8110 choke me
8111 #else
8112 $ac_func();
8113 #endif
8114
8115 ; return 0; }
8116 EOF
8117 if { (eval echo configure:8118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8118   rm -rf conftest*
8119   eval "ac_cv_func_$ac_func=yes"
8120 else
8121   echo "configure: failed program was:" >&5
8122   cat conftest.$ac_ext >&5
8123   rm -rf conftest*
8124   eval "ac_cv_func_$ac_func=no"
8125 fi
8126 rm -f conftest*
8127 fi
8128
8129 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8130   echo "$ac_t""yes" 1>&6
8131     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8132   cat >> confdefs.h <<EOF
8133 #define $ac_tr_func 1
8134 EOF
8135  
8136 else
8137   echo "$ac_t""no" 1>&6
8138 fi
8139 done
8140     
8141   else
8142     
8143   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
8144 echo "configure:8145: checking for _copysign declaration" >&5
8145   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
8146     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
8147   echo $ac_n "(cached) $ac_c" 1>&6
8148 else
8149   
8150       
8151       ac_ext=C
8152 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8153 ac_cpp='$CXXCPP $CPPFLAGS'
8154 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8155 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8156 cross_compiling=$ac_cv_prog_cxx_cross
8157
8158       cat > conftest.$ac_ext <<EOF
8159 #line 8160 "configure"
8160 #include "confdefs.h"
8161 #include <math.h>
8162 int main() {
8163  _copysign(0, 0);
8164 ; return 0; }
8165 EOF
8166 if { (eval echo configure:8167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8167   rm -rf conftest*
8168   glibcpp_cv_func__copysign_use=yes
8169 else
8170   echo "configure: failed program was:" >&5
8171   cat conftest.$ac_ext >&5
8172   rm -rf conftest*
8173   glibcpp_cv_func__copysign_use=no
8174 fi
8175 rm -f conftest*
8176       ac_ext=c
8177 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8178 ac_cpp='$CPP $CPPFLAGS'
8179 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8180 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8181 cross_compiling=$ac_cv_prog_cc_cross
8182
8183     
8184 fi
8185
8186   fi
8187   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
8188
8189     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
8190       for ac_func in _copysign
8191 do
8192 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8193 echo "configure:8194: checking for $ac_func" >&5
8194 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8195   echo $ac_n "(cached) $ac_c" 1>&6
8196 else
8197   cat > conftest.$ac_ext <<EOF
8198 #line 8199 "configure"
8199 #include "confdefs.h"
8200 /* System header to define __stub macros and hopefully few prototypes,
8201     which can conflict with char $ac_func(); below.  */
8202 #include <assert.h>
8203 /* Override any gcc2 internal prototype to avoid an error.  */
8204 /* We use char because int might match the return type of a gcc2
8205     builtin and then its argument prototype would still apply.  */
8206 char $ac_func();
8207
8208 int main() {
8209
8210 /* The GNU C library defines this for functions which it implements
8211     to always fail with ENOSYS.  Some functions are actually named
8212     something starting with __ and the normal name is an alias.  */
8213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8214 choke me
8215 #else
8216 $ac_func();
8217 #endif
8218
8219 ; return 0; }
8220 EOF
8221 if { (eval echo configure:8222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8222   rm -rf conftest*
8223   eval "ac_cv_func_$ac_func=yes"
8224 else
8225   echo "configure: failed program was:" >&5
8226   cat conftest.$ac_ext >&5
8227   rm -rf conftest*
8228   eval "ac_cv_func_$ac_func=no"
8229 fi
8230 rm -f conftest*
8231 fi
8232
8233 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8234   echo "$ac_t""yes" 1>&6
8235     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8236   cat >> confdefs.h <<EOF
8237 #define $ac_tr_func 1
8238 EOF
8239  
8240 else
8241   echo "$ac_t""no" 1>&6
8242 fi
8243 done
8244     
8245     fi
8246   fi
8247
8248   
8249   
8250   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
8251 echo "configure:8252: checking for sincos declaration" >&5
8252   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
8253     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
8254   echo $ac_n "(cached) $ac_c" 1>&6
8255 else
8256   
8257       
8258       ac_ext=C
8259 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8260 ac_cpp='$CXXCPP $CPPFLAGS'
8261 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8262 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8263 cross_compiling=$ac_cv_prog_cxx_cross
8264
8265       cat > conftest.$ac_ext <<EOF
8266 #line 8267 "configure"
8267 #include "confdefs.h"
8268 #include <math.h>
8269 int main() {
8270  sincos(0, 0, 0);
8271 ; return 0; }
8272 EOF
8273 if { (eval echo configure:8274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8274   rm -rf conftest*
8275   glibcpp_cv_func_sincos_use=yes
8276 else
8277   echo "configure: failed program was:" >&5
8278   cat conftest.$ac_ext >&5
8279   rm -rf conftest*
8280   glibcpp_cv_func_sincos_use=no
8281 fi
8282 rm -f conftest*
8283       ac_ext=c
8284 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8285 ac_cpp='$CPP $CPPFLAGS'
8286 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8287 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8288 cross_compiling=$ac_cv_prog_cc_cross
8289
8290     
8291 fi
8292
8293   fi
8294   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
8295
8296   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
8297     for ac_func in sincos
8298 do
8299 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8300 echo "configure:8301: checking for $ac_func" >&5
8301 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8302   echo $ac_n "(cached) $ac_c" 1>&6
8303 else
8304   cat > conftest.$ac_ext <<EOF
8305 #line 8306 "configure"
8306 #include "confdefs.h"
8307 /* System header to define __stub macros and hopefully few prototypes,
8308     which can conflict with char $ac_func(); below.  */
8309 #include <assert.h>
8310 /* Override any gcc2 internal prototype to avoid an error.  */
8311 /* We use char because int might match the return type of a gcc2
8312     builtin and then its argument prototype would still apply.  */
8313 char $ac_func();
8314
8315 int main() {
8316
8317 /* The GNU C library defines this for functions which it implements
8318     to always fail with ENOSYS.  Some functions are actually named
8319     something starting with __ and the normal name is an alias.  */
8320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8321 choke me
8322 #else
8323 $ac_func();
8324 #endif
8325
8326 ; return 0; }
8327 EOF
8328 if { (eval echo configure:8329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8329   rm -rf conftest*
8330   eval "ac_cv_func_$ac_func=yes"
8331 else
8332   echo "configure: failed program was:" >&5
8333   cat conftest.$ac_ext >&5
8334   rm -rf conftest*
8335   eval "ac_cv_func_$ac_func=no"
8336 fi
8337 rm -f conftest*
8338 fi
8339
8340 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8341   echo "$ac_t""yes" 1>&6
8342     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8343   cat >> confdefs.h <<EOF
8344 #define $ac_tr_func 1
8345 EOF
8346  
8347 else
8348   echo "$ac_t""no" 1>&6
8349 fi
8350 done
8351     
8352   else
8353     
8354   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
8355 echo "configure:8356: checking for _sincos declaration" >&5
8356   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
8357     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
8358   echo $ac_n "(cached) $ac_c" 1>&6
8359 else
8360   
8361       
8362       ac_ext=C
8363 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8364 ac_cpp='$CXXCPP $CPPFLAGS'
8365 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8366 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8367 cross_compiling=$ac_cv_prog_cxx_cross
8368
8369       cat > conftest.$ac_ext <<EOF
8370 #line 8371 "configure"
8371 #include "confdefs.h"
8372 #include <math.h>
8373 int main() {
8374  _sincos(0, 0, 0);
8375 ; return 0; }
8376 EOF
8377 if { (eval echo configure:8378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8378   rm -rf conftest*
8379   glibcpp_cv_func__sincos_use=yes
8380 else
8381   echo "configure: failed program was:" >&5
8382   cat conftest.$ac_ext >&5
8383   rm -rf conftest*
8384   glibcpp_cv_func__sincos_use=no
8385 fi
8386 rm -f conftest*
8387       ac_ext=c
8388 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8389 ac_cpp='$CPP $CPPFLAGS'
8390 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8391 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8392 cross_compiling=$ac_cv_prog_cc_cross
8393
8394     
8395 fi
8396
8397   fi
8398   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
8399
8400     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
8401       for ac_func in _sincos
8402 do
8403 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8404 echo "configure:8405: checking for $ac_func" >&5
8405 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8406   echo $ac_n "(cached) $ac_c" 1>&6
8407 else
8408   cat > conftest.$ac_ext <<EOF
8409 #line 8410 "configure"
8410 #include "confdefs.h"
8411 /* System header to define __stub macros and hopefully few prototypes,
8412     which can conflict with char $ac_func(); below.  */
8413 #include <assert.h>
8414 /* Override any gcc2 internal prototype to avoid an error.  */
8415 /* We use char because int might match the return type of a gcc2
8416     builtin and then its argument prototype would still apply.  */
8417 char $ac_func();
8418
8419 int main() {
8420
8421 /* The GNU C library defines this for functions which it implements
8422     to always fail with ENOSYS.  Some functions are actually named
8423     something starting with __ and the normal name is an alias.  */
8424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8425 choke me
8426 #else
8427 $ac_func();
8428 #endif
8429
8430 ; return 0; }
8431 EOF
8432 if { (eval echo configure:8433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8433   rm -rf conftest*
8434   eval "ac_cv_func_$ac_func=yes"
8435 else
8436   echo "configure: failed program was:" >&5
8437   cat conftest.$ac_ext >&5
8438   rm -rf conftest*
8439   eval "ac_cv_func_$ac_func=no"
8440 fi
8441 rm -f conftest*
8442 fi
8443
8444 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8445   echo "$ac_t""yes" 1>&6
8446     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8447   cat >> confdefs.h <<EOF
8448 #define $ac_tr_func 1
8449 EOF
8450  
8451 else
8452   echo "$ac_t""no" 1>&6
8453 fi
8454 done
8455     
8456     fi
8457   fi
8458
8459   
8460   
8461   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
8462 echo "configure:8463: checking for fpclass declaration" >&5
8463   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
8464     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
8465   echo $ac_n "(cached) $ac_c" 1>&6
8466 else
8467   
8468       
8469       ac_ext=C
8470 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8471 ac_cpp='$CXXCPP $CPPFLAGS'
8472 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8473 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8474 cross_compiling=$ac_cv_prog_cxx_cross
8475
8476       cat > conftest.$ac_ext <<EOF
8477 #line 8478 "configure"
8478 #include "confdefs.h"
8479 #include <math.h>
8480                       #ifdef HAVE_IEEEFP_H
8481                       #include <ieeefp.h>
8482                       #endif
8483                      
8484 int main() {
8485  fpclass(0);
8486 ; return 0; }
8487 EOF
8488 if { (eval echo configure:8489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8489   rm -rf conftest*
8490   glibcpp_cv_func_fpclass_use=yes
8491 else
8492   echo "configure: failed program was:" >&5
8493   cat conftest.$ac_ext >&5
8494   rm -rf conftest*
8495   glibcpp_cv_func_fpclass_use=no
8496 fi
8497 rm -f conftest*
8498       ac_ext=c
8499 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8500 ac_cpp='$CPP $CPPFLAGS'
8501 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8502 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8503 cross_compiling=$ac_cv_prog_cc_cross
8504
8505     
8506 fi
8507
8508   fi
8509   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
8510
8511   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
8512     for ac_func in fpclass
8513 do
8514 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8515 echo "configure:8516: checking for $ac_func" >&5
8516 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8517   echo $ac_n "(cached) $ac_c" 1>&6
8518 else
8519   cat > conftest.$ac_ext <<EOF
8520 #line 8521 "configure"
8521 #include "confdefs.h"
8522 /* System header to define __stub macros and hopefully few prototypes,
8523     which can conflict with char $ac_func(); below.  */
8524 #include <assert.h>
8525 /* Override any gcc2 internal prototype to avoid an error.  */
8526 /* We use char because int might match the return type of a gcc2
8527     builtin and then its argument prototype would still apply.  */
8528 char $ac_func();
8529
8530 int main() {
8531
8532 /* The GNU C library defines this for functions which it implements
8533     to always fail with ENOSYS.  Some functions are actually named
8534     something starting with __ and the normal name is an alias.  */
8535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8536 choke me
8537 #else
8538 $ac_func();
8539 #endif
8540
8541 ; return 0; }
8542 EOF
8543 if { (eval echo configure:8544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8544   rm -rf conftest*
8545   eval "ac_cv_func_$ac_func=yes"
8546 else
8547   echo "configure: failed program was:" >&5
8548   cat conftest.$ac_ext >&5
8549   rm -rf conftest*
8550   eval "ac_cv_func_$ac_func=no"
8551 fi
8552 rm -f conftest*
8553 fi
8554
8555 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8556   echo "$ac_t""yes" 1>&6
8557     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8558   cat >> confdefs.h <<EOF
8559 #define $ac_tr_func 1
8560 EOF
8561  
8562 else
8563   echo "$ac_t""no" 1>&6
8564 fi
8565 done
8566     
8567   else
8568     
8569   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
8570 echo "configure:8571: checking for _fpclass declaration" >&5
8571   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
8572     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
8573   echo $ac_n "(cached) $ac_c" 1>&6
8574 else
8575   
8576       
8577       ac_ext=C
8578 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8579 ac_cpp='$CXXCPP $CPPFLAGS'
8580 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8581 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8582 cross_compiling=$ac_cv_prog_cxx_cross
8583
8584       cat > conftest.$ac_ext <<EOF
8585 #line 8586 "configure"
8586 #include "confdefs.h"
8587 #include <math.h>
8588                       #ifdef HAVE_IEEEFP_H
8589                       #include <ieeefp.h>
8590                       #endif
8591                      
8592 int main() {
8593  _fpclass(0);
8594 ; return 0; }
8595 EOF
8596 if { (eval echo configure:8597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8597   rm -rf conftest*
8598   glibcpp_cv_func__fpclass_use=yes
8599 else
8600   echo "configure: failed program was:" >&5
8601   cat conftest.$ac_ext >&5
8602   rm -rf conftest*
8603   glibcpp_cv_func__fpclass_use=no
8604 fi
8605 rm -f conftest*
8606       ac_ext=c
8607 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8608 ac_cpp='$CPP $CPPFLAGS'
8609 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8610 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8611 cross_compiling=$ac_cv_prog_cc_cross
8612
8613     
8614 fi
8615
8616   fi
8617   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
8618
8619     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
8620       for ac_func in _fpclass
8621 do
8622 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8623 echo "configure:8624: checking for $ac_func" >&5
8624 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8625   echo $ac_n "(cached) $ac_c" 1>&6
8626 else
8627   cat > conftest.$ac_ext <<EOF
8628 #line 8629 "configure"
8629 #include "confdefs.h"
8630 /* System header to define __stub macros and hopefully few prototypes,
8631     which can conflict with char $ac_func(); below.  */
8632 #include <assert.h>
8633 /* Override any gcc2 internal prototype to avoid an error.  */
8634 /* We use char because int might match the return type of a gcc2
8635     builtin and then its argument prototype would still apply.  */
8636 char $ac_func();
8637
8638 int main() {
8639
8640 /* The GNU C library defines this for functions which it implements
8641     to always fail with ENOSYS.  Some functions are actually named
8642     something starting with __ and the normal name is an alias.  */
8643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8644 choke me
8645 #else
8646 $ac_func();
8647 #endif
8648
8649 ; return 0; }
8650 EOF
8651 if { (eval echo configure:8652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8652   rm -rf conftest*
8653   eval "ac_cv_func_$ac_func=yes"
8654 else
8655   echo "configure: failed program was:" >&5
8656   cat conftest.$ac_ext >&5
8657   rm -rf conftest*
8658   eval "ac_cv_func_$ac_func=no"
8659 fi
8660 rm -f conftest*
8661 fi
8662
8663 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8664   echo "$ac_t""yes" 1>&6
8665     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8666   cat >> confdefs.h <<EOF
8667 #define $ac_tr_func 1
8668 EOF
8669  
8670 else
8671   echo "$ac_t""no" 1>&6
8672 fi
8673 done
8674     
8675     fi
8676   fi
8677
8678   
8679   
8680   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
8681 echo "configure:8682: checking for qfpclass declaration" >&5
8682   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
8683     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
8684   echo $ac_n "(cached) $ac_c" 1>&6
8685 else
8686   
8687       
8688       ac_ext=C
8689 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8690 ac_cpp='$CXXCPP $CPPFLAGS'
8691 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8692 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8693 cross_compiling=$ac_cv_prog_cxx_cross
8694
8695       cat > conftest.$ac_ext <<EOF
8696 #line 8697 "configure"
8697 #include "confdefs.h"
8698 #include <math.h>
8699                       #ifdef HAVE_IEEEFP_H
8700                       #include <ieeefp.h>
8701                       #endif
8702                      
8703 int main() {
8704  qfpclass(0);
8705 ; return 0; }
8706 EOF
8707 if { (eval echo configure:8708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8708   rm -rf conftest*
8709   glibcpp_cv_func_qfpclass_use=yes
8710 else
8711   echo "configure: failed program was:" >&5
8712   cat conftest.$ac_ext >&5
8713   rm -rf conftest*
8714   glibcpp_cv_func_qfpclass_use=no
8715 fi
8716 rm -f conftest*
8717       ac_ext=c
8718 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8719 ac_cpp='$CPP $CPPFLAGS'
8720 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8721 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8722 cross_compiling=$ac_cv_prog_cc_cross
8723
8724     
8725 fi
8726
8727   fi
8728   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
8729
8730   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
8731     for ac_func in qfpclass
8732 do
8733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8734 echo "configure:8735: checking for $ac_func" >&5
8735 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8736   echo $ac_n "(cached) $ac_c" 1>&6
8737 else
8738   cat > conftest.$ac_ext <<EOF
8739 #line 8740 "configure"
8740 #include "confdefs.h"
8741 /* System header to define __stub macros and hopefully few prototypes,
8742     which can conflict with char $ac_func(); below.  */
8743 #include <assert.h>
8744 /* Override any gcc2 internal prototype to avoid an error.  */
8745 /* We use char because int might match the return type of a gcc2
8746     builtin and then its argument prototype would still apply.  */
8747 char $ac_func();
8748
8749 int main() {
8750
8751 /* The GNU C library defines this for functions which it implements
8752     to always fail with ENOSYS.  Some functions are actually named
8753     something starting with __ and the normal name is an alias.  */
8754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8755 choke me
8756 #else
8757 $ac_func();
8758 #endif
8759
8760 ; return 0; }
8761 EOF
8762 if { (eval echo configure:8763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8763   rm -rf conftest*
8764   eval "ac_cv_func_$ac_func=yes"
8765 else
8766   echo "configure: failed program was:" >&5
8767   cat conftest.$ac_ext >&5
8768   rm -rf conftest*
8769   eval "ac_cv_func_$ac_func=no"
8770 fi
8771 rm -f conftest*
8772 fi
8773
8774 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8775   echo "$ac_t""yes" 1>&6
8776     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8777   cat >> confdefs.h <<EOF
8778 #define $ac_tr_func 1
8779 EOF
8780  
8781 else
8782   echo "$ac_t""no" 1>&6
8783 fi
8784 done
8785     
8786   else
8787     
8788   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
8789 echo "configure:8790: checking for _qfpclass declaration" >&5
8790   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
8791     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
8792   echo $ac_n "(cached) $ac_c" 1>&6
8793 else
8794   
8795       
8796       ac_ext=C
8797 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8798 ac_cpp='$CXXCPP $CPPFLAGS'
8799 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8800 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8801 cross_compiling=$ac_cv_prog_cxx_cross
8802
8803       cat > conftest.$ac_ext <<EOF
8804 #line 8805 "configure"
8805 #include "confdefs.h"
8806 #include <math.h>
8807                       #ifdef HAVE_IEEEFP_H
8808                       #include <ieeefp.h>
8809                       #endif
8810                      
8811 int main() {
8812  _qfpclass(0);
8813 ; return 0; }
8814 EOF
8815 if { (eval echo configure:8816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8816   rm -rf conftest*
8817   glibcpp_cv_func__qfpclass_use=yes
8818 else
8819   echo "configure: failed program was:" >&5
8820   cat conftest.$ac_ext >&5
8821   rm -rf conftest*
8822   glibcpp_cv_func__qfpclass_use=no
8823 fi
8824 rm -f conftest*
8825       ac_ext=c
8826 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8827 ac_cpp='$CPP $CPPFLAGS'
8828 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8829 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8830 cross_compiling=$ac_cv_prog_cc_cross
8831
8832     
8833 fi
8834
8835   fi
8836   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
8837
8838     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
8839       for ac_func in _qfpclass
8840 do
8841 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8842 echo "configure:8843: checking for $ac_func" >&5
8843 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8844   echo $ac_n "(cached) $ac_c" 1>&6
8845 else
8846   cat > conftest.$ac_ext <<EOF
8847 #line 8848 "configure"
8848 #include "confdefs.h"
8849 /* System header to define __stub macros and hopefully few prototypes,
8850     which can conflict with char $ac_func(); below.  */
8851 #include <assert.h>
8852 /* Override any gcc2 internal prototype to avoid an error.  */
8853 /* We use char because int might match the return type of a gcc2
8854     builtin and then its argument prototype would still apply.  */
8855 char $ac_func();
8856
8857 int main() {
8858
8859 /* The GNU C library defines this for functions which it implements
8860     to always fail with ENOSYS.  Some functions are actually named
8861     something starting with __ and the normal name is an alias.  */
8862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8863 choke me
8864 #else
8865 $ac_func();
8866 #endif
8867
8868 ; return 0; }
8869 EOF
8870 if { (eval echo configure:8871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8871   rm -rf conftest*
8872   eval "ac_cv_func_$ac_func=yes"
8873 else
8874   echo "configure: failed program was:" >&5
8875   cat conftest.$ac_ext >&5
8876   rm -rf conftest*
8877   eval "ac_cv_func_$ac_func=no"
8878 fi
8879 rm -f conftest*
8880 fi
8881
8882 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8883   echo "$ac_t""yes" 1>&6
8884     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8885   cat >> confdefs.h <<EOF
8886 #define $ac_tr_func 1
8887 EOF
8888  
8889 else
8890   echo "$ac_t""no" 1>&6
8891 fi
8892 done
8893     
8894     fi
8895   fi
8896
8897   
8898   
8899   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
8900 echo "configure:8901: checking for hypot declaration" >&5
8901   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
8902     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
8903   echo $ac_n "(cached) $ac_c" 1>&6
8904 else
8905   
8906       
8907       ac_ext=C
8908 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8909 ac_cpp='$CXXCPP $CPPFLAGS'
8910 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8911 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8912 cross_compiling=$ac_cv_prog_cxx_cross
8913
8914       cat > conftest.$ac_ext <<EOF
8915 #line 8916 "configure"
8916 #include "confdefs.h"
8917 #include <math.h>
8918 int main() {
8919  hypot(0, 0);
8920 ; return 0; }
8921 EOF
8922 if { (eval echo configure:8923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8923   rm -rf conftest*
8924   glibcpp_cv_func_hypot_use=yes
8925 else
8926   echo "configure: failed program was:" >&5
8927   cat conftest.$ac_ext >&5
8928   rm -rf conftest*
8929   glibcpp_cv_func_hypot_use=no
8930 fi
8931 rm -f conftest*
8932       ac_ext=c
8933 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8934 ac_cpp='$CPP $CPPFLAGS'
8935 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8936 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8937 cross_compiling=$ac_cv_prog_cc_cross
8938
8939     
8940 fi
8941
8942   fi
8943   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
8944
8945   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
8946     for ac_func in hypot
8947 do
8948 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8949 echo "configure:8950: checking for $ac_func" >&5
8950 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8951   echo $ac_n "(cached) $ac_c" 1>&6
8952 else
8953   cat > conftest.$ac_ext <<EOF
8954 #line 8955 "configure"
8955 #include "confdefs.h"
8956 /* System header to define __stub macros and hopefully few prototypes,
8957     which can conflict with char $ac_func(); below.  */
8958 #include <assert.h>
8959 /* Override any gcc2 internal prototype to avoid an error.  */
8960 /* We use char because int might match the return type of a gcc2
8961     builtin and then its argument prototype would still apply.  */
8962 char $ac_func();
8963
8964 int main() {
8965
8966 /* The GNU C library defines this for functions which it implements
8967     to always fail with ENOSYS.  Some functions are actually named
8968     something starting with __ and the normal name is an alias.  */
8969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8970 choke me
8971 #else
8972 $ac_func();
8973 #endif
8974
8975 ; return 0; }
8976 EOF
8977 if { (eval echo configure:8978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8978   rm -rf conftest*
8979   eval "ac_cv_func_$ac_func=yes"
8980 else
8981   echo "configure: failed program was:" >&5
8982   cat conftest.$ac_ext >&5
8983   rm -rf conftest*
8984   eval "ac_cv_func_$ac_func=no"
8985 fi
8986 rm -f conftest*
8987 fi
8988
8989 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8990   echo "$ac_t""yes" 1>&6
8991     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8992   cat >> confdefs.h <<EOF
8993 #define $ac_tr_func 1
8994 EOF
8995  
8996 else
8997   echo "$ac_t""no" 1>&6
8998 fi
8999 done
9000     
9001   else
9002     
9003   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
9004 echo "configure:9005: checking for _hypot declaration" >&5
9005   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
9006     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
9007   echo $ac_n "(cached) $ac_c" 1>&6
9008 else
9009   
9010       
9011       ac_ext=C
9012 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9013 ac_cpp='$CXXCPP $CPPFLAGS'
9014 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9015 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9016 cross_compiling=$ac_cv_prog_cxx_cross
9017
9018       cat > conftest.$ac_ext <<EOF
9019 #line 9020 "configure"
9020 #include "confdefs.h"
9021 #include <math.h>
9022 int main() {
9023  _hypot(0, 0);
9024 ; return 0; }
9025 EOF
9026 if { (eval echo configure:9027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9027   rm -rf conftest*
9028   glibcpp_cv_func__hypot_use=yes
9029 else
9030   echo "configure: failed program was:" >&5
9031   cat conftest.$ac_ext >&5
9032   rm -rf conftest*
9033   glibcpp_cv_func__hypot_use=no
9034 fi
9035 rm -f conftest*
9036       ac_ext=c
9037 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9038 ac_cpp='$CPP $CPPFLAGS'
9039 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9040 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9041 cross_compiling=$ac_cv_prog_cc_cross
9042
9043     
9044 fi
9045
9046   fi
9047   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
9048
9049     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
9050       for ac_func in _hypot
9051 do
9052 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9053 echo "configure:9054: checking for $ac_func" >&5
9054 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9055   echo $ac_n "(cached) $ac_c" 1>&6
9056 else
9057   cat > conftest.$ac_ext <<EOF
9058 #line 9059 "configure"
9059 #include "confdefs.h"
9060 /* System header to define __stub macros and hopefully few prototypes,
9061     which can conflict with char $ac_func(); below.  */
9062 #include <assert.h>
9063 /* Override any gcc2 internal prototype to avoid an error.  */
9064 /* We use char because int might match the return type of a gcc2
9065     builtin and then its argument prototype would still apply.  */
9066 char $ac_func();
9067
9068 int main() {
9069
9070 /* The GNU C library defines this for functions which it implements
9071     to always fail with ENOSYS.  Some functions are actually named
9072     something starting with __ and the normal name is an alias.  */
9073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9074 choke me
9075 #else
9076 $ac_func();
9077 #endif
9078
9079 ; return 0; }
9080 EOF
9081 if { (eval echo configure:9082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9082   rm -rf conftest*
9083   eval "ac_cv_func_$ac_func=yes"
9084 else
9085   echo "configure: failed program was:" >&5
9086   cat conftest.$ac_ext >&5
9087   rm -rf conftest*
9088   eval "ac_cv_func_$ac_func=no"
9089 fi
9090 rm -f conftest*
9091 fi
9092
9093 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9094   echo "$ac_t""yes" 1>&6
9095     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9096   cat >> confdefs.h <<EOF
9097 #define $ac_tr_func 1
9098 EOF
9099  
9100 else
9101   echo "$ac_t""no" 1>&6
9102 fi
9103 done
9104     
9105     fi
9106   fi
9107
9108
9109     
9110   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
9111 echo "configure:9112: checking for float trig functions" >&5
9112   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
9113   echo $ac_n "(cached) $ac_c" 1>&6
9114 else
9115   
9116     
9117     ac_ext=C
9118 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9119 ac_cpp='$CXXCPP $CPPFLAGS'
9120 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9121 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9122 cross_compiling=$ac_cv_prog_cxx_cross
9123
9124     cat > conftest.$ac_ext <<EOF
9125 #line 9126 "configure"
9126 #include "confdefs.h"
9127 #include <math.h>
9128 int main() {
9129  `for x in acosf asinf atanf \
9130                                           cosf sinf tanf \
9131                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
9132 ; return 0; }
9133 EOF
9134 if { (eval echo configure:9135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9135   rm -rf conftest*
9136   glibcpp_cv_func_float_trig_use=yes
9137 else
9138   echo "configure: failed program was:" >&5
9139   cat conftest.$ac_ext >&5
9140   rm -rf conftest*
9141   glibcpp_cv_func_float_trig_use=no
9142 fi
9143 rm -f conftest*
9144     ac_ext=c
9145 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9146 ac_cpp='$CPP $CPPFLAGS'
9147 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9148 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9149 cross_compiling=$ac_cv_prog_cc_cross
9150
9151 fi
9152
9153   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
9154   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
9155     for ac_func in acosf asinf atanf \
9156                                           cosf sinf tanf \
9157                                           coshf sinhf tanhf
9158 do
9159 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9160 echo "configure:9161: checking for $ac_func" >&5
9161 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9162   echo $ac_n "(cached) $ac_c" 1>&6
9163 else
9164   cat > conftest.$ac_ext <<EOF
9165 #line 9166 "configure"
9166 #include "confdefs.h"
9167 /* System header to define __stub macros and hopefully few prototypes,
9168     which can conflict with char $ac_func(); below.  */
9169 #include <assert.h>
9170 /* Override any gcc2 internal prototype to avoid an error.  */
9171 /* We use char because int might match the return type of a gcc2
9172     builtin and then its argument prototype would still apply.  */
9173 char $ac_func();
9174
9175 int main() {
9176
9177 /* The GNU C library defines this for functions which it implements
9178     to always fail with ENOSYS.  Some functions are actually named
9179     something starting with __ and the normal name is an alias.  */
9180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9181 choke me
9182 #else
9183 $ac_func();
9184 #endif
9185
9186 ; return 0; }
9187 EOF
9188 if { (eval echo configure:9189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9189   rm -rf conftest*
9190   eval "ac_cv_func_$ac_func=yes"
9191 else
9192   echo "configure: failed program was:" >&5
9193   cat conftest.$ac_ext >&5
9194   rm -rf conftest*
9195   eval "ac_cv_func_$ac_func=no"
9196 fi
9197 rm -f conftest*
9198 fi
9199
9200 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9201   echo "$ac_t""yes" 1>&6
9202     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9203   cat >> confdefs.h <<EOF
9204 #define $ac_tr_func 1
9205 EOF
9206  
9207 else
9208   echo "$ac_t""no" 1>&6
9209 fi
9210 done
9211
9212   fi
9213
9214   
9215   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
9216 echo "configure:9217: checking for float round functions" >&5
9217   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
9218   echo $ac_n "(cached) $ac_c" 1>&6
9219 else
9220   
9221     
9222     ac_ext=C
9223 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9224 ac_cpp='$CXXCPP $CPPFLAGS'
9225 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9226 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9227 cross_compiling=$ac_cv_prog_cxx_cross
9228
9229     cat > conftest.$ac_ext <<EOF
9230 #line 9231 "configure"
9231 #include "confdefs.h"
9232 #include <math.h>
9233 int main() {
9234  `for x in ceilf floorf; do echo "$x (0);"; done` 
9235 ; return 0; }
9236 EOF
9237 if { (eval echo configure:9238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9238   rm -rf conftest*
9239   glibcpp_cv_func_float_round_use=yes
9240 else
9241   echo "configure: failed program was:" >&5
9242   cat conftest.$ac_ext >&5
9243   rm -rf conftest*
9244   glibcpp_cv_func_float_round_use=no
9245 fi
9246 rm -f conftest*
9247     ac_ext=c
9248 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9249 ac_cpp='$CPP $CPPFLAGS'
9250 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9251 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9252 cross_compiling=$ac_cv_prog_cc_cross
9253
9254 fi
9255
9256   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
9257   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
9258     for ac_func in ceilf floorf
9259 do
9260 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9261 echo "configure:9262: checking for $ac_func" >&5
9262 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9263   echo $ac_n "(cached) $ac_c" 1>&6
9264 else
9265   cat > conftest.$ac_ext <<EOF
9266 #line 9267 "configure"
9267 #include "confdefs.h"
9268 /* System header to define __stub macros and hopefully few prototypes,
9269     which can conflict with char $ac_func(); below.  */
9270 #include <assert.h>
9271 /* Override any gcc2 internal prototype to avoid an error.  */
9272 /* We use char because int might match the return type of a gcc2
9273     builtin and then its argument prototype would still apply.  */
9274 char $ac_func();
9275
9276 int main() {
9277
9278 /* The GNU C library defines this for functions which it implements
9279     to always fail with ENOSYS.  Some functions are actually named
9280     something starting with __ and the normal name is an alias.  */
9281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9282 choke me
9283 #else
9284 $ac_func();
9285 #endif
9286
9287 ; return 0; }
9288 EOF
9289 if { (eval echo configure:9290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9290   rm -rf conftest*
9291   eval "ac_cv_func_$ac_func=yes"
9292 else
9293   echo "configure: failed program was:" >&5
9294   cat conftest.$ac_ext >&5
9295   rm -rf conftest*
9296   eval "ac_cv_func_$ac_func=no"
9297 fi
9298 rm -f conftest*
9299 fi
9300
9301 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9302   echo "$ac_t""yes" 1>&6
9303     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9304   cat >> confdefs.h <<EOF
9305 #define $ac_tr_func 1
9306 EOF
9307  
9308 else
9309   echo "$ac_t""no" 1>&6
9310 fi
9311 done
9312
9313   fi
9314
9315   
9316   
9317   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
9318 echo "configure:9319: checking for isnanf declaration" >&5
9319   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
9320     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
9321   echo $ac_n "(cached) $ac_c" 1>&6
9322 else
9323   
9324       
9325       ac_ext=C
9326 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9327 ac_cpp='$CXXCPP $CPPFLAGS'
9328 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9329 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9330 cross_compiling=$ac_cv_prog_cxx_cross
9331
9332       cat > conftest.$ac_ext <<EOF
9333 #line 9334 "configure"
9334 #include "confdefs.h"
9335 #include <math.h>
9336                       #ifdef HAVE_IEEEFP_H
9337                       #include <ieeefp.h>
9338                       #endif
9339                      
9340 int main() {
9341  isnanf(0);
9342 ; return 0; }
9343 EOF
9344 if { (eval echo configure:9345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9345   rm -rf conftest*
9346   glibcpp_cv_func_isnanf_use=yes
9347 else
9348   echo "configure: failed program was:" >&5
9349   cat conftest.$ac_ext >&5
9350   rm -rf conftest*
9351   glibcpp_cv_func_isnanf_use=no
9352 fi
9353 rm -f conftest*
9354       ac_ext=c
9355 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9356 ac_cpp='$CPP $CPPFLAGS'
9357 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9358 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9359 cross_compiling=$ac_cv_prog_cc_cross
9360
9361     
9362 fi
9363
9364   fi
9365   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
9366
9367   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
9368     for ac_func in isnanf
9369 do
9370 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9371 echo "configure:9372: checking for $ac_func" >&5
9372 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9373   echo $ac_n "(cached) $ac_c" 1>&6
9374 else
9375   cat > conftest.$ac_ext <<EOF
9376 #line 9377 "configure"
9377 #include "confdefs.h"
9378 /* System header to define __stub macros and hopefully few prototypes,
9379     which can conflict with char $ac_func(); below.  */
9380 #include <assert.h>
9381 /* Override any gcc2 internal prototype to avoid an error.  */
9382 /* We use char because int might match the return type of a gcc2
9383     builtin and then its argument prototype would still apply.  */
9384 char $ac_func();
9385
9386 int main() {
9387
9388 /* The GNU C library defines this for functions which it implements
9389     to always fail with ENOSYS.  Some functions are actually named
9390     something starting with __ and the normal name is an alias.  */
9391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9392 choke me
9393 #else
9394 $ac_func();
9395 #endif
9396
9397 ; return 0; }
9398 EOF
9399 if { (eval echo configure:9400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9400   rm -rf conftest*
9401   eval "ac_cv_func_$ac_func=yes"
9402 else
9403   echo "configure: failed program was:" >&5
9404   cat conftest.$ac_ext >&5
9405   rm -rf conftest*
9406   eval "ac_cv_func_$ac_func=no"
9407 fi
9408 rm -f conftest*
9409 fi
9410
9411 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9412   echo "$ac_t""yes" 1>&6
9413     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9414   cat >> confdefs.h <<EOF
9415 #define $ac_tr_func 1
9416 EOF
9417  
9418 else
9419   echo "$ac_t""no" 1>&6
9420 fi
9421 done
9422     
9423   else
9424     
9425   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
9426 echo "configure:9427: checking for _isnanf declaration" >&5
9427   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
9428     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
9429   echo $ac_n "(cached) $ac_c" 1>&6
9430 else
9431   
9432       
9433       ac_ext=C
9434 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9435 ac_cpp='$CXXCPP $CPPFLAGS'
9436 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9437 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9438 cross_compiling=$ac_cv_prog_cxx_cross
9439
9440       cat > conftest.$ac_ext <<EOF
9441 #line 9442 "configure"
9442 #include "confdefs.h"
9443 #include <math.h>
9444                       #ifdef HAVE_IEEEFP_H
9445                       #include <ieeefp.h>
9446                       #endif
9447                      
9448 int main() {
9449  _isnanf(0);
9450 ; return 0; }
9451 EOF
9452 if { (eval echo configure:9453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9453   rm -rf conftest*
9454   glibcpp_cv_func__isnanf_use=yes
9455 else
9456   echo "configure: failed program was:" >&5
9457   cat conftest.$ac_ext >&5
9458   rm -rf conftest*
9459   glibcpp_cv_func__isnanf_use=no
9460 fi
9461 rm -f conftest*
9462       ac_ext=c
9463 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9464 ac_cpp='$CPP $CPPFLAGS'
9465 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9466 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9467 cross_compiling=$ac_cv_prog_cc_cross
9468
9469     
9470 fi
9471
9472   fi
9473   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
9474
9475     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
9476       for ac_func in _isnanf
9477 do
9478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9479 echo "configure:9480: checking for $ac_func" >&5
9480 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9481   echo $ac_n "(cached) $ac_c" 1>&6
9482 else
9483   cat > conftest.$ac_ext <<EOF
9484 #line 9485 "configure"
9485 #include "confdefs.h"
9486 /* System header to define __stub macros and hopefully few prototypes,
9487     which can conflict with char $ac_func(); below.  */
9488 #include <assert.h>
9489 /* Override any gcc2 internal prototype to avoid an error.  */
9490 /* We use char because int might match the return type of a gcc2
9491     builtin and then its argument prototype would still apply.  */
9492 char $ac_func();
9493
9494 int main() {
9495
9496 /* The GNU C library defines this for functions which it implements
9497     to always fail with ENOSYS.  Some functions are actually named
9498     something starting with __ and the normal name is an alias.  */
9499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9500 choke me
9501 #else
9502 $ac_func();
9503 #endif
9504
9505 ; return 0; }
9506 EOF
9507 if { (eval echo configure:9508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9508   rm -rf conftest*
9509   eval "ac_cv_func_$ac_func=yes"
9510 else
9511   echo "configure: failed program was:" >&5
9512   cat conftest.$ac_ext >&5
9513   rm -rf conftest*
9514   eval "ac_cv_func_$ac_func=no"
9515 fi
9516 rm -f conftest*
9517 fi
9518
9519 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9520   echo "$ac_t""yes" 1>&6
9521     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9522   cat >> confdefs.h <<EOF
9523 #define $ac_tr_func 1
9524 EOF
9525  
9526 else
9527   echo "$ac_t""no" 1>&6
9528 fi
9529 done
9530     
9531     fi
9532   fi
9533
9534   
9535   
9536   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
9537 echo "configure:9538: checking for isinff declaration" >&5
9538   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
9539     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
9540   echo $ac_n "(cached) $ac_c" 1>&6
9541 else
9542   
9543       
9544       ac_ext=C
9545 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9546 ac_cpp='$CXXCPP $CPPFLAGS'
9547 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9548 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9549 cross_compiling=$ac_cv_prog_cxx_cross
9550
9551       cat > conftest.$ac_ext <<EOF
9552 #line 9553 "configure"
9553 #include "confdefs.h"
9554 #include <math.h>
9555                       #ifdef HAVE_IEEEFP_H
9556                       #include <ieeefp.h>
9557                       #endif
9558                      
9559 int main() {
9560  isinff(0);
9561 ; return 0; }
9562 EOF
9563 if { (eval echo configure:9564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9564   rm -rf conftest*
9565   glibcpp_cv_func_isinff_use=yes
9566 else
9567   echo "configure: failed program was:" >&5
9568   cat conftest.$ac_ext >&5
9569   rm -rf conftest*
9570   glibcpp_cv_func_isinff_use=no
9571 fi
9572 rm -f conftest*
9573       ac_ext=c
9574 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9575 ac_cpp='$CPP $CPPFLAGS'
9576 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9577 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9578 cross_compiling=$ac_cv_prog_cc_cross
9579
9580     
9581 fi
9582
9583   fi
9584   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
9585
9586   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
9587     for ac_func in isinff
9588 do
9589 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9590 echo "configure:9591: checking for $ac_func" >&5
9591 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9592   echo $ac_n "(cached) $ac_c" 1>&6
9593 else
9594   cat > conftest.$ac_ext <<EOF
9595 #line 9596 "configure"
9596 #include "confdefs.h"
9597 /* System header to define __stub macros and hopefully few prototypes,
9598     which can conflict with char $ac_func(); below.  */
9599 #include <assert.h>
9600 /* Override any gcc2 internal prototype to avoid an error.  */
9601 /* We use char because int might match the return type of a gcc2
9602     builtin and then its argument prototype would still apply.  */
9603 char $ac_func();
9604
9605 int main() {
9606
9607 /* The GNU C library defines this for functions which it implements
9608     to always fail with ENOSYS.  Some functions are actually named
9609     something starting with __ and the normal name is an alias.  */
9610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9611 choke me
9612 #else
9613 $ac_func();
9614 #endif
9615
9616 ; return 0; }
9617 EOF
9618 if { (eval echo configure:9619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9619   rm -rf conftest*
9620   eval "ac_cv_func_$ac_func=yes"
9621 else
9622   echo "configure: failed program was:" >&5
9623   cat conftest.$ac_ext >&5
9624   rm -rf conftest*
9625   eval "ac_cv_func_$ac_func=no"
9626 fi
9627 rm -f conftest*
9628 fi
9629
9630 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9631   echo "$ac_t""yes" 1>&6
9632     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9633   cat >> confdefs.h <<EOF
9634 #define $ac_tr_func 1
9635 EOF
9636  
9637 else
9638   echo "$ac_t""no" 1>&6
9639 fi
9640 done
9641     
9642   else
9643     
9644   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
9645 echo "configure:9646: checking for _isinff declaration" >&5
9646   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
9647     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
9648   echo $ac_n "(cached) $ac_c" 1>&6
9649 else
9650   
9651       
9652       ac_ext=C
9653 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9654 ac_cpp='$CXXCPP $CPPFLAGS'
9655 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9656 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9657 cross_compiling=$ac_cv_prog_cxx_cross
9658
9659       cat > conftest.$ac_ext <<EOF
9660 #line 9661 "configure"
9661 #include "confdefs.h"
9662 #include <math.h>
9663                       #ifdef HAVE_IEEEFP_H
9664                       #include <ieeefp.h>
9665                       #endif
9666                      
9667 int main() {
9668  _isinff(0);
9669 ; return 0; }
9670 EOF
9671 if { (eval echo configure:9672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9672   rm -rf conftest*
9673   glibcpp_cv_func__isinff_use=yes
9674 else
9675   echo "configure: failed program was:" >&5
9676   cat conftest.$ac_ext >&5
9677   rm -rf conftest*
9678   glibcpp_cv_func__isinff_use=no
9679 fi
9680 rm -f conftest*
9681       ac_ext=c
9682 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9683 ac_cpp='$CPP $CPPFLAGS'
9684 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9685 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9686 cross_compiling=$ac_cv_prog_cc_cross
9687
9688     
9689 fi
9690
9691   fi
9692   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
9693
9694     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
9695       for ac_func in _isinff
9696 do
9697 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9698 echo "configure:9699: checking for $ac_func" >&5
9699 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9700   echo $ac_n "(cached) $ac_c" 1>&6
9701 else
9702   cat > conftest.$ac_ext <<EOF
9703 #line 9704 "configure"
9704 #include "confdefs.h"
9705 /* System header to define __stub macros and hopefully few prototypes,
9706     which can conflict with char $ac_func(); below.  */
9707 #include <assert.h>
9708 /* Override any gcc2 internal prototype to avoid an error.  */
9709 /* We use char because int might match the return type of a gcc2
9710     builtin and then its argument prototype would still apply.  */
9711 char $ac_func();
9712
9713 int main() {
9714
9715 /* The GNU C library defines this for functions which it implements
9716     to always fail with ENOSYS.  Some functions are actually named
9717     something starting with __ and the normal name is an alias.  */
9718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9719 choke me
9720 #else
9721 $ac_func();
9722 #endif
9723
9724 ; return 0; }
9725 EOF
9726 if { (eval echo configure:9727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9727   rm -rf conftest*
9728   eval "ac_cv_func_$ac_func=yes"
9729 else
9730   echo "configure: failed program was:" >&5
9731   cat conftest.$ac_ext >&5
9732   rm -rf conftest*
9733   eval "ac_cv_func_$ac_func=no"
9734 fi
9735 rm -f conftest*
9736 fi
9737
9738 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9739   echo "$ac_t""yes" 1>&6
9740     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9741   cat >> confdefs.h <<EOF
9742 #define $ac_tr_func 1
9743 EOF
9744  
9745 else
9746   echo "$ac_t""no" 1>&6
9747 fi
9748 done
9749     
9750     fi
9751   fi
9752
9753   
9754   
9755   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
9756 echo "configure:9757: checking for atan2f declaration" >&5
9757   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
9758     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
9759   echo $ac_n "(cached) $ac_c" 1>&6
9760 else
9761   
9762       
9763       ac_ext=C
9764 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9765 ac_cpp='$CXXCPP $CPPFLAGS'
9766 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9767 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9768 cross_compiling=$ac_cv_prog_cxx_cross
9769
9770       cat > conftest.$ac_ext <<EOF
9771 #line 9772 "configure"
9772 #include "confdefs.h"
9773 #include <math.h>
9774 int main() {
9775  atan2f(0, 0);
9776 ; return 0; }
9777 EOF
9778 if { (eval echo configure:9779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9779   rm -rf conftest*
9780   glibcpp_cv_func_atan2f_use=yes
9781 else
9782   echo "configure: failed program was:" >&5
9783   cat conftest.$ac_ext >&5
9784   rm -rf conftest*
9785   glibcpp_cv_func_atan2f_use=no
9786 fi
9787 rm -f conftest*
9788       ac_ext=c
9789 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9790 ac_cpp='$CPP $CPPFLAGS'
9791 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9792 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9793 cross_compiling=$ac_cv_prog_cc_cross
9794
9795     
9796 fi
9797
9798   fi
9799   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
9800
9801   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
9802     for ac_func in atan2f
9803 do
9804 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9805 echo "configure:9806: checking for $ac_func" >&5
9806 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9807   echo $ac_n "(cached) $ac_c" 1>&6
9808 else
9809   cat > conftest.$ac_ext <<EOF
9810 #line 9811 "configure"
9811 #include "confdefs.h"
9812 /* System header to define __stub macros and hopefully few prototypes,
9813     which can conflict with char $ac_func(); below.  */
9814 #include <assert.h>
9815 /* Override any gcc2 internal prototype to avoid an error.  */
9816 /* We use char because int might match the return type of a gcc2
9817     builtin and then its argument prototype would still apply.  */
9818 char $ac_func();
9819
9820 int main() {
9821
9822 /* The GNU C library defines this for functions which it implements
9823     to always fail with ENOSYS.  Some functions are actually named
9824     something starting with __ and the normal name is an alias.  */
9825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9826 choke me
9827 #else
9828 $ac_func();
9829 #endif
9830
9831 ; return 0; }
9832 EOF
9833 if { (eval echo configure:9834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9834   rm -rf conftest*
9835   eval "ac_cv_func_$ac_func=yes"
9836 else
9837   echo "configure: failed program was:" >&5
9838   cat conftest.$ac_ext >&5
9839   rm -rf conftest*
9840   eval "ac_cv_func_$ac_func=no"
9841 fi
9842 rm -f conftest*
9843 fi
9844
9845 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9846   echo "$ac_t""yes" 1>&6
9847     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9848   cat >> confdefs.h <<EOF
9849 #define $ac_tr_func 1
9850 EOF
9851  
9852 else
9853   echo "$ac_t""no" 1>&6
9854 fi
9855 done
9856     
9857   else
9858     
9859   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
9860 echo "configure:9861: checking for _atan2f declaration" >&5
9861   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
9862     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
9863   echo $ac_n "(cached) $ac_c" 1>&6
9864 else
9865   
9866       
9867       ac_ext=C
9868 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9869 ac_cpp='$CXXCPP $CPPFLAGS'
9870 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9871 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9872 cross_compiling=$ac_cv_prog_cxx_cross
9873
9874       cat > conftest.$ac_ext <<EOF
9875 #line 9876 "configure"
9876 #include "confdefs.h"
9877 #include <math.h>
9878 int main() {
9879  _atan2f(0, 0);
9880 ; return 0; }
9881 EOF
9882 if { (eval echo configure:9883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9883   rm -rf conftest*
9884   glibcpp_cv_func__atan2f_use=yes
9885 else
9886   echo "configure: failed program was:" >&5
9887   cat conftest.$ac_ext >&5
9888   rm -rf conftest*
9889   glibcpp_cv_func__atan2f_use=no
9890 fi
9891 rm -f conftest*
9892       ac_ext=c
9893 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9894 ac_cpp='$CPP $CPPFLAGS'
9895 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9896 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9897 cross_compiling=$ac_cv_prog_cc_cross
9898
9899     
9900 fi
9901
9902   fi
9903   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
9904
9905     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
9906       for ac_func in _atan2f
9907 do
9908 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9909 echo "configure:9910: checking for $ac_func" >&5
9910 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9911   echo $ac_n "(cached) $ac_c" 1>&6
9912 else
9913   cat > conftest.$ac_ext <<EOF
9914 #line 9915 "configure"
9915 #include "confdefs.h"
9916 /* System header to define __stub macros and hopefully few prototypes,
9917     which can conflict with char $ac_func(); below.  */
9918 #include <assert.h>
9919 /* Override any gcc2 internal prototype to avoid an error.  */
9920 /* We use char because int might match the return type of a gcc2
9921     builtin and then its argument prototype would still apply.  */
9922 char $ac_func();
9923
9924 int main() {
9925
9926 /* The GNU C library defines this for functions which it implements
9927     to always fail with ENOSYS.  Some functions are actually named
9928     something starting with __ and the normal name is an alias.  */
9929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9930 choke me
9931 #else
9932 $ac_func();
9933 #endif
9934
9935 ; return 0; }
9936 EOF
9937 if { (eval echo configure:9938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9938   rm -rf conftest*
9939   eval "ac_cv_func_$ac_func=yes"
9940 else
9941   echo "configure: failed program was:" >&5
9942   cat conftest.$ac_ext >&5
9943   rm -rf conftest*
9944   eval "ac_cv_func_$ac_func=no"
9945 fi
9946 rm -f conftest*
9947 fi
9948
9949 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9950   echo "$ac_t""yes" 1>&6
9951     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9952   cat >> confdefs.h <<EOF
9953 #define $ac_tr_func 1
9954 EOF
9955  
9956 else
9957   echo "$ac_t""no" 1>&6
9958 fi
9959 done
9960     
9961     fi
9962   fi
9963
9964   
9965   
9966   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
9967 echo "configure:9968: checking for fabsf declaration" >&5
9968   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
9969     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
9970   echo $ac_n "(cached) $ac_c" 1>&6
9971 else
9972   
9973       
9974       ac_ext=C
9975 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9976 ac_cpp='$CXXCPP $CPPFLAGS'
9977 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9978 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9979 cross_compiling=$ac_cv_prog_cxx_cross
9980
9981       cat > conftest.$ac_ext <<EOF
9982 #line 9983 "configure"
9983 #include "confdefs.h"
9984 #include <math.h>
9985                       #ifdef HAVE_IEEEFP_H
9986                       #include <ieeefp.h>
9987                       #endif
9988                      
9989 int main() {
9990  fabsf(0);
9991 ; return 0; }
9992 EOF
9993 if { (eval echo configure:9994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9994   rm -rf conftest*
9995   glibcpp_cv_func_fabsf_use=yes
9996 else
9997   echo "configure: failed program was:" >&5
9998   cat conftest.$ac_ext >&5
9999   rm -rf conftest*
10000   glibcpp_cv_func_fabsf_use=no
10001 fi
10002 rm -f conftest*
10003       ac_ext=c
10004 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10005 ac_cpp='$CPP $CPPFLAGS'
10006 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10007 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10008 cross_compiling=$ac_cv_prog_cc_cross
10009
10010     
10011 fi
10012
10013   fi
10014   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
10015
10016   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
10017     for ac_func in fabsf
10018 do
10019 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10020 echo "configure:10021: checking for $ac_func" >&5
10021 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10022   echo $ac_n "(cached) $ac_c" 1>&6
10023 else
10024   cat > conftest.$ac_ext <<EOF
10025 #line 10026 "configure"
10026 #include "confdefs.h"
10027 /* System header to define __stub macros and hopefully few prototypes,
10028     which can conflict with char $ac_func(); below.  */
10029 #include <assert.h>
10030 /* Override any gcc2 internal prototype to avoid an error.  */
10031 /* We use char because int might match the return type of a gcc2
10032     builtin and then its argument prototype would still apply.  */
10033 char $ac_func();
10034
10035 int main() {
10036
10037 /* The GNU C library defines this for functions which it implements
10038     to always fail with ENOSYS.  Some functions are actually named
10039     something starting with __ and the normal name is an alias.  */
10040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10041 choke me
10042 #else
10043 $ac_func();
10044 #endif
10045
10046 ; return 0; }
10047 EOF
10048 if { (eval echo configure:10049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10049   rm -rf conftest*
10050   eval "ac_cv_func_$ac_func=yes"
10051 else
10052   echo "configure: failed program was:" >&5
10053   cat conftest.$ac_ext >&5
10054   rm -rf conftest*
10055   eval "ac_cv_func_$ac_func=no"
10056 fi
10057 rm -f conftest*
10058 fi
10059
10060 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10061   echo "$ac_t""yes" 1>&6
10062     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10063   cat >> confdefs.h <<EOF
10064 #define $ac_tr_func 1
10065 EOF
10066  
10067 else
10068   echo "$ac_t""no" 1>&6
10069 fi
10070 done
10071     
10072   else
10073     
10074   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
10075 echo "configure:10076: checking for _fabsf declaration" >&5
10076   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
10077     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
10078   echo $ac_n "(cached) $ac_c" 1>&6
10079 else
10080   
10081       
10082       ac_ext=C
10083 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10084 ac_cpp='$CXXCPP $CPPFLAGS'
10085 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10086 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10087 cross_compiling=$ac_cv_prog_cxx_cross
10088
10089       cat > conftest.$ac_ext <<EOF
10090 #line 10091 "configure"
10091 #include "confdefs.h"
10092 #include <math.h>
10093                       #ifdef HAVE_IEEEFP_H
10094                       #include <ieeefp.h>
10095                       #endif
10096                      
10097 int main() {
10098  _fabsf(0);
10099 ; return 0; }
10100 EOF
10101 if { (eval echo configure:10102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10102   rm -rf conftest*
10103   glibcpp_cv_func__fabsf_use=yes
10104 else
10105   echo "configure: failed program was:" >&5
10106   cat conftest.$ac_ext >&5
10107   rm -rf conftest*
10108   glibcpp_cv_func__fabsf_use=no
10109 fi
10110 rm -f conftest*
10111       ac_ext=c
10112 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10113 ac_cpp='$CPP $CPPFLAGS'
10114 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10115 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10116 cross_compiling=$ac_cv_prog_cc_cross
10117
10118     
10119 fi
10120
10121   fi
10122   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
10123
10124     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
10125       for ac_func in _fabsf
10126 do
10127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10128 echo "configure:10129: checking for $ac_func" >&5
10129 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10130   echo $ac_n "(cached) $ac_c" 1>&6
10131 else
10132   cat > conftest.$ac_ext <<EOF
10133 #line 10134 "configure"
10134 #include "confdefs.h"
10135 /* System header to define __stub macros and hopefully few prototypes,
10136     which can conflict with char $ac_func(); below.  */
10137 #include <assert.h>
10138 /* Override any gcc2 internal prototype to avoid an error.  */
10139 /* We use char because int might match the return type of a gcc2
10140     builtin and then its argument prototype would still apply.  */
10141 char $ac_func();
10142
10143 int main() {
10144
10145 /* The GNU C library defines this for functions which it implements
10146     to always fail with ENOSYS.  Some functions are actually named
10147     something starting with __ and the normal name is an alias.  */
10148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10149 choke me
10150 #else
10151 $ac_func();
10152 #endif
10153
10154 ; return 0; }
10155 EOF
10156 if { (eval echo configure:10157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10157   rm -rf conftest*
10158   eval "ac_cv_func_$ac_func=yes"
10159 else
10160   echo "configure: failed program was:" >&5
10161   cat conftest.$ac_ext >&5
10162   rm -rf conftest*
10163   eval "ac_cv_func_$ac_func=no"
10164 fi
10165 rm -f conftest*
10166 fi
10167
10168 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10169   echo "$ac_t""yes" 1>&6
10170     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10171   cat >> confdefs.h <<EOF
10172 #define $ac_tr_func 1
10173 EOF
10174  
10175 else
10176   echo "$ac_t""no" 1>&6
10177 fi
10178 done
10179     
10180     fi
10181   fi
10182
10183   
10184   
10185   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
10186 echo "configure:10187: checking for fmodf declaration" >&5
10187   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
10188     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
10189   echo $ac_n "(cached) $ac_c" 1>&6
10190 else
10191   
10192       
10193       ac_ext=C
10194 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10195 ac_cpp='$CXXCPP $CPPFLAGS'
10196 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10197 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10198 cross_compiling=$ac_cv_prog_cxx_cross
10199
10200       cat > conftest.$ac_ext <<EOF
10201 #line 10202 "configure"
10202 #include "confdefs.h"
10203 #include <math.h>
10204 int main() {
10205  fmodf(0, 0);
10206 ; return 0; }
10207 EOF
10208 if { (eval echo configure:10209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10209   rm -rf conftest*
10210   glibcpp_cv_func_fmodf_use=yes
10211 else
10212   echo "configure: failed program was:" >&5
10213   cat conftest.$ac_ext >&5
10214   rm -rf conftest*
10215   glibcpp_cv_func_fmodf_use=no
10216 fi
10217 rm -f conftest*
10218       ac_ext=c
10219 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10220 ac_cpp='$CPP $CPPFLAGS'
10221 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10222 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10223 cross_compiling=$ac_cv_prog_cc_cross
10224
10225     
10226 fi
10227
10228   fi
10229   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
10230
10231   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
10232     for ac_func in fmodf
10233 do
10234 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10235 echo "configure:10236: checking for $ac_func" >&5
10236 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10237   echo $ac_n "(cached) $ac_c" 1>&6
10238 else
10239   cat > conftest.$ac_ext <<EOF
10240 #line 10241 "configure"
10241 #include "confdefs.h"
10242 /* System header to define __stub macros and hopefully few prototypes,
10243     which can conflict with char $ac_func(); below.  */
10244 #include <assert.h>
10245 /* Override any gcc2 internal prototype to avoid an error.  */
10246 /* We use char because int might match the return type of a gcc2
10247     builtin and then its argument prototype would still apply.  */
10248 char $ac_func();
10249
10250 int main() {
10251
10252 /* The GNU C library defines this for functions which it implements
10253     to always fail with ENOSYS.  Some functions are actually named
10254     something starting with __ and the normal name is an alias.  */
10255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10256 choke me
10257 #else
10258 $ac_func();
10259 #endif
10260
10261 ; return 0; }
10262 EOF
10263 if { (eval echo configure:10264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10264   rm -rf conftest*
10265   eval "ac_cv_func_$ac_func=yes"
10266 else
10267   echo "configure: failed program was:" >&5
10268   cat conftest.$ac_ext >&5
10269   rm -rf conftest*
10270   eval "ac_cv_func_$ac_func=no"
10271 fi
10272 rm -f conftest*
10273 fi
10274
10275 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10276   echo "$ac_t""yes" 1>&6
10277     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10278   cat >> confdefs.h <<EOF
10279 #define $ac_tr_func 1
10280 EOF
10281  
10282 else
10283   echo "$ac_t""no" 1>&6
10284 fi
10285 done
10286     
10287   else
10288     
10289   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
10290 echo "configure:10291: checking for _fmodf declaration" >&5
10291   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
10292     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
10293   echo $ac_n "(cached) $ac_c" 1>&6
10294 else
10295   
10296       
10297       ac_ext=C
10298 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10299 ac_cpp='$CXXCPP $CPPFLAGS'
10300 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10301 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10302 cross_compiling=$ac_cv_prog_cxx_cross
10303
10304       cat > conftest.$ac_ext <<EOF
10305 #line 10306 "configure"
10306 #include "confdefs.h"
10307 #include <math.h>
10308 int main() {
10309  _fmodf(0, 0);
10310 ; return 0; }
10311 EOF
10312 if { (eval echo configure:10313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10313   rm -rf conftest*
10314   glibcpp_cv_func__fmodf_use=yes
10315 else
10316   echo "configure: failed program was:" >&5
10317   cat conftest.$ac_ext >&5
10318   rm -rf conftest*
10319   glibcpp_cv_func__fmodf_use=no
10320 fi
10321 rm -f conftest*
10322       ac_ext=c
10323 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10324 ac_cpp='$CPP $CPPFLAGS'
10325 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10326 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10327 cross_compiling=$ac_cv_prog_cc_cross
10328
10329     
10330 fi
10331
10332   fi
10333   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
10334
10335     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
10336       for ac_func in _fmodf
10337 do
10338 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10339 echo "configure:10340: checking for $ac_func" >&5
10340 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10341   echo $ac_n "(cached) $ac_c" 1>&6
10342 else
10343   cat > conftest.$ac_ext <<EOF
10344 #line 10345 "configure"
10345 #include "confdefs.h"
10346 /* System header to define __stub macros and hopefully few prototypes,
10347     which can conflict with char $ac_func(); below.  */
10348 #include <assert.h>
10349 /* Override any gcc2 internal prototype to avoid an error.  */
10350 /* We use char because int might match the return type of a gcc2
10351     builtin and then its argument prototype would still apply.  */
10352 char $ac_func();
10353
10354 int main() {
10355
10356 /* The GNU C library defines this for functions which it implements
10357     to always fail with ENOSYS.  Some functions are actually named
10358     something starting with __ and the normal name is an alias.  */
10359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10360 choke me
10361 #else
10362 $ac_func();
10363 #endif
10364
10365 ; return 0; }
10366 EOF
10367 if { (eval echo configure:10368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10368   rm -rf conftest*
10369   eval "ac_cv_func_$ac_func=yes"
10370 else
10371   echo "configure: failed program was:" >&5
10372   cat conftest.$ac_ext >&5
10373   rm -rf conftest*
10374   eval "ac_cv_func_$ac_func=no"
10375 fi
10376 rm -f conftest*
10377 fi
10378
10379 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10380   echo "$ac_t""yes" 1>&6
10381     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10382   cat >> confdefs.h <<EOF
10383 #define $ac_tr_func 1
10384 EOF
10385  
10386 else
10387   echo "$ac_t""no" 1>&6
10388 fi
10389 done
10390     
10391     fi
10392   fi
10393
10394   
10395   
10396   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
10397 echo "configure:10398: checking for frexpf declaration" >&5
10398   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
10399     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
10400   echo $ac_n "(cached) $ac_c" 1>&6
10401 else
10402   
10403       
10404       ac_ext=C
10405 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10406 ac_cpp='$CXXCPP $CPPFLAGS'
10407 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10408 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10409 cross_compiling=$ac_cv_prog_cxx_cross
10410
10411       cat > conftest.$ac_ext <<EOF
10412 #line 10413 "configure"
10413 #include "confdefs.h"
10414 #include <math.h>
10415 int main() {
10416  frexpf(0, 0);
10417 ; return 0; }
10418 EOF
10419 if { (eval echo configure:10420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10420   rm -rf conftest*
10421   glibcpp_cv_func_frexpf_use=yes
10422 else
10423   echo "configure: failed program was:" >&5
10424   cat conftest.$ac_ext >&5
10425   rm -rf conftest*
10426   glibcpp_cv_func_frexpf_use=no
10427 fi
10428 rm -f conftest*
10429       ac_ext=c
10430 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10431 ac_cpp='$CPP $CPPFLAGS'
10432 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10433 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10434 cross_compiling=$ac_cv_prog_cc_cross
10435
10436     
10437 fi
10438
10439   fi
10440   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
10441
10442   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
10443     for ac_func in frexpf
10444 do
10445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10446 echo "configure:10447: checking for $ac_func" >&5
10447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10448   echo $ac_n "(cached) $ac_c" 1>&6
10449 else
10450   cat > conftest.$ac_ext <<EOF
10451 #line 10452 "configure"
10452 #include "confdefs.h"
10453 /* System header to define __stub macros and hopefully few prototypes,
10454     which can conflict with char $ac_func(); below.  */
10455 #include <assert.h>
10456 /* Override any gcc2 internal prototype to avoid an error.  */
10457 /* We use char because int might match the return type of a gcc2
10458     builtin and then its argument prototype would still apply.  */
10459 char $ac_func();
10460
10461 int main() {
10462
10463 /* The GNU C library defines this for functions which it implements
10464     to always fail with ENOSYS.  Some functions are actually named
10465     something starting with __ and the normal name is an alias.  */
10466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10467 choke me
10468 #else
10469 $ac_func();
10470 #endif
10471
10472 ; return 0; }
10473 EOF
10474 if { (eval echo configure:10475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10475   rm -rf conftest*
10476   eval "ac_cv_func_$ac_func=yes"
10477 else
10478   echo "configure: failed program was:" >&5
10479   cat conftest.$ac_ext >&5
10480   rm -rf conftest*
10481   eval "ac_cv_func_$ac_func=no"
10482 fi
10483 rm -f conftest*
10484 fi
10485
10486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10487   echo "$ac_t""yes" 1>&6
10488     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10489   cat >> confdefs.h <<EOF
10490 #define $ac_tr_func 1
10491 EOF
10492  
10493 else
10494   echo "$ac_t""no" 1>&6
10495 fi
10496 done
10497     
10498   else
10499     
10500   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
10501 echo "configure:10502: checking for _frexpf declaration" >&5
10502   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
10503     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
10504   echo $ac_n "(cached) $ac_c" 1>&6
10505 else
10506   
10507       
10508       ac_ext=C
10509 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10510 ac_cpp='$CXXCPP $CPPFLAGS'
10511 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10512 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10513 cross_compiling=$ac_cv_prog_cxx_cross
10514
10515       cat > conftest.$ac_ext <<EOF
10516 #line 10517 "configure"
10517 #include "confdefs.h"
10518 #include <math.h>
10519 int main() {
10520  _frexpf(0, 0);
10521 ; return 0; }
10522 EOF
10523 if { (eval echo configure:10524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10524   rm -rf conftest*
10525   glibcpp_cv_func__frexpf_use=yes
10526 else
10527   echo "configure: failed program was:" >&5
10528   cat conftest.$ac_ext >&5
10529   rm -rf conftest*
10530   glibcpp_cv_func__frexpf_use=no
10531 fi
10532 rm -f conftest*
10533       ac_ext=c
10534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10535 ac_cpp='$CPP $CPPFLAGS'
10536 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10537 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10538 cross_compiling=$ac_cv_prog_cc_cross
10539
10540     
10541 fi
10542
10543   fi
10544   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
10545
10546     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
10547       for ac_func in _frexpf
10548 do
10549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10550 echo "configure:10551: checking for $ac_func" >&5
10551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10552   echo $ac_n "(cached) $ac_c" 1>&6
10553 else
10554   cat > conftest.$ac_ext <<EOF
10555 #line 10556 "configure"
10556 #include "confdefs.h"
10557 /* System header to define __stub macros and hopefully few prototypes,
10558     which can conflict with char $ac_func(); below.  */
10559 #include <assert.h>
10560 /* Override any gcc2 internal prototype to avoid an error.  */
10561 /* We use char because int might match the return type of a gcc2
10562     builtin and then its argument prototype would still apply.  */
10563 char $ac_func();
10564
10565 int main() {
10566
10567 /* The GNU C library defines this for functions which it implements
10568     to always fail with ENOSYS.  Some functions are actually named
10569     something starting with __ and the normal name is an alias.  */
10570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10571 choke me
10572 #else
10573 $ac_func();
10574 #endif
10575
10576 ; return 0; }
10577 EOF
10578 if { (eval echo configure:10579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10579   rm -rf conftest*
10580   eval "ac_cv_func_$ac_func=yes"
10581 else
10582   echo "configure: failed program was:" >&5
10583   cat conftest.$ac_ext >&5
10584   rm -rf conftest*
10585   eval "ac_cv_func_$ac_func=no"
10586 fi
10587 rm -f conftest*
10588 fi
10589
10590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10591   echo "$ac_t""yes" 1>&6
10592     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10593   cat >> confdefs.h <<EOF
10594 #define $ac_tr_func 1
10595 EOF
10596  
10597 else
10598   echo "$ac_t""no" 1>&6
10599 fi
10600 done
10601     
10602     fi
10603   fi
10604
10605   
10606   
10607   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
10608 echo "configure:10609: checking for hypotf declaration" >&5
10609   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
10610     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
10611   echo $ac_n "(cached) $ac_c" 1>&6
10612 else
10613   
10614       
10615       ac_ext=C
10616 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10617 ac_cpp='$CXXCPP $CPPFLAGS'
10618 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10619 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10620 cross_compiling=$ac_cv_prog_cxx_cross
10621
10622       cat > conftest.$ac_ext <<EOF
10623 #line 10624 "configure"
10624 #include "confdefs.h"
10625 #include <math.h>
10626 int main() {
10627  hypotf(0, 0);
10628 ; return 0; }
10629 EOF
10630 if { (eval echo configure:10631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10631   rm -rf conftest*
10632   glibcpp_cv_func_hypotf_use=yes
10633 else
10634   echo "configure: failed program was:" >&5
10635   cat conftest.$ac_ext >&5
10636   rm -rf conftest*
10637   glibcpp_cv_func_hypotf_use=no
10638 fi
10639 rm -f conftest*
10640       ac_ext=c
10641 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10642 ac_cpp='$CPP $CPPFLAGS'
10643 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10644 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10645 cross_compiling=$ac_cv_prog_cc_cross
10646
10647     
10648 fi
10649
10650   fi
10651   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
10652
10653   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
10654     for ac_func in hypotf
10655 do
10656 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10657 echo "configure:10658: checking for $ac_func" >&5
10658 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10659   echo $ac_n "(cached) $ac_c" 1>&6
10660 else
10661   cat > conftest.$ac_ext <<EOF
10662 #line 10663 "configure"
10663 #include "confdefs.h"
10664 /* System header to define __stub macros and hopefully few prototypes,
10665     which can conflict with char $ac_func(); below.  */
10666 #include <assert.h>
10667 /* Override any gcc2 internal prototype to avoid an error.  */
10668 /* We use char because int might match the return type of a gcc2
10669     builtin and then its argument prototype would still apply.  */
10670 char $ac_func();
10671
10672 int main() {
10673
10674 /* The GNU C library defines this for functions which it implements
10675     to always fail with ENOSYS.  Some functions are actually named
10676     something starting with __ and the normal name is an alias.  */
10677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10678 choke me
10679 #else
10680 $ac_func();
10681 #endif
10682
10683 ; return 0; }
10684 EOF
10685 if { (eval echo configure:10686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10686   rm -rf conftest*
10687   eval "ac_cv_func_$ac_func=yes"
10688 else
10689   echo "configure: failed program was:" >&5
10690   cat conftest.$ac_ext >&5
10691   rm -rf conftest*
10692   eval "ac_cv_func_$ac_func=no"
10693 fi
10694 rm -f conftest*
10695 fi
10696
10697 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10698   echo "$ac_t""yes" 1>&6
10699     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10700   cat >> confdefs.h <<EOF
10701 #define $ac_tr_func 1
10702 EOF
10703  
10704 else
10705   echo "$ac_t""no" 1>&6
10706 fi
10707 done
10708     
10709   else
10710     
10711   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
10712 echo "configure:10713: checking for _hypotf declaration" >&5
10713   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
10714     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
10715   echo $ac_n "(cached) $ac_c" 1>&6
10716 else
10717   
10718       
10719       ac_ext=C
10720 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10721 ac_cpp='$CXXCPP $CPPFLAGS'
10722 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10723 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10724 cross_compiling=$ac_cv_prog_cxx_cross
10725
10726       cat > conftest.$ac_ext <<EOF
10727 #line 10728 "configure"
10728 #include "confdefs.h"
10729 #include <math.h>
10730 int main() {
10731  _hypotf(0, 0);
10732 ; return 0; }
10733 EOF
10734 if { (eval echo configure:10735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10735   rm -rf conftest*
10736   glibcpp_cv_func__hypotf_use=yes
10737 else
10738   echo "configure: failed program was:" >&5
10739   cat conftest.$ac_ext >&5
10740   rm -rf conftest*
10741   glibcpp_cv_func__hypotf_use=no
10742 fi
10743 rm -f conftest*
10744       ac_ext=c
10745 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10746 ac_cpp='$CPP $CPPFLAGS'
10747 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10748 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10749 cross_compiling=$ac_cv_prog_cc_cross
10750
10751     
10752 fi
10753
10754   fi
10755   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
10756
10757     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
10758       for ac_func in _hypotf
10759 do
10760 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10761 echo "configure:10762: checking for $ac_func" >&5
10762 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10763   echo $ac_n "(cached) $ac_c" 1>&6
10764 else
10765   cat > conftest.$ac_ext <<EOF
10766 #line 10767 "configure"
10767 #include "confdefs.h"
10768 /* System header to define __stub macros and hopefully few prototypes,
10769     which can conflict with char $ac_func(); below.  */
10770 #include <assert.h>
10771 /* Override any gcc2 internal prototype to avoid an error.  */
10772 /* We use char because int might match the return type of a gcc2
10773     builtin and then its argument prototype would still apply.  */
10774 char $ac_func();
10775
10776 int main() {
10777
10778 /* The GNU C library defines this for functions which it implements
10779     to always fail with ENOSYS.  Some functions are actually named
10780     something starting with __ and the normal name is an alias.  */
10781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10782 choke me
10783 #else
10784 $ac_func();
10785 #endif
10786
10787 ; return 0; }
10788 EOF
10789 if { (eval echo configure:10790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10790   rm -rf conftest*
10791   eval "ac_cv_func_$ac_func=yes"
10792 else
10793   echo "configure: failed program was:" >&5
10794   cat conftest.$ac_ext >&5
10795   rm -rf conftest*
10796   eval "ac_cv_func_$ac_func=no"
10797 fi
10798 rm -f conftest*
10799 fi
10800
10801 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10802   echo "$ac_t""yes" 1>&6
10803     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10804   cat >> confdefs.h <<EOF
10805 #define $ac_tr_func 1
10806 EOF
10807  
10808 else
10809   echo "$ac_t""no" 1>&6
10810 fi
10811 done
10812     
10813     fi
10814   fi
10815
10816   
10817   
10818   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
10819 echo "configure:10820: checking for ldexpf declaration" >&5
10820   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
10821     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
10822   echo $ac_n "(cached) $ac_c" 1>&6
10823 else
10824   
10825       
10826       ac_ext=C
10827 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10828 ac_cpp='$CXXCPP $CPPFLAGS'
10829 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10830 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10831 cross_compiling=$ac_cv_prog_cxx_cross
10832
10833       cat > conftest.$ac_ext <<EOF
10834 #line 10835 "configure"
10835 #include "confdefs.h"
10836 #include <math.h>
10837 int main() {
10838  ldexpf(0, 0);
10839 ; return 0; }
10840 EOF
10841 if { (eval echo configure:10842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10842   rm -rf conftest*
10843   glibcpp_cv_func_ldexpf_use=yes
10844 else
10845   echo "configure: failed program was:" >&5
10846   cat conftest.$ac_ext >&5
10847   rm -rf conftest*
10848   glibcpp_cv_func_ldexpf_use=no
10849 fi
10850 rm -f conftest*
10851       ac_ext=c
10852 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10853 ac_cpp='$CPP $CPPFLAGS'
10854 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10855 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10856 cross_compiling=$ac_cv_prog_cc_cross
10857
10858     
10859 fi
10860
10861   fi
10862   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
10863
10864   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
10865     for ac_func in ldexpf
10866 do
10867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10868 echo "configure:10869: checking for $ac_func" >&5
10869 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10870   echo $ac_n "(cached) $ac_c" 1>&6
10871 else
10872   cat > conftest.$ac_ext <<EOF
10873 #line 10874 "configure"
10874 #include "confdefs.h"
10875 /* System header to define __stub macros and hopefully few prototypes,
10876     which can conflict with char $ac_func(); below.  */
10877 #include <assert.h>
10878 /* Override any gcc2 internal prototype to avoid an error.  */
10879 /* We use char because int might match the return type of a gcc2
10880     builtin and then its argument prototype would still apply.  */
10881 char $ac_func();
10882
10883 int main() {
10884
10885 /* The GNU C library defines this for functions which it implements
10886     to always fail with ENOSYS.  Some functions are actually named
10887     something starting with __ and the normal name is an alias.  */
10888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10889 choke me
10890 #else
10891 $ac_func();
10892 #endif
10893
10894 ; return 0; }
10895 EOF
10896 if { (eval echo configure:10897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10897   rm -rf conftest*
10898   eval "ac_cv_func_$ac_func=yes"
10899 else
10900   echo "configure: failed program was:" >&5
10901   cat conftest.$ac_ext >&5
10902   rm -rf conftest*
10903   eval "ac_cv_func_$ac_func=no"
10904 fi
10905 rm -f conftest*
10906 fi
10907
10908 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10909   echo "$ac_t""yes" 1>&6
10910     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10911   cat >> confdefs.h <<EOF
10912 #define $ac_tr_func 1
10913 EOF
10914  
10915 else
10916   echo "$ac_t""no" 1>&6
10917 fi
10918 done
10919     
10920   else
10921     
10922   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
10923 echo "configure:10924: checking for _ldexpf declaration" >&5
10924   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
10925     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
10926   echo $ac_n "(cached) $ac_c" 1>&6
10927 else
10928   
10929       
10930       ac_ext=C
10931 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10932 ac_cpp='$CXXCPP $CPPFLAGS'
10933 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10934 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10935 cross_compiling=$ac_cv_prog_cxx_cross
10936
10937       cat > conftest.$ac_ext <<EOF
10938 #line 10939 "configure"
10939 #include "confdefs.h"
10940 #include <math.h>
10941 int main() {
10942  _ldexpf(0, 0);
10943 ; return 0; }
10944 EOF
10945 if { (eval echo configure:10946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10946   rm -rf conftest*
10947   glibcpp_cv_func__ldexpf_use=yes
10948 else
10949   echo "configure: failed program was:" >&5
10950   cat conftest.$ac_ext >&5
10951   rm -rf conftest*
10952   glibcpp_cv_func__ldexpf_use=no
10953 fi
10954 rm -f conftest*
10955       ac_ext=c
10956 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10957 ac_cpp='$CPP $CPPFLAGS'
10958 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10959 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10960 cross_compiling=$ac_cv_prog_cc_cross
10961
10962     
10963 fi
10964
10965   fi
10966   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
10967
10968     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
10969       for ac_func in _ldexpf
10970 do
10971 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10972 echo "configure:10973: checking for $ac_func" >&5
10973 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10974   echo $ac_n "(cached) $ac_c" 1>&6
10975 else
10976   cat > conftest.$ac_ext <<EOF
10977 #line 10978 "configure"
10978 #include "confdefs.h"
10979 /* System header to define __stub macros and hopefully few prototypes,
10980     which can conflict with char $ac_func(); below.  */
10981 #include <assert.h>
10982 /* Override any gcc2 internal prototype to avoid an error.  */
10983 /* We use char because int might match the return type of a gcc2
10984     builtin and then its argument prototype would still apply.  */
10985 char $ac_func();
10986
10987 int main() {
10988
10989 /* The GNU C library defines this for functions which it implements
10990     to always fail with ENOSYS.  Some functions are actually named
10991     something starting with __ and the normal name is an alias.  */
10992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10993 choke me
10994 #else
10995 $ac_func();
10996 #endif
10997
10998 ; return 0; }
10999 EOF
11000 if { (eval echo configure:11001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11001   rm -rf conftest*
11002   eval "ac_cv_func_$ac_func=yes"
11003 else
11004   echo "configure: failed program was:" >&5
11005   cat conftest.$ac_ext >&5
11006   rm -rf conftest*
11007   eval "ac_cv_func_$ac_func=no"
11008 fi
11009 rm -f conftest*
11010 fi
11011
11012 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11013   echo "$ac_t""yes" 1>&6
11014     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11015   cat >> confdefs.h <<EOF
11016 #define $ac_tr_func 1
11017 EOF
11018  
11019 else
11020   echo "$ac_t""no" 1>&6
11021 fi
11022 done
11023     
11024     fi
11025   fi
11026
11027   
11028   
11029   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
11030 echo "configure:11031: checking for logf declaration" >&5
11031   if test x${glibcpp_cv_func_logf_use+set} != xset; then
11032     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
11033   echo $ac_n "(cached) $ac_c" 1>&6
11034 else
11035   
11036       
11037       ac_ext=C
11038 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11039 ac_cpp='$CXXCPP $CPPFLAGS'
11040 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11041 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11042 cross_compiling=$ac_cv_prog_cxx_cross
11043
11044       cat > conftest.$ac_ext <<EOF
11045 #line 11046 "configure"
11046 #include "confdefs.h"
11047 #include <math.h>
11048                       #ifdef HAVE_IEEEFP_H
11049                       #include <ieeefp.h>
11050                       #endif
11051                      
11052 int main() {
11053  logf(0);
11054 ; return 0; }
11055 EOF
11056 if { (eval echo configure:11057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11057   rm -rf conftest*
11058   glibcpp_cv_func_logf_use=yes
11059 else
11060   echo "configure: failed program was:" >&5
11061   cat conftest.$ac_ext >&5
11062   rm -rf conftest*
11063   glibcpp_cv_func_logf_use=no
11064 fi
11065 rm -f conftest*
11066       ac_ext=c
11067 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11068 ac_cpp='$CPP $CPPFLAGS'
11069 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11070 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11071 cross_compiling=$ac_cv_prog_cc_cross
11072
11073     
11074 fi
11075
11076   fi
11077   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
11078
11079   if test x$glibcpp_cv_func_logf_use = x"yes"; then
11080     for ac_func in logf
11081 do
11082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11083 echo "configure:11084: checking for $ac_func" >&5
11084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11085   echo $ac_n "(cached) $ac_c" 1>&6
11086 else
11087   cat > conftest.$ac_ext <<EOF
11088 #line 11089 "configure"
11089 #include "confdefs.h"
11090 /* System header to define __stub macros and hopefully few prototypes,
11091     which can conflict with char $ac_func(); below.  */
11092 #include <assert.h>
11093 /* Override any gcc2 internal prototype to avoid an error.  */
11094 /* We use char because int might match the return type of a gcc2
11095     builtin and then its argument prototype would still apply.  */
11096 char $ac_func();
11097
11098 int main() {
11099
11100 /* The GNU C library defines this for functions which it implements
11101     to always fail with ENOSYS.  Some functions are actually named
11102     something starting with __ and the normal name is an alias.  */
11103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11104 choke me
11105 #else
11106 $ac_func();
11107 #endif
11108
11109 ; return 0; }
11110 EOF
11111 if { (eval echo configure:11112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11112   rm -rf conftest*
11113   eval "ac_cv_func_$ac_func=yes"
11114 else
11115   echo "configure: failed program was:" >&5
11116   cat conftest.$ac_ext >&5
11117   rm -rf conftest*
11118   eval "ac_cv_func_$ac_func=no"
11119 fi
11120 rm -f conftest*
11121 fi
11122
11123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11124   echo "$ac_t""yes" 1>&6
11125     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11126   cat >> confdefs.h <<EOF
11127 #define $ac_tr_func 1
11128 EOF
11129  
11130 else
11131   echo "$ac_t""no" 1>&6
11132 fi
11133 done
11134     
11135   else
11136     
11137   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
11138 echo "configure:11139: checking for _logf declaration" >&5
11139   if test x${glibcpp_cv_func__logf_use+set} != xset; then
11140     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
11141   echo $ac_n "(cached) $ac_c" 1>&6
11142 else
11143   
11144       
11145       ac_ext=C
11146 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11147 ac_cpp='$CXXCPP $CPPFLAGS'
11148 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11149 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11150 cross_compiling=$ac_cv_prog_cxx_cross
11151
11152       cat > conftest.$ac_ext <<EOF
11153 #line 11154 "configure"
11154 #include "confdefs.h"
11155 #include <math.h>
11156                       #ifdef HAVE_IEEEFP_H
11157                       #include <ieeefp.h>
11158                       #endif
11159                      
11160 int main() {
11161  _logf(0);
11162 ; return 0; }
11163 EOF
11164 if { (eval echo configure:11165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11165   rm -rf conftest*
11166   glibcpp_cv_func__logf_use=yes
11167 else
11168   echo "configure: failed program was:" >&5
11169   cat conftest.$ac_ext >&5
11170   rm -rf conftest*
11171   glibcpp_cv_func__logf_use=no
11172 fi
11173 rm -f conftest*
11174       ac_ext=c
11175 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11176 ac_cpp='$CPP $CPPFLAGS'
11177 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11178 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11179 cross_compiling=$ac_cv_prog_cc_cross
11180
11181     
11182 fi
11183
11184   fi
11185   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
11186
11187     if test x$glibcpp_cv_func__logf_use = x"yes"; then
11188       for ac_func in _logf
11189 do
11190 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11191 echo "configure:11192: checking for $ac_func" >&5
11192 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11193   echo $ac_n "(cached) $ac_c" 1>&6
11194 else
11195   cat > conftest.$ac_ext <<EOF
11196 #line 11197 "configure"
11197 #include "confdefs.h"
11198 /* System header to define __stub macros and hopefully few prototypes,
11199     which can conflict with char $ac_func(); below.  */
11200 #include <assert.h>
11201 /* Override any gcc2 internal prototype to avoid an error.  */
11202 /* We use char because int might match the return type of a gcc2
11203     builtin and then its argument prototype would still apply.  */
11204 char $ac_func();
11205
11206 int main() {
11207
11208 /* The GNU C library defines this for functions which it implements
11209     to always fail with ENOSYS.  Some functions are actually named
11210     something starting with __ and the normal name is an alias.  */
11211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11212 choke me
11213 #else
11214 $ac_func();
11215 #endif
11216
11217 ; return 0; }
11218 EOF
11219 if { (eval echo configure:11220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11220   rm -rf conftest*
11221   eval "ac_cv_func_$ac_func=yes"
11222 else
11223   echo "configure: failed program was:" >&5
11224   cat conftest.$ac_ext >&5
11225   rm -rf conftest*
11226   eval "ac_cv_func_$ac_func=no"
11227 fi
11228 rm -f conftest*
11229 fi
11230
11231 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11232   echo "$ac_t""yes" 1>&6
11233     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11234   cat >> confdefs.h <<EOF
11235 #define $ac_tr_func 1
11236 EOF
11237  
11238 else
11239   echo "$ac_t""no" 1>&6
11240 fi
11241 done
11242     
11243     fi
11244   fi
11245
11246   
11247   
11248   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
11249 echo "configure:11250: checking for log10f declaration" >&5
11250   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
11251     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
11252   echo $ac_n "(cached) $ac_c" 1>&6
11253 else
11254   
11255       
11256       ac_ext=C
11257 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11258 ac_cpp='$CXXCPP $CPPFLAGS'
11259 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11260 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11261 cross_compiling=$ac_cv_prog_cxx_cross
11262
11263       cat > conftest.$ac_ext <<EOF
11264 #line 11265 "configure"
11265 #include "confdefs.h"
11266 #include <math.h>
11267                       #ifdef HAVE_IEEEFP_H
11268                       #include <ieeefp.h>
11269                       #endif
11270                      
11271 int main() {
11272  log10f(0);
11273 ; return 0; }
11274 EOF
11275 if { (eval echo configure:11276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11276   rm -rf conftest*
11277   glibcpp_cv_func_log10f_use=yes
11278 else
11279   echo "configure: failed program was:" >&5
11280   cat conftest.$ac_ext >&5
11281   rm -rf conftest*
11282   glibcpp_cv_func_log10f_use=no
11283 fi
11284 rm -f conftest*
11285       ac_ext=c
11286 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11287 ac_cpp='$CPP $CPPFLAGS'
11288 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11289 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11290 cross_compiling=$ac_cv_prog_cc_cross
11291
11292     
11293 fi
11294
11295   fi
11296   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
11297
11298   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
11299     for ac_func in log10f
11300 do
11301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11302 echo "configure:11303: checking for $ac_func" >&5
11303 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11304   echo $ac_n "(cached) $ac_c" 1>&6
11305 else
11306   cat > conftest.$ac_ext <<EOF
11307 #line 11308 "configure"
11308 #include "confdefs.h"
11309 /* System header to define __stub macros and hopefully few prototypes,
11310     which can conflict with char $ac_func(); below.  */
11311 #include <assert.h>
11312 /* Override any gcc2 internal prototype to avoid an error.  */
11313 /* We use char because int might match the return type of a gcc2
11314     builtin and then its argument prototype would still apply.  */
11315 char $ac_func();
11316
11317 int main() {
11318
11319 /* The GNU C library defines this for functions which it implements
11320     to always fail with ENOSYS.  Some functions are actually named
11321     something starting with __ and the normal name is an alias.  */
11322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11323 choke me
11324 #else
11325 $ac_func();
11326 #endif
11327
11328 ; return 0; }
11329 EOF
11330 if { (eval echo configure:11331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11331   rm -rf conftest*
11332   eval "ac_cv_func_$ac_func=yes"
11333 else
11334   echo "configure: failed program was:" >&5
11335   cat conftest.$ac_ext >&5
11336   rm -rf conftest*
11337   eval "ac_cv_func_$ac_func=no"
11338 fi
11339 rm -f conftest*
11340 fi
11341
11342 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11343   echo "$ac_t""yes" 1>&6
11344     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11345   cat >> confdefs.h <<EOF
11346 #define $ac_tr_func 1
11347 EOF
11348  
11349 else
11350   echo "$ac_t""no" 1>&6
11351 fi
11352 done
11353     
11354   else
11355     
11356   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
11357 echo "configure:11358: checking for _log10f declaration" >&5
11358   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
11359     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
11360   echo $ac_n "(cached) $ac_c" 1>&6
11361 else
11362   
11363       
11364       ac_ext=C
11365 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11366 ac_cpp='$CXXCPP $CPPFLAGS'
11367 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11368 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11369 cross_compiling=$ac_cv_prog_cxx_cross
11370
11371       cat > conftest.$ac_ext <<EOF
11372 #line 11373 "configure"
11373 #include "confdefs.h"
11374 #include <math.h>
11375                       #ifdef HAVE_IEEEFP_H
11376                       #include <ieeefp.h>
11377                       #endif
11378                      
11379 int main() {
11380  _log10f(0);
11381 ; return 0; }
11382 EOF
11383 if { (eval echo configure:11384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11384   rm -rf conftest*
11385   glibcpp_cv_func__log10f_use=yes
11386 else
11387   echo "configure: failed program was:" >&5
11388   cat conftest.$ac_ext >&5
11389   rm -rf conftest*
11390   glibcpp_cv_func__log10f_use=no
11391 fi
11392 rm -f conftest*
11393       ac_ext=c
11394 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11395 ac_cpp='$CPP $CPPFLAGS'
11396 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11397 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11398 cross_compiling=$ac_cv_prog_cc_cross
11399
11400     
11401 fi
11402
11403   fi
11404   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
11405
11406     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
11407       for ac_func in _log10f
11408 do
11409 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11410 echo "configure:11411: checking for $ac_func" >&5
11411 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11412   echo $ac_n "(cached) $ac_c" 1>&6
11413 else
11414   cat > conftest.$ac_ext <<EOF
11415 #line 11416 "configure"
11416 #include "confdefs.h"
11417 /* System header to define __stub macros and hopefully few prototypes,
11418     which can conflict with char $ac_func(); below.  */
11419 #include <assert.h>
11420 /* Override any gcc2 internal prototype to avoid an error.  */
11421 /* We use char because int might match the return type of a gcc2
11422     builtin and then its argument prototype would still apply.  */
11423 char $ac_func();
11424
11425 int main() {
11426
11427 /* The GNU C library defines this for functions which it implements
11428     to always fail with ENOSYS.  Some functions are actually named
11429     something starting with __ and the normal name is an alias.  */
11430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11431 choke me
11432 #else
11433 $ac_func();
11434 #endif
11435
11436 ; return 0; }
11437 EOF
11438 if { (eval echo configure:11439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11439   rm -rf conftest*
11440   eval "ac_cv_func_$ac_func=yes"
11441 else
11442   echo "configure: failed program was:" >&5
11443   cat conftest.$ac_ext >&5
11444   rm -rf conftest*
11445   eval "ac_cv_func_$ac_func=no"
11446 fi
11447 rm -f conftest*
11448 fi
11449
11450 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11451   echo "$ac_t""yes" 1>&6
11452     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11453   cat >> confdefs.h <<EOF
11454 #define $ac_tr_func 1
11455 EOF
11456  
11457 else
11458   echo "$ac_t""no" 1>&6
11459 fi
11460 done
11461     
11462     fi
11463   fi
11464
11465   
11466   
11467   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
11468 echo "configure:11469: checking for modff declaration" >&5
11469   if test x${glibcpp_cv_func_modff_use+set} != xset; then
11470     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
11471   echo $ac_n "(cached) $ac_c" 1>&6
11472 else
11473   
11474       
11475       ac_ext=C
11476 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11477 ac_cpp='$CXXCPP $CPPFLAGS'
11478 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11479 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11480 cross_compiling=$ac_cv_prog_cxx_cross
11481
11482       cat > conftest.$ac_ext <<EOF
11483 #line 11484 "configure"
11484 #include "confdefs.h"
11485 #include <math.h>
11486 int main() {
11487  modff(0, 0);
11488 ; return 0; }
11489 EOF
11490 if { (eval echo configure:11491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11491   rm -rf conftest*
11492   glibcpp_cv_func_modff_use=yes
11493 else
11494   echo "configure: failed program was:" >&5
11495   cat conftest.$ac_ext >&5
11496   rm -rf conftest*
11497   glibcpp_cv_func_modff_use=no
11498 fi
11499 rm -f conftest*
11500       ac_ext=c
11501 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11502 ac_cpp='$CPP $CPPFLAGS'
11503 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11504 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11505 cross_compiling=$ac_cv_prog_cc_cross
11506
11507     
11508 fi
11509
11510   fi
11511   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
11512
11513   if test x$glibcpp_cv_func_modff_use = x"yes"; then
11514     for ac_func in modff
11515 do
11516 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11517 echo "configure:11518: checking for $ac_func" >&5
11518 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11519   echo $ac_n "(cached) $ac_c" 1>&6
11520 else
11521   cat > conftest.$ac_ext <<EOF
11522 #line 11523 "configure"
11523 #include "confdefs.h"
11524 /* System header to define __stub macros and hopefully few prototypes,
11525     which can conflict with char $ac_func(); below.  */
11526 #include <assert.h>
11527 /* Override any gcc2 internal prototype to avoid an error.  */
11528 /* We use char because int might match the return type of a gcc2
11529     builtin and then its argument prototype would still apply.  */
11530 char $ac_func();
11531
11532 int main() {
11533
11534 /* The GNU C library defines this for functions which it implements
11535     to always fail with ENOSYS.  Some functions are actually named
11536     something starting with __ and the normal name is an alias.  */
11537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11538 choke me
11539 #else
11540 $ac_func();
11541 #endif
11542
11543 ; return 0; }
11544 EOF
11545 if { (eval echo configure:11546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11546   rm -rf conftest*
11547   eval "ac_cv_func_$ac_func=yes"
11548 else
11549   echo "configure: failed program was:" >&5
11550   cat conftest.$ac_ext >&5
11551   rm -rf conftest*
11552   eval "ac_cv_func_$ac_func=no"
11553 fi
11554 rm -f conftest*
11555 fi
11556
11557 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11558   echo "$ac_t""yes" 1>&6
11559     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11560   cat >> confdefs.h <<EOF
11561 #define $ac_tr_func 1
11562 EOF
11563  
11564 else
11565   echo "$ac_t""no" 1>&6
11566 fi
11567 done
11568     
11569   else
11570     
11571   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
11572 echo "configure:11573: checking for _modff declaration" >&5
11573   if test x${glibcpp_cv_func__modff_use+set} != xset; then
11574     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
11575   echo $ac_n "(cached) $ac_c" 1>&6
11576 else
11577   
11578       
11579       ac_ext=C
11580 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11581 ac_cpp='$CXXCPP $CPPFLAGS'
11582 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11583 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11584 cross_compiling=$ac_cv_prog_cxx_cross
11585
11586       cat > conftest.$ac_ext <<EOF
11587 #line 11588 "configure"
11588 #include "confdefs.h"
11589 #include <math.h>
11590 int main() {
11591  _modff(0, 0);
11592 ; return 0; }
11593 EOF
11594 if { (eval echo configure:11595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11595   rm -rf conftest*
11596   glibcpp_cv_func__modff_use=yes
11597 else
11598   echo "configure: failed program was:" >&5
11599   cat conftest.$ac_ext >&5
11600   rm -rf conftest*
11601   glibcpp_cv_func__modff_use=no
11602 fi
11603 rm -f conftest*
11604       ac_ext=c
11605 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11606 ac_cpp='$CPP $CPPFLAGS'
11607 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11608 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11609 cross_compiling=$ac_cv_prog_cc_cross
11610
11611     
11612 fi
11613
11614   fi
11615   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
11616
11617     if test x$glibcpp_cv_func__modff_use = x"yes"; then
11618       for ac_func in _modff
11619 do
11620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11621 echo "configure:11622: checking for $ac_func" >&5
11622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11623   echo $ac_n "(cached) $ac_c" 1>&6
11624 else
11625   cat > conftest.$ac_ext <<EOF
11626 #line 11627 "configure"
11627 #include "confdefs.h"
11628 /* System header to define __stub macros and hopefully few prototypes,
11629     which can conflict with char $ac_func(); below.  */
11630 #include <assert.h>
11631 /* Override any gcc2 internal prototype to avoid an error.  */
11632 /* We use char because int might match the return type of a gcc2
11633     builtin and then its argument prototype would still apply.  */
11634 char $ac_func();
11635
11636 int main() {
11637
11638 /* The GNU C library defines this for functions which it implements
11639     to always fail with ENOSYS.  Some functions are actually named
11640     something starting with __ and the normal name is an alias.  */
11641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11642 choke me
11643 #else
11644 $ac_func();
11645 #endif
11646
11647 ; return 0; }
11648 EOF
11649 if { (eval echo configure:11650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11650   rm -rf conftest*
11651   eval "ac_cv_func_$ac_func=yes"
11652 else
11653   echo "configure: failed program was:" >&5
11654   cat conftest.$ac_ext >&5
11655   rm -rf conftest*
11656   eval "ac_cv_func_$ac_func=no"
11657 fi
11658 rm -f conftest*
11659 fi
11660
11661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11662   echo "$ac_t""yes" 1>&6
11663     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11664   cat >> confdefs.h <<EOF
11665 #define $ac_tr_func 1
11666 EOF
11667  
11668 else
11669   echo "$ac_t""no" 1>&6
11670 fi
11671 done
11672     
11673     fi
11674   fi
11675
11676   
11677   
11678   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
11679 echo "configure:11680: checking for powf declaration" >&5
11680   if test x${glibcpp_cv_func_powf_use+set} != xset; then
11681     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
11682   echo $ac_n "(cached) $ac_c" 1>&6
11683 else
11684   
11685       
11686       ac_ext=C
11687 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11688 ac_cpp='$CXXCPP $CPPFLAGS'
11689 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11690 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11691 cross_compiling=$ac_cv_prog_cxx_cross
11692
11693       cat > conftest.$ac_ext <<EOF
11694 #line 11695 "configure"
11695 #include "confdefs.h"
11696 #include <math.h>
11697 int main() {
11698  powf(0, 0);
11699 ; return 0; }
11700 EOF
11701 if { (eval echo configure:11702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11702   rm -rf conftest*
11703   glibcpp_cv_func_powf_use=yes
11704 else
11705   echo "configure: failed program was:" >&5
11706   cat conftest.$ac_ext >&5
11707   rm -rf conftest*
11708   glibcpp_cv_func_powf_use=no
11709 fi
11710 rm -f conftest*
11711       ac_ext=c
11712 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11713 ac_cpp='$CPP $CPPFLAGS'
11714 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11715 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11716 cross_compiling=$ac_cv_prog_cc_cross
11717
11718     
11719 fi
11720
11721   fi
11722   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
11723
11724   if test x$glibcpp_cv_func_powf_use = x"yes"; then
11725     for ac_func in powf
11726 do
11727 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11728 echo "configure:11729: checking for $ac_func" >&5
11729 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11730   echo $ac_n "(cached) $ac_c" 1>&6
11731 else
11732   cat > conftest.$ac_ext <<EOF
11733 #line 11734 "configure"
11734 #include "confdefs.h"
11735 /* System header to define __stub macros and hopefully few prototypes,
11736     which can conflict with char $ac_func(); below.  */
11737 #include <assert.h>
11738 /* Override any gcc2 internal prototype to avoid an error.  */
11739 /* We use char because int might match the return type of a gcc2
11740     builtin and then its argument prototype would still apply.  */
11741 char $ac_func();
11742
11743 int main() {
11744
11745 /* The GNU C library defines this for functions which it implements
11746     to always fail with ENOSYS.  Some functions are actually named
11747     something starting with __ and the normal name is an alias.  */
11748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11749 choke me
11750 #else
11751 $ac_func();
11752 #endif
11753
11754 ; return 0; }
11755 EOF
11756 if { (eval echo configure:11757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11757   rm -rf conftest*
11758   eval "ac_cv_func_$ac_func=yes"
11759 else
11760   echo "configure: failed program was:" >&5
11761   cat conftest.$ac_ext >&5
11762   rm -rf conftest*
11763   eval "ac_cv_func_$ac_func=no"
11764 fi
11765 rm -f conftest*
11766 fi
11767
11768 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11769   echo "$ac_t""yes" 1>&6
11770     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11771   cat >> confdefs.h <<EOF
11772 #define $ac_tr_func 1
11773 EOF
11774  
11775 else
11776   echo "$ac_t""no" 1>&6
11777 fi
11778 done
11779     
11780   else
11781     
11782   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
11783 echo "configure:11784: checking for _powf declaration" >&5
11784   if test x${glibcpp_cv_func__powf_use+set} != xset; then
11785     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
11786   echo $ac_n "(cached) $ac_c" 1>&6
11787 else
11788   
11789       
11790       ac_ext=C
11791 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11792 ac_cpp='$CXXCPP $CPPFLAGS'
11793 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11794 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11795 cross_compiling=$ac_cv_prog_cxx_cross
11796
11797       cat > conftest.$ac_ext <<EOF
11798 #line 11799 "configure"
11799 #include "confdefs.h"
11800 #include <math.h>
11801 int main() {
11802  _powf(0, 0);
11803 ; return 0; }
11804 EOF
11805 if { (eval echo configure:11806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11806   rm -rf conftest*
11807   glibcpp_cv_func__powf_use=yes
11808 else
11809   echo "configure: failed program was:" >&5
11810   cat conftest.$ac_ext >&5
11811   rm -rf conftest*
11812   glibcpp_cv_func__powf_use=no
11813 fi
11814 rm -f conftest*
11815       ac_ext=c
11816 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11817 ac_cpp='$CPP $CPPFLAGS'
11818 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11819 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11820 cross_compiling=$ac_cv_prog_cc_cross
11821
11822     
11823 fi
11824
11825   fi
11826   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
11827
11828     if test x$glibcpp_cv_func__powf_use = x"yes"; then
11829       for ac_func in _powf
11830 do
11831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11832 echo "configure:11833: checking for $ac_func" >&5
11833 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11834   echo $ac_n "(cached) $ac_c" 1>&6
11835 else
11836   cat > conftest.$ac_ext <<EOF
11837 #line 11838 "configure"
11838 #include "confdefs.h"
11839 /* System header to define __stub macros and hopefully few prototypes,
11840     which can conflict with char $ac_func(); below.  */
11841 #include <assert.h>
11842 /* Override any gcc2 internal prototype to avoid an error.  */
11843 /* We use char because int might match the return type of a gcc2
11844     builtin and then its argument prototype would still apply.  */
11845 char $ac_func();
11846
11847 int main() {
11848
11849 /* The GNU C library defines this for functions which it implements
11850     to always fail with ENOSYS.  Some functions are actually named
11851     something starting with __ and the normal name is an alias.  */
11852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11853 choke me
11854 #else
11855 $ac_func();
11856 #endif
11857
11858 ; return 0; }
11859 EOF
11860 if { (eval echo configure:11861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11861   rm -rf conftest*
11862   eval "ac_cv_func_$ac_func=yes"
11863 else
11864   echo "configure: failed program was:" >&5
11865   cat conftest.$ac_ext >&5
11866   rm -rf conftest*
11867   eval "ac_cv_func_$ac_func=no"
11868 fi
11869 rm -f conftest*
11870 fi
11871
11872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11873   echo "$ac_t""yes" 1>&6
11874     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11875   cat >> confdefs.h <<EOF
11876 #define $ac_tr_func 1
11877 EOF
11878  
11879 else
11880   echo "$ac_t""no" 1>&6
11881 fi
11882 done
11883     
11884     fi
11885   fi
11886
11887   
11888   
11889   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
11890 echo "configure:11891: checking for sqrtf declaration" >&5
11891   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
11892     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
11893   echo $ac_n "(cached) $ac_c" 1>&6
11894 else
11895   
11896       
11897       ac_ext=C
11898 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11899 ac_cpp='$CXXCPP $CPPFLAGS'
11900 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11901 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11902 cross_compiling=$ac_cv_prog_cxx_cross
11903
11904       cat > conftest.$ac_ext <<EOF
11905 #line 11906 "configure"
11906 #include "confdefs.h"
11907 #include <math.h>
11908                       #ifdef HAVE_IEEEFP_H
11909                       #include <ieeefp.h>
11910                       #endif
11911                      
11912 int main() {
11913  sqrtf(0);
11914 ; return 0; }
11915 EOF
11916 if { (eval echo configure:11917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11917   rm -rf conftest*
11918   glibcpp_cv_func_sqrtf_use=yes
11919 else
11920   echo "configure: failed program was:" >&5
11921   cat conftest.$ac_ext >&5
11922   rm -rf conftest*
11923   glibcpp_cv_func_sqrtf_use=no
11924 fi
11925 rm -f conftest*
11926       ac_ext=c
11927 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11928 ac_cpp='$CPP $CPPFLAGS'
11929 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11930 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11931 cross_compiling=$ac_cv_prog_cc_cross
11932
11933     
11934 fi
11935
11936   fi
11937   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
11938
11939   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
11940     for ac_func in sqrtf
11941 do
11942 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11943 echo "configure:11944: checking for $ac_func" >&5
11944 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11945   echo $ac_n "(cached) $ac_c" 1>&6
11946 else
11947   cat > conftest.$ac_ext <<EOF
11948 #line 11949 "configure"
11949 #include "confdefs.h"
11950 /* System header to define __stub macros and hopefully few prototypes,
11951     which can conflict with char $ac_func(); below.  */
11952 #include <assert.h>
11953 /* Override any gcc2 internal prototype to avoid an error.  */
11954 /* We use char because int might match the return type of a gcc2
11955     builtin and then its argument prototype would still apply.  */
11956 char $ac_func();
11957
11958 int main() {
11959
11960 /* The GNU C library defines this for functions which it implements
11961     to always fail with ENOSYS.  Some functions are actually named
11962     something starting with __ and the normal name is an alias.  */
11963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11964 choke me
11965 #else
11966 $ac_func();
11967 #endif
11968
11969 ; return 0; }
11970 EOF
11971 if { (eval echo configure:11972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11972   rm -rf conftest*
11973   eval "ac_cv_func_$ac_func=yes"
11974 else
11975   echo "configure: failed program was:" >&5
11976   cat conftest.$ac_ext >&5
11977   rm -rf conftest*
11978   eval "ac_cv_func_$ac_func=no"
11979 fi
11980 rm -f conftest*
11981 fi
11982
11983 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11984   echo "$ac_t""yes" 1>&6
11985     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11986   cat >> confdefs.h <<EOF
11987 #define $ac_tr_func 1
11988 EOF
11989  
11990 else
11991   echo "$ac_t""no" 1>&6
11992 fi
11993 done
11994     
11995   else
11996     
11997   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
11998 echo "configure:11999: checking for _sqrtf declaration" >&5
11999   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
12000     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
12001   echo $ac_n "(cached) $ac_c" 1>&6
12002 else
12003   
12004       
12005       ac_ext=C
12006 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12007 ac_cpp='$CXXCPP $CPPFLAGS'
12008 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12009 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12010 cross_compiling=$ac_cv_prog_cxx_cross
12011
12012       cat > conftest.$ac_ext <<EOF
12013 #line 12014 "configure"
12014 #include "confdefs.h"
12015 #include <math.h>
12016                       #ifdef HAVE_IEEEFP_H
12017                       #include <ieeefp.h>
12018                       #endif
12019                      
12020 int main() {
12021  _sqrtf(0);
12022 ; return 0; }
12023 EOF
12024 if { (eval echo configure:12025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12025   rm -rf conftest*
12026   glibcpp_cv_func__sqrtf_use=yes
12027 else
12028   echo "configure: failed program was:" >&5
12029   cat conftest.$ac_ext >&5
12030   rm -rf conftest*
12031   glibcpp_cv_func__sqrtf_use=no
12032 fi
12033 rm -f conftest*
12034       ac_ext=c
12035 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12036 ac_cpp='$CPP $CPPFLAGS'
12037 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12038 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12039 cross_compiling=$ac_cv_prog_cc_cross
12040
12041     
12042 fi
12043
12044   fi
12045   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
12046
12047     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
12048       for ac_func in _sqrtf
12049 do
12050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12051 echo "configure:12052: checking for $ac_func" >&5
12052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12053   echo $ac_n "(cached) $ac_c" 1>&6
12054 else
12055   cat > conftest.$ac_ext <<EOF
12056 #line 12057 "configure"
12057 #include "confdefs.h"
12058 /* System header to define __stub macros and hopefully few prototypes,
12059     which can conflict with char $ac_func(); below.  */
12060 #include <assert.h>
12061 /* Override any gcc2 internal prototype to avoid an error.  */
12062 /* We use char because int might match the return type of a gcc2
12063     builtin and then its argument prototype would still apply.  */
12064 char $ac_func();
12065
12066 int main() {
12067
12068 /* The GNU C library defines this for functions which it implements
12069     to always fail with ENOSYS.  Some functions are actually named
12070     something starting with __ and the normal name is an alias.  */
12071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12072 choke me
12073 #else
12074 $ac_func();
12075 #endif
12076
12077 ; return 0; }
12078 EOF
12079 if { (eval echo configure:12080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12080   rm -rf conftest*
12081   eval "ac_cv_func_$ac_func=yes"
12082 else
12083   echo "configure: failed program was:" >&5
12084   cat conftest.$ac_ext >&5
12085   rm -rf conftest*
12086   eval "ac_cv_func_$ac_func=no"
12087 fi
12088 rm -f conftest*
12089 fi
12090
12091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12092   echo "$ac_t""yes" 1>&6
12093     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12094   cat >> confdefs.h <<EOF
12095 #define $ac_tr_func 1
12096 EOF
12097  
12098 else
12099   echo "$ac_t""no" 1>&6
12100 fi
12101 done
12102     
12103     fi
12104   fi
12105
12106   
12107   
12108   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
12109 echo "configure:12110: checking for sincosf declaration" >&5
12110   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
12111     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
12112   echo $ac_n "(cached) $ac_c" 1>&6
12113 else
12114   
12115       
12116       ac_ext=C
12117 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12118 ac_cpp='$CXXCPP $CPPFLAGS'
12119 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12120 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12121 cross_compiling=$ac_cv_prog_cxx_cross
12122
12123       cat > conftest.$ac_ext <<EOF
12124 #line 12125 "configure"
12125 #include "confdefs.h"
12126 #include <math.h>
12127 int main() {
12128  sincosf(0, 0, 0);
12129 ; return 0; }
12130 EOF
12131 if { (eval echo configure:12132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12132   rm -rf conftest*
12133   glibcpp_cv_func_sincosf_use=yes
12134 else
12135   echo "configure: failed program was:" >&5
12136   cat conftest.$ac_ext >&5
12137   rm -rf conftest*
12138   glibcpp_cv_func_sincosf_use=no
12139 fi
12140 rm -f conftest*
12141       ac_ext=c
12142 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12143 ac_cpp='$CPP $CPPFLAGS'
12144 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12145 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12146 cross_compiling=$ac_cv_prog_cc_cross
12147
12148     
12149 fi
12150
12151   fi
12152   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
12153
12154   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
12155     for ac_func in sincosf
12156 do
12157 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12158 echo "configure:12159: checking for $ac_func" >&5
12159 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12160   echo $ac_n "(cached) $ac_c" 1>&6
12161 else
12162   cat > conftest.$ac_ext <<EOF
12163 #line 12164 "configure"
12164 #include "confdefs.h"
12165 /* System header to define __stub macros and hopefully few prototypes,
12166     which can conflict with char $ac_func(); below.  */
12167 #include <assert.h>
12168 /* Override any gcc2 internal prototype to avoid an error.  */
12169 /* We use char because int might match the return type of a gcc2
12170     builtin and then its argument prototype would still apply.  */
12171 char $ac_func();
12172
12173 int main() {
12174
12175 /* The GNU C library defines this for functions which it implements
12176     to always fail with ENOSYS.  Some functions are actually named
12177     something starting with __ and the normal name is an alias.  */
12178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12179 choke me
12180 #else
12181 $ac_func();
12182 #endif
12183
12184 ; return 0; }
12185 EOF
12186 if { (eval echo configure:12187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12187   rm -rf conftest*
12188   eval "ac_cv_func_$ac_func=yes"
12189 else
12190   echo "configure: failed program was:" >&5
12191   cat conftest.$ac_ext >&5
12192   rm -rf conftest*
12193   eval "ac_cv_func_$ac_func=no"
12194 fi
12195 rm -f conftest*
12196 fi
12197
12198 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12199   echo "$ac_t""yes" 1>&6
12200     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12201   cat >> confdefs.h <<EOF
12202 #define $ac_tr_func 1
12203 EOF
12204  
12205 else
12206   echo "$ac_t""no" 1>&6
12207 fi
12208 done
12209     
12210   else
12211     
12212   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
12213 echo "configure:12214: checking for _sincosf declaration" >&5
12214   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
12215     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
12216   echo $ac_n "(cached) $ac_c" 1>&6
12217 else
12218   
12219       
12220       ac_ext=C
12221 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12222 ac_cpp='$CXXCPP $CPPFLAGS'
12223 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12224 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12225 cross_compiling=$ac_cv_prog_cxx_cross
12226
12227       cat > conftest.$ac_ext <<EOF
12228 #line 12229 "configure"
12229 #include "confdefs.h"
12230 #include <math.h>
12231 int main() {
12232  _sincosf(0, 0, 0);
12233 ; return 0; }
12234 EOF
12235 if { (eval echo configure:12236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12236   rm -rf conftest*
12237   glibcpp_cv_func__sincosf_use=yes
12238 else
12239   echo "configure: failed program was:" >&5
12240   cat conftest.$ac_ext >&5
12241   rm -rf conftest*
12242   glibcpp_cv_func__sincosf_use=no
12243 fi
12244 rm -f conftest*
12245       ac_ext=c
12246 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12247 ac_cpp='$CPP $CPPFLAGS'
12248 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12249 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12250 cross_compiling=$ac_cv_prog_cc_cross
12251
12252     
12253 fi
12254
12255   fi
12256   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
12257
12258     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
12259       for ac_func in _sincosf
12260 do
12261 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12262 echo "configure:12263: checking for $ac_func" >&5
12263 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12264   echo $ac_n "(cached) $ac_c" 1>&6
12265 else
12266   cat > conftest.$ac_ext <<EOF
12267 #line 12268 "configure"
12268 #include "confdefs.h"
12269 /* System header to define __stub macros and hopefully few prototypes,
12270     which can conflict with char $ac_func(); below.  */
12271 #include <assert.h>
12272 /* Override any gcc2 internal prototype to avoid an error.  */
12273 /* We use char because int might match the return type of a gcc2
12274     builtin and then its argument prototype would still apply.  */
12275 char $ac_func();
12276
12277 int main() {
12278
12279 /* The GNU C library defines this for functions which it implements
12280     to always fail with ENOSYS.  Some functions are actually named
12281     something starting with __ and the normal name is an alias.  */
12282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12283 choke me
12284 #else
12285 $ac_func();
12286 #endif
12287
12288 ; return 0; }
12289 EOF
12290 if { (eval echo configure:12291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12291   rm -rf conftest*
12292   eval "ac_cv_func_$ac_func=yes"
12293 else
12294   echo "configure: failed program was:" >&5
12295   cat conftest.$ac_ext >&5
12296   rm -rf conftest*
12297   eval "ac_cv_func_$ac_func=no"
12298 fi
12299 rm -f conftest*
12300 fi
12301
12302 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12303   echo "$ac_t""yes" 1>&6
12304     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12305   cat >> confdefs.h <<EOF
12306 #define $ac_tr_func 1
12307 EOF
12308  
12309 else
12310   echo "$ac_t""no" 1>&6
12311 fi
12312 done
12313     
12314     fi
12315   fi
12316
12317   
12318   
12319   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
12320 echo "configure:12321: checking for finitef declaration" >&5
12321   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
12322     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
12323   echo $ac_n "(cached) $ac_c" 1>&6
12324 else
12325   
12326       
12327       ac_ext=C
12328 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12329 ac_cpp='$CXXCPP $CPPFLAGS'
12330 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12331 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12332 cross_compiling=$ac_cv_prog_cxx_cross
12333
12334       cat > conftest.$ac_ext <<EOF
12335 #line 12336 "configure"
12336 #include "confdefs.h"
12337 #include <math.h>
12338                       #ifdef HAVE_IEEEFP_H
12339                       #include <ieeefp.h>
12340                       #endif
12341                      
12342 int main() {
12343  finitef(0);
12344 ; return 0; }
12345 EOF
12346 if { (eval echo configure:12347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12347   rm -rf conftest*
12348   glibcpp_cv_func_finitef_use=yes
12349 else
12350   echo "configure: failed program was:" >&5
12351   cat conftest.$ac_ext >&5
12352   rm -rf conftest*
12353   glibcpp_cv_func_finitef_use=no
12354 fi
12355 rm -f conftest*
12356       ac_ext=c
12357 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12358 ac_cpp='$CPP $CPPFLAGS'
12359 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12360 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12361 cross_compiling=$ac_cv_prog_cc_cross
12362
12363     
12364 fi
12365
12366   fi
12367   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
12368
12369   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
12370     for ac_func in finitef
12371 do
12372 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12373 echo "configure:12374: checking for $ac_func" >&5
12374 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12375   echo $ac_n "(cached) $ac_c" 1>&6
12376 else
12377   cat > conftest.$ac_ext <<EOF
12378 #line 12379 "configure"
12379 #include "confdefs.h"
12380 /* System header to define __stub macros and hopefully few prototypes,
12381     which can conflict with char $ac_func(); below.  */
12382 #include <assert.h>
12383 /* Override any gcc2 internal prototype to avoid an error.  */
12384 /* We use char because int might match the return type of a gcc2
12385     builtin and then its argument prototype would still apply.  */
12386 char $ac_func();
12387
12388 int main() {
12389
12390 /* The GNU C library defines this for functions which it implements
12391     to always fail with ENOSYS.  Some functions are actually named
12392     something starting with __ and the normal name is an alias.  */
12393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12394 choke me
12395 #else
12396 $ac_func();
12397 #endif
12398
12399 ; return 0; }
12400 EOF
12401 if { (eval echo configure:12402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12402   rm -rf conftest*
12403   eval "ac_cv_func_$ac_func=yes"
12404 else
12405   echo "configure: failed program was:" >&5
12406   cat conftest.$ac_ext >&5
12407   rm -rf conftest*
12408   eval "ac_cv_func_$ac_func=no"
12409 fi
12410 rm -f conftest*
12411 fi
12412
12413 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12414   echo "$ac_t""yes" 1>&6
12415     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12416   cat >> confdefs.h <<EOF
12417 #define $ac_tr_func 1
12418 EOF
12419  
12420 else
12421   echo "$ac_t""no" 1>&6
12422 fi
12423 done
12424     
12425   else
12426     
12427   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
12428 echo "configure:12429: checking for _finitef declaration" >&5
12429   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
12430     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
12431   echo $ac_n "(cached) $ac_c" 1>&6
12432 else
12433   
12434       
12435       ac_ext=C
12436 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12437 ac_cpp='$CXXCPP $CPPFLAGS'
12438 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12439 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12440 cross_compiling=$ac_cv_prog_cxx_cross
12441
12442       cat > conftest.$ac_ext <<EOF
12443 #line 12444 "configure"
12444 #include "confdefs.h"
12445 #include <math.h>
12446                       #ifdef HAVE_IEEEFP_H
12447                       #include <ieeefp.h>
12448                       #endif
12449                      
12450 int main() {
12451  _finitef(0);
12452 ; return 0; }
12453 EOF
12454 if { (eval echo configure:12455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12455   rm -rf conftest*
12456   glibcpp_cv_func__finitef_use=yes
12457 else
12458   echo "configure: failed program was:" >&5
12459   cat conftest.$ac_ext >&5
12460   rm -rf conftest*
12461   glibcpp_cv_func__finitef_use=no
12462 fi
12463 rm -f conftest*
12464       ac_ext=c
12465 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12466 ac_cpp='$CPP $CPPFLAGS'
12467 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12468 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12469 cross_compiling=$ac_cv_prog_cc_cross
12470
12471     
12472 fi
12473
12474   fi
12475   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
12476
12477     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
12478       for ac_func in _finitef
12479 do
12480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12481 echo "configure:12482: checking for $ac_func" >&5
12482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12483   echo $ac_n "(cached) $ac_c" 1>&6
12484 else
12485   cat > conftest.$ac_ext <<EOF
12486 #line 12487 "configure"
12487 #include "confdefs.h"
12488 /* System header to define __stub macros and hopefully few prototypes,
12489     which can conflict with char $ac_func(); below.  */
12490 #include <assert.h>
12491 /* Override any gcc2 internal prototype to avoid an error.  */
12492 /* We use char because int might match the return type of a gcc2
12493     builtin and then its argument prototype would still apply.  */
12494 char $ac_func();
12495
12496 int main() {
12497
12498 /* The GNU C library defines this for functions which it implements
12499     to always fail with ENOSYS.  Some functions are actually named
12500     something starting with __ and the normal name is an alias.  */
12501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12502 choke me
12503 #else
12504 $ac_func();
12505 #endif
12506
12507 ; return 0; }
12508 EOF
12509 if { (eval echo configure:12510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12510   rm -rf conftest*
12511   eval "ac_cv_func_$ac_func=yes"
12512 else
12513   echo "configure: failed program was:" >&5
12514   cat conftest.$ac_ext >&5
12515   rm -rf conftest*
12516   eval "ac_cv_func_$ac_func=no"
12517 fi
12518 rm -f conftest*
12519 fi
12520
12521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12522   echo "$ac_t""yes" 1>&6
12523     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12524   cat >> confdefs.h <<EOF
12525 #define $ac_tr_func 1
12526 EOF
12527  
12528 else
12529   echo "$ac_t""no" 1>&6
12530 fi
12531 done
12532     
12533     fi
12534   fi
12535
12536
12537     
12538   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
12539 echo "configure:12540: checking for long double trig functions" >&5
12540   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
12541   echo $ac_n "(cached) $ac_c" 1>&6
12542 else
12543   
12544     
12545     ac_ext=C
12546 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12547 ac_cpp='$CXXCPP $CPPFLAGS'
12548 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12549 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12550 cross_compiling=$ac_cv_prog_cxx_cross
12551
12552     cat > conftest.$ac_ext <<EOF
12553 #line 12554 "configure"
12554 #include "confdefs.h"
12555 #include <math.h>
12556 int main() {
12557  `for x in acosl asinl atanl \
12558                                           cosl sinl tanl \
12559                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
12560 ; return 0; }
12561 EOF
12562 if { (eval echo configure:12563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12563   rm -rf conftest*
12564   glibcpp_cv_func_long_double_trig_use=yes
12565 else
12566   echo "configure: failed program was:" >&5
12567   cat conftest.$ac_ext >&5
12568   rm -rf conftest*
12569   glibcpp_cv_func_long_double_trig_use=no
12570 fi
12571 rm -f conftest*
12572     ac_ext=c
12573 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12574 ac_cpp='$CPP $CPPFLAGS'
12575 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12576 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12577 cross_compiling=$ac_cv_prog_cc_cross
12578
12579 fi
12580
12581   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
12582   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
12583     for ac_func in acosl asinl atanl \
12584                                           cosl sinl tanl \
12585                                           coshl sinhl tanhl
12586 do
12587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12588 echo "configure:12589: checking for $ac_func" >&5
12589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12590   echo $ac_n "(cached) $ac_c" 1>&6
12591 else
12592   cat > conftest.$ac_ext <<EOF
12593 #line 12594 "configure"
12594 #include "confdefs.h"
12595 /* System header to define __stub macros and hopefully few prototypes,
12596     which can conflict with char $ac_func(); below.  */
12597 #include <assert.h>
12598 /* Override any gcc2 internal prototype to avoid an error.  */
12599 /* We use char because int might match the return type of a gcc2
12600     builtin and then its argument prototype would still apply.  */
12601 char $ac_func();
12602
12603 int main() {
12604
12605 /* The GNU C library defines this for functions which it implements
12606     to always fail with ENOSYS.  Some functions are actually named
12607     something starting with __ and the normal name is an alias.  */
12608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12609 choke me
12610 #else
12611 $ac_func();
12612 #endif
12613
12614 ; return 0; }
12615 EOF
12616 if { (eval echo configure:12617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12617   rm -rf conftest*
12618   eval "ac_cv_func_$ac_func=yes"
12619 else
12620   echo "configure: failed program was:" >&5
12621   cat conftest.$ac_ext >&5
12622   rm -rf conftest*
12623   eval "ac_cv_func_$ac_func=no"
12624 fi
12625 rm -f conftest*
12626 fi
12627
12628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12629   echo "$ac_t""yes" 1>&6
12630     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12631   cat >> confdefs.h <<EOF
12632 #define $ac_tr_func 1
12633 EOF
12634  
12635 else
12636   echo "$ac_t""no" 1>&6
12637 fi
12638 done
12639
12640   fi
12641
12642   
12643   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
12644 echo "configure:12645: checking for long double round functions" >&5
12645   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
12646   echo $ac_n "(cached) $ac_c" 1>&6
12647 else
12648   
12649     
12650     ac_ext=C
12651 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12652 ac_cpp='$CXXCPP $CPPFLAGS'
12653 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12654 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12655 cross_compiling=$ac_cv_prog_cxx_cross
12656
12657     cat > conftest.$ac_ext <<EOF
12658 #line 12659 "configure"
12659 #include "confdefs.h"
12660 #include <math.h>
12661 int main() {
12662  `for x in ceill floorl; do echo "$x (0);"; done` 
12663 ; return 0; }
12664 EOF
12665 if { (eval echo configure:12666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12666   rm -rf conftest*
12667   glibcpp_cv_func_long_double_round_use=yes
12668 else
12669   echo "configure: failed program was:" >&5
12670   cat conftest.$ac_ext >&5
12671   rm -rf conftest*
12672   glibcpp_cv_func_long_double_round_use=no
12673 fi
12674 rm -f conftest*
12675     ac_ext=c
12676 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12677 ac_cpp='$CPP $CPPFLAGS'
12678 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12679 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12680 cross_compiling=$ac_cv_prog_cc_cross
12681
12682 fi
12683
12684   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
12685   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
12686     for ac_func in ceill floorl
12687 do
12688 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12689 echo "configure:12690: checking for $ac_func" >&5
12690 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12691   echo $ac_n "(cached) $ac_c" 1>&6
12692 else
12693   cat > conftest.$ac_ext <<EOF
12694 #line 12695 "configure"
12695 #include "confdefs.h"
12696 /* System header to define __stub macros and hopefully few prototypes,
12697     which can conflict with char $ac_func(); below.  */
12698 #include <assert.h>
12699 /* Override any gcc2 internal prototype to avoid an error.  */
12700 /* We use char because int might match the return type of a gcc2
12701     builtin and then its argument prototype would still apply.  */
12702 char $ac_func();
12703
12704 int main() {
12705
12706 /* The GNU C library defines this for functions which it implements
12707     to always fail with ENOSYS.  Some functions are actually named
12708     something starting with __ and the normal name is an alias.  */
12709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12710 choke me
12711 #else
12712 $ac_func();
12713 #endif
12714
12715 ; return 0; }
12716 EOF
12717 if { (eval echo configure:12718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12718   rm -rf conftest*
12719   eval "ac_cv_func_$ac_func=yes"
12720 else
12721   echo "configure: failed program was:" >&5
12722   cat conftest.$ac_ext >&5
12723   rm -rf conftest*
12724   eval "ac_cv_func_$ac_func=no"
12725 fi
12726 rm -f conftest*
12727 fi
12728
12729 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12730   echo "$ac_t""yes" 1>&6
12731     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12732   cat >> confdefs.h <<EOF
12733 #define $ac_tr_func 1
12734 EOF
12735  
12736 else
12737   echo "$ac_t""no" 1>&6
12738 fi
12739 done
12740
12741   fi
12742
12743   
12744   
12745   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
12746 echo "configure:12747: checking for isnanl declaration" >&5
12747   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
12748     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
12749   echo $ac_n "(cached) $ac_c" 1>&6
12750 else
12751   
12752       
12753       ac_ext=C
12754 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12755 ac_cpp='$CXXCPP $CPPFLAGS'
12756 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12757 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12758 cross_compiling=$ac_cv_prog_cxx_cross
12759
12760       cat > conftest.$ac_ext <<EOF
12761 #line 12762 "configure"
12762 #include "confdefs.h"
12763 #include <math.h>
12764                       #ifdef HAVE_IEEEFP_H
12765                       #include <ieeefp.h>
12766                       #endif
12767                      
12768 int main() {
12769  isnanl(0);
12770 ; return 0; }
12771 EOF
12772 if { (eval echo configure:12773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12773   rm -rf conftest*
12774   glibcpp_cv_func_isnanl_use=yes
12775 else
12776   echo "configure: failed program was:" >&5
12777   cat conftest.$ac_ext >&5
12778   rm -rf conftest*
12779   glibcpp_cv_func_isnanl_use=no
12780 fi
12781 rm -f conftest*
12782       ac_ext=c
12783 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12784 ac_cpp='$CPP $CPPFLAGS'
12785 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12786 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12787 cross_compiling=$ac_cv_prog_cc_cross
12788
12789     
12790 fi
12791
12792   fi
12793   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
12794
12795   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
12796     for ac_func in isnanl
12797 do
12798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12799 echo "configure:12800: checking for $ac_func" >&5
12800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12801   echo $ac_n "(cached) $ac_c" 1>&6
12802 else
12803   cat > conftest.$ac_ext <<EOF
12804 #line 12805 "configure"
12805 #include "confdefs.h"
12806 /* System header to define __stub macros and hopefully few prototypes,
12807     which can conflict with char $ac_func(); below.  */
12808 #include <assert.h>
12809 /* Override any gcc2 internal prototype to avoid an error.  */
12810 /* We use char because int might match the return type of a gcc2
12811     builtin and then its argument prototype would still apply.  */
12812 char $ac_func();
12813
12814 int main() {
12815
12816 /* The GNU C library defines this for functions which it implements
12817     to always fail with ENOSYS.  Some functions are actually named
12818     something starting with __ and the normal name is an alias.  */
12819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12820 choke me
12821 #else
12822 $ac_func();
12823 #endif
12824
12825 ; return 0; }
12826 EOF
12827 if { (eval echo configure:12828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12828   rm -rf conftest*
12829   eval "ac_cv_func_$ac_func=yes"
12830 else
12831   echo "configure: failed program was:" >&5
12832   cat conftest.$ac_ext >&5
12833   rm -rf conftest*
12834   eval "ac_cv_func_$ac_func=no"
12835 fi
12836 rm -f conftest*
12837 fi
12838
12839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12840   echo "$ac_t""yes" 1>&6
12841     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12842   cat >> confdefs.h <<EOF
12843 #define $ac_tr_func 1
12844 EOF
12845  
12846 else
12847   echo "$ac_t""no" 1>&6
12848 fi
12849 done
12850     
12851   else
12852     
12853   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
12854 echo "configure:12855: checking for _isnanl declaration" >&5
12855   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
12856     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
12857   echo $ac_n "(cached) $ac_c" 1>&6
12858 else
12859   
12860       
12861       ac_ext=C
12862 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12863 ac_cpp='$CXXCPP $CPPFLAGS'
12864 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12865 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12866 cross_compiling=$ac_cv_prog_cxx_cross
12867
12868       cat > conftest.$ac_ext <<EOF
12869 #line 12870 "configure"
12870 #include "confdefs.h"
12871 #include <math.h>
12872                       #ifdef HAVE_IEEEFP_H
12873                       #include <ieeefp.h>
12874                       #endif
12875                      
12876 int main() {
12877  _isnanl(0);
12878 ; return 0; }
12879 EOF
12880 if { (eval echo configure:12881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12881   rm -rf conftest*
12882   glibcpp_cv_func__isnanl_use=yes
12883 else
12884   echo "configure: failed program was:" >&5
12885   cat conftest.$ac_ext >&5
12886   rm -rf conftest*
12887   glibcpp_cv_func__isnanl_use=no
12888 fi
12889 rm -f conftest*
12890       ac_ext=c
12891 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12892 ac_cpp='$CPP $CPPFLAGS'
12893 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12894 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12895 cross_compiling=$ac_cv_prog_cc_cross
12896
12897     
12898 fi
12899
12900   fi
12901   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
12902
12903     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
12904       for ac_func in _isnanl
12905 do
12906 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12907 echo "configure:12908: checking for $ac_func" >&5
12908 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12909   echo $ac_n "(cached) $ac_c" 1>&6
12910 else
12911   cat > conftest.$ac_ext <<EOF
12912 #line 12913 "configure"
12913 #include "confdefs.h"
12914 /* System header to define __stub macros and hopefully few prototypes,
12915     which can conflict with char $ac_func(); below.  */
12916 #include <assert.h>
12917 /* Override any gcc2 internal prototype to avoid an error.  */
12918 /* We use char because int might match the return type of a gcc2
12919     builtin and then its argument prototype would still apply.  */
12920 char $ac_func();
12921
12922 int main() {
12923
12924 /* The GNU C library defines this for functions which it implements
12925     to always fail with ENOSYS.  Some functions are actually named
12926     something starting with __ and the normal name is an alias.  */
12927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12928 choke me
12929 #else
12930 $ac_func();
12931 #endif
12932
12933 ; return 0; }
12934 EOF
12935 if { (eval echo configure:12936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12936   rm -rf conftest*
12937   eval "ac_cv_func_$ac_func=yes"
12938 else
12939   echo "configure: failed program was:" >&5
12940   cat conftest.$ac_ext >&5
12941   rm -rf conftest*
12942   eval "ac_cv_func_$ac_func=no"
12943 fi
12944 rm -f conftest*
12945 fi
12946
12947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12948   echo "$ac_t""yes" 1>&6
12949     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12950   cat >> confdefs.h <<EOF
12951 #define $ac_tr_func 1
12952 EOF
12953  
12954 else
12955   echo "$ac_t""no" 1>&6
12956 fi
12957 done
12958     
12959     fi
12960   fi
12961
12962   
12963   
12964   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
12965 echo "configure:12966: checking for isinfl declaration" >&5
12966   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
12967     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
12968   echo $ac_n "(cached) $ac_c" 1>&6
12969 else
12970   
12971       
12972       ac_ext=C
12973 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12974 ac_cpp='$CXXCPP $CPPFLAGS'
12975 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12976 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12977 cross_compiling=$ac_cv_prog_cxx_cross
12978
12979       cat > conftest.$ac_ext <<EOF
12980 #line 12981 "configure"
12981 #include "confdefs.h"
12982 #include <math.h>
12983                       #ifdef HAVE_IEEEFP_H
12984                       #include <ieeefp.h>
12985                       #endif
12986                      
12987 int main() {
12988  isinfl(0);
12989 ; return 0; }
12990 EOF
12991 if { (eval echo configure:12992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12992   rm -rf conftest*
12993   glibcpp_cv_func_isinfl_use=yes
12994 else
12995   echo "configure: failed program was:" >&5
12996   cat conftest.$ac_ext >&5
12997   rm -rf conftest*
12998   glibcpp_cv_func_isinfl_use=no
12999 fi
13000 rm -f conftest*
13001       ac_ext=c
13002 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13003 ac_cpp='$CPP $CPPFLAGS'
13004 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13005 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13006 cross_compiling=$ac_cv_prog_cc_cross
13007
13008     
13009 fi
13010
13011   fi
13012   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
13013
13014   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
13015     for ac_func in isinfl
13016 do
13017 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13018 echo "configure:13019: checking for $ac_func" >&5
13019 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13020   echo $ac_n "(cached) $ac_c" 1>&6
13021 else
13022   cat > conftest.$ac_ext <<EOF
13023 #line 13024 "configure"
13024 #include "confdefs.h"
13025 /* System header to define __stub macros and hopefully few prototypes,
13026     which can conflict with char $ac_func(); below.  */
13027 #include <assert.h>
13028 /* Override any gcc2 internal prototype to avoid an error.  */
13029 /* We use char because int might match the return type of a gcc2
13030     builtin and then its argument prototype would still apply.  */
13031 char $ac_func();
13032
13033 int main() {
13034
13035 /* The GNU C library defines this for functions which it implements
13036     to always fail with ENOSYS.  Some functions are actually named
13037     something starting with __ and the normal name is an alias.  */
13038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13039 choke me
13040 #else
13041 $ac_func();
13042 #endif
13043
13044 ; return 0; }
13045 EOF
13046 if { (eval echo configure:13047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13047   rm -rf conftest*
13048   eval "ac_cv_func_$ac_func=yes"
13049 else
13050   echo "configure: failed program was:" >&5
13051   cat conftest.$ac_ext >&5
13052   rm -rf conftest*
13053   eval "ac_cv_func_$ac_func=no"
13054 fi
13055 rm -f conftest*
13056 fi
13057
13058 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13059   echo "$ac_t""yes" 1>&6
13060     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13061   cat >> confdefs.h <<EOF
13062 #define $ac_tr_func 1
13063 EOF
13064  
13065 else
13066   echo "$ac_t""no" 1>&6
13067 fi
13068 done
13069     
13070   else
13071     
13072   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
13073 echo "configure:13074: checking for _isinfl declaration" >&5
13074   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
13075     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
13076   echo $ac_n "(cached) $ac_c" 1>&6
13077 else
13078   
13079       
13080       ac_ext=C
13081 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13082 ac_cpp='$CXXCPP $CPPFLAGS'
13083 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13084 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13085 cross_compiling=$ac_cv_prog_cxx_cross
13086
13087       cat > conftest.$ac_ext <<EOF
13088 #line 13089 "configure"
13089 #include "confdefs.h"
13090 #include <math.h>
13091                       #ifdef HAVE_IEEEFP_H
13092                       #include <ieeefp.h>
13093                       #endif
13094                      
13095 int main() {
13096  _isinfl(0);
13097 ; return 0; }
13098 EOF
13099 if { (eval echo configure:13100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13100   rm -rf conftest*
13101   glibcpp_cv_func__isinfl_use=yes
13102 else
13103   echo "configure: failed program was:" >&5
13104   cat conftest.$ac_ext >&5
13105   rm -rf conftest*
13106   glibcpp_cv_func__isinfl_use=no
13107 fi
13108 rm -f conftest*
13109       ac_ext=c
13110 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13111 ac_cpp='$CPP $CPPFLAGS'
13112 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13113 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13114 cross_compiling=$ac_cv_prog_cc_cross
13115
13116     
13117 fi
13118
13119   fi
13120   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
13121
13122     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
13123       for ac_func in _isinfl
13124 do
13125 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13126 echo "configure:13127: checking for $ac_func" >&5
13127 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13128   echo $ac_n "(cached) $ac_c" 1>&6
13129 else
13130   cat > conftest.$ac_ext <<EOF
13131 #line 13132 "configure"
13132 #include "confdefs.h"
13133 /* System header to define __stub macros and hopefully few prototypes,
13134     which can conflict with char $ac_func(); below.  */
13135 #include <assert.h>
13136 /* Override any gcc2 internal prototype to avoid an error.  */
13137 /* We use char because int might match the return type of a gcc2
13138     builtin and then its argument prototype would still apply.  */
13139 char $ac_func();
13140
13141 int main() {
13142
13143 /* The GNU C library defines this for functions which it implements
13144     to always fail with ENOSYS.  Some functions are actually named
13145     something starting with __ and the normal name is an alias.  */
13146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13147 choke me
13148 #else
13149 $ac_func();
13150 #endif
13151
13152 ; return 0; }
13153 EOF
13154 if { (eval echo configure:13155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13155   rm -rf conftest*
13156   eval "ac_cv_func_$ac_func=yes"
13157 else
13158   echo "configure: failed program was:" >&5
13159   cat conftest.$ac_ext >&5
13160   rm -rf conftest*
13161   eval "ac_cv_func_$ac_func=no"
13162 fi
13163 rm -f conftest*
13164 fi
13165
13166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13167   echo "$ac_t""yes" 1>&6
13168     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13169   cat >> confdefs.h <<EOF
13170 #define $ac_tr_func 1
13171 EOF
13172  
13173 else
13174   echo "$ac_t""no" 1>&6
13175 fi
13176 done
13177     
13178     fi
13179   fi
13180
13181   
13182   
13183   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
13184 echo "configure:13185: checking for copysignl declaration" >&5
13185   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
13186     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
13187   echo $ac_n "(cached) $ac_c" 1>&6
13188 else
13189   
13190       
13191       ac_ext=C
13192 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13193 ac_cpp='$CXXCPP $CPPFLAGS'
13194 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13195 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13196 cross_compiling=$ac_cv_prog_cxx_cross
13197
13198       cat > conftest.$ac_ext <<EOF
13199 #line 13200 "configure"
13200 #include "confdefs.h"
13201 #include <math.h>
13202 int main() {
13203  copysignl(0, 0);
13204 ; return 0; }
13205 EOF
13206 if { (eval echo configure:13207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13207   rm -rf conftest*
13208   glibcpp_cv_func_copysignl_use=yes
13209 else
13210   echo "configure: failed program was:" >&5
13211   cat conftest.$ac_ext >&5
13212   rm -rf conftest*
13213   glibcpp_cv_func_copysignl_use=no
13214 fi
13215 rm -f conftest*
13216       ac_ext=c
13217 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13218 ac_cpp='$CPP $CPPFLAGS'
13219 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13220 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13221 cross_compiling=$ac_cv_prog_cc_cross
13222
13223     
13224 fi
13225
13226   fi
13227   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
13228
13229   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
13230     for ac_func in copysignl
13231 do
13232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13233 echo "configure:13234: checking for $ac_func" >&5
13234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13235   echo $ac_n "(cached) $ac_c" 1>&6
13236 else
13237   cat > conftest.$ac_ext <<EOF
13238 #line 13239 "configure"
13239 #include "confdefs.h"
13240 /* System header to define __stub macros and hopefully few prototypes,
13241     which can conflict with char $ac_func(); below.  */
13242 #include <assert.h>
13243 /* Override any gcc2 internal prototype to avoid an error.  */
13244 /* We use char because int might match the return type of a gcc2
13245     builtin and then its argument prototype would still apply.  */
13246 char $ac_func();
13247
13248 int main() {
13249
13250 /* The GNU C library defines this for functions which it implements
13251     to always fail with ENOSYS.  Some functions are actually named
13252     something starting with __ and the normal name is an alias.  */
13253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13254 choke me
13255 #else
13256 $ac_func();
13257 #endif
13258
13259 ; return 0; }
13260 EOF
13261 if { (eval echo configure:13262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13262   rm -rf conftest*
13263   eval "ac_cv_func_$ac_func=yes"
13264 else
13265   echo "configure: failed program was:" >&5
13266   cat conftest.$ac_ext >&5
13267   rm -rf conftest*
13268   eval "ac_cv_func_$ac_func=no"
13269 fi
13270 rm -f conftest*
13271 fi
13272
13273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13274   echo "$ac_t""yes" 1>&6
13275     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13276   cat >> confdefs.h <<EOF
13277 #define $ac_tr_func 1
13278 EOF
13279  
13280 else
13281   echo "$ac_t""no" 1>&6
13282 fi
13283 done
13284     
13285   else
13286     
13287   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
13288 echo "configure:13289: checking for _copysignl declaration" >&5
13289   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
13290     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
13291   echo $ac_n "(cached) $ac_c" 1>&6
13292 else
13293   
13294       
13295       ac_ext=C
13296 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13297 ac_cpp='$CXXCPP $CPPFLAGS'
13298 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13299 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13300 cross_compiling=$ac_cv_prog_cxx_cross
13301
13302       cat > conftest.$ac_ext <<EOF
13303 #line 13304 "configure"
13304 #include "confdefs.h"
13305 #include <math.h>
13306 int main() {
13307  _copysignl(0, 0);
13308 ; return 0; }
13309 EOF
13310 if { (eval echo configure:13311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13311   rm -rf conftest*
13312   glibcpp_cv_func__copysignl_use=yes
13313 else
13314   echo "configure: failed program was:" >&5
13315   cat conftest.$ac_ext >&5
13316   rm -rf conftest*
13317   glibcpp_cv_func__copysignl_use=no
13318 fi
13319 rm -f conftest*
13320       ac_ext=c
13321 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13322 ac_cpp='$CPP $CPPFLAGS'
13323 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13324 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13325 cross_compiling=$ac_cv_prog_cc_cross
13326
13327     
13328 fi
13329
13330   fi
13331   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
13332
13333     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
13334       for ac_func in _copysignl
13335 do
13336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13337 echo "configure:13338: checking for $ac_func" >&5
13338 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13339   echo $ac_n "(cached) $ac_c" 1>&6
13340 else
13341   cat > conftest.$ac_ext <<EOF
13342 #line 13343 "configure"
13343 #include "confdefs.h"
13344 /* System header to define __stub macros and hopefully few prototypes,
13345     which can conflict with char $ac_func(); below.  */
13346 #include <assert.h>
13347 /* Override any gcc2 internal prototype to avoid an error.  */
13348 /* We use char because int might match the return type of a gcc2
13349     builtin and then its argument prototype would still apply.  */
13350 char $ac_func();
13351
13352 int main() {
13353
13354 /* The GNU C library defines this for functions which it implements
13355     to always fail with ENOSYS.  Some functions are actually named
13356     something starting with __ and the normal name is an alias.  */
13357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13358 choke me
13359 #else
13360 $ac_func();
13361 #endif
13362
13363 ; return 0; }
13364 EOF
13365 if { (eval echo configure:13366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13366   rm -rf conftest*
13367   eval "ac_cv_func_$ac_func=yes"
13368 else
13369   echo "configure: failed program was:" >&5
13370   cat conftest.$ac_ext >&5
13371   rm -rf conftest*
13372   eval "ac_cv_func_$ac_func=no"
13373 fi
13374 rm -f conftest*
13375 fi
13376
13377 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13378   echo "$ac_t""yes" 1>&6
13379     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13380   cat >> confdefs.h <<EOF
13381 #define $ac_tr_func 1
13382 EOF
13383  
13384 else
13385   echo "$ac_t""no" 1>&6
13386 fi
13387 done
13388     
13389     fi
13390   fi
13391
13392   
13393   
13394   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
13395 echo "configure:13396: checking for atan2l declaration" >&5
13396   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
13397     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
13398   echo $ac_n "(cached) $ac_c" 1>&6
13399 else
13400   
13401       
13402       ac_ext=C
13403 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13404 ac_cpp='$CXXCPP $CPPFLAGS'
13405 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13406 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13407 cross_compiling=$ac_cv_prog_cxx_cross
13408
13409       cat > conftest.$ac_ext <<EOF
13410 #line 13411 "configure"
13411 #include "confdefs.h"
13412 #include <math.h>
13413 int main() {
13414  atan2l(0, 0);
13415 ; return 0; }
13416 EOF
13417 if { (eval echo configure:13418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13418   rm -rf conftest*
13419   glibcpp_cv_func_atan2l_use=yes
13420 else
13421   echo "configure: failed program was:" >&5
13422   cat conftest.$ac_ext >&5
13423   rm -rf conftest*
13424   glibcpp_cv_func_atan2l_use=no
13425 fi
13426 rm -f conftest*
13427       ac_ext=c
13428 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13429 ac_cpp='$CPP $CPPFLAGS'
13430 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13431 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13432 cross_compiling=$ac_cv_prog_cc_cross
13433
13434     
13435 fi
13436
13437   fi
13438   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
13439
13440   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
13441     for ac_func in atan2l
13442 do
13443 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13444 echo "configure:13445: checking for $ac_func" >&5
13445 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13446   echo $ac_n "(cached) $ac_c" 1>&6
13447 else
13448   cat > conftest.$ac_ext <<EOF
13449 #line 13450 "configure"
13450 #include "confdefs.h"
13451 /* System header to define __stub macros and hopefully few prototypes,
13452     which can conflict with char $ac_func(); below.  */
13453 #include <assert.h>
13454 /* Override any gcc2 internal prototype to avoid an error.  */
13455 /* We use char because int might match the return type of a gcc2
13456     builtin and then its argument prototype would still apply.  */
13457 char $ac_func();
13458
13459 int main() {
13460
13461 /* The GNU C library defines this for functions which it implements
13462     to always fail with ENOSYS.  Some functions are actually named
13463     something starting with __ and the normal name is an alias.  */
13464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13465 choke me
13466 #else
13467 $ac_func();
13468 #endif
13469
13470 ; return 0; }
13471 EOF
13472 if { (eval echo configure:13473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13473   rm -rf conftest*
13474   eval "ac_cv_func_$ac_func=yes"
13475 else
13476   echo "configure: failed program was:" >&5
13477   cat conftest.$ac_ext >&5
13478   rm -rf conftest*
13479   eval "ac_cv_func_$ac_func=no"
13480 fi
13481 rm -f conftest*
13482 fi
13483
13484 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13485   echo "$ac_t""yes" 1>&6
13486     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13487   cat >> confdefs.h <<EOF
13488 #define $ac_tr_func 1
13489 EOF
13490  
13491 else
13492   echo "$ac_t""no" 1>&6
13493 fi
13494 done
13495     
13496   else
13497     
13498   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
13499 echo "configure:13500: checking for _atan2l declaration" >&5
13500   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
13501     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
13502   echo $ac_n "(cached) $ac_c" 1>&6
13503 else
13504   
13505       
13506       ac_ext=C
13507 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13508 ac_cpp='$CXXCPP $CPPFLAGS'
13509 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13510 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13511 cross_compiling=$ac_cv_prog_cxx_cross
13512
13513       cat > conftest.$ac_ext <<EOF
13514 #line 13515 "configure"
13515 #include "confdefs.h"
13516 #include <math.h>
13517 int main() {
13518  _atan2l(0, 0);
13519 ; return 0; }
13520 EOF
13521 if { (eval echo configure:13522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13522   rm -rf conftest*
13523   glibcpp_cv_func__atan2l_use=yes
13524 else
13525   echo "configure: failed program was:" >&5
13526   cat conftest.$ac_ext >&5
13527   rm -rf conftest*
13528   glibcpp_cv_func__atan2l_use=no
13529 fi
13530 rm -f conftest*
13531       ac_ext=c
13532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13533 ac_cpp='$CPP $CPPFLAGS'
13534 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13535 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13536 cross_compiling=$ac_cv_prog_cc_cross
13537
13538     
13539 fi
13540
13541   fi
13542   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
13543
13544     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
13545       for ac_func in _atan2l
13546 do
13547 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13548 echo "configure:13549: checking for $ac_func" >&5
13549 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13550   echo $ac_n "(cached) $ac_c" 1>&6
13551 else
13552   cat > conftest.$ac_ext <<EOF
13553 #line 13554 "configure"
13554 #include "confdefs.h"
13555 /* System header to define __stub macros and hopefully few prototypes,
13556     which can conflict with char $ac_func(); below.  */
13557 #include <assert.h>
13558 /* Override any gcc2 internal prototype to avoid an error.  */
13559 /* We use char because int might match the return type of a gcc2
13560     builtin and then its argument prototype would still apply.  */
13561 char $ac_func();
13562
13563 int main() {
13564
13565 /* The GNU C library defines this for functions which it implements
13566     to always fail with ENOSYS.  Some functions are actually named
13567     something starting with __ and the normal name is an alias.  */
13568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13569 choke me
13570 #else
13571 $ac_func();
13572 #endif
13573
13574 ; return 0; }
13575 EOF
13576 if { (eval echo configure:13577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13577   rm -rf conftest*
13578   eval "ac_cv_func_$ac_func=yes"
13579 else
13580   echo "configure: failed program was:" >&5
13581   cat conftest.$ac_ext >&5
13582   rm -rf conftest*
13583   eval "ac_cv_func_$ac_func=no"
13584 fi
13585 rm -f conftest*
13586 fi
13587
13588 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13589   echo "$ac_t""yes" 1>&6
13590     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13591   cat >> confdefs.h <<EOF
13592 #define $ac_tr_func 1
13593 EOF
13594  
13595 else
13596   echo "$ac_t""no" 1>&6
13597 fi
13598 done
13599     
13600     fi
13601   fi
13602
13603   
13604   
13605   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
13606 echo "configure:13607: checking for expl declaration" >&5
13607   if test x${glibcpp_cv_func_expl_use+set} != xset; then
13608     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
13609   echo $ac_n "(cached) $ac_c" 1>&6
13610 else
13611   
13612       
13613       ac_ext=C
13614 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13615 ac_cpp='$CXXCPP $CPPFLAGS'
13616 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13617 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13618 cross_compiling=$ac_cv_prog_cxx_cross
13619
13620       cat > conftest.$ac_ext <<EOF
13621 #line 13622 "configure"
13622 #include "confdefs.h"
13623 #include <math.h>
13624                       #ifdef HAVE_IEEEFP_H
13625                       #include <ieeefp.h>
13626                       #endif
13627                      
13628 int main() {
13629  expl(0);
13630 ; return 0; }
13631 EOF
13632 if { (eval echo configure:13633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13633   rm -rf conftest*
13634   glibcpp_cv_func_expl_use=yes
13635 else
13636   echo "configure: failed program was:" >&5
13637   cat conftest.$ac_ext >&5
13638   rm -rf conftest*
13639   glibcpp_cv_func_expl_use=no
13640 fi
13641 rm -f conftest*
13642       ac_ext=c
13643 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13644 ac_cpp='$CPP $CPPFLAGS'
13645 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13646 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13647 cross_compiling=$ac_cv_prog_cc_cross
13648
13649     
13650 fi
13651
13652   fi
13653   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
13654
13655   if test x$glibcpp_cv_func_expl_use = x"yes"; then
13656     for ac_func in expl
13657 do
13658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13659 echo "configure:13660: checking for $ac_func" >&5
13660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13661   echo $ac_n "(cached) $ac_c" 1>&6
13662 else
13663   cat > conftest.$ac_ext <<EOF
13664 #line 13665 "configure"
13665 #include "confdefs.h"
13666 /* System header to define __stub macros and hopefully few prototypes,
13667     which can conflict with char $ac_func(); below.  */
13668 #include <assert.h>
13669 /* Override any gcc2 internal prototype to avoid an error.  */
13670 /* We use char because int might match the return type of a gcc2
13671     builtin and then its argument prototype would still apply.  */
13672 char $ac_func();
13673
13674 int main() {
13675
13676 /* The GNU C library defines this for functions which it implements
13677     to always fail with ENOSYS.  Some functions are actually named
13678     something starting with __ and the normal name is an alias.  */
13679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13680 choke me
13681 #else
13682 $ac_func();
13683 #endif
13684
13685 ; return 0; }
13686 EOF
13687 if { (eval echo configure:13688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13688   rm -rf conftest*
13689   eval "ac_cv_func_$ac_func=yes"
13690 else
13691   echo "configure: failed program was:" >&5
13692   cat conftest.$ac_ext >&5
13693   rm -rf conftest*
13694   eval "ac_cv_func_$ac_func=no"
13695 fi
13696 rm -f conftest*
13697 fi
13698
13699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13700   echo "$ac_t""yes" 1>&6
13701     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13702   cat >> confdefs.h <<EOF
13703 #define $ac_tr_func 1
13704 EOF
13705  
13706 else
13707   echo "$ac_t""no" 1>&6
13708 fi
13709 done
13710     
13711   else
13712     
13713   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
13714 echo "configure:13715: checking for _expl declaration" >&5
13715   if test x${glibcpp_cv_func__expl_use+set} != xset; then
13716     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
13717   echo $ac_n "(cached) $ac_c" 1>&6
13718 else
13719   
13720       
13721       ac_ext=C
13722 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13723 ac_cpp='$CXXCPP $CPPFLAGS'
13724 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13725 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13726 cross_compiling=$ac_cv_prog_cxx_cross
13727
13728       cat > conftest.$ac_ext <<EOF
13729 #line 13730 "configure"
13730 #include "confdefs.h"
13731 #include <math.h>
13732                       #ifdef HAVE_IEEEFP_H
13733                       #include <ieeefp.h>
13734                       #endif
13735                      
13736 int main() {
13737  _expl(0);
13738 ; return 0; }
13739 EOF
13740 if { (eval echo configure:13741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13741   rm -rf conftest*
13742   glibcpp_cv_func__expl_use=yes
13743 else
13744   echo "configure: failed program was:" >&5
13745   cat conftest.$ac_ext >&5
13746   rm -rf conftest*
13747   glibcpp_cv_func__expl_use=no
13748 fi
13749 rm -f conftest*
13750       ac_ext=c
13751 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13752 ac_cpp='$CPP $CPPFLAGS'
13753 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13754 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13755 cross_compiling=$ac_cv_prog_cc_cross
13756
13757     
13758 fi
13759
13760   fi
13761   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
13762
13763     if test x$glibcpp_cv_func__expl_use = x"yes"; then
13764       for ac_func in _expl
13765 do
13766 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13767 echo "configure:13768: checking for $ac_func" >&5
13768 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13769   echo $ac_n "(cached) $ac_c" 1>&6
13770 else
13771   cat > conftest.$ac_ext <<EOF
13772 #line 13773 "configure"
13773 #include "confdefs.h"
13774 /* System header to define __stub macros and hopefully few prototypes,
13775     which can conflict with char $ac_func(); below.  */
13776 #include <assert.h>
13777 /* Override any gcc2 internal prototype to avoid an error.  */
13778 /* We use char because int might match the return type of a gcc2
13779     builtin and then its argument prototype would still apply.  */
13780 char $ac_func();
13781
13782 int main() {
13783
13784 /* The GNU C library defines this for functions which it implements
13785     to always fail with ENOSYS.  Some functions are actually named
13786     something starting with __ and the normal name is an alias.  */
13787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13788 choke me
13789 #else
13790 $ac_func();
13791 #endif
13792
13793 ; return 0; }
13794 EOF
13795 if { (eval echo configure:13796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13796   rm -rf conftest*
13797   eval "ac_cv_func_$ac_func=yes"
13798 else
13799   echo "configure: failed program was:" >&5
13800   cat conftest.$ac_ext >&5
13801   rm -rf conftest*
13802   eval "ac_cv_func_$ac_func=no"
13803 fi
13804 rm -f conftest*
13805 fi
13806
13807 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13808   echo "$ac_t""yes" 1>&6
13809     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13810   cat >> confdefs.h <<EOF
13811 #define $ac_tr_func 1
13812 EOF
13813  
13814 else
13815   echo "$ac_t""no" 1>&6
13816 fi
13817 done
13818     
13819     fi
13820   fi
13821
13822   
13823   
13824   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
13825 echo "configure:13826: checking for fabsl declaration" >&5
13826   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
13827     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
13828   echo $ac_n "(cached) $ac_c" 1>&6
13829 else
13830   
13831       
13832       ac_ext=C
13833 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13834 ac_cpp='$CXXCPP $CPPFLAGS'
13835 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13836 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13837 cross_compiling=$ac_cv_prog_cxx_cross
13838
13839       cat > conftest.$ac_ext <<EOF
13840 #line 13841 "configure"
13841 #include "confdefs.h"
13842 #include <math.h>
13843                       #ifdef HAVE_IEEEFP_H
13844                       #include <ieeefp.h>
13845                       #endif
13846                      
13847 int main() {
13848  fabsl(0);
13849 ; return 0; }
13850 EOF
13851 if { (eval echo configure:13852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13852   rm -rf conftest*
13853   glibcpp_cv_func_fabsl_use=yes
13854 else
13855   echo "configure: failed program was:" >&5
13856   cat conftest.$ac_ext >&5
13857   rm -rf conftest*
13858   glibcpp_cv_func_fabsl_use=no
13859 fi
13860 rm -f conftest*
13861       ac_ext=c
13862 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13863 ac_cpp='$CPP $CPPFLAGS'
13864 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13865 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13866 cross_compiling=$ac_cv_prog_cc_cross
13867
13868     
13869 fi
13870
13871   fi
13872   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
13873
13874   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
13875     for ac_func in fabsl
13876 do
13877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13878 echo "configure:13879: checking for $ac_func" >&5
13879 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13880   echo $ac_n "(cached) $ac_c" 1>&6
13881 else
13882   cat > conftest.$ac_ext <<EOF
13883 #line 13884 "configure"
13884 #include "confdefs.h"
13885 /* System header to define __stub macros and hopefully few prototypes,
13886     which can conflict with char $ac_func(); below.  */
13887 #include <assert.h>
13888 /* Override any gcc2 internal prototype to avoid an error.  */
13889 /* We use char because int might match the return type of a gcc2
13890     builtin and then its argument prototype would still apply.  */
13891 char $ac_func();
13892
13893 int main() {
13894
13895 /* The GNU C library defines this for functions which it implements
13896     to always fail with ENOSYS.  Some functions are actually named
13897     something starting with __ and the normal name is an alias.  */
13898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13899 choke me
13900 #else
13901 $ac_func();
13902 #endif
13903
13904 ; return 0; }
13905 EOF
13906 if { (eval echo configure:13907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13907   rm -rf conftest*
13908   eval "ac_cv_func_$ac_func=yes"
13909 else
13910   echo "configure: failed program was:" >&5
13911   cat conftest.$ac_ext >&5
13912   rm -rf conftest*
13913   eval "ac_cv_func_$ac_func=no"
13914 fi
13915 rm -f conftest*
13916 fi
13917
13918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13919   echo "$ac_t""yes" 1>&6
13920     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13921   cat >> confdefs.h <<EOF
13922 #define $ac_tr_func 1
13923 EOF
13924  
13925 else
13926   echo "$ac_t""no" 1>&6
13927 fi
13928 done
13929     
13930   else
13931     
13932   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
13933 echo "configure:13934: checking for _fabsl declaration" >&5
13934   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
13935     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
13936   echo $ac_n "(cached) $ac_c" 1>&6
13937 else
13938   
13939       
13940       ac_ext=C
13941 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13942 ac_cpp='$CXXCPP $CPPFLAGS'
13943 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13944 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13945 cross_compiling=$ac_cv_prog_cxx_cross
13946
13947       cat > conftest.$ac_ext <<EOF
13948 #line 13949 "configure"
13949 #include "confdefs.h"
13950 #include <math.h>
13951                       #ifdef HAVE_IEEEFP_H
13952                       #include <ieeefp.h>
13953                       #endif
13954                      
13955 int main() {
13956  _fabsl(0);
13957 ; return 0; }
13958 EOF
13959 if { (eval echo configure:13960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13960   rm -rf conftest*
13961   glibcpp_cv_func__fabsl_use=yes
13962 else
13963   echo "configure: failed program was:" >&5
13964   cat conftest.$ac_ext >&5
13965   rm -rf conftest*
13966   glibcpp_cv_func__fabsl_use=no
13967 fi
13968 rm -f conftest*
13969       ac_ext=c
13970 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13971 ac_cpp='$CPP $CPPFLAGS'
13972 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13973 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13974 cross_compiling=$ac_cv_prog_cc_cross
13975
13976     
13977 fi
13978
13979   fi
13980   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
13981
13982     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
13983       for ac_func in _fabsl
13984 do
13985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13986 echo "configure:13987: checking for $ac_func" >&5
13987 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13988   echo $ac_n "(cached) $ac_c" 1>&6
13989 else
13990   cat > conftest.$ac_ext <<EOF
13991 #line 13992 "configure"
13992 #include "confdefs.h"
13993 /* System header to define __stub macros and hopefully few prototypes,
13994     which can conflict with char $ac_func(); below.  */
13995 #include <assert.h>
13996 /* Override any gcc2 internal prototype to avoid an error.  */
13997 /* We use char because int might match the return type of a gcc2
13998     builtin and then its argument prototype would still apply.  */
13999 char $ac_func();
14000
14001 int main() {
14002
14003 /* The GNU C library defines this for functions which it implements
14004     to always fail with ENOSYS.  Some functions are actually named
14005     something starting with __ and the normal name is an alias.  */
14006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14007 choke me
14008 #else
14009 $ac_func();
14010 #endif
14011
14012 ; return 0; }
14013 EOF
14014 if { (eval echo configure:14015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14015   rm -rf conftest*
14016   eval "ac_cv_func_$ac_func=yes"
14017 else
14018   echo "configure: failed program was:" >&5
14019   cat conftest.$ac_ext >&5
14020   rm -rf conftest*
14021   eval "ac_cv_func_$ac_func=no"
14022 fi
14023 rm -f conftest*
14024 fi
14025
14026 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14027   echo "$ac_t""yes" 1>&6
14028     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14029   cat >> confdefs.h <<EOF
14030 #define $ac_tr_func 1
14031 EOF
14032  
14033 else
14034   echo "$ac_t""no" 1>&6
14035 fi
14036 done
14037     
14038     fi
14039   fi
14040
14041   
14042   
14043   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
14044 echo "configure:14045: checking for fmodl declaration" >&5
14045   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
14046     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
14047   echo $ac_n "(cached) $ac_c" 1>&6
14048 else
14049   
14050       
14051       ac_ext=C
14052 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14053 ac_cpp='$CXXCPP $CPPFLAGS'
14054 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14055 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14056 cross_compiling=$ac_cv_prog_cxx_cross
14057
14058       cat > conftest.$ac_ext <<EOF
14059 #line 14060 "configure"
14060 #include "confdefs.h"
14061 #include <math.h>
14062 int main() {
14063  fmodl(0, 0);
14064 ; return 0; }
14065 EOF
14066 if { (eval echo configure:14067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14067   rm -rf conftest*
14068   glibcpp_cv_func_fmodl_use=yes
14069 else
14070   echo "configure: failed program was:" >&5
14071   cat conftest.$ac_ext >&5
14072   rm -rf conftest*
14073   glibcpp_cv_func_fmodl_use=no
14074 fi
14075 rm -f conftest*
14076       ac_ext=c
14077 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14078 ac_cpp='$CPP $CPPFLAGS'
14079 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14080 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14081 cross_compiling=$ac_cv_prog_cc_cross
14082
14083     
14084 fi
14085
14086   fi
14087   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
14088
14089   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
14090     for ac_func in fmodl
14091 do
14092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14093 echo "configure:14094: checking for $ac_func" >&5
14094 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14095   echo $ac_n "(cached) $ac_c" 1>&6
14096 else
14097   cat > conftest.$ac_ext <<EOF
14098 #line 14099 "configure"
14099 #include "confdefs.h"
14100 /* System header to define __stub macros and hopefully few prototypes,
14101     which can conflict with char $ac_func(); below.  */
14102 #include <assert.h>
14103 /* Override any gcc2 internal prototype to avoid an error.  */
14104 /* We use char because int might match the return type of a gcc2
14105     builtin and then its argument prototype would still apply.  */
14106 char $ac_func();
14107
14108 int main() {
14109
14110 /* The GNU C library defines this for functions which it implements
14111     to always fail with ENOSYS.  Some functions are actually named
14112     something starting with __ and the normal name is an alias.  */
14113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14114 choke me
14115 #else
14116 $ac_func();
14117 #endif
14118
14119 ; return 0; }
14120 EOF
14121 if { (eval echo configure:14122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14122   rm -rf conftest*
14123   eval "ac_cv_func_$ac_func=yes"
14124 else
14125   echo "configure: failed program was:" >&5
14126   cat conftest.$ac_ext >&5
14127   rm -rf conftest*
14128   eval "ac_cv_func_$ac_func=no"
14129 fi
14130 rm -f conftest*
14131 fi
14132
14133 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14134   echo "$ac_t""yes" 1>&6
14135     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14136   cat >> confdefs.h <<EOF
14137 #define $ac_tr_func 1
14138 EOF
14139  
14140 else
14141   echo "$ac_t""no" 1>&6
14142 fi
14143 done
14144     
14145   else
14146     
14147   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
14148 echo "configure:14149: checking for _fmodl declaration" >&5
14149   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
14150     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
14151   echo $ac_n "(cached) $ac_c" 1>&6
14152 else
14153   
14154       
14155       ac_ext=C
14156 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14157 ac_cpp='$CXXCPP $CPPFLAGS'
14158 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14159 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14160 cross_compiling=$ac_cv_prog_cxx_cross
14161
14162       cat > conftest.$ac_ext <<EOF
14163 #line 14164 "configure"
14164 #include "confdefs.h"
14165 #include <math.h>
14166 int main() {
14167  _fmodl(0, 0);
14168 ; return 0; }
14169 EOF
14170 if { (eval echo configure:14171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14171   rm -rf conftest*
14172   glibcpp_cv_func__fmodl_use=yes
14173 else
14174   echo "configure: failed program was:" >&5
14175   cat conftest.$ac_ext >&5
14176   rm -rf conftest*
14177   glibcpp_cv_func__fmodl_use=no
14178 fi
14179 rm -f conftest*
14180       ac_ext=c
14181 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14182 ac_cpp='$CPP $CPPFLAGS'
14183 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14184 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14185 cross_compiling=$ac_cv_prog_cc_cross
14186
14187     
14188 fi
14189
14190   fi
14191   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
14192
14193     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
14194       for ac_func in _fmodl
14195 do
14196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14197 echo "configure:14198: checking for $ac_func" >&5
14198 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14199   echo $ac_n "(cached) $ac_c" 1>&6
14200 else
14201   cat > conftest.$ac_ext <<EOF
14202 #line 14203 "configure"
14203 #include "confdefs.h"
14204 /* System header to define __stub macros and hopefully few prototypes,
14205     which can conflict with char $ac_func(); below.  */
14206 #include <assert.h>
14207 /* Override any gcc2 internal prototype to avoid an error.  */
14208 /* We use char because int might match the return type of a gcc2
14209     builtin and then its argument prototype would still apply.  */
14210 char $ac_func();
14211
14212 int main() {
14213
14214 /* The GNU C library defines this for functions which it implements
14215     to always fail with ENOSYS.  Some functions are actually named
14216     something starting with __ and the normal name is an alias.  */
14217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14218 choke me
14219 #else
14220 $ac_func();
14221 #endif
14222
14223 ; return 0; }
14224 EOF
14225 if { (eval echo configure:14226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14226   rm -rf conftest*
14227   eval "ac_cv_func_$ac_func=yes"
14228 else
14229   echo "configure: failed program was:" >&5
14230   cat conftest.$ac_ext >&5
14231   rm -rf conftest*
14232   eval "ac_cv_func_$ac_func=no"
14233 fi
14234 rm -f conftest*
14235 fi
14236
14237 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14238   echo "$ac_t""yes" 1>&6
14239     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14240   cat >> confdefs.h <<EOF
14241 #define $ac_tr_func 1
14242 EOF
14243  
14244 else
14245   echo "$ac_t""no" 1>&6
14246 fi
14247 done
14248     
14249     fi
14250   fi
14251
14252   
14253   
14254   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
14255 echo "configure:14256: checking for frexpl declaration" >&5
14256   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
14257     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
14258   echo $ac_n "(cached) $ac_c" 1>&6
14259 else
14260   
14261       
14262       ac_ext=C
14263 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14264 ac_cpp='$CXXCPP $CPPFLAGS'
14265 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14266 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14267 cross_compiling=$ac_cv_prog_cxx_cross
14268
14269       cat > conftest.$ac_ext <<EOF
14270 #line 14271 "configure"
14271 #include "confdefs.h"
14272 #include <math.h>
14273 int main() {
14274  frexpl(0, 0);
14275 ; return 0; }
14276 EOF
14277 if { (eval echo configure:14278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14278   rm -rf conftest*
14279   glibcpp_cv_func_frexpl_use=yes
14280 else
14281   echo "configure: failed program was:" >&5
14282   cat conftest.$ac_ext >&5
14283   rm -rf conftest*
14284   glibcpp_cv_func_frexpl_use=no
14285 fi
14286 rm -f conftest*
14287       ac_ext=c
14288 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14289 ac_cpp='$CPP $CPPFLAGS'
14290 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14291 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14292 cross_compiling=$ac_cv_prog_cc_cross
14293
14294     
14295 fi
14296
14297   fi
14298   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
14299
14300   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
14301     for ac_func in frexpl
14302 do
14303 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14304 echo "configure:14305: checking for $ac_func" >&5
14305 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14306   echo $ac_n "(cached) $ac_c" 1>&6
14307 else
14308   cat > conftest.$ac_ext <<EOF
14309 #line 14310 "configure"
14310 #include "confdefs.h"
14311 /* System header to define __stub macros and hopefully few prototypes,
14312     which can conflict with char $ac_func(); below.  */
14313 #include <assert.h>
14314 /* Override any gcc2 internal prototype to avoid an error.  */
14315 /* We use char because int might match the return type of a gcc2
14316     builtin and then its argument prototype would still apply.  */
14317 char $ac_func();
14318
14319 int main() {
14320
14321 /* The GNU C library defines this for functions which it implements
14322     to always fail with ENOSYS.  Some functions are actually named
14323     something starting with __ and the normal name is an alias.  */
14324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14325 choke me
14326 #else
14327 $ac_func();
14328 #endif
14329
14330 ; return 0; }
14331 EOF
14332 if { (eval echo configure:14333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14333   rm -rf conftest*
14334   eval "ac_cv_func_$ac_func=yes"
14335 else
14336   echo "configure: failed program was:" >&5
14337   cat conftest.$ac_ext >&5
14338   rm -rf conftest*
14339   eval "ac_cv_func_$ac_func=no"
14340 fi
14341 rm -f conftest*
14342 fi
14343
14344 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14345   echo "$ac_t""yes" 1>&6
14346     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14347   cat >> confdefs.h <<EOF
14348 #define $ac_tr_func 1
14349 EOF
14350  
14351 else
14352   echo "$ac_t""no" 1>&6
14353 fi
14354 done
14355     
14356   else
14357     
14358   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
14359 echo "configure:14360: checking for _frexpl declaration" >&5
14360   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
14361     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
14362   echo $ac_n "(cached) $ac_c" 1>&6
14363 else
14364   
14365       
14366       ac_ext=C
14367 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14368 ac_cpp='$CXXCPP $CPPFLAGS'
14369 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14370 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14371 cross_compiling=$ac_cv_prog_cxx_cross
14372
14373       cat > conftest.$ac_ext <<EOF
14374 #line 14375 "configure"
14375 #include "confdefs.h"
14376 #include <math.h>
14377 int main() {
14378  _frexpl(0, 0);
14379 ; return 0; }
14380 EOF
14381 if { (eval echo configure:14382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14382   rm -rf conftest*
14383   glibcpp_cv_func__frexpl_use=yes
14384 else
14385   echo "configure: failed program was:" >&5
14386   cat conftest.$ac_ext >&5
14387   rm -rf conftest*
14388   glibcpp_cv_func__frexpl_use=no
14389 fi
14390 rm -f conftest*
14391       ac_ext=c
14392 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14393 ac_cpp='$CPP $CPPFLAGS'
14394 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14395 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14396 cross_compiling=$ac_cv_prog_cc_cross
14397
14398     
14399 fi
14400
14401   fi
14402   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
14403
14404     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
14405       for ac_func in _frexpl
14406 do
14407 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14408 echo "configure:14409: checking for $ac_func" >&5
14409 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14410   echo $ac_n "(cached) $ac_c" 1>&6
14411 else
14412   cat > conftest.$ac_ext <<EOF
14413 #line 14414 "configure"
14414 #include "confdefs.h"
14415 /* System header to define __stub macros and hopefully few prototypes,
14416     which can conflict with char $ac_func(); below.  */
14417 #include <assert.h>
14418 /* Override any gcc2 internal prototype to avoid an error.  */
14419 /* We use char because int might match the return type of a gcc2
14420     builtin and then its argument prototype would still apply.  */
14421 char $ac_func();
14422
14423 int main() {
14424
14425 /* The GNU C library defines this for functions which it implements
14426     to always fail with ENOSYS.  Some functions are actually named
14427     something starting with __ and the normal name is an alias.  */
14428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14429 choke me
14430 #else
14431 $ac_func();
14432 #endif
14433
14434 ; return 0; }
14435 EOF
14436 if { (eval echo configure:14437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14437   rm -rf conftest*
14438   eval "ac_cv_func_$ac_func=yes"
14439 else
14440   echo "configure: failed program was:" >&5
14441   cat conftest.$ac_ext >&5
14442   rm -rf conftest*
14443   eval "ac_cv_func_$ac_func=no"
14444 fi
14445 rm -f conftest*
14446 fi
14447
14448 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14449   echo "$ac_t""yes" 1>&6
14450     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14451   cat >> confdefs.h <<EOF
14452 #define $ac_tr_func 1
14453 EOF
14454  
14455 else
14456   echo "$ac_t""no" 1>&6
14457 fi
14458 done
14459     
14460     fi
14461   fi
14462
14463   
14464   
14465   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
14466 echo "configure:14467: checking for hypotl declaration" >&5
14467   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
14468     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
14469   echo $ac_n "(cached) $ac_c" 1>&6
14470 else
14471   
14472       
14473       ac_ext=C
14474 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14475 ac_cpp='$CXXCPP $CPPFLAGS'
14476 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14477 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14478 cross_compiling=$ac_cv_prog_cxx_cross
14479
14480       cat > conftest.$ac_ext <<EOF
14481 #line 14482 "configure"
14482 #include "confdefs.h"
14483 #include <math.h>
14484 int main() {
14485  hypotl(0, 0);
14486 ; return 0; }
14487 EOF
14488 if { (eval echo configure:14489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14489   rm -rf conftest*
14490   glibcpp_cv_func_hypotl_use=yes
14491 else
14492   echo "configure: failed program was:" >&5
14493   cat conftest.$ac_ext >&5
14494   rm -rf conftest*
14495   glibcpp_cv_func_hypotl_use=no
14496 fi
14497 rm -f conftest*
14498       ac_ext=c
14499 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14500 ac_cpp='$CPP $CPPFLAGS'
14501 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14502 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14503 cross_compiling=$ac_cv_prog_cc_cross
14504
14505     
14506 fi
14507
14508   fi
14509   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
14510
14511   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
14512     for ac_func in hypotl
14513 do
14514 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14515 echo "configure:14516: checking for $ac_func" >&5
14516 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14517   echo $ac_n "(cached) $ac_c" 1>&6
14518 else
14519   cat > conftest.$ac_ext <<EOF
14520 #line 14521 "configure"
14521 #include "confdefs.h"
14522 /* System header to define __stub macros and hopefully few prototypes,
14523     which can conflict with char $ac_func(); below.  */
14524 #include <assert.h>
14525 /* Override any gcc2 internal prototype to avoid an error.  */
14526 /* We use char because int might match the return type of a gcc2
14527     builtin and then its argument prototype would still apply.  */
14528 char $ac_func();
14529
14530 int main() {
14531
14532 /* The GNU C library defines this for functions which it implements
14533     to always fail with ENOSYS.  Some functions are actually named
14534     something starting with __ and the normal name is an alias.  */
14535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14536 choke me
14537 #else
14538 $ac_func();
14539 #endif
14540
14541 ; return 0; }
14542 EOF
14543 if { (eval echo configure:14544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14544   rm -rf conftest*
14545   eval "ac_cv_func_$ac_func=yes"
14546 else
14547   echo "configure: failed program was:" >&5
14548   cat conftest.$ac_ext >&5
14549   rm -rf conftest*
14550   eval "ac_cv_func_$ac_func=no"
14551 fi
14552 rm -f conftest*
14553 fi
14554
14555 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14556   echo "$ac_t""yes" 1>&6
14557     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14558   cat >> confdefs.h <<EOF
14559 #define $ac_tr_func 1
14560 EOF
14561  
14562 else
14563   echo "$ac_t""no" 1>&6
14564 fi
14565 done
14566     
14567   else
14568     
14569   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
14570 echo "configure:14571: checking for _hypotl declaration" >&5
14571   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
14572     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
14573   echo $ac_n "(cached) $ac_c" 1>&6
14574 else
14575   
14576       
14577       ac_ext=C
14578 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14579 ac_cpp='$CXXCPP $CPPFLAGS'
14580 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14581 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14582 cross_compiling=$ac_cv_prog_cxx_cross
14583
14584       cat > conftest.$ac_ext <<EOF
14585 #line 14586 "configure"
14586 #include "confdefs.h"
14587 #include <math.h>
14588 int main() {
14589  _hypotl(0, 0);
14590 ; return 0; }
14591 EOF
14592 if { (eval echo configure:14593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14593   rm -rf conftest*
14594   glibcpp_cv_func__hypotl_use=yes
14595 else
14596   echo "configure: failed program was:" >&5
14597   cat conftest.$ac_ext >&5
14598   rm -rf conftest*
14599   glibcpp_cv_func__hypotl_use=no
14600 fi
14601 rm -f conftest*
14602       ac_ext=c
14603 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14604 ac_cpp='$CPP $CPPFLAGS'
14605 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14606 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14607 cross_compiling=$ac_cv_prog_cc_cross
14608
14609     
14610 fi
14611
14612   fi
14613   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
14614
14615     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
14616       for ac_func in _hypotl
14617 do
14618 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14619 echo "configure:14620: checking for $ac_func" >&5
14620 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14621   echo $ac_n "(cached) $ac_c" 1>&6
14622 else
14623   cat > conftest.$ac_ext <<EOF
14624 #line 14625 "configure"
14625 #include "confdefs.h"
14626 /* System header to define __stub macros and hopefully few prototypes,
14627     which can conflict with char $ac_func(); below.  */
14628 #include <assert.h>
14629 /* Override any gcc2 internal prototype to avoid an error.  */
14630 /* We use char because int might match the return type of a gcc2
14631     builtin and then its argument prototype would still apply.  */
14632 char $ac_func();
14633
14634 int main() {
14635
14636 /* The GNU C library defines this for functions which it implements
14637     to always fail with ENOSYS.  Some functions are actually named
14638     something starting with __ and the normal name is an alias.  */
14639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14640 choke me
14641 #else
14642 $ac_func();
14643 #endif
14644
14645 ; return 0; }
14646 EOF
14647 if { (eval echo configure:14648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14648   rm -rf conftest*
14649   eval "ac_cv_func_$ac_func=yes"
14650 else
14651   echo "configure: failed program was:" >&5
14652   cat conftest.$ac_ext >&5
14653   rm -rf conftest*
14654   eval "ac_cv_func_$ac_func=no"
14655 fi
14656 rm -f conftest*
14657 fi
14658
14659 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14660   echo "$ac_t""yes" 1>&6
14661     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14662   cat >> confdefs.h <<EOF
14663 #define $ac_tr_func 1
14664 EOF
14665  
14666 else
14667   echo "$ac_t""no" 1>&6
14668 fi
14669 done
14670     
14671     fi
14672   fi
14673
14674   
14675   
14676   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
14677 echo "configure:14678: checking for ldexpl declaration" >&5
14678   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
14679     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
14680   echo $ac_n "(cached) $ac_c" 1>&6
14681 else
14682   
14683       
14684       ac_ext=C
14685 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14686 ac_cpp='$CXXCPP $CPPFLAGS'
14687 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14688 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14689 cross_compiling=$ac_cv_prog_cxx_cross
14690
14691       cat > conftest.$ac_ext <<EOF
14692 #line 14693 "configure"
14693 #include "confdefs.h"
14694 #include <math.h>
14695 int main() {
14696  ldexpl(0, 0);
14697 ; return 0; }
14698 EOF
14699 if { (eval echo configure:14700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14700   rm -rf conftest*
14701   glibcpp_cv_func_ldexpl_use=yes
14702 else
14703   echo "configure: failed program was:" >&5
14704   cat conftest.$ac_ext >&5
14705   rm -rf conftest*
14706   glibcpp_cv_func_ldexpl_use=no
14707 fi
14708 rm -f conftest*
14709       ac_ext=c
14710 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14711 ac_cpp='$CPP $CPPFLAGS'
14712 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14713 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14714 cross_compiling=$ac_cv_prog_cc_cross
14715
14716     
14717 fi
14718
14719   fi
14720   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
14721
14722   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
14723     for ac_func in ldexpl
14724 do
14725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14726 echo "configure:14727: checking for $ac_func" >&5
14727 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14728   echo $ac_n "(cached) $ac_c" 1>&6
14729 else
14730   cat > conftest.$ac_ext <<EOF
14731 #line 14732 "configure"
14732 #include "confdefs.h"
14733 /* System header to define __stub macros and hopefully few prototypes,
14734     which can conflict with char $ac_func(); below.  */
14735 #include <assert.h>
14736 /* Override any gcc2 internal prototype to avoid an error.  */
14737 /* We use char because int might match the return type of a gcc2
14738     builtin and then its argument prototype would still apply.  */
14739 char $ac_func();
14740
14741 int main() {
14742
14743 /* The GNU C library defines this for functions which it implements
14744     to always fail with ENOSYS.  Some functions are actually named
14745     something starting with __ and the normal name is an alias.  */
14746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14747 choke me
14748 #else
14749 $ac_func();
14750 #endif
14751
14752 ; return 0; }
14753 EOF
14754 if { (eval echo configure:14755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14755   rm -rf conftest*
14756   eval "ac_cv_func_$ac_func=yes"
14757 else
14758   echo "configure: failed program was:" >&5
14759   cat conftest.$ac_ext >&5
14760   rm -rf conftest*
14761   eval "ac_cv_func_$ac_func=no"
14762 fi
14763 rm -f conftest*
14764 fi
14765
14766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14767   echo "$ac_t""yes" 1>&6
14768     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14769   cat >> confdefs.h <<EOF
14770 #define $ac_tr_func 1
14771 EOF
14772  
14773 else
14774   echo "$ac_t""no" 1>&6
14775 fi
14776 done
14777     
14778   else
14779     
14780   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
14781 echo "configure:14782: checking for _ldexpl declaration" >&5
14782   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
14783     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
14784   echo $ac_n "(cached) $ac_c" 1>&6
14785 else
14786   
14787       
14788       ac_ext=C
14789 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14790 ac_cpp='$CXXCPP $CPPFLAGS'
14791 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14792 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14793 cross_compiling=$ac_cv_prog_cxx_cross
14794
14795       cat > conftest.$ac_ext <<EOF
14796 #line 14797 "configure"
14797 #include "confdefs.h"
14798 #include <math.h>
14799 int main() {
14800  _ldexpl(0, 0);
14801 ; return 0; }
14802 EOF
14803 if { (eval echo configure:14804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14804   rm -rf conftest*
14805   glibcpp_cv_func__ldexpl_use=yes
14806 else
14807   echo "configure: failed program was:" >&5
14808   cat conftest.$ac_ext >&5
14809   rm -rf conftest*
14810   glibcpp_cv_func__ldexpl_use=no
14811 fi
14812 rm -f conftest*
14813       ac_ext=c
14814 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14815 ac_cpp='$CPP $CPPFLAGS'
14816 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14817 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14818 cross_compiling=$ac_cv_prog_cc_cross
14819
14820     
14821 fi
14822
14823   fi
14824   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
14825
14826     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
14827       for ac_func in _ldexpl
14828 do
14829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14830 echo "configure:14831: checking for $ac_func" >&5
14831 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14832   echo $ac_n "(cached) $ac_c" 1>&6
14833 else
14834   cat > conftest.$ac_ext <<EOF
14835 #line 14836 "configure"
14836 #include "confdefs.h"
14837 /* System header to define __stub macros and hopefully few prototypes,
14838     which can conflict with char $ac_func(); below.  */
14839 #include <assert.h>
14840 /* Override any gcc2 internal prototype to avoid an error.  */
14841 /* We use char because int might match the return type of a gcc2
14842     builtin and then its argument prototype would still apply.  */
14843 char $ac_func();
14844
14845 int main() {
14846
14847 /* The GNU C library defines this for functions which it implements
14848     to always fail with ENOSYS.  Some functions are actually named
14849     something starting with __ and the normal name is an alias.  */
14850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14851 choke me
14852 #else
14853 $ac_func();
14854 #endif
14855
14856 ; return 0; }
14857 EOF
14858 if { (eval echo configure:14859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14859   rm -rf conftest*
14860   eval "ac_cv_func_$ac_func=yes"
14861 else
14862   echo "configure: failed program was:" >&5
14863   cat conftest.$ac_ext >&5
14864   rm -rf conftest*
14865   eval "ac_cv_func_$ac_func=no"
14866 fi
14867 rm -f conftest*
14868 fi
14869
14870 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14871   echo "$ac_t""yes" 1>&6
14872     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14873   cat >> confdefs.h <<EOF
14874 #define $ac_tr_func 1
14875 EOF
14876  
14877 else
14878   echo "$ac_t""no" 1>&6
14879 fi
14880 done
14881     
14882     fi
14883   fi
14884
14885   
14886   
14887   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
14888 echo "configure:14889: checking for logl declaration" >&5
14889   if test x${glibcpp_cv_func_logl_use+set} != xset; then
14890     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
14891   echo $ac_n "(cached) $ac_c" 1>&6
14892 else
14893   
14894       
14895       ac_ext=C
14896 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14897 ac_cpp='$CXXCPP $CPPFLAGS'
14898 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14899 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14900 cross_compiling=$ac_cv_prog_cxx_cross
14901
14902       cat > conftest.$ac_ext <<EOF
14903 #line 14904 "configure"
14904 #include "confdefs.h"
14905 #include <math.h>
14906                       #ifdef HAVE_IEEEFP_H
14907                       #include <ieeefp.h>
14908                       #endif
14909                      
14910 int main() {
14911  logl(0);
14912 ; return 0; }
14913 EOF
14914 if { (eval echo configure:14915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14915   rm -rf conftest*
14916   glibcpp_cv_func_logl_use=yes
14917 else
14918   echo "configure: failed program was:" >&5
14919   cat conftest.$ac_ext >&5
14920   rm -rf conftest*
14921   glibcpp_cv_func_logl_use=no
14922 fi
14923 rm -f conftest*
14924       ac_ext=c
14925 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14926 ac_cpp='$CPP $CPPFLAGS'
14927 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14928 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14929 cross_compiling=$ac_cv_prog_cc_cross
14930
14931     
14932 fi
14933
14934   fi
14935   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
14936
14937   if test x$glibcpp_cv_func_logl_use = x"yes"; then
14938     for ac_func in logl
14939 do
14940 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14941 echo "configure:14942: checking for $ac_func" >&5
14942 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14943   echo $ac_n "(cached) $ac_c" 1>&6
14944 else
14945   cat > conftest.$ac_ext <<EOF
14946 #line 14947 "configure"
14947 #include "confdefs.h"
14948 /* System header to define __stub macros and hopefully few prototypes,
14949     which can conflict with char $ac_func(); below.  */
14950 #include <assert.h>
14951 /* Override any gcc2 internal prototype to avoid an error.  */
14952 /* We use char because int might match the return type of a gcc2
14953     builtin and then its argument prototype would still apply.  */
14954 char $ac_func();
14955
14956 int main() {
14957
14958 /* The GNU C library defines this for functions which it implements
14959     to always fail with ENOSYS.  Some functions are actually named
14960     something starting with __ and the normal name is an alias.  */
14961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14962 choke me
14963 #else
14964 $ac_func();
14965 #endif
14966
14967 ; return 0; }
14968 EOF
14969 if { (eval echo configure:14970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14970   rm -rf conftest*
14971   eval "ac_cv_func_$ac_func=yes"
14972 else
14973   echo "configure: failed program was:" >&5
14974   cat conftest.$ac_ext >&5
14975   rm -rf conftest*
14976   eval "ac_cv_func_$ac_func=no"
14977 fi
14978 rm -f conftest*
14979 fi
14980
14981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14982   echo "$ac_t""yes" 1>&6
14983     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14984   cat >> confdefs.h <<EOF
14985 #define $ac_tr_func 1
14986 EOF
14987  
14988 else
14989   echo "$ac_t""no" 1>&6
14990 fi
14991 done
14992     
14993   else
14994     
14995   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
14996 echo "configure:14997: checking for _logl declaration" >&5
14997   if test x${glibcpp_cv_func__logl_use+set} != xset; then
14998     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
14999   echo $ac_n "(cached) $ac_c" 1>&6
15000 else
15001   
15002       
15003       ac_ext=C
15004 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15005 ac_cpp='$CXXCPP $CPPFLAGS'
15006 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15007 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15008 cross_compiling=$ac_cv_prog_cxx_cross
15009
15010       cat > conftest.$ac_ext <<EOF
15011 #line 15012 "configure"
15012 #include "confdefs.h"
15013 #include <math.h>
15014                       #ifdef HAVE_IEEEFP_H
15015                       #include <ieeefp.h>
15016                       #endif
15017                      
15018 int main() {
15019  _logl(0);
15020 ; return 0; }
15021 EOF
15022 if { (eval echo configure:15023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15023   rm -rf conftest*
15024   glibcpp_cv_func__logl_use=yes
15025 else
15026   echo "configure: failed program was:" >&5
15027   cat conftest.$ac_ext >&5
15028   rm -rf conftest*
15029   glibcpp_cv_func__logl_use=no
15030 fi
15031 rm -f conftest*
15032       ac_ext=c
15033 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15034 ac_cpp='$CPP $CPPFLAGS'
15035 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15036 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15037 cross_compiling=$ac_cv_prog_cc_cross
15038
15039     
15040 fi
15041
15042   fi
15043   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
15044
15045     if test x$glibcpp_cv_func__logl_use = x"yes"; then
15046       for ac_func in _logl
15047 do
15048 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15049 echo "configure:15050: checking for $ac_func" >&5
15050 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15051   echo $ac_n "(cached) $ac_c" 1>&6
15052 else
15053   cat > conftest.$ac_ext <<EOF
15054 #line 15055 "configure"
15055 #include "confdefs.h"
15056 /* System header to define __stub macros and hopefully few prototypes,
15057     which can conflict with char $ac_func(); below.  */
15058 #include <assert.h>
15059 /* Override any gcc2 internal prototype to avoid an error.  */
15060 /* We use char because int might match the return type of a gcc2
15061     builtin and then its argument prototype would still apply.  */
15062 char $ac_func();
15063
15064 int main() {
15065
15066 /* The GNU C library defines this for functions which it implements
15067     to always fail with ENOSYS.  Some functions are actually named
15068     something starting with __ and the normal name is an alias.  */
15069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15070 choke me
15071 #else
15072 $ac_func();
15073 #endif
15074
15075 ; return 0; }
15076 EOF
15077 if { (eval echo configure:15078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15078   rm -rf conftest*
15079   eval "ac_cv_func_$ac_func=yes"
15080 else
15081   echo "configure: failed program was:" >&5
15082   cat conftest.$ac_ext >&5
15083   rm -rf conftest*
15084   eval "ac_cv_func_$ac_func=no"
15085 fi
15086 rm -f conftest*
15087 fi
15088
15089 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15090   echo "$ac_t""yes" 1>&6
15091     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15092   cat >> confdefs.h <<EOF
15093 #define $ac_tr_func 1
15094 EOF
15095  
15096 else
15097   echo "$ac_t""no" 1>&6
15098 fi
15099 done
15100     
15101     fi
15102   fi
15103
15104   
15105   
15106   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
15107 echo "configure:15108: checking for log10l declaration" >&5
15108   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
15109     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
15110   echo $ac_n "(cached) $ac_c" 1>&6
15111 else
15112   
15113       
15114       ac_ext=C
15115 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15116 ac_cpp='$CXXCPP $CPPFLAGS'
15117 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15118 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15119 cross_compiling=$ac_cv_prog_cxx_cross
15120
15121       cat > conftest.$ac_ext <<EOF
15122 #line 15123 "configure"
15123 #include "confdefs.h"
15124 #include <math.h>
15125                       #ifdef HAVE_IEEEFP_H
15126                       #include <ieeefp.h>
15127                       #endif
15128                      
15129 int main() {
15130  log10l(0);
15131 ; return 0; }
15132 EOF
15133 if { (eval echo configure:15134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15134   rm -rf conftest*
15135   glibcpp_cv_func_log10l_use=yes
15136 else
15137   echo "configure: failed program was:" >&5
15138   cat conftest.$ac_ext >&5
15139   rm -rf conftest*
15140   glibcpp_cv_func_log10l_use=no
15141 fi
15142 rm -f conftest*
15143       ac_ext=c
15144 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15145 ac_cpp='$CPP $CPPFLAGS'
15146 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15147 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15148 cross_compiling=$ac_cv_prog_cc_cross
15149
15150     
15151 fi
15152
15153   fi
15154   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
15155
15156   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
15157     for ac_func in log10l
15158 do
15159 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15160 echo "configure:15161: checking for $ac_func" >&5
15161 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15162   echo $ac_n "(cached) $ac_c" 1>&6
15163 else
15164   cat > conftest.$ac_ext <<EOF
15165 #line 15166 "configure"
15166 #include "confdefs.h"
15167 /* System header to define __stub macros and hopefully few prototypes,
15168     which can conflict with char $ac_func(); below.  */
15169 #include <assert.h>
15170 /* Override any gcc2 internal prototype to avoid an error.  */
15171 /* We use char because int might match the return type of a gcc2
15172     builtin and then its argument prototype would still apply.  */
15173 char $ac_func();
15174
15175 int main() {
15176
15177 /* The GNU C library defines this for functions which it implements
15178     to always fail with ENOSYS.  Some functions are actually named
15179     something starting with __ and the normal name is an alias.  */
15180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15181 choke me
15182 #else
15183 $ac_func();
15184 #endif
15185
15186 ; return 0; }
15187 EOF
15188 if { (eval echo configure:15189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15189   rm -rf conftest*
15190   eval "ac_cv_func_$ac_func=yes"
15191 else
15192   echo "configure: failed program was:" >&5
15193   cat conftest.$ac_ext >&5
15194   rm -rf conftest*
15195   eval "ac_cv_func_$ac_func=no"
15196 fi
15197 rm -f conftest*
15198 fi
15199
15200 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15201   echo "$ac_t""yes" 1>&6
15202     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15203   cat >> confdefs.h <<EOF
15204 #define $ac_tr_func 1
15205 EOF
15206  
15207 else
15208   echo "$ac_t""no" 1>&6
15209 fi
15210 done
15211     
15212   else
15213     
15214   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
15215 echo "configure:15216: checking for _log10l declaration" >&5
15216   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
15217     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
15218   echo $ac_n "(cached) $ac_c" 1>&6
15219 else
15220   
15221       
15222       ac_ext=C
15223 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15224 ac_cpp='$CXXCPP $CPPFLAGS'
15225 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15226 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15227 cross_compiling=$ac_cv_prog_cxx_cross
15228
15229       cat > conftest.$ac_ext <<EOF
15230 #line 15231 "configure"
15231 #include "confdefs.h"
15232 #include <math.h>
15233                       #ifdef HAVE_IEEEFP_H
15234                       #include <ieeefp.h>
15235                       #endif
15236                      
15237 int main() {
15238  _log10l(0);
15239 ; return 0; }
15240 EOF
15241 if { (eval echo configure:15242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15242   rm -rf conftest*
15243   glibcpp_cv_func__log10l_use=yes
15244 else
15245   echo "configure: failed program was:" >&5
15246   cat conftest.$ac_ext >&5
15247   rm -rf conftest*
15248   glibcpp_cv_func__log10l_use=no
15249 fi
15250 rm -f conftest*
15251       ac_ext=c
15252 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15253 ac_cpp='$CPP $CPPFLAGS'
15254 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15255 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15256 cross_compiling=$ac_cv_prog_cc_cross
15257
15258     
15259 fi
15260
15261   fi
15262   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
15263
15264     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
15265       for ac_func in _log10l
15266 do
15267 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15268 echo "configure:15269: checking for $ac_func" >&5
15269 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15270   echo $ac_n "(cached) $ac_c" 1>&6
15271 else
15272   cat > conftest.$ac_ext <<EOF
15273 #line 15274 "configure"
15274 #include "confdefs.h"
15275 /* System header to define __stub macros and hopefully few prototypes,
15276     which can conflict with char $ac_func(); below.  */
15277 #include <assert.h>
15278 /* Override any gcc2 internal prototype to avoid an error.  */
15279 /* We use char because int might match the return type of a gcc2
15280     builtin and then its argument prototype would still apply.  */
15281 char $ac_func();
15282
15283 int main() {
15284
15285 /* The GNU C library defines this for functions which it implements
15286     to always fail with ENOSYS.  Some functions are actually named
15287     something starting with __ and the normal name is an alias.  */
15288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15289 choke me
15290 #else
15291 $ac_func();
15292 #endif
15293
15294 ; return 0; }
15295 EOF
15296 if { (eval echo configure:15297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15297   rm -rf conftest*
15298   eval "ac_cv_func_$ac_func=yes"
15299 else
15300   echo "configure: failed program was:" >&5
15301   cat conftest.$ac_ext >&5
15302   rm -rf conftest*
15303   eval "ac_cv_func_$ac_func=no"
15304 fi
15305 rm -f conftest*
15306 fi
15307
15308 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15309   echo "$ac_t""yes" 1>&6
15310     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15311   cat >> confdefs.h <<EOF
15312 #define $ac_tr_func 1
15313 EOF
15314  
15315 else
15316   echo "$ac_t""no" 1>&6
15317 fi
15318 done
15319     
15320     fi
15321   fi
15322
15323   
15324   
15325   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
15326 echo "configure:15327: checking for modfl declaration" >&5
15327   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
15328     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
15329   echo $ac_n "(cached) $ac_c" 1>&6
15330 else
15331   
15332       
15333       ac_ext=C
15334 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15335 ac_cpp='$CXXCPP $CPPFLAGS'
15336 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15337 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15338 cross_compiling=$ac_cv_prog_cxx_cross
15339
15340       cat > conftest.$ac_ext <<EOF
15341 #line 15342 "configure"
15342 #include "confdefs.h"
15343 #include <math.h>
15344 int main() {
15345  modfl(0, 0);
15346 ; return 0; }
15347 EOF
15348 if { (eval echo configure:15349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15349   rm -rf conftest*
15350   glibcpp_cv_func_modfl_use=yes
15351 else
15352   echo "configure: failed program was:" >&5
15353   cat conftest.$ac_ext >&5
15354   rm -rf conftest*
15355   glibcpp_cv_func_modfl_use=no
15356 fi
15357 rm -f conftest*
15358       ac_ext=c
15359 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15360 ac_cpp='$CPP $CPPFLAGS'
15361 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15362 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15363 cross_compiling=$ac_cv_prog_cc_cross
15364
15365     
15366 fi
15367
15368   fi
15369   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
15370
15371   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
15372     for ac_func in modfl
15373 do
15374 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15375 echo "configure:15376: checking for $ac_func" >&5
15376 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15377   echo $ac_n "(cached) $ac_c" 1>&6
15378 else
15379   cat > conftest.$ac_ext <<EOF
15380 #line 15381 "configure"
15381 #include "confdefs.h"
15382 /* System header to define __stub macros and hopefully few prototypes,
15383     which can conflict with char $ac_func(); below.  */
15384 #include <assert.h>
15385 /* Override any gcc2 internal prototype to avoid an error.  */
15386 /* We use char because int might match the return type of a gcc2
15387     builtin and then its argument prototype would still apply.  */
15388 char $ac_func();
15389
15390 int main() {
15391
15392 /* The GNU C library defines this for functions which it implements
15393     to always fail with ENOSYS.  Some functions are actually named
15394     something starting with __ and the normal name is an alias.  */
15395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15396 choke me
15397 #else
15398 $ac_func();
15399 #endif
15400
15401 ; return 0; }
15402 EOF
15403 if { (eval echo configure:15404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15404   rm -rf conftest*
15405   eval "ac_cv_func_$ac_func=yes"
15406 else
15407   echo "configure: failed program was:" >&5
15408   cat conftest.$ac_ext >&5
15409   rm -rf conftest*
15410   eval "ac_cv_func_$ac_func=no"
15411 fi
15412 rm -f conftest*
15413 fi
15414
15415 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15416   echo "$ac_t""yes" 1>&6
15417     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15418   cat >> confdefs.h <<EOF
15419 #define $ac_tr_func 1
15420 EOF
15421  
15422 else
15423   echo "$ac_t""no" 1>&6
15424 fi
15425 done
15426     
15427   else
15428     
15429   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
15430 echo "configure:15431: checking for _modfl declaration" >&5
15431   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
15432     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
15433   echo $ac_n "(cached) $ac_c" 1>&6
15434 else
15435   
15436       
15437       ac_ext=C
15438 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15439 ac_cpp='$CXXCPP $CPPFLAGS'
15440 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15441 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15442 cross_compiling=$ac_cv_prog_cxx_cross
15443
15444       cat > conftest.$ac_ext <<EOF
15445 #line 15446 "configure"
15446 #include "confdefs.h"
15447 #include <math.h>
15448 int main() {
15449  _modfl(0, 0);
15450 ; return 0; }
15451 EOF
15452 if { (eval echo configure:15453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15453   rm -rf conftest*
15454   glibcpp_cv_func__modfl_use=yes
15455 else
15456   echo "configure: failed program was:" >&5
15457   cat conftest.$ac_ext >&5
15458   rm -rf conftest*
15459   glibcpp_cv_func__modfl_use=no
15460 fi
15461 rm -f conftest*
15462       ac_ext=c
15463 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15464 ac_cpp='$CPP $CPPFLAGS'
15465 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15466 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15467 cross_compiling=$ac_cv_prog_cc_cross
15468
15469     
15470 fi
15471
15472   fi
15473   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
15474
15475     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
15476       for ac_func in _modfl
15477 do
15478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15479 echo "configure:15480: checking for $ac_func" >&5
15480 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15481   echo $ac_n "(cached) $ac_c" 1>&6
15482 else
15483   cat > conftest.$ac_ext <<EOF
15484 #line 15485 "configure"
15485 #include "confdefs.h"
15486 /* System header to define __stub macros and hopefully few prototypes,
15487     which can conflict with char $ac_func(); below.  */
15488 #include <assert.h>
15489 /* Override any gcc2 internal prototype to avoid an error.  */
15490 /* We use char because int might match the return type of a gcc2
15491     builtin and then its argument prototype would still apply.  */
15492 char $ac_func();
15493
15494 int main() {
15495
15496 /* The GNU C library defines this for functions which it implements
15497     to always fail with ENOSYS.  Some functions are actually named
15498     something starting with __ and the normal name is an alias.  */
15499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15500 choke me
15501 #else
15502 $ac_func();
15503 #endif
15504
15505 ; return 0; }
15506 EOF
15507 if { (eval echo configure:15508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15508   rm -rf conftest*
15509   eval "ac_cv_func_$ac_func=yes"
15510 else
15511   echo "configure: failed program was:" >&5
15512   cat conftest.$ac_ext >&5
15513   rm -rf conftest*
15514   eval "ac_cv_func_$ac_func=no"
15515 fi
15516 rm -f conftest*
15517 fi
15518
15519 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15520   echo "$ac_t""yes" 1>&6
15521     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15522   cat >> confdefs.h <<EOF
15523 #define $ac_tr_func 1
15524 EOF
15525  
15526 else
15527   echo "$ac_t""no" 1>&6
15528 fi
15529 done
15530     
15531     fi
15532   fi
15533
15534   
15535   
15536   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
15537 echo "configure:15538: checking for powl declaration" >&5
15538   if test x${glibcpp_cv_func_powl_use+set} != xset; then
15539     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
15540   echo $ac_n "(cached) $ac_c" 1>&6
15541 else
15542   
15543       
15544       ac_ext=C
15545 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15546 ac_cpp='$CXXCPP $CPPFLAGS'
15547 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15548 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15549 cross_compiling=$ac_cv_prog_cxx_cross
15550
15551       cat > conftest.$ac_ext <<EOF
15552 #line 15553 "configure"
15553 #include "confdefs.h"
15554 #include <math.h>
15555 int main() {
15556  powl(0, 0);
15557 ; return 0; }
15558 EOF
15559 if { (eval echo configure:15560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15560   rm -rf conftest*
15561   glibcpp_cv_func_powl_use=yes
15562 else
15563   echo "configure: failed program was:" >&5
15564   cat conftest.$ac_ext >&5
15565   rm -rf conftest*
15566   glibcpp_cv_func_powl_use=no
15567 fi
15568 rm -f conftest*
15569       ac_ext=c
15570 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15571 ac_cpp='$CPP $CPPFLAGS'
15572 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15573 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15574 cross_compiling=$ac_cv_prog_cc_cross
15575
15576     
15577 fi
15578
15579   fi
15580   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
15581
15582   if test x$glibcpp_cv_func_powl_use = x"yes"; then
15583     for ac_func in powl
15584 do
15585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15586 echo "configure:15587: checking for $ac_func" >&5
15587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15588   echo $ac_n "(cached) $ac_c" 1>&6
15589 else
15590   cat > conftest.$ac_ext <<EOF
15591 #line 15592 "configure"
15592 #include "confdefs.h"
15593 /* System header to define __stub macros and hopefully few prototypes,
15594     which can conflict with char $ac_func(); below.  */
15595 #include <assert.h>
15596 /* Override any gcc2 internal prototype to avoid an error.  */
15597 /* We use char because int might match the return type of a gcc2
15598     builtin and then its argument prototype would still apply.  */
15599 char $ac_func();
15600
15601 int main() {
15602
15603 /* The GNU C library defines this for functions which it implements
15604     to always fail with ENOSYS.  Some functions are actually named
15605     something starting with __ and the normal name is an alias.  */
15606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15607 choke me
15608 #else
15609 $ac_func();
15610 #endif
15611
15612 ; return 0; }
15613 EOF
15614 if { (eval echo configure:15615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15615   rm -rf conftest*
15616   eval "ac_cv_func_$ac_func=yes"
15617 else
15618   echo "configure: failed program was:" >&5
15619   cat conftest.$ac_ext >&5
15620   rm -rf conftest*
15621   eval "ac_cv_func_$ac_func=no"
15622 fi
15623 rm -f conftest*
15624 fi
15625
15626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15627   echo "$ac_t""yes" 1>&6
15628     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15629   cat >> confdefs.h <<EOF
15630 #define $ac_tr_func 1
15631 EOF
15632  
15633 else
15634   echo "$ac_t""no" 1>&6
15635 fi
15636 done
15637     
15638   else
15639     
15640   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
15641 echo "configure:15642: checking for _powl declaration" >&5
15642   if test x${glibcpp_cv_func__powl_use+set} != xset; then
15643     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
15644   echo $ac_n "(cached) $ac_c" 1>&6
15645 else
15646   
15647       
15648       ac_ext=C
15649 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15650 ac_cpp='$CXXCPP $CPPFLAGS'
15651 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15652 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15653 cross_compiling=$ac_cv_prog_cxx_cross
15654
15655       cat > conftest.$ac_ext <<EOF
15656 #line 15657 "configure"
15657 #include "confdefs.h"
15658 #include <math.h>
15659 int main() {
15660  _powl(0, 0);
15661 ; return 0; }
15662 EOF
15663 if { (eval echo configure:15664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15664   rm -rf conftest*
15665   glibcpp_cv_func__powl_use=yes
15666 else
15667   echo "configure: failed program was:" >&5
15668   cat conftest.$ac_ext >&5
15669   rm -rf conftest*
15670   glibcpp_cv_func__powl_use=no
15671 fi
15672 rm -f conftest*
15673       ac_ext=c
15674 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15675 ac_cpp='$CPP $CPPFLAGS'
15676 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15677 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15678 cross_compiling=$ac_cv_prog_cc_cross
15679
15680     
15681 fi
15682
15683   fi
15684   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
15685
15686     if test x$glibcpp_cv_func__powl_use = x"yes"; then
15687       for ac_func in _powl
15688 do
15689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15690 echo "configure:15691: checking for $ac_func" >&5
15691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15692   echo $ac_n "(cached) $ac_c" 1>&6
15693 else
15694   cat > conftest.$ac_ext <<EOF
15695 #line 15696 "configure"
15696 #include "confdefs.h"
15697 /* System header to define __stub macros and hopefully few prototypes,
15698     which can conflict with char $ac_func(); below.  */
15699 #include <assert.h>
15700 /* Override any gcc2 internal prototype to avoid an error.  */
15701 /* We use char because int might match the return type of a gcc2
15702     builtin and then its argument prototype would still apply.  */
15703 char $ac_func();
15704
15705 int main() {
15706
15707 /* The GNU C library defines this for functions which it implements
15708     to always fail with ENOSYS.  Some functions are actually named
15709     something starting with __ and the normal name is an alias.  */
15710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15711 choke me
15712 #else
15713 $ac_func();
15714 #endif
15715
15716 ; return 0; }
15717 EOF
15718 if { (eval echo configure:15719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15719   rm -rf conftest*
15720   eval "ac_cv_func_$ac_func=yes"
15721 else
15722   echo "configure: failed program was:" >&5
15723   cat conftest.$ac_ext >&5
15724   rm -rf conftest*
15725   eval "ac_cv_func_$ac_func=no"
15726 fi
15727 rm -f conftest*
15728 fi
15729
15730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15731   echo "$ac_t""yes" 1>&6
15732     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15733   cat >> confdefs.h <<EOF
15734 #define $ac_tr_func 1
15735 EOF
15736  
15737 else
15738   echo "$ac_t""no" 1>&6
15739 fi
15740 done
15741     
15742     fi
15743   fi
15744
15745   
15746   
15747   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
15748 echo "configure:15749: checking for sqrtl declaration" >&5
15749   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
15750     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
15751   echo $ac_n "(cached) $ac_c" 1>&6
15752 else
15753   
15754       
15755       ac_ext=C
15756 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15757 ac_cpp='$CXXCPP $CPPFLAGS'
15758 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15759 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15760 cross_compiling=$ac_cv_prog_cxx_cross
15761
15762       cat > conftest.$ac_ext <<EOF
15763 #line 15764 "configure"
15764 #include "confdefs.h"
15765 #include <math.h>
15766                       #ifdef HAVE_IEEEFP_H
15767                       #include <ieeefp.h>
15768                       #endif
15769                      
15770 int main() {
15771  sqrtl(0);
15772 ; return 0; }
15773 EOF
15774 if { (eval echo configure:15775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15775   rm -rf conftest*
15776   glibcpp_cv_func_sqrtl_use=yes
15777 else
15778   echo "configure: failed program was:" >&5
15779   cat conftest.$ac_ext >&5
15780   rm -rf conftest*
15781   glibcpp_cv_func_sqrtl_use=no
15782 fi
15783 rm -f conftest*
15784       ac_ext=c
15785 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15786 ac_cpp='$CPP $CPPFLAGS'
15787 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15788 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15789 cross_compiling=$ac_cv_prog_cc_cross
15790
15791     
15792 fi
15793
15794   fi
15795   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
15796
15797   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
15798     for ac_func in sqrtl
15799 do
15800 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15801 echo "configure:15802: checking for $ac_func" >&5
15802 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15803   echo $ac_n "(cached) $ac_c" 1>&6
15804 else
15805   cat > conftest.$ac_ext <<EOF
15806 #line 15807 "configure"
15807 #include "confdefs.h"
15808 /* System header to define __stub macros and hopefully few prototypes,
15809     which can conflict with char $ac_func(); below.  */
15810 #include <assert.h>
15811 /* Override any gcc2 internal prototype to avoid an error.  */
15812 /* We use char because int might match the return type of a gcc2
15813     builtin and then its argument prototype would still apply.  */
15814 char $ac_func();
15815
15816 int main() {
15817
15818 /* The GNU C library defines this for functions which it implements
15819     to always fail with ENOSYS.  Some functions are actually named
15820     something starting with __ and the normal name is an alias.  */
15821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15822 choke me
15823 #else
15824 $ac_func();
15825 #endif
15826
15827 ; return 0; }
15828 EOF
15829 if { (eval echo configure:15830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15830   rm -rf conftest*
15831   eval "ac_cv_func_$ac_func=yes"
15832 else
15833   echo "configure: failed program was:" >&5
15834   cat conftest.$ac_ext >&5
15835   rm -rf conftest*
15836   eval "ac_cv_func_$ac_func=no"
15837 fi
15838 rm -f conftest*
15839 fi
15840
15841 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15842   echo "$ac_t""yes" 1>&6
15843     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15844   cat >> confdefs.h <<EOF
15845 #define $ac_tr_func 1
15846 EOF
15847  
15848 else
15849   echo "$ac_t""no" 1>&6
15850 fi
15851 done
15852     
15853   else
15854     
15855   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
15856 echo "configure:15857: checking for _sqrtl declaration" >&5
15857   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
15858     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
15859   echo $ac_n "(cached) $ac_c" 1>&6
15860 else
15861   
15862       
15863       ac_ext=C
15864 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15865 ac_cpp='$CXXCPP $CPPFLAGS'
15866 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15867 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15868 cross_compiling=$ac_cv_prog_cxx_cross
15869
15870       cat > conftest.$ac_ext <<EOF
15871 #line 15872 "configure"
15872 #include "confdefs.h"
15873 #include <math.h>
15874                       #ifdef HAVE_IEEEFP_H
15875                       #include <ieeefp.h>
15876                       #endif
15877                      
15878 int main() {
15879  _sqrtl(0);
15880 ; return 0; }
15881 EOF
15882 if { (eval echo configure:15883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15883   rm -rf conftest*
15884   glibcpp_cv_func__sqrtl_use=yes
15885 else
15886   echo "configure: failed program was:" >&5
15887   cat conftest.$ac_ext >&5
15888   rm -rf conftest*
15889   glibcpp_cv_func__sqrtl_use=no
15890 fi
15891 rm -f conftest*
15892       ac_ext=c
15893 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15894 ac_cpp='$CPP $CPPFLAGS'
15895 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15896 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15897 cross_compiling=$ac_cv_prog_cc_cross
15898
15899     
15900 fi
15901
15902   fi
15903   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
15904
15905     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
15906       for ac_func in _sqrtl
15907 do
15908 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15909 echo "configure:15910: checking for $ac_func" >&5
15910 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15911   echo $ac_n "(cached) $ac_c" 1>&6
15912 else
15913   cat > conftest.$ac_ext <<EOF
15914 #line 15915 "configure"
15915 #include "confdefs.h"
15916 /* System header to define __stub macros and hopefully few prototypes,
15917     which can conflict with char $ac_func(); below.  */
15918 #include <assert.h>
15919 /* Override any gcc2 internal prototype to avoid an error.  */
15920 /* We use char because int might match the return type of a gcc2
15921     builtin and then its argument prototype would still apply.  */
15922 char $ac_func();
15923
15924 int main() {
15925
15926 /* The GNU C library defines this for functions which it implements
15927     to always fail with ENOSYS.  Some functions are actually named
15928     something starting with __ and the normal name is an alias.  */
15929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15930 choke me
15931 #else
15932 $ac_func();
15933 #endif
15934
15935 ; return 0; }
15936 EOF
15937 if { (eval echo configure:15938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15938   rm -rf conftest*
15939   eval "ac_cv_func_$ac_func=yes"
15940 else
15941   echo "configure: failed program was:" >&5
15942   cat conftest.$ac_ext >&5
15943   rm -rf conftest*
15944   eval "ac_cv_func_$ac_func=no"
15945 fi
15946 rm -f conftest*
15947 fi
15948
15949 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15950   echo "$ac_t""yes" 1>&6
15951     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15952   cat >> confdefs.h <<EOF
15953 #define $ac_tr_func 1
15954 EOF
15955  
15956 else
15957   echo "$ac_t""no" 1>&6
15958 fi
15959 done
15960     
15961     fi
15962   fi
15963
15964   
15965   
15966   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
15967 echo "configure:15968: checking for sincosl declaration" >&5
15968   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
15969     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
15970   echo $ac_n "(cached) $ac_c" 1>&6
15971 else
15972   
15973       
15974       ac_ext=C
15975 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15976 ac_cpp='$CXXCPP $CPPFLAGS'
15977 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15978 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15979 cross_compiling=$ac_cv_prog_cxx_cross
15980
15981       cat > conftest.$ac_ext <<EOF
15982 #line 15983 "configure"
15983 #include "confdefs.h"
15984 #include <math.h>
15985 int main() {
15986  sincosl(0, 0, 0);
15987 ; return 0; }
15988 EOF
15989 if { (eval echo configure:15990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15990   rm -rf conftest*
15991   glibcpp_cv_func_sincosl_use=yes
15992 else
15993   echo "configure: failed program was:" >&5
15994   cat conftest.$ac_ext >&5
15995   rm -rf conftest*
15996   glibcpp_cv_func_sincosl_use=no
15997 fi
15998 rm -f conftest*
15999       ac_ext=c
16000 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16001 ac_cpp='$CPP $CPPFLAGS'
16002 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16003 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16004 cross_compiling=$ac_cv_prog_cc_cross
16005
16006     
16007 fi
16008
16009   fi
16010   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
16011
16012   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
16013     for ac_func in sincosl
16014 do
16015 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16016 echo "configure:16017: checking for $ac_func" >&5
16017 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16018   echo $ac_n "(cached) $ac_c" 1>&6
16019 else
16020   cat > conftest.$ac_ext <<EOF
16021 #line 16022 "configure"
16022 #include "confdefs.h"
16023 /* System header to define __stub macros and hopefully few prototypes,
16024     which can conflict with char $ac_func(); below.  */
16025 #include <assert.h>
16026 /* Override any gcc2 internal prototype to avoid an error.  */
16027 /* We use char because int might match the return type of a gcc2
16028     builtin and then its argument prototype would still apply.  */
16029 char $ac_func();
16030
16031 int main() {
16032
16033 /* The GNU C library defines this for functions which it implements
16034     to always fail with ENOSYS.  Some functions are actually named
16035     something starting with __ and the normal name is an alias.  */
16036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16037 choke me
16038 #else
16039 $ac_func();
16040 #endif
16041
16042 ; return 0; }
16043 EOF
16044 if { (eval echo configure:16045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16045   rm -rf conftest*
16046   eval "ac_cv_func_$ac_func=yes"
16047 else
16048   echo "configure: failed program was:" >&5
16049   cat conftest.$ac_ext >&5
16050   rm -rf conftest*
16051   eval "ac_cv_func_$ac_func=no"
16052 fi
16053 rm -f conftest*
16054 fi
16055
16056 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16057   echo "$ac_t""yes" 1>&6
16058     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16059   cat >> confdefs.h <<EOF
16060 #define $ac_tr_func 1
16061 EOF
16062  
16063 else
16064   echo "$ac_t""no" 1>&6
16065 fi
16066 done
16067     
16068   else
16069     
16070   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
16071 echo "configure:16072: checking for _sincosl declaration" >&5
16072   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
16073     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
16074   echo $ac_n "(cached) $ac_c" 1>&6
16075 else
16076   
16077       
16078       ac_ext=C
16079 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16080 ac_cpp='$CXXCPP $CPPFLAGS'
16081 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16082 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16083 cross_compiling=$ac_cv_prog_cxx_cross
16084
16085       cat > conftest.$ac_ext <<EOF
16086 #line 16087 "configure"
16087 #include "confdefs.h"
16088 #include <math.h>
16089 int main() {
16090  _sincosl(0, 0, 0);
16091 ; return 0; }
16092 EOF
16093 if { (eval echo configure:16094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16094   rm -rf conftest*
16095   glibcpp_cv_func__sincosl_use=yes
16096 else
16097   echo "configure: failed program was:" >&5
16098   cat conftest.$ac_ext >&5
16099   rm -rf conftest*
16100   glibcpp_cv_func__sincosl_use=no
16101 fi
16102 rm -f conftest*
16103       ac_ext=c
16104 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16105 ac_cpp='$CPP $CPPFLAGS'
16106 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16107 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16108 cross_compiling=$ac_cv_prog_cc_cross
16109
16110     
16111 fi
16112
16113   fi
16114   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
16115
16116     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
16117       for ac_func in _sincosl
16118 do
16119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16120 echo "configure:16121: checking for $ac_func" >&5
16121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16122   echo $ac_n "(cached) $ac_c" 1>&6
16123 else
16124   cat > conftest.$ac_ext <<EOF
16125 #line 16126 "configure"
16126 #include "confdefs.h"
16127 /* System header to define __stub macros and hopefully few prototypes,
16128     which can conflict with char $ac_func(); below.  */
16129 #include <assert.h>
16130 /* Override any gcc2 internal prototype to avoid an error.  */
16131 /* We use char because int might match the return type of a gcc2
16132     builtin and then its argument prototype would still apply.  */
16133 char $ac_func();
16134
16135 int main() {
16136
16137 /* The GNU C library defines this for functions which it implements
16138     to always fail with ENOSYS.  Some functions are actually named
16139     something starting with __ and the normal name is an alias.  */
16140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16141 choke me
16142 #else
16143 $ac_func();
16144 #endif
16145
16146 ; return 0; }
16147 EOF
16148 if { (eval echo configure:16149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16149   rm -rf conftest*
16150   eval "ac_cv_func_$ac_func=yes"
16151 else
16152   echo "configure: failed program was:" >&5
16153   cat conftest.$ac_ext >&5
16154   rm -rf conftest*
16155   eval "ac_cv_func_$ac_func=no"
16156 fi
16157 rm -f conftest*
16158 fi
16159
16160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16161   echo "$ac_t""yes" 1>&6
16162     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16163   cat >> confdefs.h <<EOF
16164 #define $ac_tr_func 1
16165 EOF
16166  
16167 else
16168   echo "$ac_t""no" 1>&6
16169 fi
16170 done
16171     
16172     fi
16173   fi
16174
16175   
16176   
16177   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
16178 echo "configure:16179: checking for finitel declaration" >&5
16179   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
16180     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
16181   echo $ac_n "(cached) $ac_c" 1>&6
16182 else
16183   
16184       
16185       ac_ext=C
16186 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16187 ac_cpp='$CXXCPP $CPPFLAGS'
16188 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16189 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16190 cross_compiling=$ac_cv_prog_cxx_cross
16191
16192       cat > conftest.$ac_ext <<EOF
16193 #line 16194 "configure"
16194 #include "confdefs.h"
16195 #include <math.h>
16196                       #ifdef HAVE_IEEEFP_H
16197                       #include <ieeefp.h>
16198                       #endif
16199                      
16200 int main() {
16201  finitel(0);
16202 ; return 0; }
16203 EOF
16204 if { (eval echo configure:16205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16205   rm -rf conftest*
16206   glibcpp_cv_func_finitel_use=yes
16207 else
16208   echo "configure: failed program was:" >&5
16209   cat conftest.$ac_ext >&5
16210   rm -rf conftest*
16211   glibcpp_cv_func_finitel_use=no
16212 fi
16213 rm -f conftest*
16214       ac_ext=c
16215 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16216 ac_cpp='$CPP $CPPFLAGS'
16217 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16218 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16219 cross_compiling=$ac_cv_prog_cc_cross
16220
16221     
16222 fi
16223
16224   fi
16225   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
16226
16227   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
16228     for ac_func in finitel
16229 do
16230 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16231 echo "configure:16232: checking for $ac_func" >&5
16232 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 /* System header to define __stub macros and hopefully few prototypes,
16239     which can conflict with char $ac_func(); below.  */
16240 #include <assert.h>
16241 /* Override any gcc2 internal prototype to avoid an error.  */
16242 /* We use char because int might match the return type of a gcc2
16243     builtin and then its argument prototype would still apply.  */
16244 char $ac_func();
16245
16246 int main() {
16247
16248 /* The GNU C library defines this for functions which it implements
16249     to always fail with ENOSYS.  Some functions are actually named
16250     something starting with __ and the normal name is an alias.  */
16251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16252 choke me
16253 #else
16254 $ac_func();
16255 #endif
16256
16257 ; return 0; }
16258 EOF
16259 if { (eval echo configure:16260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16260   rm -rf conftest*
16261   eval "ac_cv_func_$ac_func=yes"
16262 else
16263   echo "configure: failed program was:" >&5
16264   cat conftest.$ac_ext >&5
16265   rm -rf conftest*
16266   eval "ac_cv_func_$ac_func=no"
16267 fi
16268 rm -f conftest*
16269 fi
16270
16271 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16272   echo "$ac_t""yes" 1>&6
16273     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16274   cat >> confdefs.h <<EOF
16275 #define $ac_tr_func 1
16276 EOF
16277  
16278 else
16279   echo "$ac_t""no" 1>&6
16280 fi
16281 done
16282     
16283   else
16284     
16285   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
16286 echo "configure:16287: checking for _finitel declaration" >&5
16287   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
16288     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
16289   echo $ac_n "(cached) $ac_c" 1>&6
16290 else
16291   
16292       
16293       ac_ext=C
16294 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16295 ac_cpp='$CXXCPP $CPPFLAGS'
16296 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16297 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16298 cross_compiling=$ac_cv_prog_cxx_cross
16299
16300       cat > conftest.$ac_ext <<EOF
16301 #line 16302 "configure"
16302 #include "confdefs.h"
16303 #include <math.h>
16304                       #ifdef HAVE_IEEEFP_H
16305                       #include <ieeefp.h>
16306                       #endif
16307                      
16308 int main() {
16309  _finitel(0);
16310 ; return 0; }
16311 EOF
16312 if { (eval echo configure:16313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16313   rm -rf conftest*
16314   glibcpp_cv_func__finitel_use=yes
16315 else
16316   echo "configure: failed program was:" >&5
16317   cat conftest.$ac_ext >&5
16318   rm -rf conftest*
16319   glibcpp_cv_func__finitel_use=no
16320 fi
16321 rm -f conftest*
16322       ac_ext=c
16323 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16324 ac_cpp='$CPP $CPPFLAGS'
16325 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16326 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16327 cross_compiling=$ac_cv_prog_cc_cross
16328
16329     
16330 fi
16331
16332   fi
16333   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
16334
16335     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
16336       for ac_func in _finitel
16337 do
16338 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16339 echo "configure:16340: checking for $ac_func" >&5
16340 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16341   echo $ac_n "(cached) $ac_c" 1>&6
16342 else
16343   cat > conftest.$ac_ext <<EOF
16344 #line 16345 "configure"
16345 #include "confdefs.h"
16346 /* System header to define __stub macros and hopefully few prototypes,
16347     which can conflict with char $ac_func(); below.  */
16348 #include <assert.h>
16349 /* Override any gcc2 internal prototype to avoid an error.  */
16350 /* We use char because int might match the return type of a gcc2
16351     builtin and then its argument prototype would still apply.  */
16352 char $ac_func();
16353
16354 int main() {
16355
16356 /* The GNU C library defines this for functions which it implements
16357     to always fail with ENOSYS.  Some functions are actually named
16358     something starting with __ and the normal name is an alias.  */
16359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16360 choke me
16361 #else
16362 $ac_func();
16363 #endif
16364
16365 ; return 0; }
16366 EOF
16367 if { (eval echo configure:16368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16368   rm -rf conftest*
16369   eval "ac_cv_func_$ac_func=yes"
16370 else
16371   echo "configure: failed program was:" >&5
16372   cat conftest.$ac_ext >&5
16373   rm -rf conftest*
16374   eval "ac_cv_func_$ac_func=no"
16375 fi
16376 rm -f conftest*
16377 fi
16378
16379 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16380   echo "$ac_t""yes" 1>&6
16381     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16382   cat >> confdefs.h <<EOF
16383 #define $ac_tr_func 1
16384 EOF
16385  
16386 else
16387   echo "$ac_t""no" 1>&6
16388 fi
16389 done
16390     
16391     fi
16392   fi
16393
16394
16395         
16396     
16397   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
16398 echo "configure:16399: checking for _float trig functions" >&5
16399   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
16400   echo $ac_n "(cached) $ac_c" 1>&6
16401 else
16402   
16403     
16404     ac_ext=C
16405 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16406 ac_cpp='$CXXCPP $CPPFLAGS'
16407 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16408 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16409 cross_compiling=$ac_cv_prog_cxx_cross
16410
16411     cat > conftest.$ac_ext <<EOF
16412 #line 16413 "configure"
16413 #include "confdefs.h"
16414 #include <math.h>
16415 int main() {
16416  `for x in _acosf _asinf _atanf \
16417                                           _cosf _sinf _tanf \
16418                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
16419 ; return 0; }
16420 EOF
16421 if { (eval echo configure:16422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16422   rm -rf conftest*
16423   glibcpp_cv_func__float_trig_use=yes
16424 else
16425   echo "configure: failed program was:" >&5
16426   cat conftest.$ac_ext >&5
16427   rm -rf conftest*
16428   glibcpp_cv_func__float_trig_use=no
16429 fi
16430 rm -f conftest*
16431     ac_ext=c
16432 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16433 ac_cpp='$CPP $CPPFLAGS'
16434 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16435 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16436 cross_compiling=$ac_cv_prog_cc_cross
16437
16438 fi
16439
16440   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
16441   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
16442     for ac_func in _acosf _asinf _atanf \
16443                                           _cosf _sinf _tanf \
16444                                           _coshf _sinhf _tanhf
16445 do
16446 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16447 echo "configure:16448: checking for $ac_func" >&5
16448 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16449   echo $ac_n "(cached) $ac_c" 1>&6
16450 else
16451   cat > conftest.$ac_ext <<EOF
16452 #line 16453 "configure"
16453 #include "confdefs.h"
16454 /* System header to define __stub macros and hopefully few prototypes,
16455     which can conflict with char $ac_func(); below.  */
16456 #include <assert.h>
16457 /* Override any gcc2 internal prototype to avoid an error.  */
16458 /* We use char because int might match the return type of a gcc2
16459     builtin and then its argument prototype would still apply.  */
16460 char $ac_func();
16461
16462 int main() {
16463
16464 /* The GNU C library defines this for functions which it implements
16465     to always fail with ENOSYS.  Some functions are actually named
16466     something starting with __ and the normal name is an alias.  */
16467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16468 choke me
16469 #else
16470 $ac_func();
16471 #endif
16472
16473 ; return 0; }
16474 EOF
16475 if { (eval echo configure:16476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16476   rm -rf conftest*
16477   eval "ac_cv_func_$ac_func=yes"
16478 else
16479   echo "configure: failed program was:" >&5
16480   cat conftest.$ac_ext >&5
16481   rm -rf conftest*
16482   eval "ac_cv_func_$ac_func=no"
16483 fi
16484 rm -f conftest*
16485 fi
16486
16487 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16488   echo "$ac_t""yes" 1>&6
16489     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16490   cat >> confdefs.h <<EOF
16491 #define $ac_tr_func 1
16492 EOF
16493  
16494 else
16495   echo "$ac_t""no" 1>&6
16496 fi
16497 done
16498
16499   fi
16500
16501   
16502   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
16503 echo "configure:16504: checking for _float round functions" >&5
16504   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
16505   echo $ac_n "(cached) $ac_c" 1>&6
16506 else
16507   
16508     
16509     ac_ext=C
16510 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16511 ac_cpp='$CXXCPP $CPPFLAGS'
16512 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16513 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16514 cross_compiling=$ac_cv_prog_cxx_cross
16515
16516     cat > conftest.$ac_ext <<EOF
16517 #line 16518 "configure"
16518 #include "confdefs.h"
16519 #include <math.h>
16520 int main() {
16521  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
16522 ; return 0; }
16523 EOF
16524 if { (eval echo configure:16525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16525   rm -rf conftest*
16526   glibcpp_cv_func__float_round_use=yes
16527 else
16528   echo "configure: failed program was:" >&5
16529   cat conftest.$ac_ext >&5
16530   rm -rf conftest*
16531   glibcpp_cv_func__float_round_use=no
16532 fi
16533 rm -f conftest*
16534     ac_ext=c
16535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16536 ac_cpp='$CPP $CPPFLAGS'
16537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16539 cross_compiling=$ac_cv_prog_cc_cross
16540
16541 fi
16542
16543   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
16544   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
16545     for ac_func in _ceilf _floorf
16546 do
16547 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16548 echo "configure:16549: checking for $ac_func" >&5
16549 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16550   echo $ac_n "(cached) $ac_c" 1>&6
16551 else
16552   cat > conftest.$ac_ext <<EOF
16553 #line 16554 "configure"
16554 #include "confdefs.h"
16555 /* System header to define __stub macros and hopefully few prototypes,
16556     which can conflict with char $ac_func(); below.  */
16557 #include <assert.h>
16558 /* Override any gcc2 internal prototype to avoid an error.  */
16559 /* We use char because int might match the return type of a gcc2
16560     builtin and then its argument prototype would still apply.  */
16561 char $ac_func();
16562
16563 int main() {
16564
16565 /* The GNU C library defines this for functions which it implements
16566     to always fail with ENOSYS.  Some functions are actually named
16567     something starting with __ and the normal name is an alias.  */
16568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16569 choke me
16570 #else
16571 $ac_func();
16572 #endif
16573
16574 ; return 0; }
16575 EOF
16576 if { (eval echo configure:16577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16577   rm -rf conftest*
16578   eval "ac_cv_func_$ac_func=yes"
16579 else
16580   echo "configure: failed program was:" >&5
16581   cat conftest.$ac_ext >&5
16582   rm -rf conftest*
16583   eval "ac_cv_func_$ac_func=no"
16584 fi
16585 rm -f conftest*
16586 fi
16587
16588 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16589   echo "$ac_t""yes" 1>&6
16590     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16591   cat >> confdefs.h <<EOF
16592 #define $ac_tr_func 1
16593 EOF
16594  
16595 else
16596   echo "$ac_t""no" 1>&6
16597 fi
16598 done
16599
16600   fi
16601
16602
16603     
16604   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
16605 echo "configure:16606: checking for _long double trig functions" >&5
16606   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
16607   echo $ac_n "(cached) $ac_c" 1>&6
16608 else
16609   
16610     
16611     ac_ext=C
16612 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16613 ac_cpp='$CXXCPP $CPPFLAGS'
16614 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16615 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16616 cross_compiling=$ac_cv_prog_cxx_cross
16617
16618     cat > conftest.$ac_ext <<EOF
16619 #line 16620 "configure"
16620 #include "confdefs.h"
16621 #include <math.h>
16622 int main() {
16623  `for x in _acosl _asinl _atanl \
16624                                           _cosl _sinl _tanl \
16625                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
16626 ; return 0; }
16627 EOF
16628 if { (eval echo configure:16629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16629   rm -rf conftest*
16630   glibcpp_cv_func__long_double_trig_use=yes
16631 else
16632   echo "configure: failed program was:" >&5
16633   cat conftest.$ac_ext >&5
16634   rm -rf conftest*
16635   glibcpp_cv_func__long_double_trig_use=no
16636 fi
16637 rm -f conftest*
16638     ac_ext=c
16639 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16640 ac_cpp='$CPP $CPPFLAGS'
16641 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16642 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16643 cross_compiling=$ac_cv_prog_cc_cross
16644
16645 fi
16646
16647   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
16648   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
16649     for ac_func in _acosl _asinl _atanl \
16650                                           _cosl _sinl _tanl \
16651                                           _coshl _sinhl _tanhl
16652 do
16653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16654 echo "configure:16655: checking for $ac_func" >&5
16655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16656   echo $ac_n "(cached) $ac_c" 1>&6
16657 else
16658   cat > conftest.$ac_ext <<EOF
16659 #line 16660 "configure"
16660 #include "confdefs.h"
16661 /* System header to define __stub macros and hopefully few prototypes,
16662     which can conflict with char $ac_func(); below.  */
16663 #include <assert.h>
16664 /* Override any gcc2 internal prototype to avoid an error.  */
16665 /* We use char because int might match the return type of a gcc2
16666     builtin and then its argument prototype would still apply.  */
16667 char $ac_func();
16668
16669 int main() {
16670
16671 /* The GNU C library defines this for functions which it implements
16672     to always fail with ENOSYS.  Some functions are actually named
16673     something starting with __ and the normal name is an alias.  */
16674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16675 choke me
16676 #else
16677 $ac_func();
16678 #endif
16679
16680 ; return 0; }
16681 EOF
16682 if { (eval echo configure:16683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16683   rm -rf conftest*
16684   eval "ac_cv_func_$ac_func=yes"
16685 else
16686   echo "configure: failed program was:" >&5
16687   cat conftest.$ac_ext >&5
16688   rm -rf conftest*
16689   eval "ac_cv_func_$ac_func=no"
16690 fi
16691 rm -f conftest*
16692 fi
16693
16694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16695   echo "$ac_t""yes" 1>&6
16696     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16697   cat >> confdefs.h <<EOF
16698 #define $ac_tr_func 1
16699 EOF
16700  
16701 else
16702   echo "$ac_t""no" 1>&6
16703 fi
16704 done
16705
16706   fi
16707
16708   
16709   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
16710 echo "configure:16711: checking for _long double round functions" >&5
16711   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
16712   echo $ac_n "(cached) $ac_c" 1>&6
16713 else
16714   
16715     
16716     ac_ext=C
16717 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16718 ac_cpp='$CXXCPP $CPPFLAGS'
16719 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16720 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16721 cross_compiling=$ac_cv_prog_cxx_cross
16722
16723     cat > conftest.$ac_ext <<EOF
16724 #line 16725 "configure"
16725 #include "confdefs.h"
16726 #include <math.h>
16727 int main() {
16728  `for x in _ceill _floorl; do echo "$x (0);"; done` 
16729 ; return 0; }
16730 EOF
16731 if { (eval echo configure:16732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16732   rm -rf conftest*
16733   glibcpp_cv_func__long_double_round_use=yes
16734 else
16735   echo "configure: failed program was:" >&5
16736   cat conftest.$ac_ext >&5
16737   rm -rf conftest*
16738   glibcpp_cv_func__long_double_round_use=no
16739 fi
16740 rm -f conftest*
16741     ac_ext=c
16742 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16743 ac_cpp='$CPP $CPPFLAGS'
16744 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16745 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16746 cross_compiling=$ac_cv_prog_cc_cross
16747
16748 fi
16749
16750   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
16751   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
16752     for ac_func in _ceill _floorl
16753 do
16754 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16755 echo "configure:16756: checking for $ac_func" >&5
16756 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16757   echo $ac_n "(cached) $ac_c" 1>&6
16758 else
16759   cat > conftest.$ac_ext <<EOF
16760 #line 16761 "configure"
16761 #include "confdefs.h"
16762 /* System header to define __stub macros and hopefully few prototypes,
16763     which can conflict with char $ac_func(); below.  */
16764 #include <assert.h>
16765 /* Override any gcc2 internal prototype to avoid an error.  */
16766 /* We use char because int might match the return type of a gcc2
16767     builtin and then its argument prototype would still apply.  */
16768 char $ac_func();
16769
16770 int main() {
16771
16772 /* The GNU C library defines this for functions which it implements
16773     to always fail with ENOSYS.  Some functions are actually named
16774     something starting with __ and the normal name is an alias.  */
16775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16776 choke me
16777 #else
16778 $ac_func();
16779 #endif
16780
16781 ; return 0; }
16782 EOF
16783 if { (eval echo configure:16784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16784   rm -rf conftest*
16785   eval "ac_cv_func_$ac_func=yes"
16786 else
16787   echo "configure: failed program was:" >&5
16788   cat conftest.$ac_ext >&5
16789   rm -rf conftest*
16790   eval "ac_cv_func_$ac_func=no"
16791 fi
16792 rm -f conftest*
16793 fi
16794
16795 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16796   echo "$ac_t""yes" 1>&6
16797     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16798   cat >> confdefs.h <<EOF
16799 #define $ac_tr_func 1
16800 EOF
16801  
16802 else
16803   echo "$ac_t""no" 1>&6
16804 fi
16805 done
16806
16807   fi
16808
16809
16810   LIBS="$ac_save_LIBS"
16811   CXXFLAGS="$ac_save_CXXFLAGS"
16812
16813   
16814     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
16815 echo "configure:16816: checking for main in -lm" >&5
16816 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
16817 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16818   echo $ac_n "(cached) $ac_c" 1>&6
16819 else
16820   ac_save_LIBS="$LIBS"
16821 LIBS="-lm  $LIBS"
16822 cat > conftest.$ac_ext <<EOF
16823 #line 16824 "configure"
16824 #include "confdefs.h"
16825
16826 int main() {
16827 main()
16828 ; return 0; }
16829 EOF
16830 if { (eval echo configure:16831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16831   rm -rf conftest*
16832   eval "ac_cv_lib_$ac_lib_var=yes"
16833 else
16834   echo "configure: failed program was:" >&5
16835   cat conftest.$ac_ext >&5
16836   rm -rf conftest*
16837   eval "ac_cv_lib_$ac_lib_var=no"
16838 fi
16839 rm -f conftest*
16840 LIBS="$ac_save_LIBS"
16841
16842 fi
16843 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16844   echo "$ac_t""yes" 1>&6
16845     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
16846     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
16847   cat >> confdefs.h <<EOF
16848 #define $ac_tr_lib 1
16849 EOF
16850
16851   LIBS="-lm $LIBS"
16852
16853 else
16854   echo "$ac_t""no" 1>&6
16855 fi
16856
16857   for ac_func in nan copysignf
16858 do
16859 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16860 echo "configure:16861: checking for $ac_func" >&5
16861 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16862   echo $ac_n "(cached) $ac_c" 1>&6
16863 else
16864   cat > conftest.$ac_ext <<EOF
16865 #line 16866 "configure"
16866 #include "confdefs.h"
16867 /* System header to define __stub macros and hopefully few prototypes,
16868     which can conflict with char $ac_func(); below.  */
16869 #include <assert.h>
16870 /* Override any gcc2 internal prototype to avoid an error.  */
16871 /* We use char because int might match the return type of a gcc2
16872     builtin and then its argument prototype would still apply.  */
16873 char $ac_func();
16874
16875 int main() {
16876
16877 /* The GNU C library defines this for functions which it implements
16878     to always fail with ENOSYS.  Some functions are actually named
16879     something starting with __ and the normal name is an alias.  */
16880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16881 choke me
16882 #else
16883 $ac_func();
16884 #endif
16885
16886 ; return 0; }
16887 EOF
16888 if { (eval echo configure:16889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16889   rm -rf conftest*
16890   eval "ac_cv_func_$ac_func=yes"
16891 else
16892   echo "configure: failed program was:" >&5
16893   cat conftest.$ac_ext >&5
16894   rm -rf conftest*
16895   eval "ac_cv_func_$ac_func=no"
16896 fi
16897 rm -f conftest*
16898 fi
16899
16900 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16901   echo "$ac_t""yes" 1>&6
16902     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16903   cat >> confdefs.h <<EOF
16904 #define $ac_tr_func 1
16905 EOF
16906  
16907 else
16908   echo "$ac_t""no" 1>&6
16909 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
16910 fi
16911 done
16912
16913
16914
16915           USE_COMPLEX_LONG_DOUBLE=no
16916   if test x$ac_cv_func_copysignl = x"yes"; then
16917     USE_COMPLEX_LONG_DOUBLE=yes
16918     for ac_func in signbitl
16919 do
16920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16921 echo "configure:16922: checking for $ac_func" >&5
16922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16923   echo $ac_n "(cached) $ac_c" 1>&6
16924 else
16925   cat > conftest.$ac_ext <<EOF
16926 #line 16927 "configure"
16927 #include "confdefs.h"
16928 /* System header to define __stub macros and hopefully few prototypes,
16929     which can conflict with char $ac_func(); below.  */
16930 #include <assert.h>
16931 /* Override any gcc2 internal prototype to avoid an error.  */
16932 /* We use char because int might match the return type of a gcc2
16933     builtin and then its argument prototype would still apply.  */
16934 char $ac_func();
16935
16936 int main() {
16937
16938 /* The GNU C library defines this for functions which it implements
16939     to always fail with ENOSYS.  Some functions are actually named
16940     something starting with __ and the normal name is an alias.  */
16941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16942 choke me
16943 #else
16944 $ac_func();
16945 #endif
16946
16947 ; return 0; }
16948 EOF
16949 if { (eval echo configure:16950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16950   rm -rf conftest*
16951   eval "ac_cv_func_$ac_func=yes"
16952 else
16953   echo "configure: failed program was:" >&5
16954   cat conftest.$ac_ext >&5
16955   rm -rf conftest*
16956   eval "ac_cv_func_$ac_func=no"
16957 fi
16958 rm -f conftest*
16959 fi
16960
16961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16962   echo "$ac_t""yes" 1>&6
16963     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16964   cat >> confdefs.h <<EOF
16965 #define $ac_tr_func 1
16966 EOF
16967  
16968 else
16969   echo "$ac_t""no" 1>&6
16970 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
16971 fi
16972 done
16973
16974
16975   fi
16976
16977   
16978
16979   
16980
16981       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
16982 echo "configure:16983: checking for mbstate_t" >&5
16983   cat > conftest.$ac_ext <<EOF
16984 #line 16985 "configure"
16985 #include "confdefs.h"
16986 #include <wchar.h>
16987 int main() {
16988 mbstate_t teststate;
16989 ; return 0; }
16990 EOF
16991 if { (eval echo configure:16992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16992   rm -rf conftest*
16993   have_mbstate_t=yes
16994 else
16995   echo "configure: failed program was:" >&5
16996   cat conftest.$ac_ext >&5
16997   rm -rf conftest*
16998   have_mbstate_t=no
16999 fi
17000 rm -f conftest*
17001   echo "$ac_t""$have_mbstate_t" 1>&6
17002   if test x"$have_mbstate_t" = xyes; then
17003     cat >> confdefs.h <<\EOF
17004 #define HAVE_MBSTATE_T 1
17005 EOF
17006
17007   fi
17008
17009     for ac_hdr in wchar.h
17010 do
17011 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17012 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17013 echo "configure:17014: checking for $ac_hdr" >&5
17014 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17015   echo $ac_n "(cached) $ac_c" 1>&6
17016 else
17017   cat > conftest.$ac_ext <<EOF
17018 #line 17019 "configure"
17019 #include "confdefs.h"
17020 #include <$ac_hdr>
17021 EOF
17022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17023 { (eval echo configure:17024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17024 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17025 if test -z "$ac_err"; then
17026   rm -rf conftest*
17027   eval "ac_cv_header_$ac_safe=yes"
17028 else
17029   echo "$ac_err" >&5
17030   echo "configure: failed program was:" >&5
17031   cat conftest.$ac_ext >&5
17032   rm -rf conftest*
17033   eval "ac_cv_header_$ac_safe=no"
17034 fi
17035 rm -f conftest*
17036 fi
17037 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17038   echo "$ac_t""yes" 1>&6
17039     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17040   cat >> confdefs.h <<EOF
17041 #define $ac_tr_hdr 1
17042 EOF
17043  ac_has_wchar_h=yes
17044 else
17045   echo "$ac_t""no" 1>&6
17046 ac_has_wchar_h=no
17047 fi
17048 done
17049
17050   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
17051 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
17052 echo "configure:17053: checking for wctype.h" >&5
17053 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17054   echo $ac_n "(cached) $ac_c" 1>&6
17055 else
17056   cat > conftest.$ac_ext <<EOF
17057 #line 17058 "configure"
17058 #include "confdefs.h"
17059 #include <wctype.h>
17060 EOF
17061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17062 { (eval echo configure:17063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17063 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17064 if test -z "$ac_err"; then
17065   rm -rf conftest*
17066   eval "ac_cv_header_$ac_safe=yes"
17067 else
17068   echo "$ac_err" >&5
17069   echo "configure: failed program was:" >&5
17070   cat conftest.$ac_ext >&5
17071   rm -rf conftest*
17072   eval "ac_cv_header_$ac_safe=no"
17073 fi
17074 rm -f conftest*
17075 fi
17076 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17077   echo "$ac_t""yes" 1>&6
17078   ac_has_wctype_h=yes
17079 else
17080   echo "$ac_t""no" 1>&6
17081 ac_has_wctype_h=no
17082 fi
17083
17084   
17085     if test x"$ac_has_wchar_h" = xyes &&
17086      test x"$ac_has_wctype_h" = xyes &&
17087      test x"$enable_c_mbchar" != xno; then
17088       
17089             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
17090 echo "configure:17091: checking for WCHAR_MIN and WCHAR_MAX" >&5
17091     cat > conftest.$ac_ext <<EOF
17092 #line 17093 "configure"
17093 #include "confdefs.h"
17094 #include <wchar.h>
17095 int main() {
17096 int i = WCHAR_MIN; int j = WCHAR_MAX;
17097 ; return 0; }
17098 EOF
17099 if { (eval echo configure:17100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17100   rm -rf conftest*
17101   has_wchar_minmax=yes
17102 else
17103   echo "configure: failed program was:" >&5
17104   cat conftest.$ac_ext >&5
17105   rm -rf conftest*
17106   has_wchar_minmax=no
17107 fi
17108 rm -f conftest*
17109     echo "$ac_t""$has_wchar_minmax" 1>&6
17110     
17111             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
17112 echo "configure:17113: checking for WEOF" >&5
17113     cat > conftest.$ac_ext <<EOF
17114 #line 17115 "configure"
17115 #include "confdefs.h"
17116
17117       #include <wchar.h>
17118       #include <stddef.h>
17119 int main() {
17120 wint_t i = WEOF;
17121 ; return 0; }
17122 EOF
17123 if { (eval echo configure:17124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17124   rm -rf conftest*
17125   has_weof=yes
17126 else
17127   echo "configure: failed program was:" >&5
17128   cat conftest.$ac_ext >&5
17129   rm -rf conftest*
17130   has_weof=no
17131 fi
17132 rm -f conftest*
17133     echo "$ac_t""$has_weof" 1>&6
17134   
17135         ac_wfuncs=yes
17136     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
17137 do
17138 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17139 echo "configure:17140: checking for $ac_func" >&5
17140 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17141   echo $ac_n "(cached) $ac_c" 1>&6
17142 else
17143   cat > conftest.$ac_ext <<EOF
17144 #line 17145 "configure"
17145 #include "confdefs.h"
17146 /* System header to define __stub macros and hopefully few prototypes,
17147     which can conflict with char $ac_func(); below.  */
17148 #include <assert.h>
17149 /* Override any gcc2 internal prototype to avoid an error.  */
17150 /* We use char because int might match the return type of a gcc2
17151     builtin and then its argument prototype would still apply.  */
17152 char $ac_func();
17153
17154 int main() {
17155
17156 /* The GNU C library defines this for functions which it implements
17157     to always fail with ENOSYS.  Some functions are actually named
17158     something starting with __ and the normal name is an alias.  */
17159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17160 choke me
17161 #else
17162 $ac_func();
17163 #endif
17164
17165 ; return 0; }
17166 EOF
17167 if { (eval echo configure:17168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17168   rm -rf conftest*
17169   eval "ac_cv_func_$ac_func=yes"
17170 else
17171   echo "configure: failed program was:" >&5
17172   cat conftest.$ac_ext >&5
17173   rm -rf conftest*
17174   eval "ac_cv_func_$ac_func=no"
17175 fi
17176 rm -f conftest*
17177 fi
17178
17179 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17180   echo "$ac_t""yes" 1>&6
17181     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17182   cat >> confdefs.h <<EOF
17183 #define $ac_tr_func 1
17184 EOF
17185  
17186 else
17187   echo "$ac_t""no" 1>&6
17188 \
17189     ac_wfuncs=no
17190 fi
17191 done
17192
17193   
17194         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
17195     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
17196     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
17197     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
17198     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
17199     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
17200 do
17201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17202 echo "configure:17203: checking for $ac_func" >&5
17203 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17204   echo $ac_n "(cached) $ac_c" 1>&6
17205 else
17206   cat > conftest.$ac_ext <<EOF
17207 #line 17208 "configure"
17208 #include "confdefs.h"
17209 /* System header to define __stub macros and hopefully few prototypes,
17210     which can conflict with char $ac_func(); below.  */
17211 #include <assert.h>
17212 /* Override any gcc2 internal prototype to avoid an error.  */
17213 /* We use char because int might match the return type of a gcc2
17214     builtin and then its argument prototype would still apply.  */
17215 char $ac_func();
17216
17217 int main() {
17218
17219 /* The GNU C library defines this for functions which it implements
17220     to always fail with ENOSYS.  Some functions are actually named
17221     something starting with __ and the normal name is an alias.  */
17222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17223 choke me
17224 #else
17225 $ac_func();
17226 #endif
17227
17228 ; return 0; }
17229 EOF
17230 if { (eval echo configure:17231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17231   rm -rf conftest*
17232   eval "ac_cv_func_$ac_func=yes"
17233 else
17234   echo "configure: failed program was:" >&5
17235   cat conftest.$ac_ext >&5
17236   rm -rf conftest*
17237   eval "ac_cv_func_$ac_func=no"
17238 fi
17239 rm -f conftest*
17240 fi
17241
17242 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17243   echo "$ac_t""yes" 1>&6
17244     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17245   cat >> confdefs.h <<EOF
17246 #define $ac_tr_func 1
17247 EOF
17248  
17249 else
17250   echo "$ac_t""no" 1>&6
17251 \
17252     ac_wfuncs=no
17253 fi
17254 done
17255
17256
17257     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
17258 echo "configure:17259: checking for ISO C99 wchar_t support" >&5
17259     if test x"$has_weof" = xyes &&
17260        test x"$has_wchar_minmax" = xyes &&
17261        test x"$ac_wfuncs" = xyes; then
17262       ac_isoC99_wchar_t=yes
17263     else
17264       ac_isoC99_wchar_t=no
17265     fi
17266     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
17267   
17268             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
17269 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
17270 echo "configure:17271: checking for iconv.h" >&5
17271 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17272   echo $ac_n "(cached) $ac_c" 1>&6
17273 else
17274   cat > conftest.$ac_ext <<EOF
17275 #line 17276 "configure"
17276 #include "confdefs.h"
17277 #include <iconv.h>
17278 EOF
17279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17280 { (eval echo configure:17281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17282 if test -z "$ac_err"; then
17283   rm -rf conftest*
17284   eval "ac_cv_header_$ac_safe=yes"
17285 else
17286   echo "$ac_err" >&5
17287   echo "configure: failed program was:" >&5
17288   cat conftest.$ac_ext >&5
17289   rm -rf conftest*
17290   eval "ac_cv_header_$ac_safe=no"
17291 fi
17292 rm -f conftest*
17293 fi
17294 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17295   echo "$ac_t""yes" 1>&6
17296   ac_has_iconv_h=yes
17297 else
17298   echo "$ac_t""no" 1>&6
17299 ac_has_iconv_h=no
17300 fi
17301
17302     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
17303 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
17304 echo "configure:17305: checking for langinfo.h" >&5
17305 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17306   echo $ac_n "(cached) $ac_c" 1>&6
17307 else
17308   cat > conftest.$ac_ext <<EOF
17309 #line 17310 "configure"
17310 #include "confdefs.h"
17311 #include <langinfo.h>
17312 EOF
17313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17314 { (eval echo configure:17315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17316 if test -z "$ac_err"; then
17317   rm -rf conftest*
17318   eval "ac_cv_header_$ac_safe=yes"
17319 else
17320   echo "$ac_err" >&5
17321   echo "configure: failed program was:" >&5
17322   cat conftest.$ac_ext >&5
17323   rm -rf conftest*
17324   eval "ac_cv_header_$ac_safe=no"
17325 fi
17326 rm -f conftest*
17327 fi
17328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17329   echo "$ac_t""yes" 1>&6
17330   ac_has_langinfo_h=yes
17331 else
17332   echo "$ac_t""no" 1>&6
17333 ac_has_langinfo_h=no
17334 fi
17335
17336
17337         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
17338 echo "configure:17339: checking for iconv in -liconv" >&5
17339 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
17340 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17341   echo $ac_n "(cached) $ac_c" 1>&6
17342 else
17343   ac_save_LIBS="$LIBS"
17344 LIBS="-liconv  $LIBS"
17345 cat > conftest.$ac_ext <<EOF
17346 #line 17347 "configure"
17347 #include "confdefs.h"
17348 /* Override any gcc2 internal prototype to avoid an error.  */
17349 /* We use char because int might match the return type of a gcc2
17350     builtin and then its argument prototype would still apply.  */
17351 char iconv();
17352
17353 int main() {
17354 iconv()
17355 ; return 0; }
17356 EOF
17357 if { (eval echo configure:17358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17358   rm -rf conftest*
17359   eval "ac_cv_lib_$ac_lib_var=yes"
17360 else
17361   echo "configure: failed program was:" >&5
17362   cat conftest.$ac_ext >&5
17363   rm -rf conftest*
17364   eval "ac_cv_lib_$ac_lib_var=no"
17365 fi
17366 rm -f conftest*
17367 LIBS="$ac_save_LIBS"
17368
17369 fi
17370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17371   echo "$ac_t""yes" 1>&6
17372   libiconv="-liconv"
17373 else
17374   echo "$ac_t""no" 1>&6
17375 fi
17376
17377     ac_save_LIBS="$LIBS"
17378     LIBS="$LIBS $libiconv"
17379
17380     for ac_func in iconv_open iconv_close iconv nl_langinfo
17381 do
17382 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17383 echo "configure:17384: checking for $ac_func" >&5
17384 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17385   echo $ac_n "(cached) $ac_c" 1>&6
17386 else
17387   cat > conftest.$ac_ext <<EOF
17388 #line 17389 "configure"
17389 #include "confdefs.h"
17390 /* System header to define __stub macros and hopefully few prototypes,
17391     which can conflict with char $ac_func(); below.  */
17392 #include <assert.h>
17393 /* Override any gcc2 internal prototype to avoid an error.  */
17394 /* We use char because int might match the return type of a gcc2
17395     builtin and then its argument prototype would still apply.  */
17396 char $ac_func();
17397
17398 int main() {
17399
17400 /* The GNU C library defines this for functions which it implements
17401     to always fail with ENOSYS.  Some functions are actually named
17402     something starting with __ and the normal name is an alias.  */
17403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17404 choke me
17405 #else
17406 $ac_func();
17407 #endif
17408
17409 ; return 0; }
17410 EOF
17411 if { (eval echo configure:17412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17412   rm -rf conftest*
17413   eval "ac_cv_func_$ac_func=yes"
17414 else
17415   echo "configure: failed program was:" >&5
17416   cat conftest.$ac_ext >&5
17417   rm -rf conftest*
17418   eval "ac_cv_func_$ac_func=no"
17419 fi
17420 rm -f conftest*
17421 fi
17422
17423 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17424   echo "$ac_t""yes" 1>&6
17425     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17426   cat >> confdefs.h <<EOF
17427 #define $ac_tr_func 1
17428 EOF
17429  \
17430     ac_XPG2funcs=yes
17431 else
17432   echo "$ac_t""no" 1>&6
17433 ac_XPG2funcs=no
17434 fi
17435 done
17436
17437   
17438     LIBS="$ac_save_LIBS"
17439
17440     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
17441 echo "configure:17442: checking for XPG2 wchar_t support" >&5
17442     if test x"$ac_has_iconv_h" = xyes &&
17443        test x"$ac_has_langinfo_h" = xyes &&
17444        test x"$ac_XPG2funcs" = xyes; then
17445       ac_XPG2_wchar_t=yes
17446     else
17447       ac_XPG2_wchar_t=no
17448     fi
17449     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
17450   
17451             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
17452 echo "configure:17453: checking for enabled wchar_t specializations" >&5
17453     if test x"$ac_isoC99_wchar_t" = xyes &&
17454        test x"$ac_XPG2_wchar_t" = xyes; then
17455       cat >> confdefs.h <<\EOF
17456 #define _GLIBCPP_USE_WCHAR_T 1
17457 EOF
17458
17459       echo "$ac_t"""yes"" 1>&6
17460     else
17461       echo "$ac_t"""no"" 1>&6
17462     fi
17463   else
17464         echo "configure: warning: wchar_t support disabled." 1>&2
17465   fi
17466
17467   
17468   ac_test_CXXFLAGS="${CXXFLAGS+set}"
17469   ac_save_CXXFLAGS="$CXXFLAGS"
17470   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
17471
17472   
17473   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
17474 echo "configure:17475: checking for strtold declaration" >&5
17475   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
17476     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
17477   echo $ac_n "(cached) $ac_c" 1>&6
17478 else
17479   
17480       
17481       ac_ext=C
17482 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17483 ac_cpp='$CXXCPP $CPPFLAGS'
17484 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17485 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17486 cross_compiling=$ac_cv_prog_cxx_cross
17487
17488       cat > conftest.$ac_ext <<EOF
17489 #line 17490 "configure"
17490 #include "confdefs.h"
17491 #include <stdlib.h>
17492 int main() {
17493  strtold(0, 0);
17494 ; return 0; }
17495 EOF
17496 if { (eval echo configure:17497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17497   rm -rf conftest*
17498   glibcpp_cv_func_strtold_use=yes
17499 else
17500   echo "configure: failed program was:" >&5
17501   cat conftest.$ac_ext >&5
17502   rm -rf conftest*
17503   glibcpp_cv_func_strtold_use=no
17504 fi
17505 rm -f conftest*
17506       ac_ext=c
17507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17508 ac_cpp='$CPP $CPPFLAGS'
17509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17511 cross_compiling=$ac_cv_prog_cc_cross
17512
17513     
17514 fi
17515
17516   fi
17517   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
17518   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
17519     for ac_func in strtold
17520 do
17521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17522 echo "configure:17523: checking for $ac_func" >&5
17523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17524   echo $ac_n "(cached) $ac_c" 1>&6
17525 else
17526   cat > conftest.$ac_ext <<EOF
17527 #line 17528 "configure"
17528 #include "confdefs.h"
17529 /* System header to define __stub macros and hopefully few prototypes,
17530     which can conflict with char $ac_func(); below.  */
17531 #include <assert.h>
17532 /* Override any gcc2 internal prototype to avoid an error.  */
17533 /* We use char because int might match the return type of a gcc2
17534     builtin and then its argument prototype would still apply.  */
17535 char $ac_func();
17536
17537 int main() {
17538
17539 /* The GNU C library defines this for functions which it implements
17540     to always fail with ENOSYS.  Some functions are actually named
17541     something starting with __ and the normal name is an alias.  */
17542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17543 choke me
17544 #else
17545 $ac_func();
17546 #endif
17547
17548 ; return 0; }
17549 EOF
17550 if { (eval echo configure:17551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17551   rm -rf conftest*
17552   eval "ac_cv_func_$ac_func=yes"
17553 else
17554   echo "configure: failed program was:" >&5
17555   cat conftest.$ac_ext >&5
17556   rm -rf conftest*
17557   eval "ac_cv_func_$ac_func=no"
17558 fi
17559 rm -f conftest*
17560 fi
17561
17562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17563   echo "$ac_t""yes" 1>&6
17564     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17565   cat >> confdefs.h <<EOF
17566 #define $ac_tr_func 1
17567 EOF
17568  
17569 else
17570   echo "$ac_t""no" 1>&6
17571 fi
17572 done
17573     
17574   fi
17575
17576   for ac_func in drand48
17577 do
17578 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17579 echo "configure:17580: checking for $ac_func" >&5
17580 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17581   echo $ac_n "(cached) $ac_c" 1>&6
17582 else
17583   cat > conftest.$ac_ext <<EOF
17584 #line 17585 "configure"
17585 #include "confdefs.h"
17586 /* System header to define __stub macros and hopefully few prototypes,
17587     which can conflict with char $ac_func(); below.  */
17588 #include <assert.h>
17589 /* Override any gcc2 internal prototype to avoid an error.  */
17590 /* We use char because int might match the return type of a gcc2
17591     builtin and then its argument prototype would still apply.  */
17592 char $ac_func();
17593
17594 int main() {
17595
17596 /* The GNU C library defines this for functions which it implements
17597     to always fail with ENOSYS.  Some functions are actually named
17598     something starting with __ and the normal name is an alias.  */
17599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17600 choke me
17601 #else
17602 $ac_func();
17603 #endif
17604
17605 ; return 0; }
17606 EOF
17607 if { (eval echo configure:17608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17608   rm -rf conftest*
17609   eval "ac_cv_func_$ac_func=yes"
17610 else
17611   echo "configure: failed program was:" >&5
17612   cat conftest.$ac_ext >&5
17613   rm -rf conftest*
17614   eval "ac_cv_func_$ac_func=no"
17615 fi
17616 rm -f conftest*
17617 fi
17618
17619 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17620   echo "$ac_t""yes" 1>&6
17621     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17622   cat >> confdefs.h <<EOF
17623 #define $ac_tr_func 1
17624 EOF
17625  
17626 else
17627   echo "$ac_t""no" 1>&6
17628 fi
17629 done
17630
17631
17632   CXXFLAGS="$ac_save_CXXFLAGS"
17633
17634   
17635   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
17636 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
17637 echo "configure:17638: checking for locale.h" >&5
17638 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17639   echo $ac_n "(cached) $ac_c" 1>&6
17640 else
17641   cat > conftest.$ac_ext <<EOF
17642 #line 17643 "configure"
17643 #include "confdefs.h"
17644 #include <locale.h>
17645 EOF
17646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17647 { (eval echo configure:17648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17649 if test -z "$ac_err"; then
17650   rm -rf conftest*
17651   eval "ac_cv_header_$ac_safe=yes"
17652 else
17653   echo "$ac_err" >&5
17654   echo "configure: failed program was:" >&5
17655   cat conftest.$ac_ext >&5
17656   rm -rf conftest*
17657   eval "ac_cv_header_$ac_safe=no"
17658 fi
17659 rm -f conftest*
17660 fi
17661 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17662   echo "$ac_t""yes" 1>&6
17663   
17664     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
17665 echo "configure:17666: checking for LC_MESSAGES" >&5
17666 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
17667   echo $ac_n "(cached) $ac_c" 1>&6
17668 else
17669   cat > conftest.$ac_ext <<EOF
17670 #line 17671 "configure"
17671 #include "confdefs.h"
17672 #include <locale.h>
17673 int main() {
17674 return LC_MESSAGES
17675 ; return 0; }
17676 EOF
17677 if { (eval echo configure:17678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17678   rm -rf conftest*
17679   ac_cv_val_LC_MESSAGES=yes
17680 else
17681   echo "configure: failed program was:" >&5
17682   cat conftest.$ac_ext >&5
17683   rm -rf conftest*
17684   ac_cv_val_LC_MESSAGES=no
17685 fi
17686 rm -f conftest*
17687 fi
17688
17689 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
17690     if test $ac_cv_val_LC_MESSAGES = yes; then
17691       cat >> confdefs.h <<\EOF
17692 #define HAVE_LC_MESSAGES 1
17693 EOF
17694
17695     fi
17696   
17697 else
17698   echo "$ac_t""no" 1>&6
17699 fi
17700
17701
17702
17703   cat > conftest.$ac_ext <<EOF
17704 #line 17705 "configure"
17705 #include "confdefs.h"
17706
17707   #include <setjmp.h>
17708   
17709 int main() {
17710 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
17711 ; return 0; }
17712 EOF
17713 if { (eval echo configure:17714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17714   rm -rf conftest*
17715   cat >> confdefs.h <<\EOF
17716 #define HAVE_SIGSETJMP 1
17717 EOF
17718
17719   
17720 else
17721   echo "configure: failed program was:" >&5
17722   cat conftest.$ac_ext >&5
17723 fi
17724 rm -f conftest*
17725
17726   for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
17727 do
17728 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17729 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17730 echo "configure:17731: checking for $ac_hdr" >&5
17731 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17732   echo $ac_n "(cached) $ac_c" 1>&6
17733 else
17734   cat > conftest.$ac_ext <<EOF
17735 #line 17736 "configure"
17736 #include "confdefs.h"
17737 #include <$ac_hdr>
17738 EOF
17739 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17740 { (eval echo configure:17741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17741 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17742 if test -z "$ac_err"; then
17743   rm -rf conftest*
17744   eval "ac_cv_header_$ac_safe=yes"
17745 else
17746   echo "$ac_err" >&5
17747   echo "configure: failed program was:" >&5
17748   cat conftest.$ac_ext >&5
17749   rm -rf conftest*
17750   eval "ac_cv_header_$ac_safe=no"
17751 fi
17752 rm -f conftest*
17753 fi
17754 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17755   echo "$ac_t""yes" 1>&6
17756     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17757   cat >> confdefs.h <<EOF
17758 #define $ac_tr_hdr 1
17759 EOF
17760  
17761 else
17762   echo "$ac_t""no" 1>&6
17763 fi
17764 done
17765
17766 for ac_func in getpagesize
17767 do
17768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17769 echo "configure:17770: checking for $ac_func" >&5
17770 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17771   echo $ac_n "(cached) $ac_c" 1>&6
17772 else
17773   cat > conftest.$ac_ext <<EOF
17774 #line 17775 "configure"
17775 #include "confdefs.h"
17776 /* System header to define __stub macros and hopefully few prototypes,
17777     which can conflict with char $ac_func(); below.  */
17778 #include <assert.h>
17779 /* Override any gcc2 internal prototype to avoid an error.  */
17780 /* We use char because int might match the return type of a gcc2
17781     builtin and then its argument prototype would still apply.  */
17782 char $ac_func();
17783
17784 int main() {
17785
17786 /* The GNU C library defines this for functions which it implements
17787     to always fail with ENOSYS.  Some functions are actually named
17788     something starting with __ and the normal name is an alias.  */
17789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17790 choke me
17791 #else
17792 $ac_func();
17793 #endif
17794
17795 ; return 0; }
17796 EOF
17797 if { (eval echo configure:17798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17798   rm -rf conftest*
17799   eval "ac_cv_func_$ac_func=yes"
17800 else
17801   echo "configure: failed program was:" >&5
17802   cat conftest.$ac_ext >&5
17803   rm -rf conftest*
17804   eval "ac_cv_func_$ac_func=no"
17805 fi
17806 rm -f conftest*
17807 fi
17808
17809 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17810   echo "$ac_t""yes" 1>&6
17811     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17812   cat >> confdefs.h <<EOF
17813 #define $ac_tr_func 1
17814 EOF
17815  
17816 else
17817   echo "$ac_t""no" 1>&6
17818 fi
17819 done
17820
17821 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
17822 echo "configure:17823: checking for working mmap" >&5
17823 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
17824   echo $ac_n "(cached) $ac_c" 1>&6
17825 else
17826   if test "$cross_compiling" = yes; then
17827   ac_cv_func_mmap_fixed_mapped=no
17828 else
17829   cat > conftest.$ac_ext <<EOF
17830 #line 17831 "configure"
17831 #include "confdefs.h"
17832
17833 /* Thanks to Mike Haertel and Jim Avera for this test.
17834    Here is a matrix of mmap possibilities:
17835         mmap private not fixed
17836         mmap private fixed at somewhere currently unmapped
17837         mmap private fixed at somewhere already mapped
17838         mmap shared not fixed
17839         mmap shared fixed at somewhere currently unmapped
17840         mmap shared fixed at somewhere already mapped
17841    For private mappings, we should verify that changes cannot be read()
17842    back from the file, nor mmap's back from the file at a different
17843    address.  (There have been systems where private was not correctly
17844    implemented like the infamous i386 svr4.0, and systems where the
17845    VM page cache was not coherent with the filesystem buffer cache
17846    like early versions of FreeBSD and possibly contemporary NetBSD.)
17847    For shared mappings, we should conversely verify that changes get
17848    propogated back to all the places they're supposed to be.
17849
17850    Grep wants private fixed already mapped.
17851    The main things grep needs to know about mmap are:
17852    * does it exist and is it safe to write into the mmap'd area
17853    * how to use it (BSD variants)  */
17854 #include <sys/types.h>
17855 #include <fcntl.h>
17856 #include <sys/mman.h>
17857
17858 #if HAVE_SYS_TYPES_H
17859 # include <sys/types.h>
17860 #endif
17861
17862 #if HAVE_STDLIB_H
17863 # include <stdlib.h>
17864 #endif
17865
17866 #if HAVE_SYS_STAT_H
17867 # include <sys/stat.h>
17868 #endif
17869
17870 #if HAVE_UNISTD_H
17871 # include <unistd.h>
17872 #endif
17873
17874 /* This mess was copied from the GNU getpagesize.h.  */
17875 #ifndef HAVE_GETPAGESIZE
17876
17877 /* Assume that all systems that can run configure have sys/param.h.  */
17878 # ifndef HAVE_SYS_PARAM_H
17879 #  define HAVE_SYS_PARAM_H 1
17880 # endif
17881
17882 # ifdef _SC_PAGESIZE
17883 #  define getpagesize() sysconf(_SC_PAGESIZE)
17884 # else /* no _SC_PAGESIZE */
17885 #  ifdef HAVE_SYS_PARAM_H
17886 #   include <sys/param.h>
17887 #   ifdef EXEC_PAGESIZE
17888 #    define getpagesize() EXEC_PAGESIZE
17889 #   else /* no EXEC_PAGESIZE */
17890 #    ifdef NBPG
17891 #     define getpagesize() NBPG * CLSIZE
17892 #     ifndef CLSIZE
17893 #      define CLSIZE 1
17894 #     endif /* no CLSIZE */
17895 #    else /* no NBPG */
17896 #     ifdef NBPC
17897 #      define getpagesize() NBPC
17898 #     else /* no NBPC */
17899 #      ifdef PAGESIZE
17900 #       define getpagesize() PAGESIZE
17901 #      endif /* PAGESIZE */
17902 #     endif /* no NBPC */
17903 #    endif /* no NBPG */
17904 #   endif /* no EXEC_PAGESIZE */
17905 #  else /* no HAVE_SYS_PARAM_H */
17906 #   define getpagesize() 8192   /* punt totally */
17907 #  endif /* no HAVE_SYS_PARAM_H */
17908 # endif /* no _SC_PAGESIZE */
17909
17910 #endif /* no HAVE_GETPAGESIZE */
17911
17912 #ifdef __cplusplus
17913 extern "C" { void *malloc(unsigned); }
17914 #else
17915 char *malloc();
17916 #endif
17917
17918 int
17919 main()
17920 {
17921         char *data, *data2, *data3;
17922         int i, pagesize;
17923         int fd;
17924
17925         pagesize = getpagesize();
17926
17927         /*
17928          * First, make a file with some known garbage in it.
17929          */
17930         data = malloc(pagesize);
17931         if (!data)
17932                 exit(1);
17933         for (i = 0; i < pagesize; ++i)
17934                 *(data + i) = rand();
17935         umask(0);
17936         fd = creat("conftestmmap", 0600);
17937         if (fd < 0)
17938                 exit(1);
17939         if (write(fd, data, pagesize) != pagesize)
17940                 exit(1);
17941         close(fd);
17942
17943         /*
17944          * Next, try to mmap the file at a fixed address which
17945          * already has something else allocated at it.  If we can,
17946          * also make sure that we see the same garbage.
17947          */
17948         fd = open("conftestmmap", O_RDWR);
17949         if (fd < 0)
17950                 exit(1);
17951         data2 = malloc(2 * pagesize);
17952         if (!data2)
17953                 exit(1);
17954         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
17955         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
17956             MAP_PRIVATE | MAP_FIXED, fd, 0L))
17957                 exit(1);
17958         for (i = 0; i < pagesize; ++i)
17959                 if (*(data + i) != *(data2 + i))
17960                         exit(1);
17961
17962         /*
17963          * Finally, make sure that changes to the mapped area
17964          * do not percolate back to the file as seen by read().
17965          * (This is a bug on some variants of i386 svr4.0.)
17966          */
17967         for (i = 0; i < pagesize; ++i)
17968                 *(data2 + i) = *(data2 + i) + 1;
17969         data3 = malloc(pagesize);
17970         if (!data3)
17971                 exit(1);
17972         if (read(fd, data3, pagesize) != pagesize)
17973                 exit(1);
17974         for (i = 0; i < pagesize; ++i)
17975                 if (*(data + i) != *(data3 + i))
17976                         exit(1);
17977         close(fd);
17978         unlink("conftestmmap");
17979         exit(0);
17980 }
17981
17982 EOF
17983 if { (eval echo configure:17984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
17984 then
17985   ac_cv_func_mmap_fixed_mapped=yes
17986 else
17987   echo "configure: failed program was:" >&5
17988   cat conftest.$ac_ext >&5
17989   rm -fr conftest*
17990   ac_cv_func_mmap_fixed_mapped=no
17991 fi
17992 rm -fr conftest*
17993 fi
17994
17995 fi
17996
17997 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
17998 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17999   cat >> confdefs.h <<\EOF
18000 #define HAVE_MMAP 1
18001 EOF
18002
18003 fi
18004
18005
18006   # Establish limits on memory usage during 'make check'
18007   
18008   
18009   setrlimit_have_headers=yes
18010   for ac_hdr in sys/resource.h unistd.h
18011 do
18012 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18013 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18014 echo "configure:18015: checking for $ac_hdr" >&5
18015 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18016   echo $ac_n "(cached) $ac_c" 1>&6
18017 else
18018   cat > conftest.$ac_ext <<EOF
18019 #line 18020 "configure"
18020 #include "confdefs.h"
18021 #include <$ac_hdr>
18022 EOF
18023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18024 { (eval echo configure:18025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18026 if test -z "$ac_err"; then
18027   rm -rf conftest*
18028   eval "ac_cv_header_$ac_safe=yes"
18029 else
18030   echo "$ac_err" >&5
18031   echo "configure: failed program was:" >&5
18032   cat conftest.$ac_ext >&5
18033   rm -rf conftest*
18034   eval "ac_cv_header_$ac_safe=no"
18035 fi
18036 rm -f conftest*
18037 fi
18038 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18039   echo "$ac_t""yes" 1>&6
18040     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18041   cat >> confdefs.h <<EOF
18042 #define $ac_tr_hdr 1
18043 EOF
18044  
18045 else
18046   echo "$ac_t""no" 1>&6
18047 setrlimit_have_headers=no
18048 fi
18049 done
18050
18051   # If don't have the headers, then we can't run the tests now, and we
18052   # won't be seeing any of these during testsuite compilation.
18053   if test $setrlimit_have_headers = yes; then
18054     # Can't do these in a loop, else the resulting syntax is wrong.
18055     
18056   cat > conftest.$ac_ext <<EOF
18057 #line 18058 "configure"
18058 #include "confdefs.h"
18059 #include <sys/resource.h>
18060                   #include <unistd.h>
18061                  
18062 int main() {
18063  int f = RLIMIT_DATA ; 
18064 ; return 0; }
18065 EOF
18066 if { (eval echo configure:18067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18067   rm -rf conftest*
18068   glibcpp_mresult=1
18069 else
18070   echo "configure: failed program was:" >&5
18071   cat conftest.$ac_ext >&5
18072   rm -rf conftest*
18073   glibcpp_mresult=0
18074 fi
18075 rm -f conftest*
18076   cat >> confdefs.h <<EOF
18077 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
18078 EOF
18079
18080
18081     
18082   cat > conftest.$ac_ext <<EOF
18083 #line 18084 "configure"
18084 #include "confdefs.h"
18085 #include <sys/resource.h>
18086                   #include <unistd.h>
18087                  
18088 int main() {
18089  int f = RLIMIT_RSS ; 
18090 ; return 0; }
18091 EOF
18092 if { (eval echo configure:18093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18093   rm -rf conftest*
18094   glibcpp_mresult=1
18095 else
18096   echo "configure: failed program was:" >&5
18097   cat conftest.$ac_ext >&5
18098   rm -rf conftest*
18099   glibcpp_mresult=0
18100 fi
18101 rm -f conftest*
18102   cat >> confdefs.h <<EOF
18103 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
18104 EOF
18105
18106
18107     
18108   cat > conftest.$ac_ext <<EOF
18109 #line 18110 "configure"
18110 #include "confdefs.h"
18111 #include <sys/resource.h>
18112                   #include <unistd.h>
18113                  
18114 int main() {
18115  int f = RLIMIT_VMEM ; 
18116 ; return 0; }
18117 EOF
18118 if { (eval echo configure:18119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18119   rm -rf conftest*
18120   glibcpp_mresult=1
18121 else
18122   echo "configure: failed program was:" >&5
18123   cat conftest.$ac_ext >&5
18124   rm -rf conftest*
18125   glibcpp_mresult=0
18126 fi
18127 rm -f conftest*
18128   cat >> confdefs.h <<EOF
18129 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
18130 EOF
18131
18132
18133     
18134   cat > conftest.$ac_ext <<EOF
18135 #line 18136 "configure"
18136 #include "confdefs.h"
18137 #include <sys/resource.h>
18138                   #include <unistd.h>
18139                  
18140 int main() {
18141  int f = RLIMIT_AS ; 
18142 ; return 0; }
18143 EOF
18144 if { (eval echo configure:18145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18145   rm -rf conftest*
18146   glibcpp_mresult=1
18147 else
18148   echo "configure: failed program was:" >&5
18149   cat conftest.$ac_ext >&5
18150   rm -rf conftest*
18151   glibcpp_mresult=0
18152 fi
18153 rm -f conftest*
18154   cat >> confdefs.h <<EOF
18155 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
18156 EOF
18157
18158
18159
18160     # Check for rlimit, setrlimit.
18161     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
18162   echo $ac_n "(cached) $ac_c" 1>&6
18163 else
18164   
18165       cat > conftest.$ac_ext <<EOF
18166 #line 18167 "configure"
18167 #include "confdefs.h"
18168 #include <sys/resource.h>
18169                       #include <unistd.h>
18170                      
18171 int main() {
18172  struct rlimit r; setrlimit(0, &r);
18173 ; return 0; }
18174 EOF
18175 if { (eval echo configure:18176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18176   rm -rf conftest*
18177   ac_setrlimit=yes
18178 else
18179   echo "configure: failed program was:" >&5
18180   cat conftest.$ac_ext >&5
18181   rm -rf conftest*
18182   ac_setrlimit=no
18183 fi
18184 rm -f conftest*
18185     
18186 fi
18187
18188   fi
18189
18190   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
18191 echo "configure:18192: checking for testsuite memory limit support" >&5
18192   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
18193     ac_mem_limits=yes
18194     cat >> confdefs.h <<\EOF
18195 #define _GLIBCPP_MEM_LIMITS 1
18196 EOF
18197
18198   else
18199     ac_mem_limits=no
18200   fi
18201   echo "$ac_t""$ac_mem_limits" 1>&6
18202
18203
18204 fi
18205
18206
18207 # Propagate the target-specific source directories through the build chain.
18208 OS_INC_SRCDIR=$os_include_dir/bits
18209 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
18210 CPU_LIMITS_INC_SRCDIR=$CPULIMITSH/bits
18211
18212
18213
18214
18215 # Set up cross-compile flags
18216
18217
18218
18219 if test "$CANADIAN" = yes; then
18220   CANADIAN_TRUE=
18221   CANADIAN_FALSE='#'
18222 else
18223   CANADIAN_TRUE='#'
18224   CANADIAN_FALSE=
18225 fi
18226  
18227 cat > confcache <<\EOF
18228 # This file is a shell script that caches the results of configure
18229 # tests run on this system so they can be shared between configure
18230 # scripts and configure runs.  It is not useful on other systems.
18231 # If it contains results you don't want to keep, you may remove or edit it.
18232 #
18233 # By default, configure uses ./config.cache as the cache file,
18234 # creating it if it does not exist already.  You can give configure
18235 # the --cache-file=FILE option to use a different cache file; that is
18236 # what configure does when it calls configure scripts in
18237 # subdirectories, so they share the cache.
18238 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18239 # config.status only pays attention to the cache file if you give it the
18240 # --recheck option to rerun configure.
18241 #
18242 EOF
18243 # The following way of writing the cache mishandles newlines in values,
18244 # but we know of no workaround that is simple, portable, and efficient.
18245 # So, don't put newlines in cache variables' values.
18246 # Ultrix sh set writes to stderr and can't be redirected directly,
18247 # and sets the high bit in the cache file unless we assign to the vars.
18248 (set) 2>&1 |
18249   case `(ac_space=' '; set | grep ac_space) 2>&1` in
18250   *ac_space=\ *)
18251     # `set' does not quote correctly, so add quotes (double-quote substitution
18252     # turns \\\\ into \\, and sed turns \\ into \).
18253     sed -n \
18254       -e "s/'/'\\\\''/g" \
18255       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18256     ;;
18257   *)
18258     # `set' quotes correctly as required by POSIX, so do not add quotes.
18259     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18260     ;;
18261   esac >> confcache
18262 if cmp -s $cache_file confcache; then
18263   :
18264 else
18265   if test -w $cache_file; then
18266     echo "updating cache $cache_file"
18267     cat confcache > $cache_file
18268   else
18269     echo "not updating unwritable cache $cache_file"
18270   fi
18271 fi
18272 rm -f confcache
18273
18274
18275 if test "${multilib}" = "yes"; then
18276   multilib_arg="--enable-multilib"
18277 else
18278   multilib_arg=
18279 fi
18280
18281 # Needed so that g++ can find the correct include subdir automatically.
18282 INTERFACE=v3
18283
18284 # Export all the install information
18285
18286 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
18287 # exported correctly in GLIBCPP_CONFIGURE.
18288 glibcpp_toolexecdir=no
18289 glibcpp_toolexeclibdir=no
18290 glibcpp_prefixdir=${prefix}
18291
18292 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
18293 echo "configure:18294: checking for interface version number" >&5
18294 libstdcxx_interface=$INTERFACE
18295 echo "$ac_t""$libstdcxx_interface" 1>&6
18296
18297 # Process the option --with-gxx-include-dir=<path to include-files directory>
18298 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
18299 echo "configure:18300: checking for --with-gxx-include-dir" >&5
18300 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
18301 if test "${with_gxx_include_dir+set}" = set; then
18302   withval="$with_gxx_include_dir"
18303   case "${withval}" in
18304   yes)
18305     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
18306     gxx_include_dir=no
18307     ;;
18308   no)
18309     gxx_include_dir=no
18310     ;;
18311   *)
18312     gxx_include_dir=${withval}
18313     ;;
18314 esac
18315 else
18316   gxx_include_dir=no
18317 fi
18318
18319 echo "$ac_t""$gxx_include_dir" 1>&6
18320
18321 # Process the option "--enable-version-specific-runtime-libs"
18322 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
18323 echo "configure:18324: checking for --enable-version-specific-runtime-libs" >&5
18324 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
18325 if test "${enable_version_specific_runtime_libs+set}" = set; then
18326   enableval="$enable_version_specific_runtime_libs"
18327   case "$enableval" in
18328  yes) version_specific_libs=yes ;;
18329  no)  version_specific_libs=no ;;
18330  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
18331  esac
18332 else
18333   version_specific_libs=no
18334 fi
18335 # Option set, now we can test it.
18336 echo "$ac_t""$version_specific_libs" 1>&6
18337
18338 if test $version_specific_libs = yes; then
18339   # Need the gcc compiler version to know where to install libraries
18340   # and header files if --enable-version-specific-runtime-libs option
18341   # is selected.
18342     gcc_version_trigger=${srcdir}/../gcc/version.c
18343   gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
18344   gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
18345   gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
18346   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
18347   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
18348   fi
18349
18350 # Default case for install directory for include files.
18351 if test $version_specific_libs = no &&
18352    test $gxx_include_dir = no; then
18353   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
18354 fi
18355
18356 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
18357 # Install a library built with a cross compiler in tooldir, not libdir.
18358 if test x"$glibcpp_toolexecdir" = x"no"; then 
18359   if test -n "$with_cross_host" &&
18360      test x"$with_cross_host" != x"no"; then
18361     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
18362     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
18363   else
18364     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
18365     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
18366   fi
18367 fi
18368
18369 echo $ac_n "checking for install location""... $ac_c" 1>&6
18370 echo "configure:18371: checking for install location" >&5
18371 echo "$ac_t""$gxx_include_dir" 1>&6
18372
18373
18374
18375
18376
18377
18378
18379 # Export all the include and flag information to makefiles.
18380
18381   # Root level of the build directory include sources.
18382   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
18383
18384   # Passed down for canadian crosses.
18385   if test x"$CANADIAN" = xyes; then
18386     TOPLEVEL_INCLUDES='-I$(includedir)'
18387   fi
18388
18389   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
18390
18391   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
18392
18393   if test x"$need_libio" = xyes; then
18394     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
18395     
18396   fi
18397
18398   # Now, export this to all the little Makefiles....
18399   
18400   
18401   
18402   
18403
18404
18405   # Optimization flags that are probably a good idea for thrill-seekers. Just
18406   # uncomment the lines below and make, everything else is ready to go... 
18407   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
18408   OPTIMIZE_CXXFLAGS=
18409   
18410
18411   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
18412   
18413
18414
18415 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
18416    grep "enable shared" > /dev/null; then
18417   LIBSUPCXX_PICFLAGS=-prefer-pic
18418 else
18419   LIBSUPCXX_PICFLAGS=
18420 fi
18421
18422
18423 # Generate the various Makefiles, include files, and scripts.
18424 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
18425 # and libsupc++/Makefile.am so that multilib installs will end up
18426 # installed in the correct place. To work around this not being passed
18427 # down from config-ml.in -> top_srcdir/Makefile.am ->
18428 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
18429 trap '' 1 2 15
18430 cat > confcache <<\EOF
18431 # This file is a shell script that caches the results of configure
18432 # tests run on this system so they can be shared between configure
18433 # scripts and configure runs.  It is not useful on other systems.
18434 # If it contains results you don't want to keep, you may remove or edit it.
18435 #
18436 # By default, configure uses ./config.cache as the cache file,
18437 # creating it if it does not exist already.  You can give configure
18438 # the --cache-file=FILE option to use a different cache file; that is
18439 # what configure does when it calls configure scripts in
18440 # subdirectories, so they share the cache.
18441 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18442 # config.status only pays attention to the cache file if you give it the
18443 # --recheck option to rerun configure.
18444 #
18445 EOF
18446 # The following way of writing the cache mishandles newlines in values,
18447 # but we know of no workaround that is simple, portable, and efficient.
18448 # So, don't put newlines in cache variables' values.
18449 # Ultrix sh set writes to stderr and can't be redirected directly,
18450 # and sets the high bit in the cache file unless we assign to the vars.
18451 (set) 2>&1 |
18452   case `(ac_space=' '; set | grep ac_space) 2>&1` in
18453   *ac_space=\ *)
18454     # `set' does not quote correctly, so add quotes (double-quote substitution
18455     # turns \\\\ into \\, and sed turns \\ into \).
18456     sed -n \
18457       -e "s/'/'\\\\''/g" \
18458       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18459     ;;
18460   *)
18461     # `set' quotes correctly as required by POSIX, so do not add quotes.
18462     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18463     ;;
18464   esac >> confcache
18465 if cmp -s $cache_file confcache; then
18466   :
18467 else
18468   if test -w $cache_file; then
18469     echo "updating cache $cache_file"
18470     cat confcache > $cache_file
18471   else
18472     echo "not updating unwritable cache $cache_file"
18473   fi
18474 fi
18475 rm -f confcache
18476
18477 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18478
18479 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18480 # Let make expand exec_prefix.
18481 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18482
18483 # Any assignment to VPATH causes Sun make to only execute
18484 # the first set of double-colon rules, so remove it if not needed.
18485 # If there is a colon in the path, we need to keep it.
18486 if test "x$srcdir" = x.; then
18487   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
18488 fi
18489
18490 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18491
18492 DEFS=-DHAVE_CONFIG_H
18493
18494 # Without the "./", some shells look in PATH for config.status.
18495 : ${CONFIG_STATUS=./config.status}
18496
18497 echo creating $CONFIG_STATUS
18498 rm -f $CONFIG_STATUS
18499 cat > $CONFIG_STATUS <<EOF
18500 #! /bin/sh
18501 # Generated automatically by configure.
18502 # Run this file to recreate the current configuration.
18503 # This directory was configured as follows,
18504 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18505 #
18506 # $0 $ac_configure_args
18507 #
18508 # Compiler output produced by configure, useful for debugging
18509 # configure, is in ./config.log if it exists.
18510
18511 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18512 for ac_option
18513 do
18514   case "\$ac_option" in
18515   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18516     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18517     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18518   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18519     echo "$CONFIG_STATUS generated by autoconf version 2.13"
18520     exit 0 ;;
18521   -help | --help | --hel | --he | --h)
18522     echo "\$ac_cs_usage"; exit 0 ;;
18523   *) echo "\$ac_cs_usage"; exit 1 ;;
18524   esac
18525 done
18526
18527 ac_given_srcdir=$srcdir
18528 ac_given_INSTALL="$INSTALL"
18529
18530 trap 'rm -fr `echo "Makefile \
18531     include/Makefile src/Makefile \
18532     libmath/Makefile libio/Makefile libsupc++/Makefile \
18533     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
18534 EOF
18535 cat >> $CONFIG_STATUS <<EOF
18536
18537 # Protect against being on the right side of a sed subst in config.status.
18538 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18539  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18540 $ac_vpsub
18541 $extrasub
18542 s%@SHELL@%$SHELL%g
18543 s%@CFLAGS@%$CFLAGS%g
18544 s%@CPPFLAGS@%$CPPFLAGS%g
18545 s%@CXXFLAGS@%$CXXFLAGS%g
18546 s%@FFLAGS@%$FFLAGS%g
18547 s%@DEFS@%$DEFS%g
18548 s%@LDFLAGS@%$LDFLAGS%g
18549 s%@LIBS@%$LIBS%g
18550 s%@exec_prefix@%$exec_prefix%g
18551 s%@prefix@%$prefix%g
18552 s%@program_transform_name@%$program_transform_name%g
18553 s%@bindir@%$bindir%g
18554 s%@sbindir@%$sbindir%g
18555 s%@libexecdir@%$libexecdir%g
18556 s%@datadir@%$datadir%g
18557 s%@sysconfdir@%$sysconfdir%g
18558 s%@sharedstatedir@%$sharedstatedir%g
18559 s%@localstatedir@%$localstatedir%g
18560 s%@libdir@%$libdir%g
18561 s%@includedir@%$includedir%g
18562 s%@oldincludedir@%$oldincludedir%g
18563 s%@infodir@%$infodir%g
18564 s%@mandir@%$mandir%g
18565 s%@PACKAGE@%$PACKAGE%g
18566 s%@release_VERSION@%$release_VERSION%g
18567 s%@libtool_VERSION@%$libtool_VERSION%g
18568 s%@host@%$host%g
18569 s%@host_alias@%$host_alias%g
18570 s%@host_cpu@%$host_cpu%g
18571 s%@host_vendor@%$host_vendor%g
18572 s%@host_os@%$host_os%g
18573 s%@target@%$target%g
18574 s%@target_alias@%$target_alias%g
18575 s%@target_cpu@%$target_cpu%g
18576 s%@target_vendor@%$target_vendor%g
18577 s%@target_os@%$target_os%g
18578 s%@build@%$build%g
18579 s%@build_alias@%$build_alias%g
18580 s%@build_cpu@%$build_cpu%g
18581 s%@build_vendor@%$build_vendor%g
18582 s%@build_os@%$build_os%g
18583 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18584 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18585 s%@INSTALL_DATA@%$INSTALL_DATA%g
18586 s%@VERSION@%$VERSION%g
18587 s%@ACLOCAL@%$ACLOCAL%g
18588 s%@AUTOCONF@%$AUTOCONF%g
18589 s%@AUTOMAKE@%$AUTOMAKE%g
18590 s%@AUTOHEADER@%$AUTOHEADER%g
18591 s%@MAKEINFO@%$MAKEINFO%g
18592 s%@SET_MAKE@%$SET_MAKE%g
18593 s%@toplevel_srcdir@%$toplevel_srcdir%g
18594 s%@glibcpp_builddir@%$glibcpp_builddir%g
18595 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
18596 s%@LN_S@%$LN_S%g
18597 s%@glibcpp_basedir@%$glibcpp_basedir%g
18598 s%@CC@%$CC%g
18599 s%@glibcpp_CXX@%$glibcpp_CXX%g
18600 s%@AS@%$AS%g
18601 s%@AR@%$AR%g
18602 s%@RANLIB@%$RANLIB%g
18603 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
18604 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
18605 s%@MAINT@%$MAINT%g
18606 s%@EXEEXT@%$EXEEXT%g
18607 s%@OBJEXT@%$OBJEXT%g
18608 s%@STRIP@%$STRIP%g
18609 s%@LIBTOOL@%$LIBTOOL%g
18610 s%@CXXCPP@%$CXXCPP%g
18611 s%@enable_shared@%$enable_shared%g
18612 s%@enable_static@%$enable_static%g
18613 s%@ifGNUmake@%$ifGNUmake%g
18614 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
18615 s%@CPP@%$CPP%g
18616 s%@CSTDIO_H@%$CSTDIO_H%g
18617 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
18618 s%@CCODECVT_C@%$CCODECVT_C%g
18619 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
18620 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
18621 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
18622 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
18623 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
18624 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
18625 s%@libio_la@%$libio_la%g
18626 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
18627 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
18628 s%@glibcpp_localedir@%$glibcpp_localedir%g
18629 s%@USE_NLS@%$USE_NLS%g
18630 s%@CLOCALE_H@%$CLOCALE_H%g
18631 s%@CCODECVT_H@%$CCODECVT_H%g
18632 s%@CMESSAGES_H@%$CMESSAGES_H%g
18633 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
18634 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
18635 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
18636 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
18637 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
18638 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
18639 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
18640 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
18641 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
18642 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
18643 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
18644 s%@WERROR@%$WERROR%g
18645 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
18646 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
18647 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
18648 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
18649 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
18650 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
18651 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
18652 s%@gxx_include_dir@%$gxx_include_dir%g
18653 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
18654 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
18655 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
18656 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
18657 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
18658 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
18659 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
18660 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
18661 s%@WARN_FLAGS@%$WARN_FLAGS%g
18662 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
18663
18664 CEOF
18665 EOF
18666
18667 cat >> $CONFIG_STATUS <<\EOF
18668
18669 # Split the substitutions into bite-sized pieces for seds with
18670 # small command number limits, like on Digital OSF/1 and HP-UX.
18671 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18672 ac_file=1 # Number of current file.
18673 ac_beg=1 # First line for current file.
18674 ac_end=$ac_max_sed_cmds # Line after last line for current file.
18675 ac_more_lines=:
18676 ac_sed_cmds=""
18677 while $ac_more_lines; do
18678   if test $ac_beg -gt 1; then
18679     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18680   else
18681     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18682   fi
18683   if test ! -s conftest.s$ac_file; then
18684     ac_more_lines=false
18685     rm -f conftest.s$ac_file
18686   else
18687     if test -z "$ac_sed_cmds"; then
18688       ac_sed_cmds="sed -f conftest.s$ac_file"
18689     else
18690       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18691     fi
18692     ac_file=`expr $ac_file + 1`
18693     ac_beg=$ac_end
18694     ac_end=`expr $ac_end + $ac_max_sed_cmds`
18695   fi
18696 done
18697 if test -z "$ac_sed_cmds"; then
18698   ac_sed_cmds=cat
18699 fi
18700 EOF
18701
18702 cat >> $CONFIG_STATUS <<EOF
18703
18704 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
18705     include/Makefile src/Makefile \
18706     libmath/Makefile libio/Makefile libsupc++/Makefile \
18707     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
18708 EOF
18709 cat >> $CONFIG_STATUS <<\EOF
18710 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18711   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18712   case "$ac_file" in
18713   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18714        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18715   *) ac_file_in="${ac_file}.in" ;;
18716   esac
18717
18718   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18719
18720   # Remove last slash and all that follows it.  Not all systems have dirname.
18721   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18722   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18723     # The file is in a subdirectory.
18724     test ! -d "$ac_dir" && mkdir "$ac_dir"
18725     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18726     # A "../" for each directory in $ac_dir_suffix.
18727     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18728   else
18729     ac_dir_suffix= ac_dots=
18730   fi
18731
18732   case "$ac_given_srcdir" in
18733   .)  srcdir=.
18734       if test -z "$ac_dots"; then top_srcdir=.
18735       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18736   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18737   *) # Relative path.
18738     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18739     top_srcdir="$ac_dots$ac_given_srcdir" ;;
18740   esac
18741
18742   case "$ac_given_INSTALL" in
18743   [/$]*) INSTALL="$ac_given_INSTALL" ;;
18744   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18745   esac
18746
18747   echo creating "$ac_file"
18748   rm -f "$ac_file"
18749   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18750   case "$ac_file" in
18751   *Makefile*) ac_comsub="1i\\
18752 # $configure_input" ;;
18753   *) ac_comsub= ;;
18754   esac
18755
18756   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18757   sed -e "$ac_comsub
18758 s%@configure_input@%$configure_input%g
18759 s%@srcdir@%$srcdir%g
18760 s%@top_srcdir@%$top_srcdir%g
18761 s%@INSTALL@%$INSTALL%g
18762 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18763 fi; done
18764 rm -f conftest.s*
18765
18766 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18767 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18768 #
18769 # ac_d sets the value in "#define NAME VALUE" lines.
18770 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18771 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
18772 ac_dC='\3'
18773 ac_dD='%g'
18774 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18775 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18776 ac_uB='\([      ]\)%\1#\2define\3'
18777 ac_uC=' '
18778 ac_uD='\4%g'
18779 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18780 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18781 ac_eB='$%\1#\2define\3'
18782 ac_eC=' '
18783 ac_eD='%g'
18784
18785 if test "${CONFIG_HEADERS+set}" != set; then
18786 EOF
18787 cat >> $CONFIG_STATUS <<EOF
18788   CONFIG_HEADERS="config.h"
18789 EOF
18790 cat >> $CONFIG_STATUS <<\EOF
18791 fi
18792 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18793   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18794   case "$ac_file" in
18795   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18796        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18797   *) ac_file_in="${ac_file}.in" ;;
18798   esac
18799
18800   echo creating $ac_file
18801
18802   rm -f conftest.frag conftest.in conftest.out
18803   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18804   cat $ac_file_inputs > conftest.in
18805
18806 EOF
18807
18808 # Transform confdefs.h into a sed script conftest.vals that substitutes
18809 # the proper values into config.h.in to produce config.h.  And first:
18810 # Protect against being on the right side of a sed subst in config.status.
18811 # Protect against being in an unquoted here document in config.status.
18812 rm -f conftest.vals
18813 cat > conftest.hdr <<\EOF
18814 s/[\\&%]/\\&/g
18815 s%[\\$`]%\\&%g
18816 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18817 s%ac_d%ac_u%gp
18818 s%ac_u%ac_e%gp
18819 EOF
18820 sed -n -f conftest.hdr confdefs.h > conftest.vals
18821 rm -f conftest.hdr
18822
18823 # This sed command replaces #undef with comments.  This is necessary, for
18824 # example, in the case of _POSIX_SOURCE, which is predefined and required
18825 # on some systems where configure will not decide to define it.
18826 cat >> conftest.vals <<\EOF
18827 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18828 EOF
18829
18830 # Break up conftest.vals because some shells have a limit on
18831 # the size of here documents, and old seds have small limits too.
18832
18833 rm -f conftest.tail
18834 while :
18835 do
18836   ac_lines=`grep -c . conftest.vals`
18837   # grep -c gives empty output for an empty file on some AIX systems.
18838   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18839   # Write a limited-size here document to conftest.frag.
18840   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18841   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18842   echo 'CEOF
18843   sed -f conftest.frag conftest.in > conftest.out
18844   rm -f conftest.in
18845   mv conftest.out conftest.in
18846 ' >> $CONFIG_STATUS
18847   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18848   rm -f conftest.vals
18849   mv conftest.tail conftest.vals
18850 done
18851 rm -f conftest.vals
18852
18853 cat >> $CONFIG_STATUS <<\EOF
18854   rm -f conftest.frag conftest.h
18855   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
18856   cat conftest.in >> conftest.h
18857   rm -f conftest.in
18858   if cmp -s $ac_file conftest.h 2>/dev/null; then
18859     echo "$ac_file is unchanged"
18860     rm -f conftest.h
18861   else
18862     # Remove last slash and all that follows it.  Not all systems have dirname.
18863       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18864       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18865       # The file is in a subdirectory.
18866       test ! -d "$ac_dir" && mkdir "$ac_dir"
18867     fi
18868     rm -f $ac_file
18869     mv conftest.h $ac_file
18870   fi
18871 fi; done
18872
18873 EOF
18874
18875 cat >> $CONFIG_STATUS <<EOF
18876 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC"
18877 ac_dests="src/basic_file.cc src/c++locale.cc src/collate.cc src/ctype.cc src/messages.cc src/moneypunct.cc src/numpunct.cc src/time.cc"
18878 EOF
18879
18880 cat >> $CONFIG_STATUS <<\EOF
18881 srcdir=$ac_given_srcdir
18882 while test -n "$ac_sources"; do
18883   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
18884   set $ac_sources; ac_source=$1; shift; ac_sources=$*
18885
18886   echo "linking $srcdir/$ac_source to $ac_dest"
18887
18888   if test ! -r $srcdir/$ac_source; then
18889     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
18890   fi
18891   rm -f $ac_dest
18892
18893   # Make relative symlinks.
18894   # Remove last slash and all that follows it.  Not all systems have dirname.
18895   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
18896   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
18897     # The dest file is in a subdirectory.
18898     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
18899     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
18900     # A "../" for each directory in $ac_dest_dir_suffix.
18901     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
18902   else
18903     ac_dest_dir_suffix= ac_dots=
18904   fi
18905
18906   case "$srcdir" in
18907   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
18908   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
18909   esac
18910
18911   # Make a symlink if possible; otherwise try a hard link.
18912   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18913     ln $srcdir/$ac_source $ac_dest; then :
18914   else
18915     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
18916   fi
18917 done
18918 EOF
18919 cat >> $CONFIG_STATUS <<EOF
18920
18921 srcdir=${srcdir}
18922 host=${host}
18923 target=${target}
18924 with_multisubdir=${with_multisubdir}
18925 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18926 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18927 glibcpp_basedir=${glibcpp_basedir}
18928 CC="${CC}"
18929 CXX="${CXX}"
18930
18931 EOF
18932 cat >> $CONFIG_STATUS <<\EOF
18933 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
18934 if test -n "$CONFIG_FILES"; then
18935   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
18936   grep '^MULTISUBDIR =' Makefile >> src/Makefile
18937   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
18938 fi
18939 chmod +x mkcheck
18940 chmod +x testsuite_flags
18941
18942 exit 0
18943 EOF
18944 chmod +x $CONFIG_STATUS
18945 rm -fr confdefs* $ac_clean_files
18946 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
18947
18948
18949
18950 # Sanity checking & User-visible messages.
18951 # Checks down here, otherwise they get scrolled off before
18952 # the user will notice.
18953
18954 # Trying to get more people to read documentation.  Possibly remove
18955 # check and warn all the time. There is no "informational" AC_MSG_
18956 # macro, so these are going to be printed even when --quiet/--silent
18957 # is given.
18958 if test ! -f stamp-sanity-warned; then
18959   touch stamp-sanity-warned
18960   echo ""
18961   echo "Please make certain that you read the installation information here:"
18962   echo "  faster => ${srcdir}/docs/install.html"
18963   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
18964   echo ""
18965   echo "and the configuration information here:"
18966   echo "  faster => ${srcdir}/docs/configopts.html"
18967   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
18968   echo ""
18969   echo "before proceeding with ${_cv_gnu_make_command}."
18970   echo ""
18971 fi