OSDN Git Service

2002-03-11 Benjamin Kosnik <bkoz@redhat.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-multilib       build hella library versions (default)"
16 ac_help="$ac_help
17   --with-target-subdir=SUBDIR
18                            configuring in a subdirectory"
19 ac_help="$ac_help
20   --with-cross-host=HOST  configuring with a cross compiler"
21 ac_help="$ac_help
22   --enable-maintainer-mode enable make rules and dependencies not useful
23                           (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25   --enable-shared[=PKGS]  build shared libraries [default=yes]"
26 ac_help="$ac_help
27   --enable-static[=PKGS]  build static libraries [default=yes]"
28 ac_help="$ac_help
29   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33   --disable-libtool-lock  avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37   --enable-debug          extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39   --enable-cstdio         enable stdio for target io package. 
40   --enable-cstdio=LIB     use LIB target-speific io package. [default=stdio]
41   "
42 ac_help="$ac_help
43   --enable-clocale        enable model for target locale package. 
44   --enable-clocale=MODEL  use MODEL target-speific locale package. [default=generic]
45   "
46 ac_help="$ac_help
47   --enable-c-mbchar       enable multibyte (wide) characters [default=yes]"
48 ac_help="$ac_help
49   --enable-c99            turns on 'ISO/IEC 9899:1999 support' [default=yes]"
50 ac_help="$ac_help
51   --enable-long-long      turns on 'long long' [default=yes]"
52 ac_help="$ac_help
53   --enable-cheaders       construct "C" header files for g++ [default=c_std]"
54 ac_help="$ac_help
55   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
56                                 [default=none]"
57 ac_help="$ac_help
58   --enable-sjlj-exceptions  force use of builtin_setjmp for exceptions"
59 ac_help="$ac_help
60   --enable-concept-checks use Boost-derived template checks [default=no]"
61 ac_help="$ac_help
62   --enable-symvers=style  enables symbol versioning of the shared library [default=yes]"
63 ac_help="$ac_help
64   --with-gxx-include-dir  the installation directory for include files"
65 ac_help="$ac_help
66   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
67
68 # Initialize some variables set by options.
69 # The variables have the same names as the options, with
70 # dashes changed to underlines.
71 build=NONE
72 cache_file=./config.cache
73 exec_prefix=NONE
74 host=NONE
75 no_create=
76 nonopt=NONE
77 no_recursion=
78 prefix=NONE
79 program_prefix=NONE
80 program_suffix=NONE
81 program_transform_name=s,x,x,
82 silent=
83 site=
84 srcdir=
85 target=NONE
86 verbose=
87 x_includes=NONE
88 x_libraries=NONE
89 bindir='${exec_prefix}/bin'
90 sbindir='${exec_prefix}/sbin'
91 libexecdir='${exec_prefix}/libexec'
92 datadir='${prefix}/share'
93 sysconfdir='${prefix}/etc'
94 sharedstatedir='${prefix}/com'
95 localstatedir='${prefix}/var'
96 libdir='${exec_prefix}/lib'
97 includedir='${prefix}/include'
98 oldincludedir='/usr/include'
99 infodir='${prefix}/info'
100 mandir='${prefix}/man'
101
102 # Initialize some other variables.
103 subdirs=
104 MFLAGS= MAKEFLAGS=
105 SHELL=${CONFIG_SHELL-/bin/sh}
106 # Maximum number of lines to put in a shell here document.
107 ac_max_here_lines=12
108
109 ac_prev=
110 for ac_option
111 do
112
113   # If the previous option needs an argument, assign it.
114   if test -n "$ac_prev"; then
115     eval "$ac_prev=\$ac_option"
116     ac_prev=
117     continue
118   fi
119
120   case "$ac_option" in
121   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
122   *) ac_optarg= ;;
123   esac
124
125   # Accept the important Cygnus configure options, so we can diagnose typos.
126
127   case "$ac_option" in
128
129   -bindir | --bindir | --bindi | --bind | --bin | --bi)
130     ac_prev=bindir ;;
131   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
132     bindir="$ac_optarg" ;;
133
134   -build | --build | --buil | --bui | --bu)
135     ac_prev=build ;;
136   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
137     build="$ac_optarg" ;;
138
139   -cache-file | --cache-file | --cache-fil | --cache-fi \
140   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
141     ac_prev=cache_file ;;
142   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
143   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
144     cache_file="$ac_optarg" ;;
145
146   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
147     ac_prev=datadir ;;
148   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
149   | --da=*)
150     datadir="$ac_optarg" ;;
151
152   -disable-* | --disable-*)
153     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
154     # Reject names that are not valid shell variable names.
155     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
156       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157     fi
158     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
159     eval "enable_${ac_feature}=no" ;;
160
161   -enable-* | --enable-*)
162     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
163     # Reject names that are not valid shell variable names.
164     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
165       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166     fi
167     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
168     case "$ac_option" in
169       *=*) ;;
170       *) ac_optarg=yes ;;
171     esac
172     eval "enable_${ac_feature}='$ac_optarg'" ;;
173
174   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
175   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
176   | --exec | --exe | --ex)
177     ac_prev=exec_prefix ;;
178   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
179   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
180   | --exec=* | --exe=* | --ex=*)
181     exec_prefix="$ac_optarg" ;;
182
183   -gas | --gas | --ga | --g)
184     # Obsolete; use --with-gas.
185     with_gas=yes ;;
186
187   -help | --help | --hel | --he)
188     # Omit some internal or obsolete options to make the list less imposing.
189     # This message is too long to be a string in the A/UX 3.1 sh.
190     cat << EOF
191 Usage: configure [options] [host]
192 Options: [defaults in brackets after descriptions]
193 Configuration:
194   --cache-file=FILE       cache test results in FILE
195   --help                  print this message
196   --no-create             do not create output files
197   --quiet, --silent       do not print \`checking...' messages
198   --version               print the version of autoconf that created configure
199 Directory and file names:
200   --prefix=PREFIX         install architecture-independent files in PREFIX
201                           [$ac_default_prefix]
202   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
203                           [same as prefix]
204   --bindir=DIR            user executables in DIR [EPREFIX/bin]
205   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
206   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
207   --datadir=DIR           read-only architecture-independent data in DIR
208                           [PREFIX/share]
209   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
210   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
211                           [PREFIX/com]
212   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
213   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
214   --includedir=DIR        C header files in DIR [PREFIX/include]
215   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
216   --infodir=DIR           info documentation in DIR [PREFIX/info]
217   --mandir=DIR            man documentation in DIR [PREFIX/man]
218   --srcdir=DIR            find the sources in DIR [configure dir or ..]
219   --program-prefix=PREFIX prepend PREFIX to installed program names
220   --program-suffix=SUFFIX append SUFFIX to installed program names
221   --program-transform-name=PROGRAM
222                           run sed PROGRAM on installed program names
223 EOF
224     cat << EOF
225 Host type:
226   --build=BUILD           configure for building on BUILD [BUILD=HOST]
227   --host=HOST             configure for HOST [guessed]
228   --target=TARGET         configure for TARGET [TARGET=HOST]
229 Features and packages:
230   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
231   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
232   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
233   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
234   --x-includes=DIR        X include files are in DIR
235   --x-libraries=DIR       X library files are in DIR
236 EOF
237     if test -n "$ac_help"; then
238       echo "--enable and --with options recognized:$ac_help"
239     fi
240     exit 0 ;;
241
242   -host | --host | --hos | --ho)
243     ac_prev=host ;;
244   -host=* | --host=* | --hos=* | --ho=*)
245     host="$ac_optarg" ;;
246
247   -includedir | --includedir | --includedi | --included | --include \
248   | --includ | --inclu | --incl | --inc)
249     ac_prev=includedir ;;
250   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
251   | --includ=* | --inclu=* | --incl=* | --inc=*)
252     includedir="$ac_optarg" ;;
253
254   -infodir | --infodir | --infodi | --infod | --info | --inf)
255     ac_prev=infodir ;;
256   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
257     infodir="$ac_optarg" ;;
258
259   -libdir | --libdir | --libdi | --libd)
260     ac_prev=libdir ;;
261   -libdir=* | --libdir=* | --libdi=* | --libd=*)
262     libdir="$ac_optarg" ;;
263
264   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
265   | --libexe | --libex | --libe)
266     ac_prev=libexecdir ;;
267   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
268   | --libexe=* | --libex=* | --libe=*)
269     libexecdir="$ac_optarg" ;;
270
271   -localstatedir | --localstatedir | --localstatedi | --localstated \
272   | --localstate | --localstat | --localsta | --localst \
273   | --locals | --local | --loca | --loc | --lo)
274     ac_prev=localstatedir ;;
275   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
276   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
277   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
278     localstatedir="$ac_optarg" ;;
279
280   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
281     ac_prev=mandir ;;
282   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
283     mandir="$ac_optarg" ;;
284
285   -nfp | --nfp | --nf)
286     # Obsolete; use --without-fp.
287     with_fp=no ;;
288
289   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
290   | --no-cr | --no-c)
291     no_create=yes ;;
292
293   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
294   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
295     no_recursion=yes ;;
296
297   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
298   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
299   | --oldin | --oldi | --old | --ol | --o)
300     ac_prev=oldincludedir ;;
301   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
302   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
303   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
304     oldincludedir="$ac_optarg" ;;
305
306   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
307     ac_prev=prefix ;;
308   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
309     prefix="$ac_optarg" ;;
310
311   -program-prefix | --program-prefix | --program-prefi | --program-pref \
312   | --program-pre | --program-pr | --program-p)
313     ac_prev=program_prefix ;;
314   -program-prefix=* | --program-prefix=* | --program-prefi=* \
315   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
316     program_prefix="$ac_optarg" ;;
317
318   -program-suffix | --program-suffix | --program-suffi | --program-suff \
319   | --program-suf | --program-su | --program-s)
320     ac_prev=program_suffix ;;
321   -program-suffix=* | --program-suffix=* | --program-suffi=* \
322   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
323     program_suffix="$ac_optarg" ;;
324
325   -program-transform-name | --program-transform-name \
326   | --program-transform-nam | --program-transform-na \
327   | --program-transform-n | --program-transform- \
328   | --program-transform | --program-transfor \
329   | --program-transfo | --program-transf \
330   | --program-trans | --program-tran \
331   | --progr-tra | --program-tr | --program-t)
332     ac_prev=program_transform_name ;;
333   -program-transform-name=* | --program-transform-name=* \
334   | --program-transform-nam=* | --program-transform-na=* \
335   | --program-transform-n=* | --program-transform-=* \
336   | --program-transform=* | --program-transfor=* \
337   | --program-transfo=* | --program-transf=* \
338   | --program-trans=* | --program-tran=* \
339   | --progr-tra=* | --program-tr=* | --program-t=*)
340     program_transform_name="$ac_optarg" ;;
341
342   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
343   | -silent | --silent | --silen | --sile | --sil)
344     silent=yes ;;
345
346   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
347     ac_prev=sbindir ;;
348   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
349   | --sbi=* | --sb=*)
350     sbindir="$ac_optarg" ;;
351
352   -sharedstatedir | --sharedstatedir | --sharedstatedi \
353   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
354   | --sharedst | --shareds | --shared | --share | --shar \
355   | --sha | --sh)
356     ac_prev=sharedstatedir ;;
357   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
358   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
359   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
360   | --sha=* | --sh=*)
361     sharedstatedir="$ac_optarg" ;;
362
363   -site | --site | --sit)
364     ac_prev=site ;;
365   -site=* | --site=* | --sit=*)
366     site="$ac_optarg" ;;
367
368   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
369     ac_prev=srcdir ;;
370   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
371     srcdir="$ac_optarg" ;;
372
373   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
374   | --syscon | --sysco | --sysc | --sys | --sy)
375     ac_prev=sysconfdir ;;
376   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
377   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
378     sysconfdir="$ac_optarg" ;;
379
380   -target | --target | --targe | --targ | --tar | --ta | --t)
381     ac_prev=target ;;
382   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
383     target="$ac_optarg" ;;
384
385   -v | -verbose | --verbose | --verbos | --verbo | --verb)
386     verbose=yes ;;
387
388   -version | --version | --versio | --versi | --vers)
389     echo "configure generated by autoconf version 2.13"
390     exit 0 ;;
391
392   -with-* | --with-*)
393     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
394     # Reject names that are not valid shell variable names.
395     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
396       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
397     fi
398     ac_package=`echo $ac_package| sed 's/-/_/g'`
399     case "$ac_option" in
400       *=*) ;;
401       *) ac_optarg=yes ;;
402     esac
403     eval "with_${ac_package}='$ac_optarg'" ;;
404
405   -without-* | --without-*)
406     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
407     # Reject names that are not valid shell variable names.
408     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
409       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410     fi
411     ac_package=`echo $ac_package| sed 's/-/_/g'`
412     eval "with_${ac_package}=no" ;;
413
414   --x)
415     # Obsolete; use --with-x.
416     with_x=yes ;;
417
418   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
419   | --x-incl | --x-inc | --x-in | --x-i)
420     ac_prev=x_includes ;;
421   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
422   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
423     x_includes="$ac_optarg" ;;
424
425   -x-libraries | --x-libraries | --x-librarie | --x-librari \
426   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
427     ac_prev=x_libraries ;;
428   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
429   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
430     x_libraries="$ac_optarg" ;;
431
432   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
433     ;;
434
435   *)
436     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
437       echo "configure: warning: $ac_option: invalid host type" 1>&2
438     fi
439     if test "x$nonopt" != xNONE; then
440       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
441     fi
442     nonopt="$ac_option"
443     ;;
444
445   esac
446 done
447
448 if test -n "$ac_prev"; then
449   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
450 fi
451
452 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
453
454 # File descriptor usage:
455 # 0 standard input
456 # 1 file creation
457 # 2 errors and warnings
458 # 3 some systems may open it to /dev/tty
459 # 4 used on the Kubota Titan
460 # 6 checking for... messages and results
461 # 5 compiler messages saved in config.log
462 if test "$silent" = yes; then
463   exec 6>/dev/null
464 else
465   exec 6>&1
466 fi
467 exec 5>./config.log
468
469 echo "\
470 This file contains any messages produced by compilers while
471 running configure, to aid debugging if configure makes a mistake.
472 " 1>&5
473
474 # Strip out --no-create and --no-recursion so they do not pile up.
475 # Also quote any args containing shell metacharacters.
476 ac_configure_args=
477 for ac_arg
478 do
479   case "$ac_arg" in
480   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
481   | --no-cr | --no-c) ;;
482   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
483   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
484   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
485   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
486   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
487   esac
488 done
489
490 # NLS nuisances.
491 # Only set these to C if already set.  These must not be set unconditionally
492 # because not all systems understand e.g. LANG=C (notably SCO).
493 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
494 # Non-C LC_CTYPE values break the ctype check.
495 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
496 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
497 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
498 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
499
500 # confdefs.h avoids OS command line length limits that DEFS can exceed.
501 rm -rf conftest* confdefs.h
502 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
503 echo > confdefs.h
504
505 # A filename unique to this package, relative to the directory that
506 # configure is in, which we can look for to find out if srcdir is correct.
507 ac_unique_file=src/ios.cc
508
509 # Find the source files, if location was not specified.
510 if test -z "$srcdir"; then
511   ac_srcdir_defaulted=yes
512   # Try the directory containing this script, then its parent.
513   ac_prog=$0
514   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
515   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
516   srcdir=$ac_confdir
517   if test ! -r $srcdir/$ac_unique_file; then
518     srcdir=..
519   fi
520 else
521   ac_srcdir_defaulted=no
522 fi
523 if test ! -r $srcdir/$ac_unique_file; then
524   if test "$ac_srcdir_defaulted" = yes; then
525     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
526   else
527     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
528   fi
529 fi
530 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
531
532 # Prefer explicitly selected file to automatically selected ones.
533 if test -z "$CONFIG_SITE"; then
534   if test "x$prefix" != xNONE; then
535     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
536   else
537     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
538   fi
539 fi
540 for ac_site_file in $CONFIG_SITE; do
541   if test -r "$ac_site_file"; then
542     echo "loading site script $ac_site_file"
543     . "$ac_site_file"
544   fi
545 done
546
547 if test -r "$cache_file"; then
548   echo "loading cache $cache_file"
549   . $cache_file
550 else
551   echo "creating cache $cache_file"
552   > $cache_file
553 fi
554
555 ac_ext=c
556 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
557 ac_cpp='$CPP $CPPFLAGS'
558 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
559 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
560 cross_compiling=$ac_cv_prog_cc_cross
561
562 ac_exeext=
563 ac_objext=o
564 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
565   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
566   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
567     ac_n= ac_c='
568 ' ac_t='        '
569   else
570     ac_n=-n ac_c= ac_t=
571   fi
572 else
573   ac_n= ac_c='\c' ac_t=
574 fi
575
576
577
578 PACKAGE=libstdc++
579
580 # For typical GNU versioning info, format is MAJOR.MINOR.MICRO
581 release_VERSION=3.1.0
582
583 # For libtool versioning info, format is CURRENT:REVISION:AGE
584 libtool_VERSION=4:0:0
585
586
587 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
588 # AC 2.50 sets target_alias iff the user specified --target, but we use it
589 # everywhere, so we set it here just to be sure.
590 ac_aux_dir=
591 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
592   if test -f $ac_dir/install-sh; then
593     ac_aux_dir=$ac_dir
594     ac_install_sh="$ac_aux_dir/install-sh -c"
595     break
596   elif test -f $ac_dir/install.sh; then
597     ac_aux_dir=$ac_dir
598     ac_install_sh="$ac_aux_dir/install.sh -c"
599     break
600   fi
601 done
602 if test -z "$ac_aux_dir"; then
603   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
604 fi
605 ac_config_guess=$ac_aux_dir/config.guess
606 ac_config_sub=$ac_aux_dir/config.sub
607 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
608
609
610 # Do some error checking and defaulting for the host and target type.
611 # The inputs are:
612 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
613 #
614 # The rules are:
615 # 1. You are not allowed to specify --host, --target, and nonopt at the
616 #    same time.
617 # 2. Host defaults to nonopt.
618 # 3. If nonopt is not specified, then host defaults to the current host,
619 #    as determined by config.guess.
620 # 4. Target and build default to nonopt.
621 # 5. If nonopt is not specified, then target and build default to host.
622
623 # The aliases save the names the user supplied, while $host etc.
624 # will get canonicalized.
625 case $host---$target---$nonopt in
626 NONE---*---* | *---NONE---* | *---*---NONE) ;;
627 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
628 esac
629
630
631 # Make sure we can run config.sub.
632 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
633 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
634 fi
635
636 echo $ac_n "checking host system type""... $ac_c" 1>&6
637 echo "configure:638: checking host system type" >&5
638
639 host_alias=$host
640 case "$host_alias" in
641 NONE)
642   case $nonopt in
643   NONE)
644     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
645     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
646     fi ;;
647   *) host_alias=$nonopt ;;
648   esac ;;
649 esac
650
651 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
652 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
653 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
654 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
655 echo "$ac_t""$host" 1>&6
656
657 echo $ac_n "checking target system type""... $ac_c" 1>&6
658 echo "configure:659: checking target system type" >&5
659
660 target_alias=$target
661 case "$target_alias" in
662 NONE)
663   case $nonopt in
664   NONE) target_alias=$host_alias ;;
665   *) target_alias=$nonopt ;;
666   esac ;;
667 esac
668
669 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
670 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
671 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
672 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
673 echo "$ac_t""$target" 1>&6
674
675 echo $ac_n "checking build system type""... $ac_c" 1>&6
676 echo "configure:677: checking build system type" >&5
677
678 build_alias=$build
679 case "$build_alias" in
680 NONE)
681   case $nonopt in
682   NONE) build_alias=$host_alias ;;
683   *) build_alias=$nonopt ;;
684   esac ;;
685 esac
686
687 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
688 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
689 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
690 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
691 echo "$ac_t""$build" 1>&6
692
693 test "$host_alias" != "$target_alias" &&
694   test "$program_prefix$program_suffix$program_transform_name" = \
695     NONENONEs,x,x, &&
696   program_prefix=${target_alias}-
697
698 target_alias=${target_alias-$target}
699
700
701 # Find a good install program.  We prefer a C program (faster),
702 # so one script is as good as another.  But avoid the broken or
703 # incompatible versions:
704 # SysV /etc/install, /usr/sbin/install
705 # SunOS /usr/etc/install
706 # IRIX /sbin/install
707 # AIX /bin/install
708 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
709 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
710 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
711 # ./install, which can be erroneously created by make from ./install.sh.
712 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
713 echo "configure:714: checking for a BSD compatible install" >&5
714 if test -z "$INSTALL"; then
715 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
716   echo $ac_n "(cached) $ac_c" 1>&6
717 else
718     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
719   for ac_dir in $PATH; do
720     # Account for people who put trailing slashes in PATH elements.
721     case "$ac_dir/" in
722     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
723     *)
724       # OSF1 and SCO ODT 3.0 have their own names for install.
725       # Don't use installbsd from OSF since it installs stuff as root
726       # by default.
727       for ac_prog in ginstall scoinst install; do
728         if test -f $ac_dir/$ac_prog; then
729           if test $ac_prog = install &&
730             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
731             # AIX install.  It has an incompatible calling convention.
732             :
733           else
734             ac_cv_path_install="$ac_dir/$ac_prog -c"
735             break 2
736           fi
737         fi
738       done
739       ;;
740     esac
741   done
742   IFS="$ac_save_IFS"
743
744 fi
745   if test "${ac_cv_path_install+set}" = set; then
746     INSTALL="$ac_cv_path_install"
747   else
748     # As a last resort, use the slow shell script.  We don't cache a
749     # path for INSTALL within a source directory, because that will
750     # break other packages using the cache if that directory is
751     # removed, or if the path is relative.
752     INSTALL="$ac_install_sh"
753   fi
754 fi
755 echo "$ac_t""$INSTALL" 1>&6
756
757 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
758 # It thinks the first close brace ends the variable substitution.
759 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
760
761 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
762
763 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
764
765 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
766 echo "configure:767: checking whether build environment is sane" >&5
767 # Just in case
768 sleep 1
769 echo timestamp > conftestfile
770 # Do `set' in a subshell so we don't clobber the current shell's
771 # arguments.  Must try -L first in case configure is actually a
772 # symlink; some systems play weird games with the mod time of symlinks
773 # (eg FreeBSD returns the mod time of the symlink's containing
774 # directory).
775 if (
776    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
777    if test "$*" = "X"; then
778       # -L didn't work.
779       set X `ls -t $srcdir/configure conftestfile`
780    fi
781    if test "$*" != "X $srcdir/configure conftestfile" \
782       && test "$*" != "X conftestfile $srcdir/configure"; then
783
784       # If neither matched, then we have a broken ls.  This can happen
785       # if, for instance, CONFIG_SHELL is bash and it inherits a
786       # broken ls alias from the environment.  This has actually
787       # happened.  Such a system could not be considered "sane".
788       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
789 alias in your environment" 1>&2; exit 1; }
790    fi
791
792    test "$2" = conftestfile
793    )
794 then
795    # Ok.
796    :
797 else
798    { echo "configure: error: newly created file is older than distributed files!
799 Check your system clock" 1>&2; exit 1; }
800 fi
801 rm -f conftest*
802 echo "$ac_t""yes" 1>&6
803 if test "$program_transform_name" = s,x,x,; then
804   program_transform_name=
805 else
806   # Double any \ or $.  echo might interpret backslashes.
807   cat <<\EOF_SED > conftestsed
808 s,\\,\\\\,g; s,\$,$$,g
809 EOF_SED
810   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
811   rm -f conftestsed
812 fi
813 test "$program_prefix" != NONE &&
814   program_transform_name="s,^,${program_prefix},; $program_transform_name"
815 # Use a double $ so make ignores it.
816 test "$program_suffix" != NONE &&
817   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
818
819 # sed with no file args requires a program.
820 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
821
822 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
823 echo "configure:824: checking whether ${MAKE-make} sets \${MAKE}" >&5
824 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
825 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
826   echo $ac_n "(cached) $ac_c" 1>&6
827 else
828   cat > conftestmake <<\EOF
829 all:
830         @echo 'ac_maketemp="${MAKE}"'
831 EOF
832 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
833 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
834 if test -n "$ac_maketemp"; then
835   eval ac_cv_prog_make_${ac_make}_set=yes
836 else
837   eval ac_cv_prog_make_${ac_make}_set=no
838 fi
839 rm -f conftestmake
840 fi
841 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
842   echo "$ac_t""yes" 1>&6
843   SET_MAKE=
844 else
845   echo "$ac_t""no" 1>&6
846   SET_MAKE="MAKE=${MAKE-make}"
847 fi
848
849
850 PACKAGE=$PACKAGE
851
852 VERSION=$release_VERSION
853
854 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
855   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
856 fi
857 cat >> confdefs.h <<EOF
858 #define PACKAGE "$PACKAGE"
859 EOF
860
861 cat >> confdefs.h <<EOF
862 #define VERSION "$VERSION"
863 EOF
864
865
866
867 missing_dir=`cd $ac_aux_dir && pwd`
868 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
869 echo "configure:870: checking for working aclocal" >&5
870 # Run test in a subshell; some versions of sh will print an error if
871 # an executable is not found, even if stderr is redirected.
872 # Redirect stdin to placate older versions of autoconf.  Sigh.
873 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
874    ACLOCAL=aclocal
875    echo "$ac_t""found" 1>&6
876 else
877    ACLOCAL="$missing_dir/missing aclocal"
878    echo "$ac_t""missing" 1>&6
879 fi
880
881 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
882 echo "configure:883: checking for working autoconf" >&5
883 # Run test in a subshell; some versions of sh will print an error if
884 # an executable is not found, even if stderr is redirected.
885 # Redirect stdin to placate older versions of autoconf.  Sigh.
886 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
887    AUTOCONF=autoconf
888    echo "$ac_t""found" 1>&6
889 else
890    AUTOCONF="$missing_dir/missing autoconf"
891    echo "$ac_t""missing" 1>&6
892 fi
893
894 echo $ac_n "checking for working automake""... $ac_c" 1>&6
895 echo "configure:896: checking for working automake" >&5
896 # Run test in a subshell; some versions of sh will print an error if
897 # an executable is not found, even if stderr is redirected.
898 # Redirect stdin to placate older versions of autoconf.  Sigh.
899 if (automake --version) < /dev/null > /dev/null 2>&1; then
900    AUTOMAKE=automake
901    echo "$ac_t""found" 1>&6
902 else
903    AUTOMAKE="$missing_dir/missing automake"
904    echo "$ac_t""missing" 1>&6
905 fi
906
907 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
908 echo "configure:909: checking for working autoheader" >&5
909 # Run test in a subshell; some versions of sh will print an error if
910 # an executable is not found, even if stderr is redirected.
911 # Redirect stdin to placate older versions of autoconf.  Sigh.
912 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
913    AUTOHEADER=autoheader
914    echo "$ac_t""found" 1>&6
915 else
916    AUTOHEADER="$missing_dir/missing autoheader"
917    echo "$ac_t""missing" 1>&6
918 fi
919
920 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
921 echo "configure:922: checking for working makeinfo" >&5
922 # Run test in a subshell; some versions of sh will print an error if
923 # an executable is not found, even if stderr is redirected.
924 # Redirect stdin to placate older versions of autoconf.  Sigh.
925 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
926    MAKEINFO=makeinfo
927    echo "$ac_t""found" 1>&6
928 else
929    MAKEINFO="$missing_dir/missing makeinfo"
930    echo "$ac_t""missing" 1>&6
931 fi
932
933
934
935
936
937
938 # Runs configure.host and configure.target, as well as finds CC, CXX
939 # and assorted other critical bits. Have to run this before the
940 # GLIBCPP_ENABLE_* macros below.
941 if test $host != $build; then
942   ac_tool_prefix=${host_alias}-
943 else
944   ac_tool_prefix=
945 fi
946
947 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
948 echo "configure:949: checking for Cygwin environment" >&5
949 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
950   echo $ac_n "(cached) $ac_c" 1>&6
951 else
952   cat > conftest.$ac_ext <<EOF
953 #line 954 "configure"
954 #include "confdefs.h"
955
956 int main() {
957
958 #ifndef __CYGWIN__
959 #define __CYGWIN__ __CYGWIN32__
960 #endif
961 return __CYGWIN__;
962 ; return 0; }
963 EOF
964 if { (eval echo configure:965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
965   rm -rf conftest*
966   ac_cv_cygwin=yes
967 else
968   echo "configure: failed program was:" >&5
969   cat conftest.$ac_ext >&5
970   rm -rf conftest*
971   ac_cv_cygwin=no
972 fi
973 rm -f conftest*
974 rm -f conftest*
975 fi
976
977 echo "$ac_t""$ac_cv_cygwin" 1>&6
978 CYGWIN=
979 test "$ac_cv_cygwin" = yes && CYGWIN=yes
980 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
981 echo "configure:982: checking for mingw32 environment" >&5
982 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
983   echo $ac_n "(cached) $ac_c" 1>&6
984 else
985   cat > conftest.$ac_ext <<EOF
986 #line 987 "configure"
987 #include "confdefs.h"
988
989 int main() {
990 return __MINGW32__;
991 ; return 0; }
992 EOF
993 if { (eval echo configure:994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
994   rm -rf conftest*
995   ac_cv_mingw32=yes
996 else
997   echo "configure: failed program was:" >&5
998   cat conftest.$ac_ext >&5
999   rm -rf conftest*
1000   ac_cv_mingw32=no
1001 fi
1002 rm -f conftest*
1003 rm -f conftest*
1004 fi
1005
1006 echo "$ac_t""$ac_cv_mingw32" 1>&6
1007 MINGW32=
1008 test "$ac_cv_mingw32" = yes && MINGW32=yes
1009
1010     # Check whether --enable-multilib or --disable-multilib was given.
1011 if test "${enable_multilib+set}" = set; then
1012   enableval="$enable_multilib"
1013   case "${enableval}" in
1014     yes) multilib=yes ;;
1015     no)  multilib=no ;;
1016     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1017    esac
1018 else
1019   multilib=yes
1020 fi
1021
1022 # When building with srcdir == objdir, links to the source files will
1023 # be created in directories within the target_subdir.  We have to
1024 # adjust toplevel_srcdir accordingly, so that configure finds
1025 # install-sh and other auxiliary files that live in the top-level
1026 # source directory.
1027 if test "${srcdir}" = "."; then
1028   if test -z "${with_target_subdir}"; then
1029     toprel=".."
1030   else
1031     if test "${with_target_subdir}" != "."; then
1032       toprel="${with_multisrctop}../.."
1033     else
1034       toprel="${with_multisrctop}.."
1035     fi
1036   fi
1037 else
1038   toprel=".."
1039 fi
1040 ac_aux_dir=
1041 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1042   if test -f $ac_dir/install-sh; then
1043     ac_aux_dir=$ac_dir
1044     ac_install_sh="$ac_aux_dir/install-sh -c"
1045     break
1046   elif test -f $ac_dir/install.sh; then
1047     ac_aux_dir=$ac_dir
1048     ac_install_sh="$ac_aux_dir/install.sh -c"
1049     break
1050   fi
1051 done
1052 if test -z "$ac_aux_dir"; then
1053   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
1054 fi
1055 ac_config_guess=$ac_aux_dir/config.guess
1056 ac_config_sub=$ac_aux_dir/config.sub
1057 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1058
1059 toplevel_srcdir=\${top_srcdir}/$toprel
1060
1061
1062 # Export build and source directories.
1063 # These need to be absolute paths, yet at the same time need to
1064 # canonicalize only relative paths, because then amd will not unmount
1065 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1066 glibcpp_builddir=`pwd`
1067 case $srcdir in
1068 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1069 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1070 esac
1071
1072
1073
1074
1075
1076 for ac_prog in gawk mawk nawk awk
1077 do
1078 # Extract the first word of "$ac_prog", so it can be a program name with args.
1079 set dummy $ac_prog; ac_word=$2
1080 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1081 echo "configure:1082: checking for $ac_word" >&5
1082 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1083   echo $ac_n "(cached) $ac_c" 1>&6
1084 else
1085   if test -n "$AWK"; then
1086   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1087 else
1088   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1089   ac_dummy="$PATH"
1090   for ac_dir in $ac_dummy; do
1091     test -z "$ac_dir" && ac_dir=.
1092     if test -f $ac_dir/$ac_word; then
1093       ac_cv_prog_AWK="$ac_prog"
1094       break
1095     fi
1096   done
1097   IFS="$ac_save_ifs"
1098 fi
1099 fi
1100 AWK="$ac_cv_prog_AWK"
1101 if test -n "$AWK"; then
1102   echo "$ac_t""$AWK" 1>&6
1103 else
1104   echo "$ac_t""no" 1>&6
1105 fi
1106
1107 test -n "$AWK" && break
1108 done
1109
1110 # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.50+, can also
1111 # be 'cp -p' if linking isn't available.
1112 #ac_cv_prog_LN_S='cp -p'
1113 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1114 echo "configure:1115: checking whether ln -s works" >&5
1115 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1116   echo $ac_n "(cached) $ac_c" 1>&6
1117 else
1118   rm -f conftestdata
1119 if ln -s X conftestdata 2>/dev/null
1120 then
1121   rm -f conftestdata
1122   ac_cv_prog_LN_S="ln -s"
1123 else
1124   ac_cv_prog_LN_S=ln
1125 fi
1126 fi
1127 LN_S="$ac_cv_prog_LN_S"
1128 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1129   echo "$ac_t""yes" 1>&6
1130 else
1131   echo "$ac_t""no" 1>&6
1132 fi
1133
1134
1135 # We use these options to decide which functions to include.
1136 # Check whether --with-target-subdir or --without-target-subdir was given.
1137 if test "${with_target_subdir+set}" = set; then
1138   withval="$with_target_subdir"
1139   :
1140 fi
1141
1142 # Check whether --with-cross-host or --without-cross-host was given.
1143 if test "${with_cross_host+set}" = set; then
1144   withval="$with_cross_host"
1145   :
1146 fi
1147
1148
1149   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
1150   
1151
1152   # Never versions of autoconf add an underscore to these functions.
1153   # Prevent future problems ...
1154   
1155   
1156   
1157   
1158
1159 #  AC_PROG_CC
1160
1161 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1162 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1163 # are probably using a cross compiler, which will not be able to fully
1164 # link an executable.  This should really be fixed in autoconf
1165 # itself.
1166
1167
1168
1169
1170 # Extract the first word of "gcc", so it can be a program name with args.
1171 set dummy gcc; ac_word=$2
1172 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1173 echo "configure:1174: checking for $ac_word" >&5
1174 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1175   echo $ac_n "(cached) $ac_c" 1>&6
1176 else
1177   if test -n "$CC"; then
1178   ac_cv_prog_CC="$CC" # Let the user override the test.
1179 else
1180   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1181   ac_dummy="$PATH"
1182   for ac_dir in $ac_dummy; do
1183     test -z "$ac_dir" && ac_dir=.
1184     if test -f $ac_dir/$ac_word; then
1185       ac_cv_prog_CC="gcc"
1186       break
1187     fi
1188   done
1189   IFS="$ac_save_ifs"
1190 fi
1191 fi
1192 CC="$ac_cv_prog_CC"
1193 if test -n "$CC"; then
1194   echo "$ac_t""$CC" 1>&6
1195 else
1196   echo "$ac_t""no" 1>&6
1197 fi
1198
1199 if test -z "$CC"; then
1200   # Extract the first word of "cc", so it can be a program name with args.
1201 set dummy cc; ac_word=$2
1202 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1203 echo "configure:1204: checking for $ac_word" >&5
1204 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1205   echo $ac_n "(cached) $ac_c" 1>&6
1206 else
1207   if test -n "$CC"; then
1208   ac_cv_prog_CC="$CC" # Let the user override the test.
1209 else
1210   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1211   ac_prog_rejected=no
1212   ac_dummy="$PATH"
1213   for ac_dir in $ac_dummy; do
1214     test -z "$ac_dir" && ac_dir=.
1215     if test -f $ac_dir/$ac_word; then
1216       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1217         ac_prog_rejected=yes
1218         continue
1219       fi
1220       ac_cv_prog_CC="cc"
1221       break
1222     fi
1223   done
1224   IFS="$ac_save_ifs"
1225 if test $ac_prog_rejected = yes; then
1226   # We found a bogon in the path, so make sure we never use it.
1227   set dummy $ac_cv_prog_CC
1228   shift
1229   if test $# -gt 0; then
1230     # We chose a different compiler from the bogus one.
1231     # However, it has the same basename, so the bogon will be chosen
1232     # first if we set CC to just the basename; use the full file name.
1233     shift
1234     set dummy "$ac_dir/$ac_word" "$@"
1235     shift
1236     ac_cv_prog_CC="$@"
1237   fi
1238 fi
1239 fi
1240 fi
1241 CC="$ac_cv_prog_CC"
1242 if test -n "$CC"; then
1243   echo "$ac_t""$CC" 1>&6
1244 else
1245   echo "$ac_t""no" 1>&6
1246 fi
1247
1248   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1249 fi
1250
1251 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1252 echo "configure:1253: checking whether we are using GNU C" >&5
1253 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1254   echo $ac_n "(cached) $ac_c" 1>&6
1255 else
1256   cat > conftest.c <<EOF
1257 #ifdef __GNUC__
1258   yes;
1259 #endif
1260 EOF
1261 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1262   ac_cv_prog_gcc=yes
1263 else
1264   ac_cv_prog_gcc=no
1265 fi
1266 fi
1267
1268 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1269
1270 if test $ac_cv_prog_gcc = yes; then
1271   GCC=yes
1272   ac_test_CFLAGS="${CFLAGS+set}"
1273   ac_save_CFLAGS="$CFLAGS"
1274   CFLAGS=
1275   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1276 echo "configure:1277: checking whether ${CC-cc} accepts -g" >&5
1277 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1278   echo $ac_n "(cached) $ac_c" 1>&6
1279 else
1280   echo 'void f(){}' > conftest.c
1281 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1282   ac_cv_prog_cc_g=yes
1283 else
1284   ac_cv_prog_cc_g=no
1285 fi
1286 rm -f conftest*
1287
1288 fi
1289
1290 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1291   if test "$ac_test_CFLAGS" = set; then
1292     CFLAGS="$ac_save_CFLAGS"
1293   elif test $ac_cv_prog_cc_g = yes; then
1294     CFLAGS="-g -O2"
1295   else
1296     CFLAGS="-O2"
1297   fi
1298 else
1299   GCC=
1300   test "${CFLAGS+set}" = set || CFLAGS="-g"
1301 fi
1302
1303
1304 # Can't just call these here as g++ requires libstc++ to be built....
1305 #  AC_PROG_CXX
1306
1307 # Likewise for AC_PROG_CXX.
1308
1309
1310
1311 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1312 # flags that come in CXX while configuring libstdc++.  They're different
1313 # from those used for all other target libraries.  If CXX is set in
1314 # the environment, respect that here.
1315 glibcpp_CXX=$CXX
1316 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1317 do
1318 # Extract the first word of "$ac_prog", so it can be a program name with args.
1319 set dummy $ac_prog; ac_word=$2
1320 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1321 echo "configure:1322: checking for $ac_word" >&5
1322 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1323   echo $ac_n "(cached) $ac_c" 1>&6
1324 else
1325   if test -n "$glibcpp_CXX"; then
1326   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1327 else
1328   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1329   ac_dummy="$PATH"
1330   for ac_dir in $ac_dummy; do
1331     test -z "$ac_dir" && ac_dir=.
1332     if test -f $ac_dir/$ac_word; then
1333       ac_cv_prog_glibcpp_CXX="$ac_prog"
1334       break
1335     fi
1336   done
1337   IFS="$ac_save_ifs"
1338 fi
1339 fi
1340 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1341 if test -n "$glibcpp_CXX"; then
1342   echo "$ac_t""$glibcpp_CXX" 1>&6
1343 else
1344   echo "$ac_t""no" 1>&6
1345 fi
1346
1347 test -n "$glibcpp_CXX" && break
1348 done
1349 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1350
1351
1352 CXX=$glibcpp_CXX
1353 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1354
1355 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1356 echo "configure:1357: checking whether we are using GNU C++" >&5
1357 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1358   echo $ac_n "(cached) $ac_c" 1>&6
1359 else
1360   cat > conftest.C <<EOF
1361 #ifdef __GNUC__
1362   yes;
1363 #endif
1364 EOF
1365 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1366   ac_cv_prog_gxx=yes
1367 else
1368   ac_cv_prog_gxx=no
1369 fi
1370 fi
1371
1372 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1373
1374 if test $ac_cv_prog_gxx = yes; then
1375   GXX=yes
1376   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1377   ac_save_CXXFLAGS="$CXXFLAGS"
1378   CXXFLAGS=
1379   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1380 echo "configure:1381: checking whether ${CXX-g++} accepts -g" >&5
1381 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1382   echo $ac_n "(cached) $ac_c" 1>&6
1383 else
1384   echo 'void f(){}' > conftest.cc
1385 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1386   ac_cv_prog_cxx_g=yes
1387 else
1388   ac_cv_prog_cxx_g=no
1389 fi
1390 rm -f conftest*
1391
1392 fi
1393
1394 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1395   if test "$ac_test_CXXFLAGS" = set; then
1396     CXXFLAGS="$ac_save_CXXFLAGS"
1397   elif test $ac_cv_prog_cxx_g = yes; then
1398     CXXFLAGS="-g -O2"
1399   else
1400     CXXFLAGS="-O2"
1401   fi
1402 else
1403   GXX=
1404   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1405 fi
1406
1407
1408    # For some reason, gettext needs this.
1409    
1410         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1411 echo "configure:1412: checking for strerror in -lcposix" >&5
1412 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1413 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1414   echo $ac_n "(cached) $ac_c" 1>&6
1415 else
1416   ac_save_LIBS="$LIBS"
1417 LIBS="-lcposix  $LIBS"
1418 cat > conftest.$ac_ext <<EOF
1419 #line 1420 "configure"
1420 #include "confdefs.h"
1421 /* Override any gcc2 internal prototype to avoid an error.  */
1422 /* We use char because int might match the return type of a gcc2
1423     builtin and then its argument prototype would still apply.  */
1424 char strerror();
1425
1426 int main() {
1427 strerror()
1428 ; return 0; }
1429 EOF
1430 if { (eval echo configure:1431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1431   rm -rf conftest*
1432   eval "ac_cv_lib_$ac_lib_var=yes"
1433 else
1434   echo "configure: failed program was:" >&5
1435   cat conftest.$ac_ext >&5
1436   rm -rf conftest*
1437   eval "ac_cv_lib_$ac_lib_var=no"
1438 fi
1439 rm -f conftest*
1440 LIBS="$ac_save_LIBS"
1441
1442 fi
1443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1444   echo "$ac_t""yes" 1>&6
1445   LIBS="$LIBS -lcposix"
1446 else
1447   echo "$ac_t""no" 1>&6
1448 fi
1449
1450   
1451
1452
1453   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1454 set dummy ${ac_tool_prefix}as; ac_word=$2
1455 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1456 echo "configure:1457: checking for $ac_word" >&5
1457 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1458   echo $ac_n "(cached) $ac_c" 1>&6
1459 else
1460   if test -n "$AS"; then
1461   ac_cv_prog_AS="$AS" # Let the user override the test.
1462 else
1463   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1464   ac_dummy="$PATH"
1465   for ac_dir in $ac_dummy; do
1466     test -z "$ac_dir" && ac_dir=.
1467     if test -f $ac_dir/$ac_word; then
1468       ac_cv_prog_AS="${ac_tool_prefix}as"
1469       break
1470     fi
1471   done
1472   IFS="$ac_save_ifs"
1473   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1474 fi
1475 fi
1476 AS="$ac_cv_prog_AS"
1477 if test -n "$AS"; then
1478   echo "$ac_t""$AS" 1>&6
1479 else
1480   echo "$ac_t""no" 1>&6
1481 fi
1482
1483
1484
1485   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1486 set dummy ${ac_tool_prefix}ar; ac_word=$2
1487 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1488 echo "configure:1489: checking for $ac_word" >&5
1489 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1490   echo $ac_n "(cached) $ac_c" 1>&6
1491 else
1492   if test -n "$AR"; then
1493   ac_cv_prog_AR="$AR" # Let the user override the test.
1494 else
1495   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1496   ac_dummy="$PATH"
1497   for ac_dir in $ac_dummy; do
1498     test -z "$ac_dir" && ac_dir=.
1499     if test -f $ac_dir/$ac_word; then
1500       ac_cv_prog_AR="${ac_tool_prefix}ar"
1501       break
1502     fi
1503   done
1504   IFS="$ac_save_ifs"
1505   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1506 fi
1507 fi
1508 AR="$ac_cv_prog_AR"
1509 if test -n "$AR"; then
1510   echo "$ac_t""$AR" 1>&6
1511 else
1512   echo "$ac_t""no" 1>&6
1513 fi
1514
1515
1516
1517   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1518 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1519 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1520 echo "configure:1521: checking for $ac_word" >&5
1521 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1522   echo $ac_n "(cached) $ac_c" 1>&6
1523 else
1524   if test -n "$RANLIB"; then
1525   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1526 else
1527   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1528   ac_dummy="$PATH"
1529   for ac_dir in $ac_dummy; do
1530     test -z "$ac_dir" && ac_dir=.
1531     if test -f $ac_dir/$ac_word; then
1532       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1533       break
1534     fi
1535   done
1536   IFS="$ac_save_ifs"
1537 fi
1538 fi
1539 RANLIB="$ac_cv_prog_RANLIB"
1540 if test -n "$RANLIB"; then
1541   echo "$ac_t""$RANLIB" 1>&6
1542 else
1543   echo "$ac_t""no" 1>&6
1544 fi
1545
1546
1547 if test -z "$ac_cv_prog_RANLIB"; then
1548 if test -n "$ac_tool_prefix"; then
1549   # Extract the first word of "ranlib", so it can be a program name with args.
1550 set dummy ranlib; ac_word=$2
1551 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1552 echo "configure:1553: checking for $ac_word" >&5
1553 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1554   echo $ac_n "(cached) $ac_c" 1>&6
1555 else
1556   if test -n "$RANLIB"; then
1557   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1558 else
1559   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1560   ac_dummy="$PATH"
1561   for ac_dir in $ac_dummy; do
1562     test -z "$ac_dir" && ac_dir=.
1563     if test -f $ac_dir/$ac_word; then
1564       ac_cv_prog_RANLIB="ranlib"
1565       break
1566     fi
1567   done
1568   IFS="$ac_save_ifs"
1569   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1570 fi
1571 fi
1572 RANLIB="$ac_cv_prog_RANLIB"
1573 if test -n "$RANLIB"; then
1574   echo "$ac_t""$RANLIB" 1>&6
1575 else
1576   echo "$ac_t""no" 1>&6
1577 fi
1578
1579 else
1580   RANLIB="ranlib-not-found-in-path-error"
1581 fi
1582 fi
1583
1584   # Find a good install program.  We prefer a C program (faster),
1585 # so one script is as good as another.  But avoid the broken or
1586 # incompatible versions:
1587 # SysV /etc/install, /usr/sbin/install
1588 # SunOS /usr/etc/install
1589 # IRIX /sbin/install
1590 # AIX /bin/install
1591 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1592 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1593 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1594 # ./install, which can be erroneously created by make from ./install.sh.
1595 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1596 echo "configure:1597: checking for a BSD compatible install" >&5
1597 if test -z "$INSTALL"; then
1598 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1599   echo $ac_n "(cached) $ac_c" 1>&6
1600 else
1601     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1602   for ac_dir in $PATH; do
1603     # Account for people who put trailing slashes in PATH elements.
1604     case "$ac_dir/" in
1605     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1606     *)
1607       # OSF1 and SCO ODT 3.0 have their own names for install.
1608       # Don't use installbsd from OSF since it installs stuff as root
1609       # by default.
1610       for ac_prog in ginstall scoinst install; do
1611         if test -f $ac_dir/$ac_prog; then
1612           if test $ac_prog = install &&
1613             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1614             # AIX install.  It has an incompatible calling convention.
1615             :
1616           else
1617             ac_cv_path_install="$ac_dir/$ac_prog -c"
1618             break 2
1619           fi
1620         fi
1621       done
1622       ;;
1623     esac
1624   done
1625   IFS="$ac_save_IFS"
1626
1627 fi
1628   if test "${ac_cv_path_install+set}" = set; then
1629     INSTALL="$ac_cv_path_install"
1630   else
1631     # As a last resort, use the slow shell script.  We don't cache a
1632     # path for INSTALL within a source directory, because that will
1633     # break other packages using the cache if that directory is
1634     # removed, or if the path is relative.
1635     INSTALL="$ac_install_sh"
1636   fi
1637 fi
1638 echo "$ac_t""$INSTALL" 1>&6
1639
1640 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1641 # It thinks the first close brace ends the variable substitution.
1642 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1643
1644 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1645
1646 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1647
1648
1649   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1650 echo "configure:1651: checking whether to enable maintainer-specific portions of Makefiles" >&5
1651     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1652 if test "${enable_maintainer_mode+set}" = set; then
1653   enableval="$enable_maintainer_mode"
1654   USE_MAINTAINER_MODE=$enableval
1655 else
1656   USE_MAINTAINER_MODE=no
1657 fi
1658
1659   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1660   
1661
1662 if test $USE_MAINTAINER_MODE = yes; then
1663   MAINTAINER_MODE_TRUE=
1664   MAINTAINER_MODE_FALSE='#'
1665 else
1666   MAINTAINER_MODE_TRUE='#'
1667   MAINTAINER_MODE_FALSE=
1668 fi
1669   MAINT=$MAINTAINER_MODE_TRUE
1670   
1671
1672
1673   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1674   # at least currently, we never actually build a program, so we never
1675   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1676   # fails, because we are probably configuring with a cross compiler
1677   # which can't create executables.  So we include AC_EXEEXT to keep
1678   # automake happy, but we don't execute it, since we don't care about
1679   # the result.
1680   if false; then
1681     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1682     # to nothing, so nothing would remain between `then' and `fi' if it
1683     # were not for the `:' below.
1684     :
1685     
1686
1687 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1688 echo "configure:1689: checking for executable suffix" >&5
1689 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1690   echo $ac_n "(cached) $ac_c" 1>&6
1691 else
1692   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1693   ac_cv_exeext=.exe
1694 else
1695   rm -f conftest*
1696   echo 'int main () { return 0; }' > conftest.$ac_ext
1697   ac_cv_exeext=
1698   if { (eval echo configure:1699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1699     for file in conftest.*; do
1700       case $file in
1701       *.c | *.o | *.obj) ;;
1702       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1703       esac
1704     done
1705   else
1706     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1707   fi
1708   rm -f conftest*
1709   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1710 fi
1711 fi
1712
1713 EXEEXT=""
1714 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1715 echo "$ac_t""${ac_cv_exeext}" 1>&6
1716 ac_exeext=$EXEEXT
1717
1718   fi
1719
1720   . ${glibcpp_basedir}/configure.host
1721
1722   case ${glibcpp_basedir} in
1723     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1724     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1725   esac
1726
1727   # This does for the target what configure.host does for the host.  In
1728   # addition to possibly modifying the same flags, it also sets up symlinks.
1729   
1730     . ${glibcpp_basedir}/configure.target
1731     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1732     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1733
1734
1735   # 
1736
1737
1738
1739 # Check whether --enable-shared or --disable-shared was given.
1740 if test "${enable_shared+set}" = set; then
1741   enableval="$enable_shared"
1742   p=${PACKAGE-default}
1743 case $enableval in
1744 yes) enable_shared=yes ;;
1745 no) enable_shared=no ;;
1746 *)
1747   enable_shared=no
1748   # Look at the argument we got.  We use all the common list separators.
1749   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1750   for pkg in $enableval; do
1751     if test "X$pkg" = "X$p"; then
1752       enable_shared=yes
1753     fi
1754   done
1755   IFS="$ac_save_ifs"
1756   ;;
1757 esac
1758 else
1759   enable_shared=yes
1760 fi
1761
1762 # Check whether --enable-static or --disable-static was given.
1763 if test "${enable_static+set}" = set; then
1764   enableval="$enable_static"
1765   p=${PACKAGE-default}
1766 case $enableval in
1767 yes) enable_static=yes ;;
1768 no) enable_static=no ;;
1769 *)
1770   enable_static=no
1771   # Look at the argument we got.  We use all the common list separators.
1772   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1773   for pkg in $enableval; do
1774     if test "X$pkg" = "X$p"; then
1775       enable_static=yes
1776     fi
1777   done
1778   IFS="$ac_save_ifs"
1779   ;;
1780 esac
1781 else
1782   enable_static=yes
1783 fi
1784
1785 # Check whether --enable-fast-install or --disable-fast-install was given.
1786 if test "${enable_fast_install+set}" = set; then
1787   enableval="$enable_fast_install"
1788   p=${PACKAGE-default}
1789 case $enableval in
1790 yes) enable_fast_install=yes ;;
1791 no) enable_fast_install=no ;;
1792 *)
1793   enable_fast_install=no
1794   # Look at the argument we got.  We use all the common list separators.
1795   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1796   for pkg in $enableval; do
1797     if test "X$pkg" = "X$p"; then
1798       enable_fast_install=yes
1799     fi
1800   done
1801   IFS="$ac_save_ifs"
1802   ;;
1803 esac
1804 else
1805   enable_fast_install=yes
1806 fi
1807
1808 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1809 if test "${with_gnu_ld+set}" = set; then
1810   withval="$with_gnu_ld"
1811   test "$withval" = no || with_gnu_ld=yes
1812 else
1813   with_gnu_ld=no
1814 fi
1815
1816 ac_prog=ld
1817 if test "$GCC" = yes; then
1818   # Check if gcc -print-prog-name=ld gives a path.
1819   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1820 echo "configure:1821: checking for ld used by GCC" >&5
1821   case $host in
1822   *-*-mingw*)
1823     # gcc leaves a trailing carriage return which upsets mingw
1824     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1825   *)
1826     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1827   esac
1828   case $ac_prog in
1829     # Accept absolute paths.
1830     [\\/]* | [A-Za-z]:[\\/]*)
1831       re_direlt='/[^/][^/]*/\.\./'
1832       # Canonicalize the path of ld
1833       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1834       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1835         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1836       done
1837       test -z "$LD" && LD="$ac_prog"
1838       ;;
1839   "")
1840     # If it fails, then pretend we aren't using GCC.
1841     ac_prog=ld
1842     ;;
1843   *)
1844     # If it is relative, then search for the first ld in PATH.
1845     with_gnu_ld=unknown
1846     ;;
1847   esac
1848 elif test "$with_gnu_ld" = yes; then
1849   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1850 echo "configure:1851: checking for GNU ld" >&5
1851 else
1852   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1853 echo "configure:1854: checking for non-GNU ld" >&5
1854 fi
1855 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1856   echo $ac_n "(cached) $ac_c" 1>&6
1857 else
1858   if test -z "$LD"; then
1859   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1860   for ac_dir in $PATH; do
1861     test -z "$ac_dir" && ac_dir=.
1862     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1863       lt_cv_path_LD="$ac_dir/$ac_prog"
1864       # Check to see if the program is GNU ld.  I'd rather use --version,
1865       # but apparently some GNU ld's only accept -v.
1866       # Break only if it was the GNU/non-GNU ld that we prefer.
1867       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1868         test "$with_gnu_ld" != no && break
1869       else
1870         test "$with_gnu_ld" != yes && break
1871       fi
1872     fi
1873   done
1874   IFS="$ac_save_ifs"
1875 else
1876   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1877 fi
1878 fi
1879
1880 LD="$lt_cv_path_LD"
1881 if test -n "$LD"; then
1882   echo "$ac_t""$LD" 1>&6
1883 else
1884   echo "$ac_t""no" 1>&6
1885 fi
1886 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1887 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1888 echo "configure:1889: checking if the linker ($LD) is GNU ld" >&5
1889 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1890   echo $ac_n "(cached) $ac_c" 1>&6
1891 else
1892   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1893 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1894   lt_cv_prog_gnu_ld=yes
1895 else
1896   lt_cv_prog_gnu_ld=no
1897 fi
1898 fi
1899
1900 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1901 with_gnu_ld=$lt_cv_prog_gnu_ld
1902
1903
1904 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1905 echo "configure:1906: checking for $LD option to reload object files" >&5
1906 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1907   echo $ac_n "(cached) $ac_c" 1>&6
1908 else
1909   lt_cv_ld_reload_flag='-r'
1910 fi
1911
1912 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1913 reload_flag=$lt_cv_ld_reload_flag
1914 test -n "$reload_flag" && reload_flag=" $reload_flag"
1915
1916 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1917 echo "configure:1918: checking for BSD-compatible nm" >&5
1918 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1919   echo $ac_n "(cached) $ac_c" 1>&6
1920 else
1921   if test -n "$NM"; then
1922   # Let the user override the test.
1923   lt_cv_path_NM="$NM"
1924 else
1925   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1926   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1927     test -z "$ac_dir" && ac_dir=.
1928     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1929     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1930       # Check to see if the nm accepts a BSD-compat flag.
1931       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1932       #   nm: unknown option "B" ignored
1933       # Tru64's nm complains that /dev/null is an invalid object file
1934       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1935         lt_cv_path_NM="$tmp_nm -B"
1936         break
1937       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1938         lt_cv_path_NM="$tmp_nm -p"
1939         break
1940       else
1941         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1942         continue # so that we can try to find one that supports BSD flags
1943       fi
1944     fi
1945   done
1946   IFS="$ac_save_ifs"
1947   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1948 fi
1949 fi
1950
1951 NM="$lt_cv_path_NM"
1952 echo "$ac_t""$NM" 1>&6
1953
1954 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1955 echo "configure:1956: checking how to recognise dependant libraries" >&5
1956 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1957   echo $ac_n "(cached) $ac_c" 1>&6
1958 else
1959   lt_cv_file_magic_cmd='$MAGIC_CMD'
1960 lt_cv_file_magic_test_file=
1961 lt_cv_deplibs_check_method='unknown'
1962 # Need to set the preceding variable on all platforms that support
1963 # interlibrary dependencies.
1964 # 'none' -- dependencies not supported.
1965 # `unknown' -- same as none, but documents that we really don't know.
1966 # 'pass_all' -- all dependencies passed with no checks.
1967 # 'test_compile' -- check by making test program.
1968 # 'file_magic [regex]' -- check by looking for files in library path
1969 # which responds to the $file_magic_cmd with a given egrep regex.
1970 # If you have `file' or equivalent on your system and you're not sure
1971 # whether `pass_all' will *always* work, you probably want this one.
1972
1973 case $host_os in
1974 aix*)
1975   lt_cv_deplibs_check_method=pass_all
1976   ;;
1977
1978 beos*)
1979   lt_cv_deplibs_check_method=pass_all
1980   ;;
1981
1982 bsdi4*)
1983   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1984   lt_cv_file_magic_cmd='/usr/bin/file -L'
1985   lt_cv_file_magic_test_file=/shlib/libc.so
1986   ;;
1987
1988 cygwin* | mingw* |pw32*)
1989   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1990   lt_cv_file_magic_cmd='$OBJDUMP -f'
1991   ;;
1992
1993 darwin* | rhapsody*)
1994   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1995   lt_cv_file_magic_cmd='/usr/bin/file -L'
1996   case "$host_os" in
1997   rhapsody* | darwin1.012)
1998     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1999     ;;
2000   *) # Darwin 1.3 on
2001     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2002     ;;
2003   esac
2004   ;;
2005
2006 freebsd* )
2007   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2008     case $host_cpu in
2009     i*86 )
2010       # Not sure whether the presence of OpenBSD here was a mistake.
2011       # Let's accept both of them until this is cleared up.
2012       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2013       lt_cv_file_magic_cmd=/usr/bin/file
2014       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2015       ;;
2016     esac
2017   else
2018     lt_cv_deplibs_check_method=pass_all
2019   fi
2020   ;;
2021
2022 gnu*)
2023   lt_cv_deplibs_check_method=pass_all
2024   ;;
2025
2026 hpux10.20*|hpux11*)
2027   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2028   lt_cv_file_magic_cmd=/usr/bin/file
2029   lt_cv_file_magic_test_file=/usr/lib/libc.sl
2030   ;;
2031
2032 irix5* | irix6*)
2033   case $host_os in
2034   irix5*)
2035     # this will be overridden with pass_all, but let us keep it just in case
2036     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2037     ;;
2038   *)
2039     case $LD in
2040     *-32|*"-32 ") libmagic=32-bit;;
2041     *-n32|*"-n32 ") libmagic=N32;;
2042     *-64|*"-64 ") libmagic=64-bit;;
2043     *) libmagic=never-match;;
2044     esac
2045     # this will be overridden with pass_all, but let us keep it just in case
2046     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2047     ;;
2048   esac
2049   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2050   lt_cv_deplibs_check_method=pass_all
2051   ;;
2052
2053 # This must be Linux ELF.
2054 linux-gnu*)
2055   case $host_cpu in
2056   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2057     lt_cv_deplibs_check_method=pass_all ;;
2058   *)
2059     # glibc up to 2.1.1 does not perform some relocations on ARM
2060     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2061   esac
2062   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2063   ;;
2064
2065 netbsd*)
2066   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2067     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2068   else
2069     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2070   fi
2071   ;;
2072
2073 newsos6)
2074   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2075   lt_cv_file_magic_cmd=/usr/bin/file
2076   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2077   ;;
2078
2079 osf3* | osf4* | osf5*)
2080   # this will be overridden with pass_all, but let us keep it just in case
2081   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2082   lt_cv_file_magic_test_file=/shlib/libc.so
2083   lt_cv_deplibs_check_method=pass_all
2084   ;;
2085
2086 sco3.2v5*)
2087   lt_cv_deplibs_check_method=pass_all
2088   ;;
2089
2090 solaris*)
2091   lt_cv_deplibs_check_method=pass_all
2092   lt_cv_file_magic_test_file=/lib/libc.so
2093   ;;
2094
2095 sysv5uw[78]* | sysv4*uw2*)
2096   lt_cv_deplibs_check_method=pass_all
2097   ;;
2098
2099 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2100   case $host_vendor in
2101   ncr)
2102     lt_cv_deplibs_check_method=pass_all
2103     ;;
2104   motorola)
2105     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]'
2106     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2107     ;;
2108   esac
2109   ;;
2110 esac
2111
2112 fi
2113
2114 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2115 file_magic_cmd=$lt_cv_file_magic_cmd
2116 deplibs_check_method=$lt_cv_deplibs_check_method
2117
2118 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2119 echo "configure:2120: checking for object suffix" >&5
2120 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2121   echo $ac_n "(cached) $ac_c" 1>&6
2122 else
2123   rm -f conftest*
2124 echo 'int i = 1;' > conftest.$ac_ext
2125 if { (eval echo configure:2126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2126   for ac_file in conftest.*; do
2127     case $ac_file in
2128     *.c) ;;
2129     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2130     esac
2131   done
2132 else
2133   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2134 fi
2135 rm -f conftest*
2136 fi
2137
2138 echo "$ac_t""$ac_cv_objext" 1>&6
2139 OBJEXT=$ac_cv_objext
2140 ac_objext=$ac_cv_objext
2141
2142 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2143
2144 # Only perform the check for file, if the check method requires it
2145 case $deplibs_check_method in
2146 file_magic*)
2147   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2148     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2149 echo "configure:2150: checking for ${ac_tool_prefix}file" >&5
2150 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2151   echo $ac_n "(cached) $ac_c" 1>&6
2152 else
2153   case $MAGIC_CMD in
2154   /*)
2155   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2156   ;;
2157   ?:/*)
2158   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2159   ;;
2160   *)
2161   ac_save_MAGIC_CMD="$MAGIC_CMD"
2162   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2163   ac_dummy="/usr/bin:$PATH"
2164   for ac_dir in $ac_dummy; do
2165     test -z "$ac_dir" && ac_dir=.
2166     if test -f $ac_dir/${ac_tool_prefix}file; then
2167       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2168       if test -n "$file_magic_test_file"; then
2169         case $deplibs_check_method in
2170         "file_magic "*)
2171           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2172           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2173           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2174             egrep "$file_magic_regex" > /dev/null; then
2175             :
2176           else
2177             cat <<EOF 1>&2
2178
2179 *** Warning: the command libtool uses to detect shared libraries,
2180 *** $file_magic_cmd, produces output that libtool cannot recognize.
2181 *** The result is that libtool may fail to recognize shared libraries
2182 *** as such.  This will affect the creation of libtool libraries that
2183 *** depend on shared libraries, but programs linked with such libtool
2184 *** libraries will work regardless of this problem.  Nevertheless, you
2185 *** may want to report the problem to your system manager and/or to
2186 *** bug-libtool@gnu.org
2187
2188 EOF
2189           fi ;;
2190         esac
2191       fi
2192       break
2193     fi
2194   done
2195   IFS="$ac_save_ifs"
2196   MAGIC_CMD="$ac_save_MAGIC_CMD"
2197   ;;
2198 esac
2199 fi
2200
2201 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2202 if test -n "$MAGIC_CMD"; then
2203   echo "$ac_t""$MAGIC_CMD" 1>&6
2204 else
2205   echo "$ac_t""no" 1>&6
2206 fi
2207
2208 if test -z "$lt_cv_path_MAGIC_CMD"; then
2209   if test -n "$ac_tool_prefix"; then
2210     echo $ac_n "checking for file""... $ac_c" 1>&6
2211 echo "configure:2212: checking for file" >&5
2212 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2213   echo $ac_n "(cached) $ac_c" 1>&6
2214 else
2215   case $MAGIC_CMD in
2216   /*)
2217   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2218   ;;
2219   ?:/*)
2220   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2221   ;;
2222   *)
2223   ac_save_MAGIC_CMD="$MAGIC_CMD"
2224   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2225   ac_dummy="/usr/bin:$PATH"
2226   for ac_dir in $ac_dummy; do
2227     test -z "$ac_dir" && ac_dir=.
2228     if test -f $ac_dir/file; then
2229       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2230       if test -n "$file_magic_test_file"; then
2231         case $deplibs_check_method in
2232         "file_magic "*)
2233           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2234           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2235           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2236             egrep "$file_magic_regex" > /dev/null; then
2237             :
2238           else
2239             cat <<EOF 1>&2
2240
2241 *** Warning: the command libtool uses to detect shared libraries,
2242 *** $file_magic_cmd, produces output that libtool cannot recognize.
2243 *** The result is that libtool may fail to recognize shared libraries
2244 *** as such.  This will affect the creation of libtool libraries that
2245 *** depend on shared libraries, but programs linked with such libtool
2246 *** libraries will work regardless of this problem.  Nevertheless, you
2247 *** may want to report the problem to your system manager and/or to
2248 *** bug-libtool@gnu.org
2249
2250 EOF
2251           fi ;;
2252         esac
2253       fi
2254       break
2255     fi
2256   done
2257   IFS="$ac_save_ifs"
2258   MAGIC_CMD="$ac_save_MAGIC_CMD"
2259   ;;
2260 esac
2261 fi
2262
2263 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2264 if test -n "$MAGIC_CMD"; then
2265   echo "$ac_t""$MAGIC_CMD" 1>&6
2266 else
2267   echo "$ac_t""no" 1>&6
2268 fi
2269
2270   else
2271     MAGIC_CMD=:
2272   fi
2273 fi
2274
2275   fi
2276   ;;
2277 esac
2278
2279 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2280 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2281 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2282 echo "configure:2283: checking for $ac_word" >&5
2283 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2284   echo $ac_n "(cached) $ac_c" 1>&6
2285 else
2286   if test -n "$RANLIB"; then
2287   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2288 else
2289   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2290   ac_dummy="$PATH"
2291   for ac_dir in $ac_dummy; do
2292     test -z "$ac_dir" && ac_dir=.
2293     if test -f $ac_dir/$ac_word; then
2294       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2295       break
2296     fi
2297   done
2298   IFS="$ac_save_ifs"
2299 fi
2300 fi
2301 RANLIB="$ac_cv_prog_RANLIB"
2302 if test -n "$RANLIB"; then
2303   echo "$ac_t""$RANLIB" 1>&6
2304 else
2305   echo "$ac_t""no" 1>&6
2306 fi
2307
2308
2309 if test -z "$ac_cv_prog_RANLIB"; then
2310 if test -n "$ac_tool_prefix"; then
2311   # Extract the first word of "ranlib", so it can be a program name with args.
2312 set dummy ranlib; ac_word=$2
2313 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2314 echo "configure:2315: checking for $ac_word" >&5
2315 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2316   echo $ac_n "(cached) $ac_c" 1>&6
2317 else
2318   if test -n "$RANLIB"; then
2319   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2320 else
2321   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2322   ac_dummy="$PATH"
2323   for ac_dir in $ac_dummy; do
2324     test -z "$ac_dir" && ac_dir=.
2325     if test -f $ac_dir/$ac_word; then
2326       ac_cv_prog_RANLIB="ranlib"
2327       break
2328     fi
2329   done
2330   IFS="$ac_save_ifs"
2331   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2332 fi
2333 fi
2334 RANLIB="$ac_cv_prog_RANLIB"
2335 if test -n "$RANLIB"; then
2336   echo "$ac_t""$RANLIB" 1>&6
2337 else
2338   echo "$ac_t""no" 1>&6
2339 fi
2340
2341 else
2342   RANLIB=":"
2343 fi
2344 fi
2345
2346 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2347 set dummy ${ac_tool_prefix}strip; ac_word=$2
2348 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2349 echo "configure:2350: checking for $ac_word" >&5
2350 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2351   echo $ac_n "(cached) $ac_c" 1>&6
2352 else
2353   if test -n "$STRIP"; then
2354   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2355 else
2356   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2357   ac_dummy="$PATH"
2358   for ac_dir in $ac_dummy; do
2359     test -z "$ac_dir" && ac_dir=.
2360     if test -f $ac_dir/$ac_word; then
2361       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2362       break
2363     fi
2364   done
2365   IFS="$ac_save_ifs"
2366 fi
2367 fi
2368 STRIP="$ac_cv_prog_STRIP"
2369 if test -n "$STRIP"; then
2370   echo "$ac_t""$STRIP" 1>&6
2371 else
2372   echo "$ac_t""no" 1>&6
2373 fi
2374
2375
2376 if test -z "$ac_cv_prog_STRIP"; then
2377 if test -n "$ac_tool_prefix"; then
2378   # Extract the first word of "strip", so it can be a program name with args.
2379 set dummy strip; ac_word=$2
2380 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2381 echo "configure:2382: checking for $ac_word" >&5
2382 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2383   echo $ac_n "(cached) $ac_c" 1>&6
2384 else
2385   if test -n "$STRIP"; then
2386   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2387 else
2388   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2389   ac_dummy="$PATH"
2390   for ac_dir in $ac_dummy; do
2391     test -z "$ac_dir" && ac_dir=.
2392     if test -f $ac_dir/$ac_word; then
2393       ac_cv_prog_STRIP="strip"
2394       break
2395     fi
2396   done
2397   IFS="$ac_save_ifs"
2398   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2399 fi
2400 fi
2401 STRIP="$ac_cv_prog_STRIP"
2402 if test -n "$STRIP"; then
2403   echo "$ac_t""$STRIP" 1>&6
2404 else
2405   echo "$ac_t""no" 1>&6
2406 fi
2407
2408 else
2409   STRIP=":"
2410 fi
2411 fi
2412
2413
2414 # Check for any special flags to pass to ltconfig.
2415 libtool_flags="--cache-file=$cache_file"
2416 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2417 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2418 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2419 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2420 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2421 libtool_flags="$libtool_flags --enable-dlopen"
2422
2423 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2424 if test "${enable_libtool_lock+set}" = set; then
2425   enableval="$enable_libtool_lock"
2426   :
2427 fi
2428
2429 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2430 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2431
2432 # Check whether --with-pic or --without-pic was given.
2433 if test "${with_pic+set}" = set; then
2434   withval="$with_pic"
2435   pic_mode="$withval"
2436 else
2437   pic_mode=default
2438 fi
2439
2440 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2441 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2442
2443 # Some flags need to be propagated to the compiler or linker for good
2444 # libtool support.
2445 case $host in
2446 *-*-irix6*)
2447   # Find out which ABI we are using.
2448   echo '#line 2449 "configure"' > conftest.$ac_ext
2449   if { (eval echo configure:2450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2450     case `/usr/bin/file conftest.$ac_objext` in
2451     *32-bit*)
2452       LD="${LD-ld} -32"
2453       ;;
2454     *N32*)
2455       LD="${LD-ld} -n32"
2456       ;;
2457     *64-bit*)
2458       LD="${LD-ld} -64"
2459       ;;
2460     esac
2461   fi
2462   rm -rf conftest*
2463   ;;
2464
2465 *-*-sco3.2v5*)
2466   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2467   SAVE_CFLAGS="$CFLAGS"
2468   CFLAGS="$CFLAGS -belf"
2469   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2470 echo "configure:2471: checking whether the C compiler needs -belf" >&5
2471 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2472   echo $ac_n "(cached) $ac_c" 1>&6
2473 else
2474   
2475      ac_ext=c
2476 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2477 ac_cpp='$CPP $CPPFLAGS'
2478 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2479 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2480 cross_compiling=$ac_cv_prog_cc_cross
2481
2482      cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2485
2486 int main() {
2487
2488 ; return 0; }
2489 EOF
2490 if { (eval echo configure:2491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2491   rm -rf conftest*
2492   lt_cv_cc_needs_belf=yes
2493 else
2494   echo "configure: failed program was:" >&5
2495   cat conftest.$ac_ext >&5
2496   rm -rf conftest*
2497   lt_cv_cc_needs_belf=no
2498 fi
2499 rm -f conftest*
2500      ac_ext=c
2501 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2502 ac_cpp='$CPP $CPPFLAGS'
2503 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2504 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2505 cross_compiling=$ac_cv_prog_cc_cross
2506
2507 fi
2508
2509 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2510   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2511     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2512     CFLAGS="$SAVE_CFLAGS"
2513   fi
2514   ;;
2515
2516
2517 esac
2518
2519 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2520 echo "configure:2521: checking how to run the C++ preprocessor" >&5
2521 if test -z "$CXXCPP"; then
2522 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2523   echo $ac_n "(cached) $ac_c" 1>&6
2524 else
2525   ac_ext=C
2526 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2527 ac_cpp='$CXXCPP $CPPFLAGS'
2528 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2529 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2530 cross_compiling=$ac_cv_prog_cxx_cross
2531   CXXCPP="${CXX-g++} -E"
2532   cat > conftest.$ac_ext <<EOF
2533 #line 2534 "configure"
2534 #include "confdefs.h"
2535 #include <stdlib.h>
2536 EOF
2537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2538 { (eval echo configure:2539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2540 if test -z "$ac_err"; then
2541   :
2542 else
2543   echo "$ac_err" >&5
2544   echo "configure: failed program was:" >&5
2545   cat conftest.$ac_ext >&5
2546   rm -rf conftest*
2547   CXXCPP=/lib/cpp
2548 fi
2549 rm -f conftest*
2550   ac_cv_prog_CXXCPP="$CXXCPP"
2551 ac_ext=c
2552 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2553 ac_cpp='$CPP $CPPFLAGS'
2554 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2555 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2556 cross_compiling=$ac_cv_prog_cc_cross
2557 fi
2558 fi
2559 CXXCPP="$ac_cv_prog_CXXCPP"
2560 echo "$ac_t""$CXXCPP" 1>&6
2561
2562
2563 # Save cache, so that ltconfig can load it
2564 cat > confcache <<\EOF
2565 # This file is a shell script that caches the results of configure
2566 # tests run on this system so they can be shared between configure
2567 # scripts and configure runs.  It is not useful on other systems.
2568 # If it contains results you don't want to keep, you may remove or edit it.
2569 #
2570 # By default, configure uses ./config.cache as the cache file,
2571 # creating it if it does not exist already.  You can give configure
2572 # the --cache-file=FILE option to use a different cache file; that is
2573 # what configure does when it calls configure scripts in
2574 # subdirectories, so they share the cache.
2575 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2576 # config.status only pays attention to the cache file if you give it the
2577 # --recheck option to rerun configure.
2578 #
2579 EOF
2580 # The following way of writing the cache mishandles newlines in values,
2581 # but we know of no workaround that is simple, portable, and efficient.
2582 # So, don't put newlines in cache variables' values.
2583 # Ultrix sh set writes to stderr and can't be redirected directly,
2584 # and sets the high bit in the cache file unless we assign to the vars.
2585 (set) 2>&1 |
2586   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2587   *ac_space=\ *)
2588     # `set' does not quote correctly, so add quotes (double-quote substitution
2589     # turns \\\\ into \\, and sed turns \\ into \).
2590     sed -n \
2591       -e "s/'/'\\\\''/g" \
2592       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2593     ;;
2594   *)
2595     # `set' quotes correctly as required by POSIX, so do not add quotes.
2596     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2597     ;;
2598   esac >> confcache
2599 if cmp -s $cache_file confcache; then
2600   :
2601 else
2602   if test -w $cache_file; then
2603     echo "updating cache $cache_file"
2604     cat confcache > $cache_file
2605   else
2606     echo "not updating unwritable cache $cache_file"
2607   fi
2608 fi
2609 rm -f confcache
2610
2611
2612 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2613 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2614 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2615 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2616 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2617 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2618 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2619 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2620 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2621 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2622
2623 # Reload cache, that may have been modified by ltconfig
2624 if test -r "$cache_file"; then
2625   echo "loading cache $cache_file"
2626   . $cache_file
2627 else
2628   echo "creating cache $cache_file"
2629   > $cache_file
2630 fi
2631
2632
2633 # This can be used to rebuild libtool when needed
2634 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2635
2636 # Always use our own libtool.
2637 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2638
2639 # Redirect the config.log output again, so that the ltconfig log is not
2640 # clobbered by the next message.
2641 exec 5>>./config.log
2642
2643
2644
2645 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2646 lt_save_CC="$CC"
2647 lt_save_CFLAGS="$CFLAGS"
2648 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2649 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2650 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2651 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2652 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2653 deplibs_check_method="$deplibs_check_method" \
2654 file_magic_cmd="$file_magic_cmd" \
2655 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2656 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2657 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2658 CC="$lt_save_CC"
2659 CFLAGS="$lt_save_CFLAGS"
2660
2661 # Redirect the config.log output again, so that the ltconfig log is not
2662 # clobbered by the next message.
2663 exec 5>>./config.log
2664
2665   
2666
2667   
2668          
2669          
2670
2671
2672
2673 # Check for c++ or library specific bits that don't require linking.
2674 #GLIBCPP_CHECK_COMPILER_VERSION
2675 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2676 echo "configure:2677: checking for GNU make" >&5
2677 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2678   echo $ac_n "(cached) $ac_c" 1>&6
2679 else
2680   _cv_gnu_make_command='' ;
2681           for a in "${MAKE-make}" make gmake gnumake ; do
2682                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2683                   then
2684                           _cv_gnu_make_command=$a ;
2685                           break;
2686                   fi
2687           done ;
2688   
2689 fi
2690
2691 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2692   if test  "x$_cv_gnu_make_command" != "x"  ; then
2693           ifGNUmake='' ;
2694   else
2695           ifGNUmake='#' ;
2696   fi
2697   
2698
2699
2700 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2701 # Check whether --enable-debug or --disable-debug was given.
2702 if test "${enable_debug+set}" = set; then
2703   enableval="$enable_debug"
2704   case "${enableval}" in
2705  yes) enable_debug=yes ;;
2706  no)  enable_debug=no ;;
2707  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2708  esac
2709 else
2710   enable_debug=no
2711 fi
2712
2713 case "${enable_debug}" in
2714     yes) 
2715         DEBUG_FLAGS='-O0 -ggdb3'                        
2716         ;; 
2717     no)   
2718         DEBUG_FLAGS='-g'
2719         ;;
2720 esac
2721
2722
2723 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2724 echo "configure:2725: checking how to run the C preprocessor" >&5
2725 # On Suns, sometimes $CPP names a directory.
2726 if test -n "$CPP" && test -d "$CPP"; then
2727   CPP=
2728 fi
2729 if test -z "$CPP"; then
2730 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2731   echo $ac_n "(cached) $ac_c" 1>&6
2732 else
2733     # This must be in double quotes, not single quotes, because CPP may get
2734   # substituted into the Makefile and "${CC-cc}" will confuse make.
2735   CPP="${CC-cc} -E"
2736   # On the NeXT, cc -E runs the code through the compiler's parser,
2737   # not just through cpp.
2738   cat > conftest.$ac_ext <<EOF
2739 #line 2740 "configure"
2740 #include "confdefs.h"
2741 #include <assert.h>
2742 Syntax Error
2743 EOF
2744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2745 { (eval echo configure:2746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2746 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2747 if test -z "$ac_err"; then
2748   :
2749 else
2750   echo "$ac_err" >&5
2751   echo "configure: failed program was:" >&5
2752   cat conftest.$ac_ext >&5
2753   rm -rf conftest*
2754   CPP="${CC-cc} -E -traditional-cpp"
2755   cat > conftest.$ac_ext <<EOF
2756 #line 2757 "configure"
2757 #include "confdefs.h"
2758 #include <assert.h>
2759 Syntax Error
2760 EOF
2761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2762 { (eval echo configure:2763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2764 if test -z "$ac_err"; then
2765   :
2766 else
2767   echo "$ac_err" >&5
2768   echo "configure: failed program was:" >&5
2769   cat conftest.$ac_ext >&5
2770   rm -rf conftest*
2771   CPP="${CC-cc} -nologo -E"
2772   cat > conftest.$ac_ext <<EOF
2773 #line 2774 "configure"
2774 #include "confdefs.h"
2775 #include <assert.h>
2776 Syntax Error
2777 EOF
2778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2779 { (eval echo configure:2780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2781 if test -z "$ac_err"; then
2782   :
2783 else
2784   echo "$ac_err" >&5
2785   echo "configure: failed program was:" >&5
2786   cat conftest.$ac_ext >&5
2787   rm -rf conftest*
2788   CPP=/lib/cpp
2789 fi
2790 rm -f conftest*
2791 fi
2792 rm -f conftest*
2793 fi
2794 rm -f conftest*
2795   ac_cv_prog_CPP="$CPP"
2796 fi
2797   CPP="$ac_cv_prog_CPP"
2798 else
2799   ac_cv_prog_CPP="$CPP"
2800 fi
2801 echo "$ac_t""$CPP" 1>&6
2802
2803
2804   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2805 echo "configure:2806: checking for cstdio to use" >&5
2806   # Check whether --enable-cstdio or --disable-cstdio was given.
2807 if test "${enable_cstdio+set}" = set; then
2808   enableval="$enable_cstdio"
2809   if test x$enable_cstdio = xno; then
2810      enable_cstdio=stdio
2811   fi
2812 else
2813   enable_cstdio=stdio
2814 fi
2815
2816
2817   enable_cstdio_flag=$enable_cstdio
2818
2819     case x${enable_cstdio_flag} in
2820     xlibio)
2821       CSTDIO_H=config/io/c_io_libio.h
2822       BASIC_FILE_H=config/io/basic_file_libio.h
2823       BASIC_FILE_CC=config/io/basic_file_libio.cc
2824       echo "$ac_t""libio" 1>&6
2825
2826       # see if we are on a system with libio native (ie, linux)
2827       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2828 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2829 echo "configure:2830: checking for libio.h" >&5
2830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2831   echo $ac_n "(cached) $ac_c" 1>&6
2832 else
2833   cat > conftest.$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2836 #include <libio.h>
2837 EOF
2838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2839 { (eval echo configure:2840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2841 if test -z "$ac_err"; then
2842   rm -rf conftest*
2843   eval "ac_cv_header_$ac_safe=yes"
2844 else
2845   echo "$ac_err" >&5
2846   echo "configure: failed program was:" >&5
2847   cat conftest.$ac_ext >&5
2848   rm -rf conftest*
2849   eval "ac_cv_header_$ac_safe=no"
2850 fi
2851 rm -f conftest*
2852 fi
2853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2854   echo "$ac_t""yes" 1>&6
2855   has_libio=yes
2856 else
2857   echo "$ac_t""no" 1>&6
2858 has_libio=no
2859 fi
2860
2861
2862       # Need to check and see what version of glibc is being used. If
2863       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2864       # compile most of libio for linux systems.
2865       if test x$has_libio = x"yes"; then
2866         case "$target" in
2867           *-*-linux*)
2868               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2869 echo "configure:2870: checking for glibc version >= 2.2" >&5
2870               cat > conftest.$ac_ext <<EOF
2871 #line 2872 "configure"
2872 #include "confdefs.h"
2873
2874             #include <features.h>
2875               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2876                     ok
2877               #endif
2878               
2879 EOF
2880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2881   egrep "ok" >/dev/null 2>&1; then
2882   rm -rf conftest*
2883   glibc_satisfactory=yes
2884 else
2885   rm -rf conftest*
2886   glibc_satisfactory=no
2887 fi
2888 rm -f conftest*
2889
2890               echo "$ac_t""$glibc_satisfactory" 1>&6
2891             ;;
2892         esac
2893
2894         # XXX at the moment, admit defeat and force the recompilation
2895         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2896         glibc_satisfactory=no        
2897
2898         if test x$glibc_satisfactory = x"yes"; then
2899            need_libio=no
2900            need_wlibio=no        
2901         else
2902            need_libio=yes
2903            # bkoz XXX need to add checks to enable this
2904            # pme XXX here's a first pass at such a check
2905            if test x$enable_c_mbchar != xno; then
2906               need_wlibio=yes
2907            else
2908               need_wlibio=no
2909            fi
2910         fi
2911
2912       else
2913          # Using libio, but <libio.h> doesn't exist on the target system. . .
2914          need_libio=yes
2915          # bkoz XXX need to add checks to enable this
2916          # pme XXX here's a first pass at such a check
2917          if test x$enable_c_mbchar != xno; then
2918              need_wlibio=yes
2919          else
2920              need_wlibio=no
2921          fi
2922       fi
2923       ;;
2924     xstdio | x | xno | xnone | xyes)
2925       # default
2926       CSTDIO_H=config/io/c_io_stdio.h
2927       BASIC_FILE_H=config/io/basic_file_stdio.h
2928       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2929       echo "$ac_t""stdio" 1>&6
2930
2931       # We're not using stdio.
2932       need_libio=no
2933       need_wlibio=no
2934       ;;
2935     *)
2936       echo "$enable_cstdio is an unknown io package" 1>&2
2937       exit 1
2938       ;;
2939   esac
2940   
2941   
2942   
2943
2944   # 2000-08-04 bkoz hack
2945   CCODECVT_C=config/io/c_io_libio_codecvt.c
2946   
2947   # 2000-08-04 bkoz hack
2948
2949   
2950
2951 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2952   GLIBCPP_BUILD_LIBIO_TRUE=
2953   GLIBCPP_BUILD_LIBIO_FALSE='#'
2954 else
2955   GLIBCPP_BUILD_LIBIO_TRUE='#'
2956   GLIBCPP_BUILD_LIBIO_FALSE=
2957 fi
2958   
2959
2960 if test "$need_libio" = yes; then
2961   GLIBCPP_NEED_LIBIO_TRUE=
2962   GLIBCPP_NEED_LIBIO_FALSE='#'
2963 else
2964   GLIBCPP_NEED_LIBIO_TRUE='#'
2965   GLIBCPP_NEED_LIBIO_FALSE=
2966 fi
2967   
2968
2969 if test "$need_wlibio" = yes; then
2970   GLIBCPP_NEED_WLIBIO_TRUE=
2971   GLIBCPP_NEED_WLIBIO_FALSE='#'
2972 else
2973   GLIBCPP_NEED_WLIBIO_TRUE='#'
2974   GLIBCPP_NEED_WLIBIO_FALSE=
2975 fi
2976   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2977     libio_la=../libio/libio.la
2978   else
2979     libio_la=
2980   fi
2981   
2982
2983
2984   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2985 echo "configure:2986: checking for clocale to use" >&5
2986   # Check whether --enable-clocale or --disable-clocale was given.
2987 if test "${enable_clocale+set}" = set; then
2988   enableval="$enable_clocale"
2989   if test x$enable_clocale = xno; then
2990      enable_clocale=no
2991   fi
2992 else
2993   enable_clocale=no
2994 fi
2995
2996
2997   enable_clocale_flag=$enable_clocale
2998
2999       if test x$enable_clocale_flag = xno; then
3000     case x${target_os} in
3001       xlinux* | xgnu*)
3002         cat > conftest.$ac_ext <<EOF
3003 #line 3004 "configure"
3004 #include "confdefs.h"
3005
3006         #include <features.h>
3007         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
3008           _GLIBCPP_ok
3009         #endif
3010         
3011 EOF
3012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3013   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3014   rm -rf conftest*
3015   enable_clocale_flag=gnu
3016 else
3017   rm -rf conftest*
3018   enable_clocale_flag=generic
3019 fi
3020 rm -f conftest*
3021
3022
3023         # Test for bugs early in glibc-2.2.x series
3024         if test x$enable_clocale_flag = xgnu; then
3025           if test "$cross_compiling" = yes; then
3026   enable_clocale_flag=generic
3027 else
3028   cat > conftest.$ac_ext <<EOF
3029 #line 3030 "configure"
3030 #include "confdefs.h"
3031
3032           #define _GNU_SOURCE 1
3033           #include <locale.h>
3034           int main()
3035           {
3036             const char __one[] = "Äuglein Augmen";
3037             const char __two[] = "Äuglein";
3038             int i;
3039             int j;
3040             __locale_t  loc;
3041             __locale_t  loc_dup;
3042             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3043             loc_dup = __duplocale(loc);
3044             i = __strcoll_l(__one, __two, loc);
3045             j = __strcoll_l(__one, __two, loc_dup);
3046             return 0;
3047           }
3048           
3049 EOF
3050 if { (eval echo configure:3051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3051 then
3052   enable_clocale_flag=gnu
3053 else
3054   echo "configure: failed program was:" >&5
3055   cat conftest.$ac_ext >&5
3056   rm -fr conftest*
3057   enable_clocale_flag=generic
3058 fi
3059 rm -fr conftest*
3060 fi
3061
3062         fi
3063
3064         # ... at some point put __strxfrm_l tests in as well.
3065         ;;
3066       *)
3067         enable_clocale_flag=generic
3068         ;;
3069     esac
3070   fi
3071
3072     case x${enable_clocale_flag} in
3073     xgeneric)
3074       echo "$ac_t""generic" 1>&6
3075
3076       # Don't use gettext.
3077       USE_NLS=no
3078
3079       CLOCALE_H=config/locale/generic/c_locale.h
3080       CLOCALE_CC=config/locale/generic/c_locale.cc
3081       CCODECVT_H=config/locale/generic/codecvt_specializations.h
3082       CCOLLATE_CC=config/locale/generic/collate_members.cc
3083       CCTYPE_CC=config/locale/generic/ctype_members.cc
3084       CMESSAGES_H=config/locale/generic/messages_members.h
3085       CMESSAGES_CC=config/locale/generic/messages_members.cc
3086       CMONEY_CC=config/locale/generic/monetary_members.cc
3087       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3088       CTIME_CC=config/locale/generic/time_members.cc
3089       ;;
3090     xgnu)
3091       echo "$ac_t""gnu" 1>&6
3092
3093       # Declare intention to use gettext, and add support for specific
3094       # languages.
3095       # For some reason, ALL_LINGUAS has to be before AM_GNU_GETTEXT
3096       ALL_LINGUAS="de fr"
3097       # Don't call AM_GNU_GETTEXT here. Instead, assume glibc.
3098       # Need to deal with MSGFMT, USE_NLS, and glibcpp_[P,M]OFILES
3099       USE_NLS=yes
3100
3101       # Export the build objects.
3102       for ling in $ALL_LINGUAS; do \
3103         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3104         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3105       done
3106       
3107       
3108
3109       CLOCALE_H=config/locale/gnu/c_locale.h
3110       CLOCALE_CC=config/locale/gnu/c_locale.cc
3111       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3112       CCOLLATE_CC=config/locale/gnu/collate_members.cc
3113       CCTYPE_CC=config/locale/gnu/ctype_members.cc
3114       CMESSAGES_H=config/locale/gnu/messages_members.h
3115       CMESSAGES_CC=config/locale/gnu/messages_members.cc
3116       CMONEY_CC=config/locale/gnu/monetary_members.cc
3117       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3118       CTIME_CC=config/locale/gnu/time_members.cc
3119       ;;
3120     xieee_1003.1)
3121       echo "$ac_t""generic" 1>&6
3122
3123       # Don't use gettext.
3124       USE_NLS=no
3125
3126       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3127       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3128       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3129       CCOLLATE_CC=config/locale/generic/collate_members.cc
3130       CCTYPE_CC=config/locale/generic/ctype_members.cc
3131       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3132       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3133       CMONEY_CC=config/locale/generic/monetary_members.cc
3134       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3135       CTIME_CC=config/locale/generic/time_members.cc
3136       ;;
3137     *)
3138       echo "$enable_clocale is an unknown locale package" 1>&2
3139       exit 1
3140       ;;
3141   esac
3142
3143   # This is where the testsuite looks for locale catalogs, using the
3144   # -DLOCALEDIR define during testsuite compilation.
3145   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3146   
3147
3148   
3149   
3150   
3151   
3152   
3153   
3154   
3155   
3156   
3157   
3158   
3159
3160 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3161 if test "${enable_c_mbchar+set}" = set; then
3162   enableval="$enable_c_mbchar"
3163   case "$enableval" in
3164  yes) enable_c_mbchar=yes ;;
3165  no)  enable_c_mbchar=no ;;
3166  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3167  esac
3168 else
3169   enable_c_mbchar=yes
3170 fi
3171
3172   
3173   # Check whether --enable-c99 or --disable-c99 was given.
3174 if test "${enable_c99+set}" = set; then
3175   enableval="$enable_c99"
3176     case "$enableval" in
3177    yes) enable_c99=yes ;;
3178    no)  enable_c99=no ;;
3179    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3180    esac
3181 else
3182   enable_c99=yes
3183 fi
3184  
3185   
3186   ac_ext=C
3187 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3188 ac_cpp='$CXXCPP $CPPFLAGS'
3189 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3190 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3191 cross_compiling=$ac_cv_prog_cxx_cross
3192
3193
3194   # Check for the existence of <math.h> functions used if C99 is enabled.
3195   ac_c99_math=yes;
3196   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3197 echo "configure:3198: checking for ISO C99 support in <math.h>" >&5
3198   cat > conftest.$ac_ext <<EOF
3199 #line 3200 "configure"
3200 #include "confdefs.h"
3201 #include <math.h>
3202 int main() {
3203 fpclassify(0.0);
3204 ; return 0; }
3205 EOF
3206 if { (eval echo configure:3207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3207   :
3208 else
3209   echo "configure: failed program was:" >&5
3210   cat conftest.$ac_ext >&5
3211   rm -rf conftest*
3212   ac_c99_math=no
3213 fi
3214 rm -f conftest*
3215   cat > conftest.$ac_ext <<EOF
3216 #line 3217 "configure"
3217 #include "confdefs.h"
3218 #include <math.h>
3219 int main() {
3220 isfinite(0.0);
3221 ; return 0; }
3222 EOF
3223 if { (eval echo configure:3224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3224   :
3225 else
3226   echo "configure: failed program was:" >&5
3227   cat conftest.$ac_ext >&5
3228   rm -rf conftest*
3229   ac_c99_math=no
3230 fi
3231 rm -f conftest*
3232   cat > conftest.$ac_ext <<EOF
3233 #line 3234 "configure"
3234 #include "confdefs.h"
3235 #include <math.h>
3236 int main() {
3237 isinf(0.0);
3238 ; return 0; }
3239 EOF
3240 if { (eval echo configure:3241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3241   :
3242 else
3243   echo "configure: failed program was:" >&5
3244   cat conftest.$ac_ext >&5
3245   rm -rf conftest*
3246   ac_c99_math=no
3247 fi
3248 rm -f conftest*
3249   cat > conftest.$ac_ext <<EOF
3250 #line 3251 "configure"
3251 #include "confdefs.h"
3252 #include <math.h>
3253 int main() {
3254 isnan(0.0);
3255 ; return 0; }
3256 EOF
3257 if { (eval echo configure:3258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3258   :
3259 else
3260   echo "configure: failed program was:" >&5
3261   cat conftest.$ac_ext >&5
3262   rm -rf conftest*
3263   ac_c99_math=no
3264 fi
3265 rm -f conftest*
3266   cat > conftest.$ac_ext <<EOF
3267 #line 3268 "configure"
3268 #include "confdefs.h"
3269 #include <math.h>
3270 int main() {
3271 isnormal(0.0);
3272 ; return 0; }
3273 EOF
3274 if { (eval echo configure:3275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3275   :
3276 else
3277   echo "configure: failed program was:" >&5
3278   cat conftest.$ac_ext >&5
3279   rm -rf conftest*
3280   ac_c99_math=no
3281 fi
3282 rm -f conftest*
3283   cat > conftest.$ac_ext <<EOF
3284 #line 3285 "configure"
3285 #include "confdefs.h"
3286 #include <math.h>
3287 int main() {
3288 signbit(0.0);
3289 ; return 0; }
3290 EOF
3291 if { (eval echo configure:3292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3292   :
3293 else
3294   echo "configure: failed program was:" >&5
3295   cat conftest.$ac_ext >&5
3296   rm -rf conftest*
3297   ac_c99_math=no
3298 fi
3299 rm -f conftest*
3300   cat > conftest.$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3303 #include <math.h>
3304 int main() {
3305 isgreater(0.0,0.0);
3306 ; return 0; }
3307 EOF
3308 if { (eval echo configure:3309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3309   :
3310 else
3311   echo "configure: failed program was:" >&5
3312   cat conftest.$ac_ext >&5
3313   rm -rf conftest*
3314   ac_c99_math=no
3315 fi
3316 rm -f conftest*
3317   cat > conftest.$ac_ext <<EOF
3318 #line 3319 "configure"
3319 #include "confdefs.h"
3320 #include <math.h>
3321 int main() {
3322 isgreaterequal(0.0,0.0);
3323 ; return 0; }
3324 EOF
3325 if { (eval echo configure:3326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3326   :
3327 else
3328   echo "configure: failed program was:" >&5
3329   cat conftest.$ac_ext >&5
3330   rm -rf conftest*
3331   ac_c99_math=no
3332 fi
3333 rm -f conftest*
3334   cat > conftest.$ac_ext <<EOF
3335 #line 3336 "configure"
3336 #include "confdefs.h"
3337 #include <math.h>
3338 int main() {
3339 isless(0.0,0.0);
3340 ; return 0; }
3341 EOF
3342 if { (eval echo configure:3343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3343   :
3344 else
3345   echo "configure: failed program was:" >&5
3346   cat conftest.$ac_ext >&5
3347   rm -rf conftest*
3348   ac_c99_math=no
3349 fi
3350 rm -f conftest*
3351   cat > conftest.$ac_ext <<EOF
3352 #line 3353 "configure"
3353 #include "confdefs.h"
3354 #include <math.h>
3355 int main() {
3356 islessequal(0.0,0.0);
3357 ; return 0; }
3358 EOF
3359 if { (eval echo configure:3360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3360   :
3361 else
3362   echo "configure: failed program was:" >&5
3363   cat conftest.$ac_ext >&5
3364   rm -rf conftest*
3365   ac_c99_math=no
3366 fi
3367 rm -f conftest*
3368   cat > conftest.$ac_ext <<EOF
3369 #line 3370 "configure"
3370 #include "confdefs.h"
3371 #include <math.h>
3372 int main() {
3373 islessgreater(0.0,0.0);
3374 ; return 0; }
3375 EOF
3376 if { (eval echo configure:3377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3377   :
3378 else
3379   echo "configure: failed program was:" >&5
3380   cat conftest.$ac_ext >&5
3381   rm -rf conftest*
3382   ac_c99_math=no
3383 fi
3384 rm -f conftest*
3385   cat > conftest.$ac_ext <<EOF
3386 #line 3387 "configure"
3387 #include "confdefs.h"
3388 #include <math.h>
3389 int main() {
3390 isunordered(0.0,0.0);
3391 ; return 0; }
3392 EOF
3393 if { (eval echo configure:3394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3394   :
3395 else
3396   echo "configure: failed program was:" >&5
3397   cat conftest.$ac_ext >&5
3398   rm -rf conftest*
3399   ac_c99_math=no
3400 fi
3401 rm -f conftest*
3402   echo "$ac_t""$ac_c99_math" 1>&6
3403
3404   # Check for the existence in <stdio.h> of vscanf, et. al.
3405   ac_c99_stdio=yes;
3406   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3407 echo "configure:3408: checking for ISO C99 support in <stdio.h>" >&5
3408   cat > conftest.$ac_ext <<EOF
3409 #line 3410 "configure"
3410 #include "confdefs.h"
3411 #include <stdio.h>
3412 int main() {
3413 snprintf("12", 0, "%i");
3414 ; return 0; }
3415 EOF
3416 if { (eval echo configure:3417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3417   :
3418 else
3419   echo "configure: failed program was:" >&5
3420   cat conftest.$ac_ext >&5
3421   rm -rf conftest*
3422   ac_c99_stdio=no
3423 fi
3424 rm -f conftest*
3425   cat > conftest.$ac_ext <<EOF
3426 #line 3427 "configure"
3427 #include "confdefs.h"
3428 #include <stdio.h>
3429                   #include <stdarg.h>
3430                   void foo(char* fmt, ...)
3431                   {va_list args; va_start(args, fmt);
3432                   vfscanf(stderr, "%i", args);}
3433 int main() {
3434
3435 ; return 0; }
3436 EOF
3437 if { (eval echo configure:3438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3438   :
3439 else
3440   echo "configure: failed program was:" >&5
3441   cat conftest.$ac_ext >&5
3442   rm -rf conftest*
3443   ac_c99_stdio=no
3444 fi
3445 rm -f conftest*
3446   cat > conftest.$ac_ext <<EOF
3447 #line 3448 "configure"
3448 #include "confdefs.h"
3449 #include <stdio.h>
3450                   #include <stdarg.h>
3451                   void foo(char* fmt, ...)
3452                   {va_list args; va_start(args, fmt);
3453                   vscanf("%i", args);}
3454 int main() {
3455
3456 ; return 0; }
3457 EOF
3458 if { (eval echo configure:3459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3459   :
3460 else
3461   echo "configure: failed program was:" >&5
3462   cat conftest.$ac_ext >&5
3463   rm -rf conftest*
3464   ac_c99_stdio=no
3465 fi
3466 rm -f conftest*
3467   cat > conftest.$ac_ext <<EOF
3468 #line 3469 "configure"
3469 #include "confdefs.h"
3470 #include <stdio.h>
3471                   #include <stdarg.h>
3472                   void foo(char* fmt, ...)
3473                   {va_list args; va_start(args, fmt);
3474                   vsnprintf(fmt, 0, "%i", args);}
3475 int main() {
3476
3477 ; return 0; }
3478 EOF
3479 if { (eval echo configure:3480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3480   :
3481 else
3482   echo "configure: failed program was:" >&5
3483   cat conftest.$ac_ext >&5
3484   rm -rf conftest*
3485   ac_c99_stdio=no
3486 fi
3487 rm -f conftest*
3488   cat > conftest.$ac_ext <<EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3491 #include <stdio.h>
3492                   #include <stdarg.h>
3493                   void foo(char* fmt, ...)
3494                   {va_list args; va_start(args, fmt);
3495                   vsscanf(fmt, "%i", args);}
3496 int main() {
3497
3498 ; return 0; }
3499 EOF
3500 if { (eval echo configure:3501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3501   :
3502 else
3503   echo "configure: failed program was:" >&5
3504   cat conftest.$ac_ext >&5
3505   rm -rf conftest*
3506   ac_c99_stdio=no
3507 fi
3508 rm -f conftest*
3509   echo "$ac_t""$ac_c99_stdio" 1>&6
3510
3511   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3512   ac_c99_stdlib=yes;
3513   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3514 echo "configure:3515: checking for lldiv_t declaration" >&5
3515   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3516   echo $ac_n "(cached) $ac_c" 1>&6
3517 else
3518   
3519   cat > conftest.$ac_ext <<EOF
3520 #line 3521 "configure"
3521 #include "confdefs.h"
3522 #include <stdlib.h>
3523 int main() {
3524  lldiv_t mydivt;
3525 ; return 0; }
3526 EOF
3527 if { (eval echo configure:3528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3528   rm -rf conftest*
3529   ac_c99_lldiv_t=yes
3530 else
3531   echo "configure: failed program was:" >&5
3532   cat conftest.$ac_ext >&5
3533   rm -rf conftest*
3534   ac_c99_lldiv_t=no
3535 fi
3536 rm -f conftest*
3537   
3538 fi
3539
3540   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3541
3542   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3543 echo "configure:3544: checking for ISO C99 support in <stdlib.h>" >&5
3544   cat > conftest.$ac_ext <<EOF
3545 #line 3546 "configure"
3546 #include "confdefs.h"
3547 #include <stdlib.h>
3548 int main() {
3549 char* tmp; strtof("gnu", &tmp);
3550 ; return 0; }
3551 EOF
3552 if { (eval echo configure:3553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3553   :
3554 else
3555   echo "configure: failed program was:" >&5
3556   cat conftest.$ac_ext >&5
3557   rm -rf conftest*
3558   ac_c99_stdlib=no
3559 fi
3560 rm -f conftest*
3561   cat > conftest.$ac_ext <<EOF
3562 #line 3563 "configure"
3563 #include "confdefs.h"
3564 #include <stdlib.h>
3565 int main() {
3566 char* tmp; strtold("gnu", &tmp);
3567 ; return 0; }
3568 EOF
3569 if { (eval echo configure:3570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3570   :
3571 else
3572   echo "configure: failed program was:" >&5
3573   cat conftest.$ac_ext >&5
3574   rm -rf conftest*
3575   ac_c99_stdlib=no
3576 fi
3577 rm -f conftest*
3578   cat > conftest.$ac_ext <<EOF
3579 #line 3580 "configure"
3580 #include "confdefs.h"
3581 #include <stdlib.h>
3582 int main() {
3583 llabs(10);
3584 ; return 0; }
3585 EOF
3586 if { (eval echo configure:3587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3587   :
3588 else
3589   echo "configure: failed program was:" >&5
3590   cat conftest.$ac_ext >&5
3591   rm -rf conftest*
3592   ac_c99_stdlib=no
3593 fi
3594 rm -f conftest*
3595   cat > conftest.$ac_ext <<EOF
3596 #line 3597 "configure"
3597 #include "confdefs.h"
3598 #include <stdlib.h>
3599 int main() {
3600 lldiv(10,1);
3601 ; return 0; }
3602 EOF
3603 if { (eval echo configure:3604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3604   :
3605 else
3606   echo "configure: failed program was:" >&5
3607   cat conftest.$ac_ext >&5
3608   rm -rf conftest*
3609   ac_c99_stdlib=no
3610 fi
3611 rm -f conftest*
3612   cat > conftest.$ac_ext <<EOF
3613 #line 3614 "configure"
3614 #include "confdefs.h"
3615 #include <stdlib.h>
3616 int main() {
3617 atoll("10");
3618 ; return 0; }
3619 EOF
3620 if { (eval echo configure:3621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3621   :
3622 else
3623   echo "configure: failed program was:" >&5
3624   cat conftest.$ac_ext >&5
3625   rm -rf conftest*
3626   ac_c99_stdlib=no
3627 fi
3628 rm -f conftest*
3629   cat > conftest.$ac_ext <<EOF
3630 #line 3631 "configure"
3631 #include "confdefs.h"
3632 #include <stdlib.h>
3633 int main() {
3634 _Exit(0);
3635 ; return 0; }
3636 EOF
3637 if { (eval echo configure:3638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3638   :
3639 else
3640   echo "configure: failed program was:" >&5
3641   cat conftest.$ac_ext >&5
3642   rm -rf conftest*
3643   ac_c99_stdlib=no
3644 fi
3645 rm -f conftest*
3646   if test x"$ac_c99_lldiv_t" = x"no"; then
3647     ac_c99_stdlib=no; 
3648   fi; 
3649   echo "$ac_t""$ac_c99_stdlib" 1>&6
3650
3651   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3652   # XXX the wchar.h checks should be rolled into the general C99 bits.
3653   ac_c99_wchar=yes;
3654   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3655 echo "configure:3656: checking for additional ISO C99 support in <wchar.h>" >&5
3656   cat > conftest.$ac_ext <<EOF
3657 #line 3658 "configure"
3658 #include "confdefs.h"
3659 #include <wchar.h>
3660 int main() {
3661 wcstold(L"10.0", NULL);
3662 ; return 0; }
3663 EOF
3664 if { (eval echo configure:3665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3665   :
3666 else
3667   echo "configure: failed program was:" >&5
3668   cat conftest.$ac_ext >&5
3669   rm -rf conftest*
3670   ac_c99_wchar=no
3671 fi
3672 rm -f conftest*
3673   cat > conftest.$ac_ext <<EOF
3674 #line 3675 "configure"
3675 #include "confdefs.h"
3676 #include <wchar.h>
3677 int main() {
3678 wcstoll(L"10", NULL, 10);
3679 ; return 0; }
3680 EOF
3681 if { (eval echo configure:3682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3682   :
3683 else
3684   echo "configure: failed program was:" >&5
3685   cat conftest.$ac_ext >&5
3686   rm -rf conftest*
3687   ac_c99_wchar=no
3688 fi
3689 rm -f conftest*
3690   cat > conftest.$ac_ext <<EOF
3691 #line 3692 "configure"
3692 #include "confdefs.h"
3693 #include <wchar.h>
3694 int main() {
3695 wcstoull(L"10", NULL, 10);
3696 ; return 0; }
3697 EOF
3698 if { (eval echo configure:3699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3699   :
3700 else
3701   echo "configure: failed program was:" >&5
3702   cat conftest.$ac_ext >&5
3703   rm -rf conftest*
3704   ac_c99_wchar=no
3705 fi
3706 rm -f conftest*
3707   echo "$ac_t""$ac_c99_wchar" 1>&6
3708
3709   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3710 echo "configure:3711: checking for enabled ISO C99 support" >&5
3711   if test x"$ac_c99_math" = x"no" ||
3712      test x"$ac_c99_stdio" = x"no" ||
3713      test x"$ac_c99_stdlib" = x"no" ||
3714      test x"$ac_c99_wchar" = x"no"; then
3715     enable_c99=no; 
3716   fi; 
3717   echo "$ac_t""$enable_c99" 1>&6
3718
3719   # Option parsed, now set things appropriately
3720   if test x"$enable_c99" = x"yes"; then
3721     cat >> confdefs.h <<\EOF
3722 #define _GLIBCPP_USE_C99 1
3723 EOF
3724
3725   fi
3726
3727   ac_ext=c
3728 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3729 ac_cpp='$CPP $CPPFLAGS'
3730 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3731 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3732 cross_compiling=$ac_cv_prog_cc_cross
3733
3734
3735   
3736   # Check whether --enable-long-long or --disable-long-long was given.
3737 if test "${enable_long_long+set}" = set; then
3738   enableval="$enable_long_long"
3739     case "$enableval" in
3740    yes) enable_long_long=yes ;;
3741    no)  enable_long_long=no ;;
3742    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3743    esac
3744 else
3745   enable_long_long=yes
3746 fi
3747
3748   
3749   ac_ext=C
3750 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3751 ac_cpp='$CXXCPP $CPPFLAGS'
3752 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3753 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3754 cross_compiling=$ac_cv_prog_cxx_cross
3755
3756
3757   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3758 echo "configure:3759: checking for enabled long long I/O support" >&5
3759   # iostreams require strtoll, strtoull to compile
3760   cat > conftest.$ac_ext <<EOF
3761 #line 3762 "configure"
3762 #include "confdefs.h"
3763 #include <stdlib.h>
3764 int main() {
3765 char* tmp; strtoll("gnu", &tmp, 10);
3766 ; return 0; }
3767 EOF
3768 if { (eval echo configure:3769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3769   :
3770 else
3771   echo "configure: failed program was:" >&5
3772   cat conftest.$ac_ext >&5
3773   rm -rf conftest*
3774   enable_long_long=no
3775 fi
3776 rm -f conftest*
3777   cat > conftest.$ac_ext <<EOF
3778 #line 3779 "configure"
3779 #include "confdefs.h"
3780 #include <stdlib.h>
3781 int main() {
3782 char* tmp; strtoull("gnu", &tmp, 10);
3783 ; return 0; }
3784 EOF
3785 if { (eval echo configure:3786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3786   :
3787 else
3788   echo "configure: failed program was:" >&5
3789   cat conftest.$ac_ext >&5
3790   rm -rf conftest*
3791   enable_long_long=no
3792 fi
3793 rm -f conftest*
3794
3795   # Option parsed, now set things appropriately
3796   if test x"$enable_long_long" = xyes; then
3797     cat >> confdefs.h <<\EOF
3798 #define _GLIBCPP_USE_LONG_LONG 1
3799 EOF
3800
3801   fi
3802   echo "$ac_t""$enable_long_long" 1>&6
3803
3804   ac_ext=c
3805 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3806 ac_cpp='$CPP $CPPFLAGS'
3807 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3808 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3809 cross_compiling=$ac_cv_prog_cc_cross
3810
3811
3812 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3813 echo "configure:3814: checking for c header strategy to use" >&5
3814 # Check whether --enable-cheaders or --disable-cheaders was given.
3815 if test "${enable_cheaders+set}" = set; then
3816   enableval="$enable_cheaders"
3817   
3818   case "$enableval" in
3819    c) 
3820         enable_cheaders=c 
3821         ;;
3822    c_std)  
3823         enable_cheaders=c_std 
3824         ;;
3825    c_shadow)  
3826         enable_cheaders=c_shadow 
3827         ;;
3828    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3829         ;;
3830   esac
3831 else
3832   enable_cheaders=c_std
3833 fi
3834
3835   echo "$ac_t""$enable_cheaders" 1>&6
3836
3837     case "$enable_cheaders" in
3838     c_shadow) 
3839         CSHADOW_FLAGS="-fno-builtin"
3840         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3841         cat >> confdefs.h <<\EOF
3842 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3843 EOF
3844
3845         ;;
3846     c_std)   
3847         CSHADOW_FLAGS=""
3848         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3849         ;;
3850     c)   
3851         CSHADOW_FLAGS=""
3852         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3853         ;;
3854   esac
3855
3856   
3857   
3858   
3859
3860 if test "$enable_cheaders" = c_shadow; then
3861   GLIBCPP_USE_CSHADOW_TRUE=
3862   GLIBCPP_USE_CSHADOW_FALSE='#'
3863 else
3864   GLIBCPP_USE_CSHADOW_TRUE='#'
3865   GLIBCPP_USE_CSHADOW_FALSE=
3866 fi
3867
3868
3869   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3870 echo "configure:3871: checking for thread model used by GCC" >&5
3871   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3872   echo "$ac_t""$target_thread_file" 1>&6
3873
3874   if test $target_thread_file != single; then
3875     cat >> confdefs.h <<\EOF
3876 #define HAVE_GTHR_DEFAULT 1
3877 EOF
3878
3879     cat >> confdefs.h <<\EOF
3880 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3881 EOF
3882
3883   fi
3884
3885   glibcpp_thread_h=gthr-$target_thread_file.h
3886   
3887
3888 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3889 if test "${enable_cxx_flags+set}" = set; then
3890   enableval="$enable_cxx_flags"
3891   case "x$enableval" in
3892  xyes)   
3893         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3894  xno|x)  
3895         enable_cxx_flags='' ;;
3896  *)      
3897         enable_cxx_flags="$enableval" ;;
3898  esac
3899 else
3900   enable_cxx_flags='none'
3901 fi
3902
3903
3904 if test "$enable_cxx_flags" = "none"; then 
3905   enable_cxx_flags=''; 
3906 fi
3907
3908 if test -n "$enable_cxx_flags"; then
3909     for f in $enable_cxx_flags; do
3910         case "$f" in
3911             -fhonor-std)  ;;
3912             -*)  ;;
3913             *)   # and we're trying to pass /what/ exactly?
3914                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3915         esac
3916     done
3917 fi
3918 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3919
3920
3921
3922   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3923 echo "configure:3924: checking for exception model to use" >&5
3924   
3925   ac_ext=C
3926 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3927 ac_cpp='$CXXCPP $CPPFLAGS'
3928 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3929 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3930 cross_compiling=$ac_cv_prog_cxx_cross
3931
3932   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3933 if test "${enable_sjlj_exceptions+set}" = set; then
3934   enableval="$enable_sjlj_exceptions"
3935   :
3936 else
3937                        cat > conftest.$ac_ext << EOF
3938 #line 3939 "configure"
3939 struct S { ~S(); };
3940 void bar();
3941 void foo()
3942 {
3943   S s;
3944   bar();
3945 }
3946 EOF
3947    old_CXXFLAGS="$CXXFLAGS"  
3948    CXXFLAGS=-S
3949    if { (eval echo configure:3950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3950      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3951        enable_sjlj_exceptions=yes
3952      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3953        enable_sjlj_exceptions=no
3954      fi
3955    fi
3956    CXXFLAGS="$old_CXXFLAGS"
3957    rm -f conftest*
3958 fi
3959
3960    if test x$enable_sjlj_exceptions = xyes; then
3961      cat >> confdefs.h <<\EOF
3962 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3963 EOF
3964
3965      ac_exception_model_name=sjlj
3966    elif test x$enable_sjlj_exceptions = xno; then
3967      ac_exception_model_name="call frame"
3968    else
3969      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3970    fi
3971    ac_ext=c
3972 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3973 ac_cpp='$CPP $CPPFLAGS'
3974 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3975 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3976 cross_compiling=$ac_cv_prog_cc_cross
3977
3978    echo "$ac_t""$ac_exception_model_name" 1>&6
3979
3980 # Check whether --enable-concept-checks or --disable-concept-checks was given.
3981 if test "${enable_concept_checks+set}" = set; then
3982   enableval="$enable_concept_checks"
3983   case "$enableval" in
3984  yes) enable_concept_checks=yes ;;
3985  no)  enable_concept_checks=no ;;
3986  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
3987  esac
3988 else
3989   enable_concept_checks=no
3990 fi
3991 if test x"$enable_concept_checks" = xyes; then
3992   cat >> confdefs.h <<\EOF
3993 #define _GLIBCPP_CONCEPT_CHECKS 1
3994 EOF
3995
3996 fi
3997
3998
3999
4000 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4001
4002   # This lets us hard-code the functionality we know
4003   # we'll have in the cross target environment. "Let" is a
4004   # sugar-coated word placed on an especially dull and tedious hack, actually.
4005   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4006   # that involve linking can't be used:
4007   # "cannot open sim-crt0.o"
4008   # "cannot open crt0.o"
4009   # etc. All this is because there currently exists no unified,
4010   # consistent way for top level CC information to be passed down
4011   # to target directories: newlib includes, newlib linking info,
4012   # libgloss versus newlib crt0.o, etc. When all of this is done, all
4013   # of this hokey, excessive AC_DEFINE junk for crosses can be removed.
4014
4015   # We are being configured with some form of cross compiler.
4016   GLIBCPP_IS_CROSS_COMPILING=1
4017
4018   # If Canadian cross, then don't pick up tools from the build
4019   # directory.
4020   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4021     CANADIAN=yes
4022   else
4023     CANADIAN=no
4024   fi
4025
4026   # Construct crosses by hand, eliminating bits that need ld...
4027   # GLIBCPP_CHECK_COMPILER_FEATURES
4028   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4029   # GLIBCPP_CHECK_MATH_SUPPORT
4030
4031   case "$target_alias" in
4032     *-linux*)
4033       # Check for available headers.
4034       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4035         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4036         fp.h locale.h float.h inttypes.h
4037 do
4038 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4039 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4040 echo "configure:4041: checking for $ac_hdr" >&5
4041 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4042   echo $ac_n "(cached) $ac_c" 1>&6
4043 else
4044   cat > conftest.$ac_ext <<EOF
4045 #line 4046 "configure"
4046 #include "confdefs.h"
4047 #include <$ac_hdr>
4048 EOF
4049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4050 { (eval echo configure:4051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4052 if test -z "$ac_err"; then
4053   rm -rf conftest*
4054   eval "ac_cv_header_$ac_safe=yes"
4055 else
4056   echo "$ac_err" >&5
4057   echo "configure: failed program was:" >&5
4058   cat conftest.$ac_ext >&5
4059   rm -rf conftest*
4060   eval "ac_cv_header_$ac_safe=no"
4061 fi
4062 rm -f conftest*
4063 fi
4064 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4065   echo "$ac_t""yes" 1>&6
4066     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4067   cat >> confdefs.h <<EOF
4068 #define $ac_tr_hdr 1
4069 EOF
4070  
4071 else
4072   echo "$ac_t""no" 1>&6
4073 fi
4074 done
4075
4076       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4077       
4078       
4079   # If we're not using GNU ld, then there's no point in even trying these
4080   # tests.  Check for that first.  We should have already tested for gld
4081   # by now (in libtool), but require it now just to be safe...
4082   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4083   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4084   
4085
4086   # The name set by libtool depends on the version of libtool.  Shame on us
4087   # for depending on an impl detail, but c'est la vie.  Older versions used
4088   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4089   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4090   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4091   # set (hence we're using an older libtool), then set it.
4092   if test x${with_gnu_ld+set} != xset; then
4093     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4094       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4095       with_gnu_ld=no
4096     else
4097       with_gnu_ld=$ac_cv_prog_gnu_ld
4098     fi
4099   fi
4100
4101   # Start by getting the version number.  I think the libtool test already
4102   # does some of this, but throws away the result.
4103   
4104   ldver=`$LD --version 2>/dev/null | head -1 | \
4105          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4106   
4107   glibcpp_gnu_ld_version=`echo $ldver | \
4108          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4109
4110   # Set --gc-sections.
4111   if test "$with_gnu_ld" = "notbroken"; then
4112     # GNU ld it is!  Joy and bunny rabbits!
4113
4114     # All these tests are for C++; save the language and the compiler flags.
4115     # Need to do this so that g++ won't try to link in libstdc++
4116     ac_test_CFLAGS="${CFLAGS+set}"
4117     ac_save_CFLAGS="$CFLAGS"
4118     CFLAGS='-x c++  -Wl,--gc-sections'
4119
4120     # Check for -Wl,--gc-sections
4121     # XXX This test is broken at the moment, as symbols required for
4122     # linking are now in libsupc++ (not built yet.....). In addition, 
4123     # this test has cored on solaris in the past. In addition,
4124     # --gc-sections doesn't really work at the moment (keeps on discarding
4125     # used sections, first .eh_frame and now some of the glibc sections for
4126     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4127     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4128 echo "configure:4129: checking for ld that supports -Wl,--gc-sections" >&5
4129     if test "$cross_compiling" = yes; then
4130   ac_sectionLDflags=yes
4131 else
4132   cat > conftest.$ac_ext <<EOF
4133 #line 4134 "configure"
4134 #include "confdefs.h"
4135
4136      int main(void) 
4137      {
4138        try { throw 1; }
4139        catch (...) { };
4140        return 0;
4141      }
4142     
4143 EOF
4144 if { (eval echo configure:4145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4145 then
4146   ac_sectionLDflags=yes
4147 else
4148   echo "configure: failed program was:" >&5
4149   cat conftest.$ac_ext >&5
4150   rm -fr conftest*
4151   ac_sectionLDflags=no
4152 fi
4153 rm -fr conftest*
4154 fi
4155
4156     if test "$ac_test_CFLAGS" = set; then
4157       CFLAGS="$ac_save_CFLAGS"
4158     else
4159       # this is the suspicious part
4160       CFLAGS=''
4161     fi
4162     if test "$ac_sectionLDflags" = "yes"; then
4163       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4164     fi
4165     echo "$ac_t""$ac_sectionLDflags" 1>&6
4166   fi
4167
4168   # Set linker optimization flags.
4169   if test x"$with_gnu_ld" = x"yes" &&
4170      test x"$enable_debug" = x"no"; then
4171     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4172   fi
4173
4174   
4175   
4176
4177       
4178     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4179 echo "configure:4180: checking for main in -lm" >&5
4180 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4181 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4182   echo $ac_n "(cached) $ac_c" 1>&6
4183 else
4184   ac_save_LIBS="$LIBS"
4185 LIBS="-lm  $LIBS"
4186 cat > conftest.$ac_ext <<EOF
4187 #line 4188 "configure"
4188 #include "confdefs.h"
4189
4190 int main() {
4191 main()
4192 ; return 0; }
4193 EOF
4194 if { (eval echo configure:4195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4195   rm -rf conftest*
4196   eval "ac_cv_lib_$ac_lib_var=yes"
4197 else
4198   echo "configure: failed program was:" >&5
4199   cat conftest.$ac_ext >&5
4200   rm -rf conftest*
4201   eval "ac_cv_lib_$ac_lib_var=no"
4202 fi
4203 rm -f conftest*
4204 LIBS="$ac_save_LIBS"
4205
4206 fi
4207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4208   echo "$ac_t""yes" 1>&6
4209     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4210     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4211   cat >> confdefs.h <<EOF
4212 #define $ac_tr_lib 1
4213 EOF
4214
4215   LIBS="-lm $LIBS"
4216
4217 else
4218   echo "$ac_t""no" 1>&6
4219 fi
4220
4221   for ac_func in nan copysignf
4222 do
4223 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4224 echo "configure:4225: checking for $ac_func" >&5
4225 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4226   echo $ac_n "(cached) $ac_c" 1>&6
4227 else
4228   cat > conftest.$ac_ext <<EOF
4229 #line 4230 "configure"
4230 #include "confdefs.h"
4231 /* System header to define __stub macros and hopefully few prototypes,
4232     which can conflict with char $ac_func(); below.  */
4233 #include <assert.h>
4234 /* Override any gcc2 internal prototype to avoid an error.  */
4235 /* We use char because int might match the return type of a gcc2
4236     builtin and then its argument prototype would still apply.  */
4237 char $ac_func();
4238
4239 int main() {
4240
4241 /* The GNU C library defines this for functions which it implements
4242     to always fail with ENOSYS.  Some functions are actually named
4243     something starting with __ and the normal name is an alias.  */
4244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4245 choke me
4246 #else
4247 $ac_func();
4248 #endif
4249
4250 ; return 0; }
4251 EOF
4252 if { (eval echo configure:4253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4253   rm -rf conftest*
4254   eval "ac_cv_func_$ac_func=yes"
4255 else
4256   echo "configure: failed program was:" >&5
4257   cat conftest.$ac_ext >&5
4258   rm -rf conftest*
4259   eval "ac_cv_func_$ac_func=no"
4260 fi
4261 rm -f conftest*
4262 fi
4263
4264 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4265   echo "$ac_t""yes" 1>&6
4266     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4267   cat >> confdefs.h <<EOF
4268 #define $ac_tr_func 1
4269 EOF
4270  
4271 else
4272   echo "$ac_t""no" 1>&6
4273 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4274 fi
4275 done
4276
4277
4278
4279           USE_COMPLEX_LONG_DOUBLE=no
4280   if test x$ac_cv_func_copysignl = x"yes"; then
4281     USE_COMPLEX_LONG_DOUBLE=yes
4282     for ac_func in signbitl
4283 do
4284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4285 echo "configure:4286: checking for $ac_func" >&5
4286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4287   echo $ac_n "(cached) $ac_c" 1>&6
4288 else
4289   cat > conftest.$ac_ext <<EOF
4290 #line 4291 "configure"
4291 #include "confdefs.h"
4292 /* System header to define __stub macros and hopefully few prototypes,
4293     which can conflict with char $ac_func(); below.  */
4294 #include <assert.h>
4295 /* Override any gcc2 internal prototype to avoid an error.  */
4296 /* We use char because int might match the return type of a gcc2
4297     builtin and then its argument prototype would still apply.  */
4298 char $ac_func();
4299
4300 int main() {
4301
4302 /* The GNU C library defines this for functions which it implements
4303     to always fail with ENOSYS.  Some functions are actually named
4304     something starting with __ and the normal name is an alias.  */
4305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4306 choke me
4307 #else
4308 $ac_func();
4309 #endif
4310
4311 ; return 0; }
4312 EOF
4313 if { (eval echo configure:4314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4314   rm -rf conftest*
4315   eval "ac_cv_func_$ac_func=yes"
4316 else
4317   echo "configure: failed program was:" >&5
4318   cat conftest.$ac_ext >&5
4319   rm -rf conftest*
4320   eval "ac_cv_func_$ac_func=no"
4321 fi
4322 rm -f conftest*
4323 fi
4324
4325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4326   echo "$ac_t""yes" 1>&6
4327     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4328   cat >> confdefs.h <<EOF
4329 #define $ac_tr_func 1
4330 EOF
4331  
4332 else
4333   echo "$ac_t""no" 1>&6
4334 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4335 fi
4336 done
4337
4338
4339   fi
4340
4341   
4342
4343       
4344
4345       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4346 echo "configure:4347: checking for mbstate_t" >&5
4347   cat > conftest.$ac_ext <<EOF
4348 #line 4349 "configure"
4349 #include "confdefs.h"
4350 #include <wchar.h>
4351 int main() {
4352 mbstate_t teststate;
4353 ; return 0; }
4354 EOF
4355 if { (eval echo configure:4356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4356   rm -rf conftest*
4357   have_mbstate_t=yes
4358 else
4359   echo "configure: failed program was:" >&5
4360   cat conftest.$ac_ext >&5
4361   rm -rf conftest*
4362   have_mbstate_t=no
4363 fi
4364 rm -f conftest*
4365   echo "$ac_t""$have_mbstate_t" 1>&6
4366   if test x"$have_mbstate_t" = xyes; then
4367     cat >> confdefs.h <<\EOF
4368 #define HAVE_MBSTATE_T 1
4369 EOF
4370
4371   fi
4372
4373     for ac_hdr in wchar.h
4374 do
4375 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4376 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4377 echo "configure:4378: checking for $ac_hdr" >&5
4378 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4379   echo $ac_n "(cached) $ac_c" 1>&6
4380 else
4381   cat > conftest.$ac_ext <<EOF
4382 #line 4383 "configure"
4383 #include "confdefs.h"
4384 #include <$ac_hdr>
4385 EOF
4386 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4387 { (eval echo configure:4388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4388 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4389 if test -z "$ac_err"; then
4390   rm -rf conftest*
4391   eval "ac_cv_header_$ac_safe=yes"
4392 else
4393   echo "$ac_err" >&5
4394   echo "configure: failed program was:" >&5
4395   cat conftest.$ac_ext >&5
4396   rm -rf conftest*
4397   eval "ac_cv_header_$ac_safe=no"
4398 fi
4399 rm -f conftest*
4400 fi
4401 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4402   echo "$ac_t""yes" 1>&6
4403     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4404   cat >> confdefs.h <<EOF
4405 #define $ac_tr_hdr 1
4406 EOF
4407  ac_has_wchar_h=yes
4408 else
4409   echo "$ac_t""no" 1>&6
4410 ac_has_wchar_h=no
4411 fi
4412 done
4413
4414   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4415 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4416 echo "configure:4417: checking for wctype.h" >&5
4417 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4418   echo $ac_n "(cached) $ac_c" 1>&6
4419 else
4420   cat > conftest.$ac_ext <<EOF
4421 #line 4422 "configure"
4422 #include "confdefs.h"
4423 #include <wctype.h>
4424 EOF
4425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4426 { (eval echo configure:4427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4428 if test -z "$ac_err"; then
4429   rm -rf conftest*
4430   eval "ac_cv_header_$ac_safe=yes"
4431 else
4432   echo "$ac_err" >&5
4433   echo "configure: failed program was:" >&5
4434   cat conftest.$ac_ext >&5
4435   rm -rf conftest*
4436   eval "ac_cv_header_$ac_safe=no"
4437 fi
4438 rm -f conftest*
4439 fi
4440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4441   echo "$ac_t""yes" 1>&6
4442   ac_has_wctype_h=yes
4443 else
4444   echo "$ac_t""no" 1>&6
4445 ac_has_wctype_h=no
4446 fi
4447
4448   
4449     if test x"$ac_has_wchar_h" = xyes &&
4450      test x"$ac_has_wctype_h" = xyes &&
4451      test x"$enable_c_mbchar" != xno; then
4452       
4453             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4454 echo "configure:4455: checking for WCHAR_MIN and WCHAR_MAX" >&5
4455     cat > conftest.$ac_ext <<EOF
4456 #line 4457 "configure"
4457 #include "confdefs.h"
4458 #include <wchar.h>
4459 int main() {
4460 int i = WCHAR_MIN; int j = WCHAR_MAX;
4461 ; return 0; }
4462 EOF
4463 if { (eval echo configure:4464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4464   rm -rf conftest*
4465   has_wchar_minmax=yes
4466 else
4467   echo "configure: failed program was:" >&5
4468   cat conftest.$ac_ext >&5
4469   rm -rf conftest*
4470   has_wchar_minmax=no
4471 fi
4472 rm -f conftest*
4473     echo "$ac_t""$has_wchar_minmax" 1>&6
4474     
4475             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4476 echo "configure:4477: checking for WEOF" >&5
4477     cat > conftest.$ac_ext <<EOF
4478 #line 4479 "configure"
4479 #include "confdefs.h"
4480
4481       #include <wchar.h>
4482       #include <stddef.h>
4483 int main() {
4484 wint_t i = WEOF;
4485 ; return 0; }
4486 EOF
4487 if { (eval echo configure:4488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4488   rm -rf conftest*
4489   has_weof=yes
4490 else
4491   echo "configure: failed program was:" >&5
4492   cat conftest.$ac_ext >&5
4493   rm -rf conftest*
4494   has_weof=no
4495 fi
4496 rm -f conftest*
4497     echo "$ac_t""$has_weof" 1>&6
4498   
4499         ac_wfuncs=yes
4500     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4501 do
4502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4503 echo "configure:4504: checking for $ac_func" >&5
4504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4505   echo $ac_n "(cached) $ac_c" 1>&6
4506 else
4507   cat > conftest.$ac_ext <<EOF
4508 #line 4509 "configure"
4509 #include "confdefs.h"
4510 /* System header to define __stub macros and hopefully few prototypes,
4511     which can conflict with char $ac_func(); below.  */
4512 #include <assert.h>
4513 /* Override any gcc2 internal prototype to avoid an error.  */
4514 /* We use char because int might match the return type of a gcc2
4515     builtin and then its argument prototype would still apply.  */
4516 char $ac_func();
4517
4518 int main() {
4519
4520 /* The GNU C library defines this for functions which it implements
4521     to always fail with ENOSYS.  Some functions are actually named
4522     something starting with __ and the normal name is an alias.  */
4523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4524 choke me
4525 #else
4526 $ac_func();
4527 #endif
4528
4529 ; return 0; }
4530 EOF
4531 if { (eval echo configure:4532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4532   rm -rf conftest*
4533   eval "ac_cv_func_$ac_func=yes"
4534 else
4535   echo "configure: failed program was:" >&5
4536   cat conftest.$ac_ext >&5
4537   rm -rf conftest*
4538   eval "ac_cv_func_$ac_func=no"
4539 fi
4540 rm -f conftest*
4541 fi
4542
4543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4544   echo "$ac_t""yes" 1>&6
4545     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4546   cat >> confdefs.h <<EOF
4547 #define $ac_tr_func 1
4548 EOF
4549  
4550 else
4551   echo "$ac_t""no" 1>&6
4552 \
4553     ac_wfuncs=no
4554 fi
4555 done
4556
4557   
4558         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4559     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4560     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4561     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4562     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4563     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4564 do
4565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4566 echo "configure:4567: checking for $ac_func" >&5
4567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4568   echo $ac_n "(cached) $ac_c" 1>&6
4569 else
4570   cat > conftest.$ac_ext <<EOF
4571 #line 4572 "configure"
4572 #include "confdefs.h"
4573 /* System header to define __stub macros and hopefully few prototypes,
4574     which can conflict with char $ac_func(); below.  */
4575 #include <assert.h>
4576 /* Override any gcc2 internal prototype to avoid an error.  */
4577 /* We use char because int might match the return type of a gcc2
4578     builtin and then its argument prototype would still apply.  */
4579 char $ac_func();
4580
4581 int main() {
4582
4583 /* The GNU C library defines this for functions which it implements
4584     to always fail with ENOSYS.  Some functions are actually named
4585     something starting with __ and the normal name is an alias.  */
4586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4587 choke me
4588 #else
4589 $ac_func();
4590 #endif
4591
4592 ; return 0; }
4593 EOF
4594 if { (eval echo configure:4595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4595   rm -rf conftest*
4596   eval "ac_cv_func_$ac_func=yes"
4597 else
4598   echo "configure: failed program was:" >&5
4599   cat conftest.$ac_ext >&5
4600   rm -rf conftest*
4601   eval "ac_cv_func_$ac_func=no"
4602 fi
4603 rm -f conftest*
4604 fi
4605
4606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4607   echo "$ac_t""yes" 1>&6
4608     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4609   cat >> confdefs.h <<EOF
4610 #define $ac_tr_func 1
4611 EOF
4612  
4613 else
4614   echo "$ac_t""no" 1>&6
4615 \
4616     ac_wfuncs=no
4617 fi
4618 done
4619
4620
4621     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4622 echo "configure:4623: checking for ISO C99 wchar_t support" >&5
4623     if test x"$has_weof" = xyes &&
4624        test x"$has_wchar_minmax" = xyes &&
4625        test x"$ac_wfuncs" = xyes; then
4626       ac_isoC99_wchar_t=yes
4627     else
4628       ac_isoC99_wchar_t=no
4629     fi
4630     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4631   
4632             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4633 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4634 echo "configure:4635: checking for iconv.h" >&5
4635 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4636   echo $ac_n "(cached) $ac_c" 1>&6
4637 else
4638   cat > conftest.$ac_ext <<EOF
4639 #line 4640 "configure"
4640 #include "confdefs.h"
4641 #include <iconv.h>
4642 EOF
4643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4644 { (eval echo configure:4645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4645 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4646 if test -z "$ac_err"; then
4647   rm -rf conftest*
4648   eval "ac_cv_header_$ac_safe=yes"
4649 else
4650   echo "$ac_err" >&5
4651   echo "configure: failed program was:" >&5
4652   cat conftest.$ac_ext >&5
4653   rm -rf conftest*
4654   eval "ac_cv_header_$ac_safe=no"
4655 fi
4656 rm -f conftest*
4657 fi
4658 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4659   echo "$ac_t""yes" 1>&6
4660   ac_has_iconv_h=yes
4661 else
4662   echo "$ac_t""no" 1>&6
4663 ac_has_iconv_h=no
4664 fi
4665
4666     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4667 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4668 echo "configure:4669: checking for langinfo.h" >&5
4669 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4670   echo $ac_n "(cached) $ac_c" 1>&6
4671 else
4672   cat > conftest.$ac_ext <<EOF
4673 #line 4674 "configure"
4674 #include "confdefs.h"
4675 #include <langinfo.h>
4676 EOF
4677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4678 { (eval echo configure:4679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4680 if test -z "$ac_err"; then
4681   rm -rf conftest*
4682   eval "ac_cv_header_$ac_safe=yes"
4683 else
4684   echo "$ac_err" >&5
4685   echo "configure: failed program was:" >&5
4686   cat conftest.$ac_ext >&5
4687   rm -rf conftest*
4688   eval "ac_cv_header_$ac_safe=no"
4689 fi
4690 rm -f conftest*
4691 fi
4692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4693   echo "$ac_t""yes" 1>&6
4694   ac_has_langinfo_h=yes
4695 else
4696   echo "$ac_t""no" 1>&6
4697 ac_has_langinfo_h=no
4698 fi
4699
4700
4701         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4702 echo "configure:4703: checking for iconv in -liconv" >&5
4703 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4704 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4705   echo $ac_n "(cached) $ac_c" 1>&6
4706 else
4707   ac_save_LIBS="$LIBS"
4708 LIBS="-liconv  $LIBS"
4709 cat > conftest.$ac_ext <<EOF
4710 #line 4711 "configure"
4711 #include "confdefs.h"
4712 /* Override any gcc2 internal prototype to avoid an error.  */
4713 /* We use char because int might match the return type of a gcc2
4714     builtin and then its argument prototype would still apply.  */
4715 char iconv();
4716
4717 int main() {
4718 iconv()
4719 ; return 0; }
4720 EOF
4721 if { (eval echo configure:4722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4722   rm -rf conftest*
4723   eval "ac_cv_lib_$ac_lib_var=yes"
4724 else
4725   echo "configure: failed program was:" >&5
4726   cat conftest.$ac_ext >&5
4727   rm -rf conftest*
4728   eval "ac_cv_lib_$ac_lib_var=no"
4729 fi
4730 rm -f conftest*
4731 LIBS="$ac_save_LIBS"
4732
4733 fi
4734 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4735   echo "$ac_t""yes" 1>&6
4736   libiconv="-liconv"
4737 else
4738   echo "$ac_t""no" 1>&6
4739 fi
4740
4741     ac_save_LIBS="$LIBS"
4742     LIBS="$LIBS $libiconv"
4743
4744     for ac_func in iconv_open iconv_close iconv nl_langinfo
4745 do
4746 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4747 echo "configure:4748: checking for $ac_func" >&5
4748 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4749   echo $ac_n "(cached) $ac_c" 1>&6
4750 else
4751   cat > conftest.$ac_ext <<EOF
4752 #line 4753 "configure"
4753 #include "confdefs.h"
4754 /* System header to define __stub macros and hopefully few prototypes,
4755     which can conflict with char $ac_func(); below.  */
4756 #include <assert.h>
4757 /* Override any gcc2 internal prototype to avoid an error.  */
4758 /* We use char because int might match the return type of a gcc2
4759     builtin and then its argument prototype would still apply.  */
4760 char $ac_func();
4761
4762 int main() {
4763
4764 /* The GNU C library defines this for functions which it implements
4765     to always fail with ENOSYS.  Some functions are actually named
4766     something starting with __ and the normal name is an alias.  */
4767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4768 choke me
4769 #else
4770 $ac_func();
4771 #endif
4772
4773 ; return 0; }
4774 EOF
4775 if { (eval echo configure:4776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4776   rm -rf conftest*
4777   eval "ac_cv_func_$ac_func=yes"
4778 else
4779   echo "configure: failed program was:" >&5
4780   cat conftest.$ac_ext >&5
4781   rm -rf conftest*
4782   eval "ac_cv_func_$ac_func=no"
4783 fi
4784 rm -f conftest*
4785 fi
4786
4787 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4788   echo "$ac_t""yes" 1>&6
4789     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4790   cat >> confdefs.h <<EOF
4791 #define $ac_tr_func 1
4792 EOF
4793  \
4794     ac_XPG2funcs=yes
4795 else
4796   echo "$ac_t""no" 1>&6
4797 ac_XPG2funcs=no
4798 fi
4799 done
4800
4801   
4802     LIBS="$ac_save_LIBS"
4803
4804     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4805 echo "configure:4806: checking for XPG2 wchar_t support" >&5
4806     if test x"$ac_has_iconv_h" = xyes &&
4807        test x"$ac_has_langinfo_h" = xyes &&
4808        test x"$ac_XPG2funcs" = xyes; then
4809       ac_XPG2_wchar_t=yes
4810     else
4811       ac_XPG2_wchar_t=no
4812     fi
4813     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4814   
4815             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4816 echo "configure:4817: checking for enabled wchar_t specializations" >&5
4817     if test x"$ac_isoC99_wchar_t" = xyes &&
4818        test x"$ac_XPG2_wchar_t" = xyes; then
4819       cat >> confdefs.h <<\EOF
4820 #define _GLIBCPP_USE_WCHAR_T 1
4821 EOF
4822
4823       echo "$ac_t"""yes"" 1>&6
4824     else
4825       echo "$ac_t"""no"" 1>&6
4826     fi
4827   else
4828         echo "configure: warning: wchar_t support disabled." 1>&2
4829   fi
4830
4831       os_include_dir="config/os/gnu-linux"
4832       cat >> confdefs.h <<\EOF
4833 #define HAVE_COPYSIGN 1
4834 EOF
4835
4836       cat >> confdefs.h <<\EOF
4837 #define HAVE_COPYSIGNF 1
4838 EOF
4839
4840       cat >> confdefs.h <<\EOF
4841 #define HAVE_FINITEF 1
4842 EOF
4843
4844       cat >> confdefs.h <<\EOF
4845 #define HAVE_FREXPF 1
4846 EOF
4847
4848       cat >> confdefs.h <<\EOF
4849 #define HAVE_HYPOTF 1
4850 EOF
4851
4852       cat >> confdefs.h <<\EOF
4853 #define HAVE_SINCOS 1
4854 EOF
4855
4856       cat >> confdefs.h <<\EOF
4857 #define HAVE_SINCOSF 1
4858 EOF
4859
4860       if test x"long_double_math_on_this_cpu" = x"yes"; then
4861         cat >> confdefs.h <<\EOF
4862 #define HAVE_HYPOTL 1
4863 EOF
4864
4865       fi
4866       ;;
4867     *-hpux*)
4868       # Check for available headers.
4869       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4870         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4871         fp.h locale.h float.h inttypes.h
4872 do
4873 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4874 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4875 echo "configure:4876: checking for $ac_hdr" >&5
4876 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4877   echo $ac_n "(cached) $ac_c" 1>&6
4878 else
4879   cat > conftest.$ac_ext <<EOF
4880 #line 4881 "configure"
4881 #include "confdefs.h"
4882 #include <$ac_hdr>
4883 EOF
4884 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4885 { (eval echo configure:4886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4886 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4887 if test -z "$ac_err"; then
4888   rm -rf conftest*
4889   eval "ac_cv_header_$ac_safe=yes"
4890 else
4891   echo "$ac_err" >&5
4892   echo "configure: failed program was:" >&5
4893   cat conftest.$ac_ext >&5
4894   rm -rf conftest*
4895   eval "ac_cv_header_$ac_safe=no"
4896 fi
4897 rm -f conftest*
4898 fi
4899 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4900   echo "$ac_t""yes" 1>&6
4901     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4902   cat >> confdefs.h <<EOF
4903 #define $ac_tr_hdr 1
4904 EOF
4905  
4906 else
4907   echo "$ac_t""no" 1>&6
4908 fi
4909 done
4910
4911       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4912       
4913       
4914   # If we're not using GNU ld, then there's no point in even trying these
4915   # tests.  Check for that first.  We should have already tested for gld
4916   # by now (in libtool), but require it now just to be safe...
4917   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4918   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4919   
4920
4921   # The name set by libtool depends on the version of libtool.  Shame on us
4922   # for depending on an impl detail, but c'est la vie.  Older versions used
4923   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4924   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4925   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4926   # set (hence we're using an older libtool), then set it.
4927   if test x${with_gnu_ld+set} != xset; then
4928     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4929       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4930       with_gnu_ld=no
4931     else
4932       with_gnu_ld=$ac_cv_prog_gnu_ld
4933     fi
4934   fi
4935
4936   # Start by getting the version number.  I think the libtool test already
4937   # does some of this, but throws away the result.
4938   
4939   ldver=`$LD --version 2>/dev/null | head -1 | \
4940          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4941   
4942   glibcpp_gnu_ld_version=`echo $ldver | \
4943          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4944
4945   # Set --gc-sections.
4946   if test "$with_gnu_ld" = "notbroken"; then
4947     # GNU ld it is!  Joy and bunny rabbits!
4948
4949     # All these tests are for C++; save the language and the compiler flags.
4950     # Need to do this so that g++ won't try to link in libstdc++
4951     ac_test_CFLAGS="${CFLAGS+set}"
4952     ac_save_CFLAGS="$CFLAGS"
4953     CFLAGS='-x c++  -Wl,--gc-sections'
4954
4955     # Check for -Wl,--gc-sections
4956     # XXX This test is broken at the moment, as symbols required for
4957     # linking are now in libsupc++ (not built yet.....). In addition, 
4958     # this test has cored on solaris in the past. In addition,
4959     # --gc-sections doesn't really work at the moment (keeps on discarding
4960     # used sections, first .eh_frame and now some of the glibc sections for
4961     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4962     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4963 echo "configure:4964: checking for ld that supports -Wl,--gc-sections" >&5
4964     if test "$cross_compiling" = yes; then
4965   ac_sectionLDflags=yes
4966 else
4967   cat > conftest.$ac_ext <<EOF
4968 #line 4969 "configure"
4969 #include "confdefs.h"
4970
4971      int main(void) 
4972      {
4973        try { throw 1; }
4974        catch (...) { };
4975        return 0;
4976      }
4977     
4978 EOF
4979 if { (eval echo configure:4980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4980 then
4981   ac_sectionLDflags=yes
4982 else
4983   echo "configure: failed program was:" >&5
4984   cat conftest.$ac_ext >&5
4985   rm -fr conftest*
4986   ac_sectionLDflags=no
4987 fi
4988 rm -fr conftest*
4989 fi
4990
4991     if test "$ac_test_CFLAGS" = set; then
4992       CFLAGS="$ac_save_CFLAGS"
4993     else
4994       # this is the suspicious part
4995       CFLAGS=''
4996     fi
4997     if test "$ac_sectionLDflags" = "yes"; then
4998       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4999     fi
5000     echo "$ac_t""$ac_sectionLDflags" 1>&6
5001   fi
5002
5003   # Set linker optimization flags.
5004   if test x"$with_gnu_ld" = x"yes" &&
5005      test x"$enable_debug" = x"no"; then
5006     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5007   fi
5008
5009   
5010   
5011
5012       
5013     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5014 echo "configure:5015: checking for main in -lm" >&5
5015 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5016 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5017   echo $ac_n "(cached) $ac_c" 1>&6
5018 else
5019   ac_save_LIBS="$LIBS"
5020 LIBS="-lm  $LIBS"
5021 cat > conftest.$ac_ext <<EOF
5022 #line 5023 "configure"
5023 #include "confdefs.h"
5024
5025 int main() {
5026 main()
5027 ; return 0; }
5028 EOF
5029 if { (eval echo configure:5030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5030   rm -rf conftest*
5031   eval "ac_cv_lib_$ac_lib_var=yes"
5032 else
5033   echo "configure: failed program was:" >&5
5034   cat conftest.$ac_ext >&5
5035   rm -rf conftest*
5036   eval "ac_cv_lib_$ac_lib_var=no"
5037 fi
5038 rm -f conftest*
5039 LIBS="$ac_save_LIBS"
5040
5041 fi
5042 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5043   echo "$ac_t""yes" 1>&6
5044     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5045     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5046   cat >> confdefs.h <<EOF
5047 #define $ac_tr_lib 1
5048 EOF
5049
5050   LIBS="-lm $LIBS"
5051
5052 else
5053   echo "$ac_t""no" 1>&6
5054 fi
5055
5056   for ac_func in nan copysignf
5057 do
5058 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5059 echo "configure:5060: checking for $ac_func" >&5
5060 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5061   echo $ac_n "(cached) $ac_c" 1>&6
5062 else
5063   cat > conftest.$ac_ext <<EOF
5064 #line 5065 "configure"
5065 #include "confdefs.h"
5066 /* System header to define __stub macros and hopefully few prototypes,
5067     which can conflict with char $ac_func(); below.  */
5068 #include <assert.h>
5069 /* Override any gcc2 internal prototype to avoid an error.  */
5070 /* We use char because int might match the return type of a gcc2
5071     builtin and then its argument prototype would still apply.  */
5072 char $ac_func();
5073
5074 int main() {
5075
5076 /* The GNU C library defines this for functions which it implements
5077     to always fail with ENOSYS.  Some functions are actually named
5078     something starting with __ and the normal name is an alias.  */
5079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5080 choke me
5081 #else
5082 $ac_func();
5083 #endif
5084
5085 ; return 0; }
5086 EOF
5087 if { (eval echo configure:5088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5088   rm -rf conftest*
5089   eval "ac_cv_func_$ac_func=yes"
5090 else
5091   echo "configure: failed program was:" >&5
5092   cat conftest.$ac_ext >&5
5093   rm -rf conftest*
5094   eval "ac_cv_func_$ac_func=no"
5095 fi
5096 rm -f conftest*
5097 fi
5098
5099 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5100   echo "$ac_t""yes" 1>&6
5101     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5102   cat >> confdefs.h <<EOF
5103 #define $ac_tr_func 1
5104 EOF
5105  
5106 else
5107   echo "$ac_t""no" 1>&6
5108 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5109 fi
5110 done
5111
5112
5113
5114           USE_COMPLEX_LONG_DOUBLE=no
5115   if test x$ac_cv_func_copysignl = x"yes"; then
5116     USE_COMPLEX_LONG_DOUBLE=yes
5117     for ac_func in signbitl
5118 do
5119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5120 echo "configure:5121: checking for $ac_func" >&5
5121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5122   echo $ac_n "(cached) $ac_c" 1>&6
5123 else
5124   cat > conftest.$ac_ext <<EOF
5125 #line 5126 "configure"
5126 #include "confdefs.h"
5127 /* System header to define __stub macros and hopefully few prototypes,
5128     which can conflict with char $ac_func(); below.  */
5129 #include <assert.h>
5130 /* Override any gcc2 internal prototype to avoid an error.  */
5131 /* We use char because int might match the return type of a gcc2
5132     builtin and then its argument prototype would still apply.  */
5133 char $ac_func();
5134
5135 int main() {
5136
5137 /* The GNU C library defines this for functions which it implements
5138     to always fail with ENOSYS.  Some functions are actually named
5139     something starting with __ and the normal name is an alias.  */
5140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5141 choke me
5142 #else
5143 $ac_func();
5144 #endif
5145
5146 ; return 0; }
5147 EOF
5148 if { (eval echo configure:5149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5149   rm -rf conftest*
5150   eval "ac_cv_func_$ac_func=yes"
5151 else
5152   echo "configure: failed program was:" >&5
5153   cat conftest.$ac_ext >&5
5154   rm -rf conftest*
5155   eval "ac_cv_func_$ac_func=no"
5156 fi
5157 rm -f conftest*
5158 fi
5159
5160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5161   echo "$ac_t""yes" 1>&6
5162     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5163   cat >> confdefs.h <<EOF
5164 #define $ac_tr_func 1
5165 EOF
5166  
5167 else
5168   echo "$ac_t""no" 1>&6
5169 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5170 fi
5171 done
5172
5173
5174   fi
5175
5176   
5177
5178       
5179
5180       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5181 echo "configure:5182: checking for mbstate_t" >&5
5182   cat > conftest.$ac_ext <<EOF
5183 #line 5184 "configure"
5184 #include "confdefs.h"
5185 #include <wchar.h>
5186 int main() {
5187 mbstate_t teststate;
5188 ; return 0; }
5189 EOF
5190 if { (eval echo configure:5191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5191   rm -rf conftest*
5192   have_mbstate_t=yes
5193 else
5194   echo "configure: failed program was:" >&5
5195   cat conftest.$ac_ext >&5
5196   rm -rf conftest*
5197   have_mbstate_t=no
5198 fi
5199 rm -f conftest*
5200   echo "$ac_t""$have_mbstate_t" 1>&6
5201   if test x"$have_mbstate_t" = xyes; then
5202     cat >> confdefs.h <<\EOF
5203 #define HAVE_MBSTATE_T 1
5204 EOF
5205
5206   fi
5207
5208     for ac_hdr in wchar.h
5209 do
5210 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5211 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5212 echo "configure:5213: checking for $ac_hdr" >&5
5213 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5214   echo $ac_n "(cached) $ac_c" 1>&6
5215 else
5216   cat > conftest.$ac_ext <<EOF
5217 #line 5218 "configure"
5218 #include "confdefs.h"
5219 #include <$ac_hdr>
5220 EOF
5221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5222 { (eval echo configure:5223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5223 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5224 if test -z "$ac_err"; then
5225   rm -rf conftest*
5226   eval "ac_cv_header_$ac_safe=yes"
5227 else
5228   echo "$ac_err" >&5
5229   echo "configure: failed program was:" >&5
5230   cat conftest.$ac_ext >&5
5231   rm -rf conftest*
5232   eval "ac_cv_header_$ac_safe=no"
5233 fi
5234 rm -f conftest*
5235 fi
5236 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5237   echo "$ac_t""yes" 1>&6
5238     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5239   cat >> confdefs.h <<EOF
5240 #define $ac_tr_hdr 1
5241 EOF
5242  ac_has_wchar_h=yes
5243 else
5244   echo "$ac_t""no" 1>&6
5245 ac_has_wchar_h=no
5246 fi
5247 done
5248
5249   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
5250 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
5251 echo "configure:5252: checking for wctype.h" >&5
5252 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5253   echo $ac_n "(cached) $ac_c" 1>&6
5254 else
5255   cat > conftest.$ac_ext <<EOF
5256 #line 5257 "configure"
5257 #include "confdefs.h"
5258 #include <wctype.h>
5259 EOF
5260 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5261 { (eval echo configure:5262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5262 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5263 if test -z "$ac_err"; then
5264   rm -rf conftest*
5265   eval "ac_cv_header_$ac_safe=yes"
5266 else
5267   echo "$ac_err" >&5
5268   echo "configure: failed program was:" >&5
5269   cat conftest.$ac_ext >&5
5270   rm -rf conftest*
5271   eval "ac_cv_header_$ac_safe=no"
5272 fi
5273 rm -f conftest*
5274 fi
5275 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5276   echo "$ac_t""yes" 1>&6
5277   ac_has_wctype_h=yes
5278 else
5279   echo "$ac_t""no" 1>&6
5280 ac_has_wctype_h=no
5281 fi
5282
5283   
5284     if test x"$ac_has_wchar_h" = xyes &&
5285      test x"$ac_has_wctype_h" = xyes &&
5286      test x"$enable_c_mbchar" != xno; then
5287       
5288             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5289 echo "configure:5290: checking for WCHAR_MIN and WCHAR_MAX" >&5
5290     cat > conftest.$ac_ext <<EOF
5291 #line 5292 "configure"
5292 #include "confdefs.h"
5293 #include <wchar.h>
5294 int main() {
5295 int i = WCHAR_MIN; int j = WCHAR_MAX;
5296 ; return 0; }
5297 EOF
5298 if { (eval echo configure:5299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5299   rm -rf conftest*
5300   has_wchar_minmax=yes
5301 else
5302   echo "configure: failed program was:" >&5
5303   cat conftest.$ac_ext >&5
5304   rm -rf conftest*
5305   has_wchar_minmax=no
5306 fi
5307 rm -f conftest*
5308     echo "$ac_t""$has_wchar_minmax" 1>&6
5309     
5310             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5311 echo "configure:5312: checking for WEOF" >&5
5312     cat > conftest.$ac_ext <<EOF
5313 #line 5314 "configure"
5314 #include "confdefs.h"
5315
5316       #include <wchar.h>
5317       #include <stddef.h>
5318 int main() {
5319 wint_t i = WEOF;
5320 ; return 0; }
5321 EOF
5322 if { (eval echo configure:5323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5323   rm -rf conftest*
5324   has_weof=yes
5325 else
5326   echo "configure: failed program was:" >&5
5327   cat conftest.$ac_ext >&5
5328   rm -rf conftest*
5329   has_weof=no
5330 fi
5331 rm -f conftest*
5332     echo "$ac_t""$has_weof" 1>&6
5333   
5334         ac_wfuncs=yes
5335     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5336 do
5337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5338 echo "configure:5339: checking for $ac_func" >&5
5339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5340   echo $ac_n "(cached) $ac_c" 1>&6
5341 else
5342   cat > conftest.$ac_ext <<EOF
5343 #line 5344 "configure"
5344 #include "confdefs.h"
5345 /* System header to define __stub macros and hopefully few prototypes,
5346     which can conflict with char $ac_func(); below.  */
5347 #include <assert.h>
5348 /* Override any gcc2 internal prototype to avoid an error.  */
5349 /* We use char because int might match the return type of a gcc2
5350     builtin and then its argument prototype would still apply.  */
5351 char $ac_func();
5352
5353 int main() {
5354
5355 /* The GNU C library defines this for functions which it implements
5356     to always fail with ENOSYS.  Some functions are actually named
5357     something starting with __ and the normal name is an alias.  */
5358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5359 choke me
5360 #else
5361 $ac_func();
5362 #endif
5363
5364 ; return 0; }
5365 EOF
5366 if { (eval echo configure:5367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5367   rm -rf conftest*
5368   eval "ac_cv_func_$ac_func=yes"
5369 else
5370   echo "configure: failed program was:" >&5
5371   cat conftest.$ac_ext >&5
5372   rm -rf conftest*
5373   eval "ac_cv_func_$ac_func=no"
5374 fi
5375 rm -f conftest*
5376 fi
5377
5378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5379   echo "$ac_t""yes" 1>&6
5380     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5381   cat >> confdefs.h <<EOF
5382 #define $ac_tr_func 1
5383 EOF
5384  
5385 else
5386   echo "$ac_t""no" 1>&6
5387 \
5388     ac_wfuncs=no
5389 fi
5390 done
5391
5392   
5393         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5394     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5395     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5396     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5397     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5398     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5399 do
5400 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5401 echo "configure:5402: checking for $ac_func" >&5
5402 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5403   echo $ac_n "(cached) $ac_c" 1>&6
5404 else
5405   cat > conftest.$ac_ext <<EOF
5406 #line 5407 "configure"
5407 #include "confdefs.h"
5408 /* System header to define __stub macros and hopefully few prototypes,
5409     which can conflict with char $ac_func(); below.  */
5410 #include <assert.h>
5411 /* Override any gcc2 internal prototype to avoid an error.  */
5412 /* We use char because int might match the return type of a gcc2
5413     builtin and then its argument prototype would still apply.  */
5414 char $ac_func();
5415
5416 int main() {
5417
5418 /* The GNU C library defines this for functions which it implements
5419     to always fail with ENOSYS.  Some functions are actually named
5420     something starting with __ and the normal name is an alias.  */
5421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5422 choke me
5423 #else
5424 $ac_func();
5425 #endif
5426
5427 ; return 0; }
5428 EOF
5429 if { (eval echo configure:5430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5430   rm -rf conftest*
5431   eval "ac_cv_func_$ac_func=yes"
5432 else
5433   echo "configure: failed program was:" >&5
5434   cat conftest.$ac_ext >&5
5435   rm -rf conftest*
5436   eval "ac_cv_func_$ac_func=no"
5437 fi
5438 rm -f conftest*
5439 fi
5440
5441 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5442   echo "$ac_t""yes" 1>&6
5443     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5444   cat >> confdefs.h <<EOF
5445 #define $ac_tr_func 1
5446 EOF
5447  
5448 else
5449   echo "$ac_t""no" 1>&6
5450 \
5451     ac_wfuncs=no
5452 fi
5453 done
5454
5455
5456     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5457 echo "configure:5458: checking for ISO C99 wchar_t support" >&5
5458     if test x"$has_weof" = xyes &&
5459        test x"$has_wchar_minmax" = xyes &&
5460        test x"$ac_wfuncs" = xyes; then
5461       ac_isoC99_wchar_t=yes
5462     else
5463       ac_isoC99_wchar_t=no
5464     fi
5465     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5466   
5467             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5468 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5469 echo "configure:5470: checking for iconv.h" >&5
5470 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5471   echo $ac_n "(cached) $ac_c" 1>&6
5472 else
5473   cat > conftest.$ac_ext <<EOF
5474 #line 5475 "configure"
5475 #include "confdefs.h"
5476 #include <iconv.h>
5477 EOF
5478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5479 { (eval echo configure:5480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5480 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5481 if test -z "$ac_err"; then
5482   rm -rf conftest*
5483   eval "ac_cv_header_$ac_safe=yes"
5484 else
5485   echo "$ac_err" >&5
5486   echo "configure: failed program was:" >&5
5487   cat conftest.$ac_ext >&5
5488   rm -rf conftest*
5489   eval "ac_cv_header_$ac_safe=no"
5490 fi
5491 rm -f conftest*
5492 fi
5493 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5494   echo "$ac_t""yes" 1>&6
5495   ac_has_iconv_h=yes
5496 else
5497   echo "$ac_t""no" 1>&6
5498 ac_has_iconv_h=no
5499 fi
5500
5501     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5502 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5503 echo "configure:5504: checking for langinfo.h" >&5
5504 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5505   echo $ac_n "(cached) $ac_c" 1>&6
5506 else
5507   cat > conftest.$ac_ext <<EOF
5508 #line 5509 "configure"
5509 #include "confdefs.h"
5510 #include <langinfo.h>
5511 EOF
5512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5513 { (eval echo configure:5514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5515 if test -z "$ac_err"; then
5516   rm -rf conftest*
5517   eval "ac_cv_header_$ac_safe=yes"
5518 else
5519   echo "$ac_err" >&5
5520   echo "configure: failed program was:" >&5
5521   cat conftest.$ac_ext >&5
5522   rm -rf conftest*
5523   eval "ac_cv_header_$ac_safe=no"
5524 fi
5525 rm -f conftest*
5526 fi
5527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5528   echo "$ac_t""yes" 1>&6
5529   ac_has_langinfo_h=yes
5530 else
5531   echo "$ac_t""no" 1>&6
5532 ac_has_langinfo_h=no
5533 fi
5534
5535
5536         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5537 echo "configure:5538: checking for iconv in -liconv" >&5
5538 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5539 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5540   echo $ac_n "(cached) $ac_c" 1>&6
5541 else
5542   ac_save_LIBS="$LIBS"
5543 LIBS="-liconv  $LIBS"
5544 cat > conftest.$ac_ext <<EOF
5545 #line 5546 "configure"
5546 #include "confdefs.h"
5547 /* Override any gcc2 internal prototype to avoid an error.  */
5548 /* We use char because int might match the return type of a gcc2
5549     builtin and then its argument prototype would still apply.  */
5550 char iconv();
5551
5552 int main() {
5553 iconv()
5554 ; return 0; }
5555 EOF
5556 if { (eval echo configure:5557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5557   rm -rf conftest*
5558   eval "ac_cv_lib_$ac_lib_var=yes"
5559 else
5560   echo "configure: failed program was:" >&5
5561   cat conftest.$ac_ext >&5
5562   rm -rf conftest*
5563   eval "ac_cv_lib_$ac_lib_var=no"
5564 fi
5565 rm -f conftest*
5566 LIBS="$ac_save_LIBS"
5567
5568 fi
5569 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5570   echo "$ac_t""yes" 1>&6
5571   libiconv="-liconv"
5572 else
5573   echo "$ac_t""no" 1>&6
5574 fi
5575
5576     ac_save_LIBS="$LIBS"
5577     LIBS="$LIBS $libiconv"
5578
5579     for ac_func in iconv_open iconv_close iconv nl_langinfo
5580 do
5581 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5582 echo "configure:5583: checking for $ac_func" >&5
5583 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5584   echo $ac_n "(cached) $ac_c" 1>&6
5585 else
5586   cat > conftest.$ac_ext <<EOF
5587 #line 5588 "configure"
5588 #include "confdefs.h"
5589 /* System header to define __stub macros and hopefully few prototypes,
5590     which can conflict with char $ac_func(); below.  */
5591 #include <assert.h>
5592 /* Override any gcc2 internal prototype to avoid an error.  */
5593 /* We use char because int might match the return type of a gcc2
5594     builtin and then its argument prototype would still apply.  */
5595 char $ac_func();
5596
5597 int main() {
5598
5599 /* The GNU C library defines this for functions which it implements
5600     to always fail with ENOSYS.  Some functions are actually named
5601     something starting with __ and the normal name is an alias.  */
5602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5603 choke me
5604 #else
5605 $ac_func();
5606 #endif
5607
5608 ; return 0; }
5609 EOF
5610 if { (eval echo configure:5611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5611   rm -rf conftest*
5612   eval "ac_cv_func_$ac_func=yes"
5613 else
5614   echo "configure: failed program was:" >&5
5615   cat conftest.$ac_ext >&5
5616   rm -rf conftest*
5617   eval "ac_cv_func_$ac_func=no"
5618 fi
5619 rm -f conftest*
5620 fi
5621
5622 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5623   echo "$ac_t""yes" 1>&6
5624     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5625   cat >> confdefs.h <<EOF
5626 #define $ac_tr_func 1
5627 EOF
5628  \
5629     ac_XPG2funcs=yes
5630 else
5631   echo "$ac_t""no" 1>&6
5632 ac_XPG2funcs=no
5633 fi
5634 done
5635
5636   
5637     LIBS="$ac_save_LIBS"
5638
5639     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5640 echo "configure:5641: checking for XPG2 wchar_t support" >&5
5641     if test x"$ac_has_iconv_h" = xyes &&
5642        test x"$ac_has_langinfo_h" = xyes &&
5643        test x"$ac_XPG2funcs" = xyes; then
5644       ac_XPG2_wchar_t=yes
5645     else
5646       ac_XPG2_wchar_t=no
5647     fi
5648     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5649   
5650             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5651 echo "configure:5652: checking for enabled wchar_t specializations" >&5
5652     if test x"$ac_isoC99_wchar_t" = xyes &&
5653        test x"$ac_XPG2_wchar_t" = xyes; then
5654       cat >> confdefs.h <<\EOF
5655 #define _GLIBCPP_USE_WCHAR_T 1
5656 EOF
5657
5658       echo "$ac_t"""yes"" 1>&6
5659     else
5660       echo "$ac_t"""no"" 1>&6
5661     fi
5662   else
5663         echo "configure: warning: wchar_t support disabled." 1>&2
5664   fi
5665
5666       os_include_dir="config/os/hpux"
5667       cat >> confdefs.h <<\EOF
5668 #define HAVE_COPYSIGN 1
5669 EOF
5670
5671       cat >> confdefs.h <<\EOF
5672 #define HAVE_COPYSIGNF 1
5673 EOF
5674
5675       cat >> confdefs.h <<\EOF
5676 #define HAVE_FINITEF 1
5677 EOF
5678
5679       cat >> confdefs.h <<\EOF
5680 #define HAVE_FREXPF 1
5681 EOF
5682
5683       cat >> confdefs.h <<\EOF
5684 #define HAVE_HYPOT 1
5685 EOF
5686
5687       cat >> confdefs.h <<\EOF
5688 #define HAVE_SINCOS 1
5689 EOF
5690
5691       cat >> confdefs.h <<\EOF
5692 #define HAVE_SINCOSF 1
5693 EOF
5694
5695       ;;
5696     *-netbsd*)
5697       # Check for available headers.
5698       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5699         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5700         fp.h locale.h float.h inttypes.h
5701 do
5702 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5703 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5704 echo "configure:5705: checking for $ac_hdr" >&5
5705 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5706   echo $ac_n "(cached) $ac_c" 1>&6
5707 else
5708   cat > conftest.$ac_ext <<EOF
5709 #line 5710 "configure"
5710 #include "confdefs.h"
5711 #include <$ac_hdr>
5712 EOF
5713 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5714 { (eval echo configure:5715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5715 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5716 if test -z "$ac_err"; then
5717   rm -rf conftest*
5718   eval "ac_cv_header_$ac_safe=yes"
5719 else
5720   echo "$ac_err" >&5
5721   echo "configure: failed program was:" >&5
5722   cat conftest.$ac_ext >&5
5723   rm -rf conftest*
5724   eval "ac_cv_header_$ac_safe=no"
5725 fi
5726 rm -f conftest*
5727 fi
5728 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5729   echo "$ac_t""yes" 1>&6
5730     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5731   cat >> confdefs.h <<EOF
5732 #define $ac_tr_hdr 1
5733 EOF
5734  
5735 else
5736   echo "$ac_t""no" 1>&6
5737 fi
5738 done
5739
5740       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5741        
5742       
5743   # If we're not using GNU ld, then there's no point in even trying these
5744   # tests.  Check for that first.  We should have already tested for gld
5745   # by now (in libtool), but require it now just to be safe...
5746   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5747   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5748   
5749
5750   # The name set by libtool depends on the version of libtool.  Shame on us
5751   # for depending on an impl detail, but c'est la vie.  Older versions used
5752   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5753   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5754   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5755   # set (hence we're using an older libtool), then set it.
5756   if test x${with_gnu_ld+set} != xset; then
5757     if test x${ac_cv_prog_gnu_ld+set} != xset; then
5758       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5759       with_gnu_ld=no
5760     else
5761       with_gnu_ld=$ac_cv_prog_gnu_ld
5762     fi
5763   fi
5764
5765   # Start by getting the version number.  I think the libtool test already
5766   # does some of this, but throws away the result.
5767   
5768   ldver=`$LD --version 2>/dev/null | head -1 | \
5769          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5770   
5771   glibcpp_gnu_ld_version=`echo $ldver | \
5772          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5773
5774   # Set --gc-sections.
5775   if test "$with_gnu_ld" = "notbroken"; then
5776     # GNU ld it is!  Joy and bunny rabbits!
5777
5778     # All these tests are for C++; save the language and the compiler flags.
5779     # Need to do this so that g++ won't try to link in libstdc++
5780     ac_test_CFLAGS="${CFLAGS+set}"
5781     ac_save_CFLAGS="$CFLAGS"
5782     CFLAGS='-x c++  -Wl,--gc-sections'
5783
5784     # Check for -Wl,--gc-sections
5785     # XXX This test is broken at the moment, as symbols required for
5786     # linking are now in libsupc++ (not built yet.....). In addition, 
5787     # this test has cored on solaris in the past. In addition,
5788     # --gc-sections doesn't really work at the moment (keeps on discarding
5789     # used sections, first .eh_frame and now some of the glibc sections for
5790     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5791     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5792 echo "configure:5793: checking for ld that supports -Wl,--gc-sections" >&5
5793     if test "$cross_compiling" = yes; then
5794   ac_sectionLDflags=yes
5795 else
5796   cat > conftest.$ac_ext <<EOF
5797 #line 5798 "configure"
5798 #include "confdefs.h"
5799
5800      int main(void) 
5801      {
5802        try { throw 1; }
5803        catch (...) { };
5804        return 0;
5805      }
5806     
5807 EOF
5808 if { (eval echo configure:5809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5809 then
5810   ac_sectionLDflags=yes
5811 else
5812   echo "configure: failed program was:" >&5
5813   cat conftest.$ac_ext >&5
5814   rm -fr conftest*
5815   ac_sectionLDflags=no
5816 fi
5817 rm -fr conftest*
5818 fi
5819
5820     if test "$ac_test_CFLAGS" = set; then
5821       CFLAGS="$ac_save_CFLAGS"
5822     else
5823       # this is the suspicious part
5824       CFLAGS=''
5825     fi
5826     if test "$ac_sectionLDflags" = "yes"; then
5827       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5828     fi
5829     echo "$ac_t""$ac_sectionLDflags" 1>&6
5830   fi
5831
5832   # Set linker optimization flags.
5833   if test x"$with_gnu_ld" = x"yes" &&
5834      test x"$enable_debug" = x"no"; then
5835     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5836   fi
5837
5838   
5839   
5840
5841       
5842     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5843 echo "configure:5844: checking for main in -lm" >&5
5844 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5845 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5846   echo $ac_n "(cached) $ac_c" 1>&6
5847 else
5848   ac_save_LIBS="$LIBS"
5849 LIBS="-lm  $LIBS"
5850 cat > conftest.$ac_ext <<EOF
5851 #line 5852 "configure"
5852 #include "confdefs.h"
5853
5854 int main() {
5855 main()
5856 ; return 0; }
5857 EOF
5858 if { (eval echo configure:5859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5859   rm -rf conftest*
5860   eval "ac_cv_lib_$ac_lib_var=yes"
5861 else
5862   echo "configure: failed program was:" >&5
5863   cat conftest.$ac_ext >&5
5864   rm -rf conftest*
5865   eval "ac_cv_lib_$ac_lib_var=no"
5866 fi
5867 rm -f conftest*
5868 LIBS="$ac_save_LIBS"
5869
5870 fi
5871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5872   echo "$ac_t""yes" 1>&6
5873     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5874     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5875   cat >> confdefs.h <<EOF
5876 #define $ac_tr_lib 1
5877 EOF
5878
5879   LIBS="-lm $LIBS"
5880
5881 else
5882   echo "$ac_t""no" 1>&6
5883 fi
5884
5885   for ac_func in nan copysignf
5886 do
5887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5888 echo "configure:5889: checking for $ac_func" >&5
5889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5890   echo $ac_n "(cached) $ac_c" 1>&6
5891 else
5892   cat > conftest.$ac_ext <<EOF
5893 #line 5894 "configure"
5894 #include "confdefs.h"
5895 /* System header to define __stub macros and hopefully few prototypes,
5896     which can conflict with char $ac_func(); below.  */
5897 #include <assert.h>
5898 /* Override any gcc2 internal prototype to avoid an error.  */
5899 /* We use char because int might match the return type of a gcc2
5900     builtin and then its argument prototype would still apply.  */
5901 char $ac_func();
5902
5903 int main() {
5904
5905 /* The GNU C library defines this for functions which it implements
5906     to always fail with ENOSYS.  Some functions are actually named
5907     something starting with __ and the normal name is an alias.  */
5908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5909 choke me
5910 #else
5911 $ac_func();
5912 #endif
5913
5914 ; return 0; }
5915 EOF
5916 if { (eval echo configure:5917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5917   rm -rf conftest*
5918   eval "ac_cv_func_$ac_func=yes"
5919 else
5920   echo "configure: failed program was:" >&5
5921   cat conftest.$ac_ext >&5
5922   rm -rf conftest*
5923   eval "ac_cv_func_$ac_func=no"
5924 fi
5925 rm -f conftest*
5926 fi
5927
5928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5929   echo "$ac_t""yes" 1>&6
5930     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5931   cat >> confdefs.h <<EOF
5932 #define $ac_tr_func 1
5933 EOF
5934  
5935 else
5936   echo "$ac_t""no" 1>&6
5937 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5938 fi
5939 done
5940
5941
5942
5943           USE_COMPLEX_LONG_DOUBLE=no
5944   if test x$ac_cv_func_copysignl = x"yes"; then
5945     USE_COMPLEX_LONG_DOUBLE=yes
5946     for ac_func in signbitl
5947 do
5948 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5949 echo "configure:5950: checking for $ac_func" >&5
5950 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5951   echo $ac_n "(cached) $ac_c" 1>&6
5952 else
5953   cat > conftest.$ac_ext <<EOF
5954 #line 5955 "configure"
5955 #include "confdefs.h"
5956 /* System header to define __stub macros and hopefully few prototypes,
5957     which can conflict with char $ac_func(); below.  */
5958 #include <assert.h>
5959 /* Override any gcc2 internal prototype to avoid an error.  */
5960 /* We use char because int might match the return type of a gcc2
5961     builtin and then its argument prototype would still apply.  */
5962 char $ac_func();
5963
5964 int main() {
5965
5966 /* The GNU C library defines this for functions which it implements
5967     to always fail with ENOSYS.  Some functions are actually named
5968     something starting with __ and the normal name is an alias.  */
5969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5970 choke me
5971 #else
5972 $ac_func();
5973 #endif
5974
5975 ; return 0; }
5976 EOF
5977 if { (eval echo configure:5978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5978   rm -rf conftest*
5979   eval "ac_cv_func_$ac_func=yes"
5980 else
5981   echo "configure: failed program was:" >&5
5982   cat conftest.$ac_ext >&5
5983   rm -rf conftest*
5984   eval "ac_cv_func_$ac_func=no"
5985 fi
5986 rm -f conftest*
5987 fi
5988
5989 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5990   echo "$ac_t""yes" 1>&6
5991     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5992   cat >> confdefs.h <<EOF
5993 #define $ac_tr_func 1
5994 EOF
5995  
5996 else
5997   echo "$ac_t""no" 1>&6
5998 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5999 fi
6000 done
6001
6002
6003   fi
6004
6005   
6006
6007       
6008
6009       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6010 echo "configure:6011: checking for mbstate_t" >&5
6011   cat > conftest.$ac_ext <<EOF
6012 #line 6013 "configure"
6013 #include "confdefs.h"
6014 #include <wchar.h>
6015 int main() {
6016 mbstate_t teststate;
6017 ; return 0; }
6018 EOF
6019 if { (eval echo configure:6020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6020   rm -rf conftest*
6021   have_mbstate_t=yes
6022 else
6023   echo "configure: failed program was:" >&5
6024   cat conftest.$ac_ext >&5
6025   rm -rf conftest*
6026   have_mbstate_t=no
6027 fi
6028 rm -f conftest*
6029   echo "$ac_t""$have_mbstate_t" 1>&6
6030   if test x"$have_mbstate_t" = xyes; then
6031     cat >> confdefs.h <<\EOF
6032 #define HAVE_MBSTATE_T 1
6033 EOF
6034
6035   fi
6036
6037     for ac_hdr in wchar.h
6038 do
6039 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6040 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6041 echo "configure:6042: checking for $ac_hdr" >&5
6042 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6043   echo $ac_n "(cached) $ac_c" 1>&6
6044 else
6045   cat > conftest.$ac_ext <<EOF
6046 #line 6047 "configure"
6047 #include "confdefs.h"
6048 #include <$ac_hdr>
6049 EOF
6050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6051 { (eval echo configure:6052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6053 if test -z "$ac_err"; then
6054   rm -rf conftest*
6055   eval "ac_cv_header_$ac_safe=yes"
6056 else
6057   echo "$ac_err" >&5
6058   echo "configure: failed program was:" >&5
6059   cat conftest.$ac_ext >&5
6060   rm -rf conftest*
6061   eval "ac_cv_header_$ac_safe=no"
6062 fi
6063 rm -f conftest*
6064 fi
6065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6066   echo "$ac_t""yes" 1>&6
6067     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6068   cat >> confdefs.h <<EOF
6069 #define $ac_tr_hdr 1
6070 EOF
6071  ac_has_wchar_h=yes
6072 else
6073   echo "$ac_t""no" 1>&6
6074 ac_has_wchar_h=no
6075 fi
6076 done
6077
6078   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
6079 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
6080 echo "configure:6081: checking for wctype.h" >&5
6081 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6082   echo $ac_n "(cached) $ac_c" 1>&6
6083 else
6084   cat > conftest.$ac_ext <<EOF
6085 #line 6086 "configure"
6086 #include "confdefs.h"
6087 #include <wctype.h>
6088 EOF
6089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6090 { (eval echo configure:6091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6091 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6092 if test -z "$ac_err"; then
6093   rm -rf conftest*
6094   eval "ac_cv_header_$ac_safe=yes"
6095 else
6096   echo "$ac_err" >&5
6097   echo "configure: failed program was:" >&5
6098   cat conftest.$ac_ext >&5
6099   rm -rf conftest*
6100   eval "ac_cv_header_$ac_safe=no"
6101 fi
6102 rm -f conftest*
6103 fi
6104 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6105   echo "$ac_t""yes" 1>&6
6106   ac_has_wctype_h=yes
6107 else
6108   echo "$ac_t""no" 1>&6
6109 ac_has_wctype_h=no
6110 fi
6111
6112   
6113     if test x"$ac_has_wchar_h" = xyes &&
6114      test x"$ac_has_wctype_h" = xyes &&
6115      test x"$enable_c_mbchar" != xno; then
6116       
6117             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6118 echo "configure:6119: checking for WCHAR_MIN and WCHAR_MAX" >&5
6119     cat > conftest.$ac_ext <<EOF
6120 #line 6121 "configure"
6121 #include "confdefs.h"
6122 #include <wchar.h>
6123 int main() {
6124 int i = WCHAR_MIN; int j = WCHAR_MAX;
6125 ; return 0; }
6126 EOF
6127 if { (eval echo configure:6128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6128   rm -rf conftest*
6129   has_wchar_minmax=yes
6130 else
6131   echo "configure: failed program was:" >&5
6132   cat conftest.$ac_ext >&5
6133   rm -rf conftest*
6134   has_wchar_minmax=no
6135 fi
6136 rm -f conftest*
6137     echo "$ac_t""$has_wchar_minmax" 1>&6
6138     
6139             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6140 echo "configure:6141: checking for WEOF" >&5
6141     cat > conftest.$ac_ext <<EOF
6142 #line 6143 "configure"
6143 #include "confdefs.h"
6144
6145       #include <wchar.h>
6146       #include <stddef.h>
6147 int main() {
6148 wint_t i = WEOF;
6149 ; return 0; }
6150 EOF
6151 if { (eval echo configure:6152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6152   rm -rf conftest*
6153   has_weof=yes
6154 else
6155   echo "configure: failed program was:" >&5
6156   cat conftest.$ac_ext >&5
6157   rm -rf conftest*
6158   has_weof=no
6159 fi
6160 rm -f conftest*
6161     echo "$ac_t""$has_weof" 1>&6
6162   
6163         ac_wfuncs=yes
6164     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6165 do
6166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6167 echo "configure:6168: checking for $ac_func" >&5
6168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6169   echo $ac_n "(cached) $ac_c" 1>&6
6170 else
6171   cat > conftest.$ac_ext <<EOF
6172 #line 6173 "configure"
6173 #include "confdefs.h"
6174 /* System header to define __stub macros and hopefully few prototypes,
6175     which can conflict with char $ac_func(); below.  */
6176 #include <assert.h>
6177 /* Override any gcc2 internal prototype to avoid an error.  */
6178 /* We use char because int might match the return type of a gcc2
6179     builtin and then its argument prototype would still apply.  */
6180 char $ac_func();
6181
6182 int main() {
6183
6184 /* The GNU C library defines this for functions which it implements
6185     to always fail with ENOSYS.  Some functions are actually named
6186     something starting with __ and the normal name is an alias.  */
6187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6188 choke me
6189 #else
6190 $ac_func();
6191 #endif
6192
6193 ; return 0; }
6194 EOF
6195 if { (eval echo configure:6196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6196   rm -rf conftest*
6197   eval "ac_cv_func_$ac_func=yes"
6198 else
6199   echo "configure: failed program was:" >&5
6200   cat conftest.$ac_ext >&5
6201   rm -rf conftest*
6202   eval "ac_cv_func_$ac_func=no"
6203 fi
6204 rm -f conftest*
6205 fi
6206
6207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6208   echo "$ac_t""yes" 1>&6
6209     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6210   cat >> confdefs.h <<EOF
6211 #define $ac_tr_func 1
6212 EOF
6213  
6214 else
6215   echo "$ac_t""no" 1>&6
6216 \
6217     ac_wfuncs=no
6218 fi
6219 done
6220
6221   
6222         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6223     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6224     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6225     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6226     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6227     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6228 do
6229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6230 echo "configure:6231: checking for $ac_func" >&5
6231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6232   echo $ac_n "(cached) $ac_c" 1>&6
6233 else
6234   cat > conftest.$ac_ext <<EOF
6235 #line 6236 "configure"
6236 #include "confdefs.h"
6237 /* System header to define __stub macros and hopefully few prototypes,
6238     which can conflict with char $ac_func(); below.  */
6239 #include <assert.h>
6240 /* Override any gcc2 internal prototype to avoid an error.  */
6241 /* We use char because int might match the return type of a gcc2
6242     builtin and then its argument prototype would still apply.  */
6243 char $ac_func();
6244
6245 int main() {
6246
6247 /* The GNU C library defines this for functions which it implements
6248     to always fail with ENOSYS.  Some functions are actually named
6249     something starting with __ and the normal name is an alias.  */
6250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6251 choke me
6252 #else
6253 $ac_func();
6254 #endif
6255
6256 ; return 0; }
6257 EOF
6258 if { (eval echo configure:6259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6259   rm -rf conftest*
6260   eval "ac_cv_func_$ac_func=yes"
6261 else
6262   echo "configure: failed program was:" >&5
6263   cat conftest.$ac_ext >&5
6264   rm -rf conftest*
6265   eval "ac_cv_func_$ac_func=no"
6266 fi
6267 rm -f conftest*
6268 fi
6269
6270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6271   echo "$ac_t""yes" 1>&6
6272     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6273   cat >> confdefs.h <<EOF
6274 #define $ac_tr_func 1
6275 EOF
6276  
6277 else
6278   echo "$ac_t""no" 1>&6
6279 \
6280     ac_wfuncs=no
6281 fi
6282 done
6283
6284
6285     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6286 echo "configure:6287: checking for ISO C99 wchar_t support" >&5
6287     if test x"$has_weof" = xyes &&
6288        test x"$has_wchar_minmax" = xyes &&
6289        test x"$ac_wfuncs" = xyes; then
6290       ac_isoC99_wchar_t=yes
6291     else
6292       ac_isoC99_wchar_t=no
6293     fi
6294     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6295   
6296             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6297 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6298 echo "configure:6299: checking for iconv.h" >&5
6299 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6300   echo $ac_n "(cached) $ac_c" 1>&6
6301 else
6302   cat > conftest.$ac_ext <<EOF
6303 #line 6304 "configure"
6304 #include "confdefs.h"
6305 #include <iconv.h>
6306 EOF
6307 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6308 { (eval echo configure:6309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6309 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6310 if test -z "$ac_err"; then
6311   rm -rf conftest*
6312   eval "ac_cv_header_$ac_safe=yes"
6313 else
6314   echo "$ac_err" >&5
6315   echo "configure: failed program was:" >&5
6316   cat conftest.$ac_ext >&5
6317   rm -rf conftest*
6318   eval "ac_cv_header_$ac_safe=no"
6319 fi
6320 rm -f conftest*
6321 fi
6322 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6323   echo "$ac_t""yes" 1>&6
6324   ac_has_iconv_h=yes
6325 else
6326   echo "$ac_t""no" 1>&6
6327 ac_has_iconv_h=no
6328 fi
6329
6330     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6331 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6332 echo "configure:6333: checking for langinfo.h" >&5
6333 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6334   echo $ac_n "(cached) $ac_c" 1>&6
6335 else
6336   cat > conftest.$ac_ext <<EOF
6337 #line 6338 "configure"
6338 #include "confdefs.h"
6339 #include <langinfo.h>
6340 EOF
6341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6342 { (eval echo configure:6343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6344 if test -z "$ac_err"; then
6345   rm -rf conftest*
6346   eval "ac_cv_header_$ac_safe=yes"
6347 else
6348   echo "$ac_err" >&5
6349   echo "configure: failed program was:" >&5
6350   cat conftest.$ac_ext >&5
6351   rm -rf conftest*
6352   eval "ac_cv_header_$ac_safe=no"
6353 fi
6354 rm -f conftest*
6355 fi
6356 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6357   echo "$ac_t""yes" 1>&6
6358   ac_has_langinfo_h=yes
6359 else
6360   echo "$ac_t""no" 1>&6
6361 ac_has_langinfo_h=no
6362 fi
6363
6364
6365         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6366 echo "configure:6367: checking for iconv in -liconv" >&5
6367 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6368 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6369   echo $ac_n "(cached) $ac_c" 1>&6
6370 else
6371   ac_save_LIBS="$LIBS"
6372 LIBS="-liconv  $LIBS"
6373 cat > conftest.$ac_ext <<EOF
6374 #line 6375 "configure"
6375 #include "confdefs.h"
6376 /* Override any gcc2 internal prototype to avoid an error.  */
6377 /* We use char because int might match the return type of a gcc2
6378     builtin and then its argument prototype would still apply.  */
6379 char iconv();
6380
6381 int main() {
6382 iconv()
6383 ; return 0; }
6384 EOF
6385 if { (eval echo configure:6386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6386   rm -rf conftest*
6387   eval "ac_cv_lib_$ac_lib_var=yes"
6388 else
6389   echo "configure: failed program was:" >&5
6390   cat conftest.$ac_ext >&5
6391   rm -rf conftest*
6392   eval "ac_cv_lib_$ac_lib_var=no"
6393 fi
6394 rm -f conftest*
6395 LIBS="$ac_save_LIBS"
6396
6397 fi
6398 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6399   echo "$ac_t""yes" 1>&6
6400   libiconv="-liconv"
6401 else
6402   echo "$ac_t""no" 1>&6
6403 fi
6404
6405     ac_save_LIBS="$LIBS"
6406     LIBS="$LIBS $libiconv"
6407
6408     for ac_func in iconv_open iconv_close iconv nl_langinfo
6409 do
6410 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6411 echo "configure:6412: checking for $ac_func" >&5
6412 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6413   echo $ac_n "(cached) $ac_c" 1>&6
6414 else
6415   cat > conftest.$ac_ext <<EOF
6416 #line 6417 "configure"
6417 #include "confdefs.h"
6418 /* System header to define __stub macros and hopefully few prototypes,
6419     which can conflict with char $ac_func(); below.  */
6420 #include <assert.h>
6421 /* Override any gcc2 internal prototype to avoid an error.  */
6422 /* We use char because int might match the return type of a gcc2
6423     builtin and then its argument prototype would still apply.  */
6424 char $ac_func();
6425
6426 int main() {
6427
6428 /* The GNU C library defines this for functions which it implements
6429     to always fail with ENOSYS.  Some functions are actually named
6430     something starting with __ and the normal name is an alias.  */
6431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6432 choke me
6433 #else
6434 $ac_func();
6435 #endif
6436
6437 ; return 0; }
6438 EOF
6439 if { (eval echo configure:6440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6440   rm -rf conftest*
6441   eval "ac_cv_func_$ac_func=yes"
6442 else
6443   echo "configure: failed program was:" >&5
6444   cat conftest.$ac_ext >&5
6445   rm -rf conftest*
6446   eval "ac_cv_func_$ac_func=no"
6447 fi
6448 rm -f conftest*
6449 fi
6450
6451 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6452   echo "$ac_t""yes" 1>&6
6453     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6454   cat >> confdefs.h <<EOF
6455 #define $ac_tr_func 1
6456 EOF
6457  \
6458     ac_XPG2funcs=yes
6459 else
6460   echo "$ac_t""no" 1>&6
6461 ac_XPG2funcs=no
6462 fi
6463 done
6464
6465   
6466     LIBS="$ac_save_LIBS"
6467
6468     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6469 echo "configure:6470: checking for XPG2 wchar_t support" >&5
6470     if test x"$ac_has_iconv_h" = xyes &&
6471        test x"$ac_has_langinfo_h" = xyes &&
6472        test x"$ac_XPG2funcs" = xyes; then
6473       ac_XPG2_wchar_t=yes
6474     else
6475       ac_XPG2_wchar_t=no
6476     fi
6477     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6478   
6479             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6480 echo "configure:6481: checking for enabled wchar_t specializations" >&5
6481     if test x"$ac_isoC99_wchar_t" = xyes &&
6482        test x"$ac_XPG2_wchar_t" = xyes; then
6483       cat >> confdefs.h <<\EOF
6484 #define _GLIBCPP_USE_WCHAR_T 1
6485 EOF
6486
6487       echo "$ac_t"""yes"" 1>&6
6488     else
6489       echo "$ac_t"""no"" 1>&6
6490     fi
6491   else
6492         echo "configure: warning: wchar_t support disabled." 1>&2
6493   fi
6494
6495       os_include_dir="config/os/bsd/netbsd"
6496       cat >> confdefs.h <<\EOF
6497 #define HAVE_COPYSIGN 1
6498 EOF
6499
6500       cat >> confdefs.h <<\EOF
6501 #define HAVE_COPYSIGNF 1
6502 EOF
6503
6504       cat >> confdefs.h <<\EOF
6505 #define HAVE_FINITEF 1
6506 EOF
6507
6508       cat >> confdefs.h <<\EOF
6509 #define HAVE_FREXPF 1
6510 EOF
6511
6512       cat >> confdefs.h <<\EOF
6513 #define HAVE_HYPOTF 1
6514 EOF
6515
6516       ;;
6517     *-mingw32*)
6518       for ac_hdr in sys/types.h locale.h float.h
6519 do
6520 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6521 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6522 echo "configure:6523: checking for $ac_hdr" >&5
6523 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6524   echo $ac_n "(cached) $ac_c" 1>&6
6525 else
6526   cat > conftest.$ac_ext <<EOF
6527 #line 6528 "configure"
6528 #include "confdefs.h"
6529 #include <$ac_hdr>
6530 EOF
6531 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6532 { (eval echo configure:6533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6533 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6534 if test -z "$ac_err"; then
6535   rm -rf conftest*
6536   eval "ac_cv_header_$ac_safe=yes"
6537 else
6538   echo "$ac_err" >&5
6539   echo "configure: failed program was:" >&5
6540   cat conftest.$ac_ext >&5
6541   rm -rf conftest*
6542   eval "ac_cv_header_$ac_safe=no"
6543 fi
6544 rm -f conftest*
6545 fi
6546 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6547   echo "$ac_t""yes" 1>&6
6548     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6549   cat >> confdefs.h <<EOF
6550 #define $ac_tr_hdr 1
6551 EOF
6552  
6553 else
6554   echo "$ac_t""no" 1>&6
6555 fi
6556 done
6557
6558       
6559   # If we're not using GNU ld, then there's no point in even trying these
6560   # tests.  Check for that first.  We should have already tested for gld
6561   # by now (in libtool), but require it now just to be safe...
6562   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6563   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6564   
6565
6566   # The name set by libtool depends on the version of libtool.  Shame on us
6567   # for depending on an impl detail, but c'est la vie.  Older versions used
6568   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6569   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6570   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6571   # set (hence we're using an older libtool), then set it.
6572   if test x${with_gnu_ld+set} != xset; then
6573     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6574       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6575       with_gnu_ld=no
6576     else
6577       with_gnu_ld=$ac_cv_prog_gnu_ld
6578     fi
6579   fi
6580
6581   # Start by getting the version number.  I think the libtool test already
6582   # does some of this, but throws away the result.
6583   
6584   ldver=`$LD --version 2>/dev/null | head -1 | \
6585          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6586   
6587   glibcpp_gnu_ld_version=`echo $ldver | \
6588          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6589
6590   # Set --gc-sections.
6591   if test "$with_gnu_ld" = "notbroken"; then
6592     # GNU ld it is!  Joy and bunny rabbits!
6593
6594     # All these tests are for C++; save the language and the compiler flags.
6595     # Need to do this so that g++ won't try to link in libstdc++
6596     ac_test_CFLAGS="${CFLAGS+set}"
6597     ac_save_CFLAGS="$CFLAGS"
6598     CFLAGS='-x c++  -Wl,--gc-sections'
6599
6600     # Check for -Wl,--gc-sections
6601     # XXX This test is broken at the moment, as symbols required for
6602     # linking are now in libsupc++ (not built yet.....). In addition, 
6603     # this test has cored on solaris in the past. In addition,
6604     # --gc-sections doesn't really work at the moment (keeps on discarding
6605     # used sections, first .eh_frame and now some of the glibc sections for
6606     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6607     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6608 echo "configure:6609: checking for ld that supports -Wl,--gc-sections" >&5
6609     if test "$cross_compiling" = yes; then
6610   ac_sectionLDflags=yes
6611 else
6612   cat > conftest.$ac_ext <<EOF
6613 #line 6614 "configure"
6614 #include "confdefs.h"
6615
6616      int main(void) 
6617      {
6618        try { throw 1; }
6619        catch (...) { };
6620        return 0;
6621      }
6622     
6623 EOF
6624 if { (eval echo configure:6625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6625 then
6626   ac_sectionLDflags=yes
6627 else
6628   echo "configure: failed program was:" >&5
6629   cat conftest.$ac_ext >&5
6630   rm -fr conftest*
6631   ac_sectionLDflags=no
6632 fi
6633 rm -fr conftest*
6634 fi
6635
6636     if test "$ac_test_CFLAGS" = set; then
6637       CFLAGS="$ac_save_CFLAGS"
6638     else
6639       # this is the suspicious part
6640       CFLAGS=''
6641     fi
6642     if test "$ac_sectionLDflags" = "yes"; then
6643       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6644     fi
6645     echo "$ac_t""$ac_sectionLDflags" 1>&6
6646   fi
6647
6648   # Set linker optimization flags.
6649   if test x"$with_gnu_ld" = x"yes" &&
6650      test x"$enable_debug" = x"no"; then
6651     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6652   fi
6653
6654   
6655   
6656
6657       
6658     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6659 echo "configure:6660: checking for main in -lm" >&5
6660 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6661 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6662   echo $ac_n "(cached) $ac_c" 1>&6
6663 else
6664   ac_save_LIBS="$LIBS"
6665 LIBS="-lm  $LIBS"
6666 cat > conftest.$ac_ext <<EOF
6667 #line 6668 "configure"
6668 #include "confdefs.h"
6669
6670 int main() {
6671 main()
6672 ; return 0; }
6673 EOF
6674 if { (eval echo configure:6675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6675   rm -rf conftest*
6676   eval "ac_cv_lib_$ac_lib_var=yes"
6677 else
6678   echo "configure: failed program was:" >&5
6679   cat conftest.$ac_ext >&5
6680   rm -rf conftest*
6681   eval "ac_cv_lib_$ac_lib_var=no"
6682 fi
6683 rm -f conftest*
6684 LIBS="$ac_save_LIBS"
6685
6686 fi
6687 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6688   echo "$ac_t""yes" 1>&6
6689     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6690     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6691   cat >> confdefs.h <<EOF
6692 #define $ac_tr_lib 1
6693 EOF
6694
6695   LIBS="-lm $LIBS"
6696
6697 else
6698   echo "$ac_t""no" 1>&6
6699 fi
6700
6701   for ac_func in nan copysignf
6702 do
6703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6704 echo "configure:6705: checking for $ac_func" >&5
6705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6706   echo $ac_n "(cached) $ac_c" 1>&6
6707 else
6708   cat > conftest.$ac_ext <<EOF
6709 #line 6710 "configure"
6710 #include "confdefs.h"
6711 /* System header to define __stub macros and hopefully few prototypes,
6712     which can conflict with char $ac_func(); below.  */
6713 #include <assert.h>
6714 /* Override any gcc2 internal prototype to avoid an error.  */
6715 /* We use char because int might match the return type of a gcc2
6716     builtin and then its argument prototype would still apply.  */
6717 char $ac_func();
6718
6719 int main() {
6720
6721 /* The GNU C library defines this for functions which it implements
6722     to always fail with ENOSYS.  Some functions are actually named
6723     something starting with __ and the normal name is an alias.  */
6724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6725 choke me
6726 #else
6727 $ac_func();
6728 #endif
6729
6730 ; return 0; }
6731 EOF
6732 if { (eval echo configure:6733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6733   rm -rf conftest*
6734   eval "ac_cv_func_$ac_func=yes"
6735 else
6736   echo "configure: failed program was:" >&5
6737   cat conftest.$ac_ext >&5
6738   rm -rf conftest*
6739   eval "ac_cv_func_$ac_func=no"
6740 fi
6741 rm -f conftest*
6742 fi
6743
6744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6745   echo "$ac_t""yes" 1>&6
6746     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6747   cat >> confdefs.h <<EOF
6748 #define $ac_tr_func 1
6749 EOF
6750  
6751 else
6752   echo "$ac_t""no" 1>&6
6753 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6754 fi
6755 done
6756
6757
6758
6759           USE_COMPLEX_LONG_DOUBLE=no
6760   if test x$ac_cv_func_copysignl = x"yes"; then
6761     USE_COMPLEX_LONG_DOUBLE=yes
6762     for ac_func in signbitl
6763 do
6764 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6765 echo "configure:6766: checking for $ac_func" >&5
6766 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6767   echo $ac_n "(cached) $ac_c" 1>&6
6768 else
6769   cat > conftest.$ac_ext <<EOF
6770 #line 6771 "configure"
6771 #include "confdefs.h"
6772 /* System header to define __stub macros and hopefully few prototypes,
6773     which can conflict with char $ac_func(); below.  */
6774 #include <assert.h>
6775 /* Override any gcc2 internal prototype to avoid an error.  */
6776 /* We use char because int might match the return type of a gcc2
6777     builtin and then its argument prototype would still apply.  */
6778 char $ac_func();
6779
6780 int main() {
6781
6782 /* The GNU C library defines this for functions which it implements
6783     to always fail with ENOSYS.  Some functions are actually named
6784     something starting with __ and the normal name is an alias.  */
6785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6786 choke me
6787 #else
6788 $ac_func();
6789 #endif
6790
6791 ; return 0; }
6792 EOF
6793 if { (eval echo configure:6794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6794   rm -rf conftest*
6795   eval "ac_cv_func_$ac_func=yes"
6796 else
6797   echo "configure: failed program was:" >&5
6798   cat conftest.$ac_ext >&5
6799   rm -rf conftest*
6800   eval "ac_cv_func_$ac_func=no"
6801 fi
6802 rm -f conftest*
6803 fi
6804
6805 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6806   echo "$ac_t""yes" 1>&6
6807     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6808   cat >> confdefs.h <<EOF
6809 #define $ac_tr_func 1
6810 EOF
6811  
6812 else
6813   echo "$ac_t""no" 1>&6
6814 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6815 fi
6816 done
6817
6818
6819   fi
6820
6821   
6822
6823       
6824
6825       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6826 echo "configure:6827: checking for mbstate_t" >&5
6827   cat > conftest.$ac_ext <<EOF
6828 #line 6829 "configure"
6829 #include "confdefs.h"
6830 #include <wchar.h>
6831 int main() {
6832 mbstate_t teststate;
6833 ; return 0; }
6834 EOF
6835 if { (eval echo configure:6836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6836   rm -rf conftest*
6837   have_mbstate_t=yes
6838 else
6839   echo "configure: failed program was:" >&5
6840   cat conftest.$ac_ext >&5
6841   rm -rf conftest*
6842   have_mbstate_t=no
6843 fi
6844 rm -f conftest*
6845   echo "$ac_t""$have_mbstate_t" 1>&6
6846   if test x"$have_mbstate_t" = xyes; then
6847     cat >> confdefs.h <<\EOF
6848 #define HAVE_MBSTATE_T 1
6849 EOF
6850
6851   fi
6852
6853     for ac_hdr in wchar.h
6854 do
6855 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6857 echo "configure:6858: checking for $ac_hdr" >&5
6858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6859   echo $ac_n "(cached) $ac_c" 1>&6
6860 else
6861   cat > conftest.$ac_ext <<EOF
6862 #line 6863 "configure"
6863 #include "confdefs.h"
6864 #include <$ac_hdr>
6865 EOF
6866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6867 { (eval echo configure:6868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6869 if test -z "$ac_err"; then
6870   rm -rf conftest*
6871   eval "ac_cv_header_$ac_safe=yes"
6872 else
6873   echo "$ac_err" >&5
6874   echo "configure: failed program was:" >&5
6875   cat conftest.$ac_ext >&5
6876   rm -rf conftest*
6877   eval "ac_cv_header_$ac_safe=no"
6878 fi
6879 rm -f conftest*
6880 fi
6881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6882   echo "$ac_t""yes" 1>&6
6883     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6884   cat >> confdefs.h <<EOF
6885 #define $ac_tr_hdr 1
6886 EOF
6887  ac_has_wchar_h=yes
6888 else
6889   echo "$ac_t""no" 1>&6
6890 ac_has_wchar_h=no
6891 fi
6892 done
6893
6894   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
6895 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
6896 echo "configure:6897: checking for wctype.h" >&5
6897 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6898   echo $ac_n "(cached) $ac_c" 1>&6
6899 else
6900   cat > conftest.$ac_ext <<EOF
6901 #line 6902 "configure"
6902 #include "confdefs.h"
6903 #include <wctype.h>
6904 EOF
6905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6906 { (eval echo configure:6907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6907 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6908 if test -z "$ac_err"; then
6909   rm -rf conftest*
6910   eval "ac_cv_header_$ac_safe=yes"
6911 else
6912   echo "$ac_err" >&5
6913   echo "configure: failed program was:" >&5
6914   cat conftest.$ac_ext >&5
6915   rm -rf conftest*
6916   eval "ac_cv_header_$ac_safe=no"
6917 fi
6918 rm -f conftest*
6919 fi
6920 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6921   echo "$ac_t""yes" 1>&6
6922   ac_has_wctype_h=yes
6923 else
6924   echo "$ac_t""no" 1>&6
6925 ac_has_wctype_h=no
6926 fi
6927
6928   
6929     if test x"$ac_has_wchar_h" = xyes &&
6930      test x"$ac_has_wctype_h" = xyes &&
6931      test x"$enable_c_mbchar" != xno; then
6932       
6933             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6934 echo "configure:6935: checking for WCHAR_MIN and WCHAR_MAX" >&5
6935     cat > conftest.$ac_ext <<EOF
6936 #line 6937 "configure"
6937 #include "confdefs.h"
6938 #include <wchar.h>
6939 int main() {
6940 int i = WCHAR_MIN; int j = WCHAR_MAX;
6941 ; return 0; }
6942 EOF
6943 if { (eval echo configure:6944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6944   rm -rf conftest*
6945   has_wchar_minmax=yes
6946 else
6947   echo "configure: failed program was:" >&5
6948   cat conftest.$ac_ext >&5
6949   rm -rf conftest*
6950   has_wchar_minmax=no
6951 fi
6952 rm -f conftest*
6953     echo "$ac_t""$has_wchar_minmax" 1>&6
6954     
6955             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6956 echo "configure:6957: checking for WEOF" >&5
6957     cat > conftest.$ac_ext <<EOF
6958 #line 6959 "configure"
6959 #include "confdefs.h"
6960
6961       #include <wchar.h>
6962       #include <stddef.h>
6963 int main() {
6964 wint_t i = WEOF;
6965 ; return 0; }
6966 EOF
6967 if { (eval echo configure:6968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6968   rm -rf conftest*
6969   has_weof=yes
6970 else
6971   echo "configure: failed program was:" >&5
6972   cat conftest.$ac_ext >&5
6973   rm -rf conftest*
6974   has_weof=no
6975 fi
6976 rm -f conftest*
6977     echo "$ac_t""$has_weof" 1>&6
6978   
6979         ac_wfuncs=yes
6980     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6981 do
6982 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6983 echo "configure:6984: checking for $ac_func" >&5
6984 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6985   echo $ac_n "(cached) $ac_c" 1>&6
6986 else
6987   cat > conftest.$ac_ext <<EOF
6988 #line 6989 "configure"
6989 #include "confdefs.h"
6990 /* System header to define __stub macros and hopefully few prototypes,
6991     which can conflict with char $ac_func(); below.  */
6992 #include <assert.h>
6993 /* Override any gcc2 internal prototype to avoid an error.  */
6994 /* We use char because int might match the return type of a gcc2
6995     builtin and then its argument prototype would still apply.  */
6996 char $ac_func();
6997
6998 int main() {
6999
7000 /* The GNU C library defines this for functions which it implements
7001     to always fail with ENOSYS.  Some functions are actually named
7002     something starting with __ and the normal name is an alias.  */
7003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7004 choke me
7005 #else
7006 $ac_func();
7007 #endif
7008
7009 ; return 0; }
7010 EOF
7011 if { (eval echo configure:7012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7012   rm -rf conftest*
7013   eval "ac_cv_func_$ac_func=yes"
7014 else
7015   echo "configure: failed program was:" >&5
7016   cat conftest.$ac_ext >&5
7017   rm -rf conftest*
7018   eval "ac_cv_func_$ac_func=no"
7019 fi
7020 rm -f conftest*
7021 fi
7022
7023 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7024   echo "$ac_t""yes" 1>&6
7025     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7026   cat >> confdefs.h <<EOF
7027 #define $ac_tr_func 1
7028 EOF
7029  
7030 else
7031   echo "$ac_t""no" 1>&6
7032 \
7033     ac_wfuncs=no
7034 fi
7035 done
7036
7037   
7038         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7039     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7040     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7041     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7042     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7043     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7044 do
7045 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7046 echo "configure:7047: checking for $ac_func" >&5
7047 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7048   echo $ac_n "(cached) $ac_c" 1>&6
7049 else
7050   cat > conftest.$ac_ext <<EOF
7051 #line 7052 "configure"
7052 #include "confdefs.h"
7053 /* System header to define __stub macros and hopefully few prototypes,
7054     which can conflict with char $ac_func(); below.  */
7055 #include <assert.h>
7056 /* Override any gcc2 internal prototype to avoid an error.  */
7057 /* We use char because int might match the return type of a gcc2
7058     builtin and then its argument prototype would still apply.  */
7059 char $ac_func();
7060
7061 int main() {
7062
7063 /* The GNU C library defines this for functions which it implements
7064     to always fail with ENOSYS.  Some functions are actually named
7065     something starting with __ and the normal name is an alias.  */
7066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7067 choke me
7068 #else
7069 $ac_func();
7070 #endif
7071
7072 ; return 0; }
7073 EOF
7074 if { (eval echo configure:7075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7075   rm -rf conftest*
7076   eval "ac_cv_func_$ac_func=yes"
7077 else
7078   echo "configure: failed program was:" >&5
7079   cat conftest.$ac_ext >&5
7080   rm -rf conftest*
7081   eval "ac_cv_func_$ac_func=no"
7082 fi
7083 rm -f conftest*
7084 fi
7085
7086 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7087   echo "$ac_t""yes" 1>&6
7088     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7089   cat >> confdefs.h <<EOF
7090 #define $ac_tr_func 1
7091 EOF
7092  
7093 else
7094   echo "$ac_t""no" 1>&6
7095 \
7096     ac_wfuncs=no
7097 fi
7098 done
7099
7100
7101     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7102 echo "configure:7103: checking for ISO C99 wchar_t support" >&5
7103     if test x"$has_weof" = xyes &&
7104        test x"$has_wchar_minmax" = xyes &&
7105        test x"$ac_wfuncs" = xyes; then
7106       ac_isoC99_wchar_t=yes
7107     else
7108       ac_isoC99_wchar_t=no
7109     fi
7110     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7111   
7112             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7113 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7114 echo "configure:7115: checking for iconv.h" >&5
7115 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7116   echo $ac_n "(cached) $ac_c" 1>&6
7117 else
7118   cat > conftest.$ac_ext <<EOF
7119 #line 7120 "configure"
7120 #include "confdefs.h"
7121 #include <iconv.h>
7122 EOF
7123 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7124 { (eval echo configure:7125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7125 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7126 if test -z "$ac_err"; then
7127   rm -rf conftest*
7128   eval "ac_cv_header_$ac_safe=yes"
7129 else
7130   echo "$ac_err" >&5
7131   echo "configure: failed program was:" >&5
7132   cat conftest.$ac_ext >&5
7133   rm -rf conftest*
7134   eval "ac_cv_header_$ac_safe=no"
7135 fi
7136 rm -f conftest*
7137 fi
7138 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7139   echo "$ac_t""yes" 1>&6
7140   ac_has_iconv_h=yes
7141 else
7142   echo "$ac_t""no" 1>&6
7143 ac_has_iconv_h=no
7144 fi
7145
7146     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7147 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7148 echo "configure:7149: checking for langinfo.h" >&5
7149 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7150   echo $ac_n "(cached) $ac_c" 1>&6
7151 else
7152   cat > conftest.$ac_ext <<EOF
7153 #line 7154 "configure"
7154 #include "confdefs.h"
7155 #include <langinfo.h>
7156 EOF
7157 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7158 { (eval echo configure:7159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7159 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7160 if test -z "$ac_err"; then
7161   rm -rf conftest*
7162   eval "ac_cv_header_$ac_safe=yes"
7163 else
7164   echo "$ac_err" >&5
7165   echo "configure: failed program was:" >&5
7166   cat conftest.$ac_ext >&5
7167   rm -rf conftest*
7168   eval "ac_cv_header_$ac_safe=no"
7169 fi
7170 rm -f conftest*
7171 fi
7172 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7173   echo "$ac_t""yes" 1>&6
7174   ac_has_langinfo_h=yes
7175 else
7176   echo "$ac_t""no" 1>&6
7177 ac_has_langinfo_h=no
7178 fi
7179
7180
7181         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7182 echo "configure:7183: checking for iconv in -liconv" >&5
7183 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7185   echo $ac_n "(cached) $ac_c" 1>&6
7186 else
7187   ac_save_LIBS="$LIBS"
7188 LIBS="-liconv  $LIBS"
7189 cat > conftest.$ac_ext <<EOF
7190 #line 7191 "configure"
7191 #include "confdefs.h"
7192 /* Override any gcc2 internal prototype to avoid an error.  */
7193 /* We use char because int might match the return type of a gcc2
7194     builtin and then its argument prototype would still apply.  */
7195 char iconv();
7196
7197 int main() {
7198 iconv()
7199 ; return 0; }
7200 EOF
7201 if { (eval echo configure:7202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7202   rm -rf conftest*
7203   eval "ac_cv_lib_$ac_lib_var=yes"
7204 else
7205   echo "configure: failed program was:" >&5
7206   cat conftest.$ac_ext >&5
7207   rm -rf conftest*
7208   eval "ac_cv_lib_$ac_lib_var=no"
7209 fi
7210 rm -f conftest*
7211 LIBS="$ac_save_LIBS"
7212
7213 fi
7214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7215   echo "$ac_t""yes" 1>&6
7216   libiconv="-liconv"
7217 else
7218   echo "$ac_t""no" 1>&6
7219 fi
7220
7221     ac_save_LIBS="$LIBS"
7222     LIBS="$LIBS $libiconv"
7223
7224     for ac_func in iconv_open iconv_close iconv nl_langinfo
7225 do
7226 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7227 echo "configure:7228: checking for $ac_func" >&5
7228 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7229   echo $ac_n "(cached) $ac_c" 1>&6
7230 else
7231   cat > conftest.$ac_ext <<EOF
7232 #line 7233 "configure"
7233 #include "confdefs.h"
7234 /* System header to define __stub macros and hopefully few prototypes,
7235     which can conflict with char $ac_func(); below.  */
7236 #include <assert.h>
7237 /* Override any gcc2 internal prototype to avoid an error.  */
7238 /* We use char because int might match the return type of a gcc2
7239     builtin and then its argument prototype would still apply.  */
7240 char $ac_func();
7241
7242 int main() {
7243
7244 /* The GNU C library defines this for functions which it implements
7245     to always fail with ENOSYS.  Some functions are actually named
7246     something starting with __ and the normal name is an alias.  */
7247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7248 choke me
7249 #else
7250 $ac_func();
7251 #endif
7252
7253 ; return 0; }
7254 EOF
7255 if { (eval echo configure:7256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7256   rm -rf conftest*
7257   eval "ac_cv_func_$ac_func=yes"
7258 else
7259   echo "configure: failed program was:" >&5
7260   cat conftest.$ac_ext >&5
7261   rm -rf conftest*
7262   eval "ac_cv_func_$ac_func=no"
7263 fi
7264 rm -f conftest*
7265 fi
7266
7267 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7268   echo "$ac_t""yes" 1>&6
7269     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7270   cat >> confdefs.h <<EOF
7271 #define $ac_tr_func 1
7272 EOF
7273  \
7274     ac_XPG2funcs=yes
7275 else
7276   echo "$ac_t""no" 1>&6
7277 ac_XPG2funcs=no
7278 fi
7279 done
7280
7281   
7282     LIBS="$ac_save_LIBS"
7283
7284     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7285 echo "configure:7286: checking for XPG2 wchar_t support" >&5
7286     if test x"$ac_has_iconv_h" = xyes &&
7287        test x"$ac_has_langinfo_h" = xyes &&
7288        test x"$ac_XPG2funcs" = xyes; then
7289       ac_XPG2_wchar_t=yes
7290     else
7291       ac_XPG2_wchar_t=no
7292     fi
7293     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7294   
7295             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7296 echo "configure:7297: checking for enabled wchar_t specializations" >&5
7297     if test x"$ac_isoC99_wchar_t" = xyes &&
7298        test x"$ac_XPG2_wchar_t" = xyes; then
7299       cat >> confdefs.h <<\EOF
7300 #define _GLIBCPP_USE_WCHAR_T 1
7301 EOF
7302
7303       echo "$ac_t"""yes"" 1>&6
7304     else
7305       echo "$ac_t"""no"" 1>&6
7306     fi
7307   else
7308         echo "configure: warning: wchar_t support disabled." 1>&2
7309   fi
7310
7311       os_include_dir="config/os/mingw32"
7312       is_mingw32=yes;
7313       ;;
7314     *)
7315       os_include_dir="config/os/newlib"
7316       cat >> confdefs.h <<\EOF
7317 #define HAVE_HYPOT 1
7318 EOF
7319
7320       ;;
7321   esac
7322
7323   case "$target_alias" in
7324     *-mingw32*)
7325       ;;
7326     *)
7327       # GLIBCPP_CHECK_STDLIB_SUPPORT
7328       cat >> confdefs.h <<\EOF
7329 #define HAVE_STRTOF 1
7330 EOF
7331         
7332       cat >> confdefs.h <<\EOF
7333 #define HAVE_STRTOLD 1
7334 EOF
7335         
7336       # AC_FUNC_MMAP
7337       cat >> confdefs.h <<\EOF
7338 #define HAVE_MMAP 1
7339 EOF
7340
7341
7342       cat >> confdefs.h <<\EOF
7343 #define HAVE_ACOSF 1
7344 EOF
7345
7346       cat >> confdefs.h <<\EOF
7347 #define HAVE_ASINF 1
7348 EOF
7349
7350       cat >> confdefs.h <<\EOF
7351 #define HAVE_ATAN2F 1
7352 EOF
7353
7354       cat >> confdefs.h <<\EOF
7355 #define HAVE_ATANF 1
7356 EOF
7357
7358       cat >> confdefs.h <<\EOF
7359 #define HAVE_CEILF 1
7360 EOF
7361
7362       cat >> confdefs.h <<\EOF
7363 #define HAVE_COPYSIGN 1
7364 EOF
7365
7366       cat >> confdefs.h <<\EOF
7367 #define HAVE_COPYSIGNF 1
7368 EOF
7369
7370       cat >> confdefs.h <<\EOF
7371 #define HAVE_COSF 1
7372 EOF
7373
7374       cat >> confdefs.h <<\EOF
7375 #define HAVE_COSHF 1
7376 EOF
7377
7378       cat >> confdefs.h <<\EOF
7379 #define HAVE_EXPF 1
7380 EOF
7381
7382       cat >> confdefs.h <<\EOF
7383 #define HAVE_FABSF 1
7384 EOF
7385
7386       cat >> confdefs.h <<\EOF
7387 #define HAVE_FINITE 1
7388 EOF
7389
7390       cat >> confdefs.h <<\EOF
7391 #define HAVE_FINITEF 1
7392 EOF
7393
7394       cat >> confdefs.h <<\EOF
7395 #define HAVE_FLOORF 1
7396 EOF
7397
7398       cat >> confdefs.h <<\EOF
7399 #define HAVE_FMODF 1
7400 EOF
7401
7402       cat >> confdefs.h <<\EOF
7403 #define HAVE_FREXPF 1
7404 EOF
7405
7406       cat >> confdefs.h <<\EOF
7407 #define HAVE_ISINF 1
7408 EOF
7409
7410       cat >> confdefs.h <<\EOF
7411 #define HAVE_ISINFF 1
7412 EOF
7413
7414       cat >> confdefs.h <<\EOF
7415 #define HAVE_ISNAN 1
7416 EOF
7417
7418       cat >> confdefs.h <<\EOF
7419 #define HAVE_ISNANF 1
7420 EOF
7421
7422       cat >> confdefs.h <<\EOF
7423 #define HAVE_LDEXPF 1
7424 EOF
7425
7426       cat >> confdefs.h <<\EOF
7427 #define HAVE_LOG10F 1
7428 EOF
7429
7430       cat >> confdefs.h <<\EOF
7431 #define HAVE_LOGF 1
7432 EOF
7433
7434       cat >> confdefs.h <<\EOF
7435 #define HAVE_MODFF 1
7436 EOF
7437
7438       cat >> confdefs.h <<\EOF
7439 #define HAVE_POWF 1
7440 EOF
7441
7442       cat >> confdefs.h <<\EOF
7443 #define HAVE_SINF 1
7444 EOF
7445
7446       cat >> confdefs.h <<\EOF
7447 #define HAVE_SINHF 1
7448 EOF
7449
7450       cat >> confdefs.h <<\EOF
7451 #define HAVE_SQRTF 1
7452 EOF
7453
7454       cat >> confdefs.h <<\EOF
7455 #define HAVE_TANF 1
7456 EOF
7457
7458       cat >> confdefs.h <<\EOF
7459 #define HAVE_TANHF 1
7460 EOF
7461
7462       ;;
7463   esac
7464
7465   # At some point, we should differentiate between architectures
7466   # like x86, which have long double versions, and alpha/powerpc/etc.,
7467   # which don't. For the time being, punt.
7468   if test x"long_double_math_on_this_cpu" = x"yes"; then
7469     cat >> confdefs.h <<\EOF
7470 #define HAVE_ACOSL 1
7471 EOF
7472
7473     cat >> confdefs.h <<\EOF
7474 #define HAVE_ASINL 1
7475 EOF
7476
7477     cat >> confdefs.h <<\EOF
7478 #define HAVE_ATAN2L 1
7479 EOF
7480
7481     cat >> confdefs.h <<\EOF
7482 #define HAVE_ATANL 1
7483 EOF
7484
7485     cat >> confdefs.h <<\EOF
7486 #define HAVE_CEILL 1
7487 EOF
7488
7489     cat >> confdefs.h <<\EOF
7490 #define HAVE_COPYSIGNL 1
7491 EOF
7492
7493     cat >> confdefs.h <<\EOF
7494 #define HAVE_COSL 1
7495 EOF
7496
7497     cat >> confdefs.h <<\EOF
7498 #define HAVE_COSHL 1
7499 EOF
7500
7501     cat >> confdefs.h <<\EOF
7502 #define HAVE_EXPL 1
7503 EOF
7504
7505     cat >> confdefs.h <<\EOF
7506 #define HAVE_FABSL 1
7507 EOF
7508
7509     cat >> confdefs.h <<\EOF
7510 #define HAVE_FINITEL 1
7511 EOF
7512
7513     cat >> confdefs.h <<\EOF
7514 #define HAVE_FLOORL 1
7515 EOF
7516
7517     cat >> confdefs.h <<\EOF
7518 #define HAVE_FMODL 1
7519 EOF
7520
7521     cat >> confdefs.h <<\EOF
7522 #define HAVE_FREXPL 1
7523 EOF
7524
7525     cat >> confdefs.h <<\EOF
7526 #define HAVE_ISINFL 1
7527 EOF
7528
7529     cat >> confdefs.h <<\EOF
7530 #define HAVE_ISNANL 1
7531 EOF
7532
7533     cat >> confdefs.h <<\EOF
7534 #define HAVE_LDEXPL 1
7535 EOF
7536
7537     cat >> confdefs.h <<\EOF
7538 #define HAVE_LOG10L 1
7539 EOF
7540
7541     cat >> confdefs.h <<\EOF
7542 #define HAVE_LOGL 1
7543 EOF
7544
7545     cat >> confdefs.h <<\EOF
7546 #define HAVE_MODFL 1
7547 EOF
7548
7549     cat >> confdefs.h <<\EOF
7550 #define HAVE_POWL 1
7551 EOF
7552
7553     cat >> confdefs.h <<\EOF
7554 #define HAVE_SINCOSL 1
7555 EOF
7556
7557     cat >> confdefs.h <<\EOF
7558 #define HAVE_SINL 1
7559 EOF
7560
7561     cat >> confdefs.h <<\EOF
7562 #define HAVE_SINHL 1
7563 EOF
7564
7565     cat >> confdefs.h <<\EOF
7566 #define HAVE_SQRTL 1
7567 EOF
7568
7569     cat >> confdefs.h <<\EOF
7570 #define HAVE_TANL 1
7571 EOF
7572
7573     cat >> confdefs.h <<\EOF
7574 #define HAVE_TANHL 1
7575 EOF
7576
7577   fi
7578 else
7579
7580   # We are being configured natively. We can do more elaborate tests
7581   # that include AC_TRY_COMPILE now, as the linker is assumed to be
7582   # working.
7583   GLIBCPP_IS_CROSS_COMPILING=0
7584   CANADIAN=no
7585
7586   # Check for available headers.
7587   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
7588   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
7589 do
7590 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7591 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7592 echo "configure:7593: checking for $ac_hdr" >&5
7593 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7594   echo $ac_n "(cached) $ac_c" 1>&6
7595 else
7596   cat > conftest.$ac_ext <<EOF
7597 #line 7598 "configure"
7598 #include "confdefs.h"
7599 #include <$ac_hdr>
7600 EOF
7601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7602 { (eval echo configure:7603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7604 if test -z "$ac_err"; then
7605   rm -rf conftest*
7606   eval "ac_cv_header_$ac_safe=yes"
7607 else
7608   echo "$ac_err" >&5
7609   echo "configure: failed program was:" >&5
7610   cat conftest.$ac_ext >&5
7611   rm -rf conftest*
7612   eval "ac_cv_header_$ac_safe=no"
7613 fi
7614 rm -f conftest*
7615 fi
7616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7617   echo "$ac_t""yes" 1>&6
7618     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7619   cat >> confdefs.h <<EOF
7620 #define $ac_tr_hdr 1
7621 EOF
7622  
7623 else
7624   echo "$ac_t""no" 1>&6
7625 fi
7626 done
7627
7628
7629   
7630   # All these tests are for C++; save the language and the compiler flags.
7631   # The CXXFLAGS thing is suspicious, but based on similar bits previously
7632   # found in GLIBCPP_CONFIGURE.
7633   
7634   ac_ext=C
7635 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7636 ac_cpp='$CXXCPP $CPPFLAGS'
7637 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7638 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7639 cross_compiling=$ac_cv_prog_cxx_cross
7640
7641   ac_test_CXXFLAGS="${CXXFLAGS+set}"
7642   ac_save_CXXFLAGS="$CXXFLAGS"
7643
7644   # Check for maintainer-mode bits.
7645   if test x"$USE_MAINTAINER_MODE" = xno; then
7646     WERROR=''
7647   else
7648     WERROR='-Werror'
7649   fi
7650
7651   # Check for -ffunction-sections -fdata-sections
7652   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
7653 echo "configure:7654: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
7654   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
7655   cat > conftest.$ac_ext <<EOF
7656 #line 7657 "configure"
7657 #include "confdefs.h"
7658
7659 int main() {
7660 int foo;
7661   
7662 ; return 0; }
7663 EOF
7664 if { (eval echo configure:7665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7665   rm -rf conftest*
7666   ac_fdsections=yes
7667 else
7668   echo "configure: failed program was:" >&5
7669   cat conftest.$ac_ext >&5
7670   rm -rf conftest*
7671   ac_fdsections=no
7672 fi
7673 rm -f conftest*
7674   if test "$ac_test_CXXFLAGS" = set; then
7675     CXXFLAGS="$ac_save_CXXFLAGS"
7676   else
7677     # this is the suspicious part
7678     CXXFLAGS=''
7679   fi
7680   if test x"$ac_fdsections" = x"yes" &&
7681      test x"$enable_debug" = x"no"; then
7682     SECTION_FLAGS='-ffunction-sections -fdata-sections'
7683   fi
7684   echo "$ac_t""$ac_fdsections" 1>&6
7685
7686   ac_ext=c
7687 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7688 ac_cpp='$CPP $CPPFLAGS'
7689 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7690 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7691 cross_compiling=$ac_cv_prog_cc_cross
7692
7693   
7694   
7695
7696   
7697   # If we're not using GNU ld, then there's no point in even trying these
7698   # tests.  Check for that first.  We should have already tested for gld
7699   # by now (in libtool), but require it now just to be safe...
7700   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7701   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7702   
7703
7704   # The name set by libtool depends on the version of libtool.  Shame on us
7705   # for depending on an impl detail, but c'est la vie.  Older versions used
7706   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7707   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7708   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7709   # set (hence we're using an older libtool), then set it.
7710   if test x${with_gnu_ld+set} != xset; then
7711     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7712       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7713       with_gnu_ld=no
7714     else
7715       with_gnu_ld=$ac_cv_prog_gnu_ld
7716     fi
7717   fi
7718
7719   # Start by getting the version number.  I think the libtool test already
7720   # does some of this, but throws away the result.
7721   
7722   ldver=`$LD --version 2>/dev/null | head -1 | \
7723          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7724   
7725   glibcpp_gnu_ld_version=`echo $ldver | \
7726          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7727
7728   # Set --gc-sections.
7729   if test "$with_gnu_ld" = "notbroken"; then
7730     # GNU ld it is!  Joy and bunny rabbits!
7731
7732     # All these tests are for C++; save the language and the compiler flags.
7733     # Need to do this so that g++ won't try to link in libstdc++
7734     ac_test_CFLAGS="${CFLAGS+set}"
7735     ac_save_CFLAGS="$CFLAGS"
7736     CFLAGS='-x c++  -Wl,--gc-sections'
7737
7738     # Check for -Wl,--gc-sections
7739     # XXX This test is broken at the moment, as symbols required for
7740     # linking are now in libsupc++ (not built yet.....). In addition, 
7741     # this test has cored on solaris in the past. In addition,
7742     # --gc-sections doesn't really work at the moment (keeps on discarding
7743     # used sections, first .eh_frame and now some of the glibc sections for
7744     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7745     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7746 echo "configure:7747: checking for ld that supports -Wl,--gc-sections" >&5
7747     if test "$cross_compiling" = yes; then
7748   ac_sectionLDflags=yes
7749 else
7750   cat > conftest.$ac_ext <<EOF
7751 #line 7752 "configure"
7752 #include "confdefs.h"
7753
7754      int main(void) 
7755      {
7756        try { throw 1; }
7757        catch (...) { };
7758        return 0;
7759      }
7760     
7761 EOF
7762 if { (eval echo configure:7763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7763 then
7764   ac_sectionLDflags=yes
7765 else
7766   echo "configure: failed program was:" >&5
7767   cat conftest.$ac_ext >&5
7768   rm -fr conftest*
7769   ac_sectionLDflags=no
7770 fi
7771 rm -fr conftest*
7772 fi
7773
7774     if test "$ac_test_CFLAGS" = set; then
7775       CFLAGS="$ac_save_CFLAGS"
7776     else
7777       # this is the suspicious part
7778       CFLAGS=''
7779     fi
7780     if test "$ac_sectionLDflags" = "yes"; then
7781       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7782     fi
7783     echo "$ac_t""$ac_sectionLDflags" 1>&6
7784   fi
7785
7786   # Set linker optimization flags.
7787   if test x"$with_gnu_ld" = x"yes" &&
7788      test x"$enable_debug" = x"no"; then
7789     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7790   fi
7791
7792   
7793   
7794
7795   
7796       
7797   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
7798 echo "configure:7799: checking for __builtin_abs declaration" >&5
7799   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
7800     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
7801   echo $ac_n "(cached) $ac_c" 1>&6
7802 else
7803   
7804       
7805       ac_ext=C
7806 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7807 ac_cpp='$CXXCPP $CPPFLAGS'
7808 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7809 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7810 cross_compiling=$ac_cv_prog_cxx_cross
7811
7812       cat > conftest.$ac_ext <<EOF
7813 #line 7814 "configure"
7814 #include "confdefs.h"
7815 #include <math.h>
7816 int main() {
7817  __builtin_abs(0);
7818 ; return 0; }
7819 EOF
7820 if { (eval echo configure:7821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7821   rm -rf conftest*
7822   glibcpp_cv_func___builtin_abs_use=yes
7823 else
7824   echo "configure: failed program was:" >&5
7825   cat conftest.$ac_ext >&5
7826   rm -rf conftest*
7827   glibcpp_cv_func___builtin_abs_use=no
7828 fi
7829 rm -f conftest*
7830       ac_ext=c
7831 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7832 ac_cpp='$CPP $CPPFLAGS'
7833 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7834 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7835 cross_compiling=$ac_cv_prog_cc_cross
7836
7837     
7838 fi
7839
7840   fi
7841   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
7842   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
7843     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
7844 echo "configure:7845: checking for __builtin_abs linkage" >&5
7845     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
7846       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
7847   echo $ac_n "(cached) $ac_c" 1>&6
7848 else
7849   
7850         cat > conftest.$ac_ext <<EOF
7851 #line 7852 "configure"
7852 #include "confdefs.h"
7853 #include <math.h>
7854 int main() {
7855  __builtin_abs(0);
7856 ; return 0; }
7857 EOF
7858 if { (eval echo configure:7859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7859   rm -rf conftest*
7860   glibcpp_cv_func___builtin_abs_link=yes
7861 else
7862   echo "configure: failed program was:" >&5
7863   cat conftest.$ac_ext >&5
7864   rm -rf conftest*
7865   glibcpp_cv_func___builtin_abs_link=no
7866 fi
7867 rm -f conftest*
7868       
7869 fi
7870
7871     fi
7872     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
7873     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
7874       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7875       cat >> confdefs.h <<EOF
7876 #define ${ac_tr_func} 1
7877 EOF
7878
7879     fi
7880   fi
7881
7882   
7883   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
7884 echo "configure:7885: checking for __builtin_fabsf declaration" >&5
7885   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
7886     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
7887   echo $ac_n "(cached) $ac_c" 1>&6
7888 else
7889   
7890       
7891       ac_ext=C
7892 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7893 ac_cpp='$CXXCPP $CPPFLAGS'
7894 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7895 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7896 cross_compiling=$ac_cv_prog_cxx_cross
7897
7898       cat > conftest.$ac_ext <<EOF
7899 #line 7900 "configure"
7900 #include "confdefs.h"
7901 #include <math.h>
7902 int main() {
7903  __builtin_fabsf(0);
7904 ; return 0; }
7905 EOF
7906 if { (eval echo configure:7907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7907   rm -rf conftest*
7908   glibcpp_cv_func___builtin_fabsf_use=yes
7909 else
7910   echo "configure: failed program was:" >&5
7911   cat conftest.$ac_ext >&5
7912   rm -rf conftest*
7913   glibcpp_cv_func___builtin_fabsf_use=no
7914 fi
7915 rm -f conftest*
7916       ac_ext=c
7917 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7918 ac_cpp='$CPP $CPPFLAGS'
7919 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7920 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7921 cross_compiling=$ac_cv_prog_cc_cross
7922
7923     
7924 fi
7925
7926   fi
7927   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
7928   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
7929     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
7930 echo "configure:7931: checking for __builtin_fabsf linkage" >&5
7931     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
7932       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
7933   echo $ac_n "(cached) $ac_c" 1>&6
7934 else
7935   
7936         cat > conftest.$ac_ext <<EOF
7937 #line 7938 "configure"
7938 #include "confdefs.h"
7939 #include <math.h>
7940 int main() {
7941  __builtin_fabsf(0);
7942 ; return 0; }
7943 EOF
7944 if { (eval echo configure:7945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7945   rm -rf conftest*
7946   glibcpp_cv_func___builtin_fabsf_link=yes
7947 else
7948   echo "configure: failed program was:" >&5
7949   cat conftest.$ac_ext >&5
7950   rm -rf conftest*
7951   glibcpp_cv_func___builtin_fabsf_link=no
7952 fi
7953 rm -f conftest*
7954       
7955 fi
7956
7957     fi
7958     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
7959     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
7960       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7961       cat >> confdefs.h <<EOF
7962 #define ${ac_tr_func} 1
7963 EOF
7964
7965     fi
7966   fi
7967
7968   
7969   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
7970 echo "configure:7971: checking for __builtin_fabs declaration" >&5
7971   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
7972     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
7973   echo $ac_n "(cached) $ac_c" 1>&6
7974 else
7975   
7976       
7977       ac_ext=C
7978 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7979 ac_cpp='$CXXCPP $CPPFLAGS'
7980 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7981 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7982 cross_compiling=$ac_cv_prog_cxx_cross
7983
7984       cat > conftest.$ac_ext <<EOF
7985 #line 7986 "configure"
7986 #include "confdefs.h"
7987 #include <math.h>
7988 int main() {
7989  __builtin_fabs(0);
7990 ; return 0; }
7991 EOF
7992 if { (eval echo configure:7993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7993   rm -rf conftest*
7994   glibcpp_cv_func___builtin_fabs_use=yes
7995 else
7996   echo "configure: failed program was:" >&5
7997   cat conftest.$ac_ext >&5
7998   rm -rf conftest*
7999   glibcpp_cv_func___builtin_fabs_use=no
8000 fi
8001 rm -f conftest*
8002       ac_ext=c
8003 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8004 ac_cpp='$CPP $CPPFLAGS'
8005 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8006 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8007 cross_compiling=$ac_cv_prog_cc_cross
8008
8009     
8010 fi
8011
8012   fi
8013   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
8014   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
8015     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
8016 echo "configure:8017: checking for __builtin_fabs linkage" >&5
8017     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
8018       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
8019   echo $ac_n "(cached) $ac_c" 1>&6
8020 else
8021   
8022         cat > conftest.$ac_ext <<EOF
8023 #line 8024 "configure"
8024 #include "confdefs.h"
8025 #include <math.h>
8026 int main() {
8027  __builtin_fabs(0);
8028 ; return 0; }
8029 EOF
8030 if { (eval echo configure:8031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8031   rm -rf conftest*
8032   glibcpp_cv_func___builtin_fabs_link=yes
8033 else
8034   echo "configure: failed program was:" >&5
8035   cat conftest.$ac_ext >&5
8036   rm -rf conftest*
8037   glibcpp_cv_func___builtin_fabs_link=no
8038 fi
8039 rm -f conftest*
8040       
8041 fi
8042
8043     fi
8044     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
8045     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
8046       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8047       cat >> confdefs.h <<EOF
8048 #define ${ac_tr_func} 1
8049 EOF
8050
8051     fi
8052   fi
8053
8054   
8055   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
8056 echo "configure:8057: checking for __builtin_fabsl declaration" >&5
8057   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
8058     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
8059   echo $ac_n "(cached) $ac_c" 1>&6
8060 else
8061   
8062       
8063       ac_ext=C
8064 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8065 ac_cpp='$CXXCPP $CPPFLAGS'
8066 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8067 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8068 cross_compiling=$ac_cv_prog_cxx_cross
8069
8070       cat > conftest.$ac_ext <<EOF
8071 #line 8072 "configure"
8072 #include "confdefs.h"
8073 #include <math.h>
8074 int main() {
8075  __builtin_fabsl(0);
8076 ; return 0; }
8077 EOF
8078 if { (eval echo configure:8079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8079   rm -rf conftest*
8080   glibcpp_cv_func___builtin_fabsl_use=yes
8081 else
8082   echo "configure: failed program was:" >&5
8083   cat conftest.$ac_ext >&5
8084   rm -rf conftest*
8085   glibcpp_cv_func___builtin_fabsl_use=no
8086 fi
8087 rm -f conftest*
8088       ac_ext=c
8089 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8090 ac_cpp='$CPP $CPPFLAGS'
8091 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8092 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8093 cross_compiling=$ac_cv_prog_cc_cross
8094
8095     
8096 fi
8097
8098   fi
8099   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
8100   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
8101     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
8102 echo "configure:8103: checking for __builtin_fabsl linkage" >&5
8103     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
8104       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
8105   echo $ac_n "(cached) $ac_c" 1>&6
8106 else
8107   
8108         cat > conftest.$ac_ext <<EOF
8109 #line 8110 "configure"
8110 #include "confdefs.h"
8111 #include <math.h>
8112 int main() {
8113  __builtin_fabsl(0);
8114 ; return 0; }
8115 EOF
8116 if { (eval echo configure:8117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8117   rm -rf conftest*
8118   glibcpp_cv_func___builtin_fabsl_link=yes
8119 else
8120   echo "configure: failed program was:" >&5
8121   cat conftest.$ac_ext >&5
8122   rm -rf conftest*
8123   glibcpp_cv_func___builtin_fabsl_link=no
8124 fi
8125 rm -f conftest*
8126       
8127 fi
8128
8129     fi
8130     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
8131     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
8132       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8133       cat >> confdefs.h <<EOF
8134 #define ${ac_tr_func} 1
8135 EOF
8136
8137     fi
8138   fi
8139
8140   
8141   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
8142 echo "configure:8143: checking for __builtin_labs declaration" >&5
8143   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
8144     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
8145   echo $ac_n "(cached) $ac_c" 1>&6
8146 else
8147   
8148       
8149       ac_ext=C
8150 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8151 ac_cpp='$CXXCPP $CPPFLAGS'
8152 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8153 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8154 cross_compiling=$ac_cv_prog_cxx_cross
8155
8156       cat > conftest.$ac_ext <<EOF
8157 #line 8158 "configure"
8158 #include "confdefs.h"
8159 #include <math.h>
8160 int main() {
8161  __builtin_labs(0);
8162 ; return 0; }
8163 EOF
8164 if { (eval echo configure:8165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8165   rm -rf conftest*
8166   glibcpp_cv_func___builtin_labs_use=yes
8167 else
8168   echo "configure: failed program was:" >&5
8169   cat conftest.$ac_ext >&5
8170   rm -rf conftest*
8171   glibcpp_cv_func___builtin_labs_use=no
8172 fi
8173 rm -f conftest*
8174       ac_ext=c
8175 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8176 ac_cpp='$CPP $CPPFLAGS'
8177 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8178 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8179 cross_compiling=$ac_cv_prog_cc_cross
8180
8181     
8182 fi
8183
8184   fi
8185   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
8186   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
8187     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
8188 echo "configure:8189: checking for __builtin_labs linkage" >&5
8189     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
8190       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
8191   echo $ac_n "(cached) $ac_c" 1>&6
8192 else
8193   
8194         cat > conftest.$ac_ext <<EOF
8195 #line 8196 "configure"
8196 #include "confdefs.h"
8197 #include <math.h>
8198 int main() {
8199  __builtin_labs(0);
8200 ; return 0; }
8201 EOF
8202 if { (eval echo configure:8203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8203   rm -rf conftest*
8204   glibcpp_cv_func___builtin_labs_link=yes
8205 else
8206   echo "configure: failed program was:" >&5
8207   cat conftest.$ac_ext >&5
8208   rm -rf conftest*
8209   glibcpp_cv_func___builtin_labs_link=no
8210 fi
8211 rm -f conftest*
8212       
8213 fi
8214
8215     fi
8216     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
8217     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
8218       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8219       cat >> confdefs.h <<EOF
8220 #define ${ac_tr_func} 1
8221 EOF
8222
8223     fi
8224   fi
8225
8226
8227   
8228   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
8229 echo "configure:8230: checking for __builtin_sqrtf declaration" >&5
8230   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
8231     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
8232   echo $ac_n "(cached) $ac_c" 1>&6
8233 else
8234   
8235       
8236       ac_ext=C
8237 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8238 ac_cpp='$CXXCPP $CPPFLAGS'
8239 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8240 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8241 cross_compiling=$ac_cv_prog_cxx_cross
8242
8243       cat > conftest.$ac_ext <<EOF
8244 #line 8245 "configure"
8245 #include "confdefs.h"
8246 #include <math.h>
8247 int main() {
8248  __builtin_sqrtf(0);
8249 ; return 0; }
8250 EOF
8251 if { (eval echo configure:8252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8252   rm -rf conftest*
8253   glibcpp_cv_func___builtin_sqrtf_use=yes
8254 else
8255   echo "configure: failed program was:" >&5
8256   cat conftest.$ac_ext >&5
8257   rm -rf conftest*
8258   glibcpp_cv_func___builtin_sqrtf_use=no
8259 fi
8260 rm -f conftest*
8261       ac_ext=c
8262 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8263 ac_cpp='$CPP $CPPFLAGS'
8264 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8265 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8266 cross_compiling=$ac_cv_prog_cc_cross
8267
8268     
8269 fi
8270
8271   fi
8272   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
8273   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
8274     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
8275 echo "configure:8276: checking for __builtin_sqrtf linkage" >&5
8276     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
8277       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
8278   echo $ac_n "(cached) $ac_c" 1>&6
8279 else
8280   
8281         cat > conftest.$ac_ext <<EOF
8282 #line 8283 "configure"
8283 #include "confdefs.h"
8284 #include <math.h>
8285 int main() {
8286  __builtin_sqrtf(0);
8287 ; return 0; }
8288 EOF
8289 if { (eval echo configure:8290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8290   rm -rf conftest*
8291   glibcpp_cv_func___builtin_sqrtf_link=yes
8292 else
8293   echo "configure: failed program was:" >&5
8294   cat conftest.$ac_ext >&5
8295   rm -rf conftest*
8296   glibcpp_cv_func___builtin_sqrtf_link=no
8297 fi
8298 rm -f conftest*
8299       
8300 fi
8301
8302     fi
8303     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
8304     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
8305       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8306       cat >> confdefs.h <<EOF
8307 #define ${ac_tr_func} 1
8308 EOF
8309
8310     fi
8311   fi
8312
8313   
8314   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
8315 echo "configure:8316: checking for __builtin_sqrt declaration" >&5
8316   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
8317     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
8318   echo $ac_n "(cached) $ac_c" 1>&6
8319 else
8320   
8321       
8322       ac_ext=C
8323 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8324 ac_cpp='$CXXCPP $CPPFLAGS'
8325 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8326 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8327 cross_compiling=$ac_cv_prog_cxx_cross
8328
8329       cat > conftest.$ac_ext <<EOF
8330 #line 8331 "configure"
8331 #include "confdefs.h"
8332 #include <math.h>
8333 int main() {
8334  __builtin_sqrt(0);
8335 ; return 0; }
8336 EOF
8337 if { (eval echo configure:8338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8338   rm -rf conftest*
8339   glibcpp_cv_func___builtin_sqrt_use=yes
8340 else
8341   echo "configure: failed program was:" >&5
8342   cat conftest.$ac_ext >&5
8343   rm -rf conftest*
8344   glibcpp_cv_func___builtin_sqrt_use=no
8345 fi
8346 rm -f conftest*
8347       ac_ext=c
8348 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8349 ac_cpp='$CPP $CPPFLAGS'
8350 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8351 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8352 cross_compiling=$ac_cv_prog_cc_cross
8353
8354     
8355 fi
8356
8357   fi
8358   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
8359   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
8360     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
8361 echo "configure:8362: checking for __builtin_sqrt linkage" >&5
8362     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
8363       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
8364   echo $ac_n "(cached) $ac_c" 1>&6
8365 else
8366   
8367         cat > conftest.$ac_ext <<EOF
8368 #line 8369 "configure"
8369 #include "confdefs.h"
8370 #include <math.h>
8371 int main() {
8372  __builtin_sqrt(0);
8373 ; return 0; }
8374 EOF
8375 if { (eval echo configure:8376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8376   rm -rf conftest*
8377   glibcpp_cv_func___builtin_sqrt_link=yes
8378 else
8379   echo "configure: failed program was:" >&5
8380   cat conftest.$ac_ext >&5
8381   rm -rf conftest*
8382   glibcpp_cv_func___builtin_sqrt_link=no
8383 fi
8384 rm -f conftest*
8385       
8386 fi
8387
8388     fi
8389     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
8390     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
8391       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8392       cat >> confdefs.h <<EOF
8393 #define ${ac_tr_func} 1
8394 EOF
8395
8396     fi
8397   fi
8398
8399   
8400   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
8401 echo "configure:8402: checking for __builtin_sqrtl declaration" >&5
8402   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
8403     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
8404   echo $ac_n "(cached) $ac_c" 1>&6
8405 else
8406   
8407       
8408       ac_ext=C
8409 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8410 ac_cpp='$CXXCPP $CPPFLAGS'
8411 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8412 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8413 cross_compiling=$ac_cv_prog_cxx_cross
8414
8415       cat > conftest.$ac_ext <<EOF
8416 #line 8417 "configure"
8417 #include "confdefs.h"
8418 #include <math.h>
8419 int main() {
8420  __builtin_sqrtl(0);
8421 ; return 0; }
8422 EOF
8423 if { (eval echo configure:8424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8424   rm -rf conftest*
8425   glibcpp_cv_func___builtin_sqrtl_use=yes
8426 else
8427   echo "configure: failed program was:" >&5
8428   cat conftest.$ac_ext >&5
8429   rm -rf conftest*
8430   glibcpp_cv_func___builtin_sqrtl_use=no
8431 fi
8432 rm -f conftest*
8433       ac_ext=c
8434 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8435 ac_cpp='$CPP $CPPFLAGS'
8436 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8437 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8438 cross_compiling=$ac_cv_prog_cc_cross
8439
8440     
8441 fi
8442
8443   fi
8444   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
8445   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
8446     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
8447 echo "configure:8448: checking for __builtin_sqrtl linkage" >&5
8448     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
8449       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
8450   echo $ac_n "(cached) $ac_c" 1>&6
8451 else
8452   
8453         cat > conftest.$ac_ext <<EOF
8454 #line 8455 "configure"
8455 #include "confdefs.h"
8456 #include <math.h>
8457 int main() {
8458  __builtin_sqrtl(0);
8459 ; return 0; }
8460 EOF
8461 if { (eval echo configure:8462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8462   rm -rf conftest*
8463   glibcpp_cv_func___builtin_sqrtl_link=yes
8464 else
8465   echo "configure: failed program was:" >&5
8466   cat conftest.$ac_ext >&5
8467   rm -rf conftest*
8468   glibcpp_cv_func___builtin_sqrtl_link=no
8469 fi
8470 rm -f conftest*
8471       
8472 fi
8473
8474     fi
8475     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
8476     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
8477       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8478       cat >> confdefs.h <<EOF
8479 #define ${ac_tr_func} 1
8480 EOF
8481
8482     fi
8483   fi
8484
8485
8486   
8487   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
8488 echo "configure:8489: checking for __builtin_sinf declaration" >&5
8489   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
8490     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
8491   echo $ac_n "(cached) $ac_c" 1>&6
8492 else
8493   
8494       
8495       ac_ext=C
8496 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8497 ac_cpp='$CXXCPP $CPPFLAGS'
8498 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8499 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8500 cross_compiling=$ac_cv_prog_cxx_cross
8501
8502       cat > conftest.$ac_ext <<EOF
8503 #line 8504 "configure"
8504 #include "confdefs.h"
8505 #include <math.h>
8506 int main() {
8507  __builtin_sinf(0);
8508 ; return 0; }
8509 EOF
8510 if { (eval echo configure:8511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8511   rm -rf conftest*
8512   glibcpp_cv_func___builtin_sinf_use=yes
8513 else
8514   echo "configure: failed program was:" >&5
8515   cat conftest.$ac_ext >&5
8516   rm -rf conftest*
8517   glibcpp_cv_func___builtin_sinf_use=no
8518 fi
8519 rm -f conftest*
8520       ac_ext=c
8521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8522 ac_cpp='$CPP $CPPFLAGS'
8523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8524 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8525 cross_compiling=$ac_cv_prog_cc_cross
8526
8527     
8528 fi
8529
8530   fi
8531   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
8532   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
8533     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
8534 echo "configure:8535: checking for __builtin_sinf linkage" >&5
8535     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
8536       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
8537   echo $ac_n "(cached) $ac_c" 1>&6
8538 else
8539   
8540         cat > conftest.$ac_ext <<EOF
8541 #line 8542 "configure"
8542 #include "confdefs.h"
8543 #include <math.h>
8544 int main() {
8545  __builtin_sinf(0);
8546 ; return 0; }
8547 EOF
8548 if { (eval echo configure:8549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8549   rm -rf conftest*
8550   glibcpp_cv_func___builtin_sinf_link=yes
8551 else
8552   echo "configure: failed program was:" >&5
8553   cat conftest.$ac_ext >&5
8554   rm -rf conftest*
8555   glibcpp_cv_func___builtin_sinf_link=no
8556 fi
8557 rm -f conftest*
8558       
8559 fi
8560
8561     fi
8562     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
8563     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
8564       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8565       cat >> confdefs.h <<EOF
8566 #define ${ac_tr_func} 1
8567 EOF
8568
8569     fi
8570   fi
8571
8572   
8573   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
8574 echo "configure:8575: checking for __builtin_sin declaration" >&5
8575   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
8576     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
8577   echo $ac_n "(cached) $ac_c" 1>&6
8578 else
8579   
8580       
8581       ac_ext=C
8582 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8583 ac_cpp='$CXXCPP $CPPFLAGS'
8584 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8585 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8586 cross_compiling=$ac_cv_prog_cxx_cross
8587
8588       cat > conftest.$ac_ext <<EOF
8589 #line 8590 "configure"
8590 #include "confdefs.h"
8591 #include <math.h>
8592 int main() {
8593  __builtin_sin(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___builtin_sin_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___builtin_sin_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___builtin_sin_use" 1>&6
8618   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
8619     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
8620 echo "configure:8621: checking for __builtin_sin linkage" >&5
8621     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
8622       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
8623   echo $ac_n "(cached) $ac_c" 1>&6
8624 else
8625   
8626         cat > conftest.$ac_ext <<EOF
8627 #line 8628 "configure"
8628 #include "confdefs.h"
8629 #include <math.h>
8630 int main() {
8631  __builtin_sin(0);
8632 ; return 0; }
8633 EOF
8634 if { (eval echo configure:8635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8635   rm -rf conftest*
8636   glibcpp_cv_func___builtin_sin_link=yes
8637 else
8638   echo "configure: failed program was:" >&5
8639   cat conftest.$ac_ext >&5
8640   rm -rf conftest*
8641   glibcpp_cv_func___builtin_sin_link=no
8642 fi
8643 rm -f conftest*
8644       
8645 fi
8646
8647     fi
8648     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
8649     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
8650       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8651       cat >> confdefs.h <<EOF
8652 #define ${ac_tr_func} 1
8653 EOF
8654
8655     fi
8656   fi
8657
8658   
8659   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
8660 echo "configure:8661: checking for __builtin_sinl declaration" >&5
8661   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
8662     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
8663   echo $ac_n "(cached) $ac_c" 1>&6
8664 else
8665   
8666       
8667       ac_ext=C
8668 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8669 ac_cpp='$CXXCPP $CPPFLAGS'
8670 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8671 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8672 cross_compiling=$ac_cv_prog_cxx_cross
8673
8674       cat > conftest.$ac_ext <<EOF
8675 #line 8676 "configure"
8676 #include "confdefs.h"
8677 #include <math.h>
8678 int main() {
8679  __builtin_sinl(0);
8680 ; return 0; }
8681 EOF
8682 if { (eval echo configure:8683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8683   rm -rf conftest*
8684   glibcpp_cv_func___builtin_sinl_use=yes
8685 else
8686   echo "configure: failed program was:" >&5
8687   cat conftest.$ac_ext >&5
8688   rm -rf conftest*
8689   glibcpp_cv_func___builtin_sinl_use=no
8690 fi
8691 rm -f conftest*
8692       ac_ext=c
8693 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8694 ac_cpp='$CPP $CPPFLAGS'
8695 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8696 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8697 cross_compiling=$ac_cv_prog_cc_cross
8698
8699     
8700 fi
8701
8702   fi
8703   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
8704   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
8705     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
8706 echo "configure:8707: checking for __builtin_sinl linkage" >&5
8707     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
8708       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
8709   echo $ac_n "(cached) $ac_c" 1>&6
8710 else
8711   
8712         cat > conftest.$ac_ext <<EOF
8713 #line 8714 "configure"
8714 #include "confdefs.h"
8715 #include <math.h>
8716 int main() {
8717  __builtin_sinl(0);
8718 ; return 0; }
8719 EOF
8720 if { (eval echo configure:8721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8721   rm -rf conftest*
8722   glibcpp_cv_func___builtin_sinl_link=yes
8723 else
8724   echo "configure: failed program was:" >&5
8725   cat conftest.$ac_ext >&5
8726   rm -rf conftest*
8727   glibcpp_cv_func___builtin_sinl_link=no
8728 fi
8729 rm -f conftest*
8730       
8731 fi
8732
8733     fi
8734     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
8735     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
8736       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8737       cat >> confdefs.h <<EOF
8738 #define ${ac_tr_func} 1
8739 EOF
8740
8741     fi
8742   fi
8743
8744
8745   
8746   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
8747 echo "configure:8748: checking for __builtin_cosf declaration" >&5
8748   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
8749     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
8750   echo $ac_n "(cached) $ac_c" 1>&6
8751 else
8752   
8753       
8754       ac_ext=C
8755 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8756 ac_cpp='$CXXCPP $CPPFLAGS'
8757 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8758 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8759 cross_compiling=$ac_cv_prog_cxx_cross
8760
8761       cat > conftest.$ac_ext <<EOF
8762 #line 8763 "configure"
8763 #include "confdefs.h"
8764 #include <math.h>
8765 int main() {
8766  __builtin_cosf(0);
8767 ; return 0; }
8768 EOF
8769 if { (eval echo configure:8770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8770   rm -rf conftest*
8771   glibcpp_cv_func___builtin_cosf_use=yes
8772 else
8773   echo "configure: failed program was:" >&5
8774   cat conftest.$ac_ext >&5
8775   rm -rf conftest*
8776   glibcpp_cv_func___builtin_cosf_use=no
8777 fi
8778 rm -f conftest*
8779       ac_ext=c
8780 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8781 ac_cpp='$CPP $CPPFLAGS'
8782 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8783 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8784 cross_compiling=$ac_cv_prog_cc_cross
8785
8786     
8787 fi
8788
8789   fi
8790   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
8791   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
8792     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
8793 echo "configure:8794: checking for __builtin_cosf linkage" >&5
8794     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
8795       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
8796   echo $ac_n "(cached) $ac_c" 1>&6
8797 else
8798   
8799         cat > conftest.$ac_ext <<EOF
8800 #line 8801 "configure"
8801 #include "confdefs.h"
8802 #include <math.h>
8803 int main() {
8804  __builtin_cosf(0);
8805 ; return 0; }
8806 EOF
8807 if { (eval echo configure:8808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8808   rm -rf conftest*
8809   glibcpp_cv_func___builtin_cosf_link=yes
8810 else
8811   echo "configure: failed program was:" >&5
8812   cat conftest.$ac_ext >&5
8813   rm -rf conftest*
8814   glibcpp_cv_func___builtin_cosf_link=no
8815 fi
8816 rm -f conftest*
8817       
8818 fi
8819
8820     fi
8821     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
8822     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
8823       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8824       cat >> confdefs.h <<EOF
8825 #define ${ac_tr_func} 1
8826 EOF
8827
8828     fi
8829   fi
8830
8831   
8832   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
8833 echo "configure:8834: checking for __builtin_cos declaration" >&5
8834   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
8835     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
8836   echo $ac_n "(cached) $ac_c" 1>&6
8837 else
8838   
8839       
8840       ac_ext=C
8841 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8842 ac_cpp='$CXXCPP $CPPFLAGS'
8843 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8844 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8845 cross_compiling=$ac_cv_prog_cxx_cross
8846
8847       cat > conftest.$ac_ext <<EOF
8848 #line 8849 "configure"
8849 #include "confdefs.h"
8850 #include <math.h>
8851 int main() {
8852  __builtin_cos(0);
8853 ; return 0; }
8854 EOF
8855 if { (eval echo configure:8856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8856   rm -rf conftest*
8857   glibcpp_cv_func___builtin_cos_use=yes
8858 else
8859   echo "configure: failed program was:" >&5
8860   cat conftest.$ac_ext >&5
8861   rm -rf conftest*
8862   glibcpp_cv_func___builtin_cos_use=no
8863 fi
8864 rm -f conftest*
8865       ac_ext=c
8866 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8867 ac_cpp='$CPP $CPPFLAGS'
8868 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8869 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8870 cross_compiling=$ac_cv_prog_cc_cross
8871
8872     
8873 fi
8874
8875   fi
8876   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
8877   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
8878     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
8879 echo "configure:8880: checking for __builtin_cos linkage" >&5
8880     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
8881       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
8882   echo $ac_n "(cached) $ac_c" 1>&6
8883 else
8884   
8885         cat > conftest.$ac_ext <<EOF
8886 #line 8887 "configure"
8887 #include "confdefs.h"
8888 #include <math.h>
8889 int main() {
8890  __builtin_cos(0);
8891 ; return 0; }
8892 EOF
8893 if { (eval echo configure:8894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8894   rm -rf conftest*
8895   glibcpp_cv_func___builtin_cos_link=yes
8896 else
8897   echo "configure: failed program was:" >&5
8898   cat conftest.$ac_ext >&5
8899   rm -rf conftest*
8900   glibcpp_cv_func___builtin_cos_link=no
8901 fi
8902 rm -f conftest*
8903       
8904 fi
8905
8906     fi
8907     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
8908     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
8909       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8910       cat >> confdefs.h <<EOF
8911 #define ${ac_tr_func} 1
8912 EOF
8913
8914     fi
8915   fi
8916
8917   
8918   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
8919 echo "configure:8920: checking for __builtin_cosl declaration" >&5
8920   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
8921     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
8922   echo $ac_n "(cached) $ac_c" 1>&6
8923 else
8924   
8925       
8926       ac_ext=C
8927 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8928 ac_cpp='$CXXCPP $CPPFLAGS'
8929 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8930 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8931 cross_compiling=$ac_cv_prog_cxx_cross
8932
8933       cat > conftest.$ac_ext <<EOF
8934 #line 8935 "configure"
8935 #include "confdefs.h"
8936 #include <math.h>
8937 int main() {
8938  __builtin_cosl(0);
8939 ; return 0; }
8940 EOF
8941 if { (eval echo configure:8942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8942   rm -rf conftest*
8943   glibcpp_cv_func___builtin_cosl_use=yes
8944 else
8945   echo "configure: failed program was:" >&5
8946   cat conftest.$ac_ext >&5
8947   rm -rf conftest*
8948   glibcpp_cv_func___builtin_cosl_use=no
8949 fi
8950 rm -f conftest*
8951       ac_ext=c
8952 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8953 ac_cpp='$CPP $CPPFLAGS'
8954 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8955 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8956 cross_compiling=$ac_cv_prog_cc_cross
8957
8958     
8959 fi
8960
8961   fi
8962   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
8963   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
8964     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
8965 echo "configure:8966: checking for __builtin_cosl linkage" >&5
8966     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
8967       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
8968   echo $ac_n "(cached) $ac_c" 1>&6
8969 else
8970   
8971         cat > conftest.$ac_ext <<EOF
8972 #line 8973 "configure"
8973 #include "confdefs.h"
8974 #include <math.h>
8975 int main() {
8976  __builtin_cosl(0);
8977 ; return 0; }
8978 EOF
8979 if { (eval echo configure:8980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8980   rm -rf conftest*
8981   glibcpp_cv_func___builtin_cosl_link=yes
8982 else
8983   echo "configure: failed program was:" >&5
8984   cat conftest.$ac_ext >&5
8985   rm -rf conftest*
8986   glibcpp_cv_func___builtin_cosl_link=no
8987 fi
8988 rm -f conftest*
8989       
8990 fi
8991
8992     fi
8993     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
8994     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
8995       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8996       cat >> confdefs.h <<EOF
8997 #define ${ac_tr_func} 1
8998 EOF
8999
9000     fi
9001   fi
9002
9003
9004               dummyvar=no
9005   if test x$dummyvar = x"yes"; then
9006     cat >> confdefs.h <<\EOF
9007 #define HAVE___BUILTIN_ABS 1
9008 EOF
9009
9010     cat >> confdefs.h <<\EOF
9011 #define HAVE___BUILTIN_LABS 1
9012 EOF
9013
9014     cat >> confdefs.h <<\EOF
9015 #define HAVE___BUILTIN_COS 1
9016 EOF
9017
9018     cat >> confdefs.h <<\EOF
9019 #define HAVE___BUILTIN_COSF 1
9020 EOF
9021
9022     cat >> confdefs.h <<\EOF
9023 #define HAVE___BUILTIN_COSL 1
9024 EOF
9025
9026     cat >> confdefs.h <<\EOF
9027 #define HAVE___BUILTIN_FABS 1
9028 EOF
9029
9030     cat >> confdefs.h <<\EOF
9031 #define HAVE___BUILTIN_FABSF 1
9032 EOF
9033
9034     cat >> confdefs.h <<\EOF
9035 #define HAVE___BUILTIN_FABSL 1
9036 EOF
9037
9038     cat >> confdefs.h <<\EOF
9039 #define HAVE___BUILTIN_SIN 1
9040 EOF
9041
9042     cat >> confdefs.h <<\EOF
9043 #define HAVE___BUILTIN_SINF 1
9044 EOF
9045
9046     cat >> confdefs.h <<\EOF
9047 #define HAVE___BUILTIN_SINL 1
9048 EOF
9049
9050     cat >> confdefs.h <<\EOF
9051 #define HAVE___BUILTIN_SQRT 1
9052 EOF
9053
9054     cat >> confdefs.h <<\EOF
9055 #define HAVE___BUILTIN_SQRTF 1
9056 EOF
9057
9058     cat >> confdefs.h <<\EOF
9059 #define HAVE___BUILTIN_SQRTL 1
9060 EOF
9061
9062   fi
9063
9064   
9065   ac_test_CXXFLAGS="${CXXFLAGS+set}"
9066   ac_save_CXXFLAGS="$CXXFLAGS"
9067   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
9068
9069     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
9070 echo "configure:9071: checking for sin in -lm" >&5
9071 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
9072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9073   echo $ac_n "(cached) $ac_c" 1>&6
9074 else
9075   ac_save_LIBS="$LIBS"
9076 LIBS="-lm  $LIBS"
9077 cat > conftest.$ac_ext <<EOF
9078 #line 9079 "configure"
9079 #include "confdefs.h"
9080 /* Override any gcc2 internal prototype to avoid an error.  */
9081 /* We use char because int might match the return type of a gcc2
9082     builtin and then its argument prototype would still apply.  */
9083 char sin();
9084
9085 int main() {
9086 sin()
9087 ; return 0; }
9088 EOF
9089 if { (eval echo configure:9090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9090   rm -rf conftest*
9091   eval "ac_cv_lib_$ac_lib_var=yes"
9092 else
9093   echo "configure: failed program was:" >&5
9094   cat conftest.$ac_ext >&5
9095   rm -rf conftest*
9096   eval "ac_cv_lib_$ac_lib_var=no"
9097 fi
9098 rm -f conftest*
9099 LIBS="$ac_save_LIBS"
9100
9101 fi
9102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9103   echo "$ac_t""yes" 1>&6
9104   libm="-lm"
9105 else
9106   echo "$ac_t""no" 1>&6
9107 fi
9108
9109   ac_save_LIBS="$LIBS"
9110   LIBS="$LIBS $libm"
9111
9112     
9113   
9114   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
9115 echo "configure:9116: checking for isinf declaration" >&5
9116   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
9117     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
9118   echo $ac_n "(cached) $ac_c" 1>&6
9119 else
9120   
9121       
9122       ac_ext=C
9123 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9124 ac_cpp='$CXXCPP $CPPFLAGS'
9125 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9126 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9127 cross_compiling=$ac_cv_prog_cxx_cross
9128
9129       cat > conftest.$ac_ext <<EOF
9130 #line 9131 "configure"
9131 #include "confdefs.h"
9132 #include <math.h>
9133                       #ifdef HAVE_IEEEFP_H
9134                       #include <ieeefp.h>
9135                       #endif
9136                      
9137 int main() {
9138  isinf(0);
9139 ; return 0; }
9140 EOF
9141 if { (eval echo configure:9142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9142   rm -rf conftest*
9143   glibcpp_cv_func_isinf_use=yes
9144 else
9145   echo "configure: failed program was:" >&5
9146   cat conftest.$ac_ext >&5
9147   rm -rf conftest*
9148   glibcpp_cv_func_isinf_use=no
9149 fi
9150 rm -f conftest*
9151       ac_ext=c
9152 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9153 ac_cpp='$CPP $CPPFLAGS'
9154 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9155 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9156 cross_compiling=$ac_cv_prog_cc_cross
9157
9158     
9159 fi
9160
9161   fi
9162   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
9163
9164   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
9165     for ac_func in isinf
9166 do
9167 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9168 echo "configure:9169: checking for $ac_func" >&5
9169 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9170   echo $ac_n "(cached) $ac_c" 1>&6
9171 else
9172   cat > conftest.$ac_ext <<EOF
9173 #line 9174 "configure"
9174 #include "confdefs.h"
9175 /* System header to define __stub macros and hopefully few prototypes,
9176     which can conflict with char $ac_func(); below.  */
9177 #include <assert.h>
9178 /* Override any gcc2 internal prototype to avoid an error.  */
9179 /* We use char because int might match the return type of a gcc2
9180     builtin and then its argument prototype would still apply.  */
9181 char $ac_func();
9182
9183 int main() {
9184
9185 /* The GNU C library defines this for functions which it implements
9186     to always fail with ENOSYS.  Some functions are actually named
9187     something starting with __ and the normal name is an alias.  */
9188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9189 choke me
9190 #else
9191 $ac_func();
9192 #endif
9193
9194 ; return 0; }
9195 EOF
9196 if { (eval echo configure:9197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9197   rm -rf conftest*
9198   eval "ac_cv_func_$ac_func=yes"
9199 else
9200   echo "configure: failed program was:" >&5
9201   cat conftest.$ac_ext >&5
9202   rm -rf conftest*
9203   eval "ac_cv_func_$ac_func=no"
9204 fi
9205 rm -f conftest*
9206 fi
9207
9208 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9209   echo "$ac_t""yes" 1>&6
9210     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9211   cat >> confdefs.h <<EOF
9212 #define $ac_tr_func 1
9213 EOF
9214  
9215 else
9216   echo "$ac_t""no" 1>&6
9217 fi
9218 done
9219     
9220   else
9221     
9222   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
9223 echo "configure:9224: checking for _isinf declaration" >&5
9224   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
9225     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
9226   echo $ac_n "(cached) $ac_c" 1>&6
9227 else
9228   
9229       
9230       ac_ext=C
9231 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9232 ac_cpp='$CXXCPP $CPPFLAGS'
9233 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9234 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9235 cross_compiling=$ac_cv_prog_cxx_cross
9236
9237       cat > conftest.$ac_ext <<EOF
9238 #line 9239 "configure"
9239 #include "confdefs.h"
9240 #include <math.h>
9241                       #ifdef HAVE_IEEEFP_H
9242                       #include <ieeefp.h>
9243                       #endif
9244                      
9245 int main() {
9246  _isinf(0);
9247 ; return 0; }
9248 EOF
9249 if { (eval echo configure:9250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9250   rm -rf conftest*
9251   glibcpp_cv_func__isinf_use=yes
9252 else
9253   echo "configure: failed program was:" >&5
9254   cat conftest.$ac_ext >&5
9255   rm -rf conftest*
9256   glibcpp_cv_func__isinf_use=no
9257 fi
9258 rm -f conftest*
9259       ac_ext=c
9260 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9261 ac_cpp='$CPP $CPPFLAGS'
9262 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9263 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9264 cross_compiling=$ac_cv_prog_cc_cross
9265
9266     
9267 fi
9268
9269   fi
9270   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
9271
9272     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
9273       for ac_func in _isinf
9274 do
9275 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9276 echo "configure:9277: checking for $ac_func" >&5
9277 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9278   echo $ac_n "(cached) $ac_c" 1>&6
9279 else
9280   cat > conftest.$ac_ext <<EOF
9281 #line 9282 "configure"
9282 #include "confdefs.h"
9283 /* System header to define __stub macros and hopefully few prototypes,
9284     which can conflict with char $ac_func(); below.  */
9285 #include <assert.h>
9286 /* Override any gcc2 internal prototype to avoid an error.  */
9287 /* We use char because int might match the return type of a gcc2
9288     builtin and then its argument prototype would still apply.  */
9289 char $ac_func();
9290
9291 int main() {
9292
9293 /* The GNU C library defines this for functions which it implements
9294     to always fail with ENOSYS.  Some functions are actually named
9295     something starting with __ and the normal name is an alias.  */
9296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9297 choke me
9298 #else
9299 $ac_func();
9300 #endif
9301
9302 ; return 0; }
9303 EOF
9304 if { (eval echo configure:9305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9305   rm -rf conftest*
9306   eval "ac_cv_func_$ac_func=yes"
9307 else
9308   echo "configure: failed program was:" >&5
9309   cat conftest.$ac_ext >&5
9310   rm -rf conftest*
9311   eval "ac_cv_func_$ac_func=no"
9312 fi
9313 rm -f conftest*
9314 fi
9315
9316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9317   echo "$ac_t""yes" 1>&6
9318     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9319   cat >> confdefs.h <<EOF
9320 #define $ac_tr_func 1
9321 EOF
9322  
9323 else
9324   echo "$ac_t""no" 1>&6
9325 fi
9326 done
9327     
9328     fi
9329   fi
9330
9331   
9332   
9333   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
9334 echo "configure:9335: checking for isnan declaration" >&5
9335   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
9336     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
9337   echo $ac_n "(cached) $ac_c" 1>&6
9338 else
9339   
9340       
9341       ac_ext=C
9342 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9343 ac_cpp='$CXXCPP $CPPFLAGS'
9344 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9345 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9346 cross_compiling=$ac_cv_prog_cxx_cross
9347
9348       cat > conftest.$ac_ext <<EOF
9349 #line 9350 "configure"
9350 #include "confdefs.h"
9351 #include <math.h>
9352                       #ifdef HAVE_IEEEFP_H
9353                       #include <ieeefp.h>
9354                       #endif
9355                      
9356 int main() {
9357  isnan(0);
9358 ; return 0; }
9359 EOF
9360 if { (eval echo configure:9361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9361   rm -rf conftest*
9362   glibcpp_cv_func_isnan_use=yes
9363 else
9364   echo "configure: failed program was:" >&5
9365   cat conftest.$ac_ext >&5
9366   rm -rf conftest*
9367   glibcpp_cv_func_isnan_use=no
9368 fi
9369 rm -f conftest*
9370       ac_ext=c
9371 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9372 ac_cpp='$CPP $CPPFLAGS'
9373 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9374 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9375 cross_compiling=$ac_cv_prog_cc_cross
9376
9377     
9378 fi
9379
9380   fi
9381   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
9382
9383   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
9384     for ac_func in isnan
9385 do
9386 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9387 echo "configure:9388: checking for $ac_func" >&5
9388 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9389   echo $ac_n "(cached) $ac_c" 1>&6
9390 else
9391   cat > conftest.$ac_ext <<EOF
9392 #line 9393 "configure"
9393 #include "confdefs.h"
9394 /* System header to define __stub macros and hopefully few prototypes,
9395     which can conflict with char $ac_func(); below.  */
9396 #include <assert.h>
9397 /* Override any gcc2 internal prototype to avoid an error.  */
9398 /* We use char because int might match the return type of a gcc2
9399     builtin and then its argument prototype would still apply.  */
9400 char $ac_func();
9401
9402 int main() {
9403
9404 /* The GNU C library defines this for functions which it implements
9405     to always fail with ENOSYS.  Some functions are actually named
9406     something starting with __ and the normal name is an alias.  */
9407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9408 choke me
9409 #else
9410 $ac_func();
9411 #endif
9412
9413 ; return 0; }
9414 EOF
9415 if { (eval echo configure:9416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9416   rm -rf conftest*
9417   eval "ac_cv_func_$ac_func=yes"
9418 else
9419   echo "configure: failed program was:" >&5
9420   cat conftest.$ac_ext >&5
9421   rm -rf conftest*
9422   eval "ac_cv_func_$ac_func=no"
9423 fi
9424 rm -f conftest*
9425 fi
9426
9427 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9428   echo "$ac_t""yes" 1>&6
9429     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9430   cat >> confdefs.h <<EOF
9431 #define $ac_tr_func 1
9432 EOF
9433  
9434 else
9435   echo "$ac_t""no" 1>&6
9436 fi
9437 done
9438     
9439   else
9440     
9441   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
9442 echo "configure:9443: checking for _isnan declaration" >&5
9443   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
9444     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
9445   echo $ac_n "(cached) $ac_c" 1>&6
9446 else
9447   
9448       
9449       ac_ext=C
9450 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9451 ac_cpp='$CXXCPP $CPPFLAGS'
9452 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9453 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9454 cross_compiling=$ac_cv_prog_cxx_cross
9455
9456       cat > conftest.$ac_ext <<EOF
9457 #line 9458 "configure"
9458 #include "confdefs.h"
9459 #include <math.h>
9460                       #ifdef HAVE_IEEEFP_H
9461                       #include <ieeefp.h>
9462                       #endif
9463                      
9464 int main() {
9465  _isnan(0);
9466 ; return 0; }
9467 EOF
9468 if { (eval echo configure:9469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9469   rm -rf conftest*
9470   glibcpp_cv_func__isnan_use=yes
9471 else
9472   echo "configure: failed program was:" >&5
9473   cat conftest.$ac_ext >&5
9474   rm -rf conftest*
9475   glibcpp_cv_func__isnan_use=no
9476 fi
9477 rm -f conftest*
9478       ac_ext=c
9479 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9480 ac_cpp='$CPP $CPPFLAGS'
9481 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9482 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9483 cross_compiling=$ac_cv_prog_cc_cross
9484
9485     
9486 fi
9487
9488   fi
9489   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
9490
9491     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
9492       for ac_func in _isnan
9493 do
9494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9495 echo "configure:9496: checking for $ac_func" >&5
9496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9497   echo $ac_n "(cached) $ac_c" 1>&6
9498 else
9499   cat > conftest.$ac_ext <<EOF
9500 #line 9501 "configure"
9501 #include "confdefs.h"
9502 /* System header to define __stub macros and hopefully few prototypes,
9503     which can conflict with char $ac_func(); below.  */
9504 #include <assert.h>
9505 /* Override any gcc2 internal prototype to avoid an error.  */
9506 /* We use char because int might match the return type of a gcc2
9507     builtin and then its argument prototype would still apply.  */
9508 char $ac_func();
9509
9510 int main() {
9511
9512 /* The GNU C library defines this for functions which it implements
9513     to always fail with ENOSYS.  Some functions are actually named
9514     something starting with __ and the normal name is an alias.  */
9515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9516 choke me
9517 #else
9518 $ac_func();
9519 #endif
9520
9521 ; return 0; }
9522 EOF
9523 if { (eval echo configure:9524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9524   rm -rf conftest*
9525   eval "ac_cv_func_$ac_func=yes"
9526 else
9527   echo "configure: failed program was:" >&5
9528   cat conftest.$ac_ext >&5
9529   rm -rf conftest*
9530   eval "ac_cv_func_$ac_func=no"
9531 fi
9532 rm -f conftest*
9533 fi
9534
9535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9536   echo "$ac_t""yes" 1>&6
9537     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9538   cat >> confdefs.h <<EOF
9539 #define $ac_tr_func 1
9540 EOF
9541  
9542 else
9543   echo "$ac_t""no" 1>&6
9544 fi
9545 done
9546     
9547     fi
9548   fi
9549
9550   
9551   
9552   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
9553 echo "configure:9554: checking for finite declaration" >&5
9554   if test x${glibcpp_cv_func_finite_use+set} != xset; then
9555     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
9556   echo $ac_n "(cached) $ac_c" 1>&6
9557 else
9558   
9559       
9560       ac_ext=C
9561 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9562 ac_cpp='$CXXCPP $CPPFLAGS'
9563 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9564 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9565 cross_compiling=$ac_cv_prog_cxx_cross
9566
9567       cat > conftest.$ac_ext <<EOF
9568 #line 9569 "configure"
9569 #include "confdefs.h"
9570 #include <math.h>
9571                       #ifdef HAVE_IEEEFP_H
9572                       #include <ieeefp.h>
9573                       #endif
9574                      
9575 int main() {
9576  finite(0);
9577 ; return 0; }
9578 EOF
9579 if { (eval echo configure:9580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9580   rm -rf conftest*
9581   glibcpp_cv_func_finite_use=yes
9582 else
9583   echo "configure: failed program was:" >&5
9584   cat conftest.$ac_ext >&5
9585   rm -rf conftest*
9586   glibcpp_cv_func_finite_use=no
9587 fi
9588 rm -f conftest*
9589       ac_ext=c
9590 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9591 ac_cpp='$CPP $CPPFLAGS'
9592 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9593 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9594 cross_compiling=$ac_cv_prog_cc_cross
9595
9596     
9597 fi
9598
9599   fi
9600   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
9601
9602   if test x$glibcpp_cv_func_finite_use = x"yes"; then
9603     for ac_func in finite
9604 do
9605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9606 echo "configure:9607: checking for $ac_func" >&5
9607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9608   echo $ac_n "(cached) $ac_c" 1>&6
9609 else
9610   cat > conftest.$ac_ext <<EOF
9611 #line 9612 "configure"
9612 #include "confdefs.h"
9613 /* System header to define __stub macros and hopefully few prototypes,
9614     which can conflict with char $ac_func(); below.  */
9615 #include <assert.h>
9616 /* Override any gcc2 internal prototype to avoid an error.  */
9617 /* We use char because int might match the return type of a gcc2
9618     builtin and then its argument prototype would still apply.  */
9619 char $ac_func();
9620
9621 int main() {
9622
9623 /* The GNU C library defines this for functions which it implements
9624     to always fail with ENOSYS.  Some functions are actually named
9625     something starting with __ and the normal name is an alias.  */
9626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9627 choke me
9628 #else
9629 $ac_func();
9630 #endif
9631
9632 ; return 0; }
9633 EOF
9634 if { (eval echo configure:9635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9635   rm -rf conftest*
9636   eval "ac_cv_func_$ac_func=yes"
9637 else
9638   echo "configure: failed program was:" >&5
9639   cat conftest.$ac_ext >&5
9640   rm -rf conftest*
9641   eval "ac_cv_func_$ac_func=no"
9642 fi
9643 rm -f conftest*
9644 fi
9645
9646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9647   echo "$ac_t""yes" 1>&6
9648     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9649   cat >> confdefs.h <<EOF
9650 #define $ac_tr_func 1
9651 EOF
9652  
9653 else
9654   echo "$ac_t""no" 1>&6
9655 fi
9656 done
9657     
9658   else
9659     
9660   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
9661 echo "configure:9662: checking for _finite declaration" >&5
9662   if test x${glibcpp_cv_func__finite_use+set} != xset; then
9663     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
9664   echo $ac_n "(cached) $ac_c" 1>&6
9665 else
9666   
9667       
9668       ac_ext=C
9669 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9670 ac_cpp='$CXXCPP $CPPFLAGS'
9671 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9672 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9673 cross_compiling=$ac_cv_prog_cxx_cross
9674
9675       cat > conftest.$ac_ext <<EOF
9676 #line 9677 "configure"
9677 #include "confdefs.h"
9678 #include <math.h>
9679                       #ifdef HAVE_IEEEFP_H
9680                       #include <ieeefp.h>
9681                       #endif
9682                      
9683 int main() {
9684  _finite(0);
9685 ; return 0; }
9686 EOF
9687 if { (eval echo configure:9688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9688   rm -rf conftest*
9689   glibcpp_cv_func__finite_use=yes
9690 else
9691   echo "configure: failed program was:" >&5
9692   cat conftest.$ac_ext >&5
9693   rm -rf conftest*
9694   glibcpp_cv_func__finite_use=no
9695 fi
9696 rm -f conftest*
9697       ac_ext=c
9698 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9699 ac_cpp='$CPP $CPPFLAGS'
9700 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9701 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9702 cross_compiling=$ac_cv_prog_cc_cross
9703
9704     
9705 fi
9706
9707   fi
9708   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
9709
9710     if test x$glibcpp_cv_func__finite_use = x"yes"; then
9711       for ac_func in _finite
9712 do
9713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9714 echo "configure:9715: checking for $ac_func" >&5
9715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9716   echo $ac_n "(cached) $ac_c" 1>&6
9717 else
9718   cat > conftest.$ac_ext <<EOF
9719 #line 9720 "configure"
9720 #include "confdefs.h"
9721 /* System header to define __stub macros and hopefully few prototypes,
9722     which can conflict with char $ac_func(); below.  */
9723 #include <assert.h>
9724 /* Override any gcc2 internal prototype to avoid an error.  */
9725 /* We use char because int might match the return type of a gcc2
9726     builtin and then its argument prototype would still apply.  */
9727 char $ac_func();
9728
9729 int main() {
9730
9731 /* The GNU C library defines this for functions which it implements
9732     to always fail with ENOSYS.  Some functions are actually named
9733     something starting with __ and the normal name is an alias.  */
9734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9735 choke me
9736 #else
9737 $ac_func();
9738 #endif
9739
9740 ; return 0; }
9741 EOF
9742 if { (eval echo configure:9743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9743   rm -rf conftest*
9744   eval "ac_cv_func_$ac_func=yes"
9745 else
9746   echo "configure: failed program was:" >&5
9747   cat conftest.$ac_ext >&5
9748   rm -rf conftest*
9749   eval "ac_cv_func_$ac_func=no"
9750 fi
9751 rm -f conftest*
9752 fi
9753
9754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9755   echo "$ac_t""yes" 1>&6
9756     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9757   cat >> confdefs.h <<EOF
9758 #define $ac_tr_func 1
9759 EOF
9760  
9761 else
9762   echo "$ac_t""no" 1>&6
9763 fi
9764 done
9765     
9766     fi
9767   fi
9768
9769   
9770   
9771   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
9772 echo "configure:9773: checking for copysign declaration" >&5
9773   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
9774     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
9775   echo $ac_n "(cached) $ac_c" 1>&6
9776 else
9777   
9778       
9779       ac_ext=C
9780 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9781 ac_cpp='$CXXCPP $CPPFLAGS'
9782 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9783 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9784 cross_compiling=$ac_cv_prog_cxx_cross
9785
9786       cat > conftest.$ac_ext <<EOF
9787 #line 9788 "configure"
9788 #include "confdefs.h"
9789 #include <math.h>
9790 int main() {
9791  copysign(0, 0);
9792 ; return 0; }
9793 EOF
9794 if { (eval echo configure:9795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9795   rm -rf conftest*
9796   glibcpp_cv_func_copysign_use=yes
9797 else
9798   echo "configure: failed program was:" >&5
9799   cat conftest.$ac_ext >&5
9800   rm -rf conftest*
9801   glibcpp_cv_func_copysign_use=no
9802 fi
9803 rm -f conftest*
9804       ac_ext=c
9805 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9806 ac_cpp='$CPP $CPPFLAGS'
9807 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9808 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9809 cross_compiling=$ac_cv_prog_cc_cross
9810
9811     
9812 fi
9813
9814   fi
9815   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
9816
9817   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
9818     for ac_func in copysign
9819 do
9820 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9821 echo "configure:9822: checking for $ac_func" >&5
9822 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9823   echo $ac_n "(cached) $ac_c" 1>&6
9824 else
9825   cat > conftest.$ac_ext <<EOF
9826 #line 9827 "configure"
9827 #include "confdefs.h"
9828 /* System header to define __stub macros and hopefully few prototypes,
9829     which can conflict with char $ac_func(); below.  */
9830 #include <assert.h>
9831 /* Override any gcc2 internal prototype to avoid an error.  */
9832 /* We use char because int might match the return type of a gcc2
9833     builtin and then its argument prototype would still apply.  */
9834 char $ac_func();
9835
9836 int main() {
9837
9838 /* The GNU C library defines this for functions which it implements
9839     to always fail with ENOSYS.  Some functions are actually named
9840     something starting with __ and the normal name is an alias.  */
9841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9842 choke me
9843 #else
9844 $ac_func();
9845 #endif
9846
9847 ; return 0; }
9848 EOF
9849 if { (eval echo configure:9850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9850   rm -rf conftest*
9851   eval "ac_cv_func_$ac_func=yes"
9852 else
9853   echo "configure: failed program was:" >&5
9854   cat conftest.$ac_ext >&5
9855   rm -rf conftest*
9856   eval "ac_cv_func_$ac_func=no"
9857 fi
9858 rm -f conftest*
9859 fi
9860
9861 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9862   echo "$ac_t""yes" 1>&6
9863     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9864   cat >> confdefs.h <<EOF
9865 #define $ac_tr_func 1
9866 EOF
9867  
9868 else
9869   echo "$ac_t""no" 1>&6
9870 fi
9871 done
9872     
9873   else
9874     
9875   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
9876 echo "configure:9877: checking for _copysign declaration" >&5
9877   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
9878     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
9879   echo $ac_n "(cached) $ac_c" 1>&6
9880 else
9881   
9882       
9883       ac_ext=C
9884 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9885 ac_cpp='$CXXCPP $CPPFLAGS'
9886 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9887 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9888 cross_compiling=$ac_cv_prog_cxx_cross
9889
9890       cat > conftest.$ac_ext <<EOF
9891 #line 9892 "configure"
9892 #include "confdefs.h"
9893 #include <math.h>
9894 int main() {
9895  _copysign(0, 0);
9896 ; return 0; }
9897 EOF
9898 if { (eval echo configure:9899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9899   rm -rf conftest*
9900   glibcpp_cv_func__copysign_use=yes
9901 else
9902   echo "configure: failed program was:" >&5
9903   cat conftest.$ac_ext >&5
9904   rm -rf conftest*
9905   glibcpp_cv_func__copysign_use=no
9906 fi
9907 rm -f conftest*
9908       ac_ext=c
9909 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9910 ac_cpp='$CPP $CPPFLAGS'
9911 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9912 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9913 cross_compiling=$ac_cv_prog_cc_cross
9914
9915     
9916 fi
9917
9918   fi
9919   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
9920
9921     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
9922       for ac_func in _copysign
9923 do
9924 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9925 echo "configure:9926: checking for $ac_func" >&5
9926 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9927   echo $ac_n "(cached) $ac_c" 1>&6
9928 else
9929   cat > conftest.$ac_ext <<EOF
9930 #line 9931 "configure"
9931 #include "confdefs.h"
9932 /* System header to define __stub macros and hopefully few prototypes,
9933     which can conflict with char $ac_func(); below.  */
9934 #include <assert.h>
9935 /* Override any gcc2 internal prototype to avoid an error.  */
9936 /* We use char because int might match the return type of a gcc2
9937     builtin and then its argument prototype would still apply.  */
9938 char $ac_func();
9939
9940 int main() {
9941
9942 /* The GNU C library defines this for functions which it implements
9943     to always fail with ENOSYS.  Some functions are actually named
9944     something starting with __ and the normal name is an alias.  */
9945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9946 choke me
9947 #else
9948 $ac_func();
9949 #endif
9950
9951 ; return 0; }
9952 EOF
9953 if { (eval echo configure:9954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9954   rm -rf conftest*
9955   eval "ac_cv_func_$ac_func=yes"
9956 else
9957   echo "configure: failed program was:" >&5
9958   cat conftest.$ac_ext >&5
9959   rm -rf conftest*
9960   eval "ac_cv_func_$ac_func=no"
9961 fi
9962 rm -f conftest*
9963 fi
9964
9965 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9966   echo "$ac_t""yes" 1>&6
9967     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9968   cat >> confdefs.h <<EOF
9969 #define $ac_tr_func 1
9970 EOF
9971  
9972 else
9973   echo "$ac_t""no" 1>&6
9974 fi
9975 done
9976     
9977     fi
9978   fi
9979
9980   
9981   
9982   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
9983 echo "configure:9984: checking for sincos declaration" >&5
9984   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
9985     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
9986   echo $ac_n "(cached) $ac_c" 1>&6
9987 else
9988   
9989       
9990       ac_ext=C
9991 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9992 ac_cpp='$CXXCPP $CPPFLAGS'
9993 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9994 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9995 cross_compiling=$ac_cv_prog_cxx_cross
9996
9997       cat > conftest.$ac_ext <<EOF
9998 #line 9999 "configure"
9999 #include "confdefs.h"
10000 #include <math.h>
10001 int main() {
10002  sincos(0, 0, 0);
10003 ; return 0; }
10004 EOF
10005 if { (eval echo configure:10006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10006   rm -rf conftest*
10007   glibcpp_cv_func_sincos_use=yes
10008 else
10009   echo "configure: failed program was:" >&5
10010   cat conftest.$ac_ext >&5
10011   rm -rf conftest*
10012   glibcpp_cv_func_sincos_use=no
10013 fi
10014 rm -f conftest*
10015       ac_ext=c
10016 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10017 ac_cpp='$CPP $CPPFLAGS'
10018 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10019 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10020 cross_compiling=$ac_cv_prog_cc_cross
10021
10022     
10023 fi
10024
10025   fi
10026   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
10027
10028   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
10029     for ac_func in sincos
10030 do
10031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10032 echo "configure:10033: checking for $ac_func" >&5
10033 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10034   echo $ac_n "(cached) $ac_c" 1>&6
10035 else
10036   cat > conftest.$ac_ext <<EOF
10037 #line 10038 "configure"
10038 #include "confdefs.h"
10039 /* System header to define __stub macros and hopefully few prototypes,
10040     which can conflict with char $ac_func(); below.  */
10041 #include <assert.h>
10042 /* Override any gcc2 internal prototype to avoid an error.  */
10043 /* We use char because int might match the return type of a gcc2
10044     builtin and then its argument prototype would still apply.  */
10045 char $ac_func();
10046
10047 int main() {
10048
10049 /* The GNU C library defines this for functions which it implements
10050     to always fail with ENOSYS.  Some functions are actually named
10051     something starting with __ and the normal name is an alias.  */
10052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10053 choke me
10054 #else
10055 $ac_func();
10056 #endif
10057
10058 ; return 0; }
10059 EOF
10060 if { (eval echo configure:10061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10061   rm -rf conftest*
10062   eval "ac_cv_func_$ac_func=yes"
10063 else
10064   echo "configure: failed program was:" >&5
10065   cat conftest.$ac_ext >&5
10066   rm -rf conftest*
10067   eval "ac_cv_func_$ac_func=no"
10068 fi
10069 rm -f conftest*
10070 fi
10071
10072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10073   echo "$ac_t""yes" 1>&6
10074     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10075   cat >> confdefs.h <<EOF
10076 #define $ac_tr_func 1
10077 EOF
10078  
10079 else
10080   echo "$ac_t""no" 1>&6
10081 fi
10082 done
10083     
10084   else
10085     
10086   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
10087 echo "configure:10088: checking for _sincos declaration" >&5
10088   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
10089     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
10090   echo $ac_n "(cached) $ac_c" 1>&6
10091 else
10092   
10093       
10094       ac_ext=C
10095 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10096 ac_cpp='$CXXCPP $CPPFLAGS'
10097 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10098 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10099 cross_compiling=$ac_cv_prog_cxx_cross
10100
10101       cat > conftest.$ac_ext <<EOF
10102 #line 10103 "configure"
10103 #include "confdefs.h"
10104 #include <math.h>
10105 int main() {
10106  _sincos(0, 0, 0);
10107 ; return 0; }
10108 EOF
10109 if { (eval echo configure:10110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10110   rm -rf conftest*
10111   glibcpp_cv_func__sincos_use=yes
10112 else
10113   echo "configure: failed program was:" >&5
10114   cat conftest.$ac_ext >&5
10115   rm -rf conftest*
10116   glibcpp_cv_func__sincos_use=no
10117 fi
10118 rm -f conftest*
10119       ac_ext=c
10120 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10121 ac_cpp='$CPP $CPPFLAGS'
10122 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10123 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10124 cross_compiling=$ac_cv_prog_cc_cross
10125
10126     
10127 fi
10128
10129   fi
10130   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
10131
10132     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
10133       for ac_func in _sincos
10134 do
10135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10136 echo "configure:10137: checking for $ac_func" >&5
10137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10138   echo $ac_n "(cached) $ac_c" 1>&6
10139 else
10140   cat > conftest.$ac_ext <<EOF
10141 #line 10142 "configure"
10142 #include "confdefs.h"
10143 /* System header to define __stub macros and hopefully few prototypes,
10144     which can conflict with char $ac_func(); below.  */
10145 #include <assert.h>
10146 /* Override any gcc2 internal prototype to avoid an error.  */
10147 /* We use char because int might match the return type of a gcc2
10148     builtin and then its argument prototype would still apply.  */
10149 char $ac_func();
10150
10151 int main() {
10152
10153 /* The GNU C library defines this for functions which it implements
10154     to always fail with ENOSYS.  Some functions are actually named
10155     something starting with __ and the normal name is an alias.  */
10156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10157 choke me
10158 #else
10159 $ac_func();
10160 #endif
10161
10162 ; return 0; }
10163 EOF
10164 if { (eval echo configure:10165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10165   rm -rf conftest*
10166   eval "ac_cv_func_$ac_func=yes"
10167 else
10168   echo "configure: failed program was:" >&5
10169   cat conftest.$ac_ext >&5
10170   rm -rf conftest*
10171   eval "ac_cv_func_$ac_func=no"
10172 fi
10173 rm -f conftest*
10174 fi
10175
10176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10177   echo "$ac_t""yes" 1>&6
10178     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10179   cat >> confdefs.h <<EOF
10180 #define $ac_tr_func 1
10181 EOF
10182  
10183 else
10184   echo "$ac_t""no" 1>&6
10185 fi
10186 done
10187     
10188     fi
10189   fi
10190
10191   
10192   
10193   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
10194 echo "configure:10195: checking for fpclass declaration" >&5
10195   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
10196     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
10197   echo $ac_n "(cached) $ac_c" 1>&6
10198 else
10199   
10200       
10201       ac_ext=C
10202 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10203 ac_cpp='$CXXCPP $CPPFLAGS'
10204 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10205 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10206 cross_compiling=$ac_cv_prog_cxx_cross
10207
10208       cat > conftest.$ac_ext <<EOF
10209 #line 10210 "configure"
10210 #include "confdefs.h"
10211 #include <math.h>
10212                       #ifdef HAVE_IEEEFP_H
10213                       #include <ieeefp.h>
10214                       #endif
10215                      
10216 int main() {
10217  fpclass(0);
10218 ; return 0; }
10219 EOF
10220 if { (eval echo configure:10221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10221   rm -rf conftest*
10222   glibcpp_cv_func_fpclass_use=yes
10223 else
10224   echo "configure: failed program was:" >&5
10225   cat conftest.$ac_ext >&5
10226   rm -rf conftest*
10227   glibcpp_cv_func_fpclass_use=no
10228 fi
10229 rm -f conftest*
10230       ac_ext=c
10231 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10232 ac_cpp='$CPP $CPPFLAGS'
10233 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10234 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10235 cross_compiling=$ac_cv_prog_cc_cross
10236
10237     
10238 fi
10239
10240   fi
10241   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
10242
10243   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
10244     for ac_func in fpclass
10245 do
10246 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10247 echo "configure:10248: checking for $ac_func" >&5
10248 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10249   echo $ac_n "(cached) $ac_c" 1>&6
10250 else
10251   cat > conftest.$ac_ext <<EOF
10252 #line 10253 "configure"
10253 #include "confdefs.h"
10254 /* System header to define __stub macros and hopefully few prototypes,
10255     which can conflict with char $ac_func(); below.  */
10256 #include <assert.h>
10257 /* Override any gcc2 internal prototype to avoid an error.  */
10258 /* We use char because int might match the return type of a gcc2
10259     builtin and then its argument prototype would still apply.  */
10260 char $ac_func();
10261
10262 int main() {
10263
10264 /* The GNU C library defines this for functions which it implements
10265     to always fail with ENOSYS.  Some functions are actually named
10266     something starting with __ and the normal name is an alias.  */
10267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10268 choke me
10269 #else
10270 $ac_func();
10271 #endif
10272
10273 ; return 0; }
10274 EOF
10275 if { (eval echo configure:10276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10276   rm -rf conftest*
10277   eval "ac_cv_func_$ac_func=yes"
10278 else
10279   echo "configure: failed program was:" >&5
10280   cat conftest.$ac_ext >&5
10281   rm -rf conftest*
10282   eval "ac_cv_func_$ac_func=no"
10283 fi
10284 rm -f conftest*
10285 fi
10286
10287 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10288   echo "$ac_t""yes" 1>&6
10289     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10290   cat >> confdefs.h <<EOF
10291 #define $ac_tr_func 1
10292 EOF
10293  
10294 else
10295   echo "$ac_t""no" 1>&6
10296 fi
10297 done
10298     
10299   else
10300     
10301   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
10302 echo "configure:10303: checking for _fpclass declaration" >&5
10303   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
10304     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
10305   echo $ac_n "(cached) $ac_c" 1>&6
10306 else
10307   
10308       
10309       ac_ext=C
10310 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10311 ac_cpp='$CXXCPP $CPPFLAGS'
10312 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10313 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10314 cross_compiling=$ac_cv_prog_cxx_cross
10315
10316       cat > conftest.$ac_ext <<EOF
10317 #line 10318 "configure"
10318 #include "confdefs.h"
10319 #include <math.h>
10320                       #ifdef HAVE_IEEEFP_H
10321                       #include <ieeefp.h>
10322                       #endif
10323                      
10324 int main() {
10325  _fpclass(0);
10326 ; return 0; }
10327 EOF
10328 if { (eval echo configure:10329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10329   rm -rf conftest*
10330   glibcpp_cv_func__fpclass_use=yes
10331 else
10332   echo "configure: failed program was:" >&5
10333   cat conftest.$ac_ext >&5
10334   rm -rf conftest*
10335   glibcpp_cv_func__fpclass_use=no
10336 fi
10337 rm -f conftest*
10338       ac_ext=c
10339 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10340 ac_cpp='$CPP $CPPFLAGS'
10341 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10342 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10343 cross_compiling=$ac_cv_prog_cc_cross
10344
10345     
10346 fi
10347
10348   fi
10349   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
10350
10351     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
10352       for ac_func in _fpclass
10353 do
10354 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10355 echo "configure:10356: checking for $ac_func" >&5
10356 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10357   echo $ac_n "(cached) $ac_c" 1>&6
10358 else
10359   cat > conftest.$ac_ext <<EOF
10360 #line 10361 "configure"
10361 #include "confdefs.h"
10362 /* System header to define __stub macros and hopefully few prototypes,
10363     which can conflict with char $ac_func(); below.  */
10364 #include <assert.h>
10365 /* Override any gcc2 internal prototype to avoid an error.  */
10366 /* We use char because int might match the return type of a gcc2
10367     builtin and then its argument prototype would still apply.  */
10368 char $ac_func();
10369
10370 int main() {
10371
10372 /* The GNU C library defines this for functions which it implements
10373     to always fail with ENOSYS.  Some functions are actually named
10374     something starting with __ and the normal name is an alias.  */
10375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10376 choke me
10377 #else
10378 $ac_func();
10379 #endif
10380
10381 ; return 0; }
10382 EOF
10383 if { (eval echo configure:10384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10384   rm -rf conftest*
10385   eval "ac_cv_func_$ac_func=yes"
10386 else
10387   echo "configure: failed program was:" >&5
10388   cat conftest.$ac_ext >&5
10389   rm -rf conftest*
10390   eval "ac_cv_func_$ac_func=no"
10391 fi
10392 rm -f conftest*
10393 fi
10394
10395 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10396   echo "$ac_t""yes" 1>&6
10397     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10398   cat >> confdefs.h <<EOF
10399 #define $ac_tr_func 1
10400 EOF
10401  
10402 else
10403   echo "$ac_t""no" 1>&6
10404 fi
10405 done
10406     
10407     fi
10408   fi
10409
10410   
10411   
10412   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
10413 echo "configure:10414: checking for qfpclass declaration" >&5
10414   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
10415     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
10416   echo $ac_n "(cached) $ac_c" 1>&6
10417 else
10418   
10419       
10420       ac_ext=C
10421 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10422 ac_cpp='$CXXCPP $CPPFLAGS'
10423 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10424 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10425 cross_compiling=$ac_cv_prog_cxx_cross
10426
10427       cat > conftest.$ac_ext <<EOF
10428 #line 10429 "configure"
10429 #include "confdefs.h"
10430 #include <math.h>
10431                       #ifdef HAVE_IEEEFP_H
10432                       #include <ieeefp.h>
10433                       #endif
10434                      
10435 int main() {
10436  qfpclass(0);
10437 ; return 0; }
10438 EOF
10439 if { (eval echo configure:10440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10440   rm -rf conftest*
10441   glibcpp_cv_func_qfpclass_use=yes
10442 else
10443   echo "configure: failed program was:" >&5
10444   cat conftest.$ac_ext >&5
10445   rm -rf conftest*
10446   glibcpp_cv_func_qfpclass_use=no
10447 fi
10448 rm -f conftest*
10449       ac_ext=c
10450 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10451 ac_cpp='$CPP $CPPFLAGS'
10452 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10453 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10454 cross_compiling=$ac_cv_prog_cc_cross
10455
10456     
10457 fi
10458
10459   fi
10460   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
10461
10462   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
10463     for ac_func in qfpclass
10464 do
10465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10466 echo "configure:10467: checking for $ac_func" >&5
10467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10468   echo $ac_n "(cached) $ac_c" 1>&6
10469 else
10470   cat > conftest.$ac_ext <<EOF
10471 #line 10472 "configure"
10472 #include "confdefs.h"
10473 /* System header to define __stub macros and hopefully few prototypes,
10474     which can conflict with char $ac_func(); below.  */
10475 #include <assert.h>
10476 /* Override any gcc2 internal prototype to avoid an error.  */
10477 /* We use char because int might match the return type of a gcc2
10478     builtin and then its argument prototype would still apply.  */
10479 char $ac_func();
10480
10481 int main() {
10482
10483 /* The GNU C library defines this for functions which it implements
10484     to always fail with ENOSYS.  Some functions are actually named
10485     something starting with __ and the normal name is an alias.  */
10486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10487 choke me
10488 #else
10489 $ac_func();
10490 #endif
10491
10492 ; return 0; }
10493 EOF
10494 if { (eval echo configure:10495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10495   rm -rf conftest*
10496   eval "ac_cv_func_$ac_func=yes"
10497 else
10498   echo "configure: failed program was:" >&5
10499   cat conftest.$ac_ext >&5
10500   rm -rf conftest*
10501   eval "ac_cv_func_$ac_func=no"
10502 fi
10503 rm -f conftest*
10504 fi
10505
10506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10507   echo "$ac_t""yes" 1>&6
10508     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10509   cat >> confdefs.h <<EOF
10510 #define $ac_tr_func 1
10511 EOF
10512  
10513 else
10514   echo "$ac_t""no" 1>&6
10515 fi
10516 done
10517     
10518   else
10519     
10520   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
10521 echo "configure:10522: checking for _qfpclass declaration" >&5
10522   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
10523     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
10524   echo $ac_n "(cached) $ac_c" 1>&6
10525 else
10526   
10527       
10528       ac_ext=C
10529 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10530 ac_cpp='$CXXCPP $CPPFLAGS'
10531 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10532 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10533 cross_compiling=$ac_cv_prog_cxx_cross
10534
10535       cat > conftest.$ac_ext <<EOF
10536 #line 10537 "configure"
10537 #include "confdefs.h"
10538 #include <math.h>
10539                       #ifdef HAVE_IEEEFP_H
10540                       #include <ieeefp.h>
10541                       #endif
10542                      
10543 int main() {
10544  _qfpclass(0);
10545 ; return 0; }
10546 EOF
10547 if { (eval echo configure:10548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10548   rm -rf conftest*
10549   glibcpp_cv_func__qfpclass_use=yes
10550 else
10551   echo "configure: failed program was:" >&5
10552   cat conftest.$ac_ext >&5
10553   rm -rf conftest*
10554   glibcpp_cv_func__qfpclass_use=no
10555 fi
10556 rm -f conftest*
10557       ac_ext=c
10558 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10559 ac_cpp='$CPP $CPPFLAGS'
10560 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10561 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10562 cross_compiling=$ac_cv_prog_cc_cross
10563
10564     
10565 fi
10566
10567   fi
10568   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
10569
10570     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
10571       for ac_func in _qfpclass
10572 do
10573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10574 echo "configure:10575: checking for $ac_func" >&5
10575 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10576   echo $ac_n "(cached) $ac_c" 1>&6
10577 else
10578   cat > conftest.$ac_ext <<EOF
10579 #line 10580 "configure"
10580 #include "confdefs.h"
10581 /* System header to define __stub macros and hopefully few prototypes,
10582     which can conflict with char $ac_func(); below.  */
10583 #include <assert.h>
10584 /* Override any gcc2 internal prototype to avoid an error.  */
10585 /* We use char because int might match the return type of a gcc2
10586     builtin and then its argument prototype would still apply.  */
10587 char $ac_func();
10588
10589 int main() {
10590
10591 /* The GNU C library defines this for functions which it implements
10592     to always fail with ENOSYS.  Some functions are actually named
10593     something starting with __ and the normal name is an alias.  */
10594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10595 choke me
10596 #else
10597 $ac_func();
10598 #endif
10599
10600 ; return 0; }
10601 EOF
10602 if { (eval echo configure:10603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10603   rm -rf conftest*
10604   eval "ac_cv_func_$ac_func=yes"
10605 else
10606   echo "configure: failed program was:" >&5
10607   cat conftest.$ac_ext >&5
10608   rm -rf conftest*
10609   eval "ac_cv_func_$ac_func=no"
10610 fi
10611 rm -f conftest*
10612 fi
10613
10614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10615   echo "$ac_t""yes" 1>&6
10616     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10617   cat >> confdefs.h <<EOF
10618 #define $ac_tr_func 1
10619 EOF
10620  
10621 else
10622   echo "$ac_t""no" 1>&6
10623 fi
10624 done
10625     
10626     fi
10627   fi
10628
10629   
10630   
10631   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
10632 echo "configure:10633: checking for hypot declaration" >&5
10633   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
10634     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
10635   echo $ac_n "(cached) $ac_c" 1>&6
10636 else
10637   
10638       
10639       ac_ext=C
10640 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10641 ac_cpp='$CXXCPP $CPPFLAGS'
10642 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10643 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10644 cross_compiling=$ac_cv_prog_cxx_cross
10645
10646       cat > conftest.$ac_ext <<EOF
10647 #line 10648 "configure"
10648 #include "confdefs.h"
10649 #include <math.h>
10650 int main() {
10651  hypot(0, 0);
10652 ; return 0; }
10653 EOF
10654 if { (eval echo configure:10655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10655   rm -rf conftest*
10656   glibcpp_cv_func_hypot_use=yes
10657 else
10658   echo "configure: failed program was:" >&5
10659   cat conftest.$ac_ext >&5
10660   rm -rf conftest*
10661   glibcpp_cv_func_hypot_use=no
10662 fi
10663 rm -f conftest*
10664       ac_ext=c
10665 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10666 ac_cpp='$CPP $CPPFLAGS'
10667 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10668 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10669 cross_compiling=$ac_cv_prog_cc_cross
10670
10671     
10672 fi
10673
10674   fi
10675   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
10676
10677   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
10678     for ac_func in hypot
10679 do
10680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10681 echo "configure:10682: checking for $ac_func" >&5
10682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10683   echo $ac_n "(cached) $ac_c" 1>&6
10684 else
10685   cat > conftest.$ac_ext <<EOF
10686 #line 10687 "configure"
10687 #include "confdefs.h"
10688 /* System header to define __stub macros and hopefully few prototypes,
10689     which can conflict with char $ac_func(); below.  */
10690 #include <assert.h>
10691 /* Override any gcc2 internal prototype to avoid an error.  */
10692 /* We use char because int might match the return type of a gcc2
10693     builtin and then its argument prototype would still apply.  */
10694 char $ac_func();
10695
10696 int main() {
10697
10698 /* The GNU C library defines this for functions which it implements
10699     to always fail with ENOSYS.  Some functions are actually named
10700     something starting with __ and the normal name is an alias.  */
10701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10702 choke me
10703 #else
10704 $ac_func();
10705 #endif
10706
10707 ; return 0; }
10708 EOF
10709 if { (eval echo configure:10710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10710   rm -rf conftest*
10711   eval "ac_cv_func_$ac_func=yes"
10712 else
10713   echo "configure: failed program was:" >&5
10714   cat conftest.$ac_ext >&5
10715   rm -rf conftest*
10716   eval "ac_cv_func_$ac_func=no"
10717 fi
10718 rm -f conftest*
10719 fi
10720
10721 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10722   echo "$ac_t""yes" 1>&6
10723     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10724   cat >> confdefs.h <<EOF
10725 #define $ac_tr_func 1
10726 EOF
10727  
10728 else
10729   echo "$ac_t""no" 1>&6
10730 fi
10731 done
10732     
10733   else
10734     
10735   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
10736 echo "configure:10737: checking for _hypot declaration" >&5
10737   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
10738     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
10739   echo $ac_n "(cached) $ac_c" 1>&6
10740 else
10741   
10742       
10743       ac_ext=C
10744 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10745 ac_cpp='$CXXCPP $CPPFLAGS'
10746 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10747 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10748 cross_compiling=$ac_cv_prog_cxx_cross
10749
10750       cat > conftest.$ac_ext <<EOF
10751 #line 10752 "configure"
10752 #include "confdefs.h"
10753 #include <math.h>
10754 int main() {
10755  _hypot(0, 0);
10756 ; return 0; }
10757 EOF
10758 if { (eval echo configure:10759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10759   rm -rf conftest*
10760   glibcpp_cv_func__hypot_use=yes
10761 else
10762   echo "configure: failed program was:" >&5
10763   cat conftest.$ac_ext >&5
10764   rm -rf conftest*
10765   glibcpp_cv_func__hypot_use=no
10766 fi
10767 rm -f conftest*
10768       ac_ext=c
10769 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10770 ac_cpp='$CPP $CPPFLAGS'
10771 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10772 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10773 cross_compiling=$ac_cv_prog_cc_cross
10774
10775     
10776 fi
10777
10778   fi
10779   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
10780
10781     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
10782       for ac_func in _hypot
10783 do
10784 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10785 echo "configure:10786: checking for $ac_func" >&5
10786 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10787   echo $ac_n "(cached) $ac_c" 1>&6
10788 else
10789   cat > conftest.$ac_ext <<EOF
10790 #line 10791 "configure"
10791 #include "confdefs.h"
10792 /* System header to define __stub macros and hopefully few prototypes,
10793     which can conflict with char $ac_func(); below.  */
10794 #include <assert.h>
10795 /* Override any gcc2 internal prototype to avoid an error.  */
10796 /* We use char because int might match the return type of a gcc2
10797     builtin and then its argument prototype would still apply.  */
10798 char $ac_func();
10799
10800 int main() {
10801
10802 /* The GNU C library defines this for functions which it implements
10803     to always fail with ENOSYS.  Some functions are actually named
10804     something starting with __ and the normal name is an alias.  */
10805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10806 choke me
10807 #else
10808 $ac_func();
10809 #endif
10810
10811 ; return 0; }
10812 EOF
10813 if { (eval echo configure:10814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10814   rm -rf conftest*
10815   eval "ac_cv_func_$ac_func=yes"
10816 else
10817   echo "configure: failed program was:" >&5
10818   cat conftest.$ac_ext >&5
10819   rm -rf conftest*
10820   eval "ac_cv_func_$ac_func=no"
10821 fi
10822 rm -f conftest*
10823 fi
10824
10825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10826   echo "$ac_t""yes" 1>&6
10827     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10828   cat >> confdefs.h <<EOF
10829 #define $ac_tr_func 1
10830 EOF
10831  
10832 else
10833   echo "$ac_t""no" 1>&6
10834 fi
10835 done
10836     
10837     fi
10838   fi
10839
10840
10841     
10842   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
10843 echo "configure:10844: checking for float trig functions" >&5
10844   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
10845   echo $ac_n "(cached) $ac_c" 1>&6
10846 else
10847   
10848     
10849     ac_ext=C
10850 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10851 ac_cpp='$CXXCPP $CPPFLAGS'
10852 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10853 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10854 cross_compiling=$ac_cv_prog_cxx_cross
10855
10856     cat > conftest.$ac_ext <<EOF
10857 #line 10858 "configure"
10858 #include "confdefs.h"
10859 #include <math.h>
10860 int main() {
10861  `for x in acosf asinf atanf \
10862                                           cosf sinf tanf \
10863                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
10864 ; return 0; }
10865 EOF
10866 if { (eval echo configure:10867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10867   rm -rf conftest*
10868   glibcpp_cv_func_float_trig_use=yes
10869 else
10870   echo "configure: failed program was:" >&5
10871   cat conftest.$ac_ext >&5
10872   rm -rf conftest*
10873   glibcpp_cv_func_float_trig_use=no
10874 fi
10875 rm -f conftest*
10876     ac_ext=c
10877 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10878 ac_cpp='$CPP $CPPFLAGS'
10879 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10880 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10881 cross_compiling=$ac_cv_prog_cc_cross
10882
10883 fi
10884
10885   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
10886   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
10887     for ac_func in acosf asinf atanf \
10888                                           cosf sinf tanf \
10889                                           coshf sinhf tanhf
10890 do
10891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10892 echo "configure:10893: checking for $ac_func" >&5
10893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10894   echo $ac_n "(cached) $ac_c" 1>&6
10895 else
10896   cat > conftest.$ac_ext <<EOF
10897 #line 10898 "configure"
10898 #include "confdefs.h"
10899 /* System header to define __stub macros and hopefully few prototypes,
10900     which can conflict with char $ac_func(); below.  */
10901 #include <assert.h>
10902 /* Override any gcc2 internal prototype to avoid an error.  */
10903 /* We use char because int might match the return type of a gcc2
10904     builtin and then its argument prototype would still apply.  */
10905 char $ac_func();
10906
10907 int main() {
10908
10909 /* The GNU C library defines this for functions which it implements
10910     to always fail with ENOSYS.  Some functions are actually named
10911     something starting with __ and the normal name is an alias.  */
10912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10913 choke me
10914 #else
10915 $ac_func();
10916 #endif
10917
10918 ; return 0; }
10919 EOF
10920 if { (eval echo configure:10921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10921   rm -rf conftest*
10922   eval "ac_cv_func_$ac_func=yes"
10923 else
10924   echo "configure: failed program was:" >&5
10925   cat conftest.$ac_ext >&5
10926   rm -rf conftest*
10927   eval "ac_cv_func_$ac_func=no"
10928 fi
10929 rm -f conftest*
10930 fi
10931
10932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10933   echo "$ac_t""yes" 1>&6
10934     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10935   cat >> confdefs.h <<EOF
10936 #define $ac_tr_func 1
10937 EOF
10938  
10939 else
10940   echo "$ac_t""no" 1>&6
10941 fi
10942 done
10943
10944   fi
10945
10946   
10947   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
10948 echo "configure:10949: checking for float round functions" >&5
10949   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
10950   echo $ac_n "(cached) $ac_c" 1>&6
10951 else
10952   
10953     
10954     ac_ext=C
10955 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10956 ac_cpp='$CXXCPP $CPPFLAGS'
10957 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10958 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10959 cross_compiling=$ac_cv_prog_cxx_cross
10960
10961     cat > conftest.$ac_ext <<EOF
10962 #line 10963 "configure"
10963 #include "confdefs.h"
10964 #include <math.h>
10965 int main() {
10966  `for x in ceilf floorf; do echo "$x (0);"; done` 
10967 ; return 0; }
10968 EOF
10969 if { (eval echo configure:10970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10970   rm -rf conftest*
10971   glibcpp_cv_func_float_round_use=yes
10972 else
10973   echo "configure: failed program was:" >&5
10974   cat conftest.$ac_ext >&5
10975   rm -rf conftest*
10976   glibcpp_cv_func_float_round_use=no
10977 fi
10978 rm -f conftest*
10979     ac_ext=c
10980 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10981 ac_cpp='$CPP $CPPFLAGS'
10982 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10983 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10984 cross_compiling=$ac_cv_prog_cc_cross
10985
10986 fi
10987
10988   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
10989   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
10990     for ac_func in ceilf floorf
10991 do
10992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10993 echo "configure:10994: checking for $ac_func" >&5
10994 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10995   echo $ac_n "(cached) $ac_c" 1>&6
10996 else
10997   cat > conftest.$ac_ext <<EOF
10998 #line 10999 "configure"
10999 #include "confdefs.h"
11000 /* System header to define __stub macros and hopefully few prototypes,
11001     which can conflict with char $ac_func(); below.  */
11002 #include <assert.h>
11003 /* Override any gcc2 internal prototype to avoid an error.  */
11004 /* We use char because int might match the return type of a gcc2
11005     builtin and then its argument prototype would still apply.  */
11006 char $ac_func();
11007
11008 int main() {
11009
11010 /* The GNU C library defines this for functions which it implements
11011     to always fail with ENOSYS.  Some functions are actually named
11012     something starting with __ and the normal name is an alias.  */
11013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11014 choke me
11015 #else
11016 $ac_func();
11017 #endif
11018
11019 ; return 0; }
11020 EOF
11021 if { (eval echo configure:11022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11022   rm -rf conftest*
11023   eval "ac_cv_func_$ac_func=yes"
11024 else
11025   echo "configure: failed program was:" >&5
11026   cat conftest.$ac_ext >&5
11027   rm -rf conftest*
11028   eval "ac_cv_func_$ac_func=no"
11029 fi
11030 rm -f conftest*
11031 fi
11032
11033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11034   echo "$ac_t""yes" 1>&6
11035     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11036   cat >> confdefs.h <<EOF
11037 #define $ac_tr_func 1
11038 EOF
11039  
11040 else
11041   echo "$ac_t""no" 1>&6
11042 fi
11043 done
11044
11045   fi
11046
11047   
11048   
11049   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
11050 echo "configure:11051: checking for isnanf declaration" >&5
11051   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
11052     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
11053   echo $ac_n "(cached) $ac_c" 1>&6
11054 else
11055   
11056       
11057       ac_ext=C
11058 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11059 ac_cpp='$CXXCPP $CPPFLAGS'
11060 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11061 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11062 cross_compiling=$ac_cv_prog_cxx_cross
11063
11064       cat > conftest.$ac_ext <<EOF
11065 #line 11066 "configure"
11066 #include "confdefs.h"
11067 #include <math.h>
11068                       #ifdef HAVE_IEEEFP_H
11069                       #include <ieeefp.h>
11070                       #endif
11071                      
11072 int main() {
11073  isnanf(0);
11074 ; return 0; }
11075 EOF
11076 if { (eval echo configure:11077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11077   rm -rf conftest*
11078   glibcpp_cv_func_isnanf_use=yes
11079 else
11080   echo "configure: failed program was:" >&5
11081   cat conftest.$ac_ext >&5
11082   rm -rf conftest*
11083   glibcpp_cv_func_isnanf_use=no
11084 fi
11085 rm -f conftest*
11086       ac_ext=c
11087 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11088 ac_cpp='$CPP $CPPFLAGS'
11089 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11090 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11091 cross_compiling=$ac_cv_prog_cc_cross
11092
11093     
11094 fi
11095
11096   fi
11097   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
11098
11099   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
11100     for ac_func in isnanf
11101 do
11102 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11103 echo "configure:11104: checking for $ac_func" >&5
11104 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11105   echo $ac_n "(cached) $ac_c" 1>&6
11106 else
11107   cat > conftest.$ac_ext <<EOF
11108 #line 11109 "configure"
11109 #include "confdefs.h"
11110 /* System header to define __stub macros and hopefully few prototypes,
11111     which can conflict with char $ac_func(); below.  */
11112 #include <assert.h>
11113 /* Override any gcc2 internal prototype to avoid an error.  */
11114 /* We use char because int might match the return type of a gcc2
11115     builtin and then its argument prototype would still apply.  */
11116 char $ac_func();
11117
11118 int main() {
11119
11120 /* The GNU C library defines this for functions which it implements
11121     to always fail with ENOSYS.  Some functions are actually named
11122     something starting with __ and the normal name is an alias.  */
11123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11124 choke me
11125 #else
11126 $ac_func();
11127 #endif
11128
11129 ; return 0; }
11130 EOF
11131 if { (eval echo configure:11132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11132   rm -rf conftest*
11133   eval "ac_cv_func_$ac_func=yes"
11134 else
11135   echo "configure: failed program was:" >&5
11136   cat conftest.$ac_ext >&5
11137   rm -rf conftest*
11138   eval "ac_cv_func_$ac_func=no"
11139 fi
11140 rm -f conftest*
11141 fi
11142
11143 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11144   echo "$ac_t""yes" 1>&6
11145     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11146   cat >> confdefs.h <<EOF
11147 #define $ac_tr_func 1
11148 EOF
11149  
11150 else
11151   echo "$ac_t""no" 1>&6
11152 fi
11153 done
11154     
11155   else
11156     
11157   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
11158 echo "configure:11159: checking for _isnanf declaration" >&5
11159   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
11160     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
11161   echo $ac_n "(cached) $ac_c" 1>&6
11162 else
11163   
11164       
11165       ac_ext=C
11166 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11167 ac_cpp='$CXXCPP $CPPFLAGS'
11168 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11169 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11170 cross_compiling=$ac_cv_prog_cxx_cross
11171
11172       cat > conftest.$ac_ext <<EOF
11173 #line 11174 "configure"
11174 #include "confdefs.h"
11175 #include <math.h>
11176                       #ifdef HAVE_IEEEFP_H
11177                       #include <ieeefp.h>
11178                       #endif
11179                      
11180 int main() {
11181  _isnanf(0);
11182 ; return 0; }
11183 EOF
11184 if { (eval echo configure:11185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11185   rm -rf conftest*
11186   glibcpp_cv_func__isnanf_use=yes
11187 else
11188   echo "configure: failed program was:" >&5
11189   cat conftest.$ac_ext >&5
11190   rm -rf conftest*
11191   glibcpp_cv_func__isnanf_use=no
11192 fi
11193 rm -f conftest*
11194       ac_ext=c
11195 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11196 ac_cpp='$CPP $CPPFLAGS'
11197 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11198 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11199 cross_compiling=$ac_cv_prog_cc_cross
11200
11201     
11202 fi
11203
11204   fi
11205   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
11206
11207     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
11208       for ac_func in _isnanf
11209 do
11210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11211 echo "configure:11212: checking for $ac_func" >&5
11212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11213   echo $ac_n "(cached) $ac_c" 1>&6
11214 else
11215   cat > conftest.$ac_ext <<EOF
11216 #line 11217 "configure"
11217 #include "confdefs.h"
11218 /* System header to define __stub macros and hopefully few prototypes,
11219     which can conflict with char $ac_func(); below.  */
11220 #include <assert.h>
11221 /* Override any gcc2 internal prototype to avoid an error.  */
11222 /* We use char because int might match the return type of a gcc2
11223     builtin and then its argument prototype would still apply.  */
11224 char $ac_func();
11225
11226 int main() {
11227
11228 /* The GNU C library defines this for functions which it implements
11229     to always fail with ENOSYS.  Some functions are actually named
11230     something starting with __ and the normal name is an alias.  */
11231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11232 choke me
11233 #else
11234 $ac_func();
11235 #endif
11236
11237 ; return 0; }
11238 EOF
11239 if { (eval echo configure:11240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11240   rm -rf conftest*
11241   eval "ac_cv_func_$ac_func=yes"
11242 else
11243   echo "configure: failed program was:" >&5
11244   cat conftest.$ac_ext >&5
11245   rm -rf conftest*
11246   eval "ac_cv_func_$ac_func=no"
11247 fi
11248 rm -f conftest*
11249 fi
11250
11251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11252   echo "$ac_t""yes" 1>&6
11253     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11254   cat >> confdefs.h <<EOF
11255 #define $ac_tr_func 1
11256 EOF
11257  
11258 else
11259   echo "$ac_t""no" 1>&6
11260 fi
11261 done
11262     
11263     fi
11264   fi
11265
11266   
11267   
11268   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
11269 echo "configure:11270: checking for isinff declaration" >&5
11270   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
11271     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
11272   echo $ac_n "(cached) $ac_c" 1>&6
11273 else
11274   
11275       
11276       ac_ext=C
11277 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11278 ac_cpp='$CXXCPP $CPPFLAGS'
11279 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11280 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11281 cross_compiling=$ac_cv_prog_cxx_cross
11282
11283       cat > conftest.$ac_ext <<EOF
11284 #line 11285 "configure"
11285 #include "confdefs.h"
11286 #include <math.h>
11287                       #ifdef HAVE_IEEEFP_H
11288                       #include <ieeefp.h>
11289                       #endif
11290                      
11291 int main() {
11292  isinff(0);
11293 ; return 0; }
11294 EOF
11295 if { (eval echo configure:11296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11296   rm -rf conftest*
11297   glibcpp_cv_func_isinff_use=yes
11298 else
11299   echo "configure: failed program was:" >&5
11300   cat conftest.$ac_ext >&5
11301   rm -rf conftest*
11302   glibcpp_cv_func_isinff_use=no
11303 fi
11304 rm -f conftest*
11305       ac_ext=c
11306 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11307 ac_cpp='$CPP $CPPFLAGS'
11308 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11309 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11310 cross_compiling=$ac_cv_prog_cc_cross
11311
11312     
11313 fi
11314
11315   fi
11316   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
11317
11318   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
11319     for ac_func in isinff
11320 do
11321 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11322 echo "configure:11323: checking for $ac_func" >&5
11323 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11324   echo $ac_n "(cached) $ac_c" 1>&6
11325 else
11326   cat > conftest.$ac_ext <<EOF
11327 #line 11328 "configure"
11328 #include "confdefs.h"
11329 /* System header to define __stub macros and hopefully few prototypes,
11330     which can conflict with char $ac_func(); below.  */
11331 #include <assert.h>
11332 /* Override any gcc2 internal prototype to avoid an error.  */
11333 /* We use char because int might match the return type of a gcc2
11334     builtin and then its argument prototype would still apply.  */
11335 char $ac_func();
11336
11337 int main() {
11338
11339 /* The GNU C library defines this for functions which it implements
11340     to always fail with ENOSYS.  Some functions are actually named
11341     something starting with __ and the normal name is an alias.  */
11342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11343 choke me
11344 #else
11345 $ac_func();
11346 #endif
11347
11348 ; return 0; }
11349 EOF
11350 if { (eval echo configure:11351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11351   rm -rf conftest*
11352   eval "ac_cv_func_$ac_func=yes"
11353 else
11354   echo "configure: failed program was:" >&5
11355   cat conftest.$ac_ext >&5
11356   rm -rf conftest*
11357   eval "ac_cv_func_$ac_func=no"
11358 fi
11359 rm -f conftest*
11360 fi
11361
11362 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11363   echo "$ac_t""yes" 1>&6
11364     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11365   cat >> confdefs.h <<EOF
11366 #define $ac_tr_func 1
11367 EOF
11368  
11369 else
11370   echo "$ac_t""no" 1>&6
11371 fi
11372 done
11373     
11374   else
11375     
11376   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
11377 echo "configure:11378: checking for _isinff declaration" >&5
11378   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
11379     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
11380   echo $ac_n "(cached) $ac_c" 1>&6
11381 else
11382   
11383       
11384       ac_ext=C
11385 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11386 ac_cpp='$CXXCPP $CPPFLAGS'
11387 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11388 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11389 cross_compiling=$ac_cv_prog_cxx_cross
11390
11391       cat > conftest.$ac_ext <<EOF
11392 #line 11393 "configure"
11393 #include "confdefs.h"
11394 #include <math.h>
11395                       #ifdef HAVE_IEEEFP_H
11396                       #include <ieeefp.h>
11397                       #endif
11398                      
11399 int main() {
11400  _isinff(0);
11401 ; return 0; }
11402 EOF
11403 if { (eval echo configure:11404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11404   rm -rf conftest*
11405   glibcpp_cv_func__isinff_use=yes
11406 else
11407   echo "configure: failed program was:" >&5
11408   cat conftest.$ac_ext >&5
11409   rm -rf conftest*
11410   glibcpp_cv_func__isinff_use=no
11411 fi
11412 rm -f conftest*
11413       ac_ext=c
11414 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11415 ac_cpp='$CPP $CPPFLAGS'
11416 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11417 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11418 cross_compiling=$ac_cv_prog_cc_cross
11419
11420     
11421 fi
11422
11423   fi
11424   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
11425
11426     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
11427       for ac_func in _isinff
11428 do
11429 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11430 echo "configure:11431: checking for $ac_func" >&5
11431 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11432   echo $ac_n "(cached) $ac_c" 1>&6
11433 else
11434   cat > conftest.$ac_ext <<EOF
11435 #line 11436 "configure"
11436 #include "confdefs.h"
11437 /* System header to define __stub macros and hopefully few prototypes,
11438     which can conflict with char $ac_func(); below.  */
11439 #include <assert.h>
11440 /* Override any gcc2 internal prototype to avoid an error.  */
11441 /* We use char because int might match the return type of a gcc2
11442     builtin and then its argument prototype would still apply.  */
11443 char $ac_func();
11444
11445 int main() {
11446
11447 /* The GNU C library defines this for functions which it implements
11448     to always fail with ENOSYS.  Some functions are actually named
11449     something starting with __ and the normal name is an alias.  */
11450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11451 choke me
11452 #else
11453 $ac_func();
11454 #endif
11455
11456 ; return 0; }
11457 EOF
11458 if { (eval echo configure:11459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11459   rm -rf conftest*
11460   eval "ac_cv_func_$ac_func=yes"
11461 else
11462   echo "configure: failed program was:" >&5
11463   cat conftest.$ac_ext >&5
11464   rm -rf conftest*
11465   eval "ac_cv_func_$ac_func=no"
11466 fi
11467 rm -f conftest*
11468 fi
11469
11470 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11471   echo "$ac_t""yes" 1>&6
11472     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11473   cat >> confdefs.h <<EOF
11474 #define $ac_tr_func 1
11475 EOF
11476  
11477 else
11478   echo "$ac_t""no" 1>&6
11479 fi
11480 done
11481     
11482     fi
11483   fi
11484
11485   
11486   
11487   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
11488 echo "configure:11489: checking for atan2f declaration" >&5
11489   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
11490     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
11491   echo $ac_n "(cached) $ac_c" 1>&6
11492 else
11493   
11494       
11495       ac_ext=C
11496 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11497 ac_cpp='$CXXCPP $CPPFLAGS'
11498 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11499 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11500 cross_compiling=$ac_cv_prog_cxx_cross
11501
11502       cat > conftest.$ac_ext <<EOF
11503 #line 11504 "configure"
11504 #include "confdefs.h"
11505 #include <math.h>
11506 int main() {
11507  atan2f(0, 0);
11508 ; return 0; }
11509 EOF
11510 if { (eval echo configure:11511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11511   rm -rf conftest*
11512   glibcpp_cv_func_atan2f_use=yes
11513 else
11514   echo "configure: failed program was:" >&5
11515   cat conftest.$ac_ext >&5
11516   rm -rf conftest*
11517   glibcpp_cv_func_atan2f_use=no
11518 fi
11519 rm -f conftest*
11520       ac_ext=c
11521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11522 ac_cpp='$CPP $CPPFLAGS'
11523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11524 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11525 cross_compiling=$ac_cv_prog_cc_cross
11526
11527     
11528 fi
11529
11530   fi
11531   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
11532
11533   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
11534     for ac_func in atan2f
11535 do
11536 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11537 echo "configure:11538: checking for $ac_func" >&5
11538 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11539   echo $ac_n "(cached) $ac_c" 1>&6
11540 else
11541   cat > conftest.$ac_ext <<EOF
11542 #line 11543 "configure"
11543 #include "confdefs.h"
11544 /* System header to define __stub macros and hopefully few prototypes,
11545     which can conflict with char $ac_func(); below.  */
11546 #include <assert.h>
11547 /* Override any gcc2 internal prototype to avoid an error.  */
11548 /* We use char because int might match the return type of a gcc2
11549     builtin and then its argument prototype would still apply.  */
11550 char $ac_func();
11551
11552 int main() {
11553
11554 /* The GNU C library defines this for functions which it implements
11555     to always fail with ENOSYS.  Some functions are actually named
11556     something starting with __ and the normal name is an alias.  */
11557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11558 choke me
11559 #else
11560 $ac_func();
11561 #endif
11562
11563 ; return 0; }
11564 EOF
11565 if { (eval echo configure:11566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11566   rm -rf conftest*
11567   eval "ac_cv_func_$ac_func=yes"
11568 else
11569   echo "configure: failed program was:" >&5
11570   cat conftest.$ac_ext >&5
11571   rm -rf conftest*
11572   eval "ac_cv_func_$ac_func=no"
11573 fi
11574 rm -f conftest*
11575 fi
11576
11577 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11578   echo "$ac_t""yes" 1>&6
11579     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11580   cat >> confdefs.h <<EOF
11581 #define $ac_tr_func 1
11582 EOF
11583  
11584 else
11585   echo "$ac_t""no" 1>&6
11586 fi
11587 done
11588     
11589   else
11590     
11591   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
11592 echo "configure:11593: checking for _atan2f declaration" >&5
11593   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
11594     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
11595   echo $ac_n "(cached) $ac_c" 1>&6
11596 else
11597   
11598       
11599       ac_ext=C
11600 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11601 ac_cpp='$CXXCPP $CPPFLAGS'
11602 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11603 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11604 cross_compiling=$ac_cv_prog_cxx_cross
11605
11606       cat > conftest.$ac_ext <<EOF
11607 #line 11608 "configure"
11608 #include "confdefs.h"
11609 #include <math.h>
11610 int main() {
11611  _atan2f(0, 0);
11612 ; return 0; }
11613 EOF
11614 if { (eval echo configure:11615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11615   rm -rf conftest*
11616   glibcpp_cv_func__atan2f_use=yes
11617 else
11618   echo "configure: failed program was:" >&5
11619   cat conftest.$ac_ext >&5
11620   rm -rf conftest*
11621   glibcpp_cv_func__atan2f_use=no
11622 fi
11623 rm -f conftest*
11624       ac_ext=c
11625 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11626 ac_cpp='$CPP $CPPFLAGS'
11627 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11628 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11629 cross_compiling=$ac_cv_prog_cc_cross
11630
11631     
11632 fi
11633
11634   fi
11635   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
11636
11637     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
11638       for ac_func in _atan2f
11639 do
11640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11641 echo "configure:11642: checking for $ac_func" >&5
11642 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11643   echo $ac_n "(cached) $ac_c" 1>&6
11644 else
11645   cat > conftest.$ac_ext <<EOF
11646 #line 11647 "configure"
11647 #include "confdefs.h"
11648 /* System header to define __stub macros and hopefully few prototypes,
11649     which can conflict with char $ac_func(); below.  */
11650 #include <assert.h>
11651 /* Override any gcc2 internal prototype to avoid an error.  */
11652 /* We use char because int might match the return type of a gcc2
11653     builtin and then its argument prototype would still apply.  */
11654 char $ac_func();
11655
11656 int main() {
11657
11658 /* The GNU C library defines this for functions which it implements
11659     to always fail with ENOSYS.  Some functions are actually named
11660     something starting with __ and the normal name is an alias.  */
11661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11662 choke me
11663 #else
11664 $ac_func();
11665 #endif
11666
11667 ; return 0; }
11668 EOF
11669 if { (eval echo configure:11670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11670   rm -rf conftest*
11671   eval "ac_cv_func_$ac_func=yes"
11672 else
11673   echo "configure: failed program was:" >&5
11674   cat conftest.$ac_ext >&5
11675   rm -rf conftest*
11676   eval "ac_cv_func_$ac_func=no"
11677 fi
11678 rm -f conftest*
11679 fi
11680
11681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11682   echo "$ac_t""yes" 1>&6
11683     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11684   cat >> confdefs.h <<EOF
11685 #define $ac_tr_func 1
11686 EOF
11687  
11688 else
11689   echo "$ac_t""no" 1>&6
11690 fi
11691 done
11692     
11693     fi
11694   fi
11695
11696   
11697   
11698   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
11699 echo "configure:11700: checking for fabsf declaration" >&5
11700   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
11701     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
11702   echo $ac_n "(cached) $ac_c" 1>&6
11703 else
11704   
11705       
11706       ac_ext=C
11707 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11708 ac_cpp='$CXXCPP $CPPFLAGS'
11709 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11710 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11711 cross_compiling=$ac_cv_prog_cxx_cross
11712
11713       cat > conftest.$ac_ext <<EOF
11714 #line 11715 "configure"
11715 #include "confdefs.h"
11716 #include <math.h>
11717                       #ifdef HAVE_IEEEFP_H
11718                       #include <ieeefp.h>
11719                       #endif
11720                      
11721 int main() {
11722  fabsf(0);
11723 ; return 0; }
11724 EOF
11725 if { (eval echo configure:11726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11726   rm -rf conftest*
11727   glibcpp_cv_func_fabsf_use=yes
11728 else
11729   echo "configure: failed program was:" >&5
11730   cat conftest.$ac_ext >&5
11731   rm -rf conftest*
11732   glibcpp_cv_func_fabsf_use=no
11733 fi
11734 rm -f conftest*
11735       ac_ext=c
11736 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11737 ac_cpp='$CPP $CPPFLAGS'
11738 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11739 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11740 cross_compiling=$ac_cv_prog_cc_cross
11741
11742     
11743 fi
11744
11745   fi
11746   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
11747
11748   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
11749     for ac_func in fabsf
11750 do
11751 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11752 echo "configure:11753: checking for $ac_func" >&5
11753 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11754   echo $ac_n "(cached) $ac_c" 1>&6
11755 else
11756   cat > conftest.$ac_ext <<EOF
11757 #line 11758 "configure"
11758 #include "confdefs.h"
11759 /* System header to define __stub macros and hopefully few prototypes,
11760     which can conflict with char $ac_func(); below.  */
11761 #include <assert.h>
11762 /* Override any gcc2 internal prototype to avoid an error.  */
11763 /* We use char because int might match the return type of a gcc2
11764     builtin and then its argument prototype would still apply.  */
11765 char $ac_func();
11766
11767 int main() {
11768
11769 /* The GNU C library defines this for functions which it implements
11770     to always fail with ENOSYS.  Some functions are actually named
11771     something starting with __ and the normal name is an alias.  */
11772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11773 choke me
11774 #else
11775 $ac_func();
11776 #endif
11777
11778 ; return 0; }
11779 EOF
11780 if { (eval echo configure:11781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11781   rm -rf conftest*
11782   eval "ac_cv_func_$ac_func=yes"
11783 else
11784   echo "configure: failed program was:" >&5
11785   cat conftest.$ac_ext >&5
11786   rm -rf conftest*
11787   eval "ac_cv_func_$ac_func=no"
11788 fi
11789 rm -f conftest*
11790 fi
11791
11792 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11793   echo "$ac_t""yes" 1>&6
11794     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11795   cat >> confdefs.h <<EOF
11796 #define $ac_tr_func 1
11797 EOF
11798  
11799 else
11800   echo "$ac_t""no" 1>&6
11801 fi
11802 done
11803     
11804   else
11805     
11806   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
11807 echo "configure:11808: checking for _fabsf declaration" >&5
11808   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
11809     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
11810   echo $ac_n "(cached) $ac_c" 1>&6
11811 else
11812   
11813       
11814       ac_ext=C
11815 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11816 ac_cpp='$CXXCPP $CPPFLAGS'
11817 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11818 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11819 cross_compiling=$ac_cv_prog_cxx_cross
11820
11821       cat > conftest.$ac_ext <<EOF
11822 #line 11823 "configure"
11823 #include "confdefs.h"
11824 #include <math.h>
11825                       #ifdef HAVE_IEEEFP_H
11826                       #include <ieeefp.h>
11827                       #endif
11828                      
11829 int main() {
11830  _fabsf(0);
11831 ; return 0; }
11832 EOF
11833 if { (eval echo configure:11834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11834   rm -rf conftest*
11835   glibcpp_cv_func__fabsf_use=yes
11836 else
11837   echo "configure: failed program was:" >&5
11838   cat conftest.$ac_ext >&5
11839   rm -rf conftest*
11840   glibcpp_cv_func__fabsf_use=no
11841 fi
11842 rm -f conftest*
11843       ac_ext=c
11844 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11845 ac_cpp='$CPP $CPPFLAGS'
11846 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11847 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11848 cross_compiling=$ac_cv_prog_cc_cross
11849
11850     
11851 fi
11852
11853   fi
11854   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
11855
11856     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
11857       for ac_func in _fabsf
11858 do
11859 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11860 echo "configure:11861: checking for $ac_func" >&5
11861 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11862   echo $ac_n "(cached) $ac_c" 1>&6
11863 else
11864   cat > conftest.$ac_ext <<EOF
11865 #line 11866 "configure"
11866 #include "confdefs.h"
11867 /* System header to define __stub macros and hopefully few prototypes,
11868     which can conflict with char $ac_func(); below.  */
11869 #include <assert.h>
11870 /* Override any gcc2 internal prototype to avoid an error.  */
11871 /* We use char because int might match the return type of a gcc2
11872     builtin and then its argument prototype would still apply.  */
11873 char $ac_func();
11874
11875 int main() {
11876
11877 /* The GNU C library defines this for functions which it implements
11878     to always fail with ENOSYS.  Some functions are actually named
11879     something starting with __ and the normal name is an alias.  */
11880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11881 choke me
11882 #else
11883 $ac_func();
11884 #endif
11885
11886 ; return 0; }
11887 EOF
11888 if { (eval echo configure:11889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11889   rm -rf conftest*
11890   eval "ac_cv_func_$ac_func=yes"
11891 else
11892   echo "configure: failed program was:" >&5
11893   cat conftest.$ac_ext >&5
11894   rm -rf conftest*
11895   eval "ac_cv_func_$ac_func=no"
11896 fi
11897 rm -f conftest*
11898 fi
11899
11900 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11901   echo "$ac_t""yes" 1>&6
11902     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11903   cat >> confdefs.h <<EOF
11904 #define $ac_tr_func 1
11905 EOF
11906  
11907 else
11908   echo "$ac_t""no" 1>&6
11909 fi
11910 done
11911     
11912     fi
11913   fi
11914
11915   
11916   
11917   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
11918 echo "configure:11919: checking for fmodf declaration" >&5
11919   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
11920     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
11921   echo $ac_n "(cached) $ac_c" 1>&6
11922 else
11923   
11924       
11925       ac_ext=C
11926 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11927 ac_cpp='$CXXCPP $CPPFLAGS'
11928 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11929 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11930 cross_compiling=$ac_cv_prog_cxx_cross
11931
11932       cat > conftest.$ac_ext <<EOF
11933 #line 11934 "configure"
11934 #include "confdefs.h"
11935 #include <math.h>
11936 int main() {
11937  fmodf(0, 0);
11938 ; return 0; }
11939 EOF
11940 if { (eval echo configure:11941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11941   rm -rf conftest*
11942   glibcpp_cv_func_fmodf_use=yes
11943 else
11944   echo "configure: failed program was:" >&5
11945   cat conftest.$ac_ext >&5
11946   rm -rf conftest*
11947   glibcpp_cv_func_fmodf_use=no
11948 fi
11949 rm -f conftest*
11950       ac_ext=c
11951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11952 ac_cpp='$CPP $CPPFLAGS'
11953 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11954 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11955 cross_compiling=$ac_cv_prog_cc_cross
11956
11957     
11958 fi
11959
11960   fi
11961   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
11962
11963   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
11964     for ac_func in fmodf
11965 do
11966 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11967 echo "configure:11968: checking for $ac_func" >&5
11968 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11969   echo $ac_n "(cached) $ac_c" 1>&6
11970 else
11971   cat > conftest.$ac_ext <<EOF
11972 #line 11973 "configure"
11973 #include "confdefs.h"
11974 /* System header to define __stub macros and hopefully few prototypes,
11975     which can conflict with char $ac_func(); below.  */
11976 #include <assert.h>
11977 /* Override any gcc2 internal prototype to avoid an error.  */
11978 /* We use char because int might match the return type of a gcc2
11979     builtin and then its argument prototype would still apply.  */
11980 char $ac_func();
11981
11982 int main() {
11983
11984 /* The GNU C library defines this for functions which it implements
11985     to always fail with ENOSYS.  Some functions are actually named
11986     something starting with __ and the normal name is an alias.  */
11987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11988 choke me
11989 #else
11990 $ac_func();
11991 #endif
11992
11993 ; return 0; }
11994 EOF
11995 if { (eval echo configure:11996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11996   rm -rf conftest*
11997   eval "ac_cv_func_$ac_func=yes"
11998 else
11999   echo "configure: failed program was:" >&5
12000   cat conftest.$ac_ext >&5
12001   rm -rf conftest*
12002   eval "ac_cv_func_$ac_func=no"
12003 fi
12004 rm -f conftest*
12005 fi
12006
12007 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12008   echo "$ac_t""yes" 1>&6
12009     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12010   cat >> confdefs.h <<EOF
12011 #define $ac_tr_func 1
12012 EOF
12013  
12014 else
12015   echo "$ac_t""no" 1>&6
12016 fi
12017 done
12018     
12019   else
12020     
12021   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
12022 echo "configure:12023: checking for _fmodf declaration" >&5
12023   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
12024     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
12025   echo $ac_n "(cached) $ac_c" 1>&6
12026 else
12027   
12028       
12029       ac_ext=C
12030 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12031 ac_cpp='$CXXCPP $CPPFLAGS'
12032 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12033 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12034 cross_compiling=$ac_cv_prog_cxx_cross
12035
12036       cat > conftest.$ac_ext <<EOF
12037 #line 12038 "configure"
12038 #include "confdefs.h"
12039 #include <math.h>
12040 int main() {
12041  _fmodf(0, 0);
12042 ; return 0; }
12043 EOF
12044 if { (eval echo configure:12045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12045   rm -rf conftest*
12046   glibcpp_cv_func__fmodf_use=yes
12047 else
12048   echo "configure: failed program was:" >&5
12049   cat conftest.$ac_ext >&5
12050   rm -rf conftest*
12051   glibcpp_cv_func__fmodf_use=no
12052 fi
12053 rm -f conftest*
12054       ac_ext=c
12055 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12056 ac_cpp='$CPP $CPPFLAGS'
12057 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12058 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12059 cross_compiling=$ac_cv_prog_cc_cross
12060
12061     
12062 fi
12063
12064   fi
12065   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
12066
12067     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
12068       for ac_func in _fmodf
12069 do
12070 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12071 echo "configure:12072: checking for $ac_func" >&5
12072 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12073   echo $ac_n "(cached) $ac_c" 1>&6
12074 else
12075   cat > conftest.$ac_ext <<EOF
12076 #line 12077 "configure"
12077 #include "confdefs.h"
12078 /* System header to define __stub macros and hopefully few prototypes,
12079     which can conflict with char $ac_func(); below.  */
12080 #include <assert.h>
12081 /* Override any gcc2 internal prototype to avoid an error.  */
12082 /* We use char because int might match the return type of a gcc2
12083     builtin and then its argument prototype would still apply.  */
12084 char $ac_func();
12085
12086 int main() {
12087
12088 /* The GNU C library defines this for functions which it implements
12089     to always fail with ENOSYS.  Some functions are actually named
12090     something starting with __ and the normal name is an alias.  */
12091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12092 choke me
12093 #else
12094 $ac_func();
12095 #endif
12096
12097 ; return 0; }
12098 EOF
12099 if { (eval echo configure:12100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12100   rm -rf conftest*
12101   eval "ac_cv_func_$ac_func=yes"
12102 else
12103   echo "configure: failed program was:" >&5
12104   cat conftest.$ac_ext >&5
12105   rm -rf conftest*
12106   eval "ac_cv_func_$ac_func=no"
12107 fi
12108 rm -f conftest*
12109 fi
12110
12111 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12112   echo "$ac_t""yes" 1>&6
12113     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12114   cat >> confdefs.h <<EOF
12115 #define $ac_tr_func 1
12116 EOF
12117  
12118 else
12119   echo "$ac_t""no" 1>&6
12120 fi
12121 done
12122     
12123     fi
12124   fi
12125
12126   
12127   
12128   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
12129 echo "configure:12130: checking for frexpf declaration" >&5
12130   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
12131     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
12132   echo $ac_n "(cached) $ac_c" 1>&6
12133 else
12134   
12135       
12136       ac_ext=C
12137 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12138 ac_cpp='$CXXCPP $CPPFLAGS'
12139 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12140 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12141 cross_compiling=$ac_cv_prog_cxx_cross
12142
12143       cat > conftest.$ac_ext <<EOF
12144 #line 12145 "configure"
12145 #include "confdefs.h"
12146 #include <math.h>
12147 int main() {
12148  frexpf(0, 0);
12149 ; return 0; }
12150 EOF
12151 if { (eval echo configure:12152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12152   rm -rf conftest*
12153   glibcpp_cv_func_frexpf_use=yes
12154 else
12155   echo "configure: failed program was:" >&5
12156   cat conftest.$ac_ext >&5
12157   rm -rf conftest*
12158   glibcpp_cv_func_frexpf_use=no
12159 fi
12160 rm -f conftest*
12161       ac_ext=c
12162 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12163 ac_cpp='$CPP $CPPFLAGS'
12164 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12165 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12166 cross_compiling=$ac_cv_prog_cc_cross
12167
12168     
12169 fi
12170
12171   fi
12172   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
12173
12174   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
12175     for ac_func in frexpf
12176 do
12177 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12178 echo "configure:12179: checking for $ac_func" >&5
12179 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12180   echo $ac_n "(cached) $ac_c" 1>&6
12181 else
12182   cat > conftest.$ac_ext <<EOF
12183 #line 12184 "configure"
12184 #include "confdefs.h"
12185 /* System header to define __stub macros and hopefully few prototypes,
12186     which can conflict with char $ac_func(); below.  */
12187 #include <assert.h>
12188 /* Override any gcc2 internal prototype to avoid an error.  */
12189 /* We use char because int might match the return type of a gcc2
12190     builtin and then its argument prototype would still apply.  */
12191 char $ac_func();
12192
12193 int main() {
12194
12195 /* The GNU C library defines this for functions which it implements
12196     to always fail with ENOSYS.  Some functions are actually named
12197     something starting with __ and the normal name is an alias.  */
12198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12199 choke me
12200 #else
12201 $ac_func();
12202 #endif
12203
12204 ; return 0; }
12205 EOF
12206 if { (eval echo configure:12207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12207   rm -rf conftest*
12208   eval "ac_cv_func_$ac_func=yes"
12209 else
12210   echo "configure: failed program was:" >&5
12211   cat conftest.$ac_ext >&5
12212   rm -rf conftest*
12213   eval "ac_cv_func_$ac_func=no"
12214 fi
12215 rm -f conftest*
12216 fi
12217
12218 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12219   echo "$ac_t""yes" 1>&6
12220     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12221   cat >> confdefs.h <<EOF
12222 #define $ac_tr_func 1
12223 EOF
12224  
12225 else
12226   echo "$ac_t""no" 1>&6
12227 fi
12228 done
12229     
12230   else
12231     
12232   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
12233 echo "configure:12234: checking for _frexpf declaration" >&5
12234   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
12235     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
12236   echo $ac_n "(cached) $ac_c" 1>&6
12237 else
12238   
12239       
12240       ac_ext=C
12241 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12242 ac_cpp='$CXXCPP $CPPFLAGS'
12243 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12244 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12245 cross_compiling=$ac_cv_prog_cxx_cross
12246
12247       cat > conftest.$ac_ext <<EOF
12248 #line 12249 "configure"
12249 #include "confdefs.h"
12250 #include <math.h>
12251 int main() {
12252  _frexpf(0, 0);
12253 ; return 0; }
12254 EOF
12255 if { (eval echo configure:12256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12256   rm -rf conftest*
12257   glibcpp_cv_func__frexpf_use=yes
12258 else
12259   echo "configure: failed program was:" >&5
12260   cat conftest.$ac_ext >&5
12261   rm -rf conftest*
12262   glibcpp_cv_func__frexpf_use=no
12263 fi
12264 rm -f conftest*
12265       ac_ext=c
12266 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12267 ac_cpp='$CPP $CPPFLAGS'
12268 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12269 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12270 cross_compiling=$ac_cv_prog_cc_cross
12271
12272     
12273 fi
12274
12275   fi
12276   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
12277
12278     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
12279       for ac_func in _frexpf
12280 do
12281 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12282 echo "configure:12283: checking for $ac_func" >&5
12283 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12284   echo $ac_n "(cached) $ac_c" 1>&6
12285 else
12286   cat > conftest.$ac_ext <<EOF
12287 #line 12288 "configure"
12288 #include "confdefs.h"
12289 /* System header to define __stub macros and hopefully few prototypes,
12290     which can conflict with char $ac_func(); below.  */
12291 #include <assert.h>
12292 /* Override any gcc2 internal prototype to avoid an error.  */
12293 /* We use char because int might match the return type of a gcc2
12294     builtin and then its argument prototype would still apply.  */
12295 char $ac_func();
12296
12297 int main() {
12298
12299 /* The GNU C library defines this for functions which it implements
12300     to always fail with ENOSYS.  Some functions are actually named
12301     something starting with __ and the normal name is an alias.  */
12302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12303 choke me
12304 #else
12305 $ac_func();
12306 #endif
12307
12308 ; return 0; }
12309 EOF
12310 if { (eval echo configure:12311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12311   rm -rf conftest*
12312   eval "ac_cv_func_$ac_func=yes"
12313 else
12314   echo "configure: failed program was:" >&5
12315   cat conftest.$ac_ext >&5
12316   rm -rf conftest*
12317   eval "ac_cv_func_$ac_func=no"
12318 fi
12319 rm -f conftest*
12320 fi
12321
12322 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12323   echo "$ac_t""yes" 1>&6
12324     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12325   cat >> confdefs.h <<EOF
12326 #define $ac_tr_func 1
12327 EOF
12328  
12329 else
12330   echo "$ac_t""no" 1>&6
12331 fi
12332 done
12333     
12334     fi
12335   fi
12336
12337   
12338   
12339   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
12340 echo "configure:12341: checking for hypotf declaration" >&5
12341   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
12342     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
12343   echo $ac_n "(cached) $ac_c" 1>&6
12344 else
12345   
12346       
12347       ac_ext=C
12348 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12349 ac_cpp='$CXXCPP $CPPFLAGS'
12350 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12351 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12352 cross_compiling=$ac_cv_prog_cxx_cross
12353
12354       cat > conftest.$ac_ext <<EOF
12355 #line 12356 "configure"
12356 #include "confdefs.h"
12357 #include <math.h>
12358 int main() {
12359  hypotf(0, 0);
12360 ; return 0; }
12361 EOF
12362 if { (eval echo configure:12363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12363   rm -rf conftest*
12364   glibcpp_cv_func_hypotf_use=yes
12365 else
12366   echo "configure: failed program was:" >&5
12367   cat conftest.$ac_ext >&5
12368   rm -rf conftest*
12369   glibcpp_cv_func_hypotf_use=no
12370 fi
12371 rm -f conftest*
12372       ac_ext=c
12373 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12374 ac_cpp='$CPP $CPPFLAGS'
12375 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12376 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12377 cross_compiling=$ac_cv_prog_cc_cross
12378
12379     
12380 fi
12381
12382   fi
12383   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
12384
12385   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
12386     for ac_func in hypotf
12387 do
12388 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12389 echo "configure:12390: checking for $ac_func" >&5
12390 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12391   echo $ac_n "(cached) $ac_c" 1>&6
12392 else
12393   cat > conftest.$ac_ext <<EOF
12394 #line 12395 "configure"
12395 #include "confdefs.h"
12396 /* System header to define __stub macros and hopefully few prototypes,
12397     which can conflict with char $ac_func(); below.  */
12398 #include <assert.h>
12399 /* Override any gcc2 internal prototype to avoid an error.  */
12400 /* We use char because int might match the return type of a gcc2
12401     builtin and then its argument prototype would still apply.  */
12402 char $ac_func();
12403
12404 int main() {
12405
12406 /* The GNU C library defines this for functions which it implements
12407     to always fail with ENOSYS.  Some functions are actually named
12408     something starting with __ and the normal name is an alias.  */
12409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12410 choke me
12411 #else
12412 $ac_func();
12413 #endif
12414
12415 ; return 0; }
12416 EOF
12417 if { (eval echo configure:12418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12418   rm -rf conftest*
12419   eval "ac_cv_func_$ac_func=yes"
12420 else
12421   echo "configure: failed program was:" >&5
12422   cat conftest.$ac_ext >&5
12423   rm -rf conftest*
12424   eval "ac_cv_func_$ac_func=no"
12425 fi
12426 rm -f conftest*
12427 fi
12428
12429 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12430   echo "$ac_t""yes" 1>&6
12431     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12432   cat >> confdefs.h <<EOF
12433 #define $ac_tr_func 1
12434 EOF
12435  
12436 else
12437   echo "$ac_t""no" 1>&6
12438 fi
12439 done
12440     
12441   else
12442     
12443   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
12444 echo "configure:12445: checking for _hypotf declaration" >&5
12445   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
12446     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
12447   echo $ac_n "(cached) $ac_c" 1>&6
12448 else
12449   
12450       
12451       ac_ext=C
12452 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12453 ac_cpp='$CXXCPP $CPPFLAGS'
12454 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12455 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12456 cross_compiling=$ac_cv_prog_cxx_cross
12457
12458       cat > conftest.$ac_ext <<EOF
12459 #line 12460 "configure"
12460 #include "confdefs.h"
12461 #include <math.h>
12462 int main() {
12463  _hypotf(0, 0);
12464 ; return 0; }
12465 EOF
12466 if { (eval echo configure:12467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12467   rm -rf conftest*
12468   glibcpp_cv_func__hypotf_use=yes
12469 else
12470   echo "configure: failed program was:" >&5
12471   cat conftest.$ac_ext >&5
12472   rm -rf conftest*
12473   glibcpp_cv_func__hypotf_use=no
12474 fi
12475 rm -f conftest*
12476       ac_ext=c
12477 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12478 ac_cpp='$CPP $CPPFLAGS'
12479 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12480 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12481 cross_compiling=$ac_cv_prog_cc_cross
12482
12483     
12484 fi
12485
12486   fi
12487   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
12488
12489     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
12490       for ac_func in _hypotf
12491 do
12492 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12493 echo "configure:12494: checking for $ac_func" >&5
12494 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12495   echo $ac_n "(cached) $ac_c" 1>&6
12496 else
12497   cat > conftest.$ac_ext <<EOF
12498 #line 12499 "configure"
12499 #include "confdefs.h"
12500 /* System header to define __stub macros and hopefully few prototypes,
12501     which can conflict with char $ac_func(); below.  */
12502 #include <assert.h>
12503 /* Override any gcc2 internal prototype to avoid an error.  */
12504 /* We use char because int might match the return type of a gcc2
12505     builtin and then its argument prototype would still apply.  */
12506 char $ac_func();
12507
12508 int main() {
12509
12510 /* The GNU C library defines this for functions which it implements
12511     to always fail with ENOSYS.  Some functions are actually named
12512     something starting with __ and the normal name is an alias.  */
12513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12514 choke me
12515 #else
12516 $ac_func();
12517 #endif
12518
12519 ; return 0; }
12520 EOF
12521 if { (eval echo configure:12522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12522   rm -rf conftest*
12523   eval "ac_cv_func_$ac_func=yes"
12524 else
12525   echo "configure: failed program was:" >&5
12526   cat conftest.$ac_ext >&5
12527   rm -rf conftest*
12528   eval "ac_cv_func_$ac_func=no"
12529 fi
12530 rm -f conftest*
12531 fi
12532
12533 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12534   echo "$ac_t""yes" 1>&6
12535     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12536   cat >> confdefs.h <<EOF
12537 #define $ac_tr_func 1
12538 EOF
12539  
12540 else
12541   echo "$ac_t""no" 1>&6
12542 fi
12543 done
12544     
12545     fi
12546   fi
12547
12548   
12549   
12550   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
12551 echo "configure:12552: checking for ldexpf declaration" >&5
12552   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
12553     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
12554   echo $ac_n "(cached) $ac_c" 1>&6
12555 else
12556   
12557       
12558       ac_ext=C
12559 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12560 ac_cpp='$CXXCPP $CPPFLAGS'
12561 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12562 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12563 cross_compiling=$ac_cv_prog_cxx_cross
12564
12565       cat > conftest.$ac_ext <<EOF
12566 #line 12567 "configure"
12567 #include "confdefs.h"
12568 #include <math.h>
12569 int main() {
12570  ldexpf(0, 0);
12571 ; return 0; }
12572 EOF
12573 if { (eval echo configure:12574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12574   rm -rf conftest*
12575   glibcpp_cv_func_ldexpf_use=yes
12576 else
12577   echo "configure: failed program was:" >&5
12578   cat conftest.$ac_ext >&5
12579   rm -rf conftest*
12580   glibcpp_cv_func_ldexpf_use=no
12581 fi
12582 rm -f conftest*
12583       ac_ext=c
12584 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12585 ac_cpp='$CPP $CPPFLAGS'
12586 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12587 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12588 cross_compiling=$ac_cv_prog_cc_cross
12589
12590     
12591 fi
12592
12593   fi
12594   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
12595
12596   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
12597     for ac_func in ldexpf
12598 do
12599 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12600 echo "configure:12601: checking for $ac_func" >&5
12601 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12602   echo $ac_n "(cached) $ac_c" 1>&6
12603 else
12604   cat > conftest.$ac_ext <<EOF
12605 #line 12606 "configure"
12606 #include "confdefs.h"
12607 /* System header to define __stub macros and hopefully few prototypes,
12608     which can conflict with char $ac_func(); below.  */
12609 #include <assert.h>
12610 /* Override any gcc2 internal prototype to avoid an error.  */
12611 /* We use char because int might match the return type of a gcc2
12612     builtin and then its argument prototype would still apply.  */
12613 char $ac_func();
12614
12615 int main() {
12616
12617 /* The GNU C library defines this for functions which it implements
12618     to always fail with ENOSYS.  Some functions are actually named
12619     something starting with __ and the normal name is an alias.  */
12620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12621 choke me
12622 #else
12623 $ac_func();
12624 #endif
12625
12626 ; return 0; }
12627 EOF
12628 if { (eval echo configure:12629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12629   rm -rf conftest*
12630   eval "ac_cv_func_$ac_func=yes"
12631 else
12632   echo "configure: failed program was:" >&5
12633   cat conftest.$ac_ext >&5
12634   rm -rf conftest*
12635   eval "ac_cv_func_$ac_func=no"
12636 fi
12637 rm -f conftest*
12638 fi
12639
12640 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12641   echo "$ac_t""yes" 1>&6
12642     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12643   cat >> confdefs.h <<EOF
12644 #define $ac_tr_func 1
12645 EOF
12646  
12647 else
12648   echo "$ac_t""no" 1>&6
12649 fi
12650 done
12651     
12652   else
12653     
12654   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
12655 echo "configure:12656: checking for _ldexpf declaration" >&5
12656   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
12657     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
12658   echo $ac_n "(cached) $ac_c" 1>&6
12659 else
12660   
12661       
12662       ac_ext=C
12663 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12664 ac_cpp='$CXXCPP $CPPFLAGS'
12665 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12666 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12667 cross_compiling=$ac_cv_prog_cxx_cross
12668
12669       cat > conftest.$ac_ext <<EOF
12670 #line 12671 "configure"
12671 #include "confdefs.h"
12672 #include <math.h>
12673 int main() {
12674  _ldexpf(0, 0);
12675 ; return 0; }
12676 EOF
12677 if { (eval echo configure:12678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12678   rm -rf conftest*
12679   glibcpp_cv_func__ldexpf_use=yes
12680 else
12681   echo "configure: failed program was:" >&5
12682   cat conftest.$ac_ext >&5
12683   rm -rf conftest*
12684   glibcpp_cv_func__ldexpf_use=no
12685 fi
12686 rm -f conftest*
12687       ac_ext=c
12688 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12689 ac_cpp='$CPP $CPPFLAGS'
12690 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12691 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12692 cross_compiling=$ac_cv_prog_cc_cross
12693
12694     
12695 fi
12696
12697   fi
12698   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
12699
12700     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
12701       for ac_func in _ldexpf
12702 do
12703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12704 echo "configure:12705: checking for $ac_func" >&5
12705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12706   echo $ac_n "(cached) $ac_c" 1>&6
12707 else
12708   cat > conftest.$ac_ext <<EOF
12709 #line 12710 "configure"
12710 #include "confdefs.h"
12711 /* System header to define __stub macros and hopefully few prototypes,
12712     which can conflict with char $ac_func(); below.  */
12713 #include <assert.h>
12714 /* Override any gcc2 internal prototype to avoid an error.  */
12715 /* We use char because int might match the return type of a gcc2
12716     builtin and then its argument prototype would still apply.  */
12717 char $ac_func();
12718
12719 int main() {
12720
12721 /* The GNU C library defines this for functions which it implements
12722     to always fail with ENOSYS.  Some functions are actually named
12723     something starting with __ and the normal name is an alias.  */
12724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12725 choke me
12726 #else
12727 $ac_func();
12728 #endif
12729
12730 ; return 0; }
12731 EOF
12732 if { (eval echo configure:12733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12733   rm -rf conftest*
12734   eval "ac_cv_func_$ac_func=yes"
12735 else
12736   echo "configure: failed program was:" >&5
12737   cat conftest.$ac_ext >&5
12738   rm -rf conftest*
12739   eval "ac_cv_func_$ac_func=no"
12740 fi
12741 rm -f conftest*
12742 fi
12743
12744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12745   echo "$ac_t""yes" 1>&6
12746     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12747   cat >> confdefs.h <<EOF
12748 #define $ac_tr_func 1
12749 EOF
12750  
12751 else
12752   echo "$ac_t""no" 1>&6
12753 fi
12754 done
12755     
12756     fi
12757   fi
12758
12759   
12760   
12761   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
12762 echo "configure:12763: checking for logf declaration" >&5
12763   if test x${glibcpp_cv_func_logf_use+set} != xset; then
12764     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
12765   echo $ac_n "(cached) $ac_c" 1>&6
12766 else
12767   
12768       
12769       ac_ext=C
12770 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12771 ac_cpp='$CXXCPP $CPPFLAGS'
12772 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12773 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12774 cross_compiling=$ac_cv_prog_cxx_cross
12775
12776       cat > conftest.$ac_ext <<EOF
12777 #line 12778 "configure"
12778 #include "confdefs.h"
12779 #include <math.h>
12780                       #ifdef HAVE_IEEEFP_H
12781                       #include <ieeefp.h>
12782                       #endif
12783                      
12784 int main() {
12785  logf(0);
12786 ; return 0; }
12787 EOF
12788 if { (eval echo configure:12789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12789   rm -rf conftest*
12790   glibcpp_cv_func_logf_use=yes
12791 else
12792   echo "configure: failed program was:" >&5
12793   cat conftest.$ac_ext >&5
12794   rm -rf conftest*
12795   glibcpp_cv_func_logf_use=no
12796 fi
12797 rm -f conftest*
12798       ac_ext=c
12799 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12800 ac_cpp='$CPP $CPPFLAGS'
12801 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12802 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12803 cross_compiling=$ac_cv_prog_cc_cross
12804
12805     
12806 fi
12807
12808   fi
12809   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
12810
12811   if test x$glibcpp_cv_func_logf_use = x"yes"; then
12812     for ac_func in logf
12813 do
12814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12815 echo "configure:12816: checking for $ac_func" >&5
12816 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12817   echo $ac_n "(cached) $ac_c" 1>&6
12818 else
12819   cat > conftest.$ac_ext <<EOF
12820 #line 12821 "configure"
12821 #include "confdefs.h"
12822 /* System header to define __stub macros and hopefully few prototypes,
12823     which can conflict with char $ac_func(); below.  */
12824 #include <assert.h>
12825 /* Override any gcc2 internal prototype to avoid an error.  */
12826 /* We use char because int might match the return type of a gcc2
12827     builtin and then its argument prototype would still apply.  */
12828 char $ac_func();
12829
12830 int main() {
12831
12832 /* The GNU C library defines this for functions which it implements
12833     to always fail with ENOSYS.  Some functions are actually named
12834     something starting with __ and the normal name is an alias.  */
12835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12836 choke me
12837 #else
12838 $ac_func();
12839 #endif
12840
12841 ; return 0; }
12842 EOF
12843 if { (eval echo configure:12844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12844   rm -rf conftest*
12845   eval "ac_cv_func_$ac_func=yes"
12846 else
12847   echo "configure: failed program was:" >&5
12848   cat conftest.$ac_ext >&5
12849   rm -rf conftest*
12850   eval "ac_cv_func_$ac_func=no"
12851 fi
12852 rm -f conftest*
12853 fi
12854
12855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12856   echo "$ac_t""yes" 1>&6
12857     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12858   cat >> confdefs.h <<EOF
12859 #define $ac_tr_func 1
12860 EOF
12861  
12862 else
12863   echo "$ac_t""no" 1>&6
12864 fi
12865 done
12866     
12867   else
12868     
12869   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
12870 echo "configure:12871: checking for _logf declaration" >&5
12871   if test x${glibcpp_cv_func__logf_use+set} != xset; then
12872     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
12873   echo $ac_n "(cached) $ac_c" 1>&6
12874 else
12875   
12876       
12877       ac_ext=C
12878 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12879 ac_cpp='$CXXCPP $CPPFLAGS'
12880 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12881 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12882 cross_compiling=$ac_cv_prog_cxx_cross
12883
12884       cat > conftest.$ac_ext <<EOF
12885 #line 12886 "configure"
12886 #include "confdefs.h"
12887 #include <math.h>
12888                       #ifdef HAVE_IEEEFP_H
12889                       #include <ieeefp.h>
12890                       #endif
12891                      
12892 int main() {
12893  _logf(0);
12894 ; return 0; }
12895 EOF
12896 if { (eval echo configure:12897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12897   rm -rf conftest*
12898   glibcpp_cv_func__logf_use=yes
12899 else
12900   echo "configure: failed program was:" >&5
12901   cat conftest.$ac_ext >&5
12902   rm -rf conftest*
12903   glibcpp_cv_func__logf_use=no
12904 fi
12905 rm -f conftest*
12906       ac_ext=c
12907 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12908 ac_cpp='$CPP $CPPFLAGS'
12909 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12910 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12911 cross_compiling=$ac_cv_prog_cc_cross
12912
12913     
12914 fi
12915
12916   fi
12917   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
12918
12919     if test x$glibcpp_cv_func__logf_use = x"yes"; then
12920       for ac_func in _logf
12921 do
12922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12923 echo "configure:12924: checking for $ac_func" >&5
12924 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12925   echo $ac_n "(cached) $ac_c" 1>&6
12926 else
12927   cat > conftest.$ac_ext <<EOF
12928 #line 12929 "configure"
12929 #include "confdefs.h"
12930 /* System header to define __stub macros and hopefully few prototypes,
12931     which can conflict with char $ac_func(); below.  */
12932 #include <assert.h>
12933 /* Override any gcc2 internal prototype to avoid an error.  */
12934 /* We use char because int might match the return type of a gcc2
12935     builtin and then its argument prototype would still apply.  */
12936 char $ac_func();
12937
12938 int main() {
12939
12940 /* The GNU C library defines this for functions which it implements
12941     to always fail with ENOSYS.  Some functions are actually named
12942     something starting with __ and the normal name is an alias.  */
12943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12944 choke me
12945 #else
12946 $ac_func();
12947 #endif
12948
12949 ; return 0; }
12950 EOF
12951 if { (eval echo configure:12952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12952   rm -rf conftest*
12953   eval "ac_cv_func_$ac_func=yes"
12954 else
12955   echo "configure: failed program was:" >&5
12956   cat conftest.$ac_ext >&5
12957   rm -rf conftest*
12958   eval "ac_cv_func_$ac_func=no"
12959 fi
12960 rm -f conftest*
12961 fi
12962
12963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12964   echo "$ac_t""yes" 1>&6
12965     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12966   cat >> confdefs.h <<EOF
12967 #define $ac_tr_func 1
12968 EOF
12969  
12970 else
12971   echo "$ac_t""no" 1>&6
12972 fi
12973 done
12974     
12975     fi
12976   fi
12977
12978   
12979   
12980   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
12981 echo "configure:12982: checking for log10f declaration" >&5
12982   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
12983     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
12984   echo $ac_n "(cached) $ac_c" 1>&6
12985 else
12986   
12987       
12988       ac_ext=C
12989 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12990 ac_cpp='$CXXCPP $CPPFLAGS'
12991 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12992 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12993 cross_compiling=$ac_cv_prog_cxx_cross
12994
12995       cat > conftest.$ac_ext <<EOF
12996 #line 12997 "configure"
12997 #include "confdefs.h"
12998 #include <math.h>
12999                       #ifdef HAVE_IEEEFP_H
13000                       #include <ieeefp.h>
13001                       #endif
13002                      
13003 int main() {
13004  log10f(0);
13005 ; return 0; }
13006 EOF
13007 if { (eval echo configure:13008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13008   rm -rf conftest*
13009   glibcpp_cv_func_log10f_use=yes
13010 else
13011   echo "configure: failed program was:" >&5
13012   cat conftest.$ac_ext >&5
13013   rm -rf conftest*
13014   glibcpp_cv_func_log10f_use=no
13015 fi
13016 rm -f conftest*
13017       ac_ext=c
13018 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13019 ac_cpp='$CPP $CPPFLAGS'
13020 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13021 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13022 cross_compiling=$ac_cv_prog_cc_cross
13023
13024     
13025 fi
13026
13027   fi
13028   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
13029
13030   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
13031     for ac_func in log10f
13032 do
13033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13034 echo "configure:13035: checking for $ac_func" >&5
13035 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13036   echo $ac_n "(cached) $ac_c" 1>&6
13037 else
13038   cat > conftest.$ac_ext <<EOF
13039 #line 13040 "configure"
13040 #include "confdefs.h"
13041 /* System header to define __stub macros and hopefully few prototypes,
13042     which can conflict with char $ac_func(); below.  */
13043 #include <assert.h>
13044 /* Override any gcc2 internal prototype to avoid an error.  */
13045 /* We use char because int might match the return type of a gcc2
13046     builtin and then its argument prototype would still apply.  */
13047 char $ac_func();
13048
13049 int main() {
13050
13051 /* The GNU C library defines this for functions which it implements
13052     to always fail with ENOSYS.  Some functions are actually named
13053     something starting with __ and the normal name is an alias.  */
13054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13055 choke me
13056 #else
13057 $ac_func();
13058 #endif
13059
13060 ; return 0; }
13061 EOF
13062 if { (eval echo configure:13063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13063   rm -rf conftest*
13064   eval "ac_cv_func_$ac_func=yes"
13065 else
13066   echo "configure: failed program was:" >&5
13067   cat conftest.$ac_ext >&5
13068   rm -rf conftest*
13069   eval "ac_cv_func_$ac_func=no"
13070 fi
13071 rm -f conftest*
13072 fi
13073
13074 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13075   echo "$ac_t""yes" 1>&6
13076     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13077   cat >> confdefs.h <<EOF
13078 #define $ac_tr_func 1
13079 EOF
13080  
13081 else
13082   echo "$ac_t""no" 1>&6
13083 fi
13084 done
13085     
13086   else
13087     
13088   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
13089 echo "configure:13090: checking for _log10f declaration" >&5
13090   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
13091     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
13092   echo $ac_n "(cached) $ac_c" 1>&6
13093 else
13094   
13095       
13096       ac_ext=C
13097 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13098 ac_cpp='$CXXCPP $CPPFLAGS'
13099 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13100 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13101 cross_compiling=$ac_cv_prog_cxx_cross
13102
13103       cat > conftest.$ac_ext <<EOF
13104 #line 13105 "configure"
13105 #include "confdefs.h"
13106 #include <math.h>
13107                       #ifdef HAVE_IEEEFP_H
13108                       #include <ieeefp.h>
13109                       #endif
13110                      
13111 int main() {
13112  _log10f(0);
13113 ; return 0; }
13114 EOF
13115 if { (eval echo configure:13116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13116   rm -rf conftest*
13117   glibcpp_cv_func__log10f_use=yes
13118 else
13119   echo "configure: failed program was:" >&5
13120   cat conftest.$ac_ext >&5
13121   rm -rf conftest*
13122   glibcpp_cv_func__log10f_use=no
13123 fi
13124 rm -f conftest*
13125       ac_ext=c
13126 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13127 ac_cpp='$CPP $CPPFLAGS'
13128 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13129 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13130 cross_compiling=$ac_cv_prog_cc_cross
13131
13132     
13133 fi
13134
13135   fi
13136   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
13137
13138     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
13139       for ac_func in _log10f
13140 do
13141 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13142 echo "configure:13143: checking for $ac_func" >&5
13143 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13144   echo $ac_n "(cached) $ac_c" 1>&6
13145 else
13146   cat > conftest.$ac_ext <<EOF
13147 #line 13148 "configure"
13148 #include "confdefs.h"
13149 /* System header to define __stub macros and hopefully few prototypes,
13150     which can conflict with char $ac_func(); below.  */
13151 #include <assert.h>
13152 /* Override any gcc2 internal prototype to avoid an error.  */
13153 /* We use char because int might match the return type of a gcc2
13154     builtin and then its argument prototype would still apply.  */
13155 char $ac_func();
13156
13157 int main() {
13158
13159 /* The GNU C library defines this for functions which it implements
13160     to always fail with ENOSYS.  Some functions are actually named
13161     something starting with __ and the normal name is an alias.  */
13162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13163 choke me
13164 #else
13165 $ac_func();
13166 #endif
13167
13168 ; return 0; }
13169 EOF
13170 if { (eval echo configure:13171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13171   rm -rf conftest*
13172   eval "ac_cv_func_$ac_func=yes"
13173 else
13174   echo "configure: failed program was:" >&5
13175   cat conftest.$ac_ext >&5
13176   rm -rf conftest*
13177   eval "ac_cv_func_$ac_func=no"
13178 fi
13179 rm -f conftest*
13180 fi
13181
13182 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13183   echo "$ac_t""yes" 1>&6
13184     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13185   cat >> confdefs.h <<EOF
13186 #define $ac_tr_func 1
13187 EOF
13188  
13189 else
13190   echo "$ac_t""no" 1>&6
13191 fi
13192 done
13193     
13194     fi
13195   fi
13196
13197   
13198   
13199   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
13200 echo "configure:13201: checking for modff declaration" >&5
13201   if test x${glibcpp_cv_func_modff_use+set} != xset; then
13202     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
13203   echo $ac_n "(cached) $ac_c" 1>&6
13204 else
13205   
13206       
13207       ac_ext=C
13208 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13209 ac_cpp='$CXXCPP $CPPFLAGS'
13210 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13211 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13212 cross_compiling=$ac_cv_prog_cxx_cross
13213
13214       cat > conftest.$ac_ext <<EOF
13215 #line 13216 "configure"
13216 #include "confdefs.h"
13217 #include <math.h>
13218 int main() {
13219  modff(0, 0);
13220 ; return 0; }
13221 EOF
13222 if { (eval echo configure:13223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13223   rm -rf conftest*
13224   glibcpp_cv_func_modff_use=yes
13225 else
13226   echo "configure: failed program was:" >&5
13227   cat conftest.$ac_ext >&5
13228   rm -rf conftest*
13229   glibcpp_cv_func_modff_use=no
13230 fi
13231 rm -f conftest*
13232       ac_ext=c
13233 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13234 ac_cpp='$CPP $CPPFLAGS'
13235 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13236 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13237 cross_compiling=$ac_cv_prog_cc_cross
13238
13239     
13240 fi
13241
13242   fi
13243   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
13244
13245   if test x$glibcpp_cv_func_modff_use = x"yes"; then
13246     for ac_func in modff
13247 do
13248 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13249 echo "configure:13250: checking for $ac_func" >&5
13250 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13251   echo $ac_n "(cached) $ac_c" 1>&6
13252 else
13253   cat > conftest.$ac_ext <<EOF
13254 #line 13255 "configure"
13255 #include "confdefs.h"
13256 /* System header to define __stub macros and hopefully few prototypes,
13257     which can conflict with char $ac_func(); below.  */
13258 #include <assert.h>
13259 /* Override any gcc2 internal prototype to avoid an error.  */
13260 /* We use char because int might match the return type of a gcc2
13261     builtin and then its argument prototype would still apply.  */
13262 char $ac_func();
13263
13264 int main() {
13265
13266 /* The GNU C library defines this for functions which it implements
13267     to always fail with ENOSYS.  Some functions are actually named
13268     something starting with __ and the normal name is an alias.  */
13269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13270 choke me
13271 #else
13272 $ac_func();
13273 #endif
13274
13275 ; return 0; }
13276 EOF
13277 if { (eval echo configure:13278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13278   rm -rf conftest*
13279   eval "ac_cv_func_$ac_func=yes"
13280 else
13281   echo "configure: failed program was:" >&5
13282   cat conftest.$ac_ext >&5
13283   rm -rf conftest*
13284   eval "ac_cv_func_$ac_func=no"
13285 fi
13286 rm -f conftest*
13287 fi
13288
13289 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13290   echo "$ac_t""yes" 1>&6
13291     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13292   cat >> confdefs.h <<EOF
13293 #define $ac_tr_func 1
13294 EOF
13295  
13296 else
13297   echo "$ac_t""no" 1>&6
13298 fi
13299 done
13300     
13301   else
13302     
13303   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
13304 echo "configure:13305: checking for _modff declaration" >&5
13305   if test x${glibcpp_cv_func__modff_use+set} != xset; then
13306     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
13307   echo $ac_n "(cached) $ac_c" 1>&6
13308 else
13309   
13310       
13311       ac_ext=C
13312 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13313 ac_cpp='$CXXCPP $CPPFLAGS'
13314 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13315 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13316 cross_compiling=$ac_cv_prog_cxx_cross
13317
13318       cat > conftest.$ac_ext <<EOF
13319 #line 13320 "configure"
13320 #include "confdefs.h"
13321 #include <math.h>
13322 int main() {
13323  _modff(0, 0);
13324 ; return 0; }
13325 EOF
13326 if { (eval echo configure:13327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13327   rm -rf conftest*
13328   glibcpp_cv_func__modff_use=yes
13329 else
13330   echo "configure: failed program was:" >&5
13331   cat conftest.$ac_ext >&5
13332   rm -rf conftest*
13333   glibcpp_cv_func__modff_use=no
13334 fi
13335 rm -f conftest*
13336       ac_ext=c
13337 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13338 ac_cpp='$CPP $CPPFLAGS'
13339 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13340 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13341 cross_compiling=$ac_cv_prog_cc_cross
13342
13343     
13344 fi
13345
13346   fi
13347   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
13348
13349     if test x$glibcpp_cv_func__modff_use = x"yes"; then
13350       for ac_func in _modff
13351 do
13352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13353 echo "configure:13354: checking for $ac_func" >&5
13354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13355   echo $ac_n "(cached) $ac_c" 1>&6
13356 else
13357   cat > conftest.$ac_ext <<EOF
13358 #line 13359 "configure"
13359 #include "confdefs.h"
13360 /* System header to define __stub macros and hopefully few prototypes,
13361     which can conflict with char $ac_func(); below.  */
13362 #include <assert.h>
13363 /* Override any gcc2 internal prototype to avoid an error.  */
13364 /* We use char because int might match the return type of a gcc2
13365     builtin and then its argument prototype would still apply.  */
13366 char $ac_func();
13367
13368 int main() {
13369
13370 /* The GNU C library defines this for functions which it implements
13371     to always fail with ENOSYS.  Some functions are actually named
13372     something starting with __ and the normal name is an alias.  */
13373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13374 choke me
13375 #else
13376 $ac_func();
13377 #endif
13378
13379 ; return 0; }
13380 EOF
13381 if { (eval echo configure:13382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13382   rm -rf conftest*
13383   eval "ac_cv_func_$ac_func=yes"
13384 else
13385   echo "configure: failed program was:" >&5
13386   cat conftest.$ac_ext >&5
13387   rm -rf conftest*
13388   eval "ac_cv_func_$ac_func=no"
13389 fi
13390 rm -f conftest*
13391 fi
13392
13393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13394   echo "$ac_t""yes" 1>&6
13395     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13396   cat >> confdefs.h <<EOF
13397 #define $ac_tr_func 1
13398 EOF
13399  
13400 else
13401   echo "$ac_t""no" 1>&6
13402 fi
13403 done
13404     
13405     fi
13406   fi
13407
13408   
13409   
13410   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
13411 echo "configure:13412: checking for powf declaration" >&5
13412   if test x${glibcpp_cv_func_powf_use+set} != xset; then
13413     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
13414   echo $ac_n "(cached) $ac_c" 1>&6
13415 else
13416   
13417       
13418       ac_ext=C
13419 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13420 ac_cpp='$CXXCPP $CPPFLAGS'
13421 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13422 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13423 cross_compiling=$ac_cv_prog_cxx_cross
13424
13425       cat > conftest.$ac_ext <<EOF
13426 #line 13427 "configure"
13427 #include "confdefs.h"
13428 #include <math.h>
13429 int main() {
13430  powf(0, 0);
13431 ; return 0; }
13432 EOF
13433 if { (eval echo configure:13434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13434   rm -rf conftest*
13435   glibcpp_cv_func_powf_use=yes
13436 else
13437   echo "configure: failed program was:" >&5
13438   cat conftest.$ac_ext >&5
13439   rm -rf conftest*
13440   glibcpp_cv_func_powf_use=no
13441 fi
13442 rm -f conftest*
13443       ac_ext=c
13444 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13445 ac_cpp='$CPP $CPPFLAGS'
13446 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13447 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13448 cross_compiling=$ac_cv_prog_cc_cross
13449
13450     
13451 fi
13452
13453   fi
13454   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
13455
13456   if test x$glibcpp_cv_func_powf_use = x"yes"; then
13457     for ac_func in powf
13458 do
13459 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13460 echo "configure:13461: checking for $ac_func" >&5
13461 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13462   echo $ac_n "(cached) $ac_c" 1>&6
13463 else
13464   cat > conftest.$ac_ext <<EOF
13465 #line 13466 "configure"
13466 #include "confdefs.h"
13467 /* System header to define __stub macros and hopefully few prototypes,
13468     which can conflict with char $ac_func(); below.  */
13469 #include <assert.h>
13470 /* Override any gcc2 internal prototype to avoid an error.  */
13471 /* We use char because int might match the return type of a gcc2
13472     builtin and then its argument prototype would still apply.  */
13473 char $ac_func();
13474
13475 int main() {
13476
13477 /* The GNU C library defines this for functions which it implements
13478     to always fail with ENOSYS.  Some functions are actually named
13479     something starting with __ and the normal name is an alias.  */
13480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13481 choke me
13482 #else
13483 $ac_func();
13484 #endif
13485
13486 ; return 0; }
13487 EOF
13488 if { (eval echo configure:13489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13489   rm -rf conftest*
13490   eval "ac_cv_func_$ac_func=yes"
13491 else
13492   echo "configure: failed program was:" >&5
13493   cat conftest.$ac_ext >&5
13494   rm -rf conftest*
13495   eval "ac_cv_func_$ac_func=no"
13496 fi
13497 rm -f conftest*
13498 fi
13499
13500 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13501   echo "$ac_t""yes" 1>&6
13502     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13503   cat >> confdefs.h <<EOF
13504 #define $ac_tr_func 1
13505 EOF
13506  
13507 else
13508   echo "$ac_t""no" 1>&6
13509 fi
13510 done
13511     
13512   else
13513     
13514   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
13515 echo "configure:13516: checking for _powf declaration" >&5
13516   if test x${glibcpp_cv_func__powf_use+set} != xset; then
13517     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
13518   echo $ac_n "(cached) $ac_c" 1>&6
13519 else
13520   
13521       
13522       ac_ext=C
13523 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13524 ac_cpp='$CXXCPP $CPPFLAGS'
13525 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13526 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13527 cross_compiling=$ac_cv_prog_cxx_cross
13528
13529       cat > conftest.$ac_ext <<EOF
13530 #line 13531 "configure"
13531 #include "confdefs.h"
13532 #include <math.h>
13533 int main() {
13534  _powf(0, 0);
13535 ; return 0; }
13536 EOF
13537 if { (eval echo configure:13538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13538   rm -rf conftest*
13539   glibcpp_cv_func__powf_use=yes
13540 else
13541   echo "configure: failed program was:" >&5
13542   cat conftest.$ac_ext >&5
13543   rm -rf conftest*
13544   glibcpp_cv_func__powf_use=no
13545 fi
13546 rm -f conftest*
13547       ac_ext=c
13548 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13549 ac_cpp='$CPP $CPPFLAGS'
13550 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13551 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13552 cross_compiling=$ac_cv_prog_cc_cross
13553
13554     
13555 fi
13556
13557   fi
13558   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
13559
13560     if test x$glibcpp_cv_func__powf_use = x"yes"; then
13561       for ac_func in _powf
13562 do
13563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13564 echo "configure:13565: checking for $ac_func" >&5
13565 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13566   echo $ac_n "(cached) $ac_c" 1>&6
13567 else
13568   cat > conftest.$ac_ext <<EOF
13569 #line 13570 "configure"
13570 #include "confdefs.h"
13571 /* System header to define __stub macros and hopefully few prototypes,
13572     which can conflict with char $ac_func(); below.  */
13573 #include <assert.h>
13574 /* Override any gcc2 internal prototype to avoid an error.  */
13575 /* We use char because int might match the return type of a gcc2
13576     builtin and then its argument prototype would still apply.  */
13577 char $ac_func();
13578
13579 int main() {
13580
13581 /* The GNU C library defines this for functions which it implements
13582     to always fail with ENOSYS.  Some functions are actually named
13583     something starting with __ and the normal name is an alias.  */
13584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13585 choke me
13586 #else
13587 $ac_func();
13588 #endif
13589
13590 ; return 0; }
13591 EOF
13592 if { (eval echo configure:13593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13593   rm -rf conftest*
13594   eval "ac_cv_func_$ac_func=yes"
13595 else
13596   echo "configure: failed program was:" >&5
13597   cat conftest.$ac_ext >&5
13598   rm -rf conftest*
13599   eval "ac_cv_func_$ac_func=no"
13600 fi
13601 rm -f conftest*
13602 fi
13603
13604 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13605   echo "$ac_t""yes" 1>&6
13606     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13607   cat >> confdefs.h <<EOF
13608 #define $ac_tr_func 1
13609 EOF
13610  
13611 else
13612   echo "$ac_t""no" 1>&6
13613 fi
13614 done
13615     
13616     fi
13617   fi
13618
13619   
13620   
13621   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
13622 echo "configure:13623: checking for sqrtf declaration" >&5
13623   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
13624     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
13625   echo $ac_n "(cached) $ac_c" 1>&6
13626 else
13627   
13628       
13629       ac_ext=C
13630 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13631 ac_cpp='$CXXCPP $CPPFLAGS'
13632 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13633 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13634 cross_compiling=$ac_cv_prog_cxx_cross
13635
13636       cat > conftest.$ac_ext <<EOF
13637 #line 13638 "configure"
13638 #include "confdefs.h"
13639 #include <math.h>
13640                       #ifdef HAVE_IEEEFP_H
13641                       #include <ieeefp.h>
13642                       #endif
13643                      
13644 int main() {
13645  sqrtf(0);
13646 ; return 0; }
13647 EOF
13648 if { (eval echo configure:13649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13649   rm -rf conftest*
13650   glibcpp_cv_func_sqrtf_use=yes
13651 else
13652   echo "configure: failed program was:" >&5
13653   cat conftest.$ac_ext >&5
13654   rm -rf conftest*
13655   glibcpp_cv_func_sqrtf_use=no
13656 fi
13657 rm -f conftest*
13658       ac_ext=c
13659 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13660 ac_cpp='$CPP $CPPFLAGS'
13661 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13662 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13663 cross_compiling=$ac_cv_prog_cc_cross
13664
13665     
13666 fi
13667
13668   fi
13669   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
13670
13671   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
13672     for ac_func in sqrtf
13673 do
13674 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13675 echo "configure:13676: checking for $ac_func" >&5
13676 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13677   echo $ac_n "(cached) $ac_c" 1>&6
13678 else
13679   cat > conftest.$ac_ext <<EOF
13680 #line 13681 "configure"
13681 #include "confdefs.h"
13682 /* System header to define __stub macros and hopefully few prototypes,
13683     which can conflict with char $ac_func(); below.  */
13684 #include <assert.h>
13685 /* Override any gcc2 internal prototype to avoid an error.  */
13686 /* We use char because int might match the return type of a gcc2
13687     builtin and then its argument prototype would still apply.  */
13688 char $ac_func();
13689
13690 int main() {
13691
13692 /* The GNU C library defines this for functions which it implements
13693     to always fail with ENOSYS.  Some functions are actually named
13694     something starting with __ and the normal name is an alias.  */
13695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13696 choke me
13697 #else
13698 $ac_func();
13699 #endif
13700
13701 ; return 0; }
13702 EOF
13703 if { (eval echo configure:13704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13704   rm -rf conftest*
13705   eval "ac_cv_func_$ac_func=yes"
13706 else
13707   echo "configure: failed program was:" >&5
13708   cat conftest.$ac_ext >&5
13709   rm -rf conftest*
13710   eval "ac_cv_func_$ac_func=no"
13711 fi
13712 rm -f conftest*
13713 fi
13714
13715 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13716   echo "$ac_t""yes" 1>&6
13717     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13718   cat >> confdefs.h <<EOF
13719 #define $ac_tr_func 1
13720 EOF
13721  
13722 else
13723   echo "$ac_t""no" 1>&6
13724 fi
13725 done
13726     
13727   else
13728     
13729   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
13730 echo "configure:13731: checking for _sqrtf declaration" >&5
13731   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
13732     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
13733   echo $ac_n "(cached) $ac_c" 1>&6
13734 else
13735   
13736       
13737       ac_ext=C
13738 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13739 ac_cpp='$CXXCPP $CPPFLAGS'
13740 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13741 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13742 cross_compiling=$ac_cv_prog_cxx_cross
13743
13744       cat > conftest.$ac_ext <<EOF
13745 #line 13746 "configure"
13746 #include "confdefs.h"
13747 #include <math.h>
13748                       #ifdef HAVE_IEEEFP_H
13749                       #include <ieeefp.h>
13750                       #endif
13751                      
13752 int main() {
13753  _sqrtf(0);
13754 ; return 0; }
13755 EOF
13756 if { (eval echo configure:13757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13757   rm -rf conftest*
13758   glibcpp_cv_func__sqrtf_use=yes
13759 else
13760   echo "configure: failed program was:" >&5
13761   cat conftest.$ac_ext >&5
13762   rm -rf conftest*
13763   glibcpp_cv_func__sqrtf_use=no
13764 fi
13765 rm -f conftest*
13766       ac_ext=c
13767 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13768 ac_cpp='$CPP $CPPFLAGS'
13769 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13770 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13771 cross_compiling=$ac_cv_prog_cc_cross
13772
13773     
13774 fi
13775
13776   fi
13777   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
13778
13779     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
13780       for ac_func in _sqrtf
13781 do
13782 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13783 echo "configure:13784: checking for $ac_func" >&5
13784 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13785   echo $ac_n "(cached) $ac_c" 1>&6
13786 else
13787   cat > conftest.$ac_ext <<EOF
13788 #line 13789 "configure"
13789 #include "confdefs.h"
13790 /* System header to define __stub macros and hopefully few prototypes,
13791     which can conflict with char $ac_func(); below.  */
13792 #include <assert.h>
13793 /* Override any gcc2 internal prototype to avoid an error.  */
13794 /* We use char because int might match the return type of a gcc2
13795     builtin and then its argument prototype would still apply.  */
13796 char $ac_func();
13797
13798 int main() {
13799
13800 /* The GNU C library defines this for functions which it implements
13801     to always fail with ENOSYS.  Some functions are actually named
13802     something starting with __ and the normal name is an alias.  */
13803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13804 choke me
13805 #else
13806 $ac_func();
13807 #endif
13808
13809 ; return 0; }
13810 EOF
13811 if { (eval echo configure:13812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13812   rm -rf conftest*
13813   eval "ac_cv_func_$ac_func=yes"
13814 else
13815   echo "configure: failed program was:" >&5
13816   cat conftest.$ac_ext >&5
13817   rm -rf conftest*
13818   eval "ac_cv_func_$ac_func=no"
13819 fi
13820 rm -f conftest*
13821 fi
13822
13823 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13824   echo "$ac_t""yes" 1>&6
13825     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13826   cat >> confdefs.h <<EOF
13827 #define $ac_tr_func 1
13828 EOF
13829  
13830 else
13831   echo "$ac_t""no" 1>&6
13832 fi
13833 done
13834     
13835     fi
13836   fi
13837
13838   
13839   
13840   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
13841 echo "configure:13842: checking for sincosf declaration" >&5
13842   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
13843     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
13844   echo $ac_n "(cached) $ac_c" 1>&6
13845 else
13846   
13847       
13848       ac_ext=C
13849 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13850 ac_cpp='$CXXCPP $CPPFLAGS'
13851 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13852 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13853 cross_compiling=$ac_cv_prog_cxx_cross
13854
13855       cat > conftest.$ac_ext <<EOF
13856 #line 13857 "configure"
13857 #include "confdefs.h"
13858 #include <math.h>
13859 int main() {
13860  sincosf(0, 0, 0);
13861 ; return 0; }
13862 EOF
13863 if { (eval echo configure:13864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13864   rm -rf conftest*
13865   glibcpp_cv_func_sincosf_use=yes
13866 else
13867   echo "configure: failed program was:" >&5
13868   cat conftest.$ac_ext >&5
13869   rm -rf conftest*
13870   glibcpp_cv_func_sincosf_use=no
13871 fi
13872 rm -f conftest*
13873       ac_ext=c
13874 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13875 ac_cpp='$CPP $CPPFLAGS'
13876 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13877 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13878 cross_compiling=$ac_cv_prog_cc_cross
13879
13880     
13881 fi
13882
13883   fi
13884   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
13885
13886   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
13887     for ac_func in sincosf
13888 do
13889 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13890 echo "configure:13891: checking for $ac_func" >&5
13891 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13892   echo $ac_n "(cached) $ac_c" 1>&6
13893 else
13894   cat > conftest.$ac_ext <<EOF
13895 #line 13896 "configure"
13896 #include "confdefs.h"
13897 /* System header to define __stub macros and hopefully few prototypes,
13898     which can conflict with char $ac_func(); below.  */
13899 #include <assert.h>
13900 /* Override any gcc2 internal prototype to avoid an error.  */
13901 /* We use char because int might match the return type of a gcc2
13902     builtin and then its argument prototype would still apply.  */
13903 char $ac_func();
13904
13905 int main() {
13906
13907 /* The GNU C library defines this for functions which it implements
13908     to always fail with ENOSYS.  Some functions are actually named
13909     something starting with __ and the normal name is an alias.  */
13910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13911 choke me
13912 #else
13913 $ac_func();
13914 #endif
13915
13916 ; return 0; }
13917 EOF
13918 if { (eval echo configure:13919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13919   rm -rf conftest*
13920   eval "ac_cv_func_$ac_func=yes"
13921 else
13922   echo "configure: failed program was:" >&5
13923   cat conftest.$ac_ext >&5
13924   rm -rf conftest*
13925   eval "ac_cv_func_$ac_func=no"
13926 fi
13927 rm -f conftest*
13928 fi
13929
13930 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13931   echo "$ac_t""yes" 1>&6
13932     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13933   cat >> confdefs.h <<EOF
13934 #define $ac_tr_func 1
13935 EOF
13936  
13937 else
13938   echo "$ac_t""no" 1>&6
13939 fi
13940 done
13941     
13942   else
13943     
13944   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
13945 echo "configure:13946: checking for _sincosf declaration" >&5
13946   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
13947     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
13948   echo $ac_n "(cached) $ac_c" 1>&6
13949 else
13950   
13951       
13952       ac_ext=C
13953 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13954 ac_cpp='$CXXCPP $CPPFLAGS'
13955 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13956 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13957 cross_compiling=$ac_cv_prog_cxx_cross
13958
13959       cat > conftest.$ac_ext <<EOF
13960 #line 13961 "configure"
13961 #include "confdefs.h"
13962 #include <math.h>
13963 int main() {
13964  _sincosf(0, 0, 0);
13965 ; return 0; }
13966 EOF
13967 if { (eval echo configure:13968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13968   rm -rf conftest*
13969   glibcpp_cv_func__sincosf_use=yes
13970 else
13971   echo "configure: failed program was:" >&5
13972   cat conftest.$ac_ext >&5
13973   rm -rf conftest*
13974   glibcpp_cv_func__sincosf_use=no
13975 fi
13976 rm -f conftest*
13977       ac_ext=c
13978 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13979 ac_cpp='$CPP $CPPFLAGS'
13980 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13981 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13982 cross_compiling=$ac_cv_prog_cc_cross
13983
13984     
13985 fi
13986
13987   fi
13988   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
13989
13990     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
13991       for ac_func in _sincosf
13992 do
13993 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13994 echo "configure:13995: checking for $ac_func" >&5
13995 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13996   echo $ac_n "(cached) $ac_c" 1>&6
13997 else
13998   cat > conftest.$ac_ext <<EOF
13999 #line 14000 "configure"
14000 #include "confdefs.h"
14001 /* System header to define __stub macros and hopefully few prototypes,
14002     which can conflict with char $ac_func(); below.  */
14003 #include <assert.h>
14004 /* Override any gcc2 internal prototype to avoid an error.  */
14005 /* We use char because int might match the return type of a gcc2
14006     builtin and then its argument prototype would still apply.  */
14007 char $ac_func();
14008
14009 int main() {
14010
14011 /* The GNU C library defines this for functions which it implements
14012     to always fail with ENOSYS.  Some functions are actually named
14013     something starting with __ and the normal name is an alias.  */
14014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14015 choke me
14016 #else
14017 $ac_func();
14018 #endif
14019
14020 ; return 0; }
14021 EOF
14022 if { (eval echo configure:14023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14023   rm -rf conftest*
14024   eval "ac_cv_func_$ac_func=yes"
14025 else
14026   echo "configure: failed program was:" >&5
14027   cat conftest.$ac_ext >&5
14028   rm -rf conftest*
14029   eval "ac_cv_func_$ac_func=no"
14030 fi
14031 rm -f conftest*
14032 fi
14033
14034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14035   echo "$ac_t""yes" 1>&6
14036     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14037   cat >> confdefs.h <<EOF
14038 #define $ac_tr_func 1
14039 EOF
14040  
14041 else
14042   echo "$ac_t""no" 1>&6
14043 fi
14044 done
14045     
14046     fi
14047   fi
14048
14049   
14050   
14051   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
14052 echo "configure:14053: checking for finitef declaration" >&5
14053   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
14054     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
14055   echo $ac_n "(cached) $ac_c" 1>&6
14056 else
14057   
14058       
14059       ac_ext=C
14060 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14061 ac_cpp='$CXXCPP $CPPFLAGS'
14062 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14063 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14064 cross_compiling=$ac_cv_prog_cxx_cross
14065
14066       cat > conftest.$ac_ext <<EOF
14067 #line 14068 "configure"
14068 #include "confdefs.h"
14069 #include <math.h>
14070                       #ifdef HAVE_IEEEFP_H
14071                       #include <ieeefp.h>
14072                       #endif
14073                      
14074 int main() {
14075  finitef(0);
14076 ; return 0; }
14077 EOF
14078 if { (eval echo configure:14079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14079   rm -rf conftest*
14080   glibcpp_cv_func_finitef_use=yes
14081 else
14082   echo "configure: failed program was:" >&5
14083   cat conftest.$ac_ext >&5
14084   rm -rf conftest*
14085   glibcpp_cv_func_finitef_use=no
14086 fi
14087 rm -f conftest*
14088       ac_ext=c
14089 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14090 ac_cpp='$CPP $CPPFLAGS'
14091 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14092 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14093 cross_compiling=$ac_cv_prog_cc_cross
14094
14095     
14096 fi
14097
14098   fi
14099   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
14100
14101   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
14102     for ac_func in finitef
14103 do
14104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14105 echo "configure:14106: checking for $ac_func" >&5
14106 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14107   echo $ac_n "(cached) $ac_c" 1>&6
14108 else
14109   cat > conftest.$ac_ext <<EOF
14110 #line 14111 "configure"
14111 #include "confdefs.h"
14112 /* System header to define __stub macros and hopefully few prototypes,
14113     which can conflict with char $ac_func(); below.  */
14114 #include <assert.h>
14115 /* Override any gcc2 internal prototype to avoid an error.  */
14116 /* We use char because int might match the return type of a gcc2
14117     builtin and then its argument prototype would still apply.  */
14118 char $ac_func();
14119
14120 int main() {
14121
14122 /* The GNU C library defines this for functions which it implements
14123     to always fail with ENOSYS.  Some functions are actually named
14124     something starting with __ and the normal name is an alias.  */
14125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14126 choke me
14127 #else
14128 $ac_func();
14129 #endif
14130
14131 ; return 0; }
14132 EOF
14133 if { (eval echo configure:14134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14134   rm -rf conftest*
14135   eval "ac_cv_func_$ac_func=yes"
14136 else
14137   echo "configure: failed program was:" >&5
14138   cat conftest.$ac_ext >&5
14139   rm -rf conftest*
14140   eval "ac_cv_func_$ac_func=no"
14141 fi
14142 rm -f conftest*
14143 fi
14144
14145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14146   echo "$ac_t""yes" 1>&6
14147     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14148   cat >> confdefs.h <<EOF
14149 #define $ac_tr_func 1
14150 EOF
14151  
14152 else
14153   echo "$ac_t""no" 1>&6
14154 fi
14155 done
14156     
14157   else
14158     
14159   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
14160 echo "configure:14161: checking for _finitef declaration" >&5
14161   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
14162     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
14163   echo $ac_n "(cached) $ac_c" 1>&6
14164 else
14165   
14166       
14167       ac_ext=C
14168 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14169 ac_cpp='$CXXCPP $CPPFLAGS'
14170 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14171 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14172 cross_compiling=$ac_cv_prog_cxx_cross
14173
14174       cat > conftest.$ac_ext <<EOF
14175 #line 14176 "configure"
14176 #include "confdefs.h"
14177 #include <math.h>
14178                       #ifdef HAVE_IEEEFP_H
14179                       #include <ieeefp.h>
14180                       #endif
14181                      
14182 int main() {
14183  _finitef(0);
14184 ; return 0; }
14185 EOF
14186 if { (eval echo configure:14187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14187   rm -rf conftest*
14188   glibcpp_cv_func__finitef_use=yes
14189 else
14190   echo "configure: failed program was:" >&5
14191   cat conftest.$ac_ext >&5
14192   rm -rf conftest*
14193   glibcpp_cv_func__finitef_use=no
14194 fi
14195 rm -f conftest*
14196       ac_ext=c
14197 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14198 ac_cpp='$CPP $CPPFLAGS'
14199 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14200 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14201 cross_compiling=$ac_cv_prog_cc_cross
14202
14203     
14204 fi
14205
14206   fi
14207   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
14208
14209     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
14210       for ac_func in _finitef
14211 do
14212 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14213 echo "configure:14214: checking for $ac_func" >&5
14214 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14215   echo $ac_n "(cached) $ac_c" 1>&6
14216 else
14217   cat > conftest.$ac_ext <<EOF
14218 #line 14219 "configure"
14219 #include "confdefs.h"
14220 /* System header to define __stub macros and hopefully few prototypes,
14221     which can conflict with char $ac_func(); below.  */
14222 #include <assert.h>
14223 /* Override any gcc2 internal prototype to avoid an error.  */
14224 /* We use char because int might match the return type of a gcc2
14225     builtin and then its argument prototype would still apply.  */
14226 char $ac_func();
14227
14228 int main() {
14229
14230 /* The GNU C library defines this for functions which it implements
14231     to always fail with ENOSYS.  Some functions are actually named
14232     something starting with __ and the normal name is an alias.  */
14233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14234 choke me
14235 #else
14236 $ac_func();
14237 #endif
14238
14239 ; return 0; }
14240 EOF
14241 if { (eval echo configure:14242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14242   rm -rf conftest*
14243   eval "ac_cv_func_$ac_func=yes"
14244 else
14245   echo "configure: failed program was:" >&5
14246   cat conftest.$ac_ext >&5
14247   rm -rf conftest*
14248   eval "ac_cv_func_$ac_func=no"
14249 fi
14250 rm -f conftest*
14251 fi
14252
14253 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14254   echo "$ac_t""yes" 1>&6
14255     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14256   cat >> confdefs.h <<EOF
14257 #define $ac_tr_func 1
14258 EOF
14259  
14260 else
14261   echo "$ac_t""no" 1>&6
14262 fi
14263 done
14264     
14265     fi
14266   fi
14267
14268
14269     
14270   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
14271 echo "configure:14272: checking for long double trig functions" >&5
14272   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
14273   echo $ac_n "(cached) $ac_c" 1>&6
14274 else
14275   
14276     
14277     ac_ext=C
14278 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14279 ac_cpp='$CXXCPP $CPPFLAGS'
14280 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14281 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14282 cross_compiling=$ac_cv_prog_cxx_cross
14283
14284     cat > conftest.$ac_ext <<EOF
14285 #line 14286 "configure"
14286 #include "confdefs.h"
14287 #include <math.h>
14288 int main() {
14289  `for x in acosl asinl atanl \
14290                                           cosl sinl tanl \
14291                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
14292 ; return 0; }
14293 EOF
14294 if { (eval echo configure:14295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14295   rm -rf conftest*
14296   glibcpp_cv_func_long_double_trig_use=yes
14297 else
14298   echo "configure: failed program was:" >&5
14299   cat conftest.$ac_ext >&5
14300   rm -rf conftest*
14301   glibcpp_cv_func_long_double_trig_use=no
14302 fi
14303 rm -f conftest*
14304     ac_ext=c
14305 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14306 ac_cpp='$CPP $CPPFLAGS'
14307 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14308 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14309 cross_compiling=$ac_cv_prog_cc_cross
14310
14311 fi
14312
14313   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
14314   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
14315     for ac_func in acosl asinl atanl \
14316                                           cosl sinl tanl \
14317                                           coshl sinhl tanhl
14318 do
14319 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14320 echo "configure:14321: checking for $ac_func" >&5
14321 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14322   echo $ac_n "(cached) $ac_c" 1>&6
14323 else
14324   cat > conftest.$ac_ext <<EOF
14325 #line 14326 "configure"
14326 #include "confdefs.h"
14327 /* System header to define __stub macros and hopefully few prototypes,
14328     which can conflict with char $ac_func(); below.  */
14329 #include <assert.h>
14330 /* Override any gcc2 internal prototype to avoid an error.  */
14331 /* We use char because int might match the return type of a gcc2
14332     builtin and then its argument prototype would still apply.  */
14333 char $ac_func();
14334
14335 int main() {
14336
14337 /* The GNU C library defines this for functions which it implements
14338     to always fail with ENOSYS.  Some functions are actually named
14339     something starting with __ and the normal name is an alias.  */
14340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14341 choke me
14342 #else
14343 $ac_func();
14344 #endif
14345
14346 ; return 0; }
14347 EOF
14348 if { (eval echo configure:14349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14349   rm -rf conftest*
14350   eval "ac_cv_func_$ac_func=yes"
14351 else
14352   echo "configure: failed program was:" >&5
14353   cat conftest.$ac_ext >&5
14354   rm -rf conftest*
14355   eval "ac_cv_func_$ac_func=no"
14356 fi
14357 rm -f conftest*
14358 fi
14359
14360 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14361   echo "$ac_t""yes" 1>&6
14362     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14363   cat >> confdefs.h <<EOF
14364 #define $ac_tr_func 1
14365 EOF
14366  
14367 else
14368   echo "$ac_t""no" 1>&6
14369 fi
14370 done
14371
14372   fi
14373
14374   
14375   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
14376 echo "configure:14377: checking for long double round functions" >&5
14377   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
14378   echo $ac_n "(cached) $ac_c" 1>&6
14379 else
14380   
14381     
14382     ac_ext=C
14383 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14384 ac_cpp='$CXXCPP $CPPFLAGS'
14385 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14386 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14387 cross_compiling=$ac_cv_prog_cxx_cross
14388
14389     cat > conftest.$ac_ext <<EOF
14390 #line 14391 "configure"
14391 #include "confdefs.h"
14392 #include <math.h>
14393 int main() {
14394  `for x in ceill floorl; do echo "$x (0);"; done` 
14395 ; return 0; }
14396 EOF
14397 if { (eval echo configure:14398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14398   rm -rf conftest*
14399   glibcpp_cv_func_long_double_round_use=yes
14400 else
14401   echo "configure: failed program was:" >&5
14402   cat conftest.$ac_ext >&5
14403   rm -rf conftest*
14404   glibcpp_cv_func_long_double_round_use=no
14405 fi
14406 rm -f conftest*
14407     ac_ext=c
14408 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14409 ac_cpp='$CPP $CPPFLAGS'
14410 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14411 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14412 cross_compiling=$ac_cv_prog_cc_cross
14413
14414 fi
14415
14416   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
14417   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
14418     for ac_func in ceill floorl
14419 do
14420 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14421 echo "configure:14422: checking for $ac_func" >&5
14422 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14423   echo $ac_n "(cached) $ac_c" 1>&6
14424 else
14425   cat > conftest.$ac_ext <<EOF
14426 #line 14427 "configure"
14427 #include "confdefs.h"
14428 /* System header to define __stub macros and hopefully few prototypes,
14429     which can conflict with char $ac_func(); below.  */
14430 #include <assert.h>
14431 /* Override any gcc2 internal prototype to avoid an error.  */
14432 /* We use char because int might match the return type of a gcc2
14433     builtin and then its argument prototype would still apply.  */
14434 char $ac_func();
14435
14436 int main() {
14437
14438 /* The GNU C library defines this for functions which it implements
14439     to always fail with ENOSYS.  Some functions are actually named
14440     something starting with __ and the normal name is an alias.  */
14441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14442 choke me
14443 #else
14444 $ac_func();
14445 #endif
14446
14447 ; return 0; }
14448 EOF
14449 if { (eval echo configure:14450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14450   rm -rf conftest*
14451   eval "ac_cv_func_$ac_func=yes"
14452 else
14453   echo "configure: failed program was:" >&5
14454   cat conftest.$ac_ext >&5
14455   rm -rf conftest*
14456   eval "ac_cv_func_$ac_func=no"
14457 fi
14458 rm -f conftest*
14459 fi
14460
14461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14462   echo "$ac_t""yes" 1>&6
14463     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14464   cat >> confdefs.h <<EOF
14465 #define $ac_tr_func 1
14466 EOF
14467  
14468 else
14469   echo "$ac_t""no" 1>&6
14470 fi
14471 done
14472
14473   fi
14474
14475   
14476   
14477   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
14478 echo "configure:14479: checking for isnanl declaration" >&5
14479   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
14480     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
14481   echo $ac_n "(cached) $ac_c" 1>&6
14482 else
14483   
14484       
14485       ac_ext=C
14486 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14487 ac_cpp='$CXXCPP $CPPFLAGS'
14488 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14489 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14490 cross_compiling=$ac_cv_prog_cxx_cross
14491
14492       cat > conftest.$ac_ext <<EOF
14493 #line 14494 "configure"
14494 #include "confdefs.h"
14495 #include <math.h>
14496                       #ifdef HAVE_IEEEFP_H
14497                       #include <ieeefp.h>
14498                       #endif
14499                      
14500 int main() {
14501  isnanl(0);
14502 ; return 0; }
14503 EOF
14504 if { (eval echo configure:14505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14505   rm -rf conftest*
14506   glibcpp_cv_func_isnanl_use=yes
14507 else
14508   echo "configure: failed program was:" >&5
14509   cat conftest.$ac_ext >&5
14510   rm -rf conftest*
14511   glibcpp_cv_func_isnanl_use=no
14512 fi
14513 rm -f conftest*
14514       ac_ext=c
14515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14516 ac_cpp='$CPP $CPPFLAGS'
14517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14518 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14519 cross_compiling=$ac_cv_prog_cc_cross
14520
14521     
14522 fi
14523
14524   fi
14525   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
14526
14527   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
14528     for ac_func in isnanl
14529 do
14530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14531 echo "configure:14532: checking for $ac_func" >&5
14532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14533   echo $ac_n "(cached) $ac_c" 1>&6
14534 else
14535   cat > conftest.$ac_ext <<EOF
14536 #line 14537 "configure"
14537 #include "confdefs.h"
14538 /* System header to define __stub macros and hopefully few prototypes,
14539     which can conflict with char $ac_func(); below.  */
14540 #include <assert.h>
14541 /* Override any gcc2 internal prototype to avoid an error.  */
14542 /* We use char because int might match the return type of a gcc2
14543     builtin and then its argument prototype would still apply.  */
14544 char $ac_func();
14545
14546 int main() {
14547
14548 /* The GNU C library defines this for functions which it implements
14549     to always fail with ENOSYS.  Some functions are actually named
14550     something starting with __ and the normal name is an alias.  */
14551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14552 choke me
14553 #else
14554 $ac_func();
14555 #endif
14556
14557 ; return 0; }
14558 EOF
14559 if { (eval echo configure:14560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14560   rm -rf conftest*
14561   eval "ac_cv_func_$ac_func=yes"
14562 else
14563   echo "configure: failed program was:" >&5
14564   cat conftest.$ac_ext >&5
14565   rm -rf conftest*
14566   eval "ac_cv_func_$ac_func=no"
14567 fi
14568 rm -f conftest*
14569 fi
14570
14571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14572   echo "$ac_t""yes" 1>&6
14573     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14574   cat >> confdefs.h <<EOF
14575 #define $ac_tr_func 1
14576 EOF
14577  
14578 else
14579   echo "$ac_t""no" 1>&6
14580 fi
14581 done
14582     
14583   else
14584     
14585   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
14586 echo "configure:14587: checking for _isnanl declaration" >&5
14587   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
14588     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
14589   echo $ac_n "(cached) $ac_c" 1>&6
14590 else
14591   
14592       
14593       ac_ext=C
14594 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14595 ac_cpp='$CXXCPP $CPPFLAGS'
14596 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14597 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14598 cross_compiling=$ac_cv_prog_cxx_cross
14599
14600       cat > conftest.$ac_ext <<EOF
14601 #line 14602 "configure"
14602 #include "confdefs.h"
14603 #include <math.h>
14604                       #ifdef HAVE_IEEEFP_H
14605                       #include <ieeefp.h>
14606                       #endif
14607                      
14608 int main() {
14609  _isnanl(0);
14610 ; return 0; }
14611 EOF
14612 if { (eval echo configure:14613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14613   rm -rf conftest*
14614   glibcpp_cv_func__isnanl_use=yes
14615 else
14616   echo "configure: failed program was:" >&5
14617   cat conftest.$ac_ext >&5
14618   rm -rf conftest*
14619   glibcpp_cv_func__isnanl_use=no
14620 fi
14621 rm -f conftest*
14622       ac_ext=c
14623 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14624 ac_cpp='$CPP $CPPFLAGS'
14625 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14626 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14627 cross_compiling=$ac_cv_prog_cc_cross
14628
14629     
14630 fi
14631
14632   fi
14633   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
14634
14635     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
14636       for ac_func in _isnanl
14637 do
14638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14639 echo "configure:14640: checking for $ac_func" >&5
14640 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14641   echo $ac_n "(cached) $ac_c" 1>&6
14642 else
14643   cat > conftest.$ac_ext <<EOF
14644 #line 14645 "configure"
14645 #include "confdefs.h"
14646 /* System header to define __stub macros and hopefully few prototypes,
14647     which can conflict with char $ac_func(); below.  */
14648 #include <assert.h>
14649 /* Override any gcc2 internal prototype to avoid an error.  */
14650 /* We use char because int might match the return type of a gcc2
14651     builtin and then its argument prototype would still apply.  */
14652 char $ac_func();
14653
14654 int main() {
14655
14656 /* The GNU C library defines this for functions which it implements
14657     to always fail with ENOSYS.  Some functions are actually named
14658     something starting with __ and the normal name is an alias.  */
14659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14660 choke me
14661 #else
14662 $ac_func();
14663 #endif
14664
14665 ; return 0; }
14666 EOF
14667 if { (eval echo configure:14668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14668   rm -rf conftest*
14669   eval "ac_cv_func_$ac_func=yes"
14670 else
14671   echo "configure: failed program was:" >&5
14672   cat conftest.$ac_ext >&5
14673   rm -rf conftest*
14674   eval "ac_cv_func_$ac_func=no"
14675 fi
14676 rm -f conftest*
14677 fi
14678
14679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14680   echo "$ac_t""yes" 1>&6
14681     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14682   cat >> confdefs.h <<EOF
14683 #define $ac_tr_func 1
14684 EOF
14685  
14686 else
14687   echo "$ac_t""no" 1>&6
14688 fi
14689 done
14690     
14691     fi
14692   fi
14693
14694   
14695   
14696   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
14697 echo "configure:14698: checking for isinfl declaration" >&5
14698   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
14699     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
14700   echo $ac_n "(cached) $ac_c" 1>&6
14701 else
14702   
14703       
14704       ac_ext=C
14705 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14706 ac_cpp='$CXXCPP $CPPFLAGS'
14707 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14708 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14709 cross_compiling=$ac_cv_prog_cxx_cross
14710
14711       cat > conftest.$ac_ext <<EOF
14712 #line 14713 "configure"
14713 #include "confdefs.h"
14714 #include <math.h>
14715                       #ifdef HAVE_IEEEFP_H
14716                       #include <ieeefp.h>
14717                       #endif
14718                      
14719 int main() {
14720  isinfl(0);
14721 ; return 0; }
14722 EOF
14723 if { (eval echo configure:14724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14724   rm -rf conftest*
14725   glibcpp_cv_func_isinfl_use=yes
14726 else
14727   echo "configure: failed program was:" >&5
14728   cat conftest.$ac_ext >&5
14729   rm -rf conftest*
14730   glibcpp_cv_func_isinfl_use=no
14731 fi
14732 rm -f conftest*
14733       ac_ext=c
14734 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14735 ac_cpp='$CPP $CPPFLAGS'
14736 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14737 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14738 cross_compiling=$ac_cv_prog_cc_cross
14739
14740     
14741 fi
14742
14743   fi
14744   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
14745
14746   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
14747     for ac_func in isinfl
14748 do
14749 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14750 echo "configure:14751: checking for $ac_func" >&5
14751 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14752   echo $ac_n "(cached) $ac_c" 1>&6
14753 else
14754   cat > conftest.$ac_ext <<EOF
14755 #line 14756 "configure"
14756 #include "confdefs.h"
14757 /* System header to define __stub macros and hopefully few prototypes,
14758     which can conflict with char $ac_func(); below.  */
14759 #include <assert.h>
14760 /* Override any gcc2 internal prototype to avoid an error.  */
14761 /* We use char because int might match the return type of a gcc2
14762     builtin and then its argument prototype would still apply.  */
14763 char $ac_func();
14764
14765 int main() {
14766
14767 /* The GNU C library defines this for functions which it implements
14768     to always fail with ENOSYS.  Some functions are actually named
14769     something starting with __ and the normal name is an alias.  */
14770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14771 choke me
14772 #else
14773 $ac_func();
14774 #endif
14775
14776 ; return 0; }
14777 EOF
14778 if { (eval echo configure:14779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14779   rm -rf conftest*
14780   eval "ac_cv_func_$ac_func=yes"
14781 else
14782   echo "configure: failed program was:" >&5
14783   cat conftest.$ac_ext >&5
14784   rm -rf conftest*
14785   eval "ac_cv_func_$ac_func=no"
14786 fi
14787 rm -f conftest*
14788 fi
14789
14790 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14791   echo "$ac_t""yes" 1>&6
14792     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14793   cat >> confdefs.h <<EOF
14794 #define $ac_tr_func 1
14795 EOF
14796  
14797 else
14798   echo "$ac_t""no" 1>&6
14799 fi
14800 done
14801     
14802   else
14803     
14804   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
14805 echo "configure:14806: checking for _isinfl declaration" >&5
14806   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
14807     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
14808   echo $ac_n "(cached) $ac_c" 1>&6
14809 else
14810   
14811       
14812       ac_ext=C
14813 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14814 ac_cpp='$CXXCPP $CPPFLAGS'
14815 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14816 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14817 cross_compiling=$ac_cv_prog_cxx_cross
14818
14819       cat > conftest.$ac_ext <<EOF
14820 #line 14821 "configure"
14821 #include "confdefs.h"
14822 #include <math.h>
14823                       #ifdef HAVE_IEEEFP_H
14824                       #include <ieeefp.h>
14825                       #endif
14826                      
14827 int main() {
14828  _isinfl(0);
14829 ; return 0; }
14830 EOF
14831 if { (eval echo configure:14832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14832   rm -rf conftest*
14833   glibcpp_cv_func__isinfl_use=yes
14834 else
14835   echo "configure: failed program was:" >&5
14836   cat conftest.$ac_ext >&5
14837   rm -rf conftest*
14838   glibcpp_cv_func__isinfl_use=no
14839 fi
14840 rm -f conftest*
14841       ac_ext=c
14842 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14843 ac_cpp='$CPP $CPPFLAGS'
14844 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14845 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14846 cross_compiling=$ac_cv_prog_cc_cross
14847
14848     
14849 fi
14850
14851   fi
14852   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
14853
14854     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
14855       for ac_func in _isinfl
14856 do
14857 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14858 echo "configure:14859: checking for $ac_func" >&5
14859 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14860   echo $ac_n "(cached) $ac_c" 1>&6
14861 else
14862   cat > conftest.$ac_ext <<EOF
14863 #line 14864 "configure"
14864 #include "confdefs.h"
14865 /* System header to define __stub macros and hopefully few prototypes,
14866     which can conflict with char $ac_func(); below.  */
14867 #include <assert.h>
14868 /* Override any gcc2 internal prototype to avoid an error.  */
14869 /* We use char because int might match the return type of a gcc2
14870     builtin and then its argument prototype would still apply.  */
14871 char $ac_func();
14872
14873 int main() {
14874
14875 /* The GNU C library defines this for functions which it implements
14876     to always fail with ENOSYS.  Some functions are actually named
14877     something starting with __ and the normal name is an alias.  */
14878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14879 choke me
14880 #else
14881 $ac_func();
14882 #endif
14883
14884 ; return 0; }
14885 EOF
14886 if { (eval echo configure:14887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14887   rm -rf conftest*
14888   eval "ac_cv_func_$ac_func=yes"
14889 else
14890   echo "configure: failed program was:" >&5
14891   cat conftest.$ac_ext >&5
14892   rm -rf conftest*
14893   eval "ac_cv_func_$ac_func=no"
14894 fi
14895 rm -f conftest*
14896 fi
14897
14898 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14899   echo "$ac_t""yes" 1>&6
14900     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14901   cat >> confdefs.h <<EOF
14902 #define $ac_tr_func 1
14903 EOF
14904  
14905 else
14906   echo "$ac_t""no" 1>&6
14907 fi
14908 done
14909     
14910     fi
14911   fi
14912
14913   
14914   
14915   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
14916 echo "configure:14917: checking for copysignl declaration" >&5
14917   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
14918     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
14919   echo $ac_n "(cached) $ac_c" 1>&6
14920 else
14921   
14922       
14923       ac_ext=C
14924 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14925 ac_cpp='$CXXCPP $CPPFLAGS'
14926 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14927 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14928 cross_compiling=$ac_cv_prog_cxx_cross
14929
14930       cat > conftest.$ac_ext <<EOF
14931 #line 14932 "configure"
14932 #include "confdefs.h"
14933 #include <math.h>
14934 int main() {
14935  copysignl(0, 0);
14936 ; return 0; }
14937 EOF
14938 if { (eval echo configure:14939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14939   rm -rf conftest*
14940   glibcpp_cv_func_copysignl_use=yes
14941 else
14942   echo "configure: failed program was:" >&5
14943   cat conftest.$ac_ext >&5
14944   rm -rf conftest*
14945   glibcpp_cv_func_copysignl_use=no
14946 fi
14947 rm -f conftest*
14948       ac_ext=c
14949 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14950 ac_cpp='$CPP $CPPFLAGS'
14951 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14952 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14953 cross_compiling=$ac_cv_prog_cc_cross
14954
14955     
14956 fi
14957
14958   fi
14959   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
14960
14961   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
14962     for ac_func in copysignl
14963 do
14964 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14965 echo "configure:14966: checking for $ac_func" >&5
14966 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14967   echo $ac_n "(cached) $ac_c" 1>&6
14968 else
14969   cat > conftest.$ac_ext <<EOF
14970 #line 14971 "configure"
14971 #include "confdefs.h"
14972 /* System header to define __stub macros and hopefully few prototypes,
14973     which can conflict with char $ac_func(); below.  */
14974 #include <assert.h>
14975 /* Override any gcc2 internal prototype to avoid an error.  */
14976 /* We use char because int might match the return type of a gcc2
14977     builtin and then its argument prototype would still apply.  */
14978 char $ac_func();
14979
14980 int main() {
14981
14982 /* The GNU C library defines this for functions which it implements
14983     to always fail with ENOSYS.  Some functions are actually named
14984     something starting with __ and the normal name is an alias.  */
14985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14986 choke me
14987 #else
14988 $ac_func();
14989 #endif
14990
14991 ; return 0; }
14992 EOF
14993 if { (eval echo configure:14994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14994   rm -rf conftest*
14995   eval "ac_cv_func_$ac_func=yes"
14996 else
14997   echo "configure: failed program was:" >&5
14998   cat conftest.$ac_ext >&5
14999   rm -rf conftest*
15000   eval "ac_cv_func_$ac_func=no"
15001 fi
15002 rm -f conftest*
15003 fi
15004
15005 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15006   echo "$ac_t""yes" 1>&6
15007     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15008   cat >> confdefs.h <<EOF
15009 #define $ac_tr_func 1
15010 EOF
15011  
15012 else
15013   echo "$ac_t""no" 1>&6
15014 fi
15015 done
15016     
15017   else
15018     
15019   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
15020 echo "configure:15021: checking for _copysignl declaration" >&5
15021   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
15022     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
15023   echo $ac_n "(cached) $ac_c" 1>&6
15024 else
15025   
15026       
15027       ac_ext=C
15028 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15029 ac_cpp='$CXXCPP $CPPFLAGS'
15030 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15031 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15032 cross_compiling=$ac_cv_prog_cxx_cross
15033
15034       cat > conftest.$ac_ext <<EOF
15035 #line 15036 "configure"
15036 #include "confdefs.h"
15037 #include <math.h>
15038 int main() {
15039  _copysignl(0, 0);
15040 ; return 0; }
15041 EOF
15042 if { (eval echo configure:15043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15043   rm -rf conftest*
15044   glibcpp_cv_func__copysignl_use=yes
15045 else
15046   echo "configure: failed program was:" >&5
15047   cat conftest.$ac_ext >&5
15048   rm -rf conftest*
15049   glibcpp_cv_func__copysignl_use=no
15050 fi
15051 rm -f conftest*
15052       ac_ext=c
15053 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15054 ac_cpp='$CPP $CPPFLAGS'
15055 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15056 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15057 cross_compiling=$ac_cv_prog_cc_cross
15058
15059     
15060 fi
15061
15062   fi
15063   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
15064
15065     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
15066       for ac_func in _copysignl
15067 do
15068 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15069 echo "configure:15070: checking for $ac_func" >&5
15070 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15071   echo $ac_n "(cached) $ac_c" 1>&6
15072 else
15073   cat > conftest.$ac_ext <<EOF
15074 #line 15075 "configure"
15075 #include "confdefs.h"
15076 /* System header to define __stub macros and hopefully few prototypes,
15077     which can conflict with char $ac_func(); below.  */
15078 #include <assert.h>
15079 /* Override any gcc2 internal prototype to avoid an error.  */
15080 /* We use char because int might match the return type of a gcc2
15081     builtin and then its argument prototype would still apply.  */
15082 char $ac_func();
15083
15084 int main() {
15085
15086 /* The GNU C library defines this for functions which it implements
15087     to always fail with ENOSYS.  Some functions are actually named
15088     something starting with __ and the normal name is an alias.  */
15089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15090 choke me
15091 #else
15092 $ac_func();
15093 #endif
15094
15095 ; return 0; }
15096 EOF
15097 if { (eval echo configure:15098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15098   rm -rf conftest*
15099   eval "ac_cv_func_$ac_func=yes"
15100 else
15101   echo "configure: failed program was:" >&5
15102   cat conftest.$ac_ext >&5
15103   rm -rf conftest*
15104   eval "ac_cv_func_$ac_func=no"
15105 fi
15106 rm -f conftest*
15107 fi
15108
15109 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15110   echo "$ac_t""yes" 1>&6
15111     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15112   cat >> confdefs.h <<EOF
15113 #define $ac_tr_func 1
15114 EOF
15115  
15116 else
15117   echo "$ac_t""no" 1>&6
15118 fi
15119 done
15120     
15121     fi
15122   fi
15123
15124   
15125   
15126   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
15127 echo "configure:15128: checking for atan2l declaration" >&5
15128   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
15129     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
15130   echo $ac_n "(cached) $ac_c" 1>&6
15131 else
15132   
15133       
15134       ac_ext=C
15135 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15136 ac_cpp='$CXXCPP $CPPFLAGS'
15137 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15138 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15139 cross_compiling=$ac_cv_prog_cxx_cross
15140
15141       cat > conftest.$ac_ext <<EOF
15142 #line 15143 "configure"
15143 #include "confdefs.h"
15144 #include <math.h>
15145 int main() {
15146  atan2l(0, 0);
15147 ; return 0; }
15148 EOF
15149 if { (eval echo configure:15150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15150   rm -rf conftest*
15151   glibcpp_cv_func_atan2l_use=yes
15152 else
15153   echo "configure: failed program was:" >&5
15154   cat conftest.$ac_ext >&5
15155   rm -rf conftest*
15156   glibcpp_cv_func_atan2l_use=no
15157 fi
15158 rm -f conftest*
15159       ac_ext=c
15160 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15161 ac_cpp='$CPP $CPPFLAGS'
15162 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15163 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15164 cross_compiling=$ac_cv_prog_cc_cross
15165
15166     
15167 fi
15168
15169   fi
15170   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
15171
15172   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
15173     for ac_func in atan2l
15174 do
15175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15176 echo "configure:15177: checking for $ac_func" >&5
15177 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15178   echo $ac_n "(cached) $ac_c" 1>&6
15179 else
15180   cat > conftest.$ac_ext <<EOF
15181 #line 15182 "configure"
15182 #include "confdefs.h"
15183 /* System header to define __stub macros and hopefully few prototypes,
15184     which can conflict with char $ac_func(); below.  */
15185 #include <assert.h>
15186 /* Override any gcc2 internal prototype to avoid an error.  */
15187 /* We use char because int might match the return type of a gcc2
15188     builtin and then its argument prototype would still apply.  */
15189 char $ac_func();
15190
15191 int main() {
15192
15193 /* The GNU C library defines this for functions which it implements
15194     to always fail with ENOSYS.  Some functions are actually named
15195     something starting with __ and the normal name is an alias.  */
15196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15197 choke me
15198 #else
15199 $ac_func();
15200 #endif
15201
15202 ; return 0; }
15203 EOF
15204 if { (eval echo configure:15205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15205   rm -rf conftest*
15206   eval "ac_cv_func_$ac_func=yes"
15207 else
15208   echo "configure: failed program was:" >&5
15209   cat conftest.$ac_ext >&5
15210   rm -rf conftest*
15211   eval "ac_cv_func_$ac_func=no"
15212 fi
15213 rm -f conftest*
15214 fi
15215
15216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15217   echo "$ac_t""yes" 1>&6
15218     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15219   cat >> confdefs.h <<EOF
15220 #define $ac_tr_func 1
15221 EOF
15222  
15223 else
15224   echo "$ac_t""no" 1>&6
15225 fi
15226 done
15227     
15228   else
15229     
15230   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
15231 echo "configure:15232: checking for _atan2l declaration" >&5
15232   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
15233     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
15234   echo $ac_n "(cached) $ac_c" 1>&6
15235 else
15236   
15237       
15238       ac_ext=C
15239 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15240 ac_cpp='$CXXCPP $CPPFLAGS'
15241 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15242 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15243 cross_compiling=$ac_cv_prog_cxx_cross
15244
15245       cat > conftest.$ac_ext <<EOF
15246 #line 15247 "configure"
15247 #include "confdefs.h"
15248 #include <math.h>
15249 int main() {
15250  _atan2l(0, 0);
15251 ; return 0; }
15252 EOF
15253 if { (eval echo configure:15254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15254   rm -rf conftest*
15255   glibcpp_cv_func__atan2l_use=yes
15256 else
15257   echo "configure: failed program was:" >&5
15258   cat conftest.$ac_ext >&5
15259   rm -rf conftest*
15260   glibcpp_cv_func__atan2l_use=no
15261 fi
15262 rm -f conftest*
15263       ac_ext=c
15264 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15265 ac_cpp='$CPP $CPPFLAGS'
15266 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15267 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15268 cross_compiling=$ac_cv_prog_cc_cross
15269
15270     
15271 fi
15272
15273   fi
15274   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
15275
15276     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
15277       for ac_func in _atan2l
15278 do
15279 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15280 echo "configure:15281: checking for $ac_func" >&5
15281 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15282   echo $ac_n "(cached) $ac_c" 1>&6
15283 else
15284   cat > conftest.$ac_ext <<EOF
15285 #line 15286 "configure"
15286 #include "confdefs.h"
15287 /* System header to define __stub macros and hopefully few prototypes,
15288     which can conflict with char $ac_func(); below.  */
15289 #include <assert.h>
15290 /* Override any gcc2 internal prototype to avoid an error.  */
15291 /* We use char because int might match the return type of a gcc2
15292     builtin and then its argument prototype would still apply.  */
15293 char $ac_func();
15294
15295 int main() {
15296
15297 /* The GNU C library defines this for functions which it implements
15298     to always fail with ENOSYS.  Some functions are actually named
15299     something starting with __ and the normal name is an alias.  */
15300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15301 choke me
15302 #else
15303 $ac_func();
15304 #endif
15305
15306 ; return 0; }
15307 EOF
15308 if { (eval echo configure:15309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15309   rm -rf conftest*
15310   eval "ac_cv_func_$ac_func=yes"
15311 else
15312   echo "configure: failed program was:" >&5
15313   cat conftest.$ac_ext >&5
15314   rm -rf conftest*
15315   eval "ac_cv_func_$ac_func=no"
15316 fi
15317 rm -f conftest*
15318 fi
15319
15320 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15321   echo "$ac_t""yes" 1>&6
15322     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15323   cat >> confdefs.h <<EOF
15324 #define $ac_tr_func 1
15325 EOF
15326  
15327 else
15328   echo "$ac_t""no" 1>&6
15329 fi
15330 done
15331     
15332     fi
15333   fi
15334
15335   
15336   
15337   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
15338 echo "configure:15339: checking for expl declaration" >&5
15339   if test x${glibcpp_cv_func_expl_use+set} != xset; then
15340     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
15341   echo $ac_n "(cached) $ac_c" 1>&6
15342 else
15343   
15344       
15345       ac_ext=C
15346 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15347 ac_cpp='$CXXCPP $CPPFLAGS'
15348 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15349 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15350 cross_compiling=$ac_cv_prog_cxx_cross
15351
15352       cat > conftest.$ac_ext <<EOF
15353 #line 15354 "configure"
15354 #include "confdefs.h"
15355 #include <math.h>
15356                       #ifdef HAVE_IEEEFP_H
15357                       #include <ieeefp.h>
15358                       #endif
15359                      
15360 int main() {
15361  expl(0);
15362 ; return 0; }
15363 EOF
15364 if { (eval echo configure:15365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15365   rm -rf conftest*
15366   glibcpp_cv_func_expl_use=yes
15367 else
15368   echo "configure: failed program was:" >&5
15369   cat conftest.$ac_ext >&5
15370   rm -rf conftest*
15371   glibcpp_cv_func_expl_use=no
15372 fi
15373 rm -f conftest*
15374       ac_ext=c
15375 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15376 ac_cpp='$CPP $CPPFLAGS'
15377 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15378 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15379 cross_compiling=$ac_cv_prog_cc_cross
15380
15381     
15382 fi
15383
15384   fi
15385   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
15386
15387   if test x$glibcpp_cv_func_expl_use = x"yes"; then
15388     for ac_func in expl
15389 do
15390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15391 echo "configure:15392: checking for $ac_func" >&5
15392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15393   echo $ac_n "(cached) $ac_c" 1>&6
15394 else
15395   cat > conftest.$ac_ext <<EOF
15396 #line 15397 "configure"
15397 #include "confdefs.h"
15398 /* System header to define __stub macros and hopefully few prototypes,
15399     which can conflict with char $ac_func(); below.  */
15400 #include <assert.h>
15401 /* Override any gcc2 internal prototype to avoid an error.  */
15402 /* We use char because int might match the return type of a gcc2
15403     builtin and then its argument prototype would still apply.  */
15404 char $ac_func();
15405
15406 int main() {
15407
15408 /* The GNU C library defines this for functions which it implements
15409     to always fail with ENOSYS.  Some functions are actually named
15410     something starting with __ and the normal name is an alias.  */
15411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15412 choke me
15413 #else
15414 $ac_func();
15415 #endif
15416
15417 ; return 0; }
15418 EOF
15419 if { (eval echo configure:15420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15420   rm -rf conftest*
15421   eval "ac_cv_func_$ac_func=yes"
15422 else
15423   echo "configure: failed program was:" >&5
15424   cat conftest.$ac_ext >&5
15425   rm -rf conftest*
15426   eval "ac_cv_func_$ac_func=no"
15427 fi
15428 rm -f conftest*
15429 fi
15430
15431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15432   echo "$ac_t""yes" 1>&6
15433     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15434   cat >> confdefs.h <<EOF
15435 #define $ac_tr_func 1
15436 EOF
15437  
15438 else
15439   echo "$ac_t""no" 1>&6
15440 fi
15441 done
15442     
15443   else
15444     
15445   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
15446 echo "configure:15447: checking for _expl declaration" >&5
15447   if test x${glibcpp_cv_func__expl_use+set} != xset; then
15448     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
15449   echo $ac_n "(cached) $ac_c" 1>&6
15450 else
15451   
15452       
15453       ac_ext=C
15454 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15455 ac_cpp='$CXXCPP $CPPFLAGS'
15456 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15457 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15458 cross_compiling=$ac_cv_prog_cxx_cross
15459
15460       cat > conftest.$ac_ext <<EOF
15461 #line 15462 "configure"
15462 #include "confdefs.h"
15463 #include <math.h>
15464                       #ifdef HAVE_IEEEFP_H
15465                       #include <ieeefp.h>
15466                       #endif
15467                      
15468 int main() {
15469  _expl(0);
15470 ; return 0; }
15471 EOF
15472 if { (eval echo configure:15473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15473   rm -rf conftest*
15474   glibcpp_cv_func__expl_use=yes
15475 else
15476   echo "configure: failed program was:" >&5
15477   cat conftest.$ac_ext >&5
15478   rm -rf conftest*
15479   glibcpp_cv_func__expl_use=no
15480 fi
15481 rm -f conftest*
15482       ac_ext=c
15483 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15484 ac_cpp='$CPP $CPPFLAGS'
15485 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15486 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15487 cross_compiling=$ac_cv_prog_cc_cross
15488
15489     
15490 fi
15491
15492   fi
15493   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
15494
15495     if test x$glibcpp_cv_func__expl_use = x"yes"; then
15496       for ac_func in _expl
15497 do
15498 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15499 echo "configure:15500: checking for $ac_func" >&5
15500 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15501   echo $ac_n "(cached) $ac_c" 1>&6
15502 else
15503   cat > conftest.$ac_ext <<EOF
15504 #line 15505 "configure"
15505 #include "confdefs.h"
15506 /* System header to define __stub macros and hopefully few prototypes,
15507     which can conflict with char $ac_func(); below.  */
15508 #include <assert.h>
15509 /* Override any gcc2 internal prototype to avoid an error.  */
15510 /* We use char because int might match the return type of a gcc2
15511     builtin and then its argument prototype would still apply.  */
15512 char $ac_func();
15513
15514 int main() {
15515
15516 /* The GNU C library defines this for functions which it implements
15517     to always fail with ENOSYS.  Some functions are actually named
15518     something starting with __ and the normal name is an alias.  */
15519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15520 choke me
15521 #else
15522 $ac_func();
15523 #endif
15524
15525 ; return 0; }
15526 EOF
15527 if { (eval echo configure:15528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15528   rm -rf conftest*
15529   eval "ac_cv_func_$ac_func=yes"
15530 else
15531   echo "configure: failed program was:" >&5
15532   cat conftest.$ac_ext >&5
15533   rm -rf conftest*
15534   eval "ac_cv_func_$ac_func=no"
15535 fi
15536 rm -f conftest*
15537 fi
15538
15539 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15540   echo "$ac_t""yes" 1>&6
15541     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15542   cat >> confdefs.h <<EOF
15543 #define $ac_tr_func 1
15544 EOF
15545  
15546 else
15547   echo "$ac_t""no" 1>&6
15548 fi
15549 done
15550     
15551     fi
15552   fi
15553
15554   
15555   
15556   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
15557 echo "configure:15558: checking for fabsl declaration" >&5
15558   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
15559     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
15560   echo $ac_n "(cached) $ac_c" 1>&6
15561 else
15562   
15563       
15564       ac_ext=C
15565 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15566 ac_cpp='$CXXCPP $CPPFLAGS'
15567 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15568 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15569 cross_compiling=$ac_cv_prog_cxx_cross
15570
15571       cat > conftest.$ac_ext <<EOF
15572 #line 15573 "configure"
15573 #include "confdefs.h"
15574 #include <math.h>
15575                       #ifdef HAVE_IEEEFP_H
15576                       #include <ieeefp.h>
15577                       #endif
15578                      
15579 int main() {
15580  fabsl(0);
15581 ; return 0; }
15582 EOF
15583 if { (eval echo configure:15584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15584   rm -rf conftest*
15585   glibcpp_cv_func_fabsl_use=yes
15586 else
15587   echo "configure: failed program was:" >&5
15588   cat conftest.$ac_ext >&5
15589   rm -rf conftest*
15590   glibcpp_cv_func_fabsl_use=no
15591 fi
15592 rm -f conftest*
15593       ac_ext=c
15594 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15595 ac_cpp='$CPP $CPPFLAGS'
15596 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15597 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15598 cross_compiling=$ac_cv_prog_cc_cross
15599
15600     
15601 fi
15602
15603   fi
15604   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
15605
15606   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
15607     for ac_func in fabsl
15608 do
15609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15610 echo "configure:15611: checking for $ac_func" >&5
15611 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15612   echo $ac_n "(cached) $ac_c" 1>&6
15613 else
15614   cat > conftest.$ac_ext <<EOF
15615 #line 15616 "configure"
15616 #include "confdefs.h"
15617 /* System header to define __stub macros and hopefully few prototypes,
15618     which can conflict with char $ac_func(); below.  */
15619 #include <assert.h>
15620 /* Override any gcc2 internal prototype to avoid an error.  */
15621 /* We use char because int might match the return type of a gcc2
15622     builtin and then its argument prototype would still apply.  */
15623 char $ac_func();
15624
15625 int main() {
15626
15627 /* The GNU C library defines this for functions which it implements
15628     to always fail with ENOSYS.  Some functions are actually named
15629     something starting with __ and the normal name is an alias.  */
15630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15631 choke me
15632 #else
15633 $ac_func();
15634 #endif
15635
15636 ; return 0; }
15637 EOF
15638 if { (eval echo configure:15639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15639   rm -rf conftest*
15640   eval "ac_cv_func_$ac_func=yes"
15641 else
15642   echo "configure: failed program was:" >&5
15643   cat conftest.$ac_ext >&5
15644   rm -rf conftest*
15645   eval "ac_cv_func_$ac_func=no"
15646 fi
15647 rm -f conftest*
15648 fi
15649
15650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15651   echo "$ac_t""yes" 1>&6
15652     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15653   cat >> confdefs.h <<EOF
15654 #define $ac_tr_func 1
15655 EOF
15656  
15657 else
15658   echo "$ac_t""no" 1>&6
15659 fi
15660 done
15661     
15662   else
15663     
15664   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
15665 echo "configure:15666: checking for _fabsl declaration" >&5
15666   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
15667     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
15668   echo $ac_n "(cached) $ac_c" 1>&6
15669 else
15670   
15671       
15672       ac_ext=C
15673 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15674 ac_cpp='$CXXCPP $CPPFLAGS'
15675 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15676 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15677 cross_compiling=$ac_cv_prog_cxx_cross
15678
15679       cat > conftest.$ac_ext <<EOF
15680 #line 15681 "configure"
15681 #include "confdefs.h"
15682 #include <math.h>
15683                       #ifdef HAVE_IEEEFP_H
15684                       #include <ieeefp.h>
15685                       #endif
15686                      
15687 int main() {
15688  _fabsl(0);
15689 ; return 0; }
15690 EOF
15691 if { (eval echo configure:15692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15692   rm -rf conftest*
15693   glibcpp_cv_func__fabsl_use=yes
15694 else
15695   echo "configure: failed program was:" >&5
15696   cat conftest.$ac_ext >&5
15697   rm -rf conftest*
15698   glibcpp_cv_func__fabsl_use=no
15699 fi
15700 rm -f conftest*
15701       ac_ext=c
15702 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15703 ac_cpp='$CPP $CPPFLAGS'
15704 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15705 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15706 cross_compiling=$ac_cv_prog_cc_cross
15707
15708     
15709 fi
15710
15711   fi
15712   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
15713
15714     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
15715       for ac_func in _fabsl
15716 do
15717 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15718 echo "configure:15719: checking for $ac_func" >&5
15719 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15720   echo $ac_n "(cached) $ac_c" 1>&6
15721 else
15722   cat > conftest.$ac_ext <<EOF
15723 #line 15724 "configure"
15724 #include "confdefs.h"
15725 /* System header to define __stub macros and hopefully few prototypes,
15726     which can conflict with char $ac_func(); below.  */
15727 #include <assert.h>
15728 /* Override any gcc2 internal prototype to avoid an error.  */
15729 /* We use char because int might match the return type of a gcc2
15730     builtin and then its argument prototype would still apply.  */
15731 char $ac_func();
15732
15733 int main() {
15734
15735 /* The GNU C library defines this for functions which it implements
15736     to always fail with ENOSYS.  Some functions are actually named
15737     something starting with __ and the normal name is an alias.  */
15738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15739 choke me
15740 #else
15741 $ac_func();
15742 #endif
15743
15744 ; return 0; }
15745 EOF
15746 if { (eval echo configure:15747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15747   rm -rf conftest*
15748   eval "ac_cv_func_$ac_func=yes"
15749 else
15750   echo "configure: failed program was:" >&5
15751   cat conftest.$ac_ext >&5
15752   rm -rf conftest*
15753   eval "ac_cv_func_$ac_func=no"
15754 fi
15755 rm -f conftest*
15756 fi
15757
15758 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15759   echo "$ac_t""yes" 1>&6
15760     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15761   cat >> confdefs.h <<EOF
15762 #define $ac_tr_func 1
15763 EOF
15764  
15765 else
15766   echo "$ac_t""no" 1>&6
15767 fi
15768 done
15769     
15770     fi
15771   fi
15772
15773   
15774   
15775   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
15776 echo "configure:15777: checking for fmodl declaration" >&5
15777   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
15778     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
15779   echo $ac_n "(cached) $ac_c" 1>&6
15780 else
15781   
15782       
15783       ac_ext=C
15784 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15785 ac_cpp='$CXXCPP $CPPFLAGS'
15786 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15787 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15788 cross_compiling=$ac_cv_prog_cxx_cross
15789
15790       cat > conftest.$ac_ext <<EOF
15791 #line 15792 "configure"
15792 #include "confdefs.h"
15793 #include <math.h>
15794 int main() {
15795  fmodl(0, 0);
15796 ; return 0; }
15797 EOF
15798 if { (eval echo configure:15799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15799   rm -rf conftest*
15800   glibcpp_cv_func_fmodl_use=yes
15801 else
15802   echo "configure: failed program was:" >&5
15803   cat conftest.$ac_ext >&5
15804   rm -rf conftest*
15805   glibcpp_cv_func_fmodl_use=no
15806 fi
15807 rm -f conftest*
15808       ac_ext=c
15809 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15810 ac_cpp='$CPP $CPPFLAGS'
15811 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15812 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15813 cross_compiling=$ac_cv_prog_cc_cross
15814
15815     
15816 fi
15817
15818   fi
15819   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
15820
15821   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
15822     for ac_func in fmodl
15823 do
15824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15825 echo "configure:15826: checking for $ac_func" >&5
15826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15827   echo $ac_n "(cached) $ac_c" 1>&6
15828 else
15829   cat > conftest.$ac_ext <<EOF
15830 #line 15831 "configure"
15831 #include "confdefs.h"
15832 /* System header to define __stub macros and hopefully few prototypes,
15833     which can conflict with char $ac_func(); below.  */
15834 #include <assert.h>
15835 /* Override any gcc2 internal prototype to avoid an error.  */
15836 /* We use char because int might match the return type of a gcc2
15837     builtin and then its argument prototype would still apply.  */
15838 char $ac_func();
15839
15840 int main() {
15841
15842 /* The GNU C library defines this for functions which it implements
15843     to always fail with ENOSYS.  Some functions are actually named
15844     something starting with __ and the normal name is an alias.  */
15845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15846 choke me
15847 #else
15848 $ac_func();
15849 #endif
15850
15851 ; return 0; }
15852 EOF
15853 if { (eval echo configure:15854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15854   rm -rf conftest*
15855   eval "ac_cv_func_$ac_func=yes"
15856 else
15857   echo "configure: failed program was:" >&5
15858   cat conftest.$ac_ext >&5
15859   rm -rf conftest*
15860   eval "ac_cv_func_$ac_func=no"
15861 fi
15862 rm -f conftest*
15863 fi
15864
15865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15866   echo "$ac_t""yes" 1>&6
15867     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15868   cat >> confdefs.h <<EOF
15869 #define $ac_tr_func 1
15870 EOF
15871  
15872 else
15873   echo "$ac_t""no" 1>&6
15874 fi
15875 done
15876     
15877   else
15878     
15879   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
15880 echo "configure:15881: checking for _fmodl declaration" >&5
15881   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
15882     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
15883   echo $ac_n "(cached) $ac_c" 1>&6
15884 else
15885   
15886       
15887       ac_ext=C
15888 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15889 ac_cpp='$CXXCPP $CPPFLAGS'
15890 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15891 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15892 cross_compiling=$ac_cv_prog_cxx_cross
15893
15894       cat > conftest.$ac_ext <<EOF
15895 #line 15896 "configure"
15896 #include "confdefs.h"
15897 #include <math.h>
15898 int main() {
15899  _fmodl(0, 0);
15900 ; return 0; }
15901 EOF
15902 if { (eval echo configure:15903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15903   rm -rf conftest*
15904   glibcpp_cv_func__fmodl_use=yes
15905 else
15906   echo "configure: failed program was:" >&5
15907   cat conftest.$ac_ext >&5
15908   rm -rf conftest*
15909   glibcpp_cv_func__fmodl_use=no
15910 fi
15911 rm -f conftest*
15912       ac_ext=c
15913 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15914 ac_cpp='$CPP $CPPFLAGS'
15915 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15916 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15917 cross_compiling=$ac_cv_prog_cc_cross
15918
15919     
15920 fi
15921
15922   fi
15923   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
15924
15925     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
15926       for ac_func in _fmodl
15927 do
15928 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15929 echo "configure:15930: checking for $ac_func" >&5
15930 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15931   echo $ac_n "(cached) $ac_c" 1>&6
15932 else
15933   cat > conftest.$ac_ext <<EOF
15934 #line 15935 "configure"
15935 #include "confdefs.h"
15936 /* System header to define __stub macros and hopefully few prototypes,
15937     which can conflict with char $ac_func(); below.  */
15938 #include <assert.h>
15939 /* Override any gcc2 internal prototype to avoid an error.  */
15940 /* We use char because int might match the return type of a gcc2
15941     builtin and then its argument prototype would still apply.  */
15942 char $ac_func();
15943
15944 int main() {
15945
15946 /* The GNU C library defines this for functions which it implements
15947     to always fail with ENOSYS.  Some functions are actually named
15948     something starting with __ and the normal name is an alias.  */
15949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15950 choke me
15951 #else
15952 $ac_func();
15953 #endif
15954
15955 ; return 0; }
15956 EOF
15957 if { (eval echo configure:15958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15958   rm -rf conftest*
15959   eval "ac_cv_func_$ac_func=yes"
15960 else
15961   echo "configure: failed program was:" >&5
15962   cat conftest.$ac_ext >&5
15963   rm -rf conftest*
15964   eval "ac_cv_func_$ac_func=no"
15965 fi
15966 rm -f conftest*
15967 fi
15968
15969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15970   echo "$ac_t""yes" 1>&6
15971     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15972   cat >> confdefs.h <<EOF
15973 #define $ac_tr_func 1
15974 EOF
15975  
15976 else
15977   echo "$ac_t""no" 1>&6
15978 fi
15979 done
15980     
15981     fi
15982   fi
15983
15984   
15985   
15986   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
15987 echo "configure:15988: checking for frexpl declaration" >&5
15988   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
15989     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
15990   echo $ac_n "(cached) $ac_c" 1>&6
15991 else
15992   
15993       
15994       ac_ext=C
15995 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15996 ac_cpp='$CXXCPP $CPPFLAGS'
15997 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15998 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15999 cross_compiling=$ac_cv_prog_cxx_cross
16000
16001       cat > conftest.$ac_ext <<EOF
16002 #line 16003 "configure"
16003 #include "confdefs.h"
16004 #include <math.h>
16005 int main() {
16006  frexpl(0, 0);
16007 ; return 0; }
16008 EOF
16009 if { (eval echo configure:16010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16010   rm -rf conftest*
16011   glibcpp_cv_func_frexpl_use=yes
16012 else
16013   echo "configure: failed program was:" >&5
16014   cat conftest.$ac_ext >&5
16015   rm -rf conftest*
16016   glibcpp_cv_func_frexpl_use=no
16017 fi
16018 rm -f conftest*
16019       ac_ext=c
16020 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16021 ac_cpp='$CPP $CPPFLAGS'
16022 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16023 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16024 cross_compiling=$ac_cv_prog_cc_cross
16025
16026     
16027 fi
16028
16029   fi
16030   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
16031
16032   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
16033     for ac_func in frexpl
16034 do
16035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16036 echo "configure:16037: checking for $ac_func" >&5
16037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16038   echo $ac_n "(cached) $ac_c" 1>&6
16039 else
16040   cat > conftest.$ac_ext <<EOF
16041 #line 16042 "configure"
16042 #include "confdefs.h"
16043 /* System header to define __stub macros and hopefully few prototypes,
16044     which can conflict with char $ac_func(); below.  */
16045 #include <assert.h>
16046 /* Override any gcc2 internal prototype to avoid an error.  */
16047 /* We use char because int might match the return type of a gcc2
16048     builtin and then its argument prototype would still apply.  */
16049 char $ac_func();
16050
16051 int main() {
16052
16053 /* The GNU C library defines this for functions which it implements
16054     to always fail with ENOSYS.  Some functions are actually named
16055     something starting with __ and the normal name is an alias.  */
16056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16057 choke me
16058 #else
16059 $ac_func();
16060 #endif
16061
16062 ; return 0; }
16063 EOF
16064 if { (eval echo configure:16065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16065   rm -rf conftest*
16066   eval "ac_cv_func_$ac_func=yes"
16067 else
16068   echo "configure: failed program was:" >&5
16069   cat conftest.$ac_ext >&5
16070   rm -rf conftest*
16071   eval "ac_cv_func_$ac_func=no"
16072 fi
16073 rm -f conftest*
16074 fi
16075
16076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16077   echo "$ac_t""yes" 1>&6
16078     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16079   cat >> confdefs.h <<EOF
16080 #define $ac_tr_func 1
16081 EOF
16082  
16083 else
16084   echo "$ac_t""no" 1>&6
16085 fi
16086 done
16087     
16088   else
16089     
16090   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
16091 echo "configure:16092: checking for _frexpl declaration" >&5
16092   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
16093     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
16094   echo $ac_n "(cached) $ac_c" 1>&6
16095 else
16096   
16097       
16098       ac_ext=C
16099 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16100 ac_cpp='$CXXCPP $CPPFLAGS'
16101 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16102 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16103 cross_compiling=$ac_cv_prog_cxx_cross
16104
16105       cat > conftest.$ac_ext <<EOF
16106 #line 16107 "configure"
16107 #include "confdefs.h"
16108 #include <math.h>
16109 int main() {
16110  _frexpl(0, 0);
16111 ; return 0; }
16112 EOF
16113 if { (eval echo configure:16114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16114   rm -rf conftest*
16115   glibcpp_cv_func__frexpl_use=yes
16116 else
16117   echo "configure: failed program was:" >&5
16118   cat conftest.$ac_ext >&5
16119   rm -rf conftest*
16120   glibcpp_cv_func__frexpl_use=no
16121 fi
16122 rm -f conftest*
16123       ac_ext=c
16124 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16125 ac_cpp='$CPP $CPPFLAGS'
16126 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16127 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16128 cross_compiling=$ac_cv_prog_cc_cross
16129
16130     
16131 fi
16132
16133   fi
16134   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
16135
16136     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
16137       for ac_func in _frexpl
16138 do
16139 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16140 echo "configure:16141: checking for $ac_func" >&5
16141 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16142   echo $ac_n "(cached) $ac_c" 1>&6
16143 else
16144   cat > conftest.$ac_ext <<EOF
16145 #line 16146 "configure"
16146 #include "confdefs.h"
16147 /* System header to define __stub macros and hopefully few prototypes,
16148     which can conflict with char $ac_func(); below.  */
16149 #include <assert.h>
16150 /* Override any gcc2 internal prototype to avoid an error.  */
16151 /* We use char because int might match the return type of a gcc2
16152     builtin and then its argument prototype would still apply.  */
16153 char $ac_func();
16154
16155 int main() {
16156
16157 /* The GNU C library defines this for functions which it implements
16158     to always fail with ENOSYS.  Some functions are actually named
16159     something starting with __ and the normal name is an alias.  */
16160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16161 choke me
16162 #else
16163 $ac_func();
16164 #endif
16165
16166 ; return 0; }
16167 EOF
16168 if { (eval echo configure:16169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16169   rm -rf conftest*
16170   eval "ac_cv_func_$ac_func=yes"
16171 else
16172   echo "configure: failed program was:" >&5
16173   cat conftest.$ac_ext >&5
16174   rm -rf conftest*
16175   eval "ac_cv_func_$ac_func=no"
16176 fi
16177 rm -f conftest*
16178 fi
16179
16180 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16181   echo "$ac_t""yes" 1>&6
16182     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16183   cat >> confdefs.h <<EOF
16184 #define $ac_tr_func 1
16185 EOF
16186  
16187 else
16188   echo "$ac_t""no" 1>&6
16189 fi
16190 done
16191     
16192     fi
16193   fi
16194
16195   
16196   
16197   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
16198 echo "configure:16199: checking for hypotl declaration" >&5
16199   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
16200     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
16201   echo $ac_n "(cached) $ac_c" 1>&6
16202 else
16203   
16204       
16205       ac_ext=C
16206 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16207 ac_cpp='$CXXCPP $CPPFLAGS'
16208 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16209 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16210 cross_compiling=$ac_cv_prog_cxx_cross
16211
16212       cat > conftest.$ac_ext <<EOF
16213 #line 16214 "configure"
16214 #include "confdefs.h"
16215 #include <math.h>
16216 int main() {
16217  hypotl(0, 0);
16218 ; return 0; }
16219 EOF
16220 if { (eval echo configure:16221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16221   rm -rf conftest*
16222   glibcpp_cv_func_hypotl_use=yes
16223 else
16224   echo "configure: failed program was:" >&5
16225   cat conftest.$ac_ext >&5
16226   rm -rf conftest*
16227   glibcpp_cv_func_hypotl_use=no
16228 fi
16229 rm -f conftest*
16230       ac_ext=c
16231 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16232 ac_cpp='$CPP $CPPFLAGS'
16233 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16234 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16235 cross_compiling=$ac_cv_prog_cc_cross
16236
16237     
16238 fi
16239
16240   fi
16241   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
16242
16243   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
16244     for ac_func in hypotl
16245 do
16246 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16247 echo "configure:16248: checking for $ac_func" >&5
16248 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16249   echo $ac_n "(cached) $ac_c" 1>&6
16250 else
16251   cat > conftest.$ac_ext <<EOF
16252 #line 16253 "configure"
16253 #include "confdefs.h"
16254 /* System header to define __stub macros and hopefully few prototypes,
16255     which can conflict with char $ac_func(); below.  */
16256 #include <assert.h>
16257 /* Override any gcc2 internal prototype to avoid an error.  */
16258 /* We use char because int might match the return type of a gcc2
16259     builtin and then its argument prototype would still apply.  */
16260 char $ac_func();
16261
16262 int main() {
16263
16264 /* The GNU C library defines this for functions which it implements
16265     to always fail with ENOSYS.  Some functions are actually named
16266     something starting with __ and the normal name is an alias.  */
16267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16268 choke me
16269 #else
16270 $ac_func();
16271 #endif
16272
16273 ; return 0; }
16274 EOF
16275 if { (eval echo configure:16276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16276   rm -rf conftest*
16277   eval "ac_cv_func_$ac_func=yes"
16278 else
16279   echo "configure: failed program was:" >&5
16280   cat conftest.$ac_ext >&5
16281   rm -rf conftest*
16282   eval "ac_cv_func_$ac_func=no"
16283 fi
16284 rm -f conftest*
16285 fi
16286
16287 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16288   echo "$ac_t""yes" 1>&6
16289     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16290   cat >> confdefs.h <<EOF
16291 #define $ac_tr_func 1
16292 EOF
16293  
16294 else
16295   echo "$ac_t""no" 1>&6
16296 fi
16297 done
16298     
16299   else
16300     
16301   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
16302 echo "configure:16303: checking for _hypotl declaration" >&5
16303   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
16304     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
16305   echo $ac_n "(cached) $ac_c" 1>&6
16306 else
16307   
16308       
16309       ac_ext=C
16310 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16311 ac_cpp='$CXXCPP $CPPFLAGS'
16312 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16313 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16314 cross_compiling=$ac_cv_prog_cxx_cross
16315
16316       cat > conftest.$ac_ext <<EOF
16317 #line 16318 "configure"
16318 #include "confdefs.h"
16319 #include <math.h>
16320 int main() {
16321  _hypotl(0, 0);
16322 ; return 0; }
16323 EOF
16324 if { (eval echo configure:16325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16325   rm -rf conftest*
16326   glibcpp_cv_func__hypotl_use=yes
16327 else
16328   echo "configure: failed program was:" >&5
16329   cat conftest.$ac_ext >&5
16330   rm -rf conftest*
16331   glibcpp_cv_func__hypotl_use=no
16332 fi
16333 rm -f conftest*
16334       ac_ext=c
16335 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16336 ac_cpp='$CPP $CPPFLAGS'
16337 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16338 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16339 cross_compiling=$ac_cv_prog_cc_cross
16340
16341     
16342 fi
16343
16344   fi
16345   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
16346
16347     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
16348       for ac_func in _hypotl
16349 do
16350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16351 echo "configure:16352: checking for $ac_func" >&5
16352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16353   echo $ac_n "(cached) $ac_c" 1>&6
16354 else
16355   cat > conftest.$ac_ext <<EOF
16356 #line 16357 "configure"
16357 #include "confdefs.h"
16358 /* System header to define __stub macros and hopefully few prototypes,
16359     which can conflict with char $ac_func(); below.  */
16360 #include <assert.h>
16361 /* Override any gcc2 internal prototype to avoid an error.  */
16362 /* We use char because int might match the return type of a gcc2
16363     builtin and then its argument prototype would still apply.  */
16364 char $ac_func();
16365
16366 int main() {
16367
16368 /* The GNU C library defines this for functions which it implements
16369     to always fail with ENOSYS.  Some functions are actually named
16370     something starting with __ and the normal name is an alias.  */
16371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16372 choke me
16373 #else
16374 $ac_func();
16375 #endif
16376
16377 ; return 0; }
16378 EOF
16379 if { (eval echo configure:16380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16380   rm -rf conftest*
16381   eval "ac_cv_func_$ac_func=yes"
16382 else
16383   echo "configure: failed program was:" >&5
16384   cat conftest.$ac_ext >&5
16385   rm -rf conftest*
16386   eval "ac_cv_func_$ac_func=no"
16387 fi
16388 rm -f conftest*
16389 fi
16390
16391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16392   echo "$ac_t""yes" 1>&6
16393     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16394   cat >> confdefs.h <<EOF
16395 #define $ac_tr_func 1
16396 EOF
16397  
16398 else
16399   echo "$ac_t""no" 1>&6
16400 fi
16401 done
16402     
16403     fi
16404   fi
16405
16406   
16407   
16408   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
16409 echo "configure:16410: checking for ldexpl declaration" >&5
16410   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
16411     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
16412   echo $ac_n "(cached) $ac_c" 1>&6
16413 else
16414   
16415       
16416       ac_ext=C
16417 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16418 ac_cpp='$CXXCPP $CPPFLAGS'
16419 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16420 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16421 cross_compiling=$ac_cv_prog_cxx_cross
16422
16423       cat > conftest.$ac_ext <<EOF
16424 #line 16425 "configure"
16425 #include "confdefs.h"
16426 #include <math.h>
16427 int main() {
16428  ldexpl(0, 0);
16429 ; return 0; }
16430 EOF
16431 if { (eval echo configure:16432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16432   rm -rf conftest*
16433   glibcpp_cv_func_ldexpl_use=yes
16434 else
16435   echo "configure: failed program was:" >&5
16436   cat conftest.$ac_ext >&5
16437   rm -rf conftest*
16438   glibcpp_cv_func_ldexpl_use=no
16439 fi
16440 rm -f conftest*
16441       ac_ext=c
16442 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16443 ac_cpp='$CPP $CPPFLAGS'
16444 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16445 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16446 cross_compiling=$ac_cv_prog_cc_cross
16447
16448     
16449 fi
16450
16451   fi
16452   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
16453
16454   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
16455     for ac_func in ldexpl
16456 do
16457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16458 echo "configure:16459: checking for $ac_func" >&5
16459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16460   echo $ac_n "(cached) $ac_c" 1>&6
16461 else
16462   cat > conftest.$ac_ext <<EOF
16463 #line 16464 "configure"
16464 #include "confdefs.h"
16465 /* System header to define __stub macros and hopefully few prototypes,
16466     which can conflict with char $ac_func(); below.  */
16467 #include <assert.h>
16468 /* Override any gcc2 internal prototype to avoid an error.  */
16469 /* We use char because int might match the return type of a gcc2
16470     builtin and then its argument prototype would still apply.  */
16471 char $ac_func();
16472
16473 int main() {
16474
16475 /* The GNU C library defines this for functions which it implements
16476     to always fail with ENOSYS.  Some functions are actually named
16477     something starting with __ and the normal name is an alias.  */
16478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16479 choke me
16480 #else
16481 $ac_func();
16482 #endif
16483
16484 ; return 0; }
16485 EOF
16486 if { (eval echo configure:16487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16487   rm -rf conftest*
16488   eval "ac_cv_func_$ac_func=yes"
16489 else
16490   echo "configure: failed program was:" >&5
16491   cat conftest.$ac_ext >&5
16492   rm -rf conftest*
16493   eval "ac_cv_func_$ac_func=no"
16494 fi
16495 rm -f conftest*
16496 fi
16497
16498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16499   echo "$ac_t""yes" 1>&6
16500     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16501   cat >> confdefs.h <<EOF
16502 #define $ac_tr_func 1
16503 EOF
16504  
16505 else
16506   echo "$ac_t""no" 1>&6
16507 fi
16508 done
16509     
16510   else
16511     
16512   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
16513 echo "configure:16514: checking for _ldexpl declaration" >&5
16514   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
16515     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
16516   echo $ac_n "(cached) $ac_c" 1>&6
16517 else
16518   
16519       
16520       ac_ext=C
16521 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16522 ac_cpp='$CXXCPP $CPPFLAGS'
16523 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16524 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16525 cross_compiling=$ac_cv_prog_cxx_cross
16526
16527       cat > conftest.$ac_ext <<EOF
16528 #line 16529 "configure"
16529 #include "confdefs.h"
16530 #include <math.h>
16531 int main() {
16532  _ldexpl(0, 0);
16533 ; return 0; }
16534 EOF
16535 if { (eval echo configure:16536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16536   rm -rf conftest*
16537   glibcpp_cv_func__ldexpl_use=yes
16538 else
16539   echo "configure: failed program was:" >&5
16540   cat conftest.$ac_ext >&5
16541   rm -rf conftest*
16542   glibcpp_cv_func__ldexpl_use=no
16543 fi
16544 rm -f conftest*
16545       ac_ext=c
16546 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16547 ac_cpp='$CPP $CPPFLAGS'
16548 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16549 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16550 cross_compiling=$ac_cv_prog_cc_cross
16551
16552     
16553 fi
16554
16555   fi
16556   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
16557
16558     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
16559       for ac_func in _ldexpl
16560 do
16561 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16562 echo "configure:16563: checking for $ac_func" >&5
16563 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16564   echo $ac_n "(cached) $ac_c" 1>&6
16565 else
16566   cat > conftest.$ac_ext <<EOF
16567 #line 16568 "configure"
16568 #include "confdefs.h"
16569 /* System header to define __stub macros and hopefully few prototypes,
16570     which can conflict with char $ac_func(); below.  */
16571 #include <assert.h>
16572 /* Override any gcc2 internal prototype to avoid an error.  */
16573 /* We use char because int might match the return type of a gcc2
16574     builtin and then its argument prototype would still apply.  */
16575 char $ac_func();
16576
16577 int main() {
16578
16579 /* The GNU C library defines this for functions which it implements
16580     to always fail with ENOSYS.  Some functions are actually named
16581     something starting with __ and the normal name is an alias.  */
16582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16583 choke me
16584 #else
16585 $ac_func();
16586 #endif
16587
16588 ; return 0; }
16589 EOF
16590 if { (eval echo configure:16591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16591   rm -rf conftest*
16592   eval "ac_cv_func_$ac_func=yes"
16593 else
16594   echo "configure: failed program was:" >&5
16595   cat conftest.$ac_ext >&5
16596   rm -rf conftest*
16597   eval "ac_cv_func_$ac_func=no"
16598 fi
16599 rm -f conftest*
16600 fi
16601
16602 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16603   echo "$ac_t""yes" 1>&6
16604     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16605   cat >> confdefs.h <<EOF
16606 #define $ac_tr_func 1
16607 EOF
16608  
16609 else
16610   echo "$ac_t""no" 1>&6
16611 fi
16612 done
16613     
16614     fi
16615   fi
16616
16617   
16618   
16619   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
16620 echo "configure:16621: checking for logl declaration" >&5
16621   if test x${glibcpp_cv_func_logl_use+set} != xset; then
16622     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
16623   echo $ac_n "(cached) $ac_c" 1>&6
16624 else
16625   
16626       
16627       ac_ext=C
16628 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16629 ac_cpp='$CXXCPP $CPPFLAGS'
16630 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16631 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16632 cross_compiling=$ac_cv_prog_cxx_cross
16633
16634       cat > conftest.$ac_ext <<EOF
16635 #line 16636 "configure"
16636 #include "confdefs.h"
16637 #include <math.h>
16638                       #ifdef HAVE_IEEEFP_H
16639                       #include <ieeefp.h>
16640                       #endif
16641                      
16642 int main() {
16643  logl(0);
16644 ; return 0; }
16645 EOF
16646 if { (eval echo configure:16647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16647   rm -rf conftest*
16648   glibcpp_cv_func_logl_use=yes
16649 else
16650   echo "configure: failed program was:" >&5
16651   cat conftest.$ac_ext >&5
16652   rm -rf conftest*
16653   glibcpp_cv_func_logl_use=no
16654 fi
16655 rm -f conftest*
16656       ac_ext=c
16657 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16658 ac_cpp='$CPP $CPPFLAGS'
16659 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16660 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16661 cross_compiling=$ac_cv_prog_cc_cross
16662
16663     
16664 fi
16665
16666   fi
16667   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
16668
16669   if test x$glibcpp_cv_func_logl_use = x"yes"; then
16670     for ac_func in logl
16671 do
16672 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16673 echo "configure:16674: checking for $ac_func" >&5
16674 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16675   echo $ac_n "(cached) $ac_c" 1>&6
16676 else
16677   cat > conftest.$ac_ext <<EOF
16678 #line 16679 "configure"
16679 #include "confdefs.h"
16680 /* System header to define __stub macros and hopefully few prototypes,
16681     which can conflict with char $ac_func(); below.  */
16682 #include <assert.h>
16683 /* Override any gcc2 internal prototype to avoid an error.  */
16684 /* We use char because int might match the return type of a gcc2
16685     builtin and then its argument prototype would still apply.  */
16686 char $ac_func();
16687
16688 int main() {
16689
16690 /* The GNU C library defines this for functions which it implements
16691     to always fail with ENOSYS.  Some functions are actually named
16692     something starting with __ and the normal name is an alias.  */
16693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16694 choke me
16695 #else
16696 $ac_func();
16697 #endif
16698
16699 ; return 0; }
16700 EOF
16701 if { (eval echo configure:16702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16702   rm -rf conftest*
16703   eval "ac_cv_func_$ac_func=yes"
16704 else
16705   echo "configure: failed program was:" >&5
16706   cat conftest.$ac_ext >&5
16707   rm -rf conftest*
16708   eval "ac_cv_func_$ac_func=no"
16709 fi
16710 rm -f conftest*
16711 fi
16712
16713 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16714   echo "$ac_t""yes" 1>&6
16715     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16716   cat >> confdefs.h <<EOF
16717 #define $ac_tr_func 1
16718 EOF
16719  
16720 else
16721   echo "$ac_t""no" 1>&6
16722 fi
16723 done
16724     
16725   else
16726     
16727   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
16728 echo "configure:16729: checking for _logl declaration" >&5
16729   if test x${glibcpp_cv_func__logl_use+set} != xset; then
16730     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
16731   echo $ac_n "(cached) $ac_c" 1>&6
16732 else
16733   
16734       
16735       ac_ext=C
16736 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16737 ac_cpp='$CXXCPP $CPPFLAGS'
16738 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16739 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16740 cross_compiling=$ac_cv_prog_cxx_cross
16741
16742       cat > conftest.$ac_ext <<EOF
16743 #line 16744 "configure"
16744 #include "confdefs.h"
16745 #include <math.h>
16746                       #ifdef HAVE_IEEEFP_H
16747                       #include <ieeefp.h>
16748                       #endif
16749                      
16750 int main() {
16751  _logl(0);
16752 ; return 0; }
16753 EOF
16754 if { (eval echo configure:16755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16755   rm -rf conftest*
16756   glibcpp_cv_func__logl_use=yes
16757 else
16758   echo "configure: failed program was:" >&5
16759   cat conftest.$ac_ext >&5
16760   rm -rf conftest*
16761   glibcpp_cv_func__logl_use=no
16762 fi
16763 rm -f conftest*
16764       ac_ext=c
16765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16766 ac_cpp='$CPP $CPPFLAGS'
16767 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16768 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16769 cross_compiling=$ac_cv_prog_cc_cross
16770
16771     
16772 fi
16773
16774   fi
16775   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
16776
16777     if test x$glibcpp_cv_func__logl_use = x"yes"; then
16778       for ac_func in _logl
16779 do
16780 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16781 echo "configure:16782: checking for $ac_func" >&5
16782 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16783   echo $ac_n "(cached) $ac_c" 1>&6
16784 else
16785   cat > conftest.$ac_ext <<EOF
16786 #line 16787 "configure"
16787 #include "confdefs.h"
16788 /* System header to define __stub macros and hopefully few prototypes,
16789     which can conflict with char $ac_func(); below.  */
16790 #include <assert.h>
16791 /* Override any gcc2 internal prototype to avoid an error.  */
16792 /* We use char because int might match the return type of a gcc2
16793     builtin and then its argument prototype would still apply.  */
16794 char $ac_func();
16795
16796 int main() {
16797
16798 /* The GNU C library defines this for functions which it implements
16799     to always fail with ENOSYS.  Some functions are actually named
16800     something starting with __ and the normal name is an alias.  */
16801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16802 choke me
16803 #else
16804 $ac_func();
16805 #endif
16806
16807 ; return 0; }
16808 EOF
16809 if { (eval echo configure:16810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16810   rm -rf conftest*
16811   eval "ac_cv_func_$ac_func=yes"
16812 else
16813   echo "configure: failed program was:" >&5
16814   cat conftest.$ac_ext >&5
16815   rm -rf conftest*
16816   eval "ac_cv_func_$ac_func=no"
16817 fi
16818 rm -f conftest*
16819 fi
16820
16821 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16822   echo "$ac_t""yes" 1>&6
16823     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16824   cat >> confdefs.h <<EOF
16825 #define $ac_tr_func 1
16826 EOF
16827  
16828 else
16829   echo "$ac_t""no" 1>&6
16830 fi
16831 done
16832     
16833     fi
16834   fi
16835
16836   
16837   
16838   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
16839 echo "configure:16840: checking for log10l declaration" >&5
16840   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
16841     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
16842   echo $ac_n "(cached) $ac_c" 1>&6
16843 else
16844   
16845       
16846       ac_ext=C
16847 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16848 ac_cpp='$CXXCPP $CPPFLAGS'
16849 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16850 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16851 cross_compiling=$ac_cv_prog_cxx_cross
16852
16853       cat > conftest.$ac_ext <<EOF
16854 #line 16855 "configure"
16855 #include "confdefs.h"
16856 #include <math.h>
16857                       #ifdef HAVE_IEEEFP_H
16858                       #include <ieeefp.h>
16859                       #endif
16860                      
16861 int main() {
16862  log10l(0);
16863 ; return 0; }
16864 EOF
16865 if { (eval echo configure:16866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16866   rm -rf conftest*
16867   glibcpp_cv_func_log10l_use=yes
16868 else
16869   echo "configure: failed program was:" >&5
16870   cat conftest.$ac_ext >&5
16871   rm -rf conftest*
16872   glibcpp_cv_func_log10l_use=no
16873 fi
16874 rm -f conftest*
16875       ac_ext=c
16876 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16877 ac_cpp='$CPP $CPPFLAGS'
16878 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16879 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16880 cross_compiling=$ac_cv_prog_cc_cross
16881
16882     
16883 fi
16884
16885   fi
16886   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
16887
16888   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
16889     for ac_func in log10l
16890 do
16891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16892 echo "configure:16893: checking for $ac_func" >&5
16893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16894   echo $ac_n "(cached) $ac_c" 1>&6
16895 else
16896   cat > conftest.$ac_ext <<EOF
16897 #line 16898 "configure"
16898 #include "confdefs.h"
16899 /* System header to define __stub macros and hopefully few prototypes,
16900     which can conflict with char $ac_func(); below.  */
16901 #include <assert.h>
16902 /* Override any gcc2 internal prototype to avoid an error.  */
16903 /* We use char because int might match the return type of a gcc2
16904     builtin and then its argument prototype would still apply.  */
16905 char $ac_func();
16906
16907 int main() {
16908
16909 /* The GNU C library defines this for functions which it implements
16910     to always fail with ENOSYS.  Some functions are actually named
16911     something starting with __ and the normal name is an alias.  */
16912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16913 choke me
16914 #else
16915 $ac_func();
16916 #endif
16917
16918 ; return 0; }
16919 EOF
16920 if { (eval echo configure:16921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16921   rm -rf conftest*
16922   eval "ac_cv_func_$ac_func=yes"
16923 else
16924   echo "configure: failed program was:" >&5
16925   cat conftest.$ac_ext >&5
16926   rm -rf conftest*
16927   eval "ac_cv_func_$ac_func=no"
16928 fi
16929 rm -f conftest*
16930 fi
16931
16932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16933   echo "$ac_t""yes" 1>&6
16934     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16935   cat >> confdefs.h <<EOF
16936 #define $ac_tr_func 1
16937 EOF
16938  
16939 else
16940   echo "$ac_t""no" 1>&6
16941 fi
16942 done
16943     
16944   else
16945     
16946   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
16947 echo "configure:16948: checking for _log10l declaration" >&5
16948   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
16949     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
16950   echo $ac_n "(cached) $ac_c" 1>&6
16951 else
16952   
16953       
16954       ac_ext=C
16955 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16956 ac_cpp='$CXXCPP $CPPFLAGS'
16957 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16958 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16959 cross_compiling=$ac_cv_prog_cxx_cross
16960
16961       cat > conftest.$ac_ext <<EOF
16962 #line 16963 "configure"
16963 #include "confdefs.h"
16964 #include <math.h>
16965                       #ifdef HAVE_IEEEFP_H
16966                       #include <ieeefp.h>
16967                       #endif
16968                      
16969 int main() {
16970  _log10l(0);
16971 ; return 0; }
16972 EOF
16973 if { (eval echo configure:16974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16974   rm -rf conftest*
16975   glibcpp_cv_func__log10l_use=yes
16976 else
16977   echo "configure: failed program was:" >&5
16978   cat conftest.$ac_ext >&5
16979   rm -rf conftest*
16980   glibcpp_cv_func__log10l_use=no
16981 fi
16982 rm -f conftest*
16983       ac_ext=c
16984 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16985 ac_cpp='$CPP $CPPFLAGS'
16986 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16987 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16988 cross_compiling=$ac_cv_prog_cc_cross
16989
16990     
16991 fi
16992
16993   fi
16994   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
16995
16996     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
16997       for ac_func in _log10l
16998 do
16999 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17000 echo "configure:17001: checking for $ac_func" >&5
17001 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17002   echo $ac_n "(cached) $ac_c" 1>&6
17003 else
17004   cat > conftest.$ac_ext <<EOF
17005 #line 17006 "configure"
17006 #include "confdefs.h"
17007 /* System header to define __stub macros and hopefully few prototypes,
17008     which can conflict with char $ac_func(); below.  */
17009 #include <assert.h>
17010 /* Override any gcc2 internal prototype to avoid an error.  */
17011 /* We use char because int might match the return type of a gcc2
17012     builtin and then its argument prototype would still apply.  */
17013 char $ac_func();
17014
17015 int main() {
17016
17017 /* The GNU C library defines this for functions which it implements
17018     to always fail with ENOSYS.  Some functions are actually named
17019     something starting with __ and the normal name is an alias.  */
17020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17021 choke me
17022 #else
17023 $ac_func();
17024 #endif
17025
17026 ; return 0; }
17027 EOF
17028 if { (eval echo configure:17029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17029   rm -rf conftest*
17030   eval "ac_cv_func_$ac_func=yes"
17031 else
17032   echo "configure: failed program was:" >&5
17033   cat conftest.$ac_ext >&5
17034   rm -rf conftest*
17035   eval "ac_cv_func_$ac_func=no"
17036 fi
17037 rm -f conftest*
17038 fi
17039
17040 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17041   echo "$ac_t""yes" 1>&6
17042     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17043   cat >> confdefs.h <<EOF
17044 #define $ac_tr_func 1
17045 EOF
17046  
17047 else
17048   echo "$ac_t""no" 1>&6
17049 fi
17050 done
17051     
17052     fi
17053   fi
17054
17055   
17056   
17057   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
17058 echo "configure:17059: checking for modfl declaration" >&5
17059   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
17060     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
17061   echo $ac_n "(cached) $ac_c" 1>&6
17062 else
17063   
17064       
17065       ac_ext=C
17066 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17067 ac_cpp='$CXXCPP $CPPFLAGS'
17068 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17069 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17070 cross_compiling=$ac_cv_prog_cxx_cross
17071
17072       cat > conftest.$ac_ext <<EOF
17073 #line 17074 "configure"
17074 #include "confdefs.h"
17075 #include <math.h>
17076 int main() {
17077  modfl(0, 0);
17078 ; return 0; }
17079 EOF
17080 if { (eval echo configure:17081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17081   rm -rf conftest*
17082   glibcpp_cv_func_modfl_use=yes
17083 else
17084   echo "configure: failed program was:" >&5
17085   cat conftest.$ac_ext >&5
17086   rm -rf conftest*
17087   glibcpp_cv_func_modfl_use=no
17088 fi
17089 rm -f conftest*
17090       ac_ext=c
17091 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17092 ac_cpp='$CPP $CPPFLAGS'
17093 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17094 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17095 cross_compiling=$ac_cv_prog_cc_cross
17096
17097     
17098 fi
17099
17100   fi
17101   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
17102
17103   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
17104     for ac_func in modfl
17105 do
17106 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17107 echo "configure:17108: checking for $ac_func" >&5
17108 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17109   echo $ac_n "(cached) $ac_c" 1>&6
17110 else
17111   cat > conftest.$ac_ext <<EOF
17112 #line 17113 "configure"
17113 #include "confdefs.h"
17114 /* System header to define __stub macros and hopefully few prototypes,
17115     which can conflict with char $ac_func(); below.  */
17116 #include <assert.h>
17117 /* Override any gcc2 internal prototype to avoid an error.  */
17118 /* We use char because int might match the return type of a gcc2
17119     builtin and then its argument prototype would still apply.  */
17120 char $ac_func();
17121
17122 int main() {
17123
17124 /* The GNU C library defines this for functions which it implements
17125     to always fail with ENOSYS.  Some functions are actually named
17126     something starting with __ and the normal name is an alias.  */
17127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17128 choke me
17129 #else
17130 $ac_func();
17131 #endif
17132
17133 ; return 0; }
17134 EOF
17135 if { (eval echo configure:17136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17136   rm -rf conftest*
17137   eval "ac_cv_func_$ac_func=yes"
17138 else
17139   echo "configure: failed program was:" >&5
17140   cat conftest.$ac_ext >&5
17141   rm -rf conftest*
17142   eval "ac_cv_func_$ac_func=no"
17143 fi
17144 rm -f conftest*
17145 fi
17146
17147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17148   echo "$ac_t""yes" 1>&6
17149     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17150   cat >> confdefs.h <<EOF
17151 #define $ac_tr_func 1
17152 EOF
17153  
17154 else
17155   echo "$ac_t""no" 1>&6
17156 fi
17157 done
17158     
17159   else
17160     
17161   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
17162 echo "configure:17163: checking for _modfl declaration" >&5
17163   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
17164     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
17165   echo $ac_n "(cached) $ac_c" 1>&6
17166 else
17167   
17168       
17169       ac_ext=C
17170 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17171 ac_cpp='$CXXCPP $CPPFLAGS'
17172 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17173 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17174 cross_compiling=$ac_cv_prog_cxx_cross
17175
17176       cat > conftest.$ac_ext <<EOF
17177 #line 17178 "configure"
17178 #include "confdefs.h"
17179 #include <math.h>
17180 int main() {
17181  _modfl(0, 0);
17182 ; return 0; }
17183 EOF
17184 if { (eval echo configure:17185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17185   rm -rf conftest*
17186   glibcpp_cv_func__modfl_use=yes
17187 else
17188   echo "configure: failed program was:" >&5
17189   cat conftest.$ac_ext >&5
17190   rm -rf conftest*
17191   glibcpp_cv_func__modfl_use=no
17192 fi
17193 rm -f conftest*
17194       ac_ext=c
17195 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17196 ac_cpp='$CPP $CPPFLAGS'
17197 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17198 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17199 cross_compiling=$ac_cv_prog_cc_cross
17200
17201     
17202 fi
17203
17204   fi
17205   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
17206
17207     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
17208       for ac_func in _modfl
17209 do
17210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17211 echo "configure:17212: checking for $ac_func" >&5
17212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17213   echo $ac_n "(cached) $ac_c" 1>&6
17214 else
17215   cat > conftest.$ac_ext <<EOF
17216 #line 17217 "configure"
17217 #include "confdefs.h"
17218 /* System header to define __stub macros and hopefully few prototypes,
17219     which can conflict with char $ac_func(); below.  */
17220 #include <assert.h>
17221 /* Override any gcc2 internal prototype to avoid an error.  */
17222 /* We use char because int might match the return type of a gcc2
17223     builtin and then its argument prototype would still apply.  */
17224 char $ac_func();
17225
17226 int main() {
17227
17228 /* The GNU C library defines this for functions which it implements
17229     to always fail with ENOSYS.  Some functions are actually named
17230     something starting with __ and the normal name is an alias.  */
17231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17232 choke me
17233 #else
17234 $ac_func();
17235 #endif
17236
17237 ; return 0; }
17238 EOF
17239 if { (eval echo configure:17240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17240   rm -rf conftest*
17241   eval "ac_cv_func_$ac_func=yes"
17242 else
17243   echo "configure: failed program was:" >&5
17244   cat conftest.$ac_ext >&5
17245   rm -rf conftest*
17246   eval "ac_cv_func_$ac_func=no"
17247 fi
17248 rm -f conftest*
17249 fi
17250
17251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17252   echo "$ac_t""yes" 1>&6
17253     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17254   cat >> confdefs.h <<EOF
17255 #define $ac_tr_func 1
17256 EOF
17257  
17258 else
17259   echo "$ac_t""no" 1>&6
17260 fi
17261 done
17262     
17263     fi
17264   fi
17265
17266   
17267   
17268   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
17269 echo "configure:17270: checking for powl declaration" >&5
17270   if test x${glibcpp_cv_func_powl_use+set} != xset; then
17271     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
17272   echo $ac_n "(cached) $ac_c" 1>&6
17273 else
17274   
17275       
17276       ac_ext=C
17277 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17278 ac_cpp='$CXXCPP $CPPFLAGS'
17279 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17280 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17281 cross_compiling=$ac_cv_prog_cxx_cross
17282
17283       cat > conftest.$ac_ext <<EOF
17284 #line 17285 "configure"
17285 #include "confdefs.h"
17286 #include <math.h>
17287 int main() {
17288  powl(0, 0);
17289 ; return 0; }
17290 EOF
17291 if { (eval echo configure:17292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17292   rm -rf conftest*
17293   glibcpp_cv_func_powl_use=yes
17294 else
17295   echo "configure: failed program was:" >&5
17296   cat conftest.$ac_ext >&5
17297   rm -rf conftest*
17298   glibcpp_cv_func_powl_use=no
17299 fi
17300 rm -f conftest*
17301       ac_ext=c
17302 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17303 ac_cpp='$CPP $CPPFLAGS'
17304 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17305 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17306 cross_compiling=$ac_cv_prog_cc_cross
17307
17308     
17309 fi
17310
17311   fi
17312   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
17313
17314   if test x$glibcpp_cv_func_powl_use = x"yes"; then
17315     for ac_func in powl
17316 do
17317 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17318 echo "configure:17319: checking for $ac_func" >&5
17319 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17320   echo $ac_n "(cached) $ac_c" 1>&6
17321 else
17322   cat > conftest.$ac_ext <<EOF
17323 #line 17324 "configure"
17324 #include "confdefs.h"
17325 /* System header to define __stub macros and hopefully few prototypes,
17326     which can conflict with char $ac_func(); below.  */
17327 #include <assert.h>
17328 /* Override any gcc2 internal prototype to avoid an error.  */
17329 /* We use char because int might match the return type of a gcc2
17330     builtin and then its argument prototype would still apply.  */
17331 char $ac_func();
17332
17333 int main() {
17334
17335 /* The GNU C library defines this for functions which it implements
17336     to always fail with ENOSYS.  Some functions are actually named
17337     something starting with __ and the normal name is an alias.  */
17338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17339 choke me
17340 #else
17341 $ac_func();
17342 #endif
17343
17344 ; return 0; }
17345 EOF
17346 if { (eval echo configure:17347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17347   rm -rf conftest*
17348   eval "ac_cv_func_$ac_func=yes"
17349 else
17350   echo "configure: failed program was:" >&5
17351   cat conftest.$ac_ext >&5
17352   rm -rf conftest*
17353   eval "ac_cv_func_$ac_func=no"
17354 fi
17355 rm -f conftest*
17356 fi
17357
17358 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17359   echo "$ac_t""yes" 1>&6
17360     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17361   cat >> confdefs.h <<EOF
17362 #define $ac_tr_func 1
17363 EOF
17364  
17365 else
17366   echo "$ac_t""no" 1>&6
17367 fi
17368 done
17369     
17370   else
17371     
17372   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
17373 echo "configure:17374: checking for _powl declaration" >&5
17374   if test x${glibcpp_cv_func__powl_use+set} != xset; then
17375     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
17376   echo $ac_n "(cached) $ac_c" 1>&6
17377 else
17378   
17379       
17380       ac_ext=C
17381 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17382 ac_cpp='$CXXCPP $CPPFLAGS'
17383 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17384 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17385 cross_compiling=$ac_cv_prog_cxx_cross
17386
17387       cat > conftest.$ac_ext <<EOF
17388 #line 17389 "configure"
17389 #include "confdefs.h"
17390 #include <math.h>
17391 int main() {
17392  _powl(0, 0);
17393 ; return 0; }
17394 EOF
17395 if { (eval echo configure:17396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17396   rm -rf conftest*
17397   glibcpp_cv_func__powl_use=yes
17398 else
17399   echo "configure: failed program was:" >&5
17400   cat conftest.$ac_ext >&5
17401   rm -rf conftest*
17402   glibcpp_cv_func__powl_use=no
17403 fi
17404 rm -f conftest*
17405       ac_ext=c
17406 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17407 ac_cpp='$CPP $CPPFLAGS'
17408 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17409 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17410 cross_compiling=$ac_cv_prog_cc_cross
17411
17412     
17413 fi
17414
17415   fi
17416   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
17417
17418     if test x$glibcpp_cv_func__powl_use = x"yes"; then
17419       for ac_func in _powl
17420 do
17421 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17422 echo "configure:17423: checking for $ac_func" >&5
17423 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17424   echo $ac_n "(cached) $ac_c" 1>&6
17425 else
17426   cat > conftest.$ac_ext <<EOF
17427 #line 17428 "configure"
17428 #include "confdefs.h"
17429 /* System header to define __stub macros and hopefully few prototypes,
17430     which can conflict with char $ac_func(); below.  */
17431 #include <assert.h>
17432 /* Override any gcc2 internal prototype to avoid an error.  */
17433 /* We use char because int might match the return type of a gcc2
17434     builtin and then its argument prototype would still apply.  */
17435 char $ac_func();
17436
17437 int main() {
17438
17439 /* The GNU C library defines this for functions which it implements
17440     to always fail with ENOSYS.  Some functions are actually named
17441     something starting with __ and the normal name is an alias.  */
17442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17443 choke me
17444 #else
17445 $ac_func();
17446 #endif
17447
17448 ; return 0; }
17449 EOF
17450 if { (eval echo configure:17451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17451   rm -rf conftest*
17452   eval "ac_cv_func_$ac_func=yes"
17453 else
17454   echo "configure: failed program was:" >&5
17455   cat conftest.$ac_ext >&5
17456   rm -rf conftest*
17457   eval "ac_cv_func_$ac_func=no"
17458 fi
17459 rm -f conftest*
17460 fi
17461
17462 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17463   echo "$ac_t""yes" 1>&6
17464     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17465   cat >> confdefs.h <<EOF
17466 #define $ac_tr_func 1
17467 EOF
17468  
17469 else
17470   echo "$ac_t""no" 1>&6
17471 fi
17472 done
17473     
17474     fi
17475   fi
17476
17477   
17478   
17479   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
17480 echo "configure:17481: checking for sqrtl declaration" >&5
17481   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
17482     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
17483   echo $ac_n "(cached) $ac_c" 1>&6
17484 else
17485   
17486       
17487       ac_ext=C
17488 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17489 ac_cpp='$CXXCPP $CPPFLAGS'
17490 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17491 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17492 cross_compiling=$ac_cv_prog_cxx_cross
17493
17494       cat > conftest.$ac_ext <<EOF
17495 #line 17496 "configure"
17496 #include "confdefs.h"
17497 #include <math.h>
17498                       #ifdef HAVE_IEEEFP_H
17499                       #include <ieeefp.h>
17500                       #endif
17501                      
17502 int main() {
17503  sqrtl(0);
17504 ; return 0; }
17505 EOF
17506 if { (eval echo configure:17507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17507   rm -rf conftest*
17508   glibcpp_cv_func_sqrtl_use=yes
17509 else
17510   echo "configure: failed program was:" >&5
17511   cat conftest.$ac_ext >&5
17512   rm -rf conftest*
17513   glibcpp_cv_func_sqrtl_use=no
17514 fi
17515 rm -f conftest*
17516       ac_ext=c
17517 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17518 ac_cpp='$CPP $CPPFLAGS'
17519 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17520 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17521 cross_compiling=$ac_cv_prog_cc_cross
17522
17523     
17524 fi
17525
17526   fi
17527   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
17528
17529   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
17530     for ac_func in sqrtl
17531 do
17532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17533 echo "configure:17534: checking for $ac_func" >&5
17534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17535   echo $ac_n "(cached) $ac_c" 1>&6
17536 else
17537   cat > conftest.$ac_ext <<EOF
17538 #line 17539 "configure"
17539 #include "confdefs.h"
17540 /* System header to define __stub macros and hopefully few prototypes,
17541     which can conflict with char $ac_func(); below.  */
17542 #include <assert.h>
17543 /* Override any gcc2 internal prototype to avoid an error.  */
17544 /* We use char because int might match the return type of a gcc2
17545     builtin and then its argument prototype would still apply.  */
17546 char $ac_func();
17547
17548 int main() {
17549
17550 /* The GNU C library defines this for functions which it implements
17551     to always fail with ENOSYS.  Some functions are actually named
17552     something starting with __ and the normal name is an alias.  */
17553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17554 choke me
17555 #else
17556 $ac_func();
17557 #endif
17558
17559 ; return 0; }
17560 EOF
17561 if { (eval echo configure:17562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17562   rm -rf conftest*
17563   eval "ac_cv_func_$ac_func=yes"
17564 else
17565   echo "configure: failed program was:" >&5
17566   cat conftest.$ac_ext >&5
17567   rm -rf conftest*
17568   eval "ac_cv_func_$ac_func=no"
17569 fi
17570 rm -f conftest*
17571 fi
17572
17573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17574   echo "$ac_t""yes" 1>&6
17575     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17576   cat >> confdefs.h <<EOF
17577 #define $ac_tr_func 1
17578 EOF
17579  
17580 else
17581   echo "$ac_t""no" 1>&6
17582 fi
17583 done
17584     
17585   else
17586     
17587   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
17588 echo "configure:17589: checking for _sqrtl declaration" >&5
17589   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
17590     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
17591   echo $ac_n "(cached) $ac_c" 1>&6
17592 else
17593   
17594       
17595       ac_ext=C
17596 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17597 ac_cpp='$CXXCPP $CPPFLAGS'
17598 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17599 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17600 cross_compiling=$ac_cv_prog_cxx_cross
17601
17602       cat > conftest.$ac_ext <<EOF
17603 #line 17604 "configure"
17604 #include "confdefs.h"
17605 #include <math.h>
17606                       #ifdef HAVE_IEEEFP_H
17607                       #include <ieeefp.h>
17608                       #endif
17609                      
17610 int main() {
17611  _sqrtl(0);
17612 ; return 0; }
17613 EOF
17614 if { (eval echo configure:17615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17615   rm -rf conftest*
17616   glibcpp_cv_func__sqrtl_use=yes
17617 else
17618   echo "configure: failed program was:" >&5
17619   cat conftest.$ac_ext >&5
17620   rm -rf conftest*
17621   glibcpp_cv_func__sqrtl_use=no
17622 fi
17623 rm -f conftest*
17624       ac_ext=c
17625 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17626 ac_cpp='$CPP $CPPFLAGS'
17627 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17628 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17629 cross_compiling=$ac_cv_prog_cc_cross
17630
17631     
17632 fi
17633
17634   fi
17635   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
17636
17637     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
17638       for ac_func in _sqrtl
17639 do
17640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17641 echo "configure:17642: checking for $ac_func" >&5
17642 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17643   echo $ac_n "(cached) $ac_c" 1>&6
17644 else
17645   cat > conftest.$ac_ext <<EOF
17646 #line 17647 "configure"
17647 #include "confdefs.h"
17648 /* System header to define __stub macros and hopefully few prototypes,
17649     which can conflict with char $ac_func(); below.  */
17650 #include <assert.h>
17651 /* Override any gcc2 internal prototype to avoid an error.  */
17652 /* We use char because int might match the return type of a gcc2
17653     builtin and then its argument prototype would still apply.  */
17654 char $ac_func();
17655
17656 int main() {
17657
17658 /* The GNU C library defines this for functions which it implements
17659     to always fail with ENOSYS.  Some functions are actually named
17660     something starting with __ and the normal name is an alias.  */
17661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17662 choke me
17663 #else
17664 $ac_func();
17665 #endif
17666
17667 ; return 0; }
17668 EOF
17669 if { (eval echo configure:17670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17670   rm -rf conftest*
17671   eval "ac_cv_func_$ac_func=yes"
17672 else
17673   echo "configure: failed program was:" >&5
17674   cat conftest.$ac_ext >&5
17675   rm -rf conftest*
17676   eval "ac_cv_func_$ac_func=no"
17677 fi
17678 rm -f conftest*
17679 fi
17680
17681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17682   echo "$ac_t""yes" 1>&6
17683     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17684   cat >> confdefs.h <<EOF
17685 #define $ac_tr_func 1
17686 EOF
17687  
17688 else
17689   echo "$ac_t""no" 1>&6
17690 fi
17691 done
17692     
17693     fi
17694   fi
17695
17696   
17697   
17698   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
17699 echo "configure:17700: checking for sincosl declaration" >&5
17700   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
17701     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
17702   echo $ac_n "(cached) $ac_c" 1>&6
17703 else
17704   
17705       
17706       ac_ext=C
17707 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17708 ac_cpp='$CXXCPP $CPPFLAGS'
17709 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17710 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17711 cross_compiling=$ac_cv_prog_cxx_cross
17712
17713       cat > conftest.$ac_ext <<EOF
17714 #line 17715 "configure"
17715 #include "confdefs.h"
17716 #include <math.h>
17717 int main() {
17718  sincosl(0, 0, 0);
17719 ; return 0; }
17720 EOF
17721 if { (eval echo configure:17722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17722   rm -rf conftest*
17723   glibcpp_cv_func_sincosl_use=yes
17724 else
17725   echo "configure: failed program was:" >&5
17726   cat conftest.$ac_ext >&5
17727   rm -rf conftest*
17728   glibcpp_cv_func_sincosl_use=no
17729 fi
17730 rm -f conftest*
17731       ac_ext=c
17732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17733 ac_cpp='$CPP $CPPFLAGS'
17734 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17735 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17736 cross_compiling=$ac_cv_prog_cc_cross
17737
17738     
17739 fi
17740
17741   fi
17742   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
17743
17744   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
17745     for ac_func in sincosl
17746 do
17747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17748 echo "configure:17749: checking for $ac_func" >&5
17749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17750   echo $ac_n "(cached) $ac_c" 1>&6
17751 else
17752   cat > conftest.$ac_ext <<EOF
17753 #line 17754 "configure"
17754 #include "confdefs.h"
17755 /* System header to define __stub macros and hopefully few prototypes,
17756     which can conflict with char $ac_func(); below.  */
17757 #include <assert.h>
17758 /* Override any gcc2 internal prototype to avoid an error.  */
17759 /* We use char because int might match the return type of a gcc2
17760     builtin and then its argument prototype would still apply.  */
17761 char $ac_func();
17762
17763 int main() {
17764
17765 /* The GNU C library defines this for functions which it implements
17766     to always fail with ENOSYS.  Some functions are actually named
17767     something starting with __ and the normal name is an alias.  */
17768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17769 choke me
17770 #else
17771 $ac_func();
17772 #endif
17773
17774 ; return 0; }
17775 EOF
17776 if { (eval echo configure:17777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17777   rm -rf conftest*
17778   eval "ac_cv_func_$ac_func=yes"
17779 else
17780   echo "configure: failed program was:" >&5
17781   cat conftest.$ac_ext >&5
17782   rm -rf conftest*
17783   eval "ac_cv_func_$ac_func=no"
17784 fi
17785 rm -f conftest*
17786 fi
17787
17788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17789   echo "$ac_t""yes" 1>&6
17790     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17791   cat >> confdefs.h <<EOF
17792 #define $ac_tr_func 1
17793 EOF
17794  
17795 else
17796   echo "$ac_t""no" 1>&6
17797 fi
17798 done
17799     
17800   else
17801     
17802   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
17803 echo "configure:17804: checking for _sincosl declaration" >&5
17804   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
17805     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
17806   echo $ac_n "(cached) $ac_c" 1>&6
17807 else
17808   
17809       
17810       ac_ext=C
17811 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17812 ac_cpp='$CXXCPP $CPPFLAGS'
17813 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17814 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17815 cross_compiling=$ac_cv_prog_cxx_cross
17816
17817       cat > conftest.$ac_ext <<EOF
17818 #line 17819 "configure"
17819 #include "confdefs.h"
17820 #include <math.h>
17821 int main() {
17822  _sincosl(0, 0, 0);
17823 ; return 0; }
17824 EOF
17825 if { (eval echo configure:17826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17826   rm -rf conftest*
17827   glibcpp_cv_func__sincosl_use=yes
17828 else
17829   echo "configure: failed program was:" >&5
17830   cat conftest.$ac_ext >&5
17831   rm -rf conftest*
17832   glibcpp_cv_func__sincosl_use=no
17833 fi
17834 rm -f conftest*
17835       ac_ext=c
17836 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17837 ac_cpp='$CPP $CPPFLAGS'
17838 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17839 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17840 cross_compiling=$ac_cv_prog_cc_cross
17841
17842     
17843 fi
17844
17845   fi
17846   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
17847
17848     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
17849       for ac_func in _sincosl
17850 do
17851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17852 echo "configure:17853: checking for $ac_func" >&5
17853 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17854   echo $ac_n "(cached) $ac_c" 1>&6
17855 else
17856   cat > conftest.$ac_ext <<EOF
17857 #line 17858 "configure"
17858 #include "confdefs.h"
17859 /* System header to define __stub macros and hopefully few prototypes,
17860     which can conflict with char $ac_func(); below.  */
17861 #include <assert.h>
17862 /* Override any gcc2 internal prototype to avoid an error.  */
17863 /* We use char because int might match the return type of a gcc2
17864     builtin and then its argument prototype would still apply.  */
17865 char $ac_func();
17866
17867 int main() {
17868
17869 /* The GNU C library defines this for functions which it implements
17870     to always fail with ENOSYS.  Some functions are actually named
17871     something starting with __ and the normal name is an alias.  */
17872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17873 choke me
17874 #else
17875 $ac_func();
17876 #endif
17877
17878 ; return 0; }
17879 EOF
17880 if { (eval echo configure:17881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17881   rm -rf conftest*
17882   eval "ac_cv_func_$ac_func=yes"
17883 else
17884   echo "configure: failed program was:" >&5
17885   cat conftest.$ac_ext >&5
17886   rm -rf conftest*
17887   eval "ac_cv_func_$ac_func=no"
17888 fi
17889 rm -f conftest*
17890 fi
17891
17892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17893   echo "$ac_t""yes" 1>&6
17894     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17895   cat >> confdefs.h <<EOF
17896 #define $ac_tr_func 1
17897 EOF
17898  
17899 else
17900   echo "$ac_t""no" 1>&6
17901 fi
17902 done
17903     
17904     fi
17905   fi
17906
17907   
17908   
17909   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
17910 echo "configure:17911: checking for finitel declaration" >&5
17911   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
17912     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
17913   echo $ac_n "(cached) $ac_c" 1>&6
17914 else
17915   
17916       
17917       ac_ext=C
17918 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17919 ac_cpp='$CXXCPP $CPPFLAGS'
17920 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17921 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17922 cross_compiling=$ac_cv_prog_cxx_cross
17923
17924       cat > conftest.$ac_ext <<EOF
17925 #line 17926 "configure"
17926 #include "confdefs.h"
17927 #include <math.h>
17928                       #ifdef HAVE_IEEEFP_H
17929                       #include <ieeefp.h>
17930                       #endif
17931                      
17932 int main() {
17933  finitel(0);
17934 ; return 0; }
17935 EOF
17936 if { (eval echo configure:17937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17937   rm -rf conftest*
17938   glibcpp_cv_func_finitel_use=yes
17939 else
17940   echo "configure: failed program was:" >&5
17941   cat conftest.$ac_ext >&5
17942   rm -rf conftest*
17943   glibcpp_cv_func_finitel_use=no
17944 fi
17945 rm -f conftest*
17946       ac_ext=c
17947 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17948 ac_cpp='$CPP $CPPFLAGS'
17949 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17950 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17951 cross_compiling=$ac_cv_prog_cc_cross
17952
17953     
17954 fi
17955
17956   fi
17957   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
17958
17959   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
17960     for ac_func in finitel
17961 do
17962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17963 echo "configure:17964: checking for $ac_func" >&5
17964 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17965   echo $ac_n "(cached) $ac_c" 1>&6
17966 else
17967   cat > conftest.$ac_ext <<EOF
17968 #line 17969 "configure"
17969 #include "confdefs.h"
17970 /* System header to define __stub macros and hopefully few prototypes,
17971     which can conflict with char $ac_func(); below.  */
17972 #include <assert.h>
17973 /* Override any gcc2 internal prototype to avoid an error.  */
17974 /* We use char because int might match the return type of a gcc2
17975     builtin and then its argument prototype would still apply.  */
17976 char $ac_func();
17977
17978 int main() {
17979
17980 /* The GNU C library defines this for functions which it implements
17981     to always fail with ENOSYS.  Some functions are actually named
17982     something starting with __ and the normal name is an alias.  */
17983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17984 choke me
17985 #else
17986 $ac_func();
17987 #endif
17988
17989 ; return 0; }
17990 EOF
17991 if { (eval echo configure:17992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17992   rm -rf conftest*
17993   eval "ac_cv_func_$ac_func=yes"
17994 else
17995   echo "configure: failed program was:" >&5
17996   cat conftest.$ac_ext >&5
17997   rm -rf conftest*
17998   eval "ac_cv_func_$ac_func=no"
17999 fi
18000 rm -f conftest*
18001 fi
18002
18003 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18004   echo "$ac_t""yes" 1>&6
18005     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18006   cat >> confdefs.h <<EOF
18007 #define $ac_tr_func 1
18008 EOF
18009  
18010 else
18011   echo "$ac_t""no" 1>&6
18012 fi
18013 done
18014     
18015   else
18016     
18017   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
18018 echo "configure:18019: checking for _finitel declaration" >&5
18019   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
18020     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
18021   echo $ac_n "(cached) $ac_c" 1>&6
18022 else
18023   
18024       
18025       ac_ext=C
18026 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18027 ac_cpp='$CXXCPP $CPPFLAGS'
18028 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18029 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18030 cross_compiling=$ac_cv_prog_cxx_cross
18031
18032       cat > conftest.$ac_ext <<EOF
18033 #line 18034 "configure"
18034 #include "confdefs.h"
18035 #include <math.h>
18036                       #ifdef HAVE_IEEEFP_H
18037                       #include <ieeefp.h>
18038                       #endif
18039                      
18040 int main() {
18041  _finitel(0);
18042 ; return 0; }
18043 EOF
18044 if { (eval echo configure:18045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18045   rm -rf conftest*
18046   glibcpp_cv_func__finitel_use=yes
18047 else
18048   echo "configure: failed program was:" >&5
18049   cat conftest.$ac_ext >&5
18050   rm -rf conftest*
18051   glibcpp_cv_func__finitel_use=no
18052 fi
18053 rm -f conftest*
18054       ac_ext=c
18055 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18056 ac_cpp='$CPP $CPPFLAGS'
18057 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18058 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18059 cross_compiling=$ac_cv_prog_cc_cross
18060
18061     
18062 fi
18063
18064   fi
18065   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
18066
18067     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
18068       for ac_func in _finitel
18069 do
18070 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18071 echo "configure:18072: checking for $ac_func" >&5
18072 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18073   echo $ac_n "(cached) $ac_c" 1>&6
18074 else
18075   cat > conftest.$ac_ext <<EOF
18076 #line 18077 "configure"
18077 #include "confdefs.h"
18078 /* System header to define __stub macros and hopefully few prototypes,
18079     which can conflict with char $ac_func(); below.  */
18080 #include <assert.h>
18081 /* Override any gcc2 internal prototype to avoid an error.  */
18082 /* We use char because int might match the return type of a gcc2
18083     builtin and then its argument prototype would still apply.  */
18084 char $ac_func();
18085
18086 int main() {
18087
18088 /* The GNU C library defines this for functions which it implements
18089     to always fail with ENOSYS.  Some functions are actually named
18090     something starting with __ and the normal name is an alias.  */
18091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18092 choke me
18093 #else
18094 $ac_func();
18095 #endif
18096
18097 ; return 0; }
18098 EOF
18099 if { (eval echo configure:18100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18100   rm -rf conftest*
18101   eval "ac_cv_func_$ac_func=yes"
18102 else
18103   echo "configure: failed program was:" >&5
18104   cat conftest.$ac_ext >&5
18105   rm -rf conftest*
18106   eval "ac_cv_func_$ac_func=no"
18107 fi
18108 rm -f conftest*
18109 fi
18110
18111 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18112   echo "$ac_t""yes" 1>&6
18113     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18114   cat >> confdefs.h <<EOF
18115 #define $ac_tr_func 1
18116 EOF
18117  
18118 else
18119   echo "$ac_t""no" 1>&6
18120 fi
18121 done
18122     
18123     fi
18124   fi
18125
18126
18127         
18128     
18129   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
18130 echo "configure:18131: checking for _float trig functions" >&5
18131   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
18132   echo $ac_n "(cached) $ac_c" 1>&6
18133 else
18134   
18135     
18136     ac_ext=C
18137 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18138 ac_cpp='$CXXCPP $CPPFLAGS'
18139 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18140 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18141 cross_compiling=$ac_cv_prog_cxx_cross
18142
18143     cat > conftest.$ac_ext <<EOF
18144 #line 18145 "configure"
18145 #include "confdefs.h"
18146 #include <math.h>
18147 int main() {
18148  `for x in _acosf _asinf _atanf \
18149                                           _cosf _sinf _tanf \
18150                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
18151 ; return 0; }
18152 EOF
18153 if { (eval echo configure:18154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18154   rm -rf conftest*
18155   glibcpp_cv_func__float_trig_use=yes
18156 else
18157   echo "configure: failed program was:" >&5
18158   cat conftest.$ac_ext >&5
18159   rm -rf conftest*
18160   glibcpp_cv_func__float_trig_use=no
18161 fi
18162 rm -f conftest*
18163     ac_ext=c
18164 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18165 ac_cpp='$CPP $CPPFLAGS'
18166 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18167 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18168 cross_compiling=$ac_cv_prog_cc_cross
18169
18170 fi
18171
18172   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
18173   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
18174     for ac_func in _acosf _asinf _atanf \
18175                                           _cosf _sinf _tanf \
18176                                           _coshf _sinhf _tanhf
18177 do
18178 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18179 echo "configure:18180: checking for $ac_func" >&5
18180 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18181   echo $ac_n "(cached) $ac_c" 1>&6
18182 else
18183   cat > conftest.$ac_ext <<EOF
18184 #line 18185 "configure"
18185 #include "confdefs.h"
18186 /* System header to define __stub macros and hopefully few prototypes,
18187     which can conflict with char $ac_func(); below.  */
18188 #include <assert.h>
18189 /* Override any gcc2 internal prototype to avoid an error.  */
18190 /* We use char because int might match the return type of a gcc2
18191     builtin and then its argument prototype would still apply.  */
18192 char $ac_func();
18193
18194 int main() {
18195
18196 /* The GNU C library defines this for functions which it implements
18197     to always fail with ENOSYS.  Some functions are actually named
18198     something starting with __ and the normal name is an alias.  */
18199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18200 choke me
18201 #else
18202 $ac_func();
18203 #endif
18204
18205 ; return 0; }
18206 EOF
18207 if { (eval echo configure:18208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18208   rm -rf conftest*
18209   eval "ac_cv_func_$ac_func=yes"
18210 else
18211   echo "configure: failed program was:" >&5
18212   cat conftest.$ac_ext >&5
18213   rm -rf conftest*
18214   eval "ac_cv_func_$ac_func=no"
18215 fi
18216 rm -f conftest*
18217 fi
18218
18219 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18220   echo "$ac_t""yes" 1>&6
18221     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18222   cat >> confdefs.h <<EOF
18223 #define $ac_tr_func 1
18224 EOF
18225  
18226 else
18227   echo "$ac_t""no" 1>&6
18228 fi
18229 done
18230
18231   fi
18232
18233   
18234   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
18235 echo "configure:18236: checking for _float round functions" >&5
18236   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
18237   echo $ac_n "(cached) $ac_c" 1>&6
18238 else
18239   
18240     
18241     ac_ext=C
18242 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18243 ac_cpp='$CXXCPP $CPPFLAGS'
18244 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18245 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18246 cross_compiling=$ac_cv_prog_cxx_cross
18247
18248     cat > conftest.$ac_ext <<EOF
18249 #line 18250 "configure"
18250 #include "confdefs.h"
18251 #include <math.h>
18252 int main() {
18253  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
18254 ; return 0; }
18255 EOF
18256 if { (eval echo configure:18257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18257   rm -rf conftest*
18258   glibcpp_cv_func__float_round_use=yes
18259 else
18260   echo "configure: failed program was:" >&5
18261   cat conftest.$ac_ext >&5
18262   rm -rf conftest*
18263   glibcpp_cv_func__float_round_use=no
18264 fi
18265 rm -f conftest*
18266     ac_ext=c
18267 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18268 ac_cpp='$CPP $CPPFLAGS'
18269 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18270 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18271 cross_compiling=$ac_cv_prog_cc_cross
18272
18273 fi
18274
18275   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
18276   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
18277     for ac_func in _ceilf _floorf
18278 do
18279 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18280 echo "configure:18281: checking for $ac_func" >&5
18281 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18282   echo $ac_n "(cached) $ac_c" 1>&6
18283 else
18284   cat > conftest.$ac_ext <<EOF
18285 #line 18286 "configure"
18286 #include "confdefs.h"
18287 /* System header to define __stub macros and hopefully few prototypes,
18288     which can conflict with char $ac_func(); below.  */
18289 #include <assert.h>
18290 /* Override any gcc2 internal prototype to avoid an error.  */
18291 /* We use char because int might match the return type of a gcc2
18292     builtin and then its argument prototype would still apply.  */
18293 char $ac_func();
18294
18295 int main() {
18296
18297 /* The GNU C library defines this for functions which it implements
18298     to always fail with ENOSYS.  Some functions are actually named
18299     something starting with __ and the normal name is an alias.  */
18300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18301 choke me
18302 #else
18303 $ac_func();
18304 #endif
18305
18306 ; return 0; }
18307 EOF
18308 if { (eval echo configure:18309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18309   rm -rf conftest*
18310   eval "ac_cv_func_$ac_func=yes"
18311 else
18312   echo "configure: failed program was:" >&5
18313   cat conftest.$ac_ext >&5
18314   rm -rf conftest*
18315   eval "ac_cv_func_$ac_func=no"
18316 fi
18317 rm -f conftest*
18318 fi
18319
18320 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18321   echo "$ac_t""yes" 1>&6
18322     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18323   cat >> confdefs.h <<EOF
18324 #define $ac_tr_func 1
18325 EOF
18326  
18327 else
18328   echo "$ac_t""no" 1>&6
18329 fi
18330 done
18331
18332   fi
18333
18334
18335     
18336   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
18337 echo "configure:18338: checking for _long double trig functions" >&5
18338   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
18339   echo $ac_n "(cached) $ac_c" 1>&6
18340 else
18341   
18342     
18343     ac_ext=C
18344 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18345 ac_cpp='$CXXCPP $CPPFLAGS'
18346 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18347 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18348 cross_compiling=$ac_cv_prog_cxx_cross
18349
18350     cat > conftest.$ac_ext <<EOF
18351 #line 18352 "configure"
18352 #include "confdefs.h"
18353 #include <math.h>
18354 int main() {
18355  `for x in _acosl _asinl _atanl \
18356                                           _cosl _sinl _tanl \
18357                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
18358 ; return 0; }
18359 EOF
18360 if { (eval echo configure:18361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18361   rm -rf conftest*
18362   glibcpp_cv_func__long_double_trig_use=yes
18363 else
18364   echo "configure: failed program was:" >&5
18365   cat conftest.$ac_ext >&5
18366   rm -rf conftest*
18367   glibcpp_cv_func__long_double_trig_use=no
18368 fi
18369 rm -f conftest*
18370     ac_ext=c
18371 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18372 ac_cpp='$CPP $CPPFLAGS'
18373 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18374 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18375 cross_compiling=$ac_cv_prog_cc_cross
18376
18377 fi
18378
18379   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
18380   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
18381     for ac_func in _acosl _asinl _atanl \
18382                                           _cosl _sinl _tanl \
18383                                           _coshl _sinhl _tanhl
18384 do
18385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18386 echo "configure:18387: checking for $ac_func" >&5
18387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18388   echo $ac_n "(cached) $ac_c" 1>&6
18389 else
18390   cat > conftest.$ac_ext <<EOF
18391 #line 18392 "configure"
18392 #include "confdefs.h"
18393 /* System header to define __stub macros and hopefully few prototypes,
18394     which can conflict with char $ac_func(); below.  */
18395 #include <assert.h>
18396 /* Override any gcc2 internal prototype to avoid an error.  */
18397 /* We use char because int might match the return type of a gcc2
18398     builtin and then its argument prototype would still apply.  */
18399 char $ac_func();
18400
18401 int main() {
18402
18403 /* The GNU C library defines this for functions which it implements
18404     to always fail with ENOSYS.  Some functions are actually named
18405     something starting with __ and the normal name is an alias.  */
18406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18407 choke me
18408 #else
18409 $ac_func();
18410 #endif
18411
18412 ; return 0; }
18413 EOF
18414 if { (eval echo configure:18415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18415   rm -rf conftest*
18416   eval "ac_cv_func_$ac_func=yes"
18417 else
18418   echo "configure: failed program was:" >&5
18419   cat conftest.$ac_ext >&5
18420   rm -rf conftest*
18421   eval "ac_cv_func_$ac_func=no"
18422 fi
18423 rm -f conftest*
18424 fi
18425
18426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18427   echo "$ac_t""yes" 1>&6
18428     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18429   cat >> confdefs.h <<EOF
18430 #define $ac_tr_func 1
18431 EOF
18432  
18433 else
18434   echo "$ac_t""no" 1>&6
18435 fi
18436 done
18437
18438   fi
18439
18440   
18441   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
18442 echo "configure:18443: checking for _long double round functions" >&5
18443   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
18444   echo $ac_n "(cached) $ac_c" 1>&6
18445 else
18446   
18447     
18448     ac_ext=C
18449 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18450 ac_cpp='$CXXCPP $CPPFLAGS'
18451 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18452 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18453 cross_compiling=$ac_cv_prog_cxx_cross
18454
18455     cat > conftest.$ac_ext <<EOF
18456 #line 18457 "configure"
18457 #include "confdefs.h"
18458 #include <math.h>
18459 int main() {
18460  `for x in _ceill _floorl; do echo "$x (0);"; done` 
18461 ; return 0; }
18462 EOF
18463 if { (eval echo configure:18464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18464   rm -rf conftest*
18465   glibcpp_cv_func__long_double_round_use=yes
18466 else
18467   echo "configure: failed program was:" >&5
18468   cat conftest.$ac_ext >&5
18469   rm -rf conftest*
18470   glibcpp_cv_func__long_double_round_use=no
18471 fi
18472 rm -f conftest*
18473     ac_ext=c
18474 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18475 ac_cpp='$CPP $CPPFLAGS'
18476 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18477 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18478 cross_compiling=$ac_cv_prog_cc_cross
18479
18480 fi
18481
18482   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
18483   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
18484     for ac_func in _ceill _floorl
18485 do
18486 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18487 echo "configure:18488: checking for $ac_func" >&5
18488 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18489   echo $ac_n "(cached) $ac_c" 1>&6
18490 else
18491   cat > conftest.$ac_ext <<EOF
18492 #line 18493 "configure"
18493 #include "confdefs.h"
18494 /* System header to define __stub macros and hopefully few prototypes,
18495     which can conflict with char $ac_func(); below.  */
18496 #include <assert.h>
18497 /* Override any gcc2 internal prototype to avoid an error.  */
18498 /* We use char because int might match the return type of a gcc2
18499     builtin and then its argument prototype would still apply.  */
18500 char $ac_func();
18501
18502 int main() {
18503
18504 /* The GNU C library defines this for functions which it implements
18505     to always fail with ENOSYS.  Some functions are actually named
18506     something starting with __ and the normal name is an alias.  */
18507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18508 choke me
18509 #else
18510 $ac_func();
18511 #endif
18512
18513 ; return 0; }
18514 EOF
18515 if { (eval echo configure:18516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18516   rm -rf conftest*
18517   eval "ac_cv_func_$ac_func=yes"
18518 else
18519   echo "configure: failed program was:" >&5
18520   cat conftest.$ac_ext >&5
18521   rm -rf conftest*
18522   eval "ac_cv_func_$ac_func=no"
18523 fi
18524 rm -f conftest*
18525 fi
18526
18527 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18528   echo "$ac_t""yes" 1>&6
18529     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18530   cat >> confdefs.h <<EOF
18531 #define $ac_tr_func 1
18532 EOF
18533  
18534 else
18535   echo "$ac_t""no" 1>&6
18536 fi
18537 done
18538
18539   fi
18540
18541
18542   LIBS="$ac_save_LIBS"
18543   CXXFLAGS="$ac_save_CXXFLAGS"
18544
18545   
18546     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
18547 echo "configure:18548: checking for main in -lm" >&5
18548 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
18549 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18550   echo $ac_n "(cached) $ac_c" 1>&6
18551 else
18552   ac_save_LIBS="$LIBS"
18553 LIBS="-lm  $LIBS"
18554 cat > conftest.$ac_ext <<EOF
18555 #line 18556 "configure"
18556 #include "confdefs.h"
18557
18558 int main() {
18559 main()
18560 ; return 0; }
18561 EOF
18562 if { (eval echo configure:18563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18563   rm -rf conftest*
18564   eval "ac_cv_lib_$ac_lib_var=yes"
18565 else
18566   echo "configure: failed program was:" >&5
18567   cat conftest.$ac_ext >&5
18568   rm -rf conftest*
18569   eval "ac_cv_lib_$ac_lib_var=no"
18570 fi
18571 rm -f conftest*
18572 LIBS="$ac_save_LIBS"
18573
18574 fi
18575 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18576   echo "$ac_t""yes" 1>&6
18577     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
18578     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
18579   cat >> confdefs.h <<EOF
18580 #define $ac_tr_lib 1
18581 EOF
18582
18583   LIBS="-lm $LIBS"
18584
18585 else
18586   echo "$ac_t""no" 1>&6
18587 fi
18588
18589   for ac_func in nan copysignf
18590 do
18591 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18592 echo "configure:18593: checking for $ac_func" >&5
18593 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18594   echo $ac_n "(cached) $ac_c" 1>&6
18595 else
18596   cat > conftest.$ac_ext <<EOF
18597 #line 18598 "configure"
18598 #include "confdefs.h"
18599 /* System header to define __stub macros and hopefully few prototypes,
18600     which can conflict with char $ac_func(); below.  */
18601 #include <assert.h>
18602 /* Override any gcc2 internal prototype to avoid an error.  */
18603 /* We use char because int might match the return type of a gcc2
18604     builtin and then its argument prototype would still apply.  */
18605 char $ac_func();
18606
18607 int main() {
18608
18609 /* The GNU C library defines this for functions which it implements
18610     to always fail with ENOSYS.  Some functions are actually named
18611     something starting with __ and the normal name is an alias.  */
18612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18613 choke me
18614 #else
18615 $ac_func();
18616 #endif
18617
18618 ; return 0; }
18619 EOF
18620 if { (eval echo configure:18621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18621   rm -rf conftest*
18622   eval "ac_cv_func_$ac_func=yes"
18623 else
18624   echo "configure: failed program was:" >&5
18625   cat conftest.$ac_ext >&5
18626   rm -rf conftest*
18627   eval "ac_cv_func_$ac_func=no"
18628 fi
18629 rm -f conftest*
18630 fi
18631
18632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18633   echo "$ac_t""yes" 1>&6
18634     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18635   cat >> confdefs.h <<EOF
18636 #define $ac_tr_func 1
18637 EOF
18638  
18639 else
18640   echo "$ac_t""no" 1>&6
18641 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
18642 fi
18643 done
18644
18645
18646
18647           USE_COMPLEX_LONG_DOUBLE=no
18648   if test x$ac_cv_func_copysignl = x"yes"; then
18649     USE_COMPLEX_LONG_DOUBLE=yes
18650     for ac_func in signbitl
18651 do
18652 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18653 echo "configure:18654: checking for $ac_func" >&5
18654 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18655   echo $ac_n "(cached) $ac_c" 1>&6
18656 else
18657   cat > conftest.$ac_ext <<EOF
18658 #line 18659 "configure"
18659 #include "confdefs.h"
18660 /* System header to define __stub macros and hopefully few prototypes,
18661     which can conflict with char $ac_func(); below.  */
18662 #include <assert.h>
18663 /* Override any gcc2 internal prototype to avoid an error.  */
18664 /* We use char because int might match the return type of a gcc2
18665     builtin and then its argument prototype would still apply.  */
18666 char $ac_func();
18667
18668 int main() {
18669
18670 /* The GNU C library defines this for functions which it implements
18671     to always fail with ENOSYS.  Some functions are actually named
18672     something starting with __ and the normal name is an alias.  */
18673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18674 choke me
18675 #else
18676 $ac_func();
18677 #endif
18678
18679 ; return 0; }
18680 EOF
18681 if { (eval echo configure:18682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18682   rm -rf conftest*
18683   eval "ac_cv_func_$ac_func=yes"
18684 else
18685   echo "configure: failed program was:" >&5
18686   cat conftest.$ac_ext >&5
18687   rm -rf conftest*
18688   eval "ac_cv_func_$ac_func=no"
18689 fi
18690 rm -f conftest*
18691 fi
18692
18693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18694   echo "$ac_t""yes" 1>&6
18695     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18696   cat >> confdefs.h <<EOF
18697 #define $ac_tr_func 1
18698 EOF
18699  
18700 else
18701   echo "$ac_t""no" 1>&6
18702 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
18703 fi
18704 done
18705
18706
18707   fi
18708
18709   
18710
18711   
18712
18713       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
18714 echo "configure:18715: checking for mbstate_t" >&5
18715   cat > conftest.$ac_ext <<EOF
18716 #line 18717 "configure"
18717 #include "confdefs.h"
18718 #include <wchar.h>
18719 int main() {
18720 mbstate_t teststate;
18721 ; return 0; }
18722 EOF
18723 if { (eval echo configure:18724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18724   rm -rf conftest*
18725   have_mbstate_t=yes
18726 else
18727   echo "configure: failed program was:" >&5
18728   cat conftest.$ac_ext >&5
18729   rm -rf conftest*
18730   have_mbstate_t=no
18731 fi
18732 rm -f conftest*
18733   echo "$ac_t""$have_mbstate_t" 1>&6
18734   if test x"$have_mbstate_t" = xyes; then
18735     cat >> confdefs.h <<\EOF
18736 #define HAVE_MBSTATE_T 1
18737 EOF
18738
18739   fi
18740
18741     for ac_hdr in wchar.h
18742 do
18743 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18744 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18745 echo "configure:18746: checking for $ac_hdr" >&5
18746 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18747   echo $ac_n "(cached) $ac_c" 1>&6
18748 else
18749   cat > conftest.$ac_ext <<EOF
18750 #line 18751 "configure"
18751 #include "confdefs.h"
18752 #include <$ac_hdr>
18753 EOF
18754 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18755 { (eval echo configure:18756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18756 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18757 if test -z "$ac_err"; then
18758   rm -rf conftest*
18759   eval "ac_cv_header_$ac_safe=yes"
18760 else
18761   echo "$ac_err" >&5
18762   echo "configure: failed program was:" >&5
18763   cat conftest.$ac_ext >&5
18764   rm -rf conftest*
18765   eval "ac_cv_header_$ac_safe=no"
18766 fi
18767 rm -f conftest*
18768 fi
18769 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18770   echo "$ac_t""yes" 1>&6
18771     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18772   cat >> confdefs.h <<EOF
18773 #define $ac_tr_hdr 1
18774 EOF
18775  ac_has_wchar_h=yes
18776 else
18777   echo "$ac_t""no" 1>&6
18778 ac_has_wchar_h=no
18779 fi
18780 done
18781
18782   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
18783 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
18784 echo "configure:18785: checking for wctype.h" >&5
18785 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18786   echo $ac_n "(cached) $ac_c" 1>&6
18787 else
18788   cat > conftest.$ac_ext <<EOF
18789 #line 18790 "configure"
18790 #include "confdefs.h"
18791 #include <wctype.h>
18792 EOF
18793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18794 { (eval echo configure:18795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18796 if test -z "$ac_err"; then
18797   rm -rf conftest*
18798   eval "ac_cv_header_$ac_safe=yes"
18799 else
18800   echo "$ac_err" >&5
18801   echo "configure: failed program was:" >&5
18802   cat conftest.$ac_ext >&5
18803   rm -rf conftest*
18804   eval "ac_cv_header_$ac_safe=no"
18805 fi
18806 rm -f conftest*
18807 fi
18808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18809   echo "$ac_t""yes" 1>&6
18810   ac_has_wctype_h=yes
18811 else
18812   echo "$ac_t""no" 1>&6
18813 ac_has_wctype_h=no
18814 fi
18815
18816   
18817     if test x"$ac_has_wchar_h" = xyes &&
18818      test x"$ac_has_wctype_h" = xyes &&
18819      test x"$enable_c_mbchar" != xno; then
18820       
18821             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
18822 echo "configure:18823: checking for WCHAR_MIN and WCHAR_MAX" >&5
18823     cat > conftest.$ac_ext <<EOF
18824 #line 18825 "configure"
18825 #include "confdefs.h"
18826 #include <wchar.h>
18827 int main() {
18828 int i = WCHAR_MIN; int j = WCHAR_MAX;
18829 ; return 0; }
18830 EOF
18831 if { (eval echo configure:18832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18832   rm -rf conftest*
18833   has_wchar_minmax=yes
18834 else
18835   echo "configure: failed program was:" >&5
18836   cat conftest.$ac_ext >&5
18837   rm -rf conftest*
18838   has_wchar_minmax=no
18839 fi
18840 rm -f conftest*
18841     echo "$ac_t""$has_wchar_minmax" 1>&6
18842     
18843             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
18844 echo "configure:18845: checking for WEOF" >&5
18845     cat > conftest.$ac_ext <<EOF
18846 #line 18847 "configure"
18847 #include "confdefs.h"
18848
18849       #include <wchar.h>
18850       #include <stddef.h>
18851 int main() {
18852 wint_t i = WEOF;
18853 ; return 0; }
18854 EOF
18855 if { (eval echo configure:18856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18856   rm -rf conftest*
18857   has_weof=yes
18858 else
18859   echo "configure: failed program was:" >&5
18860   cat conftest.$ac_ext >&5
18861   rm -rf conftest*
18862   has_weof=no
18863 fi
18864 rm -f conftest*
18865     echo "$ac_t""$has_weof" 1>&6
18866   
18867         ac_wfuncs=yes
18868     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
18869 do
18870 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18871 echo "configure:18872: checking for $ac_func" >&5
18872 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18873   echo $ac_n "(cached) $ac_c" 1>&6
18874 else
18875   cat > conftest.$ac_ext <<EOF
18876 #line 18877 "configure"
18877 #include "confdefs.h"
18878 /* System header to define __stub macros and hopefully few prototypes,
18879     which can conflict with char $ac_func(); below.  */
18880 #include <assert.h>
18881 /* Override any gcc2 internal prototype to avoid an error.  */
18882 /* We use char because int might match the return type of a gcc2
18883     builtin and then its argument prototype would still apply.  */
18884 char $ac_func();
18885
18886 int main() {
18887
18888 /* The GNU C library defines this for functions which it implements
18889     to always fail with ENOSYS.  Some functions are actually named
18890     something starting with __ and the normal name is an alias.  */
18891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18892 choke me
18893 #else
18894 $ac_func();
18895 #endif
18896
18897 ; return 0; }
18898 EOF
18899 if { (eval echo configure:18900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18900   rm -rf conftest*
18901   eval "ac_cv_func_$ac_func=yes"
18902 else
18903   echo "configure: failed program was:" >&5
18904   cat conftest.$ac_ext >&5
18905   rm -rf conftest*
18906   eval "ac_cv_func_$ac_func=no"
18907 fi
18908 rm -f conftest*
18909 fi
18910
18911 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18912   echo "$ac_t""yes" 1>&6
18913     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18914   cat >> confdefs.h <<EOF
18915 #define $ac_tr_func 1
18916 EOF
18917  
18918 else
18919   echo "$ac_t""no" 1>&6
18920 \
18921     ac_wfuncs=no
18922 fi
18923 done
18924
18925   
18926         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
18927     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
18928     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
18929     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
18930     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
18931     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
18932 do
18933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18934 echo "configure:18935: checking for $ac_func" >&5
18935 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18936   echo $ac_n "(cached) $ac_c" 1>&6
18937 else
18938   cat > conftest.$ac_ext <<EOF
18939 #line 18940 "configure"
18940 #include "confdefs.h"
18941 /* System header to define __stub macros and hopefully few prototypes,
18942     which can conflict with char $ac_func(); below.  */
18943 #include <assert.h>
18944 /* Override any gcc2 internal prototype to avoid an error.  */
18945 /* We use char because int might match the return type of a gcc2
18946     builtin and then its argument prototype would still apply.  */
18947 char $ac_func();
18948
18949 int main() {
18950
18951 /* The GNU C library defines this for functions which it implements
18952     to always fail with ENOSYS.  Some functions are actually named
18953     something starting with __ and the normal name is an alias.  */
18954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18955 choke me
18956 #else
18957 $ac_func();
18958 #endif
18959
18960 ; return 0; }
18961 EOF
18962 if { (eval echo configure:18963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18963   rm -rf conftest*
18964   eval "ac_cv_func_$ac_func=yes"
18965 else
18966   echo "configure: failed program was:" >&5
18967   cat conftest.$ac_ext >&5
18968   rm -rf conftest*
18969   eval "ac_cv_func_$ac_func=no"
18970 fi
18971 rm -f conftest*
18972 fi
18973
18974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18975   echo "$ac_t""yes" 1>&6
18976     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18977   cat >> confdefs.h <<EOF
18978 #define $ac_tr_func 1
18979 EOF
18980  
18981 else
18982   echo "$ac_t""no" 1>&6
18983 \
18984     ac_wfuncs=no
18985 fi
18986 done
18987
18988
18989     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
18990 echo "configure:18991: checking for ISO C99 wchar_t support" >&5
18991     if test x"$has_weof" = xyes &&
18992        test x"$has_wchar_minmax" = xyes &&
18993        test x"$ac_wfuncs" = xyes; then
18994       ac_isoC99_wchar_t=yes
18995     else
18996       ac_isoC99_wchar_t=no
18997     fi
18998     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
18999   
19000             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
19001 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
19002 echo "configure:19003: checking for iconv.h" >&5
19003 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19004   echo $ac_n "(cached) $ac_c" 1>&6
19005 else
19006   cat > conftest.$ac_ext <<EOF
19007 #line 19008 "configure"
19008 #include "confdefs.h"
19009 #include <iconv.h>
19010 EOF
19011 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19012 { (eval echo configure:19013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19013 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19014 if test -z "$ac_err"; then
19015   rm -rf conftest*
19016   eval "ac_cv_header_$ac_safe=yes"
19017 else
19018   echo "$ac_err" >&5
19019   echo "configure: failed program was:" >&5
19020   cat conftest.$ac_ext >&5
19021   rm -rf conftest*
19022   eval "ac_cv_header_$ac_safe=no"
19023 fi
19024 rm -f conftest*
19025 fi
19026 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19027   echo "$ac_t""yes" 1>&6
19028   ac_has_iconv_h=yes
19029 else
19030   echo "$ac_t""no" 1>&6
19031 ac_has_iconv_h=no
19032 fi
19033
19034     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
19035 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
19036 echo "configure:19037: checking for langinfo.h" >&5
19037 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19038   echo $ac_n "(cached) $ac_c" 1>&6
19039 else
19040   cat > conftest.$ac_ext <<EOF
19041 #line 19042 "configure"
19042 #include "confdefs.h"
19043 #include <langinfo.h>
19044 EOF
19045 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19046 { (eval echo configure:19047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19047 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19048 if test -z "$ac_err"; then
19049   rm -rf conftest*
19050   eval "ac_cv_header_$ac_safe=yes"
19051 else
19052   echo "$ac_err" >&5
19053   echo "configure: failed program was:" >&5
19054   cat conftest.$ac_ext >&5
19055   rm -rf conftest*
19056   eval "ac_cv_header_$ac_safe=no"
19057 fi
19058 rm -f conftest*
19059 fi
19060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19061   echo "$ac_t""yes" 1>&6
19062   ac_has_langinfo_h=yes
19063 else
19064   echo "$ac_t""no" 1>&6
19065 ac_has_langinfo_h=no
19066 fi
19067
19068
19069         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
19070 echo "configure:19071: checking for iconv in -liconv" >&5
19071 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
19072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19073   echo $ac_n "(cached) $ac_c" 1>&6
19074 else
19075   ac_save_LIBS="$LIBS"
19076 LIBS="-liconv  $LIBS"
19077 cat > conftest.$ac_ext <<EOF
19078 #line 19079 "configure"
19079 #include "confdefs.h"
19080 /* Override any gcc2 internal prototype to avoid an error.  */
19081 /* We use char because int might match the return type of a gcc2
19082     builtin and then its argument prototype would still apply.  */
19083 char iconv();
19084
19085 int main() {
19086 iconv()
19087 ; return 0; }
19088 EOF
19089 if { (eval echo configure:19090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19090   rm -rf conftest*
19091   eval "ac_cv_lib_$ac_lib_var=yes"
19092 else
19093   echo "configure: failed program was:" >&5
19094   cat conftest.$ac_ext >&5
19095   rm -rf conftest*
19096   eval "ac_cv_lib_$ac_lib_var=no"
19097 fi
19098 rm -f conftest*
19099 LIBS="$ac_save_LIBS"
19100
19101 fi
19102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19103   echo "$ac_t""yes" 1>&6
19104   libiconv="-liconv"
19105 else
19106   echo "$ac_t""no" 1>&6
19107 fi
19108
19109     ac_save_LIBS="$LIBS"
19110     LIBS="$LIBS $libiconv"
19111
19112     for ac_func in iconv_open iconv_close iconv nl_langinfo
19113 do
19114 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19115 echo "configure:19116: checking for $ac_func" >&5
19116 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19117   echo $ac_n "(cached) $ac_c" 1>&6
19118 else
19119   cat > conftest.$ac_ext <<EOF
19120 #line 19121 "configure"
19121 #include "confdefs.h"
19122 /* System header to define __stub macros and hopefully few prototypes,
19123     which can conflict with char $ac_func(); below.  */
19124 #include <assert.h>
19125 /* Override any gcc2 internal prototype to avoid an error.  */
19126 /* We use char because int might match the return type of a gcc2
19127     builtin and then its argument prototype would still apply.  */
19128 char $ac_func();
19129
19130 int main() {
19131
19132 /* The GNU C library defines this for functions which it implements
19133     to always fail with ENOSYS.  Some functions are actually named
19134     something starting with __ and the normal name is an alias.  */
19135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19136 choke me
19137 #else
19138 $ac_func();
19139 #endif
19140
19141 ; return 0; }
19142 EOF
19143 if { (eval echo configure:19144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19144   rm -rf conftest*
19145   eval "ac_cv_func_$ac_func=yes"
19146 else
19147   echo "configure: failed program was:" >&5
19148   cat conftest.$ac_ext >&5
19149   rm -rf conftest*
19150   eval "ac_cv_func_$ac_func=no"
19151 fi
19152 rm -f conftest*
19153 fi
19154
19155 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19156   echo "$ac_t""yes" 1>&6
19157     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19158   cat >> confdefs.h <<EOF
19159 #define $ac_tr_func 1
19160 EOF
19161  \
19162     ac_XPG2funcs=yes
19163 else
19164   echo "$ac_t""no" 1>&6
19165 ac_XPG2funcs=no
19166 fi
19167 done
19168
19169   
19170     LIBS="$ac_save_LIBS"
19171
19172     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
19173 echo "configure:19174: checking for XPG2 wchar_t support" >&5
19174     if test x"$ac_has_iconv_h" = xyes &&
19175        test x"$ac_has_langinfo_h" = xyes &&
19176        test x"$ac_XPG2funcs" = xyes; then
19177       ac_XPG2_wchar_t=yes
19178     else
19179       ac_XPG2_wchar_t=no
19180     fi
19181     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
19182   
19183             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
19184 echo "configure:19185: checking for enabled wchar_t specializations" >&5
19185     if test x"$ac_isoC99_wchar_t" = xyes &&
19186        test x"$ac_XPG2_wchar_t" = xyes; then
19187       cat >> confdefs.h <<\EOF
19188 #define _GLIBCPP_USE_WCHAR_T 1
19189 EOF
19190
19191       echo "$ac_t"""yes"" 1>&6
19192     else
19193       echo "$ac_t"""no"" 1>&6
19194     fi
19195   else
19196         echo "configure: warning: wchar_t support disabled." 1>&2
19197   fi
19198
19199   
19200   ac_test_CXXFLAGS="${CXXFLAGS+set}"
19201   ac_save_CXXFLAGS="$CXXFLAGS"
19202   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
19203
19204   
19205   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
19206 echo "configure:19207: checking for strtold declaration" >&5
19207   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
19208     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
19209   echo $ac_n "(cached) $ac_c" 1>&6
19210 else
19211   
19212       
19213       ac_ext=C
19214 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19215 ac_cpp='$CXXCPP $CPPFLAGS'
19216 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19217 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19218 cross_compiling=$ac_cv_prog_cxx_cross
19219
19220       cat > conftest.$ac_ext <<EOF
19221 #line 19222 "configure"
19222 #include "confdefs.h"
19223 #include <stdlib.h>
19224 int main() {
19225  strtold(0, 0);
19226 ; return 0; }
19227 EOF
19228 if { (eval echo configure:19229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19229   rm -rf conftest*
19230   glibcpp_cv_func_strtold_use=yes
19231 else
19232   echo "configure: failed program was:" >&5
19233   cat conftest.$ac_ext >&5
19234   rm -rf conftest*
19235   glibcpp_cv_func_strtold_use=no
19236 fi
19237 rm -f conftest*
19238       ac_ext=c
19239 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19240 ac_cpp='$CPP $CPPFLAGS'
19241 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19242 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19243 cross_compiling=$ac_cv_prog_cc_cross
19244
19245     
19246 fi
19247
19248   fi
19249   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
19250   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
19251     for ac_func in strtold
19252 do
19253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19254 echo "configure:19255: checking for $ac_func" >&5
19255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19256   echo $ac_n "(cached) $ac_c" 1>&6
19257 else
19258   cat > conftest.$ac_ext <<EOF
19259 #line 19260 "configure"
19260 #include "confdefs.h"
19261 /* System header to define __stub macros and hopefully few prototypes,
19262     which can conflict with char $ac_func(); below.  */
19263 #include <assert.h>
19264 /* Override any gcc2 internal prototype to avoid an error.  */
19265 /* We use char because int might match the return type of a gcc2
19266     builtin and then its argument prototype would still apply.  */
19267 char $ac_func();
19268
19269 int main() {
19270
19271 /* The GNU C library defines this for functions which it implements
19272     to always fail with ENOSYS.  Some functions are actually named
19273     something starting with __ and the normal name is an alias.  */
19274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19275 choke me
19276 #else
19277 $ac_func();
19278 #endif
19279
19280 ; return 0; }
19281 EOF
19282 if { (eval echo configure:19283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19283   rm -rf conftest*
19284   eval "ac_cv_func_$ac_func=yes"
19285 else
19286   echo "configure: failed program was:" >&5
19287   cat conftest.$ac_ext >&5
19288   rm -rf conftest*
19289   eval "ac_cv_func_$ac_func=no"
19290 fi
19291 rm -f conftest*
19292 fi
19293
19294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19295   echo "$ac_t""yes" 1>&6
19296     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19297   cat >> confdefs.h <<EOF
19298 #define $ac_tr_func 1
19299 EOF
19300  
19301 else
19302   echo "$ac_t""no" 1>&6
19303 fi
19304 done
19305     
19306   fi
19307
19308   
19309   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
19310 echo "configure:19311: checking for strtof declaration" >&5
19311   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
19312     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
19313   echo $ac_n "(cached) $ac_c" 1>&6
19314 else
19315   
19316       
19317       ac_ext=C
19318 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19319 ac_cpp='$CXXCPP $CPPFLAGS'
19320 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19321 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19322 cross_compiling=$ac_cv_prog_cxx_cross
19323
19324       cat > conftest.$ac_ext <<EOF
19325 #line 19326 "configure"
19326 #include "confdefs.h"
19327 #include <stdlib.h>
19328 int main() {
19329  strtof(0, 0);
19330 ; return 0; }
19331 EOF
19332 if { (eval echo configure:19333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19333   rm -rf conftest*
19334   glibcpp_cv_func_strtof_use=yes
19335 else
19336   echo "configure: failed program was:" >&5
19337   cat conftest.$ac_ext >&5
19338   rm -rf conftest*
19339   glibcpp_cv_func_strtof_use=no
19340 fi
19341 rm -f conftest*
19342       ac_ext=c
19343 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19344 ac_cpp='$CPP $CPPFLAGS'
19345 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19346 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19347 cross_compiling=$ac_cv_prog_cc_cross
19348
19349     
19350 fi
19351
19352   fi
19353   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
19354   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
19355     for ac_func in strtof
19356 do
19357 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19358 echo "configure:19359: checking for $ac_func" >&5
19359 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19360   echo $ac_n "(cached) $ac_c" 1>&6
19361 else
19362   cat > conftest.$ac_ext <<EOF
19363 #line 19364 "configure"
19364 #include "confdefs.h"
19365 /* System header to define __stub macros and hopefully few prototypes,
19366     which can conflict with char $ac_func(); below.  */
19367 #include <assert.h>
19368 /* Override any gcc2 internal prototype to avoid an error.  */
19369 /* We use char because int might match the return type of a gcc2
19370     builtin and then its argument prototype would still apply.  */
19371 char $ac_func();
19372
19373 int main() {
19374
19375 /* The GNU C library defines this for functions which it implements
19376     to always fail with ENOSYS.  Some functions are actually named
19377     something starting with __ and the normal name is an alias.  */
19378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19379 choke me
19380 #else
19381 $ac_func();
19382 #endif
19383
19384 ; return 0; }
19385 EOF
19386 if { (eval echo configure:19387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19387   rm -rf conftest*
19388   eval "ac_cv_func_$ac_func=yes"
19389 else
19390   echo "configure: failed program was:" >&5
19391   cat conftest.$ac_ext >&5
19392   rm -rf conftest*
19393   eval "ac_cv_func_$ac_func=no"
19394 fi
19395 rm -f conftest*
19396 fi
19397
19398 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19399   echo "$ac_t""yes" 1>&6
19400     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19401   cat >> confdefs.h <<EOF
19402 #define $ac_tr_func 1
19403 EOF
19404  
19405 else
19406   echo "$ac_t""no" 1>&6
19407 fi
19408 done
19409     
19410   fi
19411
19412   for ac_func in drand48
19413 do
19414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19415 echo "configure:19416: checking for $ac_func" >&5
19416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19417   echo $ac_n "(cached) $ac_c" 1>&6
19418 else
19419   cat > conftest.$ac_ext <<EOF
19420 #line 19421 "configure"
19421 #include "confdefs.h"
19422 /* System header to define __stub macros and hopefully few prototypes,
19423     which can conflict with char $ac_func(); below.  */
19424 #include <assert.h>
19425 /* Override any gcc2 internal prototype to avoid an error.  */
19426 /* We use char because int might match the return type of a gcc2
19427     builtin and then its argument prototype would still apply.  */
19428 char $ac_func();
19429
19430 int main() {
19431
19432 /* The GNU C library defines this for functions which it implements
19433     to always fail with ENOSYS.  Some functions are actually named
19434     something starting with __ and the normal name is an alias.  */
19435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19436 choke me
19437 #else
19438 $ac_func();
19439 #endif
19440
19441 ; return 0; }
19442 EOF
19443 if { (eval echo configure:19444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19444   rm -rf conftest*
19445   eval "ac_cv_func_$ac_func=yes"
19446 else
19447   echo "configure: failed program was:" >&5
19448   cat conftest.$ac_ext >&5
19449   rm -rf conftest*
19450   eval "ac_cv_func_$ac_func=no"
19451 fi
19452 rm -f conftest*
19453 fi
19454
19455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19456   echo "$ac_t""yes" 1>&6
19457     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19458   cat >> confdefs.h <<EOF
19459 #define $ac_tr_func 1
19460 EOF
19461  
19462 else
19463   echo "$ac_t""no" 1>&6
19464 fi
19465 done
19466
19467
19468   CXXFLAGS="$ac_save_CXXFLAGS"
19469
19470   
19471   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
19472 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
19473 echo "configure:19474: checking for locale.h" >&5
19474 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19475   echo $ac_n "(cached) $ac_c" 1>&6
19476 else
19477   cat > conftest.$ac_ext <<EOF
19478 #line 19479 "configure"
19479 #include "confdefs.h"
19480 #include <locale.h>
19481 EOF
19482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19483 { (eval echo configure:19484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19485 if test -z "$ac_err"; then
19486   rm -rf conftest*
19487   eval "ac_cv_header_$ac_safe=yes"
19488 else
19489   echo "$ac_err" >&5
19490   echo "configure: failed program was:" >&5
19491   cat conftest.$ac_ext >&5
19492   rm -rf conftest*
19493   eval "ac_cv_header_$ac_safe=no"
19494 fi
19495 rm -f conftest*
19496 fi
19497 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19498   echo "$ac_t""yes" 1>&6
19499   
19500     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
19501 echo "configure:19502: checking for LC_MESSAGES" >&5
19502 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
19503   echo $ac_n "(cached) $ac_c" 1>&6
19504 else
19505   cat > conftest.$ac_ext <<EOF
19506 #line 19507 "configure"
19507 #include "confdefs.h"
19508 #include <locale.h>
19509 int main() {
19510 return LC_MESSAGES
19511 ; return 0; }
19512 EOF
19513 if { (eval echo configure:19514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19514   rm -rf conftest*
19515   ac_cv_val_LC_MESSAGES=yes
19516 else
19517   echo "configure: failed program was:" >&5
19518   cat conftest.$ac_ext >&5
19519   rm -rf conftest*
19520   ac_cv_val_LC_MESSAGES=no
19521 fi
19522 rm -f conftest*
19523 fi
19524
19525 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
19526     if test $ac_cv_val_LC_MESSAGES = yes; then
19527       cat >> confdefs.h <<\EOF
19528 #define HAVE_LC_MESSAGES 1
19529 EOF
19530
19531     fi
19532   
19533 else
19534   echo "$ac_t""no" 1>&6
19535 fi
19536
19537
19538
19539   cat > conftest.$ac_ext <<EOF
19540 #line 19541 "configure"
19541 #include "confdefs.h"
19542
19543   #include <setjmp.h>
19544   
19545 int main() {
19546 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
19547 ; return 0; }
19548 EOF
19549 if { (eval echo configure:19550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19550   rm -rf conftest*
19551   cat >> confdefs.h <<\EOF
19552 #define HAVE_SIGSETJMP 1
19553 EOF
19554
19555   
19556 else
19557   echo "configure: failed program was:" >&5
19558   cat conftest.$ac_ext >&5
19559 fi
19560 rm -f conftest*
19561
19562   for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
19563 do
19564 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19565 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19566 echo "configure:19567: checking for $ac_hdr" >&5
19567 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19568   echo $ac_n "(cached) $ac_c" 1>&6
19569 else
19570   cat > conftest.$ac_ext <<EOF
19571 #line 19572 "configure"
19572 #include "confdefs.h"
19573 #include <$ac_hdr>
19574 EOF
19575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19576 { (eval echo configure:19577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19578 if test -z "$ac_err"; then
19579   rm -rf conftest*
19580   eval "ac_cv_header_$ac_safe=yes"
19581 else
19582   echo "$ac_err" >&5
19583   echo "configure: failed program was:" >&5
19584   cat conftest.$ac_ext >&5
19585   rm -rf conftest*
19586   eval "ac_cv_header_$ac_safe=no"
19587 fi
19588 rm -f conftest*
19589 fi
19590 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19591   echo "$ac_t""yes" 1>&6
19592     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19593   cat >> confdefs.h <<EOF
19594 #define $ac_tr_hdr 1
19595 EOF
19596  
19597 else
19598   echo "$ac_t""no" 1>&6
19599 fi
19600 done
19601
19602 for ac_func in getpagesize
19603 do
19604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19605 echo "configure:19606: checking for $ac_func" >&5
19606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19607   echo $ac_n "(cached) $ac_c" 1>&6
19608 else
19609   cat > conftest.$ac_ext <<EOF
19610 #line 19611 "configure"
19611 #include "confdefs.h"
19612 /* System header to define __stub macros and hopefully few prototypes,
19613     which can conflict with char $ac_func(); below.  */
19614 #include <assert.h>
19615 /* Override any gcc2 internal prototype to avoid an error.  */
19616 /* We use char because int might match the return type of a gcc2
19617     builtin and then its argument prototype would still apply.  */
19618 char $ac_func();
19619
19620 int main() {
19621
19622 /* The GNU C library defines this for functions which it implements
19623     to always fail with ENOSYS.  Some functions are actually named
19624     something starting with __ and the normal name is an alias.  */
19625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19626 choke me
19627 #else
19628 $ac_func();
19629 #endif
19630
19631 ; return 0; }
19632 EOF
19633 if { (eval echo configure:19634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19634   rm -rf conftest*
19635   eval "ac_cv_func_$ac_func=yes"
19636 else
19637   echo "configure: failed program was:" >&5
19638   cat conftest.$ac_ext >&5
19639   rm -rf conftest*
19640   eval "ac_cv_func_$ac_func=no"
19641 fi
19642 rm -f conftest*
19643 fi
19644
19645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19646   echo "$ac_t""yes" 1>&6
19647     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19648   cat >> confdefs.h <<EOF
19649 #define $ac_tr_func 1
19650 EOF
19651  
19652 else
19653   echo "$ac_t""no" 1>&6
19654 fi
19655 done
19656
19657 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
19658 echo "configure:19659: checking for working mmap" >&5
19659 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
19660   echo $ac_n "(cached) $ac_c" 1>&6
19661 else
19662   if test "$cross_compiling" = yes; then
19663   ac_cv_func_mmap_fixed_mapped=no
19664 else
19665   cat > conftest.$ac_ext <<EOF
19666 #line 19667 "configure"
19667 #include "confdefs.h"
19668
19669 /* Thanks to Mike Haertel and Jim Avera for this test.
19670    Here is a matrix of mmap possibilities:
19671         mmap private not fixed
19672         mmap private fixed at somewhere currently unmapped
19673         mmap private fixed at somewhere already mapped
19674         mmap shared not fixed
19675         mmap shared fixed at somewhere currently unmapped
19676         mmap shared fixed at somewhere already mapped
19677    For private mappings, we should verify that changes cannot be read()
19678    back from the file, nor mmap's back from the file at a different
19679    address.  (There have been systems where private was not correctly
19680    implemented like the infamous i386 svr4.0, and systems where the
19681    VM page cache was not coherent with the filesystem buffer cache
19682    like early versions of FreeBSD and possibly contemporary NetBSD.)
19683    For shared mappings, we should conversely verify that changes get
19684    propogated back to all the places they're supposed to be.
19685
19686    Grep wants private fixed already mapped.
19687    The main things grep needs to know about mmap are:
19688    * does it exist and is it safe to write into the mmap'd area
19689    * how to use it (BSD variants)  */
19690 #include <sys/types.h>
19691 #include <fcntl.h>
19692 #include <sys/mman.h>
19693
19694 #if HAVE_SYS_TYPES_H
19695 # include <sys/types.h>
19696 #endif
19697
19698 #if HAVE_STDLIB_H
19699 # include <stdlib.h>
19700 #endif
19701
19702 #if HAVE_SYS_STAT_H
19703 # include <sys/stat.h>
19704 #endif
19705
19706 #if HAVE_UNISTD_H
19707 # include <unistd.h>
19708 #endif
19709
19710 /* This mess was copied from the GNU getpagesize.h.  */
19711 #ifndef HAVE_GETPAGESIZE
19712
19713 /* Assume that all systems that can run configure have sys/param.h.  */
19714 # ifndef HAVE_SYS_PARAM_H
19715 #  define HAVE_SYS_PARAM_H 1
19716 # endif
19717
19718 # ifdef _SC_PAGESIZE
19719 #  define getpagesize() sysconf(_SC_PAGESIZE)
19720 # else /* no _SC_PAGESIZE */
19721 #  ifdef HAVE_SYS_PARAM_H
19722 #   include <sys/param.h>
19723 #   ifdef EXEC_PAGESIZE
19724 #    define getpagesize() EXEC_PAGESIZE
19725 #   else /* no EXEC_PAGESIZE */
19726 #    ifdef NBPG
19727 #     define getpagesize() NBPG * CLSIZE
19728 #     ifndef CLSIZE
19729 #      define CLSIZE 1
19730 #     endif /* no CLSIZE */
19731 #    else /* no NBPG */
19732 #     ifdef NBPC
19733 #      define getpagesize() NBPC
19734 #     else /* no NBPC */
19735 #      ifdef PAGESIZE
19736 #       define getpagesize() PAGESIZE
19737 #      endif /* PAGESIZE */
19738 #     endif /* no NBPC */
19739 #    endif /* no NBPG */
19740 #   endif /* no EXEC_PAGESIZE */
19741 #  else /* no HAVE_SYS_PARAM_H */
19742 #   define getpagesize() 8192   /* punt totally */
19743 #  endif /* no HAVE_SYS_PARAM_H */
19744 # endif /* no _SC_PAGESIZE */
19745
19746 #endif /* no HAVE_GETPAGESIZE */
19747
19748 #ifdef __cplusplus
19749 extern "C" { void *malloc(unsigned); }
19750 #else
19751 char *malloc();
19752 #endif
19753
19754 int
19755 main()
19756 {
19757         char *data, *data2, *data3;
19758         int i, pagesize;
19759         int fd;
19760
19761         pagesize = getpagesize();
19762
19763         /*
19764          * First, make a file with some known garbage in it.
19765          */
19766         data = malloc(pagesize);
19767         if (!data)
19768                 exit(1);
19769         for (i = 0; i < pagesize; ++i)
19770                 *(data + i) = rand();
19771         umask(0);
19772         fd = creat("conftestmmap", 0600);
19773         if (fd < 0)
19774                 exit(1);
19775         if (write(fd, data, pagesize) != pagesize)
19776                 exit(1);
19777         close(fd);
19778
19779         /*
19780          * Next, try to mmap the file at a fixed address which
19781          * already has something else allocated at it.  If we can,
19782          * also make sure that we see the same garbage.
19783          */
19784         fd = open("conftestmmap", O_RDWR);
19785         if (fd < 0)
19786                 exit(1);
19787         data2 = malloc(2 * pagesize);
19788         if (!data2)
19789                 exit(1);
19790         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
19791         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
19792             MAP_PRIVATE | MAP_FIXED, fd, 0L))
19793                 exit(1);
19794         for (i = 0; i < pagesize; ++i)
19795                 if (*(data + i) != *(data2 + i))
19796                         exit(1);
19797
19798         /*
19799          * Finally, make sure that changes to the mapped area
19800          * do not percolate back to the file as seen by read().
19801          * (This is a bug on some variants of i386 svr4.0.)
19802          */
19803         for (i = 0; i < pagesize; ++i)
19804                 *(data2 + i) = *(data2 + i) + 1;
19805         data3 = malloc(pagesize);
19806         if (!data3)
19807                 exit(1);
19808         if (read(fd, data3, pagesize) != pagesize)
19809                 exit(1);
19810         for (i = 0; i < pagesize; ++i)
19811                 if (*(data + i) != *(data3 + i))
19812                         exit(1);
19813         close(fd);
19814         unlink("conftestmmap");
19815         exit(0);
19816 }
19817
19818 EOF
19819 if { (eval echo configure:19820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19820 then
19821   ac_cv_func_mmap_fixed_mapped=yes
19822 else
19823   echo "configure: failed program was:" >&5
19824   cat conftest.$ac_ext >&5
19825   rm -fr conftest*
19826   ac_cv_func_mmap_fixed_mapped=no
19827 fi
19828 rm -fr conftest*
19829 fi
19830
19831 fi
19832
19833 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
19834 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19835   cat >> confdefs.h <<\EOF
19836 #define HAVE_MMAP 1
19837 EOF
19838
19839 fi
19840
19841
19842   # Establish limits on memory usage during 'make check'
19843   
19844   
19845   setrlimit_have_headers=yes
19846   for ac_hdr in sys/resource.h unistd.h
19847 do
19848 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19849 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19850 echo "configure:19851: checking for $ac_hdr" >&5
19851 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19852   echo $ac_n "(cached) $ac_c" 1>&6
19853 else
19854   cat > conftest.$ac_ext <<EOF
19855 #line 19856 "configure"
19856 #include "confdefs.h"
19857 #include <$ac_hdr>
19858 EOF
19859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19860 { (eval echo configure:19861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19861 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19862 if test -z "$ac_err"; then
19863   rm -rf conftest*
19864   eval "ac_cv_header_$ac_safe=yes"
19865 else
19866   echo "$ac_err" >&5
19867   echo "configure: failed program was:" >&5
19868   cat conftest.$ac_ext >&5
19869   rm -rf conftest*
19870   eval "ac_cv_header_$ac_safe=no"
19871 fi
19872 rm -f conftest*
19873 fi
19874 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19875   echo "$ac_t""yes" 1>&6
19876     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19877   cat >> confdefs.h <<EOF
19878 #define $ac_tr_hdr 1
19879 EOF
19880  
19881 else
19882   echo "$ac_t""no" 1>&6
19883 setrlimit_have_headers=no
19884 fi
19885 done
19886
19887   # If don't have the headers, then we can't run the tests now, and we
19888   # won't be seeing any of these during testsuite compilation.
19889   if test $setrlimit_have_headers = yes; then
19890     # Can't do these in a loop, else the resulting syntax is wrong.
19891     
19892   cat > conftest.$ac_ext <<EOF
19893 #line 19894 "configure"
19894 #include "confdefs.h"
19895 #include <sys/resource.h>
19896                   #include <unistd.h>
19897                  
19898 int main() {
19899  int f = RLIMIT_DATA ; 
19900 ; return 0; }
19901 EOF
19902 if { (eval echo configure:19903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19903   rm -rf conftest*
19904   glibcpp_mresult=1
19905 else
19906   echo "configure: failed program was:" >&5
19907   cat conftest.$ac_ext >&5
19908   rm -rf conftest*
19909   glibcpp_mresult=0
19910 fi
19911 rm -f conftest*
19912   cat >> confdefs.h <<EOF
19913 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
19914 EOF
19915
19916
19917     
19918   cat > conftest.$ac_ext <<EOF
19919 #line 19920 "configure"
19920 #include "confdefs.h"
19921 #include <sys/resource.h>
19922                   #include <unistd.h>
19923                  
19924 int main() {
19925  int f = RLIMIT_RSS ; 
19926 ; return 0; }
19927 EOF
19928 if { (eval echo configure:19929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19929   rm -rf conftest*
19930   glibcpp_mresult=1
19931 else
19932   echo "configure: failed program was:" >&5
19933   cat conftest.$ac_ext >&5
19934   rm -rf conftest*
19935   glibcpp_mresult=0
19936 fi
19937 rm -f conftest*
19938   cat >> confdefs.h <<EOF
19939 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
19940 EOF
19941
19942
19943     
19944   cat > conftest.$ac_ext <<EOF
19945 #line 19946 "configure"
19946 #include "confdefs.h"
19947 #include <sys/resource.h>
19948                   #include <unistd.h>
19949                  
19950 int main() {
19951  int f = RLIMIT_VMEM ; 
19952 ; return 0; }
19953 EOF
19954 if { (eval echo configure:19955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19955   rm -rf conftest*
19956   glibcpp_mresult=1
19957 else
19958   echo "configure: failed program was:" >&5
19959   cat conftest.$ac_ext >&5
19960   rm -rf conftest*
19961   glibcpp_mresult=0
19962 fi
19963 rm -f conftest*
19964   cat >> confdefs.h <<EOF
19965 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
19966 EOF
19967
19968
19969     
19970   cat > conftest.$ac_ext <<EOF
19971 #line 19972 "configure"
19972 #include "confdefs.h"
19973 #include <sys/resource.h>
19974                   #include <unistd.h>
19975                  
19976 int main() {
19977  int f = RLIMIT_AS ; 
19978 ; return 0; }
19979 EOF
19980 if { (eval echo configure:19981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19981   rm -rf conftest*
19982   glibcpp_mresult=1
19983 else
19984   echo "configure: failed program was:" >&5
19985   cat conftest.$ac_ext >&5
19986   rm -rf conftest*
19987   glibcpp_mresult=0
19988 fi
19989 rm -f conftest*
19990   cat >> confdefs.h <<EOF
19991 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
19992 EOF
19993
19994
19995
19996     # Check for rlimit, setrlimit.
19997     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
19998   echo $ac_n "(cached) $ac_c" 1>&6
19999 else
20000   
20001       cat > conftest.$ac_ext <<EOF
20002 #line 20003 "configure"
20003 #include "confdefs.h"
20004 #include <sys/resource.h>
20005                       #include <unistd.h>
20006                      
20007 int main() {
20008  struct rlimit r; setrlimit(0, &r);
20009 ; return 0; }
20010 EOF
20011 if { (eval echo configure:20012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20012   rm -rf conftest*
20013   ac_setrlimit=yes
20014 else
20015   echo "configure: failed program was:" >&5
20016   cat conftest.$ac_ext >&5
20017   rm -rf conftest*
20018   ac_setrlimit=no
20019 fi
20020 rm -f conftest*
20021     
20022 fi
20023
20024   fi
20025
20026   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
20027 echo "configure:20028: checking for testsuite memory limit support" >&5
20028   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
20029     ac_mem_limits=yes
20030     cat >> confdefs.h <<\EOF
20031 #define _GLIBCPP_MEM_LIMITS 1
20032 EOF
20033
20034   else
20035     ac_mem_limits=no
20036   fi
20037   echo "$ac_t""$ac_mem_limits" 1>&6
20038
20039
20040   # Look for setenv, so that extended locale tests can be performed.
20041   for ac_func in setenv
20042 do
20043 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20044 echo "configure:20045: checking for $ac_func" >&5
20045 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20046   echo $ac_n "(cached) $ac_c" 1>&6
20047 else
20048   cat > conftest.$ac_ext <<EOF
20049 #line 20050 "configure"
20050 #include "confdefs.h"
20051 /* System header to define __stub macros and hopefully few prototypes,
20052     which can conflict with char $ac_func(); below.  */
20053 #include <assert.h>
20054 /* Override any gcc2 internal prototype to avoid an error.  */
20055 /* We use char because int might match the return type of a gcc2
20056     builtin and then its argument prototype would still apply.  */
20057 char $ac_func();
20058
20059 int main() {
20060
20061 /* The GNU C library defines this for functions which it implements
20062     to always fail with ENOSYS.  Some functions are actually named
20063     something starting with __ and the normal name is an alias.  */
20064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20065 choke me
20066 #else
20067 $ac_func();
20068 #endif
20069
20070 ; return 0; }
20071 EOF
20072 if { (eval echo configure:20073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20073   rm -rf conftest*
20074   eval "ac_cv_func_$ac_func=yes"
20075 else
20076   echo "configure: failed program was:" >&5
20077   cat conftest.$ac_ext >&5
20078   rm -rf conftest*
20079   eval "ac_cv_func_$ac_func=no"
20080 fi
20081 rm -f conftest*
20082 fi
20083
20084 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20085   echo "$ac_t""yes" 1>&6
20086     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20087   cat >> confdefs.h <<EOF
20088 #define $ac_tr_func 1
20089 EOF
20090  
20091 else
20092   echo "$ac_t""no" 1>&6
20093 fi
20094 done
20095
20096
20097 fi
20098
20099 # This depends on the possibly-skipped linker test above.
20100 # Check whether --enable-symvers or --disable-symvers was given.
20101 if test "${enable_symvers+set}" = set; then
20102   enableval="$enable_symvers"
20103   case "$enableval" in
20104  yes) enable_symvers=yes ;;
20105  no)  enable_symvers=no ;;
20106  # other names here, just as sanity checks
20107  #gnu|sun|etcetera) enable_symvers=$enableval ;;
20108  gnu) enable_symvers=$enableval ;;
20109  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
20110  esac
20111 else
20112   enable_symvers=yes
20113 fi
20114
20115 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
20116 # don't know enough about $LD to do tricks... 
20117 if test $enable_shared = no || test x$LD = x ; then
20118   enable_symvers=no
20119 fi
20120
20121 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
20122 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
20123 echo "configure:20124: checking for shared libgcc" >&5
20124 ac_save_CFLAGS="$CFLAGS"
20125 CFLAGS=' -lgcc_s'
20126 cat > conftest.$ac_ext <<EOF
20127 #line 20128 "configure"
20128 #include "confdefs.h"
20129
20130 int main() {
20131 return 0
20132 ; return 0; }
20133 EOF
20134 if { (eval echo configure:20135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20135   rm -rf conftest*
20136   glibcpp_shared_libgcc=yes
20137 else
20138   echo "configure: failed program was:" >&5
20139   cat conftest.$ac_ext >&5
20140   rm -rf conftest*
20141   glibcpp_shared_libgcc=no
20142 fi
20143 rm -f conftest*
20144 CFLAGS="$ac_save_CFLAGS"
20145 echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
20146
20147 # For GNU ld, we need at least this version.  It's 2.12 in the same format
20148 # as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
20149 glibcpp_min_gnu_ld_version=21200
20150
20151 # Check to see if unspecified "yes" value can win, given results
20152 # above.  
20153 if test $enable_symvers = yes ; then
20154   if test $with_gnu_ld = yes &&
20155     test $glibcpp_shared_libgcc = yes ;
20156   then
20157     if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
20158         enable_symvers=gnu
20159     else
20160       ac_test_CFLAGS="${CFLAGS+set}"
20161       ac_save_CFLAGS="$CFLAGS"
20162       CFLAGS='-shared -Wl,--version-script,conftest.map'
20163       enable_symvers=no
20164       
20165       echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
20166       
20167       cat > conftest.$ac_ext <<EOF
20168 #line 20169 "configure"
20169 #include "confdefs.h"
20170 int foo;
20171 int main() {
20172
20173 ; return 0; }
20174 EOF
20175 if { (eval echo configure:20176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20176   rm -rf conftest*
20177   enable_symvers=gnu
20178 else
20179   echo "configure: failed program was:" >&5
20180   cat conftest.$ac_ext >&5
20181 fi
20182 rm -f conftest*
20183       if test "$ac_test_CFLAGS" = set; then
20184         CFLAGS="$ac_save_CFLAGS"
20185       else
20186         # this is the suspicious part
20187         CFLAGS=''
20188       fi
20189       rm -f conftest.map
20190     fi
20191   else
20192     # just fail for now
20193     enable_symvers=no
20194   fi
20195 fi
20196
20197 case $enable_symvers in
20198   no)
20199       LINKER_MAP=config/linker-map.dummy
20200       ;;
20201   gnu)
20202       LINKER_MAP=config/linker-map.gnu
20203       ;;
20204 esac
20205
20206
20207
20208
20209 if test $enable_symvers != no; then
20210   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
20211   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
20212 else
20213   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
20214   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
20215 fi
20216 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
20217 echo "configure:20218: checking versioning on shared library symbols" >&5
20218 echo "$ac_t""$enable_symvers" 1>&6
20219
20220
20221 # Propagate the target-specific source directories through the build chain.
20222 OS_INC_SRCDIR=$os_include_dir/bits
20223 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
20224 CPU_LIMITS_INC_SRCDIR=$CPULIMITSH/bits
20225
20226
20227
20228
20229 # Set up cross-compile flags
20230
20231
20232
20233 if test "$CANADIAN" = yes; then
20234   CANADIAN_TRUE=
20235   CANADIAN_FALSE='#'
20236 else
20237   CANADIAN_TRUE='#'
20238   CANADIAN_FALSE=
20239 fi
20240  
20241 cat > confcache <<\EOF
20242 # This file is a shell script that caches the results of configure
20243 # tests run on this system so they can be shared between configure
20244 # scripts and configure runs.  It is not useful on other systems.
20245 # If it contains results you don't want to keep, you may remove or edit it.
20246 #
20247 # By default, configure uses ./config.cache as the cache file,
20248 # creating it if it does not exist already.  You can give configure
20249 # the --cache-file=FILE option to use a different cache file; that is
20250 # what configure does when it calls configure scripts in
20251 # subdirectories, so they share the cache.
20252 # Giving --cache-file=/dev/null disables caching, for debugging configure.
20253 # config.status only pays attention to the cache file if you give it the
20254 # --recheck option to rerun configure.
20255 #
20256 EOF
20257 # The following way of writing the cache mishandles newlines in values,
20258 # but we know of no workaround that is simple, portable, and efficient.
20259 # So, don't put newlines in cache variables' values.
20260 # Ultrix sh set writes to stderr and can't be redirected directly,
20261 # and sets the high bit in the cache file unless we assign to the vars.
20262 (set) 2>&1 |
20263   case `(ac_space=' '; set | grep ac_space) 2>&1` in
20264   *ac_space=\ *)
20265     # `set' does not quote correctly, so add quotes (double-quote substitution
20266     # turns \\\\ into \\, and sed turns \\ into \).
20267     sed -n \
20268       -e "s/'/'\\\\''/g" \
20269       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20270     ;;
20271   *)
20272     # `set' quotes correctly as required by POSIX, so do not add quotes.
20273     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20274     ;;
20275   esac >> confcache
20276 if cmp -s $cache_file confcache; then
20277   :
20278 else
20279   if test -w $cache_file; then
20280     echo "updating cache $cache_file"
20281     cat confcache > $cache_file
20282   else
20283     echo "not updating unwritable cache $cache_file"
20284   fi
20285 fi
20286 rm -f confcache
20287
20288
20289 if test "${multilib}" = "yes"; then
20290   multilib_arg="--enable-multilib"
20291 else
20292   multilib_arg=
20293 fi
20294
20295 # Needed so that g++ can find the correct include subdir automatically.
20296 INTERFACE=v3
20297
20298 # Export all the install information
20299
20300 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
20301 # exported correctly in GLIBCPP_CONFIGURE.
20302 glibcpp_toolexecdir=no
20303 glibcpp_toolexeclibdir=no
20304 glibcpp_prefixdir=${prefix}
20305
20306 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
20307 echo "configure:20308: checking for interface version number" >&5
20308 libstdcxx_interface=$INTERFACE
20309 echo "$ac_t""$libstdcxx_interface" 1>&6
20310
20311 # Process the option --with-gxx-include-dir=<path to include-files directory>
20312 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
20313 echo "configure:20314: checking for --with-gxx-include-dir" >&5
20314 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
20315 if test "${with_gxx_include_dir+set}" = set; then
20316   withval="$with_gxx_include_dir"
20317   case "${withval}" in
20318   yes)
20319     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
20320     gxx_include_dir=no
20321     ;;
20322   no)
20323     gxx_include_dir=no
20324     ;;
20325   *)
20326     gxx_include_dir=${withval}
20327     ;;
20328 esac
20329 else
20330   gxx_include_dir=no
20331 fi
20332
20333 echo "$ac_t""$gxx_include_dir" 1>&6
20334
20335 # Process the option "--enable-version-specific-runtime-libs"
20336 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
20337 echo "configure:20338: checking for --enable-version-specific-runtime-libs" >&5
20338 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
20339 if test "${enable_version_specific_runtime_libs+set}" = set; then
20340   enableval="$enable_version_specific_runtime_libs"
20341   case "$enableval" in
20342  yes) version_specific_libs=yes ;;
20343  no)  version_specific_libs=no ;;
20344  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
20345  esac
20346 else
20347   version_specific_libs=no
20348 fi
20349 # Option set, now we can test it.
20350 echo "$ac_t""$version_specific_libs" 1>&6
20351
20352 if test $version_specific_libs = yes; then
20353   # Need the gcc compiler version to know where to install libraries
20354   # and header files if --enable-version-specific-runtime-libs option
20355   # is selected.
20356     gcc_version_trigger=${srcdir}/../gcc/version.c
20357   gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
20358   gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
20359   gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
20360   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
20361   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
20362   fi
20363
20364 # Default case for install directory for include files.
20365 if test $version_specific_libs = no &&
20366    test $gxx_include_dir = no; then
20367   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
20368 fi
20369
20370 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
20371 # Install a library built with a cross compiler in tooldir, not libdir.
20372 if test x"$glibcpp_toolexecdir" = x"no"; then 
20373   if test -n "$with_cross_host" &&
20374      test x"$with_cross_host" != x"no"; then
20375     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
20376     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
20377   else
20378     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
20379     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
20380   fi
20381 fi
20382
20383 echo $ac_n "checking for install location""... $ac_c" 1>&6
20384 echo "configure:20385: checking for install location" >&5
20385 echo "$ac_t""$gxx_include_dir" 1>&6
20386
20387
20388
20389
20390
20391
20392
20393 # Export all the include and flag information to makefiles.
20394
20395   # Root level of the build directory include sources.
20396   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
20397
20398   # Passed down for canadian crosses.
20399   if test x"$CANADIAN" = xyes; then
20400     TOPLEVEL_INCLUDES='-I$(includedir)'
20401   fi
20402
20403   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
20404
20405   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
20406
20407   if test x"$need_libio" = xyes; then
20408     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
20409     
20410   fi
20411
20412   # Now, export this to all the little Makefiles....
20413   
20414   
20415   
20416   
20417
20418
20419   # Optimization flags that are probably a good idea for thrill-seekers. Just
20420   # uncomment the lines below and make, everything else is ready to go... 
20421   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
20422   OPTIMIZE_CXXFLAGS=
20423   
20424
20425   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
20426   
20427
20428
20429 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
20430    grep "enable shared" > /dev/null; then
20431   LIBSUPCXX_PICFLAGS=-prefer-pic
20432 else
20433   LIBSUPCXX_PICFLAGS=
20434 fi
20435
20436
20437 # Generate the various Makefiles, include files, and scripts.
20438 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
20439 # and libsupc++/Makefile.am so that multilib installs will end up
20440 # installed in the correct place. To work around this not being passed
20441 # down from config-ml.in -> top_srcdir/Makefile.am ->
20442 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
20443 trap '' 1 2 15
20444 cat > confcache <<\EOF
20445 # This file is a shell script that caches the results of configure
20446 # tests run on this system so they can be shared between configure
20447 # scripts and configure runs.  It is not useful on other systems.
20448 # If it contains results you don't want to keep, you may remove or edit it.
20449 #
20450 # By default, configure uses ./config.cache as the cache file,
20451 # creating it if it does not exist already.  You can give configure
20452 # the --cache-file=FILE option to use a different cache file; that is
20453 # what configure does when it calls configure scripts in
20454 # subdirectories, so they share the cache.
20455 # Giving --cache-file=/dev/null disables caching, for debugging configure.
20456 # config.status only pays attention to the cache file if you give it the
20457 # --recheck option to rerun configure.
20458 #
20459 EOF
20460 # The following way of writing the cache mishandles newlines in values,
20461 # but we know of no workaround that is simple, portable, and efficient.
20462 # So, don't put newlines in cache variables' values.
20463 # Ultrix sh set writes to stderr and can't be redirected directly,
20464 # and sets the high bit in the cache file unless we assign to the vars.
20465 (set) 2>&1 |
20466   case `(ac_space=' '; set | grep ac_space) 2>&1` in
20467   *ac_space=\ *)
20468     # `set' does not quote correctly, so add quotes (double-quote substitution
20469     # turns \\\\ into \\, and sed turns \\ into \).
20470     sed -n \
20471       -e "s/'/'\\\\''/g" \
20472       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20473     ;;
20474   *)
20475     # `set' quotes correctly as required by POSIX, so do not add quotes.
20476     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20477     ;;
20478   esac >> confcache
20479 if cmp -s $cache_file confcache; then
20480   :
20481 else
20482   if test -w $cache_file; then
20483     echo "updating cache $cache_file"
20484     cat confcache > $cache_file
20485   else
20486     echo "not updating unwritable cache $cache_file"
20487   fi
20488 fi
20489 rm -f confcache
20490
20491 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
20492
20493 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20494 # Let make expand exec_prefix.
20495 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20496
20497 # Any assignment to VPATH causes Sun make to only execute
20498 # the first set of double-colon rules, so remove it if not needed.
20499 # If there is a colon in the path, we need to keep it.
20500 if test "x$srcdir" = x.; then
20501   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
20502 fi
20503
20504 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
20505
20506 DEFS=-DHAVE_CONFIG_H
20507
20508 # Without the "./", some shells look in PATH for config.status.
20509 : ${CONFIG_STATUS=./config.status}
20510
20511 echo creating $CONFIG_STATUS
20512 rm -f $CONFIG_STATUS
20513 cat > $CONFIG_STATUS <<EOF
20514 #! /bin/sh
20515 # Generated automatically by configure.
20516 # Run this file to recreate the current configuration.
20517 # This directory was configured as follows,
20518 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20519 #
20520 # $0 $ac_configure_args
20521 #
20522 # Compiler output produced by configure, useful for debugging
20523 # configure, is in ./config.log if it exists.
20524
20525 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
20526 for ac_option
20527 do
20528   case "\$ac_option" in
20529   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20530     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
20531     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
20532   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
20533     echo "$CONFIG_STATUS generated by autoconf version 2.13"
20534     exit 0 ;;
20535   -help | --help | --hel | --he | --h)
20536     echo "\$ac_cs_usage"; exit 0 ;;
20537   *) echo "\$ac_cs_usage"; exit 1 ;;
20538   esac
20539 done
20540
20541 ac_given_srcdir=$srcdir
20542 ac_given_INSTALL="$INSTALL"
20543
20544 trap 'rm -fr `echo "Makefile \
20545     include/Makefile src/Makefile \
20546     libmath/Makefile libio/Makefile libsupc++/Makefile \
20547     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
20548 EOF
20549 cat >> $CONFIG_STATUS <<EOF
20550
20551 # Protect against being on the right side of a sed subst in config.status.
20552 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
20553  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
20554 $ac_vpsub
20555 $extrasub
20556 s%@SHELL@%$SHELL%g
20557 s%@CFLAGS@%$CFLAGS%g
20558 s%@CPPFLAGS@%$CPPFLAGS%g
20559 s%@CXXFLAGS@%$CXXFLAGS%g
20560 s%@FFLAGS@%$FFLAGS%g
20561 s%@DEFS@%$DEFS%g
20562 s%@LDFLAGS@%$LDFLAGS%g
20563 s%@LIBS@%$LIBS%g
20564 s%@exec_prefix@%$exec_prefix%g
20565 s%@prefix@%$prefix%g
20566 s%@program_transform_name@%$program_transform_name%g
20567 s%@bindir@%$bindir%g
20568 s%@sbindir@%$sbindir%g
20569 s%@libexecdir@%$libexecdir%g
20570 s%@datadir@%$datadir%g
20571 s%@sysconfdir@%$sysconfdir%g
20572 s%@sharedstatedir@%$sharedstatedir%g
20573 s%@localstatedir@%$localstatedir%g
20574 s%@libdir@%$libdir%g
20575 s%@includedir@%$includedir%g
20576 s%@oldincludedir@%$oldincludedir%g
20577 s%@infodir@%$infodir%g
20578 s%@mandir@%$mandir%g
20579 s%@PACKAGE@%$PACKAGE%g
20580 s%@release_VERSION@%$release_VERSION%g
20581 s%@libtool_VERSION@%$libtool_VERSION%g
20582 s%@host@%$host%g
20583 s%@host_alias@%$host_alias%g
20584 s%@host_cpu@%$host_cpu%g
20585 s%@host_vendor@%$host_vendor%g
20586 s%@host_os@%$host_os%g
20587 s%@target@%$target%g
20588 s%@target_alias@%$target_alias%g
20589 s%@target_cpu@%$target_cpu%g
20590 s%@target_vendor@%$target_vendor%g
20591 s%@target_os@%$target_os%g
20592 s%@build@%$build%g
20593 s%@build_alias@%$build_alias%g
20594 s%@build_cpu@%$build_cpu%g
20595 s%@build_vendor@%$build_vendor%g
20596 s%@build_os@%$build_os%g
20597 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
20598 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
20599 s%@INSTALL_DATA@%$INSTALL_DATA%g
20600 s%@VERSION@%$VERSION%g
20601 s%@ACLOCAL@%$ACLOCAL%g
20602 s%@AUTOCONF@%$AUTOCONF%g
20603 s%@AUTOMAKE@%$AUTOMAKE%g
20604 s%@AUTOHEADER@%$AUTOHEADER%g
20605 s%@MAKEINFO@%$MAKEINFO%g
20606 s%@SET_MAKE@%$SET_MAKE%g
20607 s%@toplevel_srcdir@%$toplevel_srcdir%g
20608 s%@glibcpp_builddir@%$glibcpp_builddir%g
20609 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
20610 s%@AWK@%$AWK%g
20611 s%@LN_S@%$LN_S%g
20612 s%@glibcpp_basedir@%$glibcpp_basedir%g
20613 s%@CC@%$CC%g
20614 s%@glibcpp_CXX@%$glibcpp_CXX%g
20615 s%@AS@%$AS%g
20616 s%@AR@%$AR%g
20617 s%@RANLIB@%$RANLIB%g
20618 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
20619 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
20620 s%@MAINT@%$MAINT%g
20621 s%@EXEEXT@%$EXEEXT%g
20622 s%@OBJEXT@%$OBJEXT%g
20623 s%@STRIP@%$STRIP%g
20624 s%@LIBTOOL@%$LIBTOOL%g
20625 s%@CXXCPP@%$CXXCPP%g
20626 s%@enable_shared@%$enable_shared%g
20627 s%@enable_static@%$enable_static%g
20628 s%@ifGNUmake@%$ifGNUmake%g
20629 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
20630 s%@CPP@%$CPP%g
20631 s%@CSTDIO_H@%$CSTDIO_H%g
20632 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
20633 s%@CCODECVT_C@%$CCODECVT_C%g
20634 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
20635 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
20636 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
20637 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
20638 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
20639 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
20640 s%@libio_la@%$libio_la%g
20641 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
20642 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
20643 s%@glibcpp_localedir@%$glibcpp_localedir%g
20644 s%@USE_NLS@%$USE_NLS%g
20645 s%@CLOCALE_H@%$CLOCALE_H%g
20646 s%@CCODECVT_H@%$CCODECVT_H%g
20647 s%@CMESSAGES_H@%$CMESSAGES_H%g
20648 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
20649 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
20650 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
20651 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
20652 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
20653 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
20654 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
20655 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
20656 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
20657 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
20658 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
20659 s%@WERROR@%$WERROR%g
20660 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
20661 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
20662 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
20663 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
20664 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
20665 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
20666 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
20667 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
20668 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
20669 s%@gxx_include_dir@%$gxx_include_dir%g
20670 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
20671 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
20672 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
20673 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
20674 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
20675 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
20676 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
20677 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
20678 s%@WARN_FLAGS@%$WARN_FLAGS%g
20679 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
20680
20681 CEOF
20682 EOF
20683
20684 cat >> $CONFIG_STATUS <<\EOF
20685
20686 # Split the substitutions into bite-sized pieces for seds with
20687 # small command number limits, like on Digital OSF/1 and HP-UX.
20688 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
20689 ac_file=1 # Number of current file.
20690 ac_beg=1 # First line for current file.
20691 ac_end=$ac_max_sed_cmds # Line after last line for current file.
20692 ac_more_lines=:
20693 ac_sed_cmds=""
20694 while $ac_more_lines; do
20695   if test $ac_beg -gt 1; then
20696     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
20697   else
20698     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
20699   fi
20700   if test ! -s conftest.s$ac_file; then
20701     ac_more_lines=false
20702     rm -f conftest.s$ac_file
20703   else
20704     if test -z "$ac_sed_cmds"; then
20705       ac_sed_cmds="sed -f conftest.s$ac_file"
20706     else
20707       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
20708     fi
20709     ac_file=`expr $ac_file + 1`
20710     ac_beg=$ac_end
20711     ac_end=`expr $ac_end + $ac_max_sed_cmds`
20712   fi
20713 done
20714 if test -z "$ac_sed_cmds"; then
20715   ac_sed_cmds=cat
20716 fi
20717 EOF
20718
20719 cat >> $CONFIG_STATUS <<EOF
20720
20721 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
20722     include/Makefile src/Makefile \
20723     libmath/Makefile libio/Makefile libsupc++/Makefile \
20724     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
20725 EOF
20726 cat >> $CONFIG_STATUS <<\EOF
20727 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
20728   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20729   case "$ac_file" in
20730   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20731        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20732   *) ac_file_in="${ac_file}.in" ;;
20733   esac
20734
20735   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
20736
20737   # Remove last slash and all that follows it.  Not all systems have dirname.
20738   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20739   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20740     # The file is in a subdirectory.
20741     test ! -d "$ac_dir" && mkdir "$ac_dir"
20742     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
20743     # A "../" for each directory in $ac_dir_suffix.
20744     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
20745   else
20746     ac_dir_suffix= ac_dots=
20747   fi
20748
20749   case "$ac_given_srcdir" in
20750   .)  srcdir=.
20751       if test -z "$ac_dots"; then top_srcdir=.
20752       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
20753   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
20754   *) # Relative path.
20755     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
20756     top_srcdir="$ac_dots$ac_given_srcdir" ;;
20757   esac
20758
20759   case "$ac_given_INSTALL" in
20760   [/$]*) INSTALL="$ac_given_INSTALL" ;;
20761   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
20762   esac
20763
20764   echo creating "$ac_file"
20765   rm -f "$ac_file"
20766   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
20767   case "$ac_file" in
20768   *Makefile*) ac_comsub="1i\\
20769 # $configure_input" ;;
20770   *) ac_comsub= ;;
20771   esac
20772
20773   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20774   sed -e "$ac_comsub
20775 s%@configure_input@%$configure_input%g
20776 s%@srcdir@%$srcdir%g
20777 s%@top_srcdir@%$top_srcdir%g
20778 s%@INSTALL@%$INSTALL%g
20779 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
20780 fi; done
20781 rm -f conftest.s*
20782
20783 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20784 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20785 #
20786 # ac_d sets the value in "#define NAME VALUE" lines.
20787 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
20788 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
20789 ac_dC='\3'
20790 ac_dD='%g'
20791 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
20792 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20793 ac_uB='\([      ]\)%\1#\2define\3'
20794 ac_uC=' '
20795 ac_uD='\4%g'
20796 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20797 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20798 ac_eB='$%\1#\2define\3'
20799 ac_eC=' '
20800 ac_eD='%g'
20801
20802 if test "${CONFIG_HEADERS+set}" != set; then
20803 EOF
20804 cat >> $CONFIG_STATUS <<EOF
20805   CONFIG_HEADERS="config.h"
20806 EOF
20807 cat >> $CONFIG_STATUS <<\EOF
20808 fi
20809 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
20810   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20811   case "$ac_file" in
20812   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20813        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20814   *) ac_file_in="${ac_file}.in" ;;
20815   esac
20816
20817   echo creating $ac_file
20818
20819   rm -f conftest.frag conftest.in conftest.out
20820   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20821   cat $ac_file_inputs > conftest.in
20822
20823 EOF
20824
20825 # Transform confdefs.h into a sed script conftest.vals that substitutes
20826 # the proper values into config.h.in to produce config.h.  And first:
20827 # Protect against being on the right side of a sed subst in config.status.
20828 # Protect against being in an unquoted here document in config.status.
20829 rm -f conftest.vals
20830 cat > conftest.hdr <<\EOF
20831 s/[\\&%]/\\&/g
20832 s%[\\$`]%\\&%g
20833 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
20834 s%ac_d%ac_u%gp
20835 s%ac_u%ac_e%gp
20836 EOF
20837 sed -n -f conftest.hdr confdefs.h > conftest.vals
20838 rm -f conftest.hdr
20839
20840 # This sed command replaces #undef with comments.  This is necessary, for
20841 # example, in the case of _POSIX_SOURCE, which is predefined and required
20842 # on some systems where configure will not decide to define it.
20843 cat >> conftest.vals <<\EOF
20844 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
20845 EOF
20846
20847 # Break up conftest.vals because some shells have a limit on
20848 # the size of here documents, and old seds have small limits too.
20849
20850 rm -f conftest.tail
20851 while :
20852 do
20853   ac_lines=`grep -c . conftest.vals`
20854   # grep -c gives empty output for an empty file on some AIX systems.
20855   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
20856   # Write a limited-size here document to conftest.frag.
20857   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
20858   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
20859   echo 'CEOF
20860   sed -f conftest.frag conftest.in > conftest.out
20861   rm -f conftest.in
20862   mv conftest.out conftest.in
20863 ' >> $CONFIG_STATUS
20864   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
20865   rm -f conftest.vals
20866   mv conftest.tail conftest.vals
20867 done
20868 rm -f conftest.vals
20869
20870 cat >> $CONFIG_STATUS <<\EOF
20871   rm -f conftest.frag conftest.h
20872   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
20873   cat conftest.in >> conftest.h
20874   rm -f conftest.in
20875   if cmp -s $ac_file conftest.h 2>/dev/null; then
20876     echo "$ac_file is unchanged"
20877     rm -f conftest.h
20878   else
20879     # Remove last slash and all that follows it.  Not all systems have dirname.
20880       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20881       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20882       # The file is in a subdirectory.
20883       test ! -d "$ac_dir" && mkdir "$ac_dir"
20884     fi
20885     rm -f $ac_file
20886     mv conftest.h $ac_file
20887   fi
20888 fi; done
20889
20890 EOF
20891
20892 cat >> $CONFIG_STATUS <<EOF
20893 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $LINKER_MAP"
20894 ac_dests="src/basic_file.cc src/c++locale.cc src/collate.cc src/ctype.cc src/messages.cc src/monetary.cc src/numeric.cc src/time.cc src/linker.map"
20895 EOF
20896
20897 cat >> $CONFIG_STATUS <<\EOF
20898 srcdir=$ac_given_srcdir
20899 while test -n "$ac_sources"; do
20900   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
20901   set $ac_sources; ac_source=$1; shift; ac_sources=$*
20902
20903   echo "linking $srcdir/$ac_source to $ac_dest"
20904
20905   if test ! -r $srcdir/$ac_source; then
20906     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
20907   fi
20908   rm -f $ac_dest
20909
20910   # Make relative symlinks.
20911   # Remove last slash and all that follows it.  Not all systems have dirname.
20912   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
20913   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
20914     # The dest file is in a subdirectory.
20915     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
20916     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
20917     # A "../" for each directory in $ac_dest_dir_suffix.
20918     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
20919   else
20920     ac_dest_dir_suffix= ac_dots=
20921   fi
20922
20923   case "$srcdir" in
20924   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
20925   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
20926   esac
20927
20928   # Make a symlink if possible; otherwise try a hard link.
20929   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
20930     ln $srcdir/$ac_source $ac_dest; then :
20931   else
20932     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
20933   fi
20934 done
20935 EOF
20936 cat >> $CONFIG_STATUS <<EOF
20937
20938 srcdir=${srcdir}
20939 host=${host}
20940 target=${target}
20941 with_multisubdir=${with_multisubdir}
20942 ac_configure_args="${multilib_arg} ${ac_configure_args}"
20943 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
20944 glibcpp_basedir=${glibcpp_basedir}
20945 CC="${CC}"
20946 CXX="${CXX}"
20947
20948 EOF
20949 cat >> $CONFIG_STATUS <<\EOF
20950 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
20951 if test -n "$CONFIG_FILES"; then
20952   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
20953   grep '^MULTISUBDIR =' Makefile >> src/Makefile
20954   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
20955 fi
20956 chmod +x mkcheck
20957 chmod +x testsuite_flags
20958
20959 exit 0
20960 EOF
20961 chmod +x $CONFIG_STATUS
20962 rm -fr confdefs* $ac_clean_files
20963 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
20964
20965
20966
20967 # Sanity checking & User-visible messages.
20968 # Checks down here, otherwise they get scrolled off before
20969 # the user will notice.
20970
20971 # Trying to get more people to read documentation.  Possibly remove
20972 # check and warn all the time. There is no "informational" AC_MSG_
20973 # macro, so these are going to be printed even when --quiet/--silent
20974 # is given.
20975 if test ! -f stamp-sanity-warned; then
20976   touch stamp-sanity-warned
20977   echo ""
20978   echo "Please make certain that you read the installation information here:"
20979   echo "  faster => ${srcdir}/docs/install.html"
20980   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
20981   echo ""
20982   echo "and the configuration information here:"
20983   echo "  faster => ${srcdir}/docs/configopts.html"
20984   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
20985   echo ""
20986   echo "before proceeding with ${_cv_gnu_make_command}."
20987   echo ""
20988 fi