OSDN Git Service

* config/s390/s390.md ("trap", "conditional_trap", "*trap"): New insns.
[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-nls            use Native Language Support (default)"
48 ac_help="$ac_help
49   --enable-c-mbchar       enable multibyte (wide) characters [default=yes]"
50 ac_help="$ac_help
51   --enable-c99            turns on 'ISO/IEC 9899:1999 support' [default=yes]"
52 ac_help="$ac_help
53   --enable-long-long      turns on 'long long' [default=yes]"
54 ac_help="$ac_help
55   --enable-cheaders       construct "C" header files for g++ [default=c_std]"
56 ac_help="$ac_help
57   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
58                                 [default=none]"
59 ac_help="$ac_help
60   --enable-sjlj-exceptions  force use of builtin_setjmp for exceptions"
61 ac_help="$ac_help
62   --enable-libunwind-exceptions  force use of libunwind for exceptions"
63 ac_help="$ac_help
64   --enable-concept-checks use Boost-derived template checks [default=no]"
65 ac_help="$ac_help
66   --enable-symvers=style  enables symbol versioning of the shared library [default=yes]"
67 ac_help="$ac_help
68   --with-gxx-include-dir  the installation directory for include files"
69 ac_help="$ac_help
70   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
71
72 # Initialize some variables set by options.
73 # The variables have the same names as the options, with
74 # dashes changed to underlines.
75 build=NONE
76 cache_file=./config.cache
77 exec_prefix=NONE
78 host=NONE
79 no_create=
80 nonopt=NONE
81 no_recursion=
82 prefix=NONE
83 program_prefix=NONE
84 program_suffix=NONE
85 program_transform_name=s,x,x,
86 silent=
87 site=
88 srcdir=
89 target=NONE
90 verbose=
91 x_includes=NONE
92 x_libraries=NONE
93 bindir='${exec_prefix}/bin'
94 sbindir='${exec_prefix}/sbin'
95 libexecdir='${exec_prefix}/libexec'
96 datadir='${prefix}/share'
97 sysconfdir='${prefix}/etc'
98 sharedstatedir='${prefix}/com'
99 localstatedir='${prefix}/var'
100 libdir='${exec_prefix}/lib'
101 includedir='${prefix}/include'
102 oldincludedir='/usr/include'
103 infodir='${prefix}/info'
104 mandir='${prefix}/man'
105
106 # Initialize some other variables.
107 subdirs=
108 MFLAGS= MAKEFLAGS=
109 SHELL=${CONFIG_SHELL-/bin/sh}
110 # Maximum number of lines to put in a shell here document.
111 ac_max_here_lines=12
112
113 ac_prev=
114 for ac_option
115 do
116
117   # If the previous option needs an argument, assign it.
118   if test -n "$ac_prev"; then
119     eval "$ac_prev=\$ac_option"
120     ac_prev=
121     continue
122   fi
123
124   case "$ac_option" in
125   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126   *) ac_optarg= ;;
127   esac
128
129   # Accept the important Cygnus configure options, so we can diagnose typos.
130
131   case "$ac_option" in
132
133   -bindir | --bindir | --bindi | --bind | --bin | --bi)
134     ac_prev=bindir ;;
135   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
136     bindir="$ac_optarg" ;;
137
138   -build | --build | --buil | --bui | --bu)
139     ac_prev=build ;;
140   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
141     build="$ac_optarg" ;;
142
143   -cache-file | --cache-file | --cache-fil | --cache-fi \
144   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
145     ac_prev=cache_file ;;
146   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
147   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
148     cache_file="$ac_optarg" ;;
149
150   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
151     ac_prev=datadir ;;
152   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
153   | --da=*)
154     datadir="$ac_optarg" ;;
155
156   -disable-* | --disable-*)
157     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
158     # Reject names that are not valid shell variable names.
159     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
160       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
161     fi
162     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
163     eval "enable_${ac_feature}=no" ;;
164
165   -enable-* | --enable-*)
166     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
167     # Reject names that are not valid shell variable names.
168     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
169       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170     fi
171     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172     case "$ac_option" in
173       *=*) ;;
174       *) ac_optarg=yes ;;
175     esac
176     eval "enable_${ac_feature}='$ac_optarg'" ;;
177
178   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
179   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
180   | --exec | --exe | --ex)
181     ac_prev=exec_prefix ;;
182   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
183   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
184   | --exec=* | --exe=* | --ex=*)
185     exec_prefix="$ac_optarg" ;;
186
187   -gas | --gas | --ga | --g)
188     # Obsolete; use --with-gas.
189     with_gas=yes ;;
190
191   -help | --help | --hel | --he)
192     # Omit some internal or obsolete options to make the list less imposing.
193     # This message is too long to be a string in the A/UX 3.1 sh.
194     cat << EOF
195 Usage: configure [options] [host]
196 Options: [defaults in brackets after descriptions]
197 Configuration:
198   --cache-file=FILE       cache test results in FILE
199   --help                  print this message
200   --no-create             do not create output files
201   --quiet, --silent       do not print \`checking...' messages
202   --version               print the version of autoconf that created configure
203 Directory and file names:
204   --prefix=PREFIX         install architecture-independent files in PREFIX
205                           [$ac_default_prefix]
206   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
207                           [same as prefix]
208   --bindir=DIR            user executables in DIR [EPREFIX/bin]
209   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
210   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
211   --datadir=DIR           read-only architecture-independent data in DIR
212                           [PREFIX/share]
213   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
214   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
215                           [PREFIX/com]
216   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
217   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
218   --includedir=DIR        C header files in DIR [PREFIX/include]
219   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
220   --infodir=DIR           info documentation in DIR [PREFIX/info]
221   --mandir=DIR            man documentation in DIR [PREFIX/man]
222   --srcdir=DIR            find the sources in DIR [configure dir or ..]
223   --program-prefix=PREFIX prepend PREFIX to installed program names
224   --program-suffix=SUFFIX append SUFFIX to installed program names
225   --program-transform-name=PROGRAM
226                           run sed PROGRAM on installed program names
227 EOF
228     cat << EOF
229 Host type:
230   --build=BUILD           configure for building on BUILD [BUILD=HOST]
231   --host=HOST             configure for HOST [guessed]
232   --target=TARGET         configure for TARGET [TARGET=HOST]
233 Features and packages:
234   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
235   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
236   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
237   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
238   --x-includes=DIR        X include files are in DIR
239   --x-libraries=DIR       X library files are in DIR
240 EOF
241     if test -n "$ac_help"; then
242       echo "--enable and --with options recognized:$ac_help"
243     fi
244     exit 0 ;;
245
246   -host | --host | --hos | --ho)
247     ac_prev=host ;;
248   -host=* | --host=* | --hos=* | --ho=*)
249     host="$ac_optarg" ;;
250
251   -includedir | --includedir | --includedi | --included | --include \
252   | --includ | --inclu | --incl | --inc)
253     ac_prev=includedir ;;
254   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255   | --includ=* | --inclu=* | --incl=* | --inc=*)
256     includedir="$ac_optarg" ;;
257
258   -infodir | --infodir | --infodi | --infod | --info | --inf)
259     ac_prev=infodir ;;
260   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
261     infodir="$ac_optarg" ;;
262
263   -libdir | --libdir | --libdi | --libd)
264     ac_prev=libdir ;;
265   -libdir=* | --libdir=* | --libdi=* | --libd=*)
266     libdir="$ac_optarg" ;;
267
268   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269   | --libexe | --libex | --libe)
270     ac_prev=libexecdir ;;
271   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272   | --libexe=* | --libex=* | --libe=*)
273     libexecdir="$ac_optarg" ;;
274
275   -localstatedir | --localstatedir | --localstatedi | --localstated \
276   | --localstate | --localstat | --localsta | --localst \
277   | --locals | --local | --loca | --loc | --lo)
278     ac_prev=localstatedir ;;
279   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282     localstatedir="$ac_optarg" ;;
283
284   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
285     ac_prev=mandir ;;
286   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
287     mandir="$ac_optarg" ;;
288
289   -nfp | --nfp | --nf)
290     # Obsolete; use --without-fp.
291     with_fp=no ;;
292
293   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
294   | --no-cr | --no-c)
295     no_create=yes ;;
296
297   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
299     no_recursion=yes ;;
300
301   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303   | --oldin | --oldi | --old | --ol | --o)
304     ac_prev=oldincludedir ;;
305   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308     oldincludedir="$ac_optarg" ;;
309
310   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
311     ac_prev=prefix ;;
312   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
313     prefix="$ac_optarg" ;;
314
315   -program-prefix | --program-prefix | --program-prefi | --program-pref \
316   | --program-pre | --program-pr | --program-p)
317     ac_prev=program_prefix ;;
318   -program-prefix=* | --program-prefix=* | --program-prefi=* \
319   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320     program_prefix="$ac_optarg" ;;
321
322   -program-suffix | --program-suffix | --program-suffi | --program-suff \
323   | --program-suf | --program-su | --program-s)
324     ac_prev=program_suffix ;;
325   -program-suffix=* | --program-suffix=* | --program-suffi=* \
326   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327     program_suffix="$ac_optarg" ;;
328
329   -program-transform-name | --program-transform-name \
330   | --program-transform-nam | --program-transform-na \
331   | --program-transform-n | --program-transform- \
332   | --program-transform | --program-transfor \
333   | --program-transfo | --program-transf \
334   | --program-trans | --program-tran \
335   | --progr-tra | --program-tr | --program-t)
336     ac_prev=program_transform_name ;;
337   -program-transform-name=* | --program-transform-name=* \
338   | --program-transform-nam=* | --program-transform-na=* \
339   | --program-transform-n=* | --program-transform-=* \
340   | --program-transform=* | --program-transfor=* \
341   | --program-transfo=* | --program-transf=* \
342   | --program-trans=* | --program-tran=* \
343   | --progr-tra=* | --program-tr=* | --program-t=*)
344     program_transform_name="$ac_optarg" ;;
345
346   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347   | -silent | --silent | --silen | --sile | --sil)
348     silent=yes ;;
349
350   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
351     ac_prev=sbindir ;;
352   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
353   | --sbi=* | --sb=*)
354     sbindir="$ac_optarg" ;;
355
356   -sharedstatedir | --sharedstatedir | --sharedstatedi \
357   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358   | --sharedst | --shareds | --shared | --share | --shar \
359   | --sha | --sh)
360     ac_prev=sharedstatedir ;;
361   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
364   | --sha=* | --sh=*)
365     sharedstatedir="$ac_optarg" ;;
366
367   -site | --site | --sit)
368     ac_prev=site ;;
369   -site=* | --site=* | --sit=*)
370     site="$ac_optarg" ;;
371
372   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
373     ac_prev=srcdir ;;
374   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
375     srcdir="$ac_optarg" ;;
376
377   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378   | --syscon | --sysco | --sysc | --sys | --sy)
379     ac_prev=sysconfdir ;;
380   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382     sysconfdir="$ac_optarg" ;;
383
384   -target | --target | --targe | --targ | --tar | --ta | --t)
385     ac_prev=target ;;
386   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387     target="$ac_optarg" ;;
388
389   -v | -verbose | --verbose | --verbos | --verbo | --verb)
390     verbose=yes ;;
391
392   -version | --version | --versio | --versi | --vers)
393     echo "configure generated by autoconf version 2.13"
394     exit 0 ;;
395
396   -with-* | --with-*)
397     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398     # Reject names that are not valid shell variable names.
399     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
401     fi
402     ac_package=`echo $ac_package| sed 's/-/_/g'`
403     case "$ac_option" in
404       *=*) ;;
405       *) ac_optarg=yes ;;
406     esac
407     eval "with_${ac_package}='$ac_optarg'" ;;
408
409   -without-* | --without-*)
410     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
411     # Reject names that are not valid shell variable names.
412     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
414     fi
415     ac_package=`echo $ac_package| sed 's/-/_/g'`
416     eval "with_${ac_package}=no" ;;
417
418   --x)
419     # Obsolete; use --with-x.
420     with_x=yes ;;
421
422   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423   | --x-incl | --x-inc | --x-in | --x-i)
424     ac_prev=x_includes ;;
425   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427     x_includes="$ac_optarg" ;;
428
429   -x-libraries | --x-libraries | --x-librarie | --x-librari \
430   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431     ac_prev=x_libraries ;;
432   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434     x_libraries="$ac_optarg" ;;
435
436   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437     ;;
438
439   *)
440     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441       echo "configure: warning: $ac_option: invalid host type" 1>&2
442     fi
443     if test "x$nonopt" != xNONE; then
444       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
445     fi
446     nonopt="$ac_option"
447     ;;
448
449   esac
450 done
451
452 if test -n "$ac_prev"; then
453   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
454 fi
455
456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
457
458 # File descriptor usage:
459 # 0 standard input
460 # 1 file creation
461 # 2 errors and warnings
462 # 3 some systems may open it to /dev/tty
463 # 4 used on the Kubota Titan
464 # 6 checking for... messages and results
465 # 5 compiler messages saved in config.log
466 if test "$silent" = yes; then
467   exec 6>/dev/null
468 else
469   exec 6>&1
470 fi
471 exec 5>./config.log
472
473 echo "\
474 This file contains any messages produced by compilers while
475 running configure, to aid debugging if configure makes a mistake.
476 " 1>&5
477
478 # Strip out --no-create and --no-recursion so they do not pile up.
479 # Also quote any args containing shell metacharacters.
480 ac_configure_args=
481 for ac_arg
482 do
483   case "$ac_arg" in
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c) ;;
486   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
487   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
488   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
490   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
491   esac
492 done
493
494 # NLS nuisances.
495 # Only set these to C if already set.  These must not be set unconditionally
496 # because not all systems understand e.g. LANG=C (notably SCO).
497 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498 # Non-C LC_CTYPE values break the ctype check.
499 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
500 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
501 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
502 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
503
504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
505 rm -rf conftest* confdefs.h
506 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
507 echo > confdefs.h
508
509 # A filename unique to this package, relative to the directory that
510 # configure is in, which we can look for to find out if srcdir is correct.
511 ac_unique_file=src/ios.cc
512
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515   ac_srcdir_defaulted=yes
516   # Try the directory containing this script, then its parent.
517   ac_prog=$0
518   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520   srcdir=$ac_confdir
521   if test ! -r $srcdir/$ac_unique_file; then
522     srcdir=..
523   fi
524 else
525   ac_srcdir_defaulted=no
526 fi
527 if test ! -r $srcdir/$ac_unique_file; then
528   if test "$ac_srcdir_defaulted" = yes; then
529     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
530   else
531     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
532   fi
533 fi
534 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
535
536 # Prefer explicitly selected file to automatically selected ones.
537 if test -z "$CONFIG_SITE"; then
538   if test "x$prefix" != xNONE; then
539     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
540   else
541     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
542   fi
543 fi
544 for ac_site_file in $CONFIG_SITE; do
545   if test -r "$ac_site_file"; then
546     echo "loading site script $ac_site_file"
547     . "$ac_site_file"
548   fi
549 done
550
551 if test -r "$cache_file"; then
552   echo "loading cache $cache_file"
553   . $cache_file
554 else
555   echo "creating cache $cache_file"
556   > $cache_file
557 fi
558
559 ac_ext=c
560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561 ac_cpp='$CPP $CPPFLAGS'
562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564 cross_compiling=$ac_cv_prog_cc_cross
565
566 ac_exeext=
567 ac_objext=o
568 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
569   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
570   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
571     ac_n= ac_c='
572 ' ac_t='        '
573   else
574     ac_n=-n ac_c= ac_t=
575   fi
576 else
577   ac_n= ac_c='\c' ac_t=
578 fi
579
580
581
582 # This works around the fact that libtool configuration may change LD
583 # for this particular configuration, but some shells, instead of
584 # keeping the changes in LD private, export them just because LD is
585 # exported.  Only used at the end of this file.
586 ORIGINAL_LD_FOR_MULTILIBS=$LD
587
588 PACKAGE=libstdc++
589
590 # For libtool versioning info, format is CURRENT:REVISION:AGE
591 libtool_VERSION=5:1:0
592
593
594
595       # Check whether --enable-multilib or --disable-multilib was given.
596 if test "${enable_multilib+set}" = set; then
597   enableval="$enable_multilib"
598   case "${enableval}" in
599     yes) multilib=yes ;;
600     no)  multilib=no ;;
601     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
602    esac
603 else
604   multilib=yes
605 fi
606
607   # When building with srcdir == objdir, links to the source files will
608   # be created in directories within the target_subdir.  We have to
609   # adjust toplevel_srcdir accordingly, so that configure finds
610   # install-sh and other auxiliary files that live in the top-level
611   # source directory.
612   if test "${srcdir}" = "."; then
613     if test -z "${with_target_subdir}"; then
614       toprel=".."
615     else
616       if test "${with_target_subdir}" != "."; then
617         toprel="${with_multisrctop}../.."
618       else
619         toprel="${with_multisrctop}.."
620       fi
621     fi
622   else
623     toprel=".."
624   fi
625   ac_aux_dir=
626 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
627   if test -f $ac_dir/install-sh; then
628     ac_aux_dir=$ac_dir
629     ac_install_sh="$ac_aux_dir/install-sh -c"
630     break
631   elif test -f $ac_dir/install.sh; then
632     ac_aux_dir=$ac_dir
633     ac_install_sh="$ac_aux_dir/install.sh -c"
634     break
635   fi
636 done
637 if test -z "$ac_aux_dir"; then
638   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
639 fi
640 ac_config_guess=$ac_aux_dir/config.guess
641 ac_config_sub=$ac_aux_dir/config.sub
642 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
643
644   toplevel_srcdir=\${top_srcdir}/$toprel
645   
646
647
648 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
649 #
650 # You will slowly go insane if you do not grok the following fact:  when
651 # building v3 as part of the compiler, the top-level /target/ becomes the
652 # library's /host/.  `configure' then causes --target to default to --host,
653 # exactly like any other package using autoconf.  Therefore, 'target' and
654 # 'host' will always be the same.  This makes sense both for native and
655 # cross compilers, just think about it for a little while.  :-)
656 #
657 # Also, if v3 is being configured as part of a cross compiler, the top-level
658 # configure script will pass the "real" host as $with_cross_host.
659 #
660 # AC 2.5x sets target_alias iff the user specified --target, but we use it
661 # everywhere, so we set it here just to be sure.  In AC 2.13
662 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
663
664 # Do some error checking and defaulting for the host and target type.
665 # The inputs are:
666 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
667 #
668 # The rules are:
669 # 1. You are not allowed to specify --host, --target, and nonopt at the
670 #    same time.
671 # 2. Host defaults to nonopt.
672 # 3. If nonopt is not specified, then host defaults to the current host,
673 #    as determined by config.guess.
674 # 4. Target and build default to nonopt.
675 # 5. If nonopt is not specified, then target and build default to host.
676
677 # The aliases save the names the user supplied, while $host etc.
678 # will get canonicalized.
679 case $host---$target---$nonopt in
680 NONE---*---* | *---NONE---* | *---*---NONE) ;;
681 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
682 esac
683
684
685 # Make sure we can run config.sub.
686 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
687 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
688 fi
689
690 echo $ac_n "checking host system type""... $ac_c" 1>&6
691 echo "configure:692: checking host system type" >&5
692
693 host_alias=$host
694 case "$host_alias" in
695 NONE)
696   case $nonopt in
697   NONE)
698     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
699     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
700     fi ;;
701   *) host_alias=$nonopt ;;
702   esac ;;
703 esac
704
705 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
706 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
707 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
708 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
709 echo "$ac_t""$host" 1>&6
710
711 echo $ac_n "checking target system type""... $ac_c" 1>&6
712 echo "configure:713: checking target system type" >&5
713
714 target_alias=$target
715 case "$target_alias" in
716 NONE)
717   case $nonopt in
718   NONE) target_alias=$host_alias ;;
719   *) target_alias=$nonopt ;;
720   esac ;;
721 esac
722
723 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
724 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
725 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
726 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
727 echo "$ac_t""$target" 1>&6
728
729 echo $ac_n "checking build system type""... $ac_c" 1>&6
730 echo "configure:731: checking build system type" >&5
731
732 build_alias=$build
733 case "$build_alias" in
734 NONE)
735   case $nonopt in
736   NONE) build_alias=$host_alias ;;
737   *) build_alias=$nonopt ;;
738   esac ;;
739 esac
740
741 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
742 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
743 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
744 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
745 echo "$ac_t""$build" 1>&6
746
747 test "$host_alias" != "$target_alias" &&
748   test "$program_prefix$program_suffix$program_transform_name" = \
749     NONENONEs,x,x, &&
750   program_prefix=${target_alias}-
751
752 target_alias=${target_alias-$target}
753
754
755 # Runs configure.target, finds CC, CXX and assorted other critical bits.
756 # Must run this before the GLIBCPP_ENABLE_* macros below.
757 if test $host != $build; then
758   ac_tool_prefix=${host_alias}-
759 else
760   ac_tool_prefix=
761 fi
762
763 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
764 echo "configure:765: checking for Cygwin environment" >&5
765 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
766   echo $ac_n "(cached) $ac_c" 1>&6
767 else
768   cat > conftest.$ac_ext <<EOF
769 #line 770 "configure"
770 #include "confdefs.h"
771
772 int main() {
773
774 #ifndef __CYGWIN__
775 #define __CYGWIN__ __CYGWIN32__
776 #endif
777 return __CYGWIN__;
778 ; return 0; }
779 EOF
780 if { (eval echo configure:781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
781   rm -rf conftest*
782   ac_cv_cygwin=yes
783 else
784   echo "configure: failed program was:" >&5
785   cat conftest.$ac_ext >&5
786   rm -rf conftest*
787   ac_cv_cygwin=no
788 fi
789 rm -f conftest*
790 rm -f conftest*
791 fi
792
793 echo "$ac_t""$ac_cv_cygwin" 1>&6
794 CYGWIN=
795 test "$ac_cv_cygwin" = yes && CYGWIN=yes
796 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
797 echo "configure:798: checking for mingw32 environment" >&5
798 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
799   echo $ac_n "(cached) $ac_c" 1>&6
800 else
801   cat > conftest.$ac_ext <<EOF
802 #line 803 "configure"
803 #include "confdefs.h"
804
805 int main() {
806 return __MINGW32__;
807 ; return 0; }
808 EOF
809 if { (eval echo configure:810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
810   rm -rf conftest*
811   ac_cv_mingw32=yes
812 else
813   echo "configure: failed program was:" >&5
814   cat conftest.$ac_ext >&5
815   rm -rf conftest*
816   ac_cv_mingw32=no
817 fi
818 rm -f conftest*
819 rm -f conftest*
820 fi
821
822 echo "$ac_t""$ac_cv_mingw32" 1>&6
823 MINGW32=
824 test "$ac_cv_mingw32" = yes && MINGW32=yes
825
826   # Export build and source directories.
827   # These need to be absolute paths, yet at the same time need to
828   # canonicalize only relative paths, because then amd will not unmount
829   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
830   glibcpp_builddir=`${PWDCMD-pwd}`
831   case $srcdir in
832   \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
833   *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
834   esac
835   
836   
837
838     
839
840   for ac_prog in gawk mawk nawk awk
841 do
842 # Extract the first word of "$ac_prog", so it can be a program name with args.
843 set dummy $ac_prog; ac_word=$2
844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
845 echo "configure:846: checking for $ac_word" >&5
846 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
847   echo $ac_n "(cached) $ac_c" 1>&6
848 else
849   if test -n "$AWK"; then
850   ac_cv_prog_AWK="$AWK" # Let the user override the test.
851 else
852   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
853   ac_dummy="$PATH"
854   for ac_dir in $ac_dummy; do
855     test -z "$ac_dir" && ac_dir=.
856     if test -f $ac_dir/$ac_word; then
857       ac_cv_prog_AWK="$ac_prog"
858       break
859     fi
860   done
861   IFS="$ac_save_ifs"
862 fi
863 fi
864 AWK="$ac_cv_prog_AWK"
865 if test -n "$AWK"; then
866   echo "$ac_t""$AWK" 1>&6
867 else
868   echo "$ac_t""no" 1>&6
869 fi
870
871 test -n "$AWK" && break
872 done
873
874   # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.5x, can also
875   # be 'cp -p' if linking isn't available.  Uncomment the next line to
876   # force a particular method.
877   #ac_cv_prog_LN_S='cp -p'
878   echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
879 echo "configure:880: checking whether ln -s works" >&5
880 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
881   echo $ac_n "(cached) $ac_c" 1>&6
882 else
883   rm -f conftestdata
884 if ln -s X conftestdata 2>/dev/null
885 then
886   rm -f conftestdata
887   ac_cv_prog_LN_S="ln -s"
888 else
889   ac_cv_prog_LN_S=ln
890 fi
891 fi
892 LN_S="$ac_cv_prog_LN_S"
893 if test "$ac_cv_prog_LN_S" = "ln -s"; then
894   echo "$ac_t""yes" 1>&6
895 else
896   echo "$ac_t""no" 1>&6
897 fi
898
899
900   # We use these options to decide which functions to include.
901   # Check whether --with-target-subdir or --without-target-subdir was given.
902 if test "${with_target_subdir+set}" = set; then
903   withval="$with_target_subdir"
904   :
905 fi
906
907   # Check whether --with-cross-host or --without-cross-host was given.
908 if test "${with_cross_host+set}" = set; then
909   withval="$with_cross_host"
910   :
911 fi
912
913
914   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
915   
916
917   # Never versions of autoconf add an underscore to these functions.
918   # Prevent future problems ...
919   
920   
921   
922   
923
924   # AC_PROG_CC
925   # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
926   # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
927   # are probably using a cross compiler, which will not be able to fully
928   # link an executable.  This is addressed in later versions of autoconf.
929
930   
931
932       
933   # Extract the first word of "gcc", so it can be a program name with args.
934 set dummy gcc; ac_word=$2
935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
936 echo "configure:937: checking for $ac_word" >&5
937 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
938   echo $ac_n "(cached) $ac_c" 1>&6
939 else
940   if test -n "$CC"; then
941   ac_cv_prog_CC="$CC" # Let the user override the test.
942 else
943   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
944   ac_dummy="$PATH"
945   for ac_dir in $ac_dummy; do
946     test -z "$ac_dir" && ac_dir=.
947     if test -f $ac_dir/$ac_word; then
948       ac_cv_prog_CC="gcc"
949       break
950     fi
951   done
952   IFS="$ac_save_ifs"
953 fi
954 fi
955 CC="$ac_cv_prog_CC"
956 if test -n "$CC"; then
957   echo "$ac_t""$CC" 1>&6
958 else
959   echo "$ac_t""no" 1>&6
960 fi
961
962   if test -z "$CC"; then
963     # Extract the first word of "cc", so it can be a program name with args.
964 set dummy cc; ac_word=$2
965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
966 echo "configure:967: checking for $ac_word" >&5
967 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
968   echo $ac_n "(cached) $ac_c" 1>&6
969 else
970   if test -n "$CC"; then
971   ac_cv_prog_CC="$CC" # Let the user override the test.
972 else
973   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
974   ac_prog_rejected=no
975   ac_dummy="$PATH"
976   for ac_dir in $ac_dummy; do
977     test -z "$ac_dir" && ac_dir=.
978     if test -f $ac_dir/$ac_word; then
979       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
980         ac_prog_rejected=yes
981         continue
982       fi
983       ac_cv_prog_CC="cc"
984       break
985     fi
986   done
987   IFS="$ac_save_ifs"
988 if test $ac_prog_rejected = yes; then
989   # We found a bogon in the path, so make sure we never use it.
990   set dummy $ac_cv_prog_CC
991   shift
992   if test $# -gt 0; then
993     # We chose a different compiler from the bogus one.
994     # However, it has the same basename, so the bogon will be chosen
995     # first if we set CC to just the basename; use the full file name.
996     shift
997     set dummy "$ac_dir/$ac_word" "$@"
998     shift
999     ac_cv_prog_CC="$@"
1000   fi
1001 fi
1002 fi
1003 fi
1004 CC="$ac_cv_prog_CC"
1005 if test -n "$CC"; then
1006   echo "$ac_t""$CC" 1>&6
1007 else
1008   echo "$ac_t""no" 1>&6
1009 fi
1010
1011     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1012   fi
1013
1014   echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1015 echo "configure:1016: checking whether we are using GNU C" >&5
1016 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1017   echo $ac_n "(cached) $ac_c" 1>&6
1018 else
1019   cat > conftest.c <<EOF
1020 #ifdef __GNUC__
1021   yes;
1022 #endif
1023 EOF
1024 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1025   ac_cv_prog_gcc=yes
1026 else
1027   ac_cv_prog_gcc=no
1028 fi
1029 fi
1030
1031 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1032
1033   if test $ac_cv_prog_gcc = yes; then
1034     GCC=yes
1035           ac_test_CFLAGS="${CFLAGS+set}"
1036     ac_save_CFLAGS="$CFLAGS"
1037     CFLAGS=
1038     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1039 echo "configure:1040: checking whether ${CC-cc} accepts -g" >&5
1040 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1041   echo $ac_n "(cached) $ac_c" 1>&6
1042 else
1043   echo 'void f(){}' > conftest.c
1044 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1045   ac_cv_prog_cc_g=yes
1046 else
1047   ac_cv_prog_cc_g=no
1048 fi
1049 rm -f conftest*
1050
1051 fi
1052
1053 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1054     if test "$ac_test_CFLAGS" = set; then
1055       CFLAGS="$ac_save_CFLAGS"
1056     elif test $ac_cv_prog_cc_g = yes; then
1057       CFLAGS="-g -O2"
1058     else
1059       CFLAGS="-O2"
1060     fi
1061   else
1062     GCC=
1063     test "${CFLAGS+set}" = set || CFLAGS="-g"
1064   fi
1065   
1066
1067   # Likewise for AC_PROG_CXX.  We can't just call it directly because g++
1068   # will try to link in libstdc++.
1069   
1070
1071       
1072   # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1073   # flags that come in CXX while configuring libstdc++.  They're different
1074   # from those used for all other target libraries.  If CXX is set in
1075   # the environment, respect that here.
1076   glibcpp_CXX=$CXX
1077   for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1078 do
1079 # Extract the first word of "$ac_prog", so it can be a program name with args.
1080 set dummy $ac_prog; ac_word=$2
1081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1082 echo "configure:1083: checking for $ac_word" >&5
1083 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1084   echo $ac_n "(cached) $ac_c" 1>&6
1085 else
1086   if test -n "$glibcpp_CXX"; then
1087   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1088 else
1089   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1090   ac_dummy="$PATH"
1091   for ac_dir in $ac_dummy; do
1092     test -z "$ac_dir" && ac_dir=.
1093     if test -f $ac_dir/$ac_word; then
1094       ac_cv_prog_glibcpp_CXX="$ac_prog"
1095       break
1096     fi
1097   done
1098   IFS="$ac_save_ifs"
1099 fi
1100 fi
1101 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1102 if test -n "$glibcpp_CXX"; then
1103   echo "$ac_t""$glibcpp_CXX" 1>&6
1104 else
1105   echo "$ac_t""no" 1>&6
1106 fi
1107
1108 test -n "$glibcpp_CXX" && break
1109 done
1110 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1111
1112   
1113   CXX=$glibcpp_CXX
1114   test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1115
1116   echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1117 echo "configure:1118: checking whether we are using GNU C++" >&5
1118 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1119   echo $ac_n "(cached) $ac_c" 1>&6
1120 else
1121   cat > conftest.C <<EOF
1122 #ifdef __GNUC__
1123   yes;
1124 #endif
1125 EOF
1126 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1127   ac_cv_prog_gxx=yes
1128 else
1129   ac_cv_prog_gxx=no
1130 fi
1131 fi
1132
1133 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1134
1135   if test $ac_cv_prog_gxx = yes; then
1136     GXX=yes
1137                 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1138     ac_save_CXXFLAGS="$CXXFLAGS"
1139     CXXFLAGS=
1140     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1141 echo "configure:1142: checking whether ${CXX-g++} accepts -g" >&5
1142 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1143   echo $ac_n "(cached) $ac_c" 1>&6
1144 else
1145   echo 'void f(){}' > conftest.cc
1146 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1147   ac_cv_prog_cxx_g=yes
1148 else
1149   ac_cv_prog_cxx_g=no
1150 fi
1151 rm -f conftest*
1152
1153 fi
1154
1155 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1156     if test "$ac_test_CXXFLAGS" = set; then
1157       CXXFLAGS="$ac_save_CXXFLAGS"
1158     elif test $ac_cv_prog_cxx_g = yes; then
1159       CXXFLAGS="-g -O2"
1160     else
1161       CXXFLAGS="-O2"
1162     fi
1163   else
1164     GXX=
1165     test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1166   fi
1167   
1168
1169   # For directory versioning (e.g., headers) and other variables.
1170   echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1171 echo "configure:1172: checking for GCC version number" >&5
1172   gcc_version=`$glibcpp_CXX -dumpversion`
1173   echo "$ac_t""$gcc_version" 1>&6
1174
1175   # For some reason, gettext needs this.
1176   
1177         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1178 echo "configure:1179: checking for strerror in -lcposix" >&5
1179 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1181   echo $ac_n "(cached) $ac_c" 1>&6
1182 else
1183   ac_save_LIBS="$LIBS"
1184 LIBS="-lcposix  $LIBS"
1185 cat > conftest.$ac_ext <<EOF
1186 #line 1187 "configure"
1187 #include "confdefs.h"
1188 /* Override any gcc2 internal prototype to avoid an error.  */
1189 /* We use char because int might match the return type of a gcc2
1190     builtin and then its argument prototype would still apply.  */
1191 char strerror();
1192
1193 int main() {
1194 strerror()
1195 ; return 0; }
1196 EOF
1197 if { (eval echo configure:1198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1198   rm -rf conftest*
1199   eval "ac_cv_lib_$ac_lib_var=yes"
1200 else
1201   echo "configure: failed program was:" >&5
1202   cat conftest.$ac_ext >&5
1203   rm -rf conftest*
1204   eval "ac_cv_lib_$ac_lib_var=no"
1205 fi
1206 rm -f conftest*
1207 LIBS="$ac_save_LIBS"
1208
1209 fi
1210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1211   echo "$ac_t""yes" 1>&6
1212   LIBS="$LIBS -lcposix"
1213 else
1214   echo "$ac_t""no" 1>&6
1215 fi
1216
1217   
1218
1219
1220   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1221 set dummy ${ac_tool_prefix}as; ac_word=$2
1222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1223 echo "configure:1224: checking for $ac_word" >&5
1224 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1225   echo $ac_n "(cached) $ac_c" 1>&6
1226 else
1227   if test -n "$AS"; then
1228   ac_cv_prog_AS="$AS" # Let the user override the test.
1229 else
1230   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1231   ac_dummy="$PATH"
1232   for ac_dir in $ac_dummy; do
1233     test -z "$ac_dir" && ac_dir=.
1234     if test -f $ac_dir/$ac_word; then
1235       ac_cv_prog_AS="${ac_tool_prefix}as"
1236       break
1237     fi
1238   done
1239   IFS="$ac_save_ifs"
1240   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1241 fi
1242 fi
1243 AS="$ac_cv_prog_AS"
1244 if test -n "$AS"; then
1245   echo "$ac_t""$AS" 1>&6
1246 else
1247   echo "$ac_t""no" 1>&6
1248 fi
1249
1250
1251
1252   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1253 set dummy ${ac_tool_prefix}ar; ac_word=$2
1254 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1255 echo "configure:1256: checking for $ac_word" >&5
1256 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1257   echo $ac_n "(cached) $ac_c" 1>&6
1258 else
1259   if test -n "$AR"; then
1260   ac_cv_prog_AR="$AR" # Let the user override the test.
1261 else
1262   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1263   ac_dummy="$PATH"
1264   for ac_dir in $ac_dummy; do
1265     test -z "$ac_dir" && ac_dir=.
1266     if test -f $ac_dir/$ac_word; then
1267       ac_cv_prog_AR="${ac_tool_prefix}ar"
1268       break
1269     fi
1270   done
1271   IFS="$ac_save_ifs"
1272   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1273 fi
1274 fi
1275 AR="$ac_cv_prog_AR"
1276 if test -n "$AR"; then
1277   echo "$ac_t""$AR" 1>&6
1278 else
1279   echo "$ac_t""no" 1>&6
1280 fi
1281
1282
1283
1284   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1285 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1286 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1287 echo "configure:1288: checking for $ac_word" >&5
1288 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1289   echo $ac_n "(cached) $ac_c" 1>&6
1290 else
1291   if test -n "$RANLIB"; then
1292   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1293 else
1294   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1295   ac_dummy="$PATH"
1296   for ac_dir in $ac_dummy; do
1297     test -z "$ac_dir" && ac_dir=.
1298     if test -f $ac_dir/$ac_word; then
1299       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1300       break
1301     fi
1302   done
1303   IFS="$ac_save_ifs"
1304 fi
1305 fi
1306 RANLIB="$ac_cv_prog_RANLIB"
1307 if test -n "$RANLIB"; then
1308   echo "$ac_t""$RANLIB" 1>&6
1309 else
1310   echo "$ac_t""no" 1>&6
1311 fi
1312
1313
1314 if test -z "$ac_cv_prog_RANLIB"; then
1315 if test -n "$ac_tool_prefix"; then
1316   # Extract the first word of "ranlib", so it can be a program name with args.
1317 set dummy ranlib; ac_word=$2
1318 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1319 echo "configure:1320: checking for $ac_word" >&5
1320 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1321   echo $ac_n "(cached) $ac_c" 1>&6
1322 else
1323   if test -n "$RANLIB"; then
1324   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1325 else
1326   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1327   ac_dummy="$PATH"
1328   for ac_dir in $ac_dummy; do
1329     test -z "$ac_dir" && ac_dir=.
1330     if test -f $ac_dir/$ac_word; then
1331       ac_cv_prog_RANLIB="ranlib"
1332       break
1333     fi
1334   done
1335   IFS="$ac_save_ifs"
1336   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1337 fi
1338 fi
1339 RANLIB="$ac_cv_prog_RANLIB"
1340 if test -n "$RANLIB"; then
1341   echo "$ac_t""$RANLIB" 1>&6
1342 else
1343   echo "$ac_t""no" 1>&6
1344 fi
1345
1346 else
1347   RANLIB="ranlib-not-found-in-path-error"
1348 fi
1349 fi
1350
1351   # Find a good install program.  We prefer a C program (faster),
1352 # so one script is as good as another.  But avoid the broken or
1353 # incompatible versions:
1354 # SysV /etc/install, /usr/sbin/install
1355 # SunOS /usr/etc/install
1356 # IRIX /sbin/install
1357 # AIX /bin/install
1358 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1359 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1360 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1361 # ./install, which can be erroneously created by make from ./install.sh.
1362 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1363 echo "configure:1364: checking for a BSD compatible install" >&5
1364 if test -z "$INSTALL"; then
1365 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1366   echo $ac_n "(cached) $ac_c" 1>&6
1367 else
1368     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1369   for ac_dir in $PATH; do
1370     # Account for people who put trailing slashes in PATH elements.
1371     case "$ac_dir/" in
1372     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1373     *)
1374       # OSF1 and SCO ODT 3.0 have their own names for install.
1375       # Don't use installbsd from OSF since it installs stuff as root
1376       # by default.
1377       for ac_prog in ginstall scoinst install; do
1378         if test -f $ac_dir/$ac_prog; then
1379           if test $ac_prog = install &&
1380             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1381             # AIX install.  It has an incompatible calling convention.
1382             :
1383           else
1384             ac_cv_path_install="$ac_dir/$ac_prog -c"
1385             break 2
1386           fi
1387         fi
1388       done
1389       ;;
1390     esac
1391   done
1392   IFS="$ac_save_IFS"
1393
1394 fi
1395   if test "${ac_cv_path_install+set}" = set; then
1396     INSTALL="$ac_cv_path_install"
1397   else
1398     # As a last resort, use the slow shell script.  We don't cache a
1399     # path for INSTALL within a source directory, because that will
1400     # break other packages using the cache if that directory is
1401     # removed, or if the path is relative.
1402     INSTALL="$ac_install_sh"
1403   fi
1404 fi
1405 echo "$ac_t""$INSTALL" 1>&6
1406
1407 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1408 # It thinks the first close brace ends the variable substitution.
1409 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1410
1411 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1412
1413 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1414
1415
1416   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1417 echo "configure:1418: checking whether to enable maintainer-specific portions of Makefiles" >&5
1418     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1419 if test "${enable_maintainer_mode+set}" = set; then
1420   enableval="$enable_maintainer_mode"
1421   USE_MAINTAINER_MODE=$enableval
1422 else
1423   USE_MAINTAINER_MODE=no
1424 fi
1425
1426   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1427   
1428
1429 if test $USE_MAINTAINER_MODE = yes; then
1430   MAINTAINER_MODE_TRUE=
1431   MAINTAINER_MODE_FALSE='#'
1432 else
1433   MAINTAINER_MODE_TRUE='#'
1434   MAINTAINER_MODE_FALSE=
1435 fi
1436   MAINT=$MAINTAINER_MODE_TRUE
1437   
1438
1439
1440   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1441   # at least currently, we never actually build a program, so we never
1442   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1443   # fails, because we are probably configuring with a cross compiler
1444   # which can't create executables.  So we include AC_EXEEXT to keep
1445   # automake happy, but we don't execute it, since we don't care about
1446   # the result.
1447   if false; then
1448     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1449     # to nothing, so nothing would remain between `then' and `fi' if it
1450     # were not for the `:' below.
1451     :
1452     
1453
1454 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1455 echo "configure:1456: checking for executable suffix" >&5
1456 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1457   echo $ac_n "(cached) $ac_c" 1>&6
1458 else
1459   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1460   ac_cv_exeext=.exe
1461 else
1462   rm -f conftest*
1463   echo 'int main () { return 0; }' > conftest.$ac_ext
1464   ac_cv_exeext=
1465   if { (eval echo configure:1466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1466     for file in conftest.*; do
1467       case $file in
1468       *.c | *.o | *.obj) ;;
1469       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1470       esac
1471     done
1472   else
1473     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1474   fi
1475   rm -f conftest*
1476   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1477 fi
1478 fi
1479
1480 EXEEXT=""
1481 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1482 echo "$ac_t""${ac_cv_exeext}" 1>&6
1483 ac_exeext=$EXEEXT
1484
1485   fi
1486
1487   case ${glibcpp_basedir} in
1488     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1489     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1490   esac
1491
1492   # Find platform-specific directories containing configuration info.  In
1493   # addition to possibly modifying the same flags, it also sets up symlinks.
1494   
1495     . ${glibcpp_basedir}/configure.target
1496     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1497     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1498
1499
1500
1501 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1502 echo "configure:1503: checking whether build environment is sane" >&5
1503 # Just in case
1504 sleep 1
1505 echo timestamp > conftestfile
1506 # Do `set' in a subshell so we don't clobber the current shell's
1507 # arguments.  Must try -L first in case configure is actually a
1508 # symlink; some systems play weird games with the mod time of symlinks
1509 # (eg FreeBSD returns the mod time of the symlink's containing
1510 # directory).
1511 if (
1512    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1513    if test "$*" = "X"; then
1514       # -L didn't work.
1515       set X `ls -t $srcdir/configure conftestfile`
1516    fi
1517    if test "$*" != "X $srcdir/configure conftestfile" \
1518       && test "$*" != "X conftestfile $srcdir/configure"; then
1519
1520       # If neither matched, then we have a broken ls.  This can happen
1521       # if, for instance, CONFIG_SHELL is bash and it inherits a
1522       # broken ls alias from the environment.  This has actually
1523       # happened.  Such a system could not be considered "sane".
1524       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
1525 alias in your environment" 1>&2; exit 1; }
1526    fi
1527
1528    test "$2" = conftestfile
1529    )
1530 then
1531    # Ok.
1532    :
1533 else
1534    { echo "configure: error: newly created file is older than distributed files!
1535 Check your system clock" 1>&2; exit 1; }
1536 fi
1537 rm -f conftest*
1538 echo "$ac_t""yes" 1>&6
1539 if test "$program_transform_name" = s,x,x,; then
1540   program_transform_name=
1541 else
1542   # Double any \ or $.  echo might interpret backslashes.
1543   cat <<\EOF_SED > conftestsed
1544 s,\\,\\\\,g; s,\$,$$,g
1545 EOF_SED
1546   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1547   rm -f conftestsed
1548 fi
1549 test "$program_prefix" != NONE &&
1550   program_transform_name="s,^,${program_prefix},; $program_transform_name"
1551 # Use a double $ so make ignores it.
1552 test "$program_suffix" != NONE &&
1553   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1554
1555 # sed with no file args requires a program.
1556 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1557
1558 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1559 echo "configure:1560: checking whether ${MAKE-make} sets \${MAKE}" >&5
1560 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1561 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1562   echo $ac_n "(cached) $ac_c" 1>&6
1563 else
1564   cat > conftestmake <<\EOF
1565 all:
1566         @echo 'ac_maketemp="${MAKE}"'
1567 EOF
1568 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1569 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1570 if test -n "$ac_maketemp"; then
1571   eval ac_cv_prog_make_${ac_make}_set=yes
1572 else
1573   eval ac_cv_prog_make_${ac_make}_set=no
1574 fi
1575 rm -f conftestmake
1576 fi
1577 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1578   echo "$ac_t""yes" 1>&6
1579   SET_MAKE=
1580 else
1581   echo "$ac_t""no" 1>&6
1582   SET_MAKE="MAKE=${MAKE-make}"
1583 fi
1584
1585
1586 PACKAGE=$PACKAGE
1587
1588 VERSION=$gcc_version
1589
1590 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1591   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1592 fi
1593 cat >> confdefs.h <<EOF
1594 #define PACKAGE "$PACKAGE"
1595 EOF
1596
1597 cat >> confdefs.h <<EOF
1598 #define VERSION "$VERSION"
1599 EOF
1600
1601
1602
1603 missing_dir=`cd $ac_aux_dir && pwd`
1604 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1605 echo "configure:1606: checking for working aclocal" >&5
1606 # Run test in a subshell; some versions of sh will print an error if
1607 # an executable is not found, even if stderr is redirected.
1608 # Redirect stdin to placate older versions of autoconf.  Sigh.
1609 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1610    ACLOCAL=aclocal
1611    echo "$ac_t""found" 1>&6
1612 else
1613    ACLOCAL="$missing_dir/missing aclocal"
1614    echo "$ac_t""missing" 1>&6
1615 fi
1616
1617 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1618 echo "configure:1619: checking for working autoconf" >&5
1619 # Run test in a subshell; some versions of sh will print an error if
1620 # an executable is not found, even if stderr is redirected.
1621 # Redirect stdin to placate older versions of autoconf.  Sigh.
1622 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1623    AUTOCONF=autoconf
1624    echo "$ac_t""found" 1>&6
1625 else
1626    AUTOCONF="$missing_dir/missing autoconf"
1627    echo "$ac_t""missing" 1>&6
1628 fi
1629
1630 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1631 echo "configure:1632: checking for working automake" >&5
1632 # Run test in a subshell; some versions of sh will print an error if
1633 # an executable is not found, even if stderr is redirected.
1634 # Redirect stdin to placate older versions of autoconf.  Sigh.
1635 if (automake --version) < /dev/null > /dev/null 2>&1; then
1636    AUTOMAKE=automake
1637    echo "$ac_t""found" 1>&6
1638 else
1639    AUTOMAKE="$missing_dir/missing automake"
1640    echo "$ac_t""missing" 1>&6
1641 fi
1642
1643 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1644 echo "configure:1645: checking for working autoheader" >&5
1645 # Run test in a subshell; some versions of sh will print an error if
1646 # an executable is not found, even if stderr is redirected.
1647 # Redirect stdin to placate older versions of autoconf.  Sigh.
1648 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1649    AUTOHEADER=autoheader
1650    echo "$ac_t""found" 1>&6
1651 else
1652    AUTOHEADER="$missing_dir/missing autoheader"
1653    echo "$ac_t""missing" 1>&6
1654 fi
1655
1656 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1657 echo "configure:1658: checking for working makeinfo" >&5
1658 # Run test in a subshell; some versions of sh will print an error if
1659 # an executable is not found, even if stderr is redirected.
1660 # Redirect stdin to placate older versions of autoconf.  Sigh.
1661 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1662    MAKEINFO=makeinfo
1663    echo "$ac_t""found" 1>&6
1664 else
1665    MAKEINFO="$missing_dir/missing makeinfo"
1666    echo "$ac_t""missing" 1>&6
1667 fi
1668
1669
1670
1671
1672
1673
1674
1675 # Check whether --enable-shared or --disable-shared was given.
1676 if test "${enable_shared+set}" = set; then
1677   enableval="$enable_shared"
1678   p=${PACKAGE-default}
1679 case $enableval in
1680 yes) enable_shared=yes ;;
1681 no) enable_shared=no ;;
1682 *)
1683   enable_shared=no
1684   # Look at the argument we got.  We use all the common list separators.
1685   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1686   for pkg in $enableval; do
1687     if test "X$pkg" = "X$p"; then
1688       enable_shared=yes
1689     fi
1690   done
1691   IFS="$ac_save_ifs"
1692   ;;
1693 esac
1694 else
1695   enable_shared=yes
1696 fi
1697
1698 # Check whether --enable-static or --disable-static was given.
1699 if test "${enable_static+set}" = set; then
1700   enableval="$enable_static"
1701   p=${PACKAGE-default}
1702 case $enableval in
1703 yes) enable_static=yes ;;
1704 no) enable_static=no ;;
1705 *)
1706   enable_static=no
1707   # Look at the argument we got.  We use all the common list separators.
1708   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1709   for pkg in $enableval; do
1710     if test "X$pkg" = "X$p"; then
1711       enable_static=yes
1712     fi
1713   done
1714   IFS="$ac_save_ifs"
1715   ;;
1716 esac
1717 else
1718   enable_static=yes
1719 fi
1720
1721 # Check whether --enable-fast-install or --disable-fast-install was given.
1722 if test "${enable_fast_install+set}" = set; then
1723   enableval="$enable_fast_install"
1724   p=${PACKAGE-default}
1725 case $enableval in
1726 yes) enable_fast_install=yes ;;
1727 no) enable_fast_install=no ;;
1728 *)
1729   enable_fast_install=no
1730   # Look at the argument we got.  We use all the common list separators.
1731   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1732   for pkg in $enableval; do
1733     if test "X$pkg" = "X$p"; then
1734       enable_fast_install=yes
1735     fi
1736   done
1737   IFS="$ac_save_ifs"
1738   ;;
1739 esac
1740 else
1741   enable_fast_install=yes
1742 fi
1743
1744 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1745 if test "${with_gnu_ld+set}" = set; then
1746   withval="$with_gnu_ld"
1747   test "$withval" = no || with_gnu_ld=yes
1748 else
1749   with_gnu_ld=no
1750 fi
1751
1752 ac_prog=ld
1753 if test "$GCC" = yes; then
1754   # Check if gcc -print-prog-name=ld gives a path.
1755   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1756 echo "configure:1757: checking for ld used by GCC" >&5
1757   case $host in
1758   *-*-mingw*)
1759     # gcc leaves a trailing carriage return which upsets mingw
1760     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1761   *)
1762     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1763   esac
1764   case $ac_prog in
1765     # Accept absolute paths.
1766     [\\/]* | [A-Za-z]:[\\/]*)
1767       re_direlt='/[^/][^/]*/\.\./'
1768       # Canonicalize the path of ld
1769       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1770       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1771         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1772       done
1773       test -z "$LD" && LD="$ac_prog"
1774       ;;
1775   "")
1776     # If it fails, then pretend we aren't using GCC.
1777     ac_prog=ld
1778     ;;
1779   *)
1780     # If it is relative, then search for the first ld in PATH.
1781     with_gnu_ld=unknown
1782     ;;
1783   esac
1784 elif test "$with_gnu_ld" = yes; then
1785   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1786 echo "configure:1787: checking for GNU ld" >&5
1787 else
1788   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1789 echo "configure:1790: checking for non-GNU ld" >&5
1790 fi
1791 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1792   echo $ac_n "(cached) $ac_c" 1>&6
1793 else
1794   if test -z "$LD"; then
1795   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1796   for ac_dir in $PATH; do
1797     test -z "$ac_dir" && ac_dir=.
1798     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1799       lt_cv_path_LD="$ac_dir/$ac_prog"
1800       # Check to see if the program is GNU ld.  I'd rather use --version,
1801       # but apparently some GNU ld's only accept -v.
1802       # Break only if it was the GNU/non-GNU ld that we prefer.
1803       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1804         test "$with_gnu_ld" != no && break
1805       else
1806         test "$with_gnu_ld" != yes && break
1807       fi
1808     fi
1809   done
1810   IFS="$ac_save_ifs"
1811 else
1812   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1813 fi
1814 fi
1815
1816 LD="$lt_cv_path_LD"
1817 if test -n "$LD"; then
1818   echo "$ac_t""$LD" 1>&6
1819 else
1820   echo "$ac_t""no" 1>&6
1821 fi
1822 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1823 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1824 echo "configure:1825: checking if the linker ($LD) is GNU ld" >&5
1825 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1826   echo $ac_n "(cached) $ac_c" 1>&6
1827 else
1828   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1829 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1830   lt_cv_prog_gnu_ld=yes
1831 else
1832   lt_cv_prog_gnu_ld=no
1833 fi
1834 fi
1835
1836 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1837 with_gnu_ld=$lt_cv_prog_gnu_ld
1838
1839
1840 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1841 echo "configure:1842: checking for $LD option to reload object files" >&5
1842 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1843   echo $ac_n "(cached) $ac_c" 1>&6
1844 else
1845   lt_cv_ld_reload_flag='-r'
1846 fi
1847
1848 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1849 reload_flag=$lt_cv_ld_reload_flag
1850 test -n "$reload_flag" && reload_flag=" $reload_flag"
1851
1852 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1853 echo "configure:1854: checking for BSD-compatible nm" >&5
1854 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1855   echo $ac_n "(cached) $ac_c" 1>&6
1856 else
1857   if test -n "$NM"; then
1858   # Let the user override the test.
1859   lt_cv_path_NM="$NM"
1860 else
1861   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1862   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1863     test -z "$ac_dir" && ac_dir=.
1864     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1865     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1866       # Check to see if the nm accepts a BSD-compat flag.
1867       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1868       #   nm: unknown option "B" ignored
1869       # Tru64's nm complains that /dev/null is an invalid object file
1870       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1871         lt_cv_path_NM="$tmp_nm -B"
1872         break
1873       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1874         lt_cv_path_NM="$tmp_nm -p"
1875         break
1876       else
1877         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1878         continue # so that we can try to find one that supports BSD flags
1879       fi
1880     fi
1881   done
1882   IFS="$ac_save_ifs"
1883   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1884 fi
1885 fi
1886
1887 NM="$lt_cv_path_NM"
1888 echo "$ac_t""$NM" 1>&6
1889
1890 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1891 echo "configure:1892: checking how to recognise dependant libraries" >&5
1892 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1893   echo $ac_n "(cached) $ac_c" 1>&6
1894 else
1895   lt_cv_file_magic_cmd='$MAGIC_CMD'
1896 lt_cv_file_magic_test_file=
1897 lt_cv_deplibs_check_method='unknown'
1898 # Need to set the preceding variable on all platforms that support
1899 # interlibrary dependencies.
1900 # 'none' -- dependencies not supported.
1901 # `unknown' -- same as none, but documents that we really don't know.
1902 # 'pass_all' -- all dependencies passed with no checks.
1903 # 'test_compile' -- check by making test program.
1904 # 'file_magic [regex]' -- check by looking for files in library path
1905 # which responds to the $file_magic_cmd with a given egrep regex.
1906 # If you have `file' or equivalent on your system and you're not sure
1907 # whether `pass_all' will *always* work, you probably want this one.
1908
1909 case $host_os in
1910 aix*)
1911   lt_cv_deplibs_check_method=pass_all
1912   ;;
1913
1914 beos*)
1915   lt_cv_deplibs_check_method=pass_all
1916   ;;
1917
1918 bsdi4*)
1919   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1920   lt_cv_file_magic_cmd='/usr/bin/file -L'
1921   lt_cv_file_magic_test_file=/shlib/libc.so
1922   ;;
1923
1924 cygwin* | mingw* |pw32*)
1925   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1926   lt_cv_file_magic_cmd='$OBJDUMP -f'
1927   ;;
1928
1929 darwin* | rhapsody*)
1930   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1931   lt_cv_file_magic_cmd='/usr/bin/file -L'
1932   case "$host_os" in
1933   rhapsody* | darwin1.012)
1934     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1935     ;;
1936   *) # Darwin 1.3 on
1937     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1938     ;;
1939   esac
1940   ;;
1941
1942 freebsd* )
1943   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1944     case $host_cpu in
1945     i*86 )
1946       # Not sure whether the presence of OpenBSD here was a mistake.
1947       # Let's accept both of them until this is cleared up.
1948       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1949       lt_cv_file_magic_cmd=/usr/bin/file
1950       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1951       ;;
1952     esac
1953   else
1954     lt_cv_deplibs_check_method=pass_all
1955   fi
1956   ;;
1957
1958 gnu*)
1959   lt_cv_deplibs_check_method=pass_all
1960   ;;
1961
1962 hpux10.20*|hpux11*)
1963   case $host_cpu in
1964   hppa*)
1965     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1966     lt_cv_file_magic_cmd=/usr/bin/file
1967     lt_cv_file_magic_test_file=/usr/lib/libc.sl
1968     ;;
1969   ia64*)
1970     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1971     lt_cv_file_magic_cmd=/usr/bin/file
1972     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1973     ;;
1974   esac
1975   ;;
1976
1977 irix5* | irix6*)
1978   case $host_os in
1979   irix5*)
1980     # this will be overridden with pass_all, but let us keep it just in case
1981     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1982     ;;
1983   *)
1984     case $LD in
1985     *-32|*"-32 ") libmagic=32-bit;;
1986     *-n32|*"-n32 ") libmagic=N32;;
1987     *-64|*"-64 ") libmagic=64-bit;;
1988     *) libmagic=never-match;;
1989     esac
1990     # this will be overridden with pass_all, but let us keep it just in case
1991     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1992     ;;
1993   esac
1994   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1995   lt_cv_deplibs_check_method=pass_all
1996   ;;
1997
1998 # This must be Linux ELF.
1999 linux-gnu*)
2000   case $host_cpu in
2001   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2002     lt_cv_deplibs_check_method=pass_all ;;
2003   *)
2004     # glibc up to 2.1.1 does not perform some relocations on ARM
2005     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2006   esac
2007   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2008   ;;
2009
2010 netbsd*)
2011   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2012     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2013   else
2014     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2015   fi
2016   ;;
2017
2018 newsos6)
2019   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2020   lt_cv_file_magic_cmd=/usr/bin/file
2021   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2022   ;;
2023
2024 osf3* | osf4* | osf5*)
2025   # this will be overridden with pass_all, but let us keep it just in case
2026   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2027   lt_cv_file_magic_test_file=/shlib/libc.so
2028   lt_cv_deplibs_check_method=pass_all
2029   ;;
2030
2031 sco3.2v5*)
2032   lt_cv_deplibs_check_method=pass_all
2033   ;;
2034
2035 solaris*)
2036   lt_cv_deplibs_check_method=pass_all
2037   lt_cv_file_magic_test_file=/lib/libc.so
2038   ;;
2039
2040 sysv5uw[78]* | sysv4*uw2*)
2041   lt_cv_deplibs_check_method=pass_all
2042   ;;
2043
2044 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2045   case $host_vendor in
2046   ncr)
2047     lt_cv_deplibs_check_method=pass_all
2048     ;;
2049   motorola)
2050     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]'
2051     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2052     ;;
2053   esac
2054   ;;
2055 esac
2056
2057 fi
2058
2059 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2060 file_magic_cmd=$lt_cv_file_magic_cmd
2061 deplibs_check_method=$lt_cv_deplibs_check_method
2062
2063 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2064 echo "configure:2065: checking for object suffix" >&5
2065 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2066   echo $ac_n "(cached) $ac_c" 1>&6
2067 else
2068   rm -f conftest*
2069 echo 'int i = 1;' > conftest.$ac_ext
2070 if { (eval echo configure:2071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2071   for ac_file in conftest.*; do
2072     case $ac_file in
2073     *.c) ;;
2074     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2075     esac
2076   done
2077 else
2078   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2079 fi
2080 rm -f conftest*
2081 fi
2082
2083 echo "$ac_t""$ac_cv_objext" 1>&6
2084 OBJEXT=$ac_cv_objext
2085 ac_objext=$ac_cv_objext
2086
2087 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2088
2089 # Only perform the check for file, if the check method requires it
2090 case $deplibs_check_method in
2091 file_magic*)
2092   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2093     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2094 echo "configure:2095: checking for ${ac_tool_prefix}file" >&5
2095 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2096   echo $ac_n "(cached) $ac_c" 1>&6
2097 else
2098   case $MAGIC_CMD in
2099   /*)
2100   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2101   ;;
2102   ?:/*)
2103   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2104   ;;
2105   *)
2106   ac_save_MAGIC_CMD="$MAGIC_CMD"
2107   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2108   ac_dummy="/usr/bin:$PATH"
2109   for ac_dir in $ac_dummy; do
2110     test -z "$ac_dir" && ac_dir=.
2111     if test -f $ac_dir/${ac_tool_prefix}file; then
2112       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2113       if test -n "$file_magic_test_file"; then
2114         case $deplibs_check_method in
2115         "file_magic "*)
2116           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2117           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2118           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2119             egrep "$file_magic_regex" > /dev/null; then
2120             :
2121           else
2122             cat <<EOF 1>&2
2123
2124 *** Warning: the command libtool uses to detect shared libraries,
2125 *** $file_magic_cmd, produces output that libtool cannot recognize.
2126 *** The result is that libtool may fail to recognize shared libraries
2127 *** as such.  This will affect the creation of libtool libraries that
2128 *** depend on shared libraries, but programs linked with such libtool
2129 *** libraries will work regardless of this problem.  Nevertheless, you
2130 *** may want to report the problem to your system manager and/or to
2131 *** bug-libtool@gnu.org
2132
2133 EOF
2134           fi ;;
2135         esac
2136       fi
2137       break
2138     fi
2139   done
2140   IFS="$ac_save_ifs"
2141   MAGIC_CMD="$ac_save_MAGIC_CMD"
2142   ;;
2143 esac
2144 fi
2145
2146 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2147 if test -n "$MAGIC_CMD"; then
2148   echo "$ac_t""$MAGIC_CMD" 1>&6
2149 else
2150   echo "$ac_t""no" 1>&6
2151 fi
2152
2153 if test -z "$lt_cv_path_MAGIC_CMD"; then
2154   if test -n "$ac_tool_prefix"; then
2155     echo $ac_n "checking for file""... $ac_c" 1>&6
2156 echo "configure:2157: checking for file" >&5
2157 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2158   echo $ac_n "(cached) $ac_c" 1>&6
2159 else
2160   case $MAGIC_CMD in
2161   /*)
2162   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2163   ;;
2164   ?:/*)
2165   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2166   ;;
2167   *)
2168   ac_save_MAGIC_CMD="$MAGIC_CMD"
2169   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2170   ac_dummy="/usr/bin:$PATH"
2171   for ac_dir in $ac_dummy; do
2172     test -z "$ac_dir" && ac_dir=.
2173     if test -f $ac_dir/file; then
2174       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2175       if test -n "$file_magic_test_file"; then
2176         case $deplibs_check_method in
2177         "file_magic "*)
2178           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2179           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2180           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2181             egrep "$file_magic_regex" > /dev/null; then
2182             :
2183           else
2184             cat <<EOF 1>&2
2185
2186 *** Warning: the command libtool uses to detect shared libraries,
2187 *** $file_magic_cmd, produces output that libtool cannot recognize.
2188 *** The result is that libtool may fail to recognize shared libraries
2189 *** as such.  This will affect the creation of libtool libraries that
2190 *** depend on shared libraries, but programs linked with such libtool
2191 *** libraries will work regardless of this problem.  Nevertheless, you
2192 *** may want to report the problem to your system manager and/or to
2193 *** bug-libtool@gnu.org
2194
2195 EOF
2196           fi ;;
2197         esac
2198       fi
2199       break
2200     fi
2201   done
2202   IFS="$ac_save_ifs"
2203   MAGIC_CMD="$ac_save_MAGIC_CMD"
2204   ;;
2205 esac
2206 fi
2207
2208 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2209 if test -n "$MAGIC_CMD"; then
2210   echo "$ac_t""$MAGIC_CMD" 1>&6
2211 else
2212   echo "$ac_t""no" 1>&6
2213 fi
2214
2215   else
2216     MAGIC_CMD=:
2217   fi
2218 fi
2219
2220   fi
2221   ;;
2222 esac
2223
2224 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2225 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2226 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2227 echo "configure:2228: checking for $ac_word" >&5
2228 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2229   echo $ac_n "(cached) $ac_c" 1>&6
2230 else
2231   if test -n "$RANLIB"; then
2232   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2233 else
2234   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2235   ac_dummy="$PATH"
2236   for ac_dir in $ac_dummy; do
2237     test -z "$ac_dir" && ac_dir=.
2238     if test -f $ac_dir/$ac_word; then
2239       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2240       break
2241     fi
2242   done
2243   IFS="$ac_save_ifs"
2244 fi
2245 fi
2246 RANLIB="$ac_cv_prog_RANLIB"
2247 if test -n "$RANLIB"; then
2248   echo "$ac_t""$RANLIB" 1>&6
2249 else
2250   echo "$ac_t""no" 1>&6
2251 fi
2252
2253
2254 if test -z "$ac_cv_prog_RANLIB"; then
2255 if test -n "$ac_tool_prefix"; then
2256   # Extract the first word of "ranlib", so it can be a program name with args.
2257 set dummy ranlib; ac_word=$2
2258 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2259 echo "configure:2260: checking for $ac_word" >&5
2260 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2261   echo $ac_n "(cached) $ac_c" 1>&6
2262 else
2263   if test -n "$RANLIB"; then
2264   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2265 else
2266   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2267   ac_dummy="$PATH"
2268   for ac_dir in $ac_dummy; do
2269     test -z "$ac_dir" && ac_dir=.
2270     if test -f $ac_dir/$ac_word; then
2271       ac_cv_prog_RANLIB="ranlib"
2272       break
2273     fi
2274   done
2275   IFS="$ac_save_ifs"
2276   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2277 fi
2278 fi
2279 RANLIB="$ac_cv_prog_RANLIB"
2280 if test -n "$RANLIB"; then
2281   echo "$ac_t""$RANLIB" 1>&6
2282 else
2283   echo "$ac_t""no" 1>&6
2284 fi
2285
2286 else
2287   RANLIB=":"
2288 fi
2289 fi
2290
2291 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2292 set dummy ${ac_tool_prefix}strip; ac_word=$2
2293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2294 echo "configure:2295: checking for $ac_word" >&5
2295 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2296   echo $ac_n "(cached) $ac_c" 1>&6
2297 else
2298   if test -n "$STRIP"; then
2299   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2300 else
2301   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2302   ac_dummy="$PATH"
2303   for ac_dir in $ac_dummy; do
2304     test -z "$ac_dir" && ac_dir=.
2305     if test -f $ac_dir/$ac_word; then
2306       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2307       break
2308     fi
2309   done
2310   IFS="$ac_save_ifs"
2311 fi
2312 fi
2313 STRIP="$ac_cv_prog_STRIP"
2314 if test -n "$STRIP"; then
2315   echo "$ac_t""$STRIP" 1>&6
2316 else
2317   echo "$ac_t""no" 1>&6
2318 fi
2319
2320
2321 if test -z "$ac_cv_prog_STRIP"; then
2322 if test -n "$ac_tool_prefix"; then
2323   # Extract the first word of "strip", so it can be a program name with args.
2324 set dummy strip; ac_word=$2
2325 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2326 echo "configure:2327: checking for $ac_word" >&5
2327 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2328   echo $ac_n "(cached) $ac_c" 1>&6
2329 else
2330   if test -n "$STRIP"; then
2331   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2332 else
2333   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2334   ac_dummy="$PATH"
2335   for ac_dir in $ac_dummy; do
2336     test -z "$ac_dir" && ac_dir=.
2337     if test -f $ac_dir/$ac_word; then
2338       ac_cv_prog_STRIP="strip"
2339       break
2340     fi
2341   done
2342   IFS="$ac_save_ifs"
2343   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2344 fi
2345 fi
2346 STRIP="$ac_cv_prog_STRIP"
2347 if test -n "$STRIP"; then
2348   echo "$ac_t""$STRIP" 1>&6
2349 else
2350   echo "$ac_t""no" 1>&6
2351 fi
2352
2353 else
2354   STRIP=":"
2355 fi
2356 fi
2357
2358
2359 # Check for any special flags to pass to ltconfig.
2360 libtool_flags="--cache-file=$cache_file"
2361 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2362 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2363 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2364 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2365 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2366 libtool_flags="$libtool_flags --enable-dlopen"
2367
2368 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2369 if test "${enable_libtool_lock+set}" = set; then
2370   enableval="$enable_libtool_lock"
2371   :
2372 fi
2373
2374 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2375 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2376
2377 # Check whether --with-pic or --without-pic was given.
2378 if test "${with_pic+set}" = set; then
2379   withval="$with_pic"
2380   pic_mode="$withval"
2381 else
2382   pic_mode=default
2383 fi
2384
2385 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2386 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2387
2388 # Some flags need to be propagated to the compiler or linker for good
2389 # libtool support.
2390 case $host in
2391 *-*-irix6*)
2392   # Find out which ABI we are using.
2393   echo '#line 2394 "configure"' > conftest.$ac_ext
2394   if { (eval echo configure:2395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2395     case `/usr/bin/file conftest.$ac_objext` in
2396     *32-bit*)
2397       LD="${LD-ld} -32"
2398       ;;
2399     *N32*)
2400       LD="${LD-ld} -n32"
2401       ;;
2402     *64-bit*)
2403       LD="${LD-ld} -64"
2404       ;;
2405     esac
2406   fi
2407   rm -rf conftest*
2408   ;;
2409
2410 ia64-*-hpux*)
2411   # Find out which ABI we are using.
2412   echo 'int i;' > conftest.$ac_ext
2413   if { (eval echo configure:2414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2414     case "`/usr/bin/file conftest.o`" in
2415     *ELF-32*)
2416       HPUX_IA64_MODE="32"
2417       ;;
2418     *ELF-64*)
2419       HPUX_IA64_MODE="64"
2420       ;;
2421     esac
2422   fi
2423   rm -rf conftest*
2424   ;;
2425
2426 *-*-sco3.2v5*)
2427   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2428   SAVE_CFLAGS="$CFLAGS"
2429   CFLAGS="$CFLAGS -belf"
2430   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2431 echo "configure:2432: checking whether the C compiler needs -belf" >&5
2432 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2433   echo $ac_n "(cached) $ac_c" 1>&6
2434 else
2435   
2436      ac_ext=c
2437 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2438 ac_cpp='$CPP $CPPFLAGS'
2439 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2440 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2441 cross_compiling=$ac_cv_prog_cc_cross
2442
2443      cat > conftest.$ac_ext <<EOF
2444 #line 2445 "configure"
2445 #include "confdefs.h"
2446
2447 int main() {
2448
2449 ; return 0; }
2450 EOF
2451 if { (eval echo configure:2452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2452   rm -rf conftest*
2453   lt_cv_cc_needs_belf=yes
2454 else
2455   echo "configure: failed program was:" >&5
2456   cat conftest.$ac_ext >&5
2457   rm -rf conftest*
2458   lt_cv_cc_needs_belf=no
2459 fi
2460 rm -f conftest*
2461      ac_ext=c
2462 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2463 ac_cpp='$CPP $CPPFLAGS'
2464 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2465 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2466 cross_compiling=$ac_cv_prog_cc_cross
2467
2468 fi
2469
2470 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2471   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2472     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2473     CFLAGS="$SAVE_CFLAGS"
2474   fi
2475   ;;
2476
2477
2478 esac
2479
2480 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2481 echo "configure:2482: checking how to run the C++ preprocessor" >&5
2482 if test -z "$CXXCPP"; then
2483 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2484   echo $ac_n "(cached) $ac_c" 1>&6
2485 else
2486   ac_ext=C
2487 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2488 ac_cpp='$CXXCPP $CPPFLAGS'
2489 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2490 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2491 cross_compiling=$ac_cv_prog_cxx_cross
2492   CXXCPP="${CXX-g++} -E"
2493   cat > conftest.$ac_ext <<EOF
2494 #line 2495 "configure"
2495 #include "confdefs.h"
2496 #include <stdlib.h>
2497 EOF
2498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2499 { (eval echo configure:2500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2501 if test -z "$ac_err"; then
2502   :
2503 else
2504   echo "$ac_err" >&5
2505   echo "configure: failed program was:" >&5
2506   cat conftest.$ac_ext >&5
2507   rm -rf conftest*
2508   CXXCPP=/lib/cpp
2509 fi
2510 rm -f conftest*
2511   ac_cv_prog_CXXCPP="$CXXCPP"
2512 ac_ext=c
2513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2514 ac_cpp='$CPP $CPPFLAGS'
2515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2517 cross_compiling=$ac_cv_prog_cc_cross
2518 fi
2519 fi
2520 CXXCPP="$ac_cv_prog_CXXCPP"
2521 echo "$ac_t""$CXXCPP" 1>&6
2522
2523
2524 # Save cache, so that ltconfig can load it
2525 cat > confcache <<\EOF
2526 # This file is a shell script that caches the results of configure
2527 # tests run on this system so they can be shared between configure
2528 # scripts and configure runs.  It is not useful on other systems.
2529 # If it contains results you don't want to keep, you may remove or edit it.
2530 #
2531 # By default, configure uses ./config.cache as the cache file,
2532 # creating it if it does not exist already.  You can give configure
2533 # the --cache-file=FILE option to use a different cache file; that is
2534 # what configure does when it calls configure scripts in
2535 # subdirectories, so they share the cache.
2536 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2537 # config.status only pays attention to the cache file if you give it the
2538 # --recheck option to rerun configure.
2539 #
2540 EOF
2541 # The following way of writing the cache mishandles newlines in values,
2542 # but we know of no workaround that is simple, portable, and efficient.
2543 # So, don't put newlines in cache variables' values.
2544 # Ultrix sh set writes to stderr and can't be redirected directly,
2545 # and sets the high bit in the cache file unless we assign to the vars.
2546 (set) 2>&1 |
2547   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2548   *ac_space=\ *)
2549     # `set' does not quote correctly, so add quotes (double-quote substitution
2550     # turns \\\\ into \\, and sed turns \\ into \).
2551     sed -n \
2552       -e "s/'/'\\\\''/g" \
2553       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2554     ;;
2555   *)
2556     # `set' quotes correctly as required by POSIX, so do not add quotes.
2557     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2558     ;;
2559   esac >> confcache
2560 if cmp -s $cache_file confcache; then
2561   :
2562 else
2563   if test -w $cache_file; then
2564     echo "updating cache $cache_file"
2565     cat confcache > $cache_file
2566   else
2567     echo "not updating unwritable cache $cache_file"
2568   fi
2569 fi
2570 rm -f confcache
2571
2572
2573 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2574 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2575 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2576 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2577 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2578 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2579 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2580 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2581 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2582 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2583
2584 # Reload cache, that may have been modified by ltconfig
2585 if test -r "$cache_file"; then
2586   echo "loading cache $cache_file"
2587   . $cache_file
2588 else
2589   echo "creating cache $cache_file"
2590   > $cache_file
2591 fi
2592
2593
2594 # This can be used to rebuild libtool when needed
2595 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2596
2597 # Always use our own libtool.
2598 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2599
2600 # Redirect the config.log output again, so that the ltconfig log is not
2601 # clobbered by the next message.
2602 exec 5>>./config.log
2603
2604
2605
2606 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2607 lt_save_CC="$CC"
2608 lt_save_CFLAGS="$CFLAGS"
2609 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2610 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2611 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2612 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2613 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2614 deplibs_check_method="$deplibs_check_method" \
2615 file_magic_cmd="$file_magic_cmd" \
2616 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2617 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2618 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2619 CC="$lt_save_CC"
2620 CFLAGS="$lt_save_CFLAGS"
2621
2622 # Redirect the config.log output again, so that the ltconfig log is not
2623 # clobbered by the next message.
2624 exec 5>>./config.log
2625
2626   
2627
2628   
2629          
2630          
2631
2632
2633
2634 # Check for c++ or library specific bits that don't require linking.
2635 #GLIBCPP_CHECK_COMPILER_VERSION
2636 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2637 echo "configure:2638: checking for GNU make" >&5
2638 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2639   echo $ac_n "(cached) $ac_c" 1>&6
2640 else
2641   _cv_gnu_make_command='' ;
2642           for a in "${MAKE-make}" make gmake gnumake ; do
2643                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2644                   then
2645                           _cv_gnu_make_command=$a ;
2646                           break;
2647                   fi
2648           done ;
2649   
2650 fi
2651
2652 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2653   if test  "x$_cv_gnu_make_command" != "x"  ; then
2654           ifGNUmake='' ;
2655   else
2656           ifGNUmake='#' ;
2657   fi
2658   
2659
2660
2661 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2662 # Check whether --enable-debug or --disable-debug was given.
2663 if test "${enable_debug+set}" = set; then
2664   enableval="$enable_debug"
2665   case "${enableval}" in
2666  yes) enable_debug=yes ;;
2667  no)  enable_debug=no ;;
2668  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2669  esac
2670 else
2671   enable_debug=no
2672 fi
2673
2674 case "${enable_debug}" in
2675     yes) 
2676         DEBUG_FLAGS='-O0 -ggdb3'                        
2677         ;; 
2678     no)   
2679         DEBUG_FLAGS='-g'
2680         ;;
2681 esac
2682
2683
2684 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2685 echo "configure:2686: checking how to run the C preprocessor" >&5
2686 # On Suns, sometimes $CPP names a directory.
2687 if test -n "$CPP" && test -d "$CPP"; then
2688   CPP=
2689 fi
2690 if test -z "$CPP"; then
2691 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2692   echo $ac_n "(cached) $ac_c" 1>&6
2693 else
2694     # This must be in double quotes, not single quotes, because CPP may get
2695   # substituted into the Makefile and "${CC-cc}" will confuse make.
2696   CPP="${CC-cc} -E"
2697   # On the NeXT, cc -E runs the code through the compiler's parser,
2698   # not just through cpp.
2699   cat > conftest.$ac_ext <<EOF
2700 #line 2701 "configure"
2701 #include "confdefs.h"
2702 #include <assert.h>
2703 Syntax Error
2704 EOF
2705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2706 { (eval echo configure:2707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2708 if test -z "$ac_err"; then
2709   :
2710 else
2711   echo "$ac_err" >&5
2712   echo "configure: failed program was:" >&5
2713   cat conftest.$ac_ext >&5
2714   rm -rf conftest*
2715   CPP="${CC-cc} -E -traditional-cpp"
2716   cat > conftest.$ac_ext <<EOF
2717 #line 2718 "configure"
2718 #include "confdefs.h"
2719 #include <assert.h>
2720 Syntax Error
2721 EOF
2722 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2723 { (eval echo configure:2724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2724 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2725 if test -z "$ac_err"; then
2726   :
2727 else
2728   echo "$ac_err" >&5
2729   echo "configure: failed program was:" >&5
2730   cat conftest.$ac_ext >&5
2731   rm -rf conftest*
2732   CPP="${CC-cc} -nologo -E"
2733   cat > conftest.$ac_ext <<EOF
2734 #line 2735 "configure"
2735 #include "confdefs.h"
2736 #include <assert.h>
2737 Syntax Error
2738 EOF
2739 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2740 { (eval echo configure:2741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2741 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2742 if test -z "$ac_err"; then
2743   :
2744 else
2745   echo "$ac_err" >&5
2746   echo "configure: failed program was:" >&5
2747   cat conftest.$ac_ext >&5
2748   rm -rf conftest*
2749   CPP=/lib/cpp
2750 fi
2751 rm -f conftest*
2752 fi
2753 rm -f conftest*
2754 fi
2755 rm -f conftest*
2756   ac_cv_prog_CPP="$CPP"
2757 fi
2758   CPP="$ac_cv_prog_CPP"
2759 else
2760   ac_cv_prog_CPP="$CPP"
2761 fi
2762 echo "$ac_t""$CPP" 1>&6
2763
2764
2765   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2766 echo "configure:2767: checking for cstdio to use" >&5
2767   # Check whether --enable-cstdio or --disable-cstdio was given.
2768 if test "${enable_cstdio+set}" = set; then
2769   enableval="$enable_cstdio"
2770   if test x$enable_cstdio = xno; then
2771      enable_cstdio=stdio
2772   fi
2773 else
2774   enable_cstdio=stdio
2775 fi
2776
2777
2778   enable_cstdio_flag=$enable_cstdio
2779
2780     case x${enable_cstdio_flag} in
2781     xlibio)
2782       CSTDIO_H=config/io/c_io_libio.h
2783       BASIC_FILE_H=config/io/basic_file_libio.h
2784       BASIC_FILE_CC=config/io/basic_file_libio.cc
2785       echo "$ac_t""libio" 1>&6
2786
2787       # see if we are on a system with libio native (ie, linux)
2788       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2789 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2790 echo "configure:2791: checking for libio.h" >&5
2791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2792   echo $ac_n "(cached) $ac_c" 1>&6
2793 else
2794   cat > conftest.$ac_ext <<EOF
2795 #line 2796 "configure"
2796 #include "confdefs.h"
2797 #include <libio.h>
2798 EOF
2799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2800 { (eval echo configure:2801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2802 if test -z "$ac_err"; then
2803   rm -rf conftest*
2804   eval "ac_cv_header_$ac_safe=yes"
2805 else
2806   echo "$ac_err" >&5
2807   echo "configure: failed program was:" >&5
2808   cat conftest.$ac_ext >&5
2809   rm -rf conftest*
2810   eval "ac_cv_header_$ac_safe=no"
2811 fi
2812 rm -f conftest*
2813 fi
2814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2815   echo "$ac_t""yes" 1>&6
2816   has_libio=yes
2817 else
2818   echo "$ac_t""no" 1>&6
2819 has_libio=no
2820 fi
2821
2822
2823       # Need to check and see what version of glibc is being used. If
2824       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2825       # compile most of libio for linux systems.
2826       if test x$has_libio = x"yes"; then
2827         case "$target" in
2828           *-*-linux*)
2829               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2830 echo "configure:2831: checking for glibc version >= 2.2" >&5
2831               cat > conftest.$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2834
2835             #include <features.h>
2836               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2837                     ok
2838               #endif
2839               
2840 EOF
2841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2842   egrep "ok" >/dev/null 2>&1; then
2843   rm -rf conftest*
2844   glibc_satisfactory=yes
2845 else
2846   rm -rf conftest*
2847   glibc_satisfactory=no
2848 fi
2849 rm -f conftest*
2850
2851               echo "$ac_t""$glibc_satisfactory" 1>&6
2852             ;;
2853         esac
2854
2855         # XXX at the moment, admit defeat and force the recompilation
2856         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2857         glibc_satisfactory=no        
2858
2859         if test x$glibc_satisfactory = x"yes"; then
2860            need_libio=no
2861            need_wlibio=no        
2862         else
2863            need_libio=yes
2864            # bkoz XXX need to add checks to enable this
2865            # pme XXX here's a first pass at such a check
2866            if test x$enable_c_mbchar != xno; then
2867               need_wlibio=yes
2868            else
2869               need_wlibio=no
2870            fi
2871         fi
2872
2873       else
2874          # Using libio, but <libio.h> doesn't exist on the target system. . .
2875          need_libio=yes
2876          # bkoz XXX need to add checks to enable this
2877          # pme XXX here's a first pass at such a check
2878          if test x$enable_c_mbchar != xno; then
2879              need_wlibio=yes
2880          else
2881              need_wlibio=no
2882          fi
2883       fi
2884       ;;
2885     xstdio | x | xno | xnone | xyes)
2886       # default
2887       CSTDIO_H=config/io/c_io_stdio.h
2888       BASIC_FILE_H=config/io/basic_file_stdio.h
2889       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2890       echo "$ac_t""stdio" 1>&6
2891
2892       # We're not using stdio.
2893       need_libio=no
2894       need_wlibio=no
2895       ;;
2896     *)
2897       echo "$enable_cstdio is an unknown io package" 1>&2
2898       exit 1
2899       ;;
2900   esac
2901   
2902   
2903   
2904
2905   # 2000-08-04 bkoz hack
2906   CCODECVT_C=config/io/c_io_libio_codecvt.c
2907   
2908   # 2000-08-04 bkoz hack
2909
2910   
2911
2912 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2913   GLIBCPP_BUILD_LIBIO_TRUE=
2914   GLIBCPP_BUILD_LIBIO_FALSE='#'
2915 else
2916   GLIBCPP_BUILD_LIBIO_TRUE='#'
2917   GLIBCPP_BUILD_LIBIO_FALSE=
2918 fi
2919   
2920
2921 if test "$need_libio" = yes; then
2922   GLIBCPP_NEED_LIBIO_TRUE=
2923   GLIBCPP_NEED_LIBIO_FALSE='#'
2924 else
2925   GLIBCPP_NEED_LIBIO_TRUE='#'
2926   GLIBCPP_NEED_LIBIO_FALSE=
2927 fi
2928   
2929
2930 if test "$need_wlibio" = yes; then
2931   GLIBCPP_NEED_WLIBIO_TRUE=
2932   GLIBCPP_NEED_WLIBIO_FALSE='#'
2933 else
2934   GLIBCPP_NEED_WLIBIO_TRUE='#'
2935   GLIBCPP_NEED_WLIBIO_FALSE=
2936 fi
2937   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2938     libio_la=../libio/libio.la
2939   else
2940     libio_la=
2941   fi
2942   
2943
2944
2945   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2946 echo "configure:2947: checking for clocale to use" >&5
2947   # Check whether --enable-clocale or --disable-clocale was given.
2948 if test "${enable_clocale+set}" = set; then
2949   enableval="$enable_clocale"
2950   if test x$enable_clocale = xno; then
2951      enable_clocale=no
2952   fi
2953 else
2954   enable_clocale=no
2955 fi
2956
2957
2958   enable_clocale_flag=$enable_clocale
2959
2960       if test x$enable_clocale_flag = xno; then
2961     case x${target_os} in
2962       xlinux* | xgnu*)
2963         cat > conftest.$ac_ext <<EOF
2964 #line 2965 "configure"
2965 #include "confdefs.h"
2966
2967         #include <features.h>
2968         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2969           _GLIBCPP_ok
2970         #endif
2971         
2972 EOF
2973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2974   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
2975   rm -rf conftest*
2976   enable_clocale_flag=gnu
2977 else
2978   rm -rf conftest*
2979   enable_clocale_flag=generic
2980 fi
2981 rm -f conftest*
2982
2983
2984         # Test for bugs early in glibc-2.2.x series
2985         if test x$enable_clocale_flag = xgnu; then
2986           if test "$cross_compiling" = yes; then
2987   enable_clocale_flag=generic
2988 else
2989   cat > conftest.$ac_ext <<EOF
2990 #line 2991 "configure"
2991 #include "confdefs.h"
2992
2993           #define _GNU_SOURCE 1
2994           #include <locale.h>
2995           #include <string.h>
2996           #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
2997           extern __typeof(newlocale) __newlocale;
2998           extern __typeof(duplocale) __duplocale;
2999           extern __typeof(strcoll_l) __strcoll_l;
3000           #endif
3001           int main()
3002           {
3003             const char __one[] = "Äuglein Augmen";
3004             const char __two[] = "Äuglein";
3005             int i;
3006             int j;
3007             __locale_t  loc;
3008             __locale_t  loc_dup;
3009             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3010             loc_dup = __duplocale(loc);
3011             i = __strcoll_l(__one, __two, loc);
3012             j = __strcoll_l(__one, __two, loc_dup);
3013             return 0;
3014           }
3015           
3016 EOF
3017 if { (eval echo configure:3018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3018 then
3019   enable_clocale_flag=gnu
3020 else
3021   echo "configure: failed program was:" >&5
3022   cat conftest.$ac_ext >&5
3023   rm -fr conftest*
3024   enable_clocale_flag=generic
3025 fi
3026 rm -fr conftest*
3027 fi
3028
3029         fi
3030
3031         # ... at some point put __strxfrm_l tests in as well.
3032         ;;
3033       *)
3034         enable_clocale_flag=generic
3035         ;;
3036     esac
3037   fi
3038
3039     # Check whether --enable-nls or --disable-nls was given.
3040 if test "${enable_nls+set}" = set; then
3041   enableval="$enable_nls"
3042   :
3043 else
3044   enable_nls=yes
3045 fi
3046
3047   USE_NLS=no
3048
3049     case x${enable_clocale_flag} in
3050     xgeneric)
3051       echo "$ac_t""generic" 1>&6
3052
3053       CLOCALE_H=config/locale/generic/c_locale.h
3054       CLOCALE_CC=config/locale/generic/c_locale.cc
3055       CCODECVT_H=config/locale/generic/codecvt_specializations.h
3056       CCODECVT_CC=config/locale/generic/codecvt_members.cc
3057       CCOLLATE_CC=config/locale/generic/collate_members.cc
3058       CCTYPE_CC=config/locale/generic/ctype_members.cc
3059       CMESSAGES_H=config/locale/generic/messages_members.h
3060       CMESSAGES_CC=config/locale/generic/messages_members.cc
3061       CMONEY_CC=config/locale/generic/monetary_members.cc
3062       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3063       CTIME_CC=config/locale/generic/time_members.cc
3064       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3065       ;;
3066     xgnu)
3067       echo "$ac_t""gnu" 1>&6
3068
3069       # Declare intention to use gettext, and add support for specific
3070       # languages.
3071       # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3072       ALL_LINGUAS="de fr"
3073
3074       # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3075       # Extract the first word of "msgfmt", so it can be a program name with args.
3076 set dummy msgfmt; ac_word=$2
3077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3078 echo "configure:3079: checking for $ac_word" >&5
3079 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3080   echo $ac_n "(cached) $ac_c" 1>&6
3081 else
3082   if test -n "$check_msgfmt"; then
3083   ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3084 else
3085   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3086   ac_dummy="$PATH"
3087   for ac_dir in $ac_dummy; do
3088     test -z "$ac_dir" && ac_dir=.
3089     if test -f $ac_dir/$ac_word; then
3090       ac_cv_prog_check_msgfmt="yes"
3091       break
3092     fi
3093   done
3094   IFS="$ac_save_ifs"
3095   test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3096 fi
3097 fi
3098 check_msgfmt="$ac_cv_prog_check_msgfmt"
3099 if test -n "$check_msgfmt"; then
3100   echo "$ac_t""$check_msgfmt" 1>&6
3101 else
3102   echo "$ac_t""no" 1>&6
3103 fi
3104
3105       if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3106         USE_NLS=yes
3107       fi
3108       # Export the build objects.
3109       for ling in $ALL_LINGUAS; do \
3110         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3111         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3112       done
3113       
3114       
3115
3116       CLOCALE_H=config/locale/gnu/c_locale.h
3117       CLOCALE_CC=config/locale/gnu/c_locale.cc
3118       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3119       CCODECVT_CC=config/locale/gnu/codecvt_members.cc
3120       CCOLLATE_CC=config/locale/gnu/collate_members.cc
3121       CCTYPE_CC=config/locale/gnu/ctype_members.cc
3122       CMESSAGES_H=config/locale/gnu/messages_members.h
3123       CMESSAGES_CC=config/locale/gnu/messages_members.cc
3124       CMONEY_CC=config/locale/gnu/monetary_members.cc
3125       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3126       CTIME_CC=config/locale/gnu/time_members.cc
3127       CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3128       ;;
3129     xieee_1003.1-2001)
3130       echo "$ac_t""generic" 1>&6
3131
3132       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3133       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3134       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3135       CCODECVT_CC=config/locale/generic/codecvt_members.cc
3136       CCOLLATE_CC=config/locale/generic/collate_members.cc
3137       CCTYPE_CC=config/locale/generic/ctype_members.cc
3138       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3139       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3140       CMONEY_CC=config/locale/generic/monetary_members.cc
3141       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3142       CTIME_CC=config/locale/generic/time_members.cc
3143       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3144       ;;
3145     *)
3146       echo "$enable_clocale is an unknown locale package" 1>&2
3147       exit 1
3148       ;;
3149   esac
3150
3151   # This is where the testsuite looks for locale catalogs, using the
3152   # -DLOCALEDIR define during testsuite compilation.
3153   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3154   
3155
3156   # For the time being, transform ctype_noninline.h to ctype_members_char.cc
3157 #  CCTYPE_CHAR_CC=config/${os_include_dir}/ctype_noninline.h
3158
3159   
3160   
3161   
3162   
3163   
3164   
3165   
3166 #  AC_LINK_FILES($CCTYPE_CHAR_CC, src/ctype_members_char.cc)
3167   
3168   
3169   
3170   
3171   
3172   
3173
3174 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3175 if test "${enable_c_mbchar+set}" = set; then
3176   enableval="$enable_c_mbchar"
3177   case "$enableval" in
3178  yes) enable_c_mbchar=yes ;;
3179  no)  enable_c_mbchar=no ;;
3180  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3181  esac
3182 else
3183   enable_c_mbchar=yes
3184 fi
3185
3186   
3187   # Check whether --enable-c99 or --disable-c99 was given.
3188 if test "${enable_c99+set}" = set; then
3189   enableval="$enable_c99"
3190     case "$enableval" in
3191    yes) enable_c99=yes ;;
3192    no)  enable_c99=no ;;
3193    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3194    esac
3195 else
3196   enable_c99=yes
3197 fi
3198  
3199   
3200   ac_ext=C
3201 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3202 ac_cpp='$CXXCPP $CPPFLAGS'
3203 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3204 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3205 cross_compiling=$ac_cv_prog_cxx_cross
3206
3207
3208   # Check for the existence of <math.h> functions used if C99 is enabled.
3209   ac_c99_math=yes;
3210   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3211 echo "configure:3212: checking for ISO C99 support in <math.h>" >&5
3212   cat > conftest.$ac_ext <<EOF
3213 #line 3214 "configure"
3214 #include "confdefs.h"
3215 #include <math.h>
3216 int main() {
3217 fpclassify(0.0);
3218 ; return 0; }
3219 EOF
3220 if { (eval echo configure:3221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3221   :
3222 else
3223   echo "configure: failed program was:" >&5
3224   cat conftest.$ac_ext >&5
3225   rm -rf conftest*
3226   ac_c99_math=no
3227 fi
3228 rm -f conftest*
3229   cat > conftest.$ac_ext <<EOF
3230 #line 3231 "configure"
3231 #include "confdefs.h"
3232 #include <math.h>
3233 int main() {
3234 isfinite(0.0);
3235 ; return 0; }
3236 EOF
3237 if { (eval echo configure:3238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3238   :
3239 else
3240   echo "configure: failed program was:" >&5
3241   cat conftest.$ac_ext >&5
3242   rm -rf conftest*
3243   ac_c99_math=no
3244 fi
3245 rm -f conftest*
3246   cat > conftest.$ac_ext <<EOF
3247 #line 3248 "configure"
3248 #include "confdefs.h"
3249 #include <math.h>
3250 int main() {
3251 isinf(0.0);
3252 ; return 0; }
3253 EOF
3254 if { (eval echo configure:3255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3255   :
3256 else
3257   echo "configure: failed program was:" >&5
3258   cat conftest.$ac_ext >&5
3259   rm -rf conftest*
3260   ac_c99_math=no
3261 fi
3262 rm -f conftest*
3263   cat > conftest.$ac_ext <<EOF
3264 #line 3265 "configure"
3265 #include "confdefs.h"
3266 #include <math.h>
3267 int main() {
3268 isnan(0.0);
3269 ; return 0; }
3270 EOF
3271 if { (eval echo configure:3272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3272   :
3273 else
3274   echo "configure: failed program was:" >&5
3275   cat conftest.$ac_ext >&5
3276   rm -rf conftest*
3277   ac_c99_math=no
3278 fi
3279 rm -f conftest*
3280   cat > conftest.$ac_ext <<EOF
3281 #line 3282 "configure"
3282 #include "confdefs.h"
3283 #include <math.h>
3284 int main() {
3285 isnormal(0.0);
3286 ; return 0; }
3287 EOF
3288 if { (eval echo configure:3289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3289   :
3290 else
3291   echo "configure: failed program was:" >&5
3292   cat conftest.$ac_ext >&5
3293   rm -rf conftest*
3294   ac_c99_math=no
3295 fi
3296 rm -f conftest*
3297   cat > conftest.$ac_ext <<EOF
3298 #line 3299 "configure"
3299 #include "confdefs.h"
3300 #include <math.h>
3301 int main() {
3302 signbit(0.0);
3303 ; return 0; }
3304 EOF
3305 if { (eval echo configure:3306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3306   :
3307 else
3308   echo "configure: failed program was:" >&5
3309   cat conftest.$ac_ext >&5
3310   rm -rf conftest*
3311   ac_c99_math=no
3312 fi
3313 rm -f conftest*
3314   cat > conftest.$ac_ext <<EOF
3315 #line 3316 "configure"
3316 #include "confdefs.h"
3317 #include <math.h>
3318 int main() {
3319 isgreater(0.0,0.0);
3320 ; return 0; }
3321 EOF
3322 if { (eval echo configure:3323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3323   :
3324 else
3325   echo "configure: failed program was:" >&5
3326   cat conftest.$ac_ext >&5
3327   rm -rf conftest*
3328   ac_c99_math=no
3329 fi
3330 rm -f conftest*
3331   cat > conftest.$ac_ext <<EOF
3332 #line 3333 "configure"
3333 #include "confdefs.h"
3334 #include <math.h>
3335 int main() {
3336 isgreaterequal(0.0,0.0);
3337 ; return 0; }
3338 EOF
3339 if { (eval echo configure:3340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3340   :
3341 else
3342   echo "configure: failed program was:" >&5
3343   cat conftest.$ac_ext >&5
3344   rm -rf conftest*
3345   ac_c99_math=no
3346 fi
3347 rm -f conftest*
3348   cat > conftest.$ac_ext <<EOF
3349 #line 3350 "configure"
3350 #include "confdefs.h"
3351 #include <math.h>
3352 int main() {
3353 isless(0.0,0.0);
3354 ; return 0; }
3355 EOF
3356 if { (eval echo configure:3357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3357   :
3358 else
3359   echo "configure: failed program was:" >&5
3360   cat conftest.$ac_ext >&5
3361   rm -rf conftest*
3362   ac_c99_math=no
3363 fi
3364 rm -f conftest*
3365   cat > conftest.$ac_ext <<EOF
3366 #line 3367 "configure"
3367 #include "confdefs.h"
3368 #include <math.h>
3369 int main() {
3370 islessequal(0.0,0.0);
3371 ; return 0; }
3372 EOF
3373 if { (eval echo configure:3374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3374   :
3375 else
3376   echo "configure: failed program was:" >&5
3377   cat conftest.$ac_ext >&5
3378   rm -rf conftest*
3379   ac_c99_math=no
3380 fi
3381 rm -f conftest*
3382   cat > conftest.$ac_ext <<EOF
3383 #line 3384 "configure"
3384 #include "confdefs.h"
3385 #include <math.h>
3386 int main() {
3387 islessgreater(0.0,0.0);
3388 ; return 0; }
3389 EOF
3390 if { (eval echo configure:3391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3391   :
3392 else
3393   echo "configure: failed program was:" >&5
3394   cat conftest.$ac_ext >&5
3395   rm -rf conftest*
3396   ac_c99_math=no
3397 fi
3398 rm -f conftest*
3399   cat > conftest.$ac_ext <<EOF
3400 #line 3401 "configure"
3401 #include "confdefs.h"
3402 #include <math.h>
3403 int main() {
3404 isunordered(0.0,0.0);
3405 ; return 0; }
3406 EOF
3407 if { (eval echo configure:3408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3408   :
3409 else
3410   echo "configure: failed program was:" >&5
3411   cat conftest.$ac_ext >&5
3412   rm -rf conftest*
3413   ac_c99_math=no
3414 fi
3415 rm -f conftest*
3416   echo "$ac_t""$ac_c99_math" 1>&6
3417
3418   # Check for the existence in <stdio.h> of vscanf, et. al.
3419   ac_c99_stdio=yes;
3420   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3421 echo "configure:3422: checking for ISO C99 support in <stdio.h>" >&5
3422   cat > conftest.$ac_ext <<EOF
3423 #line 3424 "configure"
3424 #include "confdefs.h"
3425 #include <stdio.h>
3426 int main() {
3427 snprintf("12", 0, "%i");
3428 ; return 0; }
3429 EOF
3430 if { (eval echo configure:3431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3431   :
3432 else
3433   echo "configure: failed program was:" >&5
3434   cat conftest.$ac_ext >&5
3435   rm -rf conftest*
3436   ac_c99_stdio=no
3437 fi
3438 rm -f conftest*
3439   cat > conftest.$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3442 #include <stdio.h>
3443                   #include <stdarg.h>
3444                   void foo(char* fmt, ...)
3445                   {va_list args; va_start(args, fmt);
3446                   vfscanf(stderr, "%i", args);}
3447 int main() {
3448
3449 ; return 0; }
3450 EOF
3451 if { (eval echo configure:3452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3452   :
3453 else
3454   echo "configure: failed program was:" >&5
3455   cat conftest.$ac_ext >&5
3456   rm -rf conftest*
3457   ac_c99_stdio=no
3458 fi
3459 rm -f conftest*
3460   cat > conftest.$ac_ext <<EOF
3461 #line 3462 "configure"
3462 #include "confdefs.h"
3463 #include <stdio.h>
3464                   #include <stdarg.h>
3465                   void foo(char* fmt, ...)
3466                   {va_list args; va_start(args, fmt);
3467                   vscanf("%i", args);}
3468 int main() {
3469
3470 ; return 0; }
3471 EOF
3472 if { (eval echo configure:3473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3473   :
3474 else
3475   echo "configure: failed program was:" >&5
3476   cat conftest.$ac_ext >&5
3477   rm -rf conftest*
3478   ac_c99_stdio=no
3479 fi
3480 rm -f conftest*
3481   cat > conftest.$ac_ext <<EOF
3482 #line 3483 "configure"
3483 #include "confdefs.h"
3484 #include <stdio.h>
3485                   #include <stdarg.h>
3486                   void foo(char* fmt, ...)
3487                   {va_list args; va_start(args, fmt);
3488                   vsnprintf(fmt, 0, "%i", args);}
3489 int main() {
3490
3491 ; return 0; }
3492 EOF
3493 if { (eval echo configure:3494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3494   :
3495 else
3496   echo "configure: failed program was:" >&5
3497   cat conftest.$ac_ext >&5
3498   rm -rf conftest*
3499   ac_c99_stdio=no
3500 fi
3501 rm -f conftest*
3502   cat > conftest.$ac_ext <<EOF
3503 #line 3504 "configure"
3504 #include "confdefs.h"
3505 #include <stdio.h>
3506                   #include <stdarg.h>
3507                   void foo(char* fmt, ...)
3508                   {va_list args; va_start(args, fmt);
3509                   vsscanf(fmt, "%i", args);}
3510 int main() {
3511
3512 ; return 0; }
3513 EOF
3514 if { (eval echo configure:3515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3515   :
3516 else
3517   echo "configure: failed program was:" >&5
3518   cat conftest.$ac_ext >&5
3519   rm -rf conftest*
3520   ac_c99_stdio=no
3521 fi
3522 rm -f conftest*
3523   echo "$ac_t""$ac_c99_stdio" 1>&6
3524
3525   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3526   ac_c99_stdlib=yes;
3527   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3528 echo "configure:3529: checking for lldiv_t declaration" >&5
3529   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3530   echo $ac_n "(cached) $ac_c" 1>&6
3531 else
3532   
3533   cat > conftest.$ac_ext <<EOF
3534 #line 3535 "configure"
3535 #include "confdefs.h"
3536 #include <stdlib.h>
3537 int main() {
3538  lldiv_t mydivt;
3539 ; return 0; }
3540 EOF
3541 if { (eval echo configure:3542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3542   rm -rf conftest*
3543   ac_c99_lldiv_t=yes
3544 else
3545   echo "configure: failed program was:" >&5
3546   cat conftest.$ac_ext >&5
3547   rm -rf conftest*
3548   ac_c99_lldiv_t=no
3549 fi
3550 rm -f conftest*
3551   
3552 fi
3553
3554   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3555
3556   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3557 echo "configure:3558: checking for ISO C99 support in <stdlib.h>" >&5
3558   cat > conftest.$ac_ext <<EOF
3559 #line 3560 "configure"
3560 #include "confdefs.h"
3561 #include <stdlib.h>
3562 int main() {
3563 char* tmp; strtof("gnu", &tmp);
3564 ; return 0; }
3565 EOF
3566 if { (eval echo configure:3567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3567   :
3568 else
3569   echo "configure: failed program was:" >&5
3570   cat conftest.$ac_ext >&5
3571   rm -rf conftest*
3572   ac_c99_stdlib=no
3573 fi
3574 rm -f conftest*
3575   cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3578 #include <stdlib.h>
3579 int main() {
3580 char* tmp; strtold("gnu", &tmp);
3581 ; return 0; }
3582 EOF
3583 if { (eval echo configure:3584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3584   :
3585 else
3586   echo "configure: failed program was:" >&5
3587   cat conftest.$ac_ext >&5
3588   rm -rf conftest*
3589   ac_c99_stdlib=no
3590 fi
3591 rm -f conftest*
3592   cat > conftest.$ac_ext <<EOF
3593 #line 3594 "configure"
3594 #include "confdefs.h"
3595 #include <stdlib.h>
3596 int main() {
3597 llabs(10);
3598 ; return 0; }
3599 EOF
3600 if { (eval echo configure:3601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3601   :
3602 else
3603   echo "configure: failed program was:" >&5
3604   cat conftest.$ac_ext >&5
3605   rm -rf conftest*
3606   ac_c99_stdlib=no
3607 fi
3608 rm -f conftest*
3609   cat > conftest.$ac_ext <<EOF
3610 #line 3611 "configure"
3611 #include "confdefs.h"
3612 #include <stdlib.h>
3613 int main() {
3614 lldiv(10,1);
3615 ; return 0; }
3616 EOF
3617 if { (eval echo configure:3618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3618   :
3619 else
3620   echo "configure: failed program was:" >&5
3621   cat conftest.$ac_ext >&5
3622   rm -rf conftest*
3623   ac_c99_stdlib=no
3624 fi
3625 rm -f conftest*
3626   cat > conftest.$ac_ext <<EOF
3627 #line 3628 "configure"
3628 #include "confdefs.h"
3629 #include <stdlib.h>
3630 int main() {
3631 atoll("10");
3632 ; return 0; }
3633 EOF
3634 if { (eval echo configure:3635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3635   :
3636 else
3637   echo "configure: failed program was:" >&5
3638   cat conftest.$ac_ext >&5
3639   rm -rf conftest*
3640   ac_c99_stdlib=no
3641 fi
3642 rm -f conftest*
3643   cat > conftest.$ac_ext <<EOF
3644 #line 3645 "configure"
3645 #include "confdefs.h"
3646 #include <stdlib.h>
3647 int main() {
3648 _Exit(0);
3649 ; return 0; }
3650 EOF
3651 if { (eval echo configure:3652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3652   :
3653 else
3654   echo "configure: failed program was:" >&5
3655   cat conftest.$ac_ext >&5
3656   rm -rf conftest*
3657   ac_c99_stdlib=no
3658 fi
3659 rm -f conftest*
3660   if test x"$ac_c99_lldiv_t" = x"no"; then
3661     ac_c99_stdlib=no; 
3662   fi; 
3663   echo "$ac_t""$ac_c99_stdlib" 1>&6
3664
3665   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3666   # XXX the wchar.h checks should be rolled into the general C99 bits.
3667   ac_c99_wchar=yes;
3668   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3669 echo "configure:3670: checking for additional ISO C99 support in <wchar.h>" >&5
3670   cat > conftest.$ac_ext <<EOF
3671 #line 3672 "configure"
3672 #include "confdefs.h"
3673 #include <wchar.h>
3674 int main() {
3675 wcstold(L"10.0", NULL);
3676 ; return 0; }
3677 EOF
3678 if { (eval echo configure:3679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3679   :
3680 else
3681   echo "configure: failed program was:" >&5
3682   cat conftest.$ac_ext >&5
3683   rm -rf conftest*
3684   ac_c99_wchar=no
3685 fi
3686 rm -f conftest*
3687   cat > conftest.$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3690 #include <wchar.h>
3691 int main() {
3692 wcstoll(L"10", NULL, 10);
3693 ; return 0; }
3694 EOF
3695 if { (eval echo configure:3696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3696   :
3697 else
3698   echo "configure: failed program was:" >&5
3699   cat conftest.$ac_ext >&5
3700   rm -rf conftest*
3701   ac_c99_wchar=no
3702 fi
3703 rm -f conftest*
3704   cat > conftest.$ac_ext <<EOF
3705 #line 3706 "configure"
3706 #include "confdefs.h"
3707 #include <wchar.h>
3708 int main() {
3709 wcstoull(L"10", NULL, 10);
3710 ; return 0; }
3711 EOF
3712 if { (eval echo configure:3713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3713   :
3714 else
3715   echo "configure: failed program was:" >&5
3716   cat conftest.$ac_ext >&5
3717   rm -rf conftest*
3718   ac_c99_wchar=no
3719 fi
3720 rm -f conftest*
3721   echo "$ac_t""$ac_c99_wchar" 1>&6
3722
3723   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3724 echo "configure:3725: checking for enabled ISO C99 support" >&5
3725   if test x"$ac_c99_math" = x"no" ||
3726      test x"$ac_c99_stdio" = x"no" ||
3727      test x"$ac_c99_stdlib" = x"no" ||
3728      test x"$ac_c99_wchar" = x"no"; then
3729     enable_c99=no; 
3730   fi; 
3731   echo "$ac_t""$enable_c99" 1>&6
3732
3733   # Option parsed, now set things appropriately
3734   if test x"$enable_c99" = x"yes"; then
3735     cat >> confdefs.h <<\EOF
3736 #define _GLIBCPP_USE_C99 1
3737 EOF
3738
3739   fi
3740
3741   ac_ext=c
3742 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3743 ac_cpp='$CPP $CPPFLAGS'
3744 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3745 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3746 cross_compiling=$ac_cv_prog_cc_cross
3747
3748
3749   
3750   # Check whether --enable-long-long or --disable-long-long was given.
3751 if test "${enable_long_long+set}" = set; then
3752   enableval="$enable_long_long"
3753     case "$enableval" in
3754    yes) enable_long_long=yes ;;
3755    no)  enable_long_long=no ;;
3756    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3757    esac
3758 else
3759   enable_long_long=yes
3760 fi
3761
3762   
3763   ac_ext=C
3764 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3765 ac_cpp='$CXXCPP $CPPFLAGS'
3766 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3767 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3768 cross_compiling=$ac_cv_prog_cxx_cross
3769
3770
3771   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3772 echo "configure:3773: checking for enabled long long I/O support" >&5
3773   # iostreams require strtoll, strtoull to compile
3774   cat > conftest.$ac_ext <<EOF
3775 #line 3776 "configure"
3776 #include "confdefs.h"
3777 #include <stdlib.h>
3778 int main() {
3779 char* tmp; strtoll("gnu", &tmp, 10);
3780 ; return 0; }
3781 EOF
3782 if { (eval echo configure:3783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3783   :
3784 else
3785   echo "configure: failed program was:" >&5
3786   cat conftest.$ac_ext >&5
3787   rm -rf conftest*
3788   enable_long_long=no
3789 fi
3790 rm -f conftest*
3791   cat > conftest.$ac_ext <<EOF
3792 #line 3793 "configure"
3793 #include "confdefs.h"
3794 #include <stdlib.h>
3795 int main() {
3796 char* tmp; strtoull("gnu", &tmp, 10);
3797 ; return 0; }
3798 EOF
3799 if { (eval echo configure:3800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3800   :
3801 else
3802   echo "configure: failed program was:" >&5
3803   cat conftest.$ac_ext >&5
3804   rm -rf conftest*
3805   enable_long_long=no
3806 fi
3807 rm -f conftest*
3808
3809   # Option parsed, now set things appropriately
3810   if test x"$enable_long_long" = xyes; then
3811     cat >> confdefs.h <<\EOF
3812 #define _GLIBCPP_USE_LONG_LONG 1
3813 EOF
3814
3815   fi
3816   echo "$ac_t""$enable_long_long" 1>&6
3817
3818   ac_ext=c
3819 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3820 ac_cpp='$CPP $CPPFLAGS'
3821 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3822 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3823 cross_compiling=$ac_cv_prog_cc_cross
3824
3825
3826 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3827 echo "configure:3828: checking for c header strategy to use" >&5
3828 # Check whether --enable-cheaders or --disable-cheaders was given.
3829 if test "${enable_cheaders+set}" = set; then
3830   enableval="$enable_cheaders"
3831   
3832   case "$enableval" in
3833    c) 
3834         enable_cheaders=c 
3835         ;;
3836    c_std)  
3837         enable_cheaders=c_std 
3838         ;;
3839    c_shadow)  
3840         enable_cheaders=c_shadow 
3841         ;;
3842    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3843         ;;
3844   esac
3845 else
3846   enable_cheaders=c_std
3847 fi
3848
3849   echo "$ac_t""$enable_cheaders" 1>&6
3850
3851     case "$enable_cheaders" in
3852     c_shadow) 
3853         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3854         ;;
3855     c_std)   
3856         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3857         ;;
3858     c)   
3859         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3860         ;;
3861   esac
3862
3863   
3864   
3865
3866 if test "$enable_cheaders" = c; then
3867   GLIBCPP_C_HEADERS_C_TRUE=
3868   GLIBCPP_C_HEADERS_C_FALSE='#'
3869 else
3870   GLIBCPP_C_HEADERS_C_TRUE='#'
3871   GLIBCPP_C_HEADERS_C_FALSE=
3872 fi
3873   
3874
3875 if test "$enable_cheaders" = c_std; then
3876   GLIBCPP_C_HEADERS_C_STD_TRUE=
3877   GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3878 else
3879   GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3880   GLIBCPP_C_HEADERS_C_STD_FALSE=
3881 fi
3882   
3883
3884 if test "$c_compatibility" = yes; then
3885   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3886   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3887 else
3888   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3889   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3890 fi
3891
3892
3893   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3894 echo "configure:3895: checking for thread model used by GCC" >&5
3895   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3896   echo "$ac_t""$target_thread_file" 1>&6
3897
3898   if test $target_thread_file != single; then
3899     cat >> confdefs.h <<\EOF
3900 #define HAVE_GTHR_DEFAULT 1
3901 EOF
3902
3903     cat >> confdefs.h <<\EOF
3904 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3905 EOF
3906
3907   fi
3908
3909   glibcpp_thread_h=gthr-$target_thread_file.h
3910   
3911
3912 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3913 if test "${enable_cxx_flags+set}" = set; then
3914   enableval="$enable_cxx_flags"
3915   case "x$enableval" in
3916  xyes)   
3917         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3918  xno|x)  
3919         enable_cxx_flags='' ;;
3920  *)      
3921         enable_cxx_flags="$enableval" ;;
3922  esac
3923 else
3924   enable_cxx_flags='none'
3925 fi
3926
3927
3928 if test "$enable_cxx_flags" = "none"; then 
3929   enable_cxx_flags=''; 
3930 fi
3931
3932 if test -n "$enable_cxx_flags"; then
3933     for f in $enable_cxx_flags; do
3934         case "$f" in
3935             -fhonor-std)  ;;
3936             -*)  ;;
3937             *)   # and we're trying to pass /what/ exactly?
3938                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3939         esac
3940     done
3941 fi
3942 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3943
3944
3945
3946   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3947 echo "configure:3948: checking for exception model to use" >&5
3948   
3949   ac_ext=C
3950 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3951 ac_cpp='$CXXCPP $CPPFLAGS'
3952 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3953 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3954 cross_compiling=$ac_cv_prog_cxx_cross
3955
3956   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3957 if test "${enable_sjlj_exceptions+set}" = set; then
3958   enableval="$enable_sjlj_exceptions"
3959   :
3960 else
3961                        cat > conftest.$ac_ext << EOF
3962 #line 3963 "configure"
3963 struct S { ~S(); };
3964 void bar();
3965 void foo()
3966 {
3967   S s;
3968   bar();
3969 }
3970 EOF
3971    old_CXXFLAGS="$CXXFLAGS"  
3972    CXXFLAGS=-S
3973    if { (eval echo configure:3974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3974      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3975        enable_sjlj_exceptions=yes
3976      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3977        enable_sjlj_exceptions=no
3978      fi
3979    fi
3980    CXXFLAGS="$old_CXXFLAGS"
3981    rm -f conftest*
3982 fi
3983
3984    if test x$enable_sjlj_exceptions = xyes; then
3985      cat >> confdefs.h <<\EOF
3986 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3987 EOF
3988
3989      ac_exception_model_name=sjlj
3990    elif test x$enable_sjlj_exceptions = xno; then
3991      ac_exception_model_name="call frame"
3992    else
3993      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3994    fi
3995    ac_ext=c
3996 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3997 ac_cpp='$CPP $CPPFLAGS'
3998 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3999 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4000 cross_compiling=$ac_cv_prog_cc_cross
4001
4002    echo "$ac_t""$ac_exception_model_name" 1>&6
4003
4004
4005   echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4006 echo "configure:4007: checking for use of libunwind" >&5
4007   # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4008 if test "${enable_libunwind_exceptions+set}" = set; then
4009   enableval="$enable_libunwind_exceptions"
4010   use_libunwind_exceptions=$enableval
4011 else
4012   use_libunwind_exceptions=no
4013 fi
4014
4015   echo "$ac_t""$use_libunwind_exceptions" 1>&6
4016     if test x"$use_libunwind_exceptions" = xyes; then
4017     LIBUNWIND_FLAG="-lunwind"
4018   else
4019     LIBUNWIND_FLAG=""
4020   fi
4021   
4022
4023 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4024 if test "${enable_concept_checks+set}" = set; then
4025   enableval="$enable_concept_checks"
4026   case "$enableval" in
4027  yes) enable_concept_checks=yes ;;
4028  no)  enable_concept_checks=no ;;
4029  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4030  esac
4031 else
4032   enable_concept_checks=no
4033 fi
4034 if test x"$enable_concept_checks" = xyes; then
4035   cat >> confdefs.h <<\EOF
4036 #define _GLIBCPP_CONCEPT_CHECKS 1
4037 EOF
4038
4039 fi
4040
4041
4042 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
4043 for ac_hdr in string.h stdlib.h
4044 do
4045 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4046 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4047 echo "configure:4048: checking for $ac_hdr" >&5
4048 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4049   echo $ac_n "(cached) $ac_c" 1>&6
4050 else
4051   cat > conftest.$ac_ext <<EOF
4052 #line 4053 "configure"
4053 #include "confdefs.h"
4054 #include <$ac_hdr>
4055 EOF
4056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4057 { (eval echo configure:4058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4059 if test -z "$ac_err"; then
4060   rm -rf conftest*
4061   eval "ac_cv_header_$ac_safe=yes"
4062 else
4063   echo "$ac_err" >&5
4064   echo "configure: failed program was:" >&5
4065   cat conftest.$ac_ext >&5
4066   rm -rf conftest*
4067   eval "ac_cv_header_$ac_safe=no"
4068 fi
4069 rm -f conftest*
4070 fi
4071 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4072   echo "$ac_t""yes" 1>&6
4073     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4074   cat >> confdefs.h <<EOF
4075 #define $ac_tr_hdr 1
4076 EOF
4077  
4078 else
4079   echo "$ac_t""no" 1>&6
4080 fi
4081 done
4082
4083
4084 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4085
4086   # We are being configured with some form of cross compiler.
4087   GLIBCPP_IS_CROSS_COMPILING=1
4088
4089   # This lets us hard-code the functionality we know we'll have in the cross
4090   # target environment.  "Let" is a sugar-coated word placed on an especially
4091   # dull and tedious hack, actually.
4092   #
4093   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4094   # that involve linking, can't be used:
4095   #    "cannot open sim-crt0.o"
4096   #    "cannot open crt0.o"
4097   # etc.  All this is because there currently exists no unified, consistent
4098   # way for top level CC information to be passed down to target directories:
4099   # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4100   # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4101   # crosses can be removed.
4102
4103   # If Canadian cross, then don't pick up tools from the build directory.
4104   # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4105   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4106     CANADIAN=yes
4107   else
4108     CANADIAN=no
4109   fi
4110
4111   # Construct crosses by hand, eliminating bits that need ld...
4112   # GLIBCPP_CHECK_COMPILER_FEATURES
4113   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4114   # GLIBCPP_CHECK_MATH_SUPPORT
4115
4116   case "$target_alias" in
4117     *-linux*)
4118       os_include_dir="os/gnu-linux"
4119       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4120         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4121         fp.h locale.h float.h inttypes.h
4122 do
4123 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4124 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4125 echo "configure:4126: checking for $ac_hdr" >&5
4126 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4127   echo $ac_n "(cached) $ac_c" 1>&6
4128 else
4129   cat > conftest.$ac_ext <<EOF
4130 #line 4131 "configure"
4131 #include "confdefs.h"
4132 #include <$ac_hdr>
4133 EOF
4134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4135 { (eval echo configure:4136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4136 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4137 if test -z "$ac_err"; then
4138   rm -rf conftest*
4139   eval "ac_cv_header_$ac_safe=yes"
4140 else
4141   echo "$ac_err" >&5
4142   echo "configure: failed program was:" >&5
4143   cat conftest.$ac_ext >&5
4144   rm -rf conftest*
4145   eval "ac_cv_header_$ac_safe=no"
4146 fi
4147 rm -f conftest*
4148 fi
4149 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4150   echo "$ac_t""yes" 1>&6
4151     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4152   cat >> confdefs.h <<EOF
4153 #define $ac_tr_hdr 1
4154 EOF
4155  
4156 else
4157   echo "$ac_t""no" 1>&6
4158 fi
4159 done
4160
4161       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4162       
4163       
4164   # If we're not using GNU ld, then there's no point in even trying these
4165   # tests.  Check for that first.  We should have already tested for gld
4166   # by now (in libtool), but require it now just to be safe...
4167   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4168   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4169   
4170
4171   # The name set by libtool depends on the version of libtool.  Shame on us
4172   # for depending on an impl detail, but c'est la vie.  Older versions used
4173   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4174   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4175   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4176   # set (hence we're using an older libtool), then set it.
4177   if test x${with_gnu_ld+set} != xset; then
4178     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4179       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4180       with_gnu_ld=no
4181     else
4182       with_gnu_ld=$ac_cv_prog_gnu_ld
4183     fi
4184   fi
4185
4186   # Start by getting the version number.  I think the libtool test already
4187   # does some of this, but throws away the result.
4188   
4189   ldver=`$LD --version 2>/dev/null | head -1 | \
4190          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4191   
4192   glibcpp_gnu_ld_version=`echo $ldver | \
4193          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4194
4195   # Set --gc-sections.
4196   if test "$with_gnu_ld" = "notbroken"; then
4197     # GNU ld it is!  Joy and bunny rabbits!
4198
4199     # All these tests are for C++; save the language and the compiler flags.
4200     # Need to do this so that g++ won't try to link in libstdc++
4201     ac_test_CFLAGS="${CFLAGS+set}"
4202     ac_save_CFLAGS="$CFLAGS"
4203     CFLAGS='-x c++  -Wl,--gc-sections'
4204
4205     # Check for -Wl,--gc-sections
4206     # XXX This test is broken at the moment, as symbols required for
4207     # linking are now in libsupc++ (not built yet.....). In addition, 
4208     # this test has cored on solaris in the past. In addition,
4209     # --gc-sections doesn't really work at the moment (keeps on discarding
4210     # used sections, first .eh_frame and now some of the glibc sections for
4211     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4212     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4213 echo "configure:4214: checking for ld that supports -Wl,--gc-sections" >&5
4214     if test "$cross_compiling" = yes; then
4215   ac_sectionLDflags=yes
4216 else
4217   cat > conftest.$ac_ext <<EOF
4218 #line 4219 "configure"
4219 #include "confdefs.h"
4220
4221      int main(void) 
4222      {
4223        try { throw 1; }
4224        catch (...) { };
4225        return 0;
4226      }
4227     
4228 EOF
4229 if { (eval echo configure:4230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4230 then
4231   ac_sectionLDflags=yes
4232 else
4233   echo "configure: failed program was:" >&5
4234   cat conftest.$ac_ext >&5
4235   rm -fr conftest*
4236   ac_sectionLDflags=no
4237 fi
4238 rm -fr conftest*
4239 fi
4240
4241     if test "$ac_test_CFLAGS" = set; then
4242       CFLAGS="$ac_save_CFLAGS"
4243     else
4244       # this is the suspicious part
4245       CFLAGS=''
4246     fi
4247     if test "$ac_sectionLDflags" = "yes"; then
4248       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4249     fi
4250     echo "$ac_t""$ac_sectionLDflags" 1>&6
4251   fi
4252
4253   # Set linker optimization flags.
4254   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4255     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4256   fi
4257
4258   
4259   
4260
4261       
4262     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4263 echo "configure:4264: checking for main in -lm" >&5
4264 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4265 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4266   echo $ac_n "(cached) $ac_c" 1>&6
4267 else
4268   ac_save_LIBS="$LIBS"
4269 LIBS="-lm  $LIBS"
4270 cat > conftest.$ac_ext <<EOF
4271 #line 4272 "configure"
4272 #include "confdefs.h"
4273
4274 int main() {
4275 main()
4276 ; return 0; }
4277 EOF
4278 if { (eval echo configure:4279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4279   rm -rf conftest*
4280   eval "ac_cv_lib_$ac_lib_var=yes"
4281 else
4282   echo "configure: failed program was:" >&5
4283   cat conftest.$ac_ext >&5
4284   rm -rf conftest*
4285   eval "ac_cv_lib_$ac_lib_var=no"
4286 fi
4287 rm -f conftest*
4288 LIBS="$ac_save_LIBS"
4289
4290 fi
4291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4292   echo "$ac_t""yes" 1>&6
4293     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4294     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4295   cat >> confdefs.h <<EOF
4296 #define $ac_tr_lib 1
4297 EOF
4298
4299   LIBS="-lm $LIBS"
4300
4301 else
4302   echo "$ac_t""no" 1>&6
4303 fi
4304
4305   for ac_func in nan copysignf
4306 do
4307 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4308 echo "configure:4309: checking for $ac_func" >&5
4309 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4310   echo $ac_n "(cached) $ac_c" 1>&6
4311 else
4312   cat > conftest.$ac_ext <<EOF
4313 #line 4314 "configure"
4314 #include "confdefs.h"
4315 /* System header to define __stub macros and hopefully few prototypes,
4316     which can conflict with char $ac_func(); below.  */
4317 #include <assert.h>
4318 /* Override any gcc2 internal prototype to avoid an error.  */
4319 /* We use char because int might match the return type of a gcc2
4320     builtin and then its argument prototype would still apply.  */
4321 char $ac_func();
4322
4323 int main() {
4324
4325 /* The GNU C library defines this for functions which it implements
4326     to always fail with ENOSYS.  Some functions are actually named
4327     something starting with __ and the normal name is an alias.  */
4328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4329 choke me
4330 #else
4331 $ac_func();
4332 #endif
4333
4334 ; return 0; }
4335 EOF
4336 if { (eval echo configure:4337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4337   rm -rf conftest*
4338   eval "ac_cv_func_$ac_func=yes"
4339 else
4340   echo "configure: failed program was:" >&5
4341   cat conftest.$ac_ext >&5
4342   rm -rf conftest*
4343   eval "ac_cv_func_$ac_func=no"
4344 fi
4345 rm -f conftest*
4346 fi
4347
4348 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4349   echo "$ac_t""yes" 1>&6
4350     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4351   cat >> confdefs.h <<EOF
4352 #define $ac_tr_func 1
4353 EOF
4354  
4355 else
4356   echo "$ac_t""no" 1>&6
4357 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4358 fi
4359 done
4360
4361
4362     for ac_func in __signbit
4363 do
4364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4365 echo "configure:4366: checking for $ac_func" >&5
4366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4367   echo $ac_n "(cached) $ac_c" 1>&6
4368 else
4369   cat > conftest.$ac_ext <<EOF
4370 #line 4371 "configure"
4371 #include "confdefs.h"
4372 /* System header to define __stub macros and hopefully few prototypes,
4373     which can conflict with char $ac_func(); below.  */
4374 #include <assert.h>
4375 /* Override any gcc2 internal prototype to avoid an error.  */
4376 /* We use char because int might match the return type of a gcc2
4377     builtin and then its argument prototype would still apply.  */
4378 char $ac_func();
4379
4380 int main() {
4381
4382 /* The GNU C library defines this for functions which it implements
4383     to always fail with ENOSYS.  Some functions are actually named
4384     something starting with __ and the normal name is an alias.  */
4385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4386 choke me
4387 #else
4388 $ac_func();
4389 #endif
4390
4391 ; return 0; }
4392 EOF
4393 if { (eval echo configure:4394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4394   rm -rf conftest*
4395   eval "ac_cv_func_$ac_func=yes"
4396 else
4397   echo "configure: failed program was:" >&5
4398   cat conftest.$ac_ext >&5
4399   rm -rf conftest*
4400   eval "ac_cv_func_$ac_func=no"
4401 fi
4402 rm -f conftest*
4403 fi
4404
4405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4406   echo "$ac_t""yes" 1>&6
4407     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4408   cat >> confdefs.h <<EOF
4409 #define $ac_tr_func 1
4410 EOF
4411  
4412 else
4413   echo "$ac_t""no" 1>&6
4414 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4415 fi
4416 done
4417
4418   for ac_func in __signbitf
4419 do
4420 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4421 echo "configure:4422: checking for $ac_func" >&5
4422 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4423   echo $ac_n "(cached) $ac_c" 1>&6
4424 else
4425   cat > conftest.$ac_ext <<EOF
4426 #line 4427 "configure"
4427 #include "confdefs.h"
4428 /* System header to define __stub macros and hopefully few prototypes,
4429     which can conflict with char $ac_func(); below.  */
4430 #include <assert.h>
4431 /* Override any gcc2 internal prototype to avoid an error.  */
4432 /* We use char because int might match the return type of a gcc2
4433     builtin and then its argument prototype would still apply.  */
4434 char $ac_func();
4435
4436 int main() {
4437
4438 /* The GNU C library defines this for functions which it implements
4439     to always fail with ENOSYS.  Some functions are actually named
4440     something starting with __ and the normal name is an alias.  */
4441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4442 choke me
4443 #else
4444 $ac_func();
4445 #endif
4446
4447 ; return 0; }
4448 EOF
4449 if { (eval echo configure:4450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4450   rm -rf conftest*
4451   eval "ac_cv_func_$ac_func=yes"
4452 else
4453   echo "configure: failed program was:" >&5
4454   cat conftest.$ac_ext >&5
4455   rm -rf conftest*
4456   eval "ac_cv_func_$ac_func=no"
4457 fi
4458 rm -f conftest*
4459 fi
4460
4461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4462   echo "$ac_t""yes" 1>&6
4463     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4464   cat >> confdefs.h <<EOF
4465 #define $ac_tr_func 1
4466 EOF
4467  
4468 else
4469   echo "$ac_t""no" 1>&6
4470 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4471 fi
4472 done
4473
4474
4475           if test x$ac_cv_func_copysignl = x"yes"; then
4476     for ac_func in __signbitl
4477 do
4478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4479 echo "configure:4480: checking for $ac_func" >&5
4480 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4481   echo $ac_n "(cached) $ac_c" 1>&6
4482 else
4483   cat > conftest.$ac_ext <<EOF
4484 #line 4485 "configure"
4485 #include "confdefs.h"
4486 /* System header to define __stub macros and hopefully few prototypes,
4487     which can conflict with char $ac_func(); below.  */
4488 #include <assert.h>
4489 /* Override any gcc2 internal prototype to avoid an error.  */
4490 /* We use char because int might match the return type of a gcc2
4491     builtin and then its argument prototype would still apply.  */
4492 char $ac_func();
4493
4494 int main() {
4495
4496 /* The GNU C library defines this for functions which it implements
4497     to always fail with ENOSYS.  Some functions are actually named
4498     something starting with __ and the normal name is an alias.  */
4499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4500 choke me
4501 #else
4502 $ac_func();
4503 #endif
4504
4505 ; return 0; }
4506 EOF
4507 if { (eval echo configure:4508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4508   rm -rf conftest*
4509   eval "ac_cv_func_$ac_func=yes"
4510 else
4511   echo "configure: failed program was:" >&5
4512   cat conftest.$ac_ext >&5
4513   rm -rf conftest*
4514   eval "ac_cv_func_$ac_func=no"
4515 fi
4516 rm -f conftest*
4517 fi
4518
4519 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4520   echo "$ac_t""yes" 1>&6
4521     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4522   cat >> confdefs.h <<EOF
4523 #define $ac_tr_func 1
4524 EOF
4525  
4526 else
4527   echo "$ac_t""no" 1>&6
4528 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4529 fi
4530 done
4531
4532   fi
4533
4534   
4535
4536       
4537
4538       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4539 echo "configure:4540: checking for mbstate_t" >&5
4540   cat > conftest.$ac_ext <<EOF
4541 #line 4542 "configure"
4542 #include "confdefs.h"
4543 #include <wchar.h>
4544 int main() {
4545 mbstate_t teststate;
4546 ; return 0; }
4547 EOF
4548 if { (eval echo configure:4549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4549   rm -rf conftest*
4550   have_mbstate_t=yes
4551 else
4552   echo "configure: failed program was:" >&5
4553   cat conftest.$ac_ext >&5
4554   rm -rf conftest*
4555   have_mbstate_t=no
4556 fi
4557 rm -f conftest*
4558   echo "$ac_t""$have_mbstate_t" 1>&6
4559   if test x"$have_mbstate_t" = xyes; then
4560     cat >> confdefs.h <<\EOF
4561 #define HAVE_MBSTATE_T 1
4562 EOF
4563
4564   fi
4565
4566     for ac_hdr in wchar.h
4567 do
4568 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4569 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4570 echo "configure:4571: checking for $ac_hdr" >&5
4571 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4572   echo $ac_n "(cached) $ac_c" 1>&6
4573 else
4574   cat > conftest.$ac_ext <<EOF
4575 #line 4576 "configure"
4576 #include "confdefs.h"
4577 #include <$ac_hdr>
4578 EOF
4579 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4580 { (eval echo configure:4581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4581 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4582 if test -z "$ac_err"; then
4583   rm -rf conftest*
4584   eval "ac_cv_header_$ac_safe=yes"
4585 else
4586   echo "$ac_err" >&5
4587   echo "configure: failed program was:" >&5
4588   cat conftest.$ac_ext >&5
4589   rm -rf conftest*
4590   eval "ac_cv_header_$ac_safe=no"
4591 fi
4592 rm -f conftest*
4593 fi
4594 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4595   echo "$ac_t""yes" 1>&6
4596     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4597   cat >> confdefs.h <<EOF
4598 #define $ac_tr_hdr 1
4599 EOF
4600  ac_has_wchar_h=yes
4601 else
4602   echo "$ac_t""no" 1>&6
4603 ac_has_wchar_h=no
4604 fi
4605 done
4606
4607   for ac_hdr in wctype.h
4608 do
4609 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4610 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4611 echo "configure:4612: checking for $ac_hdr" >&5
4612 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4613   echo $ac_n "(cached) $ac_c" 1>&6
4614 else
4615   cat > conftest.$ac_ext <<EOF
4616 #line 4617 "configure"
4617 #include "confdefs.h"
4618 #include <$ac_hdr>
4619 EOF
4620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4621 { (eval echo configure:4622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4623 if test -z "$ac_err"; then
4624   rm -rf conftest*
4625   eval "ac_cv_header_$ac_safe=yes"
4626 else
4627   echo "$ac_err" >&5
4628   echo "configure: failed program was:" >&5
4629   cat conftest.$ac_ext >&5
4630   rm -rf conftest*
4631   eval "ac_cv_header_$ac_safe=no"
4632 fi
4633 rm -f conftest*
4634 fi
4635 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4636   echo "$ac_t""yes" 1>&6
4637     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4638   cat >> confdefs.h <<EOF
4639 #define $ac_tr_hdr 1
4640 EOF
4641  ac_has_wctype_h=yes
4642 else
4643   echo "$ac_t""no" 1>&6
4644 ac_has_wctype_h=no
4645 fi
4646 done
4647
4648   
4649     if test x"$ac_has_wchar_h" = xyes &&
4650      test x"$ac_has_wctype_h" = xyes &&
4651      test x"$enable_c_mbchar" != xno; then
4652       
4653             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4654 echo "configure:4655: checking for WCHAR_MIN and WCHAR_MAX" >&5
4655     cat > conftest.$ac_ext <<EOF
4656 #line 4657 "configure"
4657 #include "confdefs.h"
4658 #include <wchar.h>
4659 int main() {
4660 int i = WCHAR_MIN; int j = WCHAR_MAX;
4661 ; return 0; }
4662 EOF
4663 if { (eval echo configure:4664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4664   rm -rf conftest*
4665   has_wchar_minmax=yes
4666 else
4667   echo "configure: failed program was:" >&5
4668   cat conftest.$ac_ext >&5
4669   rm -rf conftest*
4670   has_wchar_minmax=no
4671 fi
4672 rm -f conftest*
4673     echo "$ac_t""$has_wchar_minmax" 1>&6
4674     
4675             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4676 echo "configure:4677: checking for WEOF" >&5
4677     cat > conftest.$ac_ext <<EOF
4678 #line 4679 "configure"
4679 #include "confdefs.h"
4680
4681       #include <wchar.h>
4682       #include <stddef.h>
4683 int main() {
4684 wint_t i = WEOF;
4685 ; return 0; }
4686 EOF
4687 if { (eval echo configure:4688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4688   rm -rf conftest*
4689   has_weof=yes
4690 else
4691   echo "configure: failed program was:" >&5
4692   cat conftest.$ac_ext >&5
4693   rm -rf conftest*
4694   has_weof=no
4695 fi
4696 rm -f conftest*
4697     echo "$ac_t""$has_weof" 1>&6
4698   
4699         ac_wfuncs=yes
4700     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4701 do
4702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4703 echo "configure:4704: checking for $ac_func" >&5
4704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4705   echo $ac_n "(cached) $ac_c" 1>&6
4706 else
4707   cat > conftest.$ac_ext <<EOF
4708 #line 4709 "configure"
4709 #include "confdefs.h"
4710 /* System header to define __stub macros and hopefully few prototypes,
4711     which can conflict with char $ac_func(); below.  */
4712 #include <assert.h>
4713 /* Override any gcc2 internal prototype to avoid an error.  */
4714 /* We use char because int might match the return type of a gcc2
4715     builtin and then its argument prototype would still apply.  */
4716 char $ac_func();
4717
4718 int main() {
4719
4720 /* The GNU C library defines this for functions which it implements
4721     to always fail with ENOSYS.  Some functions are actually named
4722     something starting with __ and the normal name is an alias.  */
4723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4724 choke me
4725 #else
4726 $ac_func();
4727 #endif
4728
4729 ; return 0; }
4730 EOF
4731 if { (eval echo configure:4732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4732   rm -rf conftest*
4733   eval "ac_cv_func_$ac_func=yes"
4734 else
4735   echo "configure: failed program was:" >&5
4736   cat conftest.$ac_ext >&5
4737   rm -rf conftest*
4738   eval "ac_cv_func_$ac_func=no"
4739 fi
4740 rm -f conftest*
4741 fi
4742
4743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4744   echo "$ac_t""yes" 1>&6
4745     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4746   cat >> confdefs.h <<EOF
4747 #define $ac_tr_func 1
4748 EOF
4749  
4750 else
4751   echo "$ac_t""no" 1>&6
4752 \
4753     ac_wfuncs=no
4754 fi
4755 done
4756
4757   
4758         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4759     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4760     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4761     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4762     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4763     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4764 do
4765 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4766 echo "configure:4767: checking for $ac_func" >&5
4767 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4768   echo $ac_n "(cached) $ac_c" 1>&6
4769 else
4770   cat > conftest.$ac_ext <<EOF
4771 #line 4772 "configure"
4772 #include "confdefs.h"
4773 /* System header to define __stub macros and hopefully few prototypes,
4774     which can conflict with char $ac_func(); below.  */
4775 #include <assert.h>
4776 /* Override any gcc2 internal prototype to avoid an error.  */
4777 /* We use char because int might match the return type of a gcc2
4778     builtin and then its argument prototype would still apply.  */
4779 char $ac_func();
4780
4781 int main() {
4782
4783 /* The GNU C library defines this for functions which it implements
4784     to always fail with ENOSYS.  Some functions are actually named
4785     something starting with __ and the normal name is an alias.  */
4786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4787 choke me
4788 #else
4789 $ac_func();
4790 #endif
4791
4792 ; return 0; }
4793 EOF
4794 if { (eval echo configure:4795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4795   rm -rf conftest*
4796   eval "ac_cv_func_$ac_func=yes"
4797 else
4798   echo "configure: failed program was:" >&5
4799   cat conftest.$ac_ext >&5
4800   rm -rf conftest*
4801   eval "ac_cv_func_$ac_func=no"
4802 fi
4803 rm -f conftest*
4804 fi
4805
4806 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4807   echo "$ac_t""yes" 1>&6
4808     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4809   cat >> confdefs.h <<EOF
4810 #define $ac_tr_func 1
4811 EOF
4812  
4813 else
4814   echo "$ac_t""no" 1>&6
4815 \
4816     ac_wfuncs=no
4817 fi
4818 done
4819
4820
4821     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4822 echo "configure:4823: checking for ISO C99 wchar_t support" >&5
4823     if test x"$has_weof" = xyes &&
4824        test x"$has_wchar_minmax" = xyes &&
4825        test x"$ac_wfuncs" = xyes; then
4826       ac_isoC99_wchar_t=yes
4827     else
4828       ac_isoC99_wchar_t=no
4829     fi
4830     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4831   
4832             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4833 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4834 echo "configure:4835: checking for iconv.h" >&5
4835 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4836   echo $ac_n "(cached) $ac_c" 1>&6
4837 else
4838   cat > conftest.$ac_ext <<EOF
4839 #line 4840 "configure"
4840 #include "confdefs.h"
4841 #include <iconv.h>
4842 EOF
4843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4844 { (eval echo configure:4845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4845 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4846 if test -z "$ac_err"; then
4847   rm -rf conftest*
4848   eval "ac_cv_header_$ac_safe=yes"
4849 else
4850   echo "$ac_err" >&5
4851   echo "configure: failed program was:" >&5
4852   cat conftest.$ac_ext >&5
4853   rm -rf conftest*
4854   eval "ac_cv_header_$ac_safe=no"
4855 fi
4856 rm -f conftest*
4857 fi
4858 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4859   echo "$ac_t""yes" 1>&6
4860   ac_has_iconv_h=yes
4861 else
4862   echo "$ac_t""no" 1>&6
4863 ac_has_iconv_h=no
4864 fi
4865
4866     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4867 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4868 echo "configure:4869: checking for langinfo.h" >&5
4869 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4870   echo $ac_n "(cached) $ac_c" 1>&6
4871 else
4872   cat > conftest.$ac_ext <<EOF
4873 #line 4874 "configure"
4874 #include "confdefs.h"
4875 #include <langinfo.h>
4876 EOF
4877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4878 { (eval echo configure:4879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4880 if test -z "$ac_err"; then
4881   rm -rf conftest*
4882   eval "ac_cv_header_$ac_safe=yes"
4883 else
4884   echo "$ac_err" >&5
4885   echo "configure: failed program was:" >&5
4886   cat conftest.$ac_ext >&5
4887   rm -rf conftest*
4888   eval "ac_cv_header_$ac_safe=no"
4889 fi
4890 rm -f conftest*
4891 fi
4892 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4893   echo "$ac_t""yes" 1>&6
4894   ac_has_langinfo_h=yes
4895 else
4896   echo "$ac_t""no" 1>&6
4897 ac_has_langinfo_h=no
4898 fi
4899
4900
4901         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4902 echo "configure:4903: checking for iconv in -liconv" >&5
4903 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4904 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4905   echo $ac_n "(cached) $ac_c" 1>&6
4906 else
4907   ac_save_LIBS="$LIBS"
4908 LIBS="-liconv  $LIBS"
4909 cat > conftest.$ac_ext <<EOF
4910 #line 4911 "configure"
4911 #include "confdefs.h"
4912 /* Override any gcc2 internal prototype to avoid an error.  */
4913 /* We use char because int might match the return type of a gcc2
4914     builtin and then its argument prototype would still apply.  */
4915 char iconv();
4916
4917 int main() {
4918 iconv()
4919 ; return 0; }
4920 EOF
4921 if { (eval echo configure:4922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4922   rm -rf conftest*
4923   eval "ac_cv_lib_$ac_lib_var=yes"
4924 else
4925   echo "configure: failed program was:" >&5
4926   cat conftest.$ac_ext >&5
4927   rm -rf conftest*
4928   eval "ac_cv_lib_$ac_lib_var=no"
4929 fi
4930 rm -f conftest*
4931 LIBS="$ac_save_LIBS"
4932
4933 fi
4934 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4935   echo "$ac_t""yes" 1>&6
4936   libiconv="-liconv"
4937 else
4938   echo "$ac_t""no" 1>&6
4939 fi
4940
4941     ac_save_LIBS="$LIBS"
4942     LIBS="$LIBS $libiconv"
4943
4944     for ac_func in iconv_open iconv_close iconv nl_langinfo
4945 do
4946 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4947 echo "configure:4948: checking for $ac_func" >&5
4948 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4949   echo $ac_n "(cached) $ac_c" 1>&6
4950 else
4951   cat > conftest.$ac_ext <<EOF
4952 #line 4953 "configure"
4953 #include "confdefs.h"
4954 /* System header to define __stub macros and hopefully few prototypes,
4955     which can conflict with char $ac_func(); below.  */
4956 #include <assert.h>
4957 /* Override any gcc2 internal prototype to avoid an error.  */
4958 /* We use char because int might match the return type of a gcc2
4959     builtin and then its argument prototype would still apply.  */
4960 char $ac_func();
4961
4962 int main() {
4963
4964 /* The GNU C library defines this for functions which it implements
4965     to always fail with ENOSYS.  Some functions are actually named
4966     something starting with __ and the normal name is an alias.  */
4967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4968 choke me
4969 #else
4970 $ac_func();
4971 #endif
4972
4973 ; return 0; }
4974 EOF
4975 if { (eval echo configure:4976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4976   rm -rf conftest*
4977   eval "ac_cv_func_$ac_func=yes"
4978 else
4979   echo "configure: failed program was:" >&5
4980   cat conftest.$ac_ext >&5
4981   rm -rf conftest*
4982   eval "ac_cv_func_$ac_func=no"
4983 fi
4984 rm -f conftest*
4985 fi
4986
4987 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4988   echo "$ac_t""yes" 1>&6
4989     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4990   cat >> confdefs.h <<EOF
4991 #define $ac_tr_func 1
4992 EOF
4993  \
4994     ac_XPG2funcs=yes
4995 else
4996   echo "$ac_t""no" 1>&6
4997 ac_XPG2funcs=no
4998 fi
4999 done
5000
5001   
5002     LIBS="$ac_save_LIBS"
5003
5004     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5005 echo "configure:5006: checking for XPG2 wchar_t support" >&5
5006     if test x"$ac_has_iconv_h" = xyes &&
5007        test x"$ac_has_langinfo_h" = xyes &&
5008        test x"$ac_XPG2funcs" = xyes; then
5009       ac_XPG2_wchar_t=yes
5010     else
5011       ac_XPG2_wchar_t=no
5012     fi
5013     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5014   
5015             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5016 echo "configure:5017: checking for enabled wchar_t specializations" >&5
5017     if test x"$ac_isoC99_wchar_t" = xyes &&
5018        test x"$ac_XPG2_wchar_t" = xyes; then
5019       cat >> confdefs.h <<\EOF
5020 #define _GLIBCPP_USE_WCHAR_T 1
5021 EOF
5022
5023       echo "$ac_t"""yes"" 1>&6
5024     else
5025       echo "$ac_t"""no"" 1>&6
5026     fi
5027   else
5028         echo "configure: warning: wchar_t support disabled." 1>&2
5029   fi
5030
5031       cat >> confdefs.h <<\EOF
5032 #define HAVE_COPYSIGN 1
5033 EOF
5034
5035       cat >> confdefs.h <<\EOF
5036 #define HAVE_COPYSIGNF 1
5037 EOF
5038
5039       cat >> confdefs.h <<\EOF
5040 #define HAVE_FINITE 1
5041 EOF
5042
5043       cat >> confdefs.h <<\EOF
5044 #define HAVE_FINITEF 1
5045 EOF
5046
5047       cat >> confdefs.h <<\EOF
5048 #define HAVE_FREXPF 1
5049 EOF
5050
5051       cat >> confdefs.h <<\EOF
5052 #define HAVE_HYPOTF 1
5053 EOF
5054
5055       cat >> confdefs.h <<\EOF
5056 #define HAVE_ISINF 1
5057 EOF
5058
5059       cat >> confdefs.h <<\EOF
5060 #define HAVE_ISINFF 1
5061 EOF
5062
5063       cat >> confdefs.h <<\EOF
5064 #define HAVE_ISNAN 1
5065 EOF
5066
5067       cat >> confdefs.h <<\EOF
5068 #define HAVE_ISNANF 1
5069 EOF
5070
5071       cat >> confdefs.h <<\EOF
5072 #define HAVE_SINCOS 1
5073 EOF
5074
5075       cat >> confdefs.h <<\EOF
5076 #define HAVE_SINCOSF 1
5077 EOF
5078
5079       if test x"long_double_math_on_this_cpu" = x"yes"; then
5080         cat >> confdefs.h <<\EOF
5081 #define HAVE_FINITEL 1
5082 EOF
5083
5084         cat >> confdefs.h <<\EOF
5085 #define HAVE_HYPOTL 1
5086 EOF
5087
5088         cat >> confdefs.h <<\EOF
5089 #define HAVE_ISINFL 1
5090 EOF
5091
5092         cat >> confdefs.h <<\EOF
5093 #define HAVE_ISNANL 1
5094 EOF
5095
5096       fi
5097       ;;
5098     *-hpux*)
5099       # Check for available headers.
5100       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5101         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5102         fp.h locale.h float.h inttypes.h
5103 do
5104 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5105 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5106 echo "configure:5107: checking for $ac_hdr" >&5
5107 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5108   echo $ac_n "(cached) $ac_c" 1>&6
5109 else
5110   cat > conftest.$ac_ext <<EOF
5111 #line 5112 "configure"
5112 #include "confdefs.h"
5113 #include <$ac_hdr>
5114 EOF
5115 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5116 { (eval echo configure:5117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5117 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5118 if test -z "$ac_err"; then
5119   rm -rf conftest*
5120   eval "ac_cv_header_$ac_safe=yes"
5121 else
5122   echo "$ac_err" >&5
5123   echo "configure: failed program was:" >&5
5124   cat conftest.$ac_ext >&5
5125   rm -rf conftest*
5126   eval "ac_cv_header_$ac_safe=no"
5127 fi
5128 rm -f conftest*
5129 fi
5130 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5131   echo "$ac_t""yes" 1>&6
5132     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5133   cat >> confdefs.h <<EOF
5134 #define $ac_tr_hdr 1
5135 EOF
5136  
5137 else
5138   echo "$ac_t""no" 1>&6
5139 fi
5140 done
5141
5142       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5143       
5144       
5145   # If we're not using GNU ld, then there's no point in even trying these
5146   # tests.  Check for that first.  We should have already tested for gld
5147   # by now (in libtool), but require it now just to be safe...
5148   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5149   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5150   
5151
5152   # The name set by libtool depends on the version of libtool.  Shame on us
5153   # for depending on an impl detail, but c'est la vie.  Older versions used
5154   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5155   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5156   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5157   # set (hence we're using an older libtool), then set it.
5158   if test x${with_gnu_ld+set} != xset; then
5159     if test x${ac_cv_prog_gnu_ld+set} != xset; then
5160       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5161       with_gnu_ld=no
5162     else
5163       with_gnu_ld=$ac_cv_prog_gnu_ld
5164     fi
5165   fi
5166
5167   # Start by getting the version number.  I think the libtool test already
5168   # does some of this, but throws away the result.
5169   
5170   ldver=`$LD --version 2>/dev/null | head -1 | \
5171          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5172   
5173   glibcpp_gnu_ld_version=`echo $ldver | \
5174          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5175
5176   # Set --gc-sections.
5177   if test "$with_gnu_ld" = "notbroken"; then
5178     # GNU ld it is!  Joy and bunny rabbits!
5179
5180     # All these tests are for C++; save the language and the compiler flags.
5181     # Need to do this so that g++ won't try to link in libstdc++
5182     ac_test_CFLAGS="${CFLAGS+set}"
5183     ac_save_CFLAGS="$CFLAGS"
5184     CFLAGS='-x c++  -Wl,--gc-sections'
5185
5186     # Check for -Wl,--gc-sections
5187     # XXX This test is broken at the moment, as symbols required for
5188     # linking are now in libsupc++ (not built yet.....). In addition, 
5189     # this test has cored on solaris in the past. In addition,
5190     # --gc-sections doesn't really work at the moment (keeps on discarding
5191     # used sections, first .eh_frame and now some of the glibc sections for
5192     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5193     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5194 echo "configure:5195: checking for ld that supports -Wl,--gc-sections" >&5
5195     if test "$cross_compiling" = yes; then
5196   ac_sectionLDflags=yes
5197 else
5198   cat > conftest.$ac_ext <<EOF
5199 #line 5200 "configure"
5200 #include "confdefs.h"
5201
5202      int main(void) 
5203      {
5204        try { throw 1; }
5205        catch (...) { };
5206        return 0;
5207      }
5208     
5209 EOF
5210 if { (eval echo configure:5211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5211 then
5212   ac_sectionLDflags=yes
5213 else
5214   echo "configure: failed program was:" >&5
5215   cat conftest.$ac_ext >&5
5216   rm -fr conftest*
5217   ac_sectionLDflags=no
5218 fi
5219 rm -fr conftest*
5220 fi
5221
5222     if test "$ac_test_CFLAGS" = set; then
5223       CFLAGS="$ac_save_CFLAGS"
5224     else
5225       # this is the suspicious part
5226       CFLAGS=''
5227     fi
5228     if test "$ac_sectionLDflags" = "yes"; then
5229       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5230     fi
5231     echo "$ac_t""$ac_sectionLDflags" 1>&6
5232   fi
5233
5234   # Set linker optimization flags.
5235   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5236     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5237   fi
5238
5239   
5240   
5241
5242       
5243     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5244 echo "configure:5245: checking for main in -lm" >&5
5245 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5246 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5247   echo $ac_n "(cached) $ac_c" 1>&6
5248 else
5249   ac_save_LIBS="$LIBS"
5250 LIBS="-lm  $LIBS"
5251 cat > conftest.$ac_ext <<EOF
5252 #line 5253 "configure"
5253 #include "confdefs.h"
5254
5255 int main() {
5256 main()
5257 ; return 0; }
5258 EOF
5259 if { (eval echo configure:5260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5260   rm -rf conftest*
5261   eval "ac_cv_lib_$ac_lib_var=yes"
5262 else
5263   echo "configure: failed program was:" >&5
5264   cat conftest.$ac_ext >&5
5265   rm -rf conftest*
5266   eval "ac_cv_lib_$ac_lib_var=no"
5267 fi
5268 rm -f conftest*
5269 LIBS="$ac_save_LIBS"
5270
5271 fi
5272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5273   echo "$ac_t""yes" 1>&6
5274     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5275     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5276   cat >> confdefs.h <<EOF
5277 #define $ac_tr_lib 1
5278 EOF
5279
5280   LIBS="-lm $LIBS"
5281
5282 else
5283   echo "$ac_t""no" 1>&6
5284 fi
5285
5286   for ac_func in nan copysignf
5287 do
5288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5289 echo "configure:5290: checking for $ac_func" >&5
5290 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5291   echo $ac_n "(cached) $ac_c" 1>&6
5292 else
5293   cat > conftest.$ac_ext <<EOF
5294 #line 5295 "configure"
5295 #include "confdefs.h"
5296 /* System header to define __stub macros and hopefully few prototypes,
5297     which can conflict with char $ac_func(); below.  */
5298 #include <assert.h>
5299 /* Override any gcc2 internal prototype to avoid an error.  */
5300 /* We use char because int might match the return type of a gcc2
5301     builtin and then its argument prototype would still apply.  */
5302 char $ac_func();
5303
5304 int main() {
5305
5306 /* The GNU C library defines this for functions which it implements
5307     to always fail with ENOSYS.  Some functions are actually named
5308     something starting with __ and the normal name is an alias.  */
5309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5310 choke me
5311 #else
5312 $ac_func();
5313 #endif
5314
5315 ; return 0; }
5316 EOF
5317 if { (eval echo configure:5318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5318   rm -rf conftest*
5319   eval "ac_cv_func_$ac_func=yes"
5320 else
5321   echo "configure: failed program was:" >&5
5322   cat conftest.$ac_ext >&5
5323   rm -rf conftest*
5324   eval "ac_cv_func_$ac_func=no"
5325 fi
5326 rm -f conftest*
5327 fi
5328
5329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5330   echo "$ac_t""yes" 1>&6
5331     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5332   cat >> confdefs.h <<EOF
5333 #define $ac_tr_func 1
5334 EOF
5335  
5336 else
5337   echo "$ac_t""no" 1>&6
5338 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5339 fi
5340 done
5341
5342
5343     for ac_func in __signbit
5344 do
5345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5346 echo "configure:5347: checking for $ac_func" >&5
5347 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5348   echo $ac_n "(cached) $ac_c" 1>&6
5349 else
5350   cat > conftest.$ac_ext <<EOF
5351 #line 5352 "configure"
5352 #include "confdefs.h"
5353 /* System header to define __stub macros and hopefully few prototypes,
5354     which can conflict with char $ac_func(); below.  */
5355 #include <assert.h>
5356 /* Override any gcc2 internal prototype to avoid an error.  */
5357 /* We use char because int might match the return type of a gcc2
5358     builtin and then its argument prototype would still apply.  */
5359 char $ac_func();
5360
5361 int main() {
5362
5363 /* The GNU C library defines this for functions which it implements
5364     to always fail with ENOSYS.  Some functions are actually named
5365     something starting with __ and the normal name is an alias.  */
5366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5367 choke me
5368 #else
5369 $ac_func();
5370 #endif
5371
5372 ; return 0; }
5373 EOF
5374 if { (eval echo configure:5375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5375   rm -rf conftest*
5376   eval "ac_cv_func_$ac_func=yes"
5377 else
5378   echo "configure: failed program was:" >&5
5379   cat conftest.$ac_ext >&5
5380   rm -rf conftest*
5381   eval "ac_cv_func_$ac_func=no"
5382 fi
5383 rm -f conftest*
5384 fi
5385
5386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5387   echo "$ac_t""yes" 1>&6
5388     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5389   cat >> confdefs.h <<EOF
5390 #define $ac_tr_func 1
5391 EOF
5392  
5393 else
5394   echo "$ac_t""no" 1>&6
5395 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5396 fi
5397 done
5398
5399   for ac_func in __signbitf
5400 do
5401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5402 echo "configure:5403: checking for $ac_func" >&5
5403 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5404   echo $ac_n "(cached) $ac_c" 1>&6
5405 else
5406   cat > conftest.$ac_ext <<EOF
5407 #line 5408 "configure"
5408 #include "confdefs.h"
5409 /* System header to define __stub macros and hopefully few prototypes,
5410     which can conflict with char $ac_func(); below.  */
5411 #include <assert.h>
5412 /* Override any gcc2 internal prototype to avoid an error.  */
5413 /* We use char because int might match the return type of a gcc2
5414     builtin and then its argument prototype would still apply.  */
5415 char $ac_func();
5416
5417 int main() {
5418
5419 /* The GNU C library defines this for functions which it implements
5420     to always fail with ENOSYS.  Some functions are actually named
5421     something starting with __ and the normal name is an alias.  */
5422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5423 choke me
5424 #else
5425 $ac_func();
5426 #endif
5427
5428 ; return 0; }
5429 EOF
5430 if { (eval echo configure:5431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5431   rm -rf conftest*
5432   eval "ac_cv_func_$ac_func=yes"
5433 else
5434   echo "configure: failed program was:" >&5
5435   cat conftest.$ac_ext >&5
5436   rm -rf conftest*
5437   eval "ac_cv_func_$ac_func=no"
5438 fi
5439 rm -f conftest*
5440 fi
5441
5442 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5443   echo "$ac_t""yes" 1>&6
5444     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5445   cat >> confdefs.h <<EOF
5446 #define $ac_tr_func 1
5447 EOF
5448  
5449 else
5450   echo "$ac_t""no" 1>&6
5451 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5452 fi
5453 done
5454
5455
5456           if test x$ac_cv_func_copysignl = x"yes"; then
5457     for ac_func in __signbitl
5458 do
5459 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5460 echo "configure:5461: checking for $ac_func" >&5
5461 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5462   echo $ac_n "(cached) $ac_c" 1>&6
5463 else
5464   cat > conftest.$ac_ext <<EOF
5465 #line 5466 "configure"
5466 #include "confdefs.h"
5467 /* System header to define __stub macros and hopefully few prototypes,
5468     which can conflict with char $ac_func(); below.  */
5469 #include <assert.h>
5470 /* Override any gcc2 internal prototype to avoid an error.  */
5471 /* We use char because int might match the return type of a gcc2
5472     builtin and then its argument prototype would still apply.  */
5473 char $ac_func();
5474
5475 int main() {
5476
5477 /* The GNU C library defines this for functions which it implements
5478     to always fail with ENOSYS.  Some functions are actually named
5479     something starting with __ and the normal name is an alias.  */
5480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5481 choke me
5482 #else
5483 $ac_func();
5484 #endif
5485
5486 ; return 0; }
5487 EOF
5488 if { (eval echo configure:5489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5489   rm -rf conftest*
5490   eval "ac_cv_func_$ac_func=yes"
5491 else
5492   echo "configure: failed program was:" >&5
5493   cat conftest.$ac_ext >&5
5494   rm -rf conftest*
5495   eval "ac_cv_func_$ac_func=no"
5496 fi
5497 rm -f conftest*
5498 fi
5499
5500 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5501   echo "$ac_t""yes" 1>&6
5502     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5503   cat >> confdefs.h <<EOF
5504 #define $ac_tr_func 1
5505 EOF
5506  
5507 else
5508   echo "$ac_t""no" 1>&6
5509 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5510 fi
5511 done
5512
5513   fi
5514
5515   
5516
5517       
5518
5519       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5520 echo "configure:5521: checking for mbstate_t" >&5
5521   cat > conftest.$ac_ext <<EOF
5522 #line 5523 "configure"
5523 #include "confdefs.h"
5524 #include <wchar.h>
5525 int main() {
5526 mbstate_t teststate;
5527 ; return 0; }
5528 EOF
5529 if { (eval echo configure:5530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5530   rm -rf conftest*
5531   have_mbstate_t=yes
5532 else
5533   echo "configure: failed program was:" >&5
5534   cat conftest.$ac_ext >&5
5535   rm -rf conftest*
5536   have_mbstate_t=no
5537 fi
5538 rm -f conftest*
5539   echo "$ac_t""$have_mbstate_t" 1>&6
5540   if test x"$have_mbstate_t" = xyes; then
5541     cat >> confdefs.h <<\EOF
5542 #define HAVE_MBSTATE_T 1
5543 EOF
5544
5545   fi
5546
5547     for ac_hdr in wchar.h
5548 do
5549 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5550 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5551 echo "configure:5552: checking for $ac_hdr" >&5
5552 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5553   echo $ac_n "(cached) $ac_c" 1>&6
5554 else
5555   cat > conftest.$ac_ext <<EOF
5556 #line 5557 "configure"
5557 #include "confdefs.h"
5558 #include <$ac_hdr>
5559 EOF
5560 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5561 { (eval echo configure:5562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5562 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5563 if test -z "$ac_err"; then
5564   rm -rf conftest*
5565   eval "ac_cv_header_$ac_safe=yes"
5566 else
5567   echo "$ac_err" >&5
5568   echo "configure: failed program was:" >&5
5569   cat conftest.$ac_ext >&5
5570   rm -rf conftest*
5571   eval "ac_cv_header_$ac_safe=no"
5572 fi
5573 rm -f conftest*
5574 fi
5575 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5576   echo "$ac_t""yes" 1>&6
5577     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5578   cat >> confdefs.h <<EOF
5579 #define $ac_tr_hdr 1
5580 EOF
5581  ac_has_wchar_h=yes
5582 else
5583   echo "$ac_t""no" 1>&6
5584 ac_has_wchar_h=no
5585 fi
5586 done
5587
5588   for ac_hdr in wctype.h
5589 do
5590 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5591 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5592 echo "configure:5593: checking for $ac_hdr" >&5
5593 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5594   echo $ac_n "(cached) $ac_c" 1>&6
5595 else
5596   cat > conftest.$ac_ext <<EOF
5597 #line 5598 "configure"
5598 #include "confdefs.h"
5599 #include <$ac_hdr>
5600 EOF
5601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5602 { (eval echo configure:5603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5604 if test -z "$ac_err"; then
5605   rm -rf conftest*
5606   eval "ac_cv_header_$ac_safe=yes"
5607 else
5608   echo "$ac_err" >&5
5609   echo "configure: failed program was:" >&5
5610   cat conftest.$ac_ext >&5
5611   rm -rf conftest*
5612   eval "ac_cv_header_$ac_safe=no"
5613 fi
5614 rm -f conftest*
5615 fi
5616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5617   echo "$ac_t""yes" 1>&6
5618     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5619   cat >> confdefs.h <<EOF
5620 #define $ac_tr_hdr 1
5621 EOF
5622  ac_has_wctype_h=yes
5623 else
5624   echo "$ac_t""no" 1>&6
5625 ac_has_wctype_h=no
5626 fi
5627 done
5628
5629   
5630     if test x"$ac_has_wchar_h" = xyes &&
5631      test x"$ac_has_wctype_h" = xyes &&
5632      test x"$enable_c_mbchar" != xno; then
5633       
5634             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5635 echo "configure:5636: checking for WCHAR_MIN and WCHAR_MAX" >&5
5636     cat > conftest.$ac_ext <<EOF
5637 #line 5638 "configure"
5638 #include "confdefs.h"
5639 #include <wchar.h>
5640 int main() {
5641 int i = WCHAR_MIN; int j = WCHAR_MAX;
5642 ; return 0; }
5643 EOF
5644 if { (eval echo configure:5645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5645   rm -rf conftest*
5646   has_wchar_minmax=yes
5647 else
5648   echo "configure: failed program was:" >&5
5649   cat conftest.$ac_ext >&5
5650   rm -rf conftest*
5651   has_wchar_minmax=no
5652 fi
5653 rm -f conftest*
5654     echo "$ac_t""$has_wchar_minmax" 1>&6
5655     
5656             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5657 echo "configure:5658: checking for WEOF" >&5
5658     cat > conftest.$ac_ext <<EOF
5659 #line 5660 "configure"
5660 #include "confdefs.h"
5661
5662       #include <wchar.h>
5663       #include <stddef.h>
5664 int main() {
5665 wint_t i = WEOF;
5666 ; return 0; }
5667 EOF
5668 if { (eval echo configure:5669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5669   rm -rf conftest*
5670   has_weof=yes
5671 else
5672   echo "configure: failed program was:" >&5
5673   cat conftest.$ac_ext >&5
5674   rm -rf conftest*
5675   has_weof=no
5676 fi
5677 rm -f conftest*
5678     echo "$ac_t""$has_weof" 1>&6
5679   
5680         ac_wfuncs=yes
5681     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5682 do
5683 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5684 echo "configure:5685: checking for $ac_func" >&5
5685 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5686   echo $ac_n "(cached) $ac_c" 1>&6
5687 else
5688   cat > conftest.$ac_ext <<EOF
5689 #line 5690 "configure"
5690 #include "confdefs.h"
5691 /* System header to define __stub macros and hopefully few prototypes,
5692     which can conflict with char $ac_func(); below.  */
5693 #include <assert.h>
5694 /* Override any gcc2 internal prototype to avoid an error.  */
5695 /* We use char because int might match the return type of a gcc2
5696     builtin and then its argument prototype would still apply.  */
5697 char $ac_func();
5698
5699 int main() {
5700
5701 /* The GNU C library defines this for functions which it implements
5702     to always fail with ENOSYS.  Some functions are actually named
5703     something starting with __ and the normal name is an alias.  */
5704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5705 choke me
5706 #else
5707 $ac_func();
5708 #endif
5709
5710 ; return 0; }
5711 EOF
5712 if { (eval echo configure:5713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5713   rm -rf conftest*
5714   eval "ac_cv_func_$ac_func=yes"
5715 else
5716   echo "configure: failed program was:" >&5
5717   cat conftest.$ac_ext >&5
5718   rm -rf conftest*
5719   eval "ac_cv_func_$ac_func=no"
5720 fi
5721 rm -f conftest*
5722 fi
5723
5724 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5725   echo "$ac_t""yes" 1>&6
5726     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5727   cat >> confdefs.h <<EOF
5728 #define $ac_tr_func 1
5729 EOF
5730  
5731 else
5732   echo "$ac_t""no" 1>&6
5733 \
5734     ac_wfuncs=no
5735 fi
5736 done
5737
5738   
5739         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5740     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5741     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5742     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5743     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5744     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5745 do
5746 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5747 echo "configure:5748: checking for $ac_func" >&5
5748 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5749   echo $ac_n "(cached) $ac_c" 1>&6
5750 else
5751   cat > conftest.$ac_ext <<EOF
5752 #line 5753 "configure"
5753 #include "confdefs.h"
5754 /* System header to define __stub macros and hopefully few prototypes,
5755     which can conflict with char $ac_func(); below.  */
5756 #include <assert.h>
5757 /* Override any gcc2 internal prototype to avoid an error.  */
5758 /* We use char because int might match the return type of a gcc2
5759     builtin and then its argument prototype would still apply.  */
5760 char $ac_func();
5761
5762 int main() {
5763
5764 /* The GNU C library defines this for functions which it implements
5765     to always fail with ENOSYS.  Some functions are actually named
5766     something starting with __ and the normal name is an alias.  */
5767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5768 choke me
5769 #else
5770 $ac_func();
5771 #endif
5772
5773 ; return 0; }
5774 EOF
5775 if { (eval echo configure:5776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5776   rm -rf conftest*
5777   eval "ac_cv_func_$ac_func=yes"
5778 else
5779   echo "configure: failed program was:" >&5
5780   cat conftest.$ac_ext >&5
5781   rm -rf conftest*
5782   eval "ac_cv_func_$ac_func=no"
5783 fi
5784 rm -f conftest*
5785 fi
5786
5787 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5788   echo "$ac_t""yes" 1>&6
5789     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5790   cat >> confdefs.h <<EOF
5791 #define $ac_tr_func 1
5792 EOF
5793  
5794 else
5795   echo "$ac_t""no" 1>&6
5796 \
5797     ac_wfuncs=no
5798 fi
5799 done
5800
5801
5802     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5803 echo "configure:5804: checking for ISO C99 wchar_t support" >&5
5804     if test x"$has_weof" = xyes &&
5805        test x"$has_wchar_minmax" = xyes &&
5806        test x"$ac_wfuncs" = xyes; then
5807       ac_isoC99_wchar_t=yes
5808     else
5809       ac_isoC99_wchar_t=no
5810     fi
5811     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5812   
5813             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5814 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5815 echo "configure:5816: checking for iconv.h" >&5
5816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5817   echo $ac_n "(cached) $ac_c" 1>&6
5818 else
5819   cat > conftest.$ac_ext <<EOF
5820 #line 5821 "configure"
5821 #include "confdefs.h"
5822 #include <iconv.h>
5823 EOF
5824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5825 { (eval echo configure:5826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5827 if test -z "$ac_err"; then
5828   rm -rf conftest*
5829   eval "ac_cv_header_$ac_safe=yes"
5830 else
5831   echo "$ac_err" >&5
5832   echo "configure: failed program was:" >&5
5833   cat conftest.$ac_ext >&5
5834   rm -rf conftest*
5835   eval "ac_cv_header_$ac_safe=no"
5836 fi
5837 rm -f conftest*
5838 fi
5839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5840   echo "$ac_t""yes" 1>&6
5841   ac_has_iconv_h=yes
5842 else
5843   echo "$ac_t""no" 1>&6
5844 ac_has_iconv_h=no
5845 fi
5846
5847     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5848 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5849 echo "configure:5850: checking for langinfo.h" >&5
5850 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5851   echo $ac_n "(cached) $ac_c" 1>&6
5852 else
5853   cat > conftest.$ac_ext <<EOF
5854 #line 5855 "configure"
5855 #include "confdefs.h"
5856 #include <langinfo.h>
5857 EOF
5858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5859 { (eval echo configure:5860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5861 if test -z "$ac_err"; then
5862   rm -rf conftest*
5863   eval "ac_cv_header_$ac_safe=yes"
5864 else
5865   echo "$ac_err" >&5
5866   echo "configure: failed program was:" >&5
5867   cat conftest.$ac_ext >&5
5868   rm -rf conftest*
5869   eval "ac_cv_header_$ac_safe=no"
5870 fi
5871 rm -f conftest*
5872 fi
5873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5874   echo "$ac_t""yes" 1>&6
5875   ac_has_langinfo_h=yes
5876 else
5877   echo "$ac_t""no" 1>&6
5878 ac_has_langinfo_h=no
5879 fi
5880
5881
5882         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5883 echo "configure:5884: checking for iconv in -liconv" >&5
5884 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5885 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5886   echo $ac_n "(cached) $ac_c" 1>&6
5887 else
5888   ac_save_LIBS="$LIBS"
5889 LIBS="-liconv  $LIBS"
5890 cat > conftest.$ac_ext <<EOF
5891 #line 5892 "configure"
5892 #include "confdefs.h"
5893 /* Override any gcc2 internal prototype to avoid an error.  */
5894 /* We use char because int might match the return type of a gcc2
5895     builtin and then its argument prototype would still apply.  */
5896 char iconv();
5897
5898 int main() {
5899 iconv()
5900 ; return 0; }
5901 EOF
5902 if { (eval echo configure:5903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5903   rm -rf conftest*
5904   eval "ac_cv_lib_$ac_lib_var=yes"
5905 else
5906   echo "configure: failed program was:" >&5
5907   cat conftest.$ac_ext >&5
5908   rm -rf conftest*
5909   eval "ac_cv_lib_$ac_lib_var=no"
5910 fi
5911 rm -f conftest*
5912 LIBS="$ac_save_LIBS"
5913
5914 fi
5915 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5916   echo "$ac_t""yes" 1>&6
5917   libiconv="-liconv"
5918 else
5919   echo "$ac_t""no" 1>&6
5920 fi
5921
5922     ac_save_LIBS="$LIBS"
5923     LIBS="$LIBS $libiconv"
5924
5925     for ac_func in iconv_open iconv_close iconv nl_langinfo
5926 do
5927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5928 echo "configure:5929: checking for $ac_func" >&5
5929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5930   echo $ac_n "(cached) $ac_c" 1>&6
5931 else
5932   cat > conftest.$ac_ext <<EOF
5933 #line 5934 "configure"
5934 #include "confdefs.h"
5935 /* System header to define __stub macros and hopefully few prototypes,
5936     which can conflict with char $ac_func(); below.  */
5937 #include <assert.h>
5938 /* Override any gcc2 internal prototype to avoid an error.  */
5939 /* We use char because int might match the return type of a gcc2
5940     builtin and then its argument prototype would still apply.  */
5941 char $ac_func();
5942
5943 int main() {
5944
5945 /* The GNU C library defines this for functions which it implements
5946     to always fail with ENOSYS.  Some functions are actually named
5947     something starting with __ and the normal name is an alias.  */
5948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5949 choke me
5950 #else
5951 $ac_func();
5952 #endif
5953
5954 ; return 0; }
5955 EOF
5956 if { (eval echo configure:5957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5957   rm -rf conftest*
5958   eval "ac_cv_func_$ac_func=yes"
5959 else
5960   echo "configure: failed program was:" >&5
5961   cat conftest.$ac_ext >&5
5962   rm -rf conftest*
5963   eval "ac_cv_func_$ac_func=no"
5964 fi
5965 rm -f conftest*
5966 fi
5967
5968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5969   echo "$ac_t""yes" 1>&6
5970     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5971   cat >> confdefs.h <<EOF
5972 #define $ac_tr_func 1
5973 EOF
5974  \
5975     ac_XPG2funcs=yes
5976 else
5977   echo "$ac_t""no" 1>&6
5978 ac_XPG2funcs=no
5979 fi
5980 done
5981
5982   
5983     LIBS="$ac_save_LIBS"
5984
5985     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5986 echo "configure:5987: checking for XPG2 wchar_t support" >&5
5987     if test x"$ac_has_iconv_h" = xyes &&
5988        test x"$ac_has_langinfo_h" = xyes &&
5989        test x"$ac_XPG2funcs" = xyes; then
5990       ac_XPG2_wchar_t=yes
5991     else
5992       ac_XPG2_wchar_t=no
5993     fi
5994     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5995   
5996             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5997 echo "configure:5998: checking for enabled wchar_t specializations" >&5
5998     if test x"$ac_isoC99_wchar_t" = xyes &&
5999        test x"$ac_XPG2_wchar_t" = xyes; then
6000       cat >> confdefs.h <<\EOF
6001 #define _GLIBCPP_USE_WCHAR_T 1
6002 EOF
6003
6004       echo "$ac_t"""yes"" 1>&6
6005     else
6006       echo "$ac_t"""no"" 1>&6
6007     fi
6008   else
6009         echo "configure: warning: wchar_t support disabled." 1>&2
6010   fi
6011
6012       os_include_dir="os/hpux"
6013       cat >> confdefs.h <<\EOF
6014 #define HAVE_COPYSIGN 1
6015 EOF
6016
6017       cat >> confdefs.h <<\EOF
6018 #define HAVE_COPYSIGNF 1
6019 EOF
6020
6021       cat >> confdefs.h <<\EOF
6022 #define HAVE_FREXPF 1
6023 EOF
6024
6025       cat >> confdefs.h <<\EOF
6026 #define HAVE_HYPOT 1
6027 EOF
6028
6029       case "$target_alias" in
6030         *-hpux10*)
6031           cat >> confdefs.h <<\EOF
6032 #define HAVE_FINITE 1
6033 EOF
6034
6035           cat >> confdefs.h <<\EOF
6036 #define HAVE_FINITEF 1
6037 EOF
6038
6039           cat >> confdefs.h <<\EOF
6040 #define HAVE_ISINF 1
6041 EOF
6042
6043           cat >> confdefs.h <<\EOF
6044 #define HAVE_ISINFF 1
6045 EOF
6046
6047           cat >> confdefs.h <<\EOF
6048 #define HAVE_ISNAN 1
6049 EOF
6050
6051           cat >> confdefs.h <<\EOF
6052 #define HAVE_ISNANF 1
6053 EOF
6054
6055           ;;
6056       esac
6057
6058       ;;
6059     *-netbsd*)
6060       # Check for available headers.
6061       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6062         machine/endian.h machine/param.h sys/machine.h sys/types.h \
6063         fp.h locale.h float.h inttypes.h
6064 do
6065 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6066 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6067 echo "configure:6068: checking for $ac_hdr" >&5
6068 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6069   echo $ac_n "(cached) $ac_c" 1>&6
6070 else
6071   cat > conftest.$ac_ext <<EOF
6072 #line 6073 "configure"
6073 #include "confdefs.h"
6074 #include <$ac_hdr>
6075 EOF
6076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6077 { (eval echo configure:6078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6079 if test -z "$ac_err"; then
6080   rm -rf conftest*
6081   eval "ac_cv_header_$ac_safe=yes"
6082 else
6083   echo "$ac_err" >&5
6084   echo "configure: failed program was:" >&5
6085   cat conftest.$ac_ext >&5
6086   rm -rf conftest*
6087   eval "ac_cv_header_$ac_safe=no"
6088 fi
6089 rm -f conftest*
6090 fi
6091 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6092   echo "$ac_t""yes" 1>&6
6093     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6094   cat >> confdefs.h <<EOF
6095 #define $ac_tr_hdr 1
6096 EOF
6097  
6098 else
6099   echo "$ac_t""no" 1>&6
6100 fi
6101 done
6102
6103       SECTION_FLAGS='-ffunction-sections -fdata-sections'
6104        
6105       
6106   # If we're not using GNU ld, then there's no point in even trying these
6107   # tests.  Check for that first.  We should have already tested for gld
6108   # by now (in libtool), but require it now just to be safe...
6109   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6110   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6111   
6112
6113   # The name set by libtool depends on the version of libtool.  Shame on us
6114   # for depending on an impl detail, but c'est la vie.  Older versions used
6115   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6116   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6117   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6118   # set (hence we're using an older libtool), then set it.
6119   if test x${with_gnu_ld+set} != xset; then
6120     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6121       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6122       with_gnu_ld=no
6123     else
6124       with_gnu_ld=$ac_cv_prog_gnu_ld
6125     fi
6126   fi
6127
6128   # Start by getting the version number.  I think the libtool test already
6129   # does some of this, but throws away the result.
6130   
6131   ldver=`$LD --version 2>/dev/null | head -1 | \
6132          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6133   
6134   glibcpp_gnu_ld_version=`echo $ldver | \
6135          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6136
6137   # Set --gc-sections.
6138   if test "$with_gnu_ld" = "notbroken"; then
6139     # GNU ld it is!  Joy and bunny rabbits!
6140
6141     # All these tests are for C++; save the language and the compiler flags.
6142     # Need to do this so that g++ won't try to link in libstdc++
6143     ac_test_CFLAGS="${CFLAGS+set}"
6144     ac_save_CFLAGS="$CFLAGS"
6145     CFLAGS='-x c++  -Wl,--gc-sections'
6146
6147     # Check for -Wl,--gc-sections
6148     # XXX This test is broken at the moment, as symbols required for
6149     # linking are now in libsupc++ (not built yet.....). In addition, 
6150     # this test has cored on solaris in the past. In addition,
6151     # --gc-sections doesn't really work at the moment (keeps on discarding
6152     # used sections, first .eh_frame and now some of the glibc sections for
6153     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6154     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6155 echo "configure:6156: checking for ld that supports -Wl,--gc-sections" >&5
6156     if test "$cross_compiling" = yes; then
6157   ac_sectionLDflags=yes
6158 else
6159   cat > conftest.$ac_ext <<EOF
6160 #line 6161 "configure"
6161 #include "confdefs.h"
6162
6163      int main(void) 
6164      {
6165        try { throw 1; }
6166        catch (...) { };
6167        return 0;
6168      }
6169     
6170 EOF
6171 if { (eval echo configure:6172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6172 then
6173   ac_sectionLDflags=yes
6174 else
6175   echo "configure: failed program was:" >&5
6176   cat conftest.$ac_ext >&5
6177   rm -fr conftest*
6178   ac_sectionLDflags=no
6179 fi
6180 rm -fr conftest*
6181 fi
6182
6183     if test "$ac_test_CFLAGS" = set; then
6184       CFLAGS="$ac_save_CFLAGS"
6185     else
6186       # this is the suspicious part
6187       CFLAGS=''
6188     fi
6189     if test "$ac_sectionLDflags" = "yes"; then
6190       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6191     fi
6192     echo "$ac_t""$ac_sectionLDflags" 1>&6
6193   fi
6194
6195   # Set linker optimization flags.
6196   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
6197     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6198   fi
6199
6200   
6201   
6202
6203       
6204     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6205 echo "configure:6206: checking for main in -lm" >&5
6206 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6207 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6208   echo $ac_n "(cached) $ac_c" 1>&6
6209 else
6210   ac_save_LIBS="$LIBS"
6211 LIBS="-lm  $LIBS"
6212 cat > conftest.$ac_ext <<EOF
6213 #line 6214 "configure"
6214 #include "confdefs.h"
6215
6216 int main() {
6217 main()
6218 ; return 0; }
6219 EOF
6220 if { (eval echo configure:6221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6221   rm -rf conftest*
6222   eval "ac_cv_lib_$ac_lib_var=yes"
6223 else
6224   echo "configure: failed program was:" >&5
6225   cat conftest.$ac_ext >&5
6226   rm -rf conftest*
6227   eval "ac_cv_lib_$ac_lib_var=no"
6228 fi
6229 rm -f conftest*
6230 LIBS="$ac_save_LIBS"
6231
6232 fi
6233 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6234   echo "$ac_t""yes" 1>&6
6235     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6236     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6237   cat >> confdefs.h <<EOF
6238 #define $ac_tr_lib 1
6239 EOF
6240
6241   LIBS="-lm $LIBS"
6242
6243 else
6244   echo "$ac_t""no" 1>&6
6245 fi
6246
6247   for ac_func in nan copysignf
6248 do
6249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6250 echo "configure:6251: checking for $ac_func" >&5
6251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6252   echo $ac_n "(cached) $ac_c" 1>&6
6253 else
6254   cat > conftest.$ac_ext <<EOF
6255 #line 6256 "configure"
6256 #include "confdefs.h"
6257 /* System header to define __stub macros and hopefully few prototypes,
6258     which can conflict with char $ac_func(); below.  */
6259 #include <assert.h>
6260 /* Override any gcc2 internal prototype to avoid an error.  */
6261 /* We use char because int might match the return type of a gcc2
6262     builtin and then its argument prototype would still apply.  */
6263 char $ac_func();
6264
6265 int main() {
6266
6267 /* The GNU C library defines this for functions which it implements
6268     to always fail with ENOSYS.  Some functions are actually named
6269     something starting with __ and the normal name is an alias.  */
6270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6271 choke me
6272 #else
6273 $ac_func();
6274 #endif
6275
6276 ; return 0; }
6277 EOF
6278 if { (eval echo configure:6279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6279   rm -rf conftest*
6280   eval "ac_cv_func_$ac_func=yes"
6281 else
6282   echo "configure: failed program was:" >&5
6283   cat conftest.$ac_ext >&5
6284   rm -rf conftest*
6285   eval "ac_cv_func_$ac_func=no"
6286 fi
6287 rm -f conftest*
6288 fi
6289
6290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6291   echo "$ac_t""yes" 1>&6
6292     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6293   cat >> confdefs.h <<EOF
6294 #define $ac_tr_func 1
6295 EOF
6296  
6297 else
6298   echo "$ac_t""no" 1>&6
6299 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6300 fi
6301 done
6302
6303
6304     for ac_func in __signbit
6305 do
6306 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6307 echo "configure:6308: checking for $ac_func" >&5
6308 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6309   echo $ac_n "(cached) $ac_c" 1>&6
6310 else
6311   cat > conftest.$ac_ext <<EOF
6312 #line 6313 "configure"
6313 #include "confdefs.h"
6314 /* System header to define __stub macros and hopefully few prototypes,
6315     which can conflict with char $ac_func(); below.  */
6316 #include <assert.h>
6317 /* Override any gcc2 internal prototype to avoid an error.  */
6318 /* We use char because int might match the return type of a gcc2
6319     builtin and then its argument prototype would still apply.  */
6320 char $ac_func();
6321
6322 int main() {
6323
6324 /* The GNU C library defines this for functions which it implements
6325     to always fail with ENOSYS.  Some functions are actually named
6326     something starting with __ and the normal name is an alias.  */
6327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6328 choke me
6329 #else
6330 $ac_func();
6331 #endif
6332
6333 ; return 0; }
6334 EOF
6335 if { (eval echo configure:6336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6336   rm -rf conftest*
6337   eval "ac_cv_func_$ac_func=yes"
6338 else
6339   echo "configure: failed program was:" >&5
6340   cat conftest.$ac_ext >&5
6341   rm -rf conftest*
6342   eval "ac_cv_func_$ac_func=no"
6343 fi
6344 rm -f conftest*
6345 fi
6346
6347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6348   echo "$ac_t""yes" 1>&6
6349     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6350   cat >> confdefs.h <<EOF
6351 #define $ac_tr_func 1
6352 EOF
6353  
6354 else
6355   echo "$ac_t""no" 1>&6
6356 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6357 fi
6358 done
6359
6360   for ac_func in __signbitf
6361 do
6362 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6363 echo "configure:6364: checking for $ac_func" >&5
6364 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6365   echo $ac_n "(cached) $ac_c" 1>&6
6366 else
6367   cat > conftest.$ac_ext <<EOF
6368 #line 6369 "configure"
6369 #include "confdefs.h"
6370 /* System header to define __stub macros and hopefully few prototypes,
6371     which can conflict with char $ac_func(); below.  */
6372 #include <assert.h>
6373 /* Override any gcc2 internal prototype to avoid an error.  */
6374 /* We use char because int might match the return type of a gcc2
6375     builtin and then its argument prototype would still apply.  */
6376 char $ac_func();
6377
6378 int main() {
6379
6380 /* The GNU C library defines this for functions which it implements
6381     to always fail with ENOSYS.  Some functions are actually named
6382     something starting with __ and the normal name is an alias.  */
6383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6384 choke me
6385 #else
6386 $ac_func();
6387 #endif
6388
6389 ; return 0; }
6390 EOF
6391 if { (eval echo configure:6392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6392   rm -rf conftest*
6393   eval "ac_cv_func_$ac_func=yes"
6394 else
6395   echo "configure: failed program was:" >&5
6396   cat conftest.$ac_ext >&5
6397   rm -rf conftest*
6398   eval "ac_cv_func_$ac_func=no"
6399 fi
6400 rm -f conftest*
6401 fi
6402
6403 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6404   echo "$ac_t""yes" 1>&6
6405     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6406   cat >> confdefs.h <<EOF
6407 #define $ac_tr_func 1
6408 EOF
6409  
6410 else
6411   echo "$ac_t""no" 1>&6
6412 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6413 fi
6414 done
6415
6416
6417           if test x$ac_cv_func_copysignl = x"yes"; then
6418     for ac_func in __signbitl
6419 do
6420 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6421 echo "configure:6422: checking for $ac_func" >&5
6422 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6423   echo $ac_n "(cached) $ac_c" 1>&6
6424 else
6425   cat > conftest.$ac_ext <<EOF
6426 #line 6427 "configure"
6427 #include "confdefs.h"
6428 /* System header to define __stub macros and hopefully few prototypes,
6429     which can conflict with char $ac_func(); below.  */
6430 #include <assert.h>
6431 /* Override any gcc2 internal prototype to avoid an error.  */
6432 /* We use char because int might match the return type of a gcc2
6433     builtin and then its argument prototype would still apply.  */
6434 char $ac_func();
6435
6436 int main() {
6437
6438 /* The GNU C library defines this for functions which it implements
6439     to always fail with ENOSYS.  Some functions are actually named
6440     something starting with __ and the normal name is an alias.  */
6441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6442 choke me
6443 #else
6444 $ac_func();
6445 #endif
6446
6447 ; return 0; }
6448 EOF
6449 if { (eval echo configure:6450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6450   rm -rf conftest*
6451   eval "ac_cv_func_$ac_func=yes"
6452 else
6453   echo "configure: failed program was:" >&5
6454   cat conftest.$ac_ext >&5
6455   rm -rf conftest*
6456   eval "ac_cv_func_$ac_func=no"
6457 fi
6458 rm -f conftest*
6459 fi
6460
6461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6462   echo "$ac_t""yes" 1>&6
6463     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6464   cat >> confdefs.h <<EOF
6465 #define $ac_tr_func 1
6466 EOF
6467  
6468 else
6469   echo "$ac_t""no" 1>&6
6470 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6471 fi
6472 done
6473
6474   fi
6475
6476   
6477
6478       
6479
6480       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6481 echo "configure:6482: checking for mbstate_t" >&5
6482   cat > conftest.$ac_ext <<EOF
6483 #line 6484 "configure"
6484 #include "confdefs.h"
6485 #include <wchar.h>
6486 int main() {
6487 mbstate_t teststate;
6488 ; return 0; }
6489 EOF
6490 if { (eval echo configure:6491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6491   rm -rf conftest*
6492   have_mbstate_t=yes
6493 else
6494   echo "configure: failed program was:" >&5
6495   cat conftest.$ac_ext >&5
6496   rm -rf conftest*
6497   have_mbstate_t=no
6498 fi
6499 rm -f conftest*
6500   echo "$ac_t""$have_mbstate_t" 1>&6
6501   if test x"$have_mbstate_t" = xyes; then
6502     cat >> confdefs.h <<\EOF
6503 #define HAVE_MBSTATE_T 1
6504 EOF
6505
6506   fi
6507
6508     for ac_hdr in wchar.h
6509 do
6510 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6511 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6512 echo "configure:6513: checking for $ac_hdr" >&5
6513 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6514   echo $ac_n "(cached) $ac_c" 1>&6
6515 else
6516   cat > conftest.$ac_ext <<EOF
6517 #line 6518 "configure"
6518 #include "confdefs.h"
6519 #include <$ac_hdr>
6520 EOF
6521 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6522 { (eval echo configure:6523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6523 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6524 if test -z "$ac_err"; then
6525   rm -rf conftest*
6526   eval "ac_cv_header_$ac_safe=yes"
6527 else
6528   echo "$ac_err" >&5
6529   echo "configure: failed program was:" >&5
6530   cat conftest.$ac_ext >&5
6531   rm -rf conftest*
6532   eval "ac_cv_header_$ac_safe=no"
6533 fi
6534 rm -f conftest*
6535 fi
6536 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6537   echo "$ac_t""yes" 1>&6
6538     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6539   cat >> confdefs.h <<EOF
6540 #define $ac_tr_hdr 1
6541 EOF
6542  ac_has_wchar_h=yes
6543 else
6544   echo "$ac_t""no" 1>&6
6545 ac_has_wchar_h=no
6546 fi
6547 done
6548
6549   for ac_hdr in wctype.h
6550 do
6551 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6552 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6553 echo "configure:6554: checking for $ac_hdr" >&5
6554 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6555   echo $ac_n "(cached) $ac_c" 1>&6
6556 else
6557   cat > conftest.$ac_ext <<EOF
6558 #line 6559 "configure"
6559 #include "confdefs.h"
6560 #include <$ac_hdr>
6561 EOF
6562 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6563 { (eval echo configure:6564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6564 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6565 if test -z "$ac_err"; then
6566   rm -rf conftest*
6567   eval "ac_cv_header_$ac_safe=yes"
6568 else
6569   echo "$ac_err" >&5
6570   echo "configure: failed program was:" >&5
6571   cat conftest.$ac_ext >&5
6572   rm -rf conftest*
6573   eval "ac_cv_header_$ac_safe=no"
6574 fi
6575 rm -f conftest*
6576 fi
6577 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6578   echo "$ac_t""yes" 1>&6
6579     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6580   cat >> confdefs.h <<EOF
6581 #define $ac_tr_hdr 1
6582 EOF
6583  ac_has_wctype_h=yes
6584 else
6585   echo "$ac_t""no" 1>&6
6586 ac_has_wctype_h=no
6587 fi
6588 done
6589
6590   
6591     if test x"$ac_has_wchar_h" = xyes &&
6592      test x"$ac_has_wctype_h" = xyes &&
6593      test x"$enable_c_mbchar" != xno; then
6594       
6595             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6596 echo "configure:6597: checking for WCHAR_MIN and WCHAR_MAX" >&5
6597     cat > conftest.$ac_ext <<EOF
6598 #line 6599 "configure"
6599 #include "confdefs.h"
6600 #include <wchar.h>
6601 int main() {
6602 int i = WCHAR_MIN; int j = WCHAR_MAX;
6603 ; return 0; }
6604 EOF
6605 if { (eval echo configure:6606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6606   rm -rf conftest*
6607   has_wchar_minmax=yes
6608 else
6609   echo "configure: failed program was:" >&5
6610   cat conftest.$ac_ext >&5
6611   rm -rf conftest*
6612   has_wchar_minmax=no
6613 fi
6614 rm -f conftest*
6615     echo "$ac_t""$has_wchar_minmax" 1>&6
6616     
6617             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6618 echo "configure:6619: checking for WEOF" >&5
6619     cat > conftest.$ac_ext <<EOF
6620 #line 6621 "configure"
6621 #include "confdefs.h"
6622
6623       #include <wchar.h>
6624       #include <stddef.h>
6625 int main() {
6626 wint_t i = WEOF;
6627 ; return 0; }
6628 EOF
6629 if { (eval echo configure:6630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6630   rm -rf conftest*
6631   has_weof=yes
6632 else
6633   echo "configure: failed program was:" >&5
6634   cat conftest.$ac_ext >&5
6635   rm -rf conftest*
6636   has_weof=no
6637 fi
6638 rm -f conftest*
6639     echo "$ac_t""$has_weof" 1>&6
6640   
6641         ac_wfuncs=yes
6642     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6643 do
6644 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6645 echo "configure:6646: checking for $ac_func" >&5
6646 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6647   echo $ac_n "(cached) $ac_c" 1>&6
6648 else
6649   cat > conftest.$ac_ext <<EOF
6650 #line 6651 "configure"
6651 #include "confdefs.h"
6652 /* System header to define __stub macros and hopefully few prototypes,
6653     which can conflict with char $ac_func(); below.  */
6654 #include <assert.h>
6655 /* Override any gcc2 internal prototype to avoid an error.  */
6656 /* We use char because int might match the return type of a gcc2
6657     builtin and then its argument prototype would still apply.  */
6658 char $ac_func();
6659
6660 int main() {
6661
6662 /* The GNU C library defines this for functions which it implements
6663     to always fail with ENOSYS.  Some functions are actually named
6664     something starting with __ and the normal name is an alias.  */
6665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6666 choke me
6667 #else
6668 $ac_func();
6669 #endif
6670
6671 ; return 0; }
6672 EOF
6673 if { (eval echo configure:6674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6674   rm -rf conftest*
6675   eval "ac_cv_func_$ac_func=yes"
6676 else
6677   echo "configure: failed program was:" >&5
6678   cat conftest.$ac_ext >&5
6679   rm -rf conftest*
6680   eval "ac_cv_func_$ac_func=no"
6681 fi
6682 rm -f conftest*
6683 fi
6684
6685 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6686   echo "$ac_t""yes" 1>&6
6687     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6688   cat >> confdefs.h <<EOF
6689 #define $ac_tr_func 1
6690 EOF
6691  
6692 else
6693   echo "$ac_t""no" 1>&6
6694 \
6695     ac_wfuncs=no
6696 fi
6697 done
6698
6699   
6700         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6701     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6702     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6703     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6704     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6705     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6706 do
6707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6708 echo "configure:6709: checking for $ac_func" >&5
6709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6710   echo $ac_n "(cached) $ac_c" 1>&6
6711 else
6712   cat > conftest.$ac_ext <<EOF
6713 #line 6714 "configure"
6714 #include "confdefs.h"
6715 /* System header to define __stub macros and hopefully few prototypes,
6716     which can conflict with char $ac_func(); below.  */
6717 #include <assert.h>
6718 /* Override any gcc2 internal prototype to avoid an error.  */
6719 /* We use char because int might match the return type of a gcc2
6720     builtin and then its argument prototype would still apply.  */
6721 char $ac_func();
6722
6723 int main() {
6724
6725 /* The GNU C library defines this for functions which it implements
6726     to always fail with ENOSYS.  Some functions are actually named
6727     something starting with __ and the normal name is an alias.  */
6728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6729 choke me
6730 #else
6731 $ac_func();
6732 #endif
6733
6734 ; return 0; }
6735 EOF
6736 if { (eval echo configure:6737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6737   rm -rf conftest*
6738   eval "ac_cv_func_$ac_func=yes"
6739 else
6740   echo "configure: failed program was:" >&5
6741   cat conftest.$ac_ext >&5
6742   rm -rf conftest*
6743   eval "ac_cv_func_$ac_func=no"
6744 fi
6745 rm -f conftest*
6746 fi
6747
6748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6749   echo "$ac_t""yes" 1>&6
6750     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6751   cat >> confdefs.h <<EOF
6752 #define $ac_tr_func 1
6753 EOF
6754  
6755 else
6756   echo "$ac_t""no" 1>&6
6757 \
6758     ac_wfuncs=no
6759 fi
6760 done
6761
6762
6763     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6764 echo "configure:6765: checking for ISO C99 wchar_t support" >&5
6765     if test x"$has_weof" = xyes &&
6766        test x"$has_wchar_minmax" = xyes &&
6767        test x"$ac_wfuncs" = xyes; then
6768       ac_isoC99_wchar_t=yes
6769     else
6770       ac_isoC99_wchar_t=no
6771     fi
6772     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6773   
6774             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6775 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6776 echo "configure:6777: checking for iconv.h" >&5
6777 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6778   echo $ac_n "(cached) $ac_c" 1>&6
6779 else
6780   cat > conftest.$ac_ext <<EOF
6781 #line 6782 "configure"
6782 #include "confdefs.h"
6783 #include <iconv.h>
6784 EOF
6785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6786 { (eval echo configure:6787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6787 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6788 if test -z "$ac_err"; then
6789   rm -rf conftest*
6790   eval "ac_cv_header_$ac_safe=yes"
6791 else
6792   echo "$ac_err" >&5
6793   echo "configure: failed program was:" >&5
6794   cat conftest.$ac_ext >&5
6795   rm -rf conftest*
6796   eval "ac_cv_header_$ac_safe=no"
6797 fi
6798 rm -f conftest*
6799 fi
6800 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6801   echo "$ac_t""yes" 1>&6
6802   ac_has_iconv_h=yes
6803 else
6804   echo "$ac_t""no" 1>&6
6805 ac_has_iconv_h=no
6806 fi
6807
6808     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6809 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6810 echo "configure:6811: checking for langinfo.h" >&5
6811 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6812   echo $ac_n "(cached) $ac_c" 1>&6
6813 else
6814   cat > conftest.$ac_ext <<EOF
6815 #line 6816 "configure"
6816 #include "confdefs.h"
6817 #include <langinfo.h>
6818 EOF
6819 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6820 { (eval echo configure:6821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6821 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6822 if test -z "$ac_err"; then
6823   rm -rf conftest*
6824   eval "ac_cv_header_$ac_safe=yes"
6825 else
6826   echo "$ac_err" >&5
6827   echo "configure: failed program was:" >&5
6828   cat conftest.$ac_ext >&5
6829   rm -rf conftest*
6830   eval "ac_cv_header_$ac_safe=no"
6831 fi
6832 rm -f conftest*
6833 fi
6834 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6835   echo "$ac_t""yes" 1>&6
6836   ac_has_langinfo_h=yes
6837 else
6838   echo "$ac_t""no" 1>&6
6839 ac_has_langinfo_h=no
6840 fi
6841
6842
6843         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6844 echo "configure:6845: checking for iconv in -liconv" >&5
6845 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6846 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6847   echo $ac_n "(cached) $ac_c" 1>&6
6848 else
6849   ac_save_LIBS="$LIBS"
6850 LIBS="-liconv  $LIBS"
6851 cat > conftest.$ac_ext <<EOF
6852 #line 6853 "configure"
6853 #include "confdefs.h"
6854 /* Override any gcc2 internal prototype to avoid an error.  */
6855 /* We use char because int might match the return type of a gcc2
6856     builtin and then its argument prototype would still apply.  */
6857 char iconv();
6858
6859 int main() {
6860 iconv()
6861 ; return 0; }
6862 EOF
6863 if { (eval echo configure:6864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6864   rm -rf conftest*
6865   eval "ac_cv_lib_$ac_lib_var=yes"
6866 else
6867   echo "configure: failed program was:" >&5
6868   cat conftest.$ac_ext >&5
6869   rm -rf conftest*
6870   eval "ac_cv_lib_$ac_lib_var=no"
6871 fi
6872 rm -f conftest*
6873 LIBS="$ac_save_LIBS"
6874
6875 fi
6876 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6877   echo "$ac_t""yes" 1>&6
6878   libiconv="-liconv"
6879 else
6880   echo "$ac_t""no" 1>&6
6881 fi
6882
6883     ac_save_LIBS="$LIBS"
6884     LIBS="$LIBS $libiconv"
6885
6886     for ac_func in iconv_open iconv_close iconv nl_langinfo
6887 do
6888 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6889 echo "configure:6890: checking for $ac_func" >&5
6890 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6891   echo $ac_n "(cached) $ac_c" 1>&6
6892 else
6893   cat > conftest.$ac_ext <<EOF
6894 #line 6895 "configure"
6895 #include "confdefs.h"
6896 /* System header to define __stub macros and hopefully few prototypes,
6897     which can conflict with char $ac_func(); below.  */
6898 #include <assert.h>
6899 /* Override any gcc2 internal prototype to avoid an error.  */
6900 /* We use char because int might match the return type of a gcc2
6901     builtin and then its argument prototype would still apply.  */
6902 char $ac_func();
6903
6904 int main() {
6905
6906 /* The GNU C library defines this for functions which it implements
6907     to always fail with ENOSYS.  Some functions are actually named
6908     something starting with __ and the normal name is an alias.  */
6909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6910 choke me
6911 #else
6912 $ac_func();
6913 #endif
6914
6915 ; return 0; }
6916 EOF
6917 if { (eval echo configure:6918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6918   rm -rf conftest*
6919   eval "ac_cv_func_$ac_func=yes"
6920 else
6921   echo "configure: failed program was:" >&5
6922   cat conftest.$ac_ext >&5
6923   rm -rf conftest*
6924   eval "ac_cv_func_$ac_func=no"
6925 fi
6926 rm -f conftest*
6927 fi
6928
6929 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6930   echo "$ac_t""yes" 1>&6
6931     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6932   cat >> confdefs.h <<EOF
6933 #define $ac_tr_func 1
6934 EOF
6935  \
6936     ac_XPG2funcs=yes
6937 else
6938   echo "$ac_t""no" 1>&6
6939 ac_XPG2funcs=no
6940 fi
6941 done
6942
6943   
6944     LIBS="$ac_save_LIBS"
6945
6946     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6947 echo "configure:6948: checking for XPG2 wchar_t support" >&5
6948     if test x"$ac_has_iconv_h" = xyes &&
6949        test x"$ac_has_langinfo_h" = xyes &&
6950        test x"$ac_XPG2funcs" = xyes; then
6951       ac_XPG2_wchar_t=yes
6952     else
6953       ac_XPG2_wchar_t=no
6954     fi
6955     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6956   
6957             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6958 echo "configure:6959: checking for enabled wchar_t specializations" >&5
6959     if test x"$ac_isoC99_wchar_t" = xyes &&
6960        test x"$ac_XPG2_wchar_t" = xyes; then
6961       cat >> confdefs.h <<\EOF
6962 #define _GLIBCPP_USE_WCHAR_T 1
6963 EOF
6964
6965       echo "$ac_t"""yes"" 1>&6
6966     else
6967       echo "$ac_t"""no"" 1>&6
6968     fi
6969   else
6970         echo "configure: warning: wchar_t support disabled." 1>&2
6971   fi
6972
6973       os_include_dir="os/bsd/netbsd"
6974       cat >> confdefs.h <<\EOF
6975 #define HAVE_COPYSIGN 1
6976 EOF
6977
6978       cat >> confdefs.h <<\EOF
6979 #define HAVE_COPYSIGNF 1
6980 EOF
6981
6982       cat >> confdefs.h <<\EOF
6983 #define HAVE_FINITEF 1
6984 EOF
6985
6986       cat >> confdefs.h <<\EOF
6987 #define HAVE_FINITE 1
6988 EOF
6989
6990       cat >> confdefs.h <<\EOF
6991 #define HAVE_FREXPF 1
6992 EOF
6993
6994       cat >> confdefs.h <<\EOF
6995 #define HAVE_HYPOTF 1
6996 EOF
6997
6998       cat >> confdefs.h <<\EOF
6999 #define HAVE_ISINF 1
7000 EOF
7001
7002       cat >> confdefs.h <<\EOF
7003 #define HAVE_ISINFF 1
7004 EOF
7005
7006       cat >> confdefs.h <<\EOF
7007 #define HAVE_ISNAN 1
7008 EOF
7009
7010       cat >> confdefs.h <<\EOF
7011 #define HAVE_ISNANF 1
7012 EOF
7013
7014       if test x"long_double_math_on_this_cpu" = x"yes"; then
7015         cat >> confdefs.h <<\EOF
7016 #define HAVE_FINITEL 1
7017 EOF
7018
7019         cat >> confdefs.h <<\EOF
7020 #define HAVE_ISINFL 1
7021 EOF
7022
7023         cat >> confdefs.h <<\EOF
7024 #define HAVE_ISNANL 1
7025 EOF
7026
7027       fi
7028       ;;
7029     *-mingw32*)
7030       for ac_hdr in sys/types.h locale.h float.h
7031 do
7032 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7033 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7034 echo "configure:7035: checking for $ac_hdr" >&5
7035 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7036   echo $ac_n "(cached) $ac_c" 1>&6
7037 else
7038   cat > conftest.$ac_ext <<EOF
7039 #line 7040 "configure"
7040 #include "confdefs.h"
7041 #include <$ac_hdr>
7042 EOF
7043 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7044 { (eval echo configure:7045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7045 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7046 if test -z "$ac_err"; then
7047   rm -rf conftest*
7048   eval "ac_cv_header_$ac_safe=yes"
7049 else
7050   echo "$ac_err" >&5
7051   echo "configure: failed program was:" >&5
7052   cat conftest.$ac_ext >&5
7053   rm -rf conftest*
7054   eval "ac_cv_header_$ac_safe=no"
7055 fi
7056 rm -f conftest*
7057 fi
7058 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7059   echo "$ac_t""yes" 1>&6
7060     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7061   cat >> confdefs.h <<EOF
7062 #define $ac_tr_hdr 1
7063 EOF
7064  
7065 else
7066   echo "$ac_t""no" 1>&6
7067 fi
7068 done
7069
7070       
7071   # If we're not using GNU ld, then there's no point in even trying these
7072   # tests.  Check for that first.  We should have already tested for gld
7073   # by now (in libtool), but require it now just to be safe...
7074   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7075   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7076   
7077
7078   # The name set by libtool depends on the version of libtool.  Shame on us
7079   # for depending on an impl detail, but c'est la vie.  Older versions used
7080   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7081   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7082   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7083   # set (hence we're using an older libtool), then set it.
7084   if test x${with_gnu_ld+set} != xset; then
7085     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7086       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7087       with_gnu_ld=no
7088     else
7089       with_gnu_ld=$ac_cv_prog_gnu_ld
7090     fi
7091   fi
7092
7093   # Start by getting the version number.  I think the libtool test already
7094   # does some of this, but throws away the result.
7095   
7096   ldver=`$LD --version 2>/dev/null | head -1 | \
7097          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7098   
7099   glibcpp_gnu_ld_version=`echo $ldver | \
7100          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7101
7102   # Set --gc-sections.
7103   if test "$with_gnu_ld" = "notbroken"; then
7104     # GNU ld it is!  Joy and bunny rabbits!
7105
7106     # All these tests are for C++; save the language and the compiler flags.
7107     # Need to do this so that g++ won't try to link in libstdc++
7108     ac_test_CFLAGS="${CFLAGS+set}"
7109     ac_save_CFLAGS="$CFLAGS"
7110     CFLAGS='-x c++  -Wl,--gc-sections'
7111
7112     # Check for -Wl,--gc-sections
7113     # XXX This test is broken at the moment, as symbols required for
7114     # linking are now in libsupc++ (not built yet.....). In addition, 
7115     # this test has cored on solaris in the past. In addition,
7116     # --gc-sections doesn't really work at the moment (keeps on discarding
7117     # used sections, first .eh_frame and now some of the glibc sections for
7118     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7119     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7120 echo "configure:7121: checking for ld that supports -Wl,--gc-sections" >&5
7121     if test "$cross_compiling" = yes; then
7122   ac_sectionLDflags=yes
7123 else
7124   cat > conftest.$ac_ext <<EOF
7125 #line 7126 "configure"
7126 #include "confdefs.h"
7127
7128      int main(void) 
7129      {
7130        try { throw 1; }
7131        catch (...) { };
7132        return 0;
7133      }
7134     
7135 EOF
7136 if { (eval echo configure:7137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7137 then
7138   ac_sectionLDflags=yes
7139 else
7140   echo "configure: failed program was:" >&5
7141   cat conftest.$ac_ext >&5
7142   rm -fr conftest*
7143   ac_sectionLDflags=no
7144 fi
7145 rm -fr conftest*
7146 fi
7147
7148     if test "$ac_test_CFLAGS" = set; then
7149       CFLAGS="$ac_save_CFLAGS"
7150     else
7151       # this is the suspicious part
7152       CFLAGS=''
7153     fi
7154     if test "$ac_sectionLDflags" = "yes"; then
7155       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7156     fi
7157     echo "$ac_t""$ac_sectionLDflags" 1>&6
7158   fi
7159
7160   # Set linker optimization flags.
7161   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7162     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7163   fi
7164
7165   
7166   
7167
7168       
7169     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7170 echo "configure:7171: checking for main in -lm" >&5
7171 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7172 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7173   echo $ac_n "(cached) $ac_c" 1>&6
7174 else
7175   ac_save_LIBS="$LIBS"
7176 LIBS="-lm  $LIBS"
7177 cat > conftest.$ac_ext <<EOF
7178 #line 7179 "configure"
7179 #include "confdefs.h"
7180
7181 int main() {
7182 main()
7183 ; return 0; }
7184 EOF
7185 if { (eval echo configure:7186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7186   rm -rf conftest*
7187   eval "ac_cv_lib_$ac_lib_var=yes"
7188 else
7189   echo "configure: failed program was:" >&5
7190   cat conftest.$ac_ext >&5
7191   rm -rf conftest*
7192   eval "ac_cv_lib_$ac_lib_var=no"
7193 fi
7194 rm -f conftest*
7195 LIBS="$ac_save_LIBS"
7196
7197 fi
7198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7199   echo "$ac_t""yes" 1>&6
7200     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7201     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7202   cat >> confdefs.h <<EOF
7203 #define $ac_tr_lib 1
7204 EOF
7205
7206   LIBS="-lm $LIBS"
7207
7208 else
7209   echo "$ac_t""no" 1>&6
7210 fi
7211
7212   for ac_func in nan copysignf
7213 do
7214 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7215 echo "configure:7216: checking for $ac_func" >&5
7216 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7217   echo $ac_n "(cached) $ac_c" 1>&6
7218 else
7219   cat > conftest.$ac_ext <<EOF
7220 #line 7221 "configure"
7221 #include "confdefs.h"
7222 /* System header to define __stub macros and hopefully few prototypes,
7223     which can conflict with char $ac_func(); below.  */
7224 #include <assert.h>
7225 /* Override any gcc2 internal prototype to avoid an error.  */
7226 /* We use char because int might match the return type of a gcc2
7227     builtin and then its argument prototype would still apply.  */
7228 char $ac_func();
7229
7230 int main() {
7231
7232 /* The GNU C library defines this for functions which it implements
7233     to always fail with ENOSYS.  Some functions are actually named
7234     something starting with __ and the normal name is an alias.  */
7235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7236 choke me
7237 #else
7238 $ac_func();
7239 #endif
7240
7241 ; return 0; }
7242 EOF
7243 if { (eval echo configure:7244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7244   rm -rf conftest*
7245   eval "ac_cv_func_$ac_func=yes"
7246 else
7247   echo "configure: failed program was:" >&5
7248   cat conftest.$ac_ext >&5
7249   rm -rf conftest*
7250   eval "ac_cv_func_$ac_func=no"
7251 fi
7252 rm -f conftest*
7253 fi
7254
7255 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7256   echo "$ac_t""yes" 1>&6
7257     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7258   cat >> confdefs.h <<EOF
7259 #define $ac_tr_func 1
7260 EOF
7261  
7262 else
7263   echo "$ac_t""no" 1>&6
7264 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7265 fi
7266 done
7267
7268
7269     for ac_func in __signbit
7270 do
7271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7272 echo "configure:7273: checking for $ac_func" >&5
7273 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7274   echo $ac_n "(cached) $ac_c" 1>&6
7275 else
7276   cat > conftest.$ac_ext <<EOF
7277 #line 7278 "configure"
7278 #include "confdefs.h"
7279 /* System header to define __stub macros and hopefully few prototypes,
7280     which can conflict with char $ac_func(); below.  */
7281 #include <assert.h>
7282 /* Override any gcc2 internal prototype to avoid an error.  */
7283 /* We use char because int might match the return type of a gcc2
7284     builtin and then its argument prototype would still apply.  */
7285 char $ac_func();
7286
7287 int main() {
7288
7289 /* The GNU C library defines this for functions which it implements
7290     to always fail with ENOSYS.  Some functions are actually named
7291     something starting with __ and the normal name is an alias.  */
7292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7293 choke me
7294 #else
7295 $ac_func();
7296 #endif
7297
7298 ; return 0; }
7299 EOF
7300 if { (eval echo configure:7301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7301   rm -rf conftest*
7302   eval "ac_cv_func_$ac_func=yes"
7303 else
7304   echo "configure: failed program was:" >&5
7305   cat conftest.$ac_ext >&5
7306   rm -rf conftest*
7307   eval "ac_cv_func_$ac_func=no"
7308 fi
7309 rm -f conftest*
7310 fi
7311
7312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7313   echo "$ac_t""yes" 1>&6
7314     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7315   cat >> confdefs.h <<EOF
7316 #define $ac_tr_func 1
7317 EOF
7318  
7319 else
7320   echo "$ac_t""no" 1>&6
7321 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7322 fi
7323 done
7324
7325   for ac_func in __signbitf
7326 do
7327 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7328 echo "configure:7329: checking for $ac_func" >&5
7329 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7330   echo $ac_n "(cached) $ac_c" 1>&6
7331 else
7332   cat > conftest.$ac_ext <<EOF
7333 #line 7334 "configure"
7334 #include "confdefs.h"
7335 /* System header to define __stub macros and hopefully few prototypes,
7336     which can conflict with char $ac_func(); below.  */
7337 #include <assert.h>
7338 /* Override any gcc2 internal prototype to avoid an error.  */
7339 /* We use char because int might match the return type of a gcc2
7340     builtin and then its argument prototype would still apply.  */
7341 char $ac_func();
7342
7343 int main() {
7344
7345 /* The GNU C library defines this for functions which it implements
7346     to always fail with ENOSYS.  Some functions are actually named
7347     something starting with __ and the normal name is an alias.  */
7348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7349 choke me
7350 #else
7351 $ac_func();
7352 #endif
7353
7354 ; return 0; }
7355 EOF
7356 if { (eval echo configure:7357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7357   rm -rf conftest*
7358   eval "ac_cv_func_$ac_func=yes"
7359 else
7360   echo "configure: failed program was:" >&5
7361   cat conftest.$ac_ext >&5
7362   rm -rf conftest*
7363   eval "ac_cv_func_$ac_func=no"
7364 fi
7365 rm -f conftest*
7366 fi
7367
7368 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7369   echo "$ac_t""yes" 1>&6
7370     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7371   cat >> confdefs.h <<EOF
7372 #define $ac_tr_func 1
7373 EOF
7374  
7375 else
7376   echo "$ac_t""no" 1>&6
7377 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7378 fi
7379 done
7380
7381
7382           if test x$ac_cv_func_copysignl = x"yes"; then
7383     for ac_func in __signbitl
7384 do
7385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7386 echo "configure:7387: checking for $ac_func" >&5
7387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7388   echo $ac_n "(cached) $ac_c" 1>&6
7389 else
7390   cat > conftest.$ac_ext <<EOF
7391 #line 7392 "configure"
7392 #include "confdefs.h"
7393 /* System header to define __stub macros and hopefully few prototypes,
7394     which can conflict with char $ac_func(); below.  */
7395 #include <assert.h>
7396 /* Override any gcc2 internal prototype to avoid an error.  */
7397 /* We use char because int might match the return type of a gcc2
7398     builtin and then its argument prototype would still apply.  */
7399 char $ac_func();
7400
7401 int main() {
7402
7403 /* The GNU C library defines this for functions which it implements
7404     to always fail with ENOSYS.  Some functions are actually named
7405     something starting with __ and the normal name is an alias.  */
7406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7407 choke me
7408 #else
7409 $ac_func();
7410 #endif
7411
7412 ; return 0; }
7413 EOF
7414 if { (eval echo configure:7415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7415   rm -rf conftest*
7416   eval "ac_cv_func_$ac_func=yes"
7417 else
7418   echo "configure: failed program was:" >&5
7419   cat conftest.$ac_ext >&5
7420   rm -rf conftest*
7421   eval "ac_cv_func_$ac_func=no"
7422 fi
7423 rm -f conftest*
7424 fi
7425
7426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7427   echo "$ac_t""yes" 1>&6
7428     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7429   cat >> confdefs.h <<EOF
7430 #define $ac_tr_func 1
7431 EOF
7432  
7433 else
7434   echo "$ac_t""no" 1>&6
7435 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7436 fi
7437 done
7438
7439   fi
7440
7441   
7442
7443       
7444
7445       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7446 echo "configure:7447: checking for mbstate_t" >&5
7447   cat > conftest.$ac_ext <<EOF
7448 #line 7449 "configure"
7449 #include "confdefs.h"
7450 #include <wchar.h>
7451 int main() {
7452 mbstate_t teststate;
7453 ; return 0; }
7454 EOF
7455 if { (eval echo configure:7456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7456   rm -rf conftest*
7457   have_mbstate_t=yes
7458 else
7459   echo "configure: failed program was:" >&5
7460   cat conftest.$ac_ext >&5
7461   rm -rf conftest*
7462   have_mbstate_t=no
7463 fi
7464 rm -f conftest*
7465   echo "$ac_t""$have_mbstate_t" 1>&6
7466   if test x"$have_mbstate_t" = xyes; then
7467     cat >> confdefs.h <<\EOF
7468 #define HAVE_MBSTATE_T 1
7469 EOF
7470
7471   fi
7472
7473     for ac_hdr in wchar.h
7474 do
7475 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7476 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7477 echo "configure:7478: checking for $ac_hdr" >&5
7478 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7479   echo $ac_n "(cached) $ac_c" 1>&6
7480 else
7481   cat > conftest.$ac_ext <<EOF
7482 #line 7483 "configure"
7483 #include "confdefs.h"
7484 #include <$ac_hdr>
7485 EOF
7486 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7487 { (eval echo configure:7488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7488 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7489 if test -z "$ac_err"; then
7490   rm -rf conftest*
7491   eval "ac_cv_header_$ac_safe=yes"
7492 else
7493   echo "$ac_err" >&5
7494   echo "configure: failed program was:" >&5
7495   cat conftest.$ac_ext >&5
7496   rm -rf conftest*
7497   eval "ac_cv_header_$ac_safe=no"
7498 fi
7499 rm -f conftest*
7500 fi
7501 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7502   echo "$ac_t""yes" 1>&6
7503     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7504   cat >> confdefs.h <<EOF
7505 #define $ac_tr_hdr 1
7506 EOF
7507  ac_has_wchar_h=yes
7508 else
7509   echo "$ac_t""no" 1>&6
7510 ac_has_wchar_h=no
7511 fi
7512 done
7513
7514   for ac_hdr in wctype.h
7515 do
7516 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7517 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7518 echo "configure:7519: checking for $ac_hdr" >&5
7519 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7520   echo $ac_n "(cached) $ac_c" 1>&6
7521 else
7522   cat > conftest.$ac_ext <<EOF
7523 #line 7524 "configure"
7524 #include "confdefs.h"
7525 #include <$ac_hdr>
7526 EOF
7527 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7528 { (eval echo configure:7529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7529 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7530 if test -z "$ac_err"; then
7531   rm -rf conftest*
7532   eval "ac_cv_header_$ac_safe=yes"
7533 else
7534   echo "$ac_err" >&5
7535   echo "configure: failed program was:" >&5
7536   cat conftest.$ac_ext >&5
7537   rm -rf conftest*
7538   eval "ac_cv_header_$ac_safe=no"
7539 fi
7540 rm -f conftest*
7541 fi
7542 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7543   echo "$ac_t""yes" 1>&6
7544     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7545   cat >> confdefs.h <<EOF
7546 #define $ac_tr_hdr 1
7547 EOF
7548  ac_has_wctype_h=yes
7549 else
7550   echo "$ac_t""no" 1>&6
7551 ac_has_wctype_h=no
7552 fi
7553 done
7554
7555   
7556     if test x"$ac_has_wchar_h" = xyes &&
7557      test x"$ac_has_wctype_h" = xyes &&
7558      test x"$enable_c_mbchar" != xno; then
7559       
7560             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7561 echo "configure:7562: checking for WCHAR_MIN and WCHAR_MAX" >&5
7562     cat > conftest.$ac_ext <<EOF
7563 #line 7564 "configure"
7564 #include "confdefs.h"
7565 #include <wchar.h>
7566 int main() {
7567 int i = WCHAR_MIN; int j = WCHAR_MAX;
7568 ; return 0; }
7569 EOF
7570 if { (eval echo configure:7571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7571   rm -rf conftest*
7572   has_wchar_minmax=yes
7573 else
7574   echo "configure: failed program was:" >&5
7575   cat conftest.$ac_ext >&5
7576   rm -rf conftest*
7577   has_wchar_minmax=no
7578 fi
7579 rm -f conftest*
7580     echo "$ac_t""$has_wchar_minmax" 1>&6
7581     
7582             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7583 echo "configure:7584: checking for WEOF" >&5
7584     cat > conftest.$ac_ext <<EOF
7585 #line 7586 "configure"
7586 #include "confdefs.h"
7587
7588       #include <wchar.h>
7589       #include <stddef.h>
7590 int main() {
7591 wint_t i = WEOF;
7592 ; return 0; }
7593 EOF
7594 if { (eval echo configure:7595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7595   rm -rf conftest*
7596   has_weof=yes
7597 else
7598   echo "configure: failed program was:" >&5
7599   cat conftest.$ac_ext >&5
7600   rm -rf conftest*
7601   has_weof=no
7602 fi
7603 rm -f conftest*
7604     echo "$ac_t""$has_weof" 1>&6
7605   
7606         ac_wfuncs=yes
7607     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7608 do
7609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7610 echo "configure:7611: checking for $ac_func" >&5
7611 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7612   echo $ac_n "(cached) $ac_c" 1>&6
7613 else
7614   cat > conftest.$ac_ext <<EOF
7615 #line 7616 "configure"
7616 #include "confdefs.h"
7617 /* System header to define __stub macros and hopefully few prototypes,
7618     which can conflict with char $ac_func(); below.  */
7619 #include <assert.h>
7620 /* Override any gcc2 internal prototype to avoid an error.  */
7621 /* We use char because int might match the return type of a gcc2
7622     builtin and then its argument prototype would still apply.  */
7623 char $ac_func();
7624
7625 int main() {
7626
7627 /* The GNU C library defines this for functions which it implements
7628     to always fail with ENOSYS.  Some functions are actually named
7629     something starting with __ and the normal name is an alias.  */
7630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7631 choke me
7632 #else
7633 $ac_func();
7634 #endif
7635
7636 ; return 0; }
7637 EOF
7638 if { (eval echo configure:7639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7639   rm -rf conftest*
7640   eval "ac_cv_func_$ac_func=yes"
7641 else
7642   echo "configure: failed program was:" >&5
7643   cat conftest.$ac_ext >&5
7644   rm -rf conftest*
7645   eval "ac_cv_func_$ac_func=no"
7646 fi
7647 rm -f conftest*
7648 fi
7649
7650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7651   echo "$ac_t""yes" 1>&6
7652     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7653   cat >> confdefs.h <<EOF
7654 #define $ac_tr_func 1
7655 EOF
7656  
7657 else
7658   echo "$ac_t""no" 1>&6
7659 \
7660     ac_wfuncs=no
7661 fi
7662 done
7663
7664   
7665         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7666     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7667     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7668     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7669     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7670     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7671 do
7672 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7673 echo "configure:7674: checking for $ac_func" >&5
7674 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7675   echo $ac_n "(cached) $ac_c" 1>&6
7676 else
7677   cat > conftest.$ac_ext <<EOF
7678 #line 7679 "configure"
7679 #include "confdefs.h"
7680 /* System header to define __stub macros and hopefully few prototypes,
7681     which can conflict with char $ac_func(); below.  */
7682 #include <assert.h>
7683 /* Override any gcc2 internal prototype to avoid an error.  */
7684 /* We use char because int might match the return type of a gcc2
7685     builtin and then its argument prototype would still apply.  */
7686 char $ac_func();
7687
7688 int main() {
7689
7690 /* The GNU C library defines this for functions which it implements
7691     to always fail with ENOSYS.  Some functions are actually named
7692     something starting with __ and the normal name is an alias.  */
7693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7694 choke me
7695 #else
7696 $ac_func();
7697 #endif
7698
7699 ; return 0; }
7700 EOF
7701 if { (eval echo configure:7702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7702   rm -rf conftest*
7703   eval "ac_cv_func_$ac_func=yes"
7704 else
7705   echo "configure: failed program was:" >&5
7706   cat conftest.$ac_ext >&5
7707   rm -rf conftest*
7708   eval "ac_cv_func_$ac_func=no"
7709 fi
7710 rm -f conftest*
7711 fi
7712
7713 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7714   echo "$ac_t""yes" 1>&6
7715     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7716   cat >> confdefs.h <<EOF
7717 #define $ac_tr_func 1
7718 EOF
7719  
7720 else
7721   echo "$ac_t""no" 1>&6
7722 \
7723     ac_wfuncs=no
7724 fi
7725 done
7726
7727
7728     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7729 echo "configure:7730: checking for ISO C99 wchar_t support" >&5
7730     if test x"$has_weof" = xyes &&
7731        test x"$has_wchar_minmax" = xyes &&
7732        test x"$ac_wfuncs" = xyes; then
7733       ac_isoC99_wchar_t=yes
7734     else
7735       ac_isoC99_wchar_t=no
7736     fi
7737     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7738   
7739             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7740 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7741 echo "configure:7742: checking for iconv.h" >&5
7742 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7743   echo $ac_n "(cached) $ac_c" 1>&6
7744 else
7745   cat > conftest.$ac_ext <<EOF
7746 #line 7747 "configure"
7747 #include "confdefs.h"
7748 #include <iconv.h>
7749 EOF
7750 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7751 { (eval echo configure:7752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7752 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7753 if test -z "$ac_err"; then
7754   rm -rf conftest*
7755   eval "ac_cv_header_$ac_safe=yes"
7756 else
7757   echo "$ac_err" >&5
7758   echo "configure: failed program was:" >&5
7759   cat conftest.$ac_ext >&5
7760   rm -rf conftest*
7761   eval "ac_cv_header_$ac_safe=no"
7762 fi
7763 rm -f conftest*
7764 fi
7765 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7766   echo "$ac_t""yes" 1>&6
7767   ac_has_iconv_h=yes
7768 else
7769   echo "$ac_t""no" 1>&6
7770 ac_has_iconv_h=no
7771 fi
7772
7773     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7774 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7775 echo "configure:7776: checking for langinfo.h" >&5
7776 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7777   echo $ac_n "(cached) $ac_c" 1>&6
7778 else
7779   cat > conftest.$ac_ext <<EOF
7780 #line 7781 "configure"
7781 #include "confdefs.h"
7782 #include <langinfo.h>
7783 EOF
7784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7785 { (eval echo configure:7786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7786 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7787 if test -z "$ac_err"; then
7788   rm -rf conftest*
7789   eval "ac_cv_header_$ac_safe=yes"
7790 else
7791   echo "$ac_err" >&5
7792   echo "configure: failed program was:" >&5
7793   cat conftest.$ac_ext >&5
7794   rm -rf conftest*
7795   eval "ac_cv_header_$ac_safe=no"
7796 fi
7797 rm -f conftest*
7798 fi
7799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7800   echo "$ac_t""yes" 1>&6
7801   ac_has_langinfo_h=yes
7802 else
7803   echo "$ac_t""no" 1>&6
7804 ac_has_langinfo_h=no
7805 fi
7806
7807
7808         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7809 echo "configure:7810: checking for iconv in -liconv" >&5
7810 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7811 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7812   echo $ac_n "(cached) $ac_c" 1>&6
7813 else
7814   ac_save_LIBS="$LIBS"
7815 LIBS="-liconv  $LIBS"
7816 cat > conftest.$ac_ext <<EOF
7817 #line 7818 "configure"
7818 #include "confdefs.h"
7819 /* Override any gcc2 internal prototype to avoid an error.  */
7820 /* We use char because int might match the return type of a gcc2
7821     builtin and then its argument prototype would still apply.  */
7822 char iconv();
7823
7824 int main() {
7825 iconv()
7826 ; return 0; }
7827 EOF
7828 if { (eval echo configure:7829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7829   rm -rf conftest*
7830   eval "ac_cv_lib_$ac_lib_var=yes"
7831 else
7832   echo "configure: failed program was:" >&5
7833   cat conftest.$ac_ext >&5
7834   rm -rf conftest*
7835   eval "ac_cv_lib_$ac_lib_var=no"
7836 fi
7837 rm -f conftest*
7838 LIBS="$ac_save_LIBS"
7839
7840 fi
7841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7842   echo "$ac_t""yes" 1>&6
7843   libiconv="-liconv"
7844 else
7845   echo "$ac_t""no" 1>&6
7846 fi
7847
7848     ac_save_LIBS="$LIBS"
7849     LIBS="$LIBS $libiconv"
7850
7851     for ac_func in iconv_open iconv_close iconv nl_langinfo
7852 do
7853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7854 echo "configure:7855: checking for $ac_func" >&5
7855 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7856   echo $ac_n "(cached) $ac_c" 1>&6
7857 else
7858   cat > conftest.$ac_ext <<EOF
7859 #line 7860 "configure"
7860 #include "confdefs.h"
7861 /* System header to define __stub macros and hopefully few prototypes,
7862     which can conflict with char $ac_func(); below.  */
7863 #include <assert.h>
7864 /* Override any gcc2 internal prototype to avoid an error.  */
7865 /* We use char because int might match the return type of a gcc2
7866     builtin and then its argument prototype would still apply.  */
7867 char $ac_func();
7868
7869 int main() {
7870
7871 /* The GNU C library defines this for functions which it implements
7872     to always fail with ENOSYS.  Some functions are actually named
7873     something starting with __ and the normal name is an alias.  */
7874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7875 choke me
7876 #else
7877 $ac_func();
7878 #endif
7879
7880 ; return 0; }
7881 EOF
7882 if { (eval echo configure:7883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7883   rm -rf conftest*
7884   eval "ac_cv_func_$ac_func=yes"
7885 else
7886   echo "configure: failed program was:" >&5
7887   cat conftest.$ac_ext >&5
7888   rm -rf conftest*
7889   eval "ac_cv_func_$ac_func=no"
7890 fi
7891 rm -f conftest*
7892 fi
7893
7894 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7895   echo "$ac_t""yes" 1>&6
7896     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7897   cat >> confdefs.h <<EOF
7898 #define $ac_tr_func 1
7899 EOF
7900  \
7901     ac_XPG2funcs=yes
7902 else
7903   echo "$ac_t""no" 1>&6
7904 ac_XPG2funcs=no
7905 fi
7906 done
7907
7908   
7909     LIBS="$ac_save_LIBS"
7910
7911     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7912 echo "configure:7913: checking for XPG2 wchar_t support" >&5
7913     if test x"$ac_has_iconv_h" = xyes &&
7914        test x"$ac_has_langinfo_h" = xyes &&
7915        test x"$ac_XPG2funcs" = xyes; then
7916       ac_XPG2_wchar_t=yes
7917     else
7918       ac_XPG2_wchar_t=no
7919     fi
7920     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7921   
7922             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7923 echo "configure:7924: checking for enabled wchar_t specializations" >&5
7924     if test x"$ac_isoC99_wchar_t" = xyes &&
7925        test x"$ac_XPG2_wchar_t" = xyes; then
7926       cat >> confdefs.h <<\EOF
7927 #define _GLIBCPP_USE_WCHAR_T 1
7928 EOF
7929
7930       echo "$ac_t"""yes"" 1>&6
7931     else
7932       echo "$ac_t"""no"" 1>&6
7933     fi
7934   else
7935         echo "configure: warning: wchar_t support disabled." 1>&2
7936   fi
7937
7938       os_include_dir="os/mingw32"
7939       ;;
7940     *-windiss*)
7941       os_include_dir="os/windiss"
7942       ;;
7943     *-qnx6.[12]*)
7944       SECTION_FLAGS='-ffunction-sections -fdata-sections'
7945        
7946       
7947   # If we're not using GNU ld, then there's no point in even trying these
7948   # tests.  Check for that first.  We should have already tested for gld
7949   # by now (in libtool), but require it now just to be safe...
7950   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7951   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7952   
7953
7954   # The name set by libtool depends on the version of libtool.  Shame on us
7955   # for depending on an impl detail, but c'est la vie.  Older versions used
7956   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7957   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7958   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7959   # set (hence we're using an older libtool), then set it.
7960   if test x${with_gnu_ld+set} != xset; then
7961     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7962       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7963       with_gnu_ld=no
7964     else
7965       with_gnu_ld=$ac_cv_prog_gnu_ld
7966     fi
7967   fi
7968
7969   # Start by getting the version number.  I think the libtool test already
7970   # does some of this, but throws away the result.
7971   
7972   ldver=`$LD --version 2>/dev/null | head -1 | \
7973          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7974   
7975   glibcpp_gnu_ld_version=`echo $ldver | \
7976          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7977
7978   # Set --gc-sections.
7979   if test "$with_gnu_ld" = "notbroken"; then
7980     # GNU ld it is!  Joy and bunny rabbits!
7981
7982     # All these tests are for C++; save the language and the compiler flags.
7983     # Need to do this so that g++ won't try to link in libstdc++
7984     ac_test_CFLAGS="${CFLAGS+set}"
7985     ac_save_CFLAGS="$CFLAGS"
7986     CFLAGS='-x c++  -Wl,--gc-sections'
7987
7988     # Check for -Wl,--gc-sections
7989     # XXX This test is broken at the moment, as symbols required for
7990     # linking are now in libsupc++ (not built yet.....). In addition, 
7991     # this test has cored on solaris in the past. In addition,
7992     # --gc-sections doesn't really work at the moment (keeps on discarding
7993     # used sections, first .eh_frame and now some of the glibc sections for
7994     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7995     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7996 echo "configure:7997: checking for ld that supports -Wl,--gc-sections" >&5
7997     if test "$cross_compiling" = yes; then
7998   ac_sectionLDflags=yes
7999 else
8000   cat > conftest.$ac_ext <<EOF
8001 #line 8002 "configure"
8002 #include "confdefs.h"
8003
8004      int main(void) 
8005      {
8006        try { throw 1; }
8007        catch (...) { };
8008        return 0;
8009      }
8010     
8011 EOF
8012 if { (eval echo configure:8013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8013 then
8014   ac_sectionLDflags=yes
8015 else
8016   echo "configure: failed program was:" >&5
8017   cat conftest.$ac_ext >&5
8018   rm -fr conftest*
8019   ac_sectionLDflags=no
8020 fi
8021 rm -fr conftest*
8022 fi
8023
8024     if test "$ac_test_CFLAGS" = set; then
8025       CFLAGS="$ac_save_CFLAGS"
8026     else
8027       # this is the suspicious part
8028       CFLAGS=''
8029     fi
8030     if test "$ac_sectionLDflags" = "yes"; then
8031       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8032     fi
8033     echo "$ac_t""$ac_sectionLDflags" 1>&6
8034   fi
8035
8036   # Set linker optimization flags.
8037   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
8038     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8039   fi
8040
8041   
8042   
8043
8044       
8045     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8046 echo "configure:8047: checking for main in -lm" >&5
8047 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8048 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8049   echo $ac_n "(cached) $ac_c" 1>&6
8050 else
8051   ac_save_LIBS="$LIBS"
8052 LIBS="-lm  $LIBS"
8053 cat > conftest.$ac_ext <<EOF
8054 #line 8055 "configure"
8055 #include "confdefs.h"
8056
8057 int main() {
8058 main()
8059 ; return 0; }
8060 EOF
8061 if { (eval echo configure:8062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8062   rm -rf conftest*
8063   eval "ac_cv_lib_$ac_lib_var=yes"
8064 else
8065   echo "configure: failed program was:" >&5
8066   cat conftest.$ac_ext >&5
8067   rm -rf conftest*
8068   eval "ac_cv_lib_$ac_lib_var=no"
8069 fi
8070 rm -f conftest*
8071 LIBS="$ac_save_LIBS"
8072
8073 fi
8074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8075   echo "$ac_t""yes" 1>&6
8076     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8077     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8078   cat >> confdefs.h <<EOF
8079 #define $ac_tr_lib 1
8080 EOF
8081
8082   LIBS="-lm $LIBS"
8083
8084 else
8085   echo "$ac_t""no" 1>&6
8086 fi
8087
8088   for ac_func in nan copysignf
8089 do
8090 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8091 echo "configure:8092: checking for $ac_func" >&5
8092 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8093   echo $ac_n "(cached) $ac_c" 1>&6
8094 else
8095   cat > conftest.$ac_ext <<EOF
8096 #line 8097 "configure"
8097 #include "confdefs.h"
8098 /* System header to define __stub macros and hopefully few prototypes,
8099     which can conflict with char $ac_func(); below.  */
8100 #include <assert.h>
8101 /* Override any gcc2 internal prototype to avoid an error.  */
8102 /* We use char because int might match the return type of a gcc2
8103     builtin and then its argument prototype would still apply.  */
8104 char $ac_func();
8105
8106 int main() {
8107
8108 /* The GNU C library defines this for functions which it implements
8109     to always fail with ENOSYS.  Some functions are actually named
8110     something starting with __ and the normal name is an alias.  */
8111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8112 choke me
8113 #else
8114 $ac_func();
8115 #endif
8116
8117 ; return 0; }
8118 EOF
8119 if { (eval echo configure:8120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8120   rm -rf conftest*
8121   eval "ac_cv_func_$ac_func=yes"
8122 else
8123   echo "configure: failed program was:" >&5
8124   cat conftest.$ac_ext >&5
8125   rm -rf conftest*
8126   eval "ac_cv_func_$ac_func=no"
8127 fi
8128 rm -f conftest*
8129 fi
8130
8131 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8132   echo "$ac_t""yes" 1>&6
8133     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8134   cat >> confdefs.h <<EOF
8135 #define $ac_tr_func 1
8136 EOF
8137  
8138 else
8139   echo "$ac_t""no" 1>&6
8140 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8141 fi
8142 done
8143
8144
8145     for ac_func in __signbit
8146 do
8147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8148 echo "configure:8149: checking for $ac_func" >&5
8149 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8150   echo $ac_n "(cached) $ac_c" 1>&6
8151 else
8152   cat > conftest.$ac_ext <<EOF
8153 #line 8154 "configure"
8154 #include "confdefs.h"
8155 /* System header to define __stub macros and hopefully few prototypes,
8156     which can conflict with char $ac_func(); below.  */
8157 #include <assert.h>
8158 /* Override any gcc2 internal prototype to avoid an error.  */
8159 /* We use char because int might match the return type of a gcc2
8160     builtin and then its argument prototype would still apply.  */
8161 char $ac_func();
8162
8163 int main() {
8164
8165 /* The GNU C library defines this for functions which it implements
8166     to always fail with ENOSYS.  Some functions are actually named
8167     something starting with __ and the normal name is an alias.  */
8168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8169 choke me
8170 #else
8171 $ac_func();
8172 #endif
8173
8174 ; return 0; }
8175 EOF
8176 if { (eval echo configure:8177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8177   rm -rf conftest*
8178   eval "ac_cv_func_$ac_func=yes"
8179 else
8180   echo "configure: failed program was:" >&5
8181   cat conftest.$ac_ext >&5
8182   rm -rf conftest*
8183   eval "ac_cv_func_$ac_func=no"
8184 fi
8185 rm -f conftest*
8186 fi
8187
8188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8189   echo "$ac_t""yes" 1>&6
8190     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8191   cat >> confdefs.h <<EOF
8192 #define $ac_tr_func 1
8193 EOF
8194  
8195 else
8196   echo "$ac_t""no" 1>&6
8197 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8198 fi
8199 done
8200
8201   for ac_func in __signbitf
8202 do
8203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8204 echo "configure:8205: checking for $ac_func" >&5
8205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8206   echo $ac_n "(cached) $ac_c" 1>&6
8207 else
8208   cat > conftest.$ac_ext <<EOF
8209 #line 8210 "configure"
8210 #include "confdefs.h"
8211 /* System header to define __stub macros and hopefully few prototypes,
8212     which can conflict with char $ac_func(); below.  */
8213 #include <assert.h>
8214 /* Override any gcc2 internal prototype to avoid an error.  */
8215 /* We use char because int might match the return type of a gcc2
8216     builtin and then its argument prototype would still apply.  */
8217 char $ac_func();
8218
8219 int main() {
8220
8221 /* The GNU C library defines this for functions which it implements
8222     to always fail with ENOSYS.  Some functions are actually named
8223     something starting with __ and the normal name is an alias.  */
8224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8225 choke me
8226 #else
8227 $ac_func();
8228 #endif
8229
8230 ; return 0; }
8231 EOF
8232 if { (eval echo configure:8233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8233   rm -rf conftest*
8234   eval "ac_cv_func_$ac_func=yes"
8235 else
8236   echo "configure: failed program was:" >&5
8237   cat conftest.$ac_ext >&5
8238   rm -rf conftest*
8239   eval "ac_cv_func_$ac_func=no"
8240 fi
8241 rm -f conftest*
8242 fi
8243
8244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8245   echo "$ac_t""yes" 1>&6
8246     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8247   cat >> confdefs.h <<EOF
8248 #define $ac_tr_func 1
8249 EOF
8250  
8251 else
8252   echo "$ac_t""no" 1>&6
8253 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8254 fi
8255 done
8256
8257
8258           if test x$ac_cv_func_copysignl = x"yes"; then
8259     for ac_func in __signbitl
8260 do
8261 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8262 echo "configure:8263: checking for $ac_func" >&5
8263 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8264   echo $ac_n "(cached) $ac_c" 1>&6
8265 else
8266   cat > conftest.$ac_ext <<EOF
8267 #line 8268 "configure"
8268 #include "confdefs.h"
8269 /* System header to define __stub macros and hopefully few prototypes,
8270     which can conflict with char $ac_func(); below.  */
8271 #include <assert.h>
8272 /* Override any gcc2 internal prototype to avoid an error.  */
8273 /* We use char because int might match the return type of a gcc2
8274     builtin and then its argument prototype would still apply.  */
8275 char $ac_func();
8276
8277 int main() {
8278
8279 /* The GNU C library defines this for functions which it implements
8280     to always fail with ENOSYS.  Some functions are actually named
8281     something starting with __ and the normal name is an alias.  */
8282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8283 choke me
8284 #else
8285 $ac_func();
8286 #endif
8287
8288 ; return 0; }
8289 EOF
8290 if { (eval echo configure:8291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8291   rm -rf conftest*
8292   eval "ac_cv_func_$ac_func=yes"
8293 else
8294   echo "configure: failed program was:" >&5
8295   cat conftest.$ac_ext >&5
8296   rm -rf conftest*
8297   eval "ac_cv_func_$ac_func=no"
8298 fi
8299 rm -f conftest*
8300 fi
8301
8302 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8303   echo "$ac_t""yes" 1>&6
8304     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8305   cat >> confdefs.h <<EOF
8306 #define $ac_tr_func 1
8307 EOF
8308  
8309 else
8310   echo "$ac_t""no" 1>&6
8311 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8312 fi
8313 done
8314
8315   fi
8316
8317   
8318
8319       
8320
8321       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8322 echo "configure:8323: checking for mbstate_t" >&5
8323   cat > conftest.$ac_ext <<EOF
8324 #line 8325 "configure"
8325 #include "confdefs.h"
8326 #include <wchar.h>
8327 int main() {
8328 mbstate_t teststate;
8329 ; return 0; }
8330 EOF
8331 if { (eval echo configure:8332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8332   rm -rf conftest*
8333   have_mbstate_t=yes
8334 else
8335   echo "configure: failed program was:" >&5
8336   cat conftest.$ac_ext >&5
8337   rm -rf conftest*
8338   have_mbstate_t=no
8339 fi
8340 rm -f conftest*
8341   echo "$ac_t""$have_mbstate_t" 1>&6
8342   if test x"$have_mbstate_t" = xyes; then
8343     cat >> confdefs.h <<\EOF
8344 #define HAVE_MBSTATE_T 1
8345 EOF
8346
8347   fi
8348
8349     for ac_hdr in wchar.h
8350 do
8351 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8352 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8353 echo "configure:8354: checking for $ac_hdr" >&5
8354 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8355   echo $ac_n "(cached) $ac_c" 1>&6
8356 else
8357   cat > conftest.$ac_ext <<EOF
8358 #line 8359 "configure"
8359 #include "confdefs.h"
8360 #include <$ac_hdr>
8361 EOF
8362 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8363 { (eval echo configure:8364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8364 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8365 if test -z "$ac_err"; then
8366   rm -rf conftest*
8367   eval "ac_cv_header_$ac_safe=yes"
8368 else
8369   echo "$ac_err" >&5
8370   echo "configure: failed program was:" >&5
8371   cat conftest.$ac_ext >&5
8372   rm -rf conftest*
8373   eval "ac_cv_header_$ac_safe=no"
8374 fi
8375 rm -f conftest*
8376 fi
8377 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8378   echo "$ac_t""yes" 1>&6
8379     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8380   cat >> confdefs.h <<EOF
8381 #define $ac_tr_hdr 1
8382 EOF
8383  ac_has_wchar_h=yes
8384 else
8385   echo "$ac_t""no" 1>&6
8386 ac_has_wchar_h=no
8387 fi
8388 done
8389
8390   for ac_hdr in wctype.h
8391 do
8392 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8393 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8394 echo "configure:8395: checking for $ac_hdr" >&5
8395 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8396   echo $ac_n "(cached) $ac_c" 1>&6
8397 else
8398   cat > conftest.$ac_ext <<EOF
8399 #line 8400 "configure"
8400 #include "confdefs.h"
8401 #include <$ac_hdr>
8402 EOF
8403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8404 { (eval echo configure:8405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8406 if test -z "$ac_err"; then
8407   rm -rf conftest*
8408   eval "ac_cv_header_$ac_safe=yes"
8409 else
8410   echo "$ac_err" >&5
8411   echo "configure: failed program was:" >&5
8412   cat conftest.$ac_ext >&5
8413   rm -rf conftest*
8414   eval "ac_cv_header_$ac_safe=no"
8415 fi
8416 rm -f conftest*
8417 fi
8418 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8419   echo "$ac_t""yes" 1>&6
8420     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8421   cat >> confdefs.h <<EOF
8422 #define $ac_tr_hdr 1
8423 EOF
8424  ac_has_wctype_h=yes
8425 else
8426   echo "$ac_t""no" 1>&6
8427 ac_has_wctype_h=no
8428 fi
8429 done
8430
8431   
8432     if test x"$ac_has_wchar_h" = xyes &&
8433      test x"$ac_has_wctype_h" = xyes &&
8434      test x"$enable_c_mbchar" != xno; then
8435       
8436             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8437 echo "configure:8438: checking for WCHAR_MIN and WCHAR_MAX" >&5
8438     cat > conftest.$ac_ext <<EOF
8439 #line 8440 "configure"
8440 #include "confdefs.h"
8441 #include <wchar.h>
8442 int main() {
8443 int i = WCHAR_MIN; int j = WCHAR_MAX;
8444 ; return 0; }
8445 EOF
8446 if { (eval echo configure:8447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8447   rm -rf conftest*
8448   has_wchar_minmax=yes
8449 else
8450   echo "configure: failed program was:" >&5
8451   cat conftest.$ac_ext >&5
8452   rm -rf conftest*
8453   has_wchar_minmax=no
8454 fi
8455 rm -f conftest*
8456     echo "$ac_t""$has_wchar_minmax" 1>&6
8457     
8458             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8459 echo "configure:8460: checking for WEOF" >&5
8460     cat > conftest.$ac_ext <<EOF
8461 #line 8462 "configure"
8462 #include "confdefs.h"
8463
8464       #include <wchar.h>
8465       #include <stddef.h>
8466 int main() {
8467 wint_t i = WEOF;
8468 ; return 0; }
8469 EOF
8470 if { (eval echo configure:8471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8471   rm -rf conftest*
8472   has_weof=yes
8473 else
8474   echo "configure: failed program was:" >&5
8475   cat conftest.$ac_ext >&5
8476   rm -rf conftest*
8477   has_weof=no
8478 fi
8479 rm -f conftest*
8480     echo "$ac_t""$has_weof" 1>&6
8481   
8482         ac_wfuncs=yes
8483     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8484 do
8485 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8486 echo "configure:8487: checking for $ac_func" >&5
8487 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8488   echo $ac_n "(cached) $ac_c" 1>&6
8489 else
8490   cat > conftest.$ac_ext <<EOF
8491 #line 8492 "configure"
8492 #include "confdefs.h"
8493 /* System header to define __stub macros and hopefully few prototypes,
8494     which can conflict with char $ac_func(); below.  */
8495 #include <assert.h>
8496 /* Override any gcc2 internal prototype to avoid an error.  */
8497 /* We use char because int might match the return type of a gcc2
8498     builtin and then its argument prototype would still apply.  */
8499 char $ac_func();
8500
8501 int main() {
8502
8503 /* The GNU C library defines this for functions which it implements
8504     to always fail with ENOSYS.  Some functions are actually named
8505     something starting with __ and the normal name is an alias.  */
8506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8507 choke me
8508 #else
8509 $ac_func();
8510 #endif
8511
8512 ; return 0; }
8513 EOF
8514 if { (eval echo configure:8515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8515   rm -rf conftest*
8516   eval "ac_cv_func_$ac_func=yes"
8517 else
8518   echo "configure: failed program was:" >&5
8519   cat conftest.$ac_ext >&5
8520   rm -rf conftest*
8521   eval "ac_cv_func_$ac_func=no"
8522 fi
8523 rm -f conftest*
8524 fi
8525
8526 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8527   echo "$ac_t""yes" 1>&6
8528     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8529   cat >> confdefs.h <<EOF
8530 #define $ac_tr_func 1
8531 EOF
8532  
8533 else
8534   echo "$ac_t""no" 1>&6
8535 \
8536     ac_wfuncs=no
8537 fi
8538 done
8539
8540   
8541         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
8542     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8543     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8544     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8545     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8546     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8547 do
8548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8549 echo "configure:8550: checking for $ac_func" >&5
8550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8551   echo $ac_n "(cached) $ac_c" 1>&6
8552 else
8553   cat > conftest.$ac_ext <<EOF
8554 #line 8555 "configure"
8555 #include "confdefs.h"
8556 /* System header to define __stub macros and hopefully few prototypes,
8557     which can conflict with char $ac_func(); below.  */
8558 #include <assert.h>
8559 /* Override any gcc2 internal prototype to avoid an error.  */
8560 /* We use char because int might match the return type of a gcc2
8561     builtin and then its argument prototype would still apply.  */
8562 char $ac_func();
8563
8564 int main() {
8565
8566 /* The GNU C library defines this for functions which it implements
8567     to always fail with ENOSYS.  Some functions are actually named
8568     something starting with __ and the normal name is an alias.  */
8569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8570 choke me
8571 #else
8572 $ac_func();
8573 #endif
8574
8575 ; return 0; }
8576 EOF
8577 if { (eval echo configure:8578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8578   rm -rf conftest*
8579   eval "ac_cv_func_$ac_func=yes"
8580 else
8581   echo "configure: failed program was:" >&5
8582   cat conftest.$ac_ext >&5
8583   rm -rf conftest*
8584   eval "ac_cv_func_$ac_func=no"
8585 fi
8586 rm -f conftest*
8587 fi
8588
8589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8590   echo "$ac_t""yes" 1>&6
8591     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8592   cat >> confdefs.h <<EOF
8593 #define $ac_tr_func 1
8594 EOF
8595  
8596 else
8597   echo "$ac_t""no" 1>&6
8598 \
8599     ac_wfuncs=no
8600 fi
8601 done
8602
8603
8604     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8605 echo "configure:8606: checking for ISO C99 wchar_t support" >&5
8606     if test x"$has_weof" = xyes &&
8607        test x"$has_wchar_minmax" = xyes &&
8608        test x"$ac_wfuncs" = xyes; then
8609       ac_isoC99_wchar_t=yes
8610     else
8611       ac_isoC99_wchar_t=no
8612     fi
8613     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8614   
8615             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8616 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8617 echo "configure:8618: checking for iconv.h" >&5
8618 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8619   echo $ac_n "(cached) $ac_c" 1>&6
8620 else
8621   cat > conftest.$ac_ext <<EOF
8622 #line 8623 "configure"
8623 #include "confdefs.h"
8624 #include <iconv.h>
8625 EOF
8626 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8627 { (eval echo configure:8628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8628 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8629 if test -z "$ac_err"; then
8630   rm -rf conftest*
8631   eval "ac_cv_header_$ac_safe=yes"
8632 else
8633   echo "$ac_err" >&5
8634   echo "configure: failed program was:" >&5
8635   cat conftest.$ac_ext >&5
8636   rm -rf conftest*
8637   eval "ac_cv_header_$ac_safe=no"
8638 fi
8639 rm -f conftest*
8640 fi
8641 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8642   echo "$ac_t""yes" 1>&6
8643   ac_has_iconv_h=yes
8644 else
8645   echo "$ac_t""no" 1>&6
8646 ac_has_iconv_h=no
8647 fi
8648
8649     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8650 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8651 echo "configure:8652: checking for langinfo.h" >&5
8652 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8653   echo $ac_n "(cached) $ac_c" 1>&6
8654 else
8655   cat > conftest.$ac_ext <<EOF
8656 #line 8657 "configure"
8657 #include "confdefs.h"
8658 #include <langinfo.h>
8659 EOF
8660 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8661 { (eval echo configure:8662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8662 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8663 if test -z "$ac_err"; then
8664   rm -rf conftest*
8665   eval "ac_cv_header_$ac_safe=yes"
8666 else
8667   echo "$ac_err" >&5
8668   echo "configure: failed program was:" >&5
8669   cat conftest.$ac_ext >&5
8670   rm -rf conftest*
8671   eval "ac_cv_header_$ac_safe=no"
8672 fi
8673 rm -f conftest*
8674 fi
8675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8676   echo "$ac_t""yes" 1>&6
8677   ac_has_langinfo_h=yes
8678 else
8679   echo "$ac_t""no" 1>&6
8680 ac_has_langinfo_h=no
8681 fi
8682
8683
8684         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8685 echo "configure:8686: checking for iconv in -liconv" >&5
8686 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8688   echo $ac_n "(cached) $ac_c" 1>&6
8689 else
8690   ac_save_LIBS="$LIBS"
8691 LIBS="-liconv  $LIBS"
8692 cat > conftest.$ac_ext <<EOF
8693 #line 8694 "configure"
8694 #include "confdefs.h"
8695 /* Override any gcc2 internal prototype to avoid an error.  */
8696 /* We use char because int might match the return type of a gcc2
8697     builtin and then its argument prototype would still apply.  */
8698 char iconv();
8699
8700 int main() {
8701 iconv()
8702 ; return 0; }
8703 EOF
8704 if { (eval echo configure:8705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8705   rm -rf conftest*
8706   eval "ac_cv_lib_$ac_lib_var=yes"
8707 else
8708   echo "configure: failed program was:" >&5
8709   cat conftest.$ac_ext >&5
8710   rm -rf conftest*
8711   eval "ac_cv_lib_$ac_lib_var=no"
8712 fi
8713 rm -f conftest*
8714 LIBS="$ac_save_LIBS"
8715
8716 fi
8717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8718   echo "$ac_t""yes" 1>&6
8719   libiconv="-liconv"
8720 else
8721   echo "$ac_t""no" 1>&6
8722 fi
8723
8724     ac_save_LIBS="$LIBS"
8725     LIBS="$LIBS $libiconv"
8726
8727     for ac_func in iconv_open iconv_close iconv nl_langinfo
8728 do
8729 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8730 echo "configure:8731: checking for $ac_func" >&5
8731 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8732   echo $ac_n "(cached) $ac_c" 1>&6
8733 else
8734   cat > conftest.$ac_ext <<EOF
8735 #line 8736 "configure"
8736 #include "confdefs.h"
8737 /* System header to define __stub macros and hopefully few prototypes,
8738     which can conflict with char $ac_func(); below.  */
8739 #include <assert.h>
8740 /* Override any gcc2 internal prototype to avoid an error.  */
8741 /* We use char because int might match the return type of a gcc2
8742     builtin and then its argument prototype would still apply.  */
8743 char $ac_func();
8744
8745 int main() {
8746
8747 /* The GNU C library defines this for functions which it implements
8748     to always fail with ENOSYS.  Some functions are actually named
8749     something starting with __ and the normal name is an alias.  */
8750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8751 choke me
8752 #else
8753 $ac_func();
8754 #endif
8755
8756 ; return 0; }
8757 EOF
8758 if { (eval echo configure:8759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8759   rm -rf conftest*
8760   eval "ac_cv_func_$ac_func=yes"
8761 else
8762   echo "configure: failed program was:" >&5
8763   cat conftest.$ac_ext >&5
8764   rm -rf conftest*
8765   eval "ac_cv_func_$ac_func=no"
8766 fi
8767 rm -f conftest*
8768 fi
8769
8770 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8771   echo "$ac_t""yes" 1>&6
8772     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8773   cat >> confdefs.h <<EOF
8774 #define $ac_tr_func 1
8775 EOF
8776  \
8777     ac_XPG2funcs=yes
8778 else
8779   echo "$ac_t""no" 1>&6
8780 ac_XPG2funcs=no
8781 fi
8782 done
8783
8784   
8785     LIBS="$ac_save_LIBS"
8786
8787     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8788 echo "configure:8789: checking for XPG2 wchar_t support" >&5
8789     if test x"$ac_has_iconv_h" = xyes &&
8790        test x"$ac_has_langinfo_h" = xyes &&
8791        test x"$ac_XPG2funcs" = xyes; then
8792       ac_XPG2_wchar_t=yes
8793     else
8794       ac_XPG2_wchar_t=no
8795     fi
8796     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8797   
8798             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8799 echo "configure:8800: checking for enabled wchar_t specializations" >&5
8800     if test x"$ac_isoC99_wchar_t" = xyes &&
8801        test x"$ac_XPG2_wchar_t" = xyes; then
8802       cat >> confdefs.h <<\EOF
8803 #define _GLIBCPP_USE_WCHAR_T 1
8804 EOF
8805
8806       echo "$ac_t"""yes"" 1>&6
8807     else
8808       echo "$ac_t"""no"" 1>&6
8809     fi
8810   else
8811         echo "configure: warning: wchar_t support disabled." 1>&2
8812   fi
8813
8814       os_include_dir="os/qnx/qnx6.1"
8815       cat >> confdefs.h <<\EOF
8816 #define HAVE_COSF 1
8817 EOF
8818
8819       cat >> confdefs.h <<\EOF
8820 #define HAVE_COSL 1
8821 EOF
8822
8823       cat >> confdefs.h <<\EOF
8824 #define HAVE_COSHF 1
8825 EOF
8826
8827       cat >> confdefs.h <<\EOF
8828 #define HAVE_COSHL 1
8829 EOF
8830
8831       cat >> confdefs.h <<\EOF
8832 #define HAVE_LOGF 1
8833 EOF
8834
8835       cat >> confdefs.h <<\EOF
8836 #define HAVE_LOGL 1
8837 EOF
8838
8839       cat >> confdefs.h <<\EOF
8840 #define HAVE_LOG10F 1
8841 EOF
8842
8843       cat >> confdefs.h <<\EOF
8844 #define HAVE_LOG10L 1
8845 EOF
8846
8847       cat >> confdefs.h <<\EOF
8848 #define HAVE_SINF 1
8849 EOF
8850
8851       cat >> confdefs.h <<\EOF
8852 #define HAVE_SINL 1
8853 EOF
8854
8855       cat >> confdefs.h <<\EOF
8856 #define HAVE_SINHF 1
8857 EOF
8858
8859       cat >> confdefs.h <<\EOF
8860 #define HAVE_SINHL 1
8861 EOF
8862
8863       ;;
8864     *)
8865       os_include_dir="os/newlib"
8866       cat >> confdefs.h <<\EOF
8867 #define HAVE_HYPOT 1
8868 EOF
8869
8870       ;;
8871   esac
8872
8873   case "$target_alias" in
8874     *-mingw32*)
8875       ;;
8876     *-windiss*)
8877       cat >> confdefs.h <<\EOF
8878 #define HAVE_ACOSF 1
8879 EOF
8880
8881       cat >> confdefs.h <<\EOF
8882 #define HAVE_ASINF 1
8883 EOF
8884
8885       cat >> confdefs.h <<\EOF
8886 #define HAVE_ATAN2F 1
8887 EOF
8888
8889       cat >> confdefs.h <<\EOF
8890 #define HAVE_ATANF 1
8891 EOF
8892
8893       cat >> confdefs.h <<\EOF
8894 #define HAVE_CEILF 1
8895 EOF
8896
8897       cat >> confdefs.h <<\EOF
8898 #define HAVE_COPYSIGN 1
8899 EOF
8900
8901       cat >> confdefs.h <<\EOF
8902 #define HAVE_COPYSIGNF 1
8903 EOF
8904
8905       cat >> confdefs.h <<\EOF
8906 #define HAVE_COSF 1
8907 EOF
8908
8909       cat >> confdefs.h <<\EOF
8910 #define HAVE_COSHF 1
8911 EOF
8912
8913       cat >> confdefs.h <<\EOF
8914 #define HAVE_EXPF 1
8915 EOF
8916
8917       cat >> confdefs.h <<\EOF
8918 #define HAVE_FABSF 1
8919 EOF
8920
8921       cat >> confdefs.h <<\EOF
8922 #define HAVE_FLOORF 1
8923 EOF
8924
8925       cat >> confdefs.h <<\EOF
8926 #define HAVE_FMODF 1
8927 EOF
8928
8929       cat >> confdefs.h <<\EOF
8930 #define HAVE_FREXPF 1
8931 EOF
8932
8933       cat >> confdefs.h <<\EOF
8934 #define HAVE_LDEXPF 1
8935 EOF
8936
8937       cat >> confdefs.h <<\EOF
8938 #define HAVE_LOG10F 1
8939 EOF
8940
8941       cat >> confdefs.h <<\EOF
8942 #define HAVE_LOGF 1
8943 EOF
8944
8945       cat >> confdefs.h <<\EOF
8946 #define HAVE_MODFF 1
8947 EOF
8948
8949       cat >> confdefs.h <<\EOF
8950 #define HAVE_POWF 1
8951 EOF
8952
8953       cat >> confdefs.h <<\EOF
8954 #define HAVE_SINF 1
8955 EOF
8956
8957       cat >> confdefs.h <<\EOF
8958 #define HAVE_SINHF 1
8959 EOF
8960
8961       cat >> confdefs.h <<\EOF
8962 #define HAVE_SQRTF 1
8963 EOF
8964
8965       cat >> confdefs.h <<\EOF
8966 #define HAVE_TANF 1
8967 EOF
8968
8969       cat >> confdefs.h <<\EOF
8970 #define HAVE_TANHF 1
8971 EOF
8972
8973       ;;
8974     *)
8975       # GLIBCPP_CHECK_STDLIB_SUPPORT
8976       cat >> confdefs.h <<\EOF
8977 #define HAVE_STRTOF 1
8978 EOF
8979         
8980       cat >> confdefs.h <<\EOF
8981 #define HAVE_STRTOLD 1
8982 EOF
8983         
8984       # AC_FUNC_MMAP
8985       cat >> confdefs.h <<\EOF
8986 #define HAVE_MMAP 1
8987 EOF
8988
8989
8990       cat >> confdefs.h <<\EOF
8991 #define HAVE_ACOSF 1
8992 EOF
8993
8994       cat >> confdefs.h <<\EOF
8995 #define HAVE_ASINF 1
8996 EOF
8997
8998       cat >> confdefs.h <<\EOF
8999 #define HAVE_ATAN2F 1
9000 EOF
9001
9002       cat >> confdefs.h <<\EOF
9003 #define HAVE_ATANF 1
9004 EOF
9005
9006       cat >> confdefs.h <<\EOF
9007 #define HAVE_CEILF 1
9008 EOF
9009
9010       cat >> confdefs.h <<\EOF
9011 #define HAVE_COPYSIGN 1
9012 EOF
9013
9014       cat >> confdefs.h <<\EOF
9015 #define HAVE_COPYSIGNF 1
9016 EOF
9017
9018       cat >> confdefs.h <<\EOF
9019 #define HAVE_COSF 1
9020 EOF
9021
9022       cat >> confdefs.h <<\EOF
9023 #define HAVE_COSHF 1
9024 EOF
9025
9026       cat >> confdefs.h <<\EOF
9027 #define HAVE_EXPF 1
9028 EOF
9029
9030       cat >> confdefs.h <<\EOF
9031 #define HAVE_FABSF 1
9032 EOF
9033
9034       cat >> confdefs.h <<\EOF
9035 #define HAVE_FLOORF 1
9036 EOF
9037
9038       cat >> confdefs.h <<\EOF
9039 #define HAVE_FMODF 1
9040 EOF
9041
9042       cat >> confdefs.h <<\EOF
9043 #define HAVE_FREXPF 1
9044 EOF
9045
9046       cat >> confdefs.h <<\EOF
9047 #define HAVE_LDEXPF 1
9048 EOF
9049
9050       cat >> confdefs.h <<\EOF
9051 #define HAVE_LOG10F 1
9052 EOF
9053
9054       cat >> confdefs.h <<\EOF
9055 #define HAVE_LOGF 1
9056 EOF
9057
9058       cat >> confdefs.h <<\EOF
9059 #define HAVE_MODFF 1
9060 EOF
9061
9062       cat >> confdefs.h <<\EOF
9063 #define HAVE_POWF 1
9064 EOF
9065
9066       cat >> confdefs.h <<\EOF
9067 #define HAVE_SINF 1
9068 EOF
9069
9070       cat >> confdefs.h <<\EOF
9071 #define HAVE_SINHF 1
9072 EOF
9073
9074       cat >> confdefs.h <<\EOF
9075 #define HAVE_SQRTF 1
9076 EOF
9077
9078       cat >> confdefs.h <<\EOF
9079 #define HAVE_TANF 1
9080 EOF
9081
9082       cat >> confdefs.h <<\EOF
9083 #define HAVE_TANHF 1
9084 EOF
9085
9086       ;;
9087   esac
9088
9089   # At some point, we should differentiate between architectures
9090   # like x86, which have long double versions, and alpha/powerpc/etc.,
9091   # which don't. For the time being, punt.
9092   if test x"long_double_math_on_this_cpu" = x"yes"; then
9093     cat >> confdefs.h <<\EOF
9094 #define HAVE_ACOSL 1
9095 EOF
9096
9097     cat >> confdefs.h <<\EOF
9098 #define HAVE_ASINL 1
9099 EOF
9100
9101     cat >> confdefs.h <<\EOF
9102 #define HAVE_ATAN2L 1
9103 EOF
9104
9105     cat >> confdefs.h <<\EOF
9106 #define HAVE_ATANL 1
9107 EOF
9108
9109     cat >> confdefs.h <<\EOF
9110 #define HAVE_CEILL 1
9111 EOF
9112
9113     cat >> confdefs.h <<\EOF
9114 #define HAVE_COPYSIGNL 1
9115 EOF
9116
9117     cat >> confdefs.h <<\EOF
9118 #define HAVE_COSL 1
9119 EOF
9120
9121     cat >> confdefs.h <<\EOF
9122 #define HAVE_COSHL 1
9123 EOF
9124
9125     cat >> confdefs.h <<\EOF
9126 #define HAVE_EXPL 1
9127 EOF
9128
9129     cat >> confdefs.h <<\EOF
9130 #define HAVE_FABSL 1
9131 EOF
9132
9133     cat >> confdefs.h <<\EOF
9134 #define HAVE_FLOORL 1
9135 EOF
9136
9137     cat >> confdefs.h <<\EOF
9138 #define HAVE_FMODL 1
9139 EOF
9140
9141     cat >> confdefs.h <<\EOF
9142 #define HAVE_FREXPL 1
9143 EOF
9144
9145     cat >> confdefs.h <<\EOF
9146 #define HAVE_LDEXPL 1
9147 EOF
9148
9149     cat >> confdefs.h <<\EOF
9150 #define HAVE_LOG10L 1
9151 EOF
9152
9153     cat >> confdefs.h <<\EOF
9154 #define HAVE_LOGL 1
9155 EOF
9156
9157     cat >> confdefs.h <<\EOF
9158 #define HAVE_MODFL 1
9159 EOF
9160
9161     cat >> confdefs.h <<\EOF
9162 #define HAVE_POWL 1
9163 EOF
9164
9165     cat >> confdefs.h <<\EOF
9166 #define HAVE_SINCOSL 1
9167 EOF
9168
9169     cat >> confdefs.h <<\EOF
9170 #define HAVE_SINL 1
9171 EOF
9172
9173     cat >> confdefs.h <<\EOF
9174 #define HAVE_SINHL 1
9175 EOF
9176
9177     cat >> confdefs.h <<\EOF
9178 #define HAVE_SQRTL 1
9179 EOF
9180
9181     cat >> confdefs.h <<\EOF
9182 #define HAVE_TANL 1
9183 EOF
9184
9185     cat >> confdefs.h <<\EOF
9186 #define HAVE_TANHL 1
9187 EOF
9188
9189   fi
9190
9191 else
9192
9193   # We are being configured natively. We can do more elaborate tests
9194   # that include AC_TRY_COMPILE now, as the linker is assumed to be
9195   # working.
9196   GLIBCPP_IS_CROSS_COMPILING=0
9197   CANADIAN=no
9198
9199   # Check for available headers.
9200   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
9201   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h
9202 do
9203 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9204 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9205 echo "configure:9206: checking for $ac_hdr" >&5
9206 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9207   echo $ac_n "(cached) $ac_c" 1>&6
9208 else
9209   cat > conftest.$ac_ext <<EOF
9210 #line 9211 "configure"
9211 #include "confdefs.h"
9212 #include <$ac_hdr>
9213 EOF
9214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9215 { (eval echo configure:9216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9216 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9217 if test -z "$ac_err"; then
9218   rm -rf conftest*
9219   eval "ac_cv_header_$ac_safe=yes"
9220 else
9221   echo "$ac_err" >&5
9222   echo "configure: failed program was:" >&5
9223   cat conftest.$ac_ext >&5
9224   rm -rf conftest*
9225   eval "ac_cv_header_$ac_safe=no"
9226 fi
9227 rm -f conftest*
9228 fi
9229 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9230   echo "$ac_t""yes" 1>&6
9231     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9232   cat >> confdefs.h <<EOF
9233 #define $ac_tr_hdr 1
9234 EOF
9235  
9236 else
9237   echo "$ac_t""no" 1>&6
9238 fi
9239 done
9240
9241
9242   
9243   # All these tests are for C++; save the language and the compiler flags.
9244   # The CXXFLAGS thing is suspicious, but based on similar bits previously
9245   # found in GLIBCPP_CONFIGURE.
9246   
9247   ac_ext=C
9248 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9249 ac_cpp='$CXXCPP $CPPFLAGS'
9250 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9251 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9252 cross_compiling=$ac_cv_prog_cxx_cross
9253
9254   ac_test_CXXFLAGS="${CXXFLAGS+set}"
9255   ac_save_CXXFLAGS="$CXXFLAGS"
9256
9257   # Check for maintainer-mode bits.
9258   if test x"$USE_MAINTAINER_MODE" = xno; then
9259     WERROR=''
9260   else
9261     WERROR='-Werror'
9262   fi
9263
9264   # Check for -ffunction-sections -fdata-sections
9265   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
9266 echo "configure:9267: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
9267   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
9268   cat > conftest.$ac_ext <<EOF
9269 #line 9270 "configure"
9270 #include "confdefs.h"
9271
9272 int main() {
9273 int foo;
9274   
9275 ; return 0; }
9276 EOF
9277 if { (eval echo configure:9278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9278   rm -rf conftest*
9279   ac_fdsections=yes
9280 else
9281   echo "configure: failed program was:" >&5
9282   cat conftest.$ac_ext >&5
9283   rm -rf conftest*
9284   ac_fdsections=no
9285 fi
9286 rm -f conftest*
9287   if test "$ac_test_CXXFLAGS" = set; then
9288     CXXFLAGS="$ac_save_CXXFLAGS"
9289   else
9290     # this is the suspicious part
9291     CXXFLAGS=''
9292   fi
9293   if test x"$ac_fdsections" = x"yes" &&
9294      test x"$enable_debug" = x"no"; then
9295     SECTION_FLAGS='-ffunction-sections -fdata-sections'
9296   fi
9297   echo "$ac_t""$ac_fdsections" 1>&6
9298
9299   ac_ext=c
9300 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9301 ac_cpp='$CPP $CPPFLAGS'
9302 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9303 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9304 cross_compiling=$ac_cv_prog_cc_cross
9305
9306   
9307   
9308
9309   
9310   # If we're not using GNU ld, then there's no point in even trying these
9311   # tests.  Check for that first.  We should have already tested for gld
9312   # by now (in libtool), but require it now just to be safe...
9313   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9314   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9315   
9316
9317   # The name set by libtool depends on the version of libtool.  Shame on us
9318   # for depending on an impl detail, but c'est la vie.  Older versions used
9319   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9320   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9321   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
9322   # set (hence we're using an older libtool), then set it.
9323   if test x${with_gnu_ld+set} != xset; then
9324     if test x${ac_cv_prog_gnu_ld+set} != xset; then
9325       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
9326       with_gnu_ld=no
9327     else
9328       with_gnu_ld=$ac_cv_prog_gnu_ld
9329     fi
9330   fi
9331
9332   # Start by getting the version number.  I think the libtool test already
9333   # does some of this, but throws away the result.
9334   
9335   ldver=`$LD --version 2>/dev/null | head -1 | \
9336          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9337   
9338   glibcpp_gnu_ld_version=`echo $ldver | \
9339          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9340
9341   # Set --gc-sections.
9342   if test "$with_gnu_ld" = "notbroken"; then
9343     # GNU ld it is!  Joy and bunny rabbits!
9344
9345     # All these tests are for C++; save the language and the compiler flags.
9346     # Need to do this so that g++ won't try to link in libstdc++
9347     ac_test_CFLAGS="${CFLAGS+set}"
9348     ac_save_CFLAGS="$CFLAGS"
9349     CFLAGS='-x c++  -Wl,--gc-sections'
9350
9351     # Check for -Wl,--gc-sections
9352     # XXX This test is broken at the moment, as symbols required for
9353     # linking are now in libsupc++ (not built yet.....). In addition, 
9354     # this test has cored on solaris in the past. In addition,
9355     # --gc-sections doesn't really work at the moment (keeps on discarding
9356     # used sections, first .eh_frame and now some of the glibc sections for
9357     # iconv). Bzzzzt. Thanks for playing, maybe next time.
9358     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9359 echo "configure:9360: checking for ld that supports -Wl,--gc-sections" >&5
9360     if test "$cross_compiling" = yes; then
9361   ac_sectionLDflags=yes
9362 else
9363   cat > conftest.$ac_ext <<EOF
9364 #line 9365 "configure"
9365 #include "confdefs.h"
9366
9367      int main(void) 
9368      {
9369        try { throw 1; }
9370        catch (...) { };
9371        return 0;
9372      }
9373     
9374 EOF
9375 if { (eval echo configure:9376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9376 then
9377   ac_sectionLDflags=yes
9378 else
9379   echo "configure: failed program was:" >&5
9380   cat conftest.$ac_ext >&5
9381   rm -fr conftest*
9382   ac_sectionLDflags=no
9383 fi
9384 rm -fr conftest*
9385 fi
9386
9387     if test "$ac_test_CFLAGS" = set; then
9388       CFLAGS="$ac_save_CFLAGS"
9389     else
9390       # this is the suspicious part
9391       CFLAGS=''
9392     fi
9393     if test "$ac_sectionLDflags" = "yes"; then
9394       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9395     fi
9396     echo "$ac_t""$ac_sectionLDflags" 1>&6
9397   fi
9398
9399   # Set linker optimization flags.
9400   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
9401     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9402   fi
9403
9404   
9405   
9406
9407   
9408       
9409   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
9410 echo "configure:9411: checking for __builtin_abs declaration" >&5
9411   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
9412     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
9413   echo $ac_n "(cached) $ac_c" 1>&6
9414 else
9415   
9416       
9417       ac_ext=C
9418 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9419 ac_cpp='$CXXCPP $CPPFLAGS'
9420 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9421 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9422 cross_compiling=$ac_cv_prog_cxx_cross
9423
9424       cat > conftest.$ac_ext <<EOF
9425 #line 9426 "configure"
9426 #include "confdefs.h"
9427 #include <math.h>
9428 int main() {
9429  __builtin_abs(0);
9430 ; return 0; }
9431 EOF
9432 if { (eval echo configure:9433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9433   rm -rf conftest*
9434   glibcpp_cv_func___builtin_abs_use=yes
9435 else
9436   echo "configure: failed program was:" >&5
9437   cat conftest.$ac_ext >&5
9438   rm -rf conftest*
9439   glibcpp_cv_func___builtin_abs_use=no
9440 fi
9441 rm -f conftest*
9442       ac_ext=c
9443 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9444 ac_cpp='$CPP $CPPFLAGS'
9445 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9446 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9447 cross_compiling=$ac_cv_prog_cc_cross
9448
9449     
9450 fi
9451
9452   fi
9453   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
9454   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
9455     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
9456 echo "configure:9457: checking for __builtin_abs linkage" >&5
9457     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
9458       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
9459   echo $ac_n "(cached) $ac_c" 1>&6
9460 else
9461   
9462         cat > conftest.$ac_ext <<EOF
9463 #line 9464 "configure"
9464 #include "confdefs.h"
9465 #include <math.h>
9466 int main() {
9467  __builtin_abs(0);
9468 ; return 0; }
9469 EOF
9470 if { (eval echo configure:9471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9471   rm -rf conftest*
9472   glibcpp_cv_func___builtin_abs_link=yes
9473 else
9474   echo "configure: failed program was:" >&5
9475   cat conftest.$ac_ext >&5
9476   rm -rf conftest*
9477   glibcpp_cv_func___builtin_abs_link=no
9478 fi
9479 rm -f conftest*
9480       
9481 fi
9482
9483     fi
9484     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
9485     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
9486       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9487       cat >> confdefs.h <<EOF
9488 #define ${ac_tr_func} 1
9489 EOF
9490
9491     fi
9492   fi
9493
9494   
9495   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
9496 echo "configure:9497: checking for __builtin_fabsf declaration" >&5
9497   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
9498     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
9499   echo $ac_n "(cached) $ac_c" 1>&6
9500 else
9501   
9502       
9503       ac_ext=C
9504 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9505 ac_cpp='$CXXCPP $CPPFLAGS'
9506 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9507 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9508 cross_compiling=$ac_cv_prog_cxx_cross
9509
9510       cat > conftest.$ac_ext <<EOF
9511 #line 9512 "configure"
9512 #include "confdefs.h"
9513 #include <math.h>
9514 int main() {
9515  __builtin_fabsf(0);
9516 ; return 0; }
9517 EOF
9518 if { (eval echo configure:9519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9519   rm -rf conftest*
9520   glibcpp_cv_func___builtin_fabsf_use=yes
9521 else
9522   echo "configure: failed program was:" >&5
9523   cat conftest.$ac_ext >&5
9524   rm -rf conftest*
9525   glibcpp_cv_func___builtin_fabsf_use=no
9526 fi
9527 rm -f conftest*
9528       ac_ext=c
9529 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9530 ac_cpp='$CPP $CPPFLAGS'
9531 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9532 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9533 cross_compiling=$ac_cv_prog_cc_cross
9534
9535     
9536 fi
9537
9538   fi
9539   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
9540   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
9541     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
9542 echo "configure:9543: checking for __builtin_fabsf linkage" >&5
9543     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
9544       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
9545   echo $ac_n "(cached) $ac_c" 1>&6
9546 else
9547   
9548         cat > conftest.$ac_ext <<EOF
9549 #line 9550 "configure"
9550 #include "confdefs.h"
9551 #include <math.h>
9552 int main() {
9553  __builtin_fabsf(0);
9554 ; return 0; }
9555 EOF
9556 if { (eval echo configure:9557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9557   rm -rf conftest*
9558   glibcpp_cv_func___builtin_fabsf_link=yes
9559 else
9560   echo "configure: failed program was:" >&5
9561   cat conftest.$ac_ext >&5
9562   rm -rf conftest*
9563   glibcpp_cv_func___builtin_fabsf_link=no
9564 fi
9565 rm -f conftest*
9566       
9567 fi
9568
9569     fi
9570     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
9571     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
9572       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9573       cat >> confdefs.h <<EOF
9574 #define ${ac_tr_func} 1
9575 EOF
9576
9577     fi
9578   fi
9579
9580   
9581   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
9582 echo "configure:9583: checking for __builtin_fabs declaration" >&5
9583   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
9584     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
9585   echo $ac_n "(cached) $ac_c" 1>&6
9586 else
9587   
9588       
9589       ac_ext=C
9590 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9591 ac_cpp='$CXXCPP $CPPFLAGS'
9592 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9593 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9594 cross_compiling=$ac_cv_prog_cxx_cross
9595
9596       cat > conftest.$ac_ext <<EOF
9597 #line 9598 "configure"
9598 #include "confdefs.h"
9599 #include <math.h>
9600 int main() {
9601  __builtin_fabs(0);
9602 ; return 0; }
9603 EOF
9604 if { (eval echo configure:9605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9605   rm -rf conftest*
9606   glibcpp_cv_func___builtin_fabs_use=yes
9607 else
9608   echo "configure: failed program was:" >&5
9609   cat conftest.$ac_ext >&5
9610   rm -rf conftest*
9611   glibcpp_cv_func___builtin_fabs_use=no
9612 fi
9613 rm -f conftest*
9614       ac_ext=c
9615 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9616 ac_cpp='$CPP $CPPFLAGS'
9617 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9618 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9619 cross_compiling=$ac_cv_prog_cc_cross
9620
9621     
9622 fi
9623
9624   fi
9625   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
9626   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
9627     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
9628 echo "configure:9629: checking for __builtin_fabs linkage" >&5
9629     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
9630       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
9631   echo $ac_n "(cached) $ac_c" 1>&6
9632 else
9633   
9634         cat > conftest.$ac_ext <<EOF
9635 #line 9636 "configure"
9636 #include "confdefs.h"
9637 #include <math.h>
9638 int main() {
9639  __builtin_fabs(0);
9640 ; return 0; }
9641 EOF
9642 if { (eval echo configure:9643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9643   rm -rf conftest*
9644   glibcpp_cv_func___builtin_fabs_link=yes
9645 else
9646   echo "configure: failed program was:" >&5
9647   cat conftest.$ac_ext >&5
9648   rm -rf conftest*
9649   glibcpp_cv_func___builtin_fabs_link=no
9650 fi
9651 rm -f conftest*
9652       
9653 fi
9654
9655     fi
9656     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
9657     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
9658       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9659       cat >> confdefs.h <<EOF
9660 #define ${ac_tr_func} 1
9661 EOF
9662
9663     fi
9664   fi
9665
9666   
9667   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
9668 echo "configure:9669: checking for __builtin_fabsl declaration" >&5
9669   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
9670     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
9671   echo $ac_n "(cached) $ac_c" 1>&6
9672 else
9673   
9674       
9675       ac_ext=C
9676 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9677 ac_cpp='$CXXCPP $CPPFLAGS'
9678 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9679 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9680 cross_compiling=$ac_cv_prog_cxx_cross
9681
9682       cat > conftest.$ac_ext <<EOF
9683 #line 9684 "configure"
9684 #include "confdefs.h"
9685 #include <math.h>
9686 int main() {
9687  __builtin_fabsl(0);
9688 ; return 0; }
9689 EOF
9690 if { (eval echo configure:9691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9691   rm -rf conftest*
9692   glibcpp_cv_func___builtin_fabsl_use=yes
9693 else
9694   echo "configure: failed program was:" >&5
9695   cat conftest.$ac_ext >&5
9696   rm -rf conftest*
9697   glibcpp_cv_func___builtin_fabsl_use=no
9698 fi
9699 rm -f conftest*
9700       ac_ext=c
9701 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9702 ac_cpp='$CPP $CPPFLAGS'
9703 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9704 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9705 cross_compiling=$ac_cv_prog_cc_cross
9706
9707     
9708 fi
9709
9710   fi
9711   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
9712   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
9713     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
9714 echo "configure:9715: checking for __builtin_fabsl linkage" >&5
9715     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
9716       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
9717   echo $ac_n "(cached) $ac_c" 1>&6
9718 else
9719   
9720         cat > conftest.$ac_ext <<EOF
9721 #line 9722 "configure"
9722 #include "confdefs.h"
9723 #include <math.h>
9724 int main() {
9725  __builtin_fabsl(0);
9726 ; return 0; }
9727 EOF
9728 if { (eval echo configure:9729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9729   rm -rf conftest*
9730   glibcpp_cv_func___builtin_fabsl_link=yes
9731 else
9732   echo "configure: failed program was:" >&5
9733   cat conftest.$ac_ext >&5
9734   rm -rf conftest*
9735   glibcpp_cv_func___builtin_fabsl_link=no
9736 fi
9737 rm -f conftest*
9738       
9739 fi
9740
9741     fi
9742     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
9743     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
9744       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9745       cat >> confdefs.h <<EOF
9746 #define ${ac_tr_func} 1
9747 EOF
9748
9749     fi
9750   fi
9751
9752   
9753   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
9754 echo "configure:9755: checking for __builtin_labs declaration" >&5
9755   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
9756     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
9757   echo $ac_n "(cached) $ac_c" 1>&6
9758 else
9759   
9760       
9761       ac_ext=C
9762 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9763 ac_cpp='$CXXCPP $CPPFLAGS'
9764 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9765 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9766 cross_compiling=$ac_cv_prog_cxx_cross
9767
9768       cat > conftest.$ac_ext <<EOF
9769 #line 9770 "configure"
9770 #include "confdefs.h"
9771 #include <math.h>
9772 int main() {
9773  __builtin_labs(0);
9774 ; return 0; }
9775 EOF
9776 if { (eval echo configure:9777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9777   rm -rf conftest*
9778   glibcpp_cv_func___builtin_labs_use=yes
9779 else
9780   echo "configure: failed program was:" >&5
9781   cat conftest.$ac_ext >&5
9782   rm -rf conftest*
9783   glibcpp_cv_func___builtin_labs_use=no
9784 fi
9785 rm -f conftest*
9786       ac_ext=c
9787 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9788 ac_cpp='$CPP $CPPFLAGS'
9789 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9790 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9791 cross_compiling=$ac_cv_prog_cc_cross
9792
9793     
9794 fi
9795
9796   fi
9797   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
9798   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
9799     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
9800 echo "configure:9801: checking for __builtin_labs linkage" >&5
9801     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
9802       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
9803   echo $ac_n "(cached) $ac_c" 1>&6
9804 else
9805   
9806         cat > conftest.$ac_ext <<EOF
9807 #line 9808 "configure"
9808 #include "confdefs.h"
9809 #include <math.h>
9810 int main() {
9811  __builtin_labs(0);
9812 ; return 0; }
9813 EOF
9814 if { (eval echo configure:9815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9815   rm -rf conftest*
9816   glibcpp_cv_func___builtin_labs_link=yes
9817 else
9818   echo "configure: failed program was:" >&5
9819   cat conftest.$ac_ext >&5
9820   rm -rf conftest*
9821   glibcpp_cv_func___builtin_labs_link=no
9822 fi
9823 rm -f conftest*
9824       
9825 fi
9826
9827     fi
9828     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
9829     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
9830       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9831       cat >> confdefs.h <<EOF
9832 #define ${ac_tr_func} 1
9833 EOF
9834
9835     fi
9836   fi
9837
9838
9839   
9840   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
9841 echo "configure:9842: checking for __builtin_sqrtf declaration" >&5
9842   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
9843     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
9844   echo $ac_n "(cached) $ac_c" 1>&6
9845 else
9846   
9847       
9848       ac_ext=C
9849 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9850 ac_cpp='$CXXCPP $CPPFLAGS'
9851 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9852 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9853 cross_compiling=$ac_cv_prog_cxx_cross
9854
9855       cat > conftest.$ac_ext <<EOF
9856 #line 9857 "configure"
9857 #include "confdefs.h"
9858 #include <math.h>
9859 int main() {
9860  __builtin_sqrtf(0);
9861 ; return 0; }
9862 EOF
9863 if { (eval echo configure:9864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9864   rm -rf conftest*
9865   glibcpp_cv_func___builtin_sqrtf_use=yes
9866 else
9867   echo "configure: failed program was:" >&5
9868   cat conftest.$ac_ext >&5
9869   rm -rf conftest*
9870   glibcpp_cv_func___builtin_sqrtf_use=no
9871 fi
9872 rm -f conftest*
9873       ac_ext=c
9874 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9875 ac_cpp='$CPP $CPPFLAGS'
9876 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9877 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9878 cross_compiling=$ac_cv_prog_cc_cross
9879
9880     
9881 fi
9882
9883   fi
9884   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
9885   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
9886     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
9887 echo "configure:9888: checking for __builtin_sqrtf linkage" >&5
9888     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
9889       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
9890   echo $ac_n "(cached) $ac_c" 1>&6
9891 else
9892   
9893         cat > conftest.$ac_ext <<EOF
9894 #line 9895 "configure"
9895 #include "confdefs.h"
9896 #include <math.h>
9897 int main() {
9898  __builtin_sqrtf(0);
9899 ; return 0; }
9900 EOF
9901 if { (eval echo configure:9902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9902   rm -rf conftest*
9903   glibcpp_cv_func___builtin_sqrtf_link=yes
9904 else
9905   echo "configure: failed program was:" >&5
9906   cat conftest.$ac_ext >&5
9907   rm -rf conftest*
9908   glibcpp_cv_func___builtin_sqrtf_link=no
9909 fi
9910 rm -f conftest*
9911       
9912 fi
9913
9914     fi
9915     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
9916     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
9917       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9918       cat >> confdefs.h <<EOF
9919 #define ${ac_tr_func} 1
9920 EOF
9921
9922     fi
9923   fi
9924
9925   
9926   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
9927 echo "configure:9928: checking for __builtin_sqrt declaration" >&5
9928   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
9929     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
9930   echo $ac_n "(cached) $ac_c" 1>&6
9931 else
9932   
9933       
9934       ac_ext=C
9935 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9936 ac_cpp='$CXXCPP $CPPFLAGS'
9937 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9938 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9939 cross_compiling=$ac_cv_prog_cxx_cross
9940
9941       cat > conftest.$ac_ext <<EOF
9942 #line 9943 "configure"
9943 #include "confdefs.h"
9944 #include <math.h>
9945 int main() {
9946  __builtin_sqrt(0);
9947 ; return 0; }
9948 EOF
9949 if { (eval echo configure:9950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9950   rm -rf conftest*
9951   glibcpp_cv_func___builtin_sqrt_use=yes
9952 else
9953   echo "configure: failed program was:" >&5
9954   cat conftest.$ac_ext >&5
9955   rm -rf conftest*
9956   glibcpp_cv_func___builtin_sqrt_use=no
9957 fi
9958 rm -f conftest*
9959       ac_ext=c
9960 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9961 ac_cpp='$CPP $CPPFLAGS'
9962 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9963 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9964 cross_compiling=$ac_cv_prog_cc_cross
9965
9966     
9967 fi
9968
9969   fi
9970   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
9971   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
9972     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
9973 echo "configure:9974: checking for __builtin_sqrt linkage" >&5
9974     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
9975       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
9976   echo $ac_n "(cached) $ac_c" 1>&6
9977 else
9978   
9979         cat > conftest.$ac_ext <<EOF
9980 #line 9981 "configure"
9981 #include "confdefs.h"
9982 #include <math.h>
9983 int main() {
9984  __builtin_sqrt(0);
9985 ; return 0; }
9986 EOF
9987 if { (eval echo configure:9988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9988   rm -rf conftest*
9989   glibcpp_cv_func___builtin_sqrt_link=yes
9990 else
9991   echo "configure: failed program was:" >&5
9992   cat conftest.$ac_ext >&5
9993   rm -rf conftest*
9994   glibcpp_cv_func___builtin_sqrt_link=no
9995 fi
9996 rm -f conftest*
9997       
9998 fi
9999
10000     fi
10001     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
10002     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
10003       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10004       cat >> confdefs.h <<EOF
10005 #define ${ac_tr_func} 1
10006 EOF
10007
10008     fi
10009   fi
10010
10011   
10012   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
10013 echo "configure:10014: checking for __builtin_sqrtl declaration" >&5
10014   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
10015     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
10016   echo $ac_n "(cached) $ac_c" 1>&6
10017 else
10018   
10019       
10020       ac_ext=C
10021 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10022 ac_cpp='$CXXCPP $CPPFLAGS'
10023 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10024 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10025 cross_compiling=$ac_cv_prog_cxx_cross
10026
10027       cat > conftest.$ac_ext <<EOF
10028 #line 10029 "configure"
10029 #include "confdefs.h"
10030 #include <math.h>
10031 int main() {
10032  __builtin_sqrtl(0);
10033 ; return 0; }
10034 EOF
10035 if { (eval echo configure:10036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10036   rm -rf conftest*
10037   glibcpp_cv_func___builtin_sqrtl_use=yes
10038 else
10039   echo "configure: failed program was:" >&5
10040   cat conftest.$ac_ext >&5
10041   rm -rf conftest*
10042   glibcpp_cv_func___builtin_sqrtl_use=no
10043 fi
10044 rm -f conftest*
10045       ac_ext=c
10046 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10047 ac_cpp='$CPP $CPPFLAGS'
10048 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10049 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10050 cross_compiling=$ac_cv_prog_cc_cross
10051
10052     
10053 fi
10054
10055   fi
10056   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
10057   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
10058     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
10059 echo "configure:10060: checking for __builtin_sqrtl linkage" >&5
10060     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
10061       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
10062   echo $ac_n "(cached) $ac_c" 1>&6
10063 else
10064   
10065         cat > conftest.$ac_ext <<EOF
10066 #line 10067 "configure"
10067 #include "confdefs.h"
10068 #include <math.h>
10069 int main() {
10070  __builtin_sqrtl(0);
10071 ; return 0; }
10072 EOF
10073 if { (eval echo configure:10074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10074   rm -rf conftest*
10075   glibcpp_cv_func___builtin_sqrtl_link=yes
10076 else
10077   echo "configure: failed program was:" >&5
10078   cat conftest.$ac_ext >&5
10079   rm -rf conftest*
10080   glibcpp_cv_func___builtin_sqrtl_link=no
10081 fi
10082 rm -f conftest*
10083       
10084 fi
10085
10086     fi
10087     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
10088     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
10089       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10090       cat >> confdefs.h <<EOF
10091 #define ${ac_tr_func} 1
10092 EOF
10093
10094     fi
10095   fi
10096
10097
10098   
10099   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
10100 echo "configure:10101: checking for __builtin_sinf declaration" >&5
10101   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
10102     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
10103   echo $ac_n "(cached) $ac_c" 1>&6
10104 else
10105   
10106       
10107       ac_ext=C
10108 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10109 ac_cpp='$CXXCPP $CPPFLAGS'
10110 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10111 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10112 cross_compiling=$ac_cv_prog_cxx_cross
10113
10114       cat > conftest.$ac_ext <<EOF
10115 #line 10116 "configure"
10116 #include "confdefs.h"
10117 #include <math.h>
10118 int main() {
10119  __builtin_sinf(0);
10120 ; return 0; }
10121 EOF
10122 if { (eval echo configure:10123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10123   rm -rf conftest*
10124   glibcpp_cv_func___builtin_sinf_use=yes
10125 else
10126   echo "configure: failed program was:" >&5
10127   cat conftest.$ac_ext >&5
10128   rm -rf conftest*
10129   glibcpp_cv_func___builtin_sinf_use=no
10130 fi
10131 rm -f conftest*
10132       ac_ext=c
10133 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10134 ac_cpp='$CPP $CPPFLAGS'
10135 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10136 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10137 cross_compiling=$ac_cv_prog_cc_cross
10138
10139     
10140 fi
10141
10142   fi
10143   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
10144   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
10145     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
10146 echo "configure:10147: checking for __builtin_sinf linkage" >&5
10147     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
10148       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
10149   echo $ac_n "(cached) $ac_c" 1>&6
10150 else
10151   
10152         cat > conftest.$ac_ext <<EOF
10153 #line 10154 "configure"
10154 #include "confdefs.h"
10155 #include <math.h>
10156 int main() {
10157  __builtin_sinf(0);
10158 ; return 0; }
10159 EOF
10160 if { (eval echo configure:10161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10161   rm -rf conftest*
10162   glibcpp_cv_func___builtin_sinf_link=yes
10163 else
10164   echo "configure: failed program was:" >&5
10165   cat conftest.$ac_ext >&5
10166   rm -rf conftest*
10167   glibcpp_cv_func___builtin_sinf_link=no
10168 fi
10169 rm -f conftest*
10170       
10171 fi
10172
10173     fi
10174     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
10175     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
10176       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10177       cat >> confdefs.h <<EOF
10178 #define ${ac_tr_func} 1
10179 EOF
10180
10181     fi
10182   fi
10183
10184   
10185   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
10186 echo "configure:10187: checking for __builtin_sin declaration" >&5
10187   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
10188     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
10189   echo $ac_n "(cached) $ac_c" 1>&6
10190 else
10191   
10192       
10193       ac_ext=C
10194 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10195 ac_cpp='$CXXCPP $CPPFLAGS'
10196 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10197 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10198 cross_compiling=$ac_cv_prog_cxx_cross
10199
10200       cat > conftest.$ac_ext <<EOF
10201 #line 10202 "configure"
10202 #include "confdefs.h"
10203 #include <math.h>
10204 int main() {
10205  __builtin_sin(0);
10206 ; return 0; }
10207 EOF
10208 if { (eval echo configure:10209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10209   rm -rf conftest*
10210   glibcpp_cv_func___builtin_sin_use=yes
10211 else
10212   echo "configure: failed program was:" >&5
10213   cat conftest.$ac_ext >&5
10214   rm -rf conftest*
10215   glibcpp_cv_func___builtin_sin_use=no
10216 fi
10217 rm -f conftest*
10218       ac_ext=c
10219 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10220 ac_cpp='$CPP $CPPFLAGS'
10221 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10222 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10223 cross_compiling=$ac_cv_prog_cc_cross
10224
10225     
10226 fi
10227
10228   fi
10229   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
10230   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
10231     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
10232 echo "configure:10233: checking for __builtin_sin linkage" >&5
10233     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
10234       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
10235   echo $ac_n "(cached) $ac_c" 1>&6
10236 else
10237   
10238         cat > conftest.$ac_ext <<EOF
10239 #line 10240 "configure"
10240 #include "confdefs.h"
10241 #include <math.h>
10242 int main() {
10243  __builtin_sin(0);
10244 ; return 0; }
10245 EOF
10246 if { (eval echo configure:10247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10247   rm -rf conftest*
10248   glibcpp_cv_func___builtin_sin_link=yes
10249 else
10250   echo "configure: failed program was:" >&5
10251   cat conftest.$ac_ext >&5
10252   rm -rf conftest*
10253   glibcpp_cv_func___builtin_sin_link=no
10254 fi
10255 rm -f conftest*
10256       
10257 fi
10258
10259     fi
10260     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
10261     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
10262       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10263       cat >> confdefs.h <<EOF
10264 #define ${ac_tr_func} 1
10265 EOF
10266
10267     fi
10268   fi
10269
10270   
10271   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
10272 echo "configure:10273: checking for __builtin_sinl declaration" >&5
10273   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
10274     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
10275   echo $ac_n "(cached) $ac_c" 1>&6
10276 else
10277   
10278       
10279       ac_ext=C
10280 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10281 ac_cpp='$CXXCPP $CPPFLAGS'
10282 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10283 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10284 cross_compiling=$ac_cv_prog_cxx_cross
10285
10286       cat > conftest.$ac_ext <<EOF
10287 #line 10288 "configure"
10288 #include "confdefs.h"
10289 #include <math.h>
10290 int main() {
10291  __builtin_sinl(0);
10292 ; return 0; }
10293 EOF
10294 if { (eval echo configure:10295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10295   rm -rf conftest*
10296   glibcpp_cv_func___builtin_sinl_use=yes
10297 else
10298   echo "configure: failed program was:" >&5
10299   cat conftest.$ac_ext >&5
10300   rm -rf conftest*
10301   glibcpp_cv_func___builtin_sinl_use=no
10302 fi
10303 rm -f conftest*
10304       ac_ext=c
10305 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10306 ac_cpp='$CPP $CPPFLAGS'
10307 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10308 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10309 cross_compiling=$ac_cv_prog_cc_cross
10310
10311     
10312 fi
10313
10314   fi
10315   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
10316   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
10317     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
10318 echo "configure:10319: checking for __builtin_sinl linkage" >&5
10319     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
10320       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
10321   echo $ac_n "(cached) $ac_c" 1>&6
10322 else
10323   
10324         cat > conftest.$ac_ext <<EOF
10325 #line 10326 "configure"
10326 #include "confdefs.h"
10327 #include <math.h>
10328 int main() {
10329  __builtin_sinl(0);
10330 ; return 0; }
10331 EOF
10332 if { (eval echo configure:10333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10333   rm -rf conftest*
10334   glibcpp_cv_func___builtin_sinl_link=yes
10335 else
10336   echo "configure: failed program was:" >&5
10337   cat conftest.$ac_ext >&5
10338   rm -rf conftest*
10339   glibcpp_cv_func___builtin_sinl_link=no
10340 fi
10341 rm -f conftest*
10342       
10343 fi
10344
10345     fi
10346     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
10347     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
10348       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10349       cat >> confdefs.h <<EOF
10350 #define ${ac_tr_func} 1
10351 EOF
10352
10353     fi
10354   fi
10355
10356
10357   
10358   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
10359 echo "configure:10360: checking for __builtin_cosf declaration" >&5
10360   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
10361     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
10362   echo $ac_n "(cached) $ac_c" 1>&6
10363 else
10364   
10365       
10366       ac_ext=C
10367 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10368 ac_cpp='$CXXCPP $CPPFLAGS'
10369 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10370 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10371 cross_compiling=$ac_cv_prog_cxx_cross
10372
10373       cat > conftest.$ac_ext <<EOF
10374 #line 10375 "configure"
10375 #include "confdefs.h"
10376 #include <math.h>
10377 int main() {
10378  __builtin_cosf(0);
10379 ; return 0; }
10380 EOF
10381 if { (eval echo configure:10382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10382   rm -rf conftest*
10383   glibcpp_cv_func___builtin_cosf_use=yes
10384 else
10385   echo "configure: failed program was:" >&5
10386   cat conftest.$ac_ext >&5
10387   rm -rf conftest*
10388   glibcpp_cv_func___builtin_cosf_use=no
10389 fi
10390 rm -f conftest*
10391       ac_ext=c
10392 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10393 ac_cpp='$CPP $CPPFLAGS'
10394 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10395 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10396 cross_compiling=$ac_cv_prog_cc_cross
10397
10398     
10399 fi
10400
10401   fi
10402   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
10403   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
10404     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
10405 echo "configure:10406: checking for __builtin_cosf linkage" >&5
10406     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
10407       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
10408   echo $ac_n "(cached) $ac_c" 1>&6
10409 else
10410   
10411         cat > conftest.$ac_ext <<EOF
10412 #line 10413 "configure"
10413 #include "confdefs.h"
10414 #include <math.h>
10415 int main() {
10416  __builtin_cosf(0);
10417 ; return 0; }
10418 EOF
10419 if { (eval echo configure:10420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10420   rm -rf conftest*
10421   glibcpp_cv_func___builtin_cosf_link=yes
10422 else
10423   echo "configure: failed program was:" >&5
10424   cat conftest.$ac_ext >&5
10425   rm -rf conftest*
10426   glibcpp_cv_func___builtin_cosf_link=no
10427 fi
10428 rm -f conftest*
10429       
10430 fi
10431
10432     fi
10433     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
10434     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
10435       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10436       cat >> confdefs.h <<EOF
10437 #define ${ac_tr_func} 1
10438 EOF
10439
10440     fi
10441   fi
10442
10443   
10444   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
10445 echo "configure:10446: checking for __builtin_cos declaration" >&5
10446   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
10447     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
10448   echo $ac_n "(cached) $ac_c" 1>&6
10449 else
10450   
10451       
10452       ac_ext=C
10453 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10454 ac_cpp='$CXXCPP $CPPFLAGS'
10455 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10456 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10457 cross_compiling=$ac_cv_prog_cxx_cross
10458
10459       cat > conftest.$ac_ext <<EOF
10460 #line 10461 "configure"
10461 #include "confdefs.h"
10462 #include <math.h>
10463 int main() {
10464  __builtin_cos(0);
10465 ; return 0; }
10466 EOF
10467 if { (eval echo configure:10468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10468   rm -rf conftest*
10469   glibcpp_cv_func___builtin_cos_use=yes
10470 else
10471   echo "configure: failed program was:" >&5
10472   cat conftest.$ac_ext >&5
10473   rm -rf conftest*
10474   glibcpp_cv_func___builtin_cos_use=no
10475 fi
10476 rm -f conftest*
10477       ac_ext=c
10478 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10479 ac_cpp='$CPP $CPPFLAGS'
10480 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10481 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10482 cross_compiling=$ac_cv_prog_cc_cross
10483
10484     
10485 fi
10486
10487   fi
10488   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
10489   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
10490     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
10491 echo "configure:10492: checking for __builtin_cos linkage" >&5
10492     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
10493       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
10494   echo $ac_n "(cached) $ac_c" 1>&6
10495 else
10496   
10497         cat > conftest.$ac_ext <<EOF
10498 #line 10499 "configure"
10499 #include "confdefs.h"
10500 #include <math.h>
10501 int main() {
10502  __builtin_cos(0);
10503 ; return 0; }
10504 EOF
10505 if { (eval echo configure:10506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10506   rm -rf conftest*
10507   glibcpp_cv_func___builtin_cos_link=yes
10508 else
10509   echo "configure: failed program was:" >&5
10510   cat conftest.$ac_ext >&5
10511   rm -rf conftest*
10512   glibcpp_cv_func___builtin_cos_link=no
10513 fi
10514 rm -f conftest*
10515       
10516 fi
10517
10518     fi
10519     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
10520     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
10521       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10522       cat >> confdefs.h <<EOF
10523 #define ${ac_tr_func} 1
10524 EOF
10525
10526     fi
10527   fi
10528
10529   
10530   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
10531 echo "configure:10532: checking for __builtin_cosl declaration" >&5
10532   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
10533     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
10534   echo $ac_n "(cached) $ac_c" 1>&6
10535 else
10536   
10537       
10538       ac_ext=C
10539 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10540 ac_cpp='$CXXCPP $CPPFLAGS'
10541 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10542 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10543 cross_compiling=$ac_cv_prog_cxx_cross
10544
10545       cat > conftest.$ac_ext <<EOF
10546 #line 10547 "configure"
10547 #include "confdefs.h"
10548 #include <math.h>
10549 int main() {
10550  __builtin_cosl(0);
10551 ; return 0; }
10552 EOF
10553 if { (eval echo configure:10554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10554   rm -rf conftest*
10555   glibcpp_cv_func___builtin_cosl_use=yes
10556 else
10557   echo "configure: failed program was:" >&5
10558   cat conftest.$ac_ext >&5
10559   rm -rf conftest*
10560   glibcpp_cv_func___builtin_cosl_use=no
10561 fi
10562 rm -f conftest*
10563       ac_ext=c
10564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10565 ac_cpp='$CPP $CPPFLAGS'
10566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10568 cross_compiling=$ac_cv_prog_cc_cross
10569
10570     
10571 fi
10572
10573   fi
10574   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
10575   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
10576     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
10577 echo "configure:10578: checking for __builtin_cosl linkage" >&5
10578     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
10579       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
10580   echo $ac_n "(cached) $ac_c" 1>&6
10581 else
10582   
10583         cat > conftest.$ac_ext <<EOF
10584 #line 10585 "configure"
10585 #include "confdefs.h"
10586 #include <math.h>
10587 int main() {
10588  __builtin_cosl(0);
10589 ; return 0; }
10590 EOF
10591 if { (eval echo configure:10592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10592   rm -rf conftest*
10593   glibcpp_cv_func___builtin_cosl_link=yes
10594 else
10595   echo "configure: failed program was:" >&5
10596   cat conftest.$ac_ext >&5
10597   rm -rf conftest*
10598   glibcpp_cv_func___builtin_cosl_link=no
10599 fi
10600 rm -f conftest*
10601       
10602 fi
10603
10604     fi
10605     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
10606     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
10607       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10608       cat >> confdefs.h <<EOF
10609 #define ${ac_tr_func} 1
10610 EOF
10611
10612     fi
10613   fi
10614
10615
10616               dummyvar=no
10617   if test x$dummyvar = x"yes"; then
10618     cat >> confdefs.h <<\EOF
10619 #define HAVE___BUILTIN_ABS 1
10620 EOF
10621
10622     cat >> confdefs.h <<\EOF
10623 #define HAVE___BUILTIN_LABS 1
10624 EOF
10625
10626     cat >> confdefs.h <<\EOF
10627 #define HAVE___BUILTIN_COS 1
10628 EOF
10629
10630     cat >> confdefs.h <<\EOF
10631 #define HAVE___BUILTIN_COSF 1
10632 EOF
10633
10634     cat >> confdefs.h <<\EOF
10635 #define HAVE___BUILTIN_COSL 1
10636 EOF
10637
10638     cat >> confdefs.h <<\EOF
10639 #define HAVE___BUILTIN_FABS 1
10640 EOF
10641
10642     cat >> confdefs.h <<\EOF
10643 #define HAVE___BUILTIN_FABSF 1
10644 EOF
10645
10646     cat >> confdefs.h <<\EOF
10647 #define HAVE___BUILTIN_FABSL 1
10648 EOF
10649
10650     cat >> confdefs.h <<\EOF
10651 #define HAVE___BUILTIN_SIN 1
10652 EOF
10653
10654     cat >> confdefs.h <<\EOF
10655 #define HAVE___BUILTIN_SINF 1
10656 EOF
10657
10658     cat >> confdefs.h <<\EOF
10659 #define HAVE___BUILTIN_SINL 1
10660 EOF
10661
10662     cat >> confdefs.h <<\EOF
10663 #define HAVE___BUILTIN_SQRT 1
10664 EOF
10665
10666     cat >> confdefs.h <<\EOF
10667 #define HAVE___BUILTIN_SQRTF 1
10668 EOF
10669
10670     cat >> confdefs.h <<\EOF
10671 #define HAVE___BUILTIN_SQRTL 1
10672 EOF
10673
10674   fi
10675
10676   
10677   ac_test_CXXFLAGS="${CXXFLAGS+set}"
10678   ac_save_CXXFLAGS="$CXXFLAGS"
10679   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
10680
10681     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10682 echo "configure:10683: checking for sin in -lm" >&5
10683 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10684 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10685   echo $ac_n "(cached) $ac_c" 1>&6
10686 else
10687   ac_save_LIBS="$LIBS"
10688 LIBS="-lm  $LIBS"
10689 cat > conftest.$ac_ext <<EOF
10690 #line 10691 "configure"
10691 #include "confdefs.h"
10692 /* Override any gcc2 internal prototype to avoid an error.  */
10693 /* We use char because int might match the return type of a gcc2
10694     builtin and then its argument prototype would still apply.  */
10695 char sin();
10696
10697 int main() {
10698 sin()
10699 ; return 0; }
10700 EOF
10701 if { (eval echo configure:10702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10702   rm -rf conftest*
10703   eval "ac_cv_lib_$ac_lib_var=yes"
10704 else
10705   echo "configure: failed program was:" >&5
10706   cat conftest.$ac_ext >&5
10707   rm -rf conftest*
10708   eval "ac_cv_lib_$ac_lib_var=no"
10709 fi
10710 rm -f conftest*
10711 LIBS="$ac_save_LIBS"
10712
10713 fi
10714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10715   echo "$ac_t""yes" 1>&6
10716   libm="-lm"
10717 else
10718   echo "$ac_t""no" 1>&6
10719 fi
10720
10721   ac_save_LIBS="$LIBS"
10722   LIBS="$LIBS $libm"
10723
10724     
10725   
10726   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10727 echo "configure:10728: checking for isinf declaration" >&5
10728   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
10729     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
10730   echo $ac_n "(cached) $ac_c" 1>&6
10731 else
10732   
10733       
10734       ac_ext=C
10735 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10736 ac_cpp='$CXXCPP $CPPFLAGS'
10737 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10738 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10739 cross_compiling=$ac_cv_prog_cxx_cross
10740
10741       cat > conftest.$ac_ext <<EOF
10742 #line 10743 "configure"
10743 #include "confdefs.h"
10744 #include <math.h>
10745                       #ifdef HAVE_IEEEFP_H
10746                       #include <ieeefp.h>
10747                       #endif
10748                      
10749 int main() {
10750  isinf(0);
10751 ; return 0; }
10752 EOF
10753 if { (eval echo configure:10754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10754   rm -rf conftest*
10755   glibcpp_cv_func_isinf_use=yes
10756 else
10757   echo "configure: failed program was:" >&5
10758   cat conftest.$ac_ext >&5
10759   rm -rf conftest*
10760   glibcpp_cv_func_isinf_use=no
10761 fi
10762 rm -f conftest*
10763       ac_ext=c
10764 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10765 ac_cpp='$CPP $CPPFLAGS'
10766 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10767 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10768 cross_compiling=$ac_cv_prog_cc_cross
10769
10770     
10771 fi
10772
10773   fi
10774   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
10775
10776   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
10777     for ac_func in isinf
10778 do
10779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10780 echo "configure:10781: checking for $ac_func" >&5
10781 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10782   echo $ac_n "(cached) $ac_c" 1>&6
10783 else
10784   cat > conftest.$ac_ext <<EOF
10785 #line 10786 "configure"
10786 #include "confdefs.h"
10787 /* System header to define __stub macros and hopefully few prototypes,
10788     which can conflict with char $ac_func(); below.  */
10789 #include <assert.h>
10790 /* Override any gcc2 internal prototype to avoid an error.  */
10791 /* We use char because int might match the return type of a gcc2
10792     builtin and then its argument prototype would still apply.  */
10793 char $ac_func();
10794
10795 int main() {
10796
10797 /* The GNU C library defines this for functions which it implements
10798     to always fail with ENOSYS.  Some functions are actually named
10799     something starting with __ and the normal name is an alias.  */
10800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10801 choke me
10802 #else
10803 $ac_func();
10804 #endif
10805
10806 ; return 0; }
10807 EOF
10808 if { (eval echo configure:10809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10809   rm -rf conftest*
10810   eval "ac_cv_func_$ac_func=yes"
10811 else
10812   echo "configure: failed program was:" >&5
10813   cat conftest.$ac_ext >&5
10814   rm -rf conftest*
10815   eval "ac_cv_func_$ac_func=no"
10816 fi
10817 rm -f conftest*
10818 fi
10819
10820 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10821   echo "$ac_t""yes" 1>&6
10822     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10823   cat >> confdefs.h <<EOF
10824 #define $ac_tr_func 1
10825 EOF
10826  
10827 else
10828   echo "$ac_t""no" 1>&6
10829 fi
10830 done
10831     
10832   else
10833     
10834   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
10835 echo "configure:10836: checking for _isinf declaration" >&5
10836   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
10837     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
10838   echo $ac_n "(cached) $ac_c" 1>&6
10839 else
10840   
10841       
10842       ac_ext=C
10843 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10844 ac_cpp='$CXXCPP $CPPFLAGS'
10845 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10846 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10847 cross_compiling=$ac_cv_prog_cxx_cross
10848
10849       cat > conftest.$ac_ext <<EOF
10850 #line 10851 "configure"
10851 #include "confdefs.h"
10852 #include <math.h>
10853                       #ifdef HAVE_IEEEFP_H
10854                       #include <ieeefp.h>
10855                       #endif
10856                      
10857 int main() {
10858  _isinf(0);
10859 ; return 0; }
10860 EOF
10861 if { (eval echo configure:10862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10862   rm -rf conftest*
10863   glibcpp_cv_func__isinf_use=yes
10864 else
10865   echo "configure: failed program was:" >&5
10866   cat conftest.$ac_ext >&5
10867   rm -rf conftest*
10868   glibcpp_cv_func__isinf_use=no
10869 fi
10870 rm -f conftest*
10871       ac_ext=c
10872 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10873 ac_cpp='$CPP $CPPFLAGS'
10874 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10875 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10876 cross_compiling=$ac_cv_prog_cc_cross
10877
10878     
10879 fi
10880
10881   fi
10882   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
10883
10884     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
10885       for ac_func in _isinf
10886 do
10887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10888 echo "configure:10889: checking for $ac_func" >&5
10889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10890   echo $ac_n "(cached) $ac_c" 1>&6
10891 else
10892   cat > conftest.$ac_ext <<EOF
10893 #line 10894 "configure"
10894 #include "confdefs.h"
10895 /* System header to define __stub macros and hopefully few prototypes,
10896     which can conflict with char $ac_func(); below.  */
10897 #include <assert.h>
10898 /* Override any gcc2 internal prototype to avoid an error.  */
10899 /* We use char because int might match the return type of a gcc2
10900     builtin and then its argument prototype would still apply.  */
10901 char $ac_func();
10902
10903 int main() {
10904
10905 /* The GNU C library defines this for functions which it implements
10906     to always fail with ENOSYS.  Some functions are actually named
10907     something starting with __ and the normal name is an alias.  */
10908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10909 choke me
10910 #else
10911 $ac_func();
10912 #endif
10913
10914 ; return 0; }
10915 EOF
10916 if { (eval echo configure:10917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10917   rm -rf conftest*
10918   eval "ac_cv_func_$ac_func=yes"
10919 else
10920   echo "configure: failed program was:" >&5
10921   cat conftest.$ac_ext >&5
10922   rm -rf conftest*
10923   eval "ac_cv_func_$ac_func=no"
10924 fi
10925 rm -f conftest*
10926 fi
10927
10928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10929   echo "$ac_t""yes" 1>&6
10930     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10931   cat >> confdefs.h <<EOF
10932 #define $ac_tr_func 1
10933 EOF
10934  
10935 else
10936   echo "$ac_t""no" 1>&6
10937 fi
10938 done
10939     
10940     fi
10941   fi
10942
10943   
10944   
10945   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
10946 echo "configure:10947: checking for isnan declaration" >&5
10947   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
10948     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
10949   echo $ac_n "(cached) $ac_c" 1>&6
10950 else
10951   
10952       
10953       ac_ext=C
10954 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10955 ac_cpp='$CXXCPP $CPPFLAGS'
10956 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10957 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10958 cross_compiling=$ac_cv_prog_cxx_cross
10959
10960       cat > conftest.$ac_ext <<EOF
10961 #line 10962 "configure"
10962 #include "confdefs.h"
10963 #include <math.h>
10964                       #ifdef HAVE_IEEEFP_H
10965                       #include <ieeefp.h>
10966                       #endif
10967                      
10968 int main() {
10969  isnan(0);
10970 ; return 0; }
10971 EOF
10972 if { (eval echo configure:10973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10973   rm -rf conftest*
10974   glibcpp_cv_func_isnan_use=yes
10975 else
10976   echo "configure: failed program was:" >&5
10977   cat conftest.$ac_ext >&5
10978   rm -rf conftest*
10979   glibcpp_cv_func_isnan_use=no
10980 fi
10981 rm -f conftest*
10982       ac_ext=c
10983 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10984 ac_cpp='$CPP $CPPFLAGS'
10985 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10986 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10987 cross_compiling=$ac_cv_prog_cc_cross
10988
10989     
10990 fi
10991
10992   fi
10993   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
10994
10995   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
10996     for ac_func in isnan
10997 do
10998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10999 echo "configure:11000: checking for $ac_func" >&5
11000 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11001   echo $ac_n "(cached) $ac_c" 1>&6
11002 else
11003   cat > conftest.$ac_ext <<EOF
11004 #line 11005 "configure"
11005 #include "confdefs.h"
11006 /* System header to define __stub macros and hopefully few prototypes,
11007     which can conflict with char $ac_func(); below.  */
11008 #include <assert.h>
11009 /* Override any gcc2 internal prototype to avoid an error.  */
11010 /* We use char because int might match the return type of a gcc2
11011     builtin and then its argument prototype would still apply.  */
11012 char $ac_func();
11013
11014 int main() {
11015
11016 /* The GNU C library defines this for functions which it implements
11017     to always fail with ENOSYS.  Some functions are actually named
11018     something starting with __ and the normal name is an alias.  */
11019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11020 choke me
11021 #else
11022 $ac_func();
11023 #endif
11024
11025 ; return 0; }
11026 EOF
11027 if { (eval echo configure:11028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11028   rm -rf conftest*
11029   eval "ac_cv_func_$ac_func=yes"
11030 else
11031   echo "configure: failed program was:" >&5
11032   cat conftest.$ac_ext >&5
11033   rm -rf conftest*
11034   eval "ac_cv_func_$ac_func=no"
11035 fi
11036 rm -f conftest*
11037 fi
11038
11039 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11040   echo "$ac_t""yes" 1>&6
11041     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11042   cat >> confdefs.h <<EOF
11043 #define $ac_tr_func 1
11044 EOF
11045  
11046 else
11047   echo "$ac_t""no" 1>&6
11048 fi
11049 done
11050     
11051   else
11052     
11053   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11054 echo "configure:11055: checking for _isnan declaration" >&5
11055   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
11056     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
11057   echo $ac_n "(cached) $ac_c" 1>&6
11058 else
11059   
11060       
11061       ac_ext=C
11062 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11063 ac_cpp='$CXXCPP $CPPFLAGS'
11064 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11065 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11066 cross_compiling=$ac_cv_prog_cxx_cross
11067
11068       cat > conftest.$ac_ext <<EOF
11069 #line 11070 "configure"
11070 #include "confdefs.h"
11071 #include <math.h>
11072                       #ifdef HAVE_IEEEFP_H
11073                       #include <ieeefp.h>
11074                       #endif
11075                      
11076 int main() {
11077  _isnan(0);
11078 ; return 0; }
11079 EOF
11080 if { (eval echo configure:11081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11081   rm -rf conftest*
11082   glibcpp_cv_func__isnan_use=yes
11083 else
11084   echo "configure: failed program was:" >&5
11085   cat conftest.$ac_ext >&5
11086   rm -rf conftest*
11087   glibcpp_cv_func__isnan_use=no
11088 fi
11089 rm -f conftest*
11090       ac_ext=c
11091 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11092 ac_cpp='$CPP $CPPFLAGS'
11093 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11094 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11095 cross_compiling=$ac_cv_prog_cc_cross
11096
11097     
11098 fi
11099
11100   fi
11101   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
11102
11103     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
11104       for ac_func in _isnan
11105 do
11106 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11107 echo "configure:11108: checking for $ac_func" >&5
11108 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11109   echo $ac_n "(cached) $ac_c" 1>&6
11110 else
11111   cat > conftest.$ac_ext <<EOF
11112 #line 11113 "configure"
11113 #include "confdefs.h"
11114 /* System header to define __stub macros and hopefully few prototypes,
11115     which can conflict with char $ac_func(); below.  */
11116 #include <assert.h>
11117 /* Override any gcc2 internal prototype to avoid an error.  */
11118 /* We use char because int might match the return type of a gcc2
11119     builtin and then its argument prototype would still apply.  */
11120 char $ac_func();
11121
11122 int main() {
11123
11124 /* The GNU C library defines this for functions which it implements
11125     to always fail with ENOSYS.  Some functions are actually named
11126     something starting with __ and the normal name is an alias.  */
11127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11128 choke me
11129 #else
11130 $ac_func();
11131 #endif
11132
11133 ; return 0; }
11134 EOF
11135 if { (eval echo configure:11136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11136   rm -rf conftest*
11137   eval "ac_cv_func_$ac_func=yes"
11138 else
11139   echo "configure: failed program was:" >&5
11140   cat conftest.$ac_ext >&5
11141   rm -rf conftest*
11142   eval "ac_cv_func_$ac_func=no"
11143 fi
11144 rm -f conftest*
11145 fi
11146
11147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11148   echo "$ac_t""yes" 1>&6
11149     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11150   cat >> confdefs.h <<EOF
11151 #define $ac_tr_func 1
11152 EOF
11153  
11154 else
11155   echo "$ac_t""no" 1>&6
11156 fi
11157 done
11158     
11159     fi
11160   fi
11161
11162   
11163   
11164   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11165 echo "configure:11166: checking for finite declaration" >&5
11166   if test x${glibcpp_cv_func_finite_use+set} != xset; then
11167     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
11168   echo $ac_n "(cached) $ac_c" 1>&6
11169 else
11170   
11171       
11172       ac_ext=C
11173 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11174 ac_cpp='$CXXCPP $CPPFLAGS'
11175 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11176 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11177 cross_compiling=$ac_cv_prog_cxx_cross
11178
11179       cat > conftest.$ac_ext <<EOF
11180 #line 11181 "configure"
11181 #include "confdefs.h"
11182 #include <math.h>
11183                       #ifdef HAVE_IEEEFP_H
11184                       #include <ieeefp.h>
11185                       #endif
11186                      
11187 int main() {
11188  finite(0);
11189 ; return 0; }
11190 EOF
11191 if { (eval echo configure:11192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11192   rm -rf conftest*
11193   glibcpp_cv_func_finite_use=yes
11194 else
11195   echo "configure: failed program was:" >&5
11196   cat conftest.$ac_ext >&5
11197   rm -rf conftest*
11198   glibcpp_cv_func_finite_use=no
11199 fi
11200 rm -f conftest*
11201       ac_ext=c
11202 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11203 ac_cpp='$CPP $CPPFLAGS'
11204 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11205 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11206 cross_compiling=$ac_cv_prog_cc_cross
11207
11208     
11209 fi
11210
11211   fi
11212   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
11213
11214   if test x$glibcpp_cv_func_finite_use = x"yes"; then
11215     for ac_func in finite
11216 do
11217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11218 echo "configure:11219: checking for $ac_func" >&5
11219 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11220   echo $ac_n "(cached) $ac_c" 1>&6
11221 else
11222   cat > conftest.$ac_ext <<EOF
11223 #line 11224 "configure"
11224 #include "confdefs.h"
11225 /* System header to define __stub macros and hopefully few prototypes,
11226     which can conflict with char $ac_func(); below.  */
11227 #include <assert.h>
11228 /* Override any gcc2 internal prototype to avoid an error.  */
11229 /* We use char because int might match the return type of a gcc2
11230     builtin and then its argument prototype would still apply.  */
11231 char $ac_func();
11232
11233 int main() {
11234
11235 /* The GNU C library defines this for functions which it implements
11236     to always fail with ENOSYS.  Some functions are actually named
11237     something starting with __ and the normal name is an alias.  */
11238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11239 choke me
11240 #else
11241 $ac_func();
11242 #endif
11243
11244 ; return 0; }
11245 EOF
11246 if { (eval echo configure:11247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11247   rm -rf conftest*
11248   eval "ac_cv_func_$ac_func=yes"
11249 else
11250   echo "configure: failed program was:" >&5
11251   cat conftest.$ac_ext >&5
11252   rm -rf conftest*
11253   eval "ac_cv_func_$ac_func=no"
11254 fi
11255 rm -f conftest*
11256 fi
11257
11258 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11259   echo "$ac_t""yes" 1>&6
11260     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11261   cat >> confdefs.h <<EOF
11262 #define $ac_tr_func 1
11263 EOF
11264  
11265 else
11266   echo "$ac_t""no" 1>&6
11267 fi
11268 done
11269     
11270   else
11271     
11272   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11273 echo "configure:11274: checking for _finite declaration" >&5
11274   if test x${glibcpp_cv_func__finite_use+set} != xset; then
11275     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
11276   echo $ac_n "(cached) $ac_c" 1>&6
11277 else
11278   
11279       
11280       ac_ext=C
11281 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11282 ac_cpp='$CXXCPP $CPPFLAGS'
11283 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11284 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11285 cross_compiling=$ac_cv_prog_cxx_cross
11286
11287       cat > conftest.$ac_ext <<EOF
11288 #line 11289 "configure"
11289 #include "confdefs.h"
11290 #include <math.h>
11291                       #ifdef HAVE_IEEEFP_H
11292                       #include <ieeefp.h>
11293                       #endif
11294                      
11295 int main() {
11296  _finite(0);
11297 ; return 0; }
11298 EOF
11299 if { (eval echo configure:11300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11300   rm -rf conftest*
11301   glibcpp_cv_func__finite_use=yes
11302 else
11303   echo "configure: failed program was:" >&5
11304   cat conftest.$ac_ext >&5
11305   rm -rf conftest*
11306   glibcpp_cv_func__finite_use=no
11307 fi
11308 rm -f conftest*
11309       ac_ext=c
11310 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11311 ac_cpp='$CPP $CPPFLAGS'
11312 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11313 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11314 cross_compiling=$ac_cv_prog_cc_cross
11315
11316     
11317 fi
11318
11319   fi
11320   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
11321
11322     if test x$glibcpp_cv_func__finite_use = x"yes"; then
11323       for ac_func in _finite
11324 do
11325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11326 echo "configure:11327: checking for $ac_func" >&5
11327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11328   echo $ac_n "(cached) $ac_c" 1>&6
11329 else
11330   cat > conftest.$ac_ext <<EOF
11331 #line 11332 "configure"
11332 #include "confdefs.h"
11333 /* System header to define __stub macros and hopefully few prototypes,
11334     which can conflict with char $ac_func(); below.  */
11335 #include <assert.h>
11336 /* Override any gcc2 internal prototype to avoid an error.  */
11337 /* We use char because int might match the return type of a gcc2
11338     builtin and then its argument prototype would still apply.  */
11339 char $ac_func();
11340
11341 int main() {
11342
11343 /* The GNU C library defines this for functions which it implements
11344     to always fail with ENOSYS.  Some functions are actually named
11345     something starting with __ and the normal name is an alias.  */
11346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11347 choke me
11348 #else
11349 $ac_func();
11350 #endif
11351
11352 ; return 0; }
11353 EOF
11354 if { (eval echo configure:11355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11355   rm -rf conftest*
11356   eval "ac_cv_func_$ac_func=yes"
11357 else
11358   echo "configure: failed program was:" >&5
11359   cat conftest.$ac_ext >&5
11360   rm -rf conftest*
11361   eval "ac_cv_func_$ac_func=no"
11362 fi
11363 rm -f conftest*
11364 fi
11365
11366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11367   echo "$ac_t""yes" 1>&6
11368     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11369   cat >> confdefs.h <<EOF
11370 #define $ac_tr_func 1
11371 EOF
11372  
11373 else
11374   echo "$ac_t""no" 1>&6
11375 fi
11376 done
11377     
11378     fi
11379   fi
11380
11381   
11382   
11383   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11384 echo "configure:11385: checking for copysign declaration" >&5
11385   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
11386     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
11387   echo $ac_n "(cached) $ac_c" 1>&6
11388 else
11389   
11390       
11391       ac_ext=C
11392 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11393 ac_cpp='$CXXCPP $CPPFLAGS'
11394 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11395 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11396 cross_compiling=$ac_cv_prog_cxx_cross
11397
11398       cat > conftest.$ac_ext <<EOF
11399 #line 11400 "configure"
11400 #include "confdefs.h"
11401 #include <math.h>
11402 int main() {
11403  copysign(0, 0);
11404 ; return 0; }
11405 EOF
11406 if { (eval echo configure:11407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11407   rm -rf conftest*
11408   glibcpp_cv_func_copysign_use=yes
11409 else
11410   echo "configure: failed program was:" >&5
11411   cat conftest.$ac_ext >&5
11412   rm -rf conftest*
11413   glibcpp_cv_func_copysign_use=no
11414 fi
11415 rm -f conftest*
11416       ac_ext=c
11417 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11418 ac_cpp='$CPP $CPPFLAGS'
11419 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11420 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11421 cross_compiling=$ac_cv_prog_cc_cross
11422
11423     
11424 fi
11425
11426   fi
11427   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
11428
11429   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
11430     for ac_func in copysign
11431 do
11432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11433 echo "configure:11434: checking for $ac_func" >&5
11434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11435   echo $ac_n "(cached) $ac_c" 1>&6
11436 else
11437   cat > conftest.$ac_ext <<EOF
11438 #line 11439 "configure"
11439 #include "confdefs.h"
11440 /* System header to define __stub macros and hopefully few prototypes,
11441     which can conflict with char $ac_func(); below.  */
11442 #include <assert.h>
11443 /* Override any gcc2 internal prototype to avoid an error.  */
11444 /* We use char because int might match the return type of a gcc2
11445     builtin and then its argument prototype would still apply.  */
11446 char $ac_func();
11447
11448 int main() {
11449
11450 /* The GNU C library defines this for functions which it implements
11451     to always fail with ENOSYS.  Some functions are actually named
11452     something starting with __ and the normal name is an alias.  */
11453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11454 choke me
11455 #else
11456 $ac_func();
11457 #endif
11458
11459 ; return 0; }
11460 EOF
11461 if { (eval echo configure:11462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11462   rm -rf conftest*
11463   eval "ac_cv_func_$ac_func=yes"
11464 else
11465   echo "configure: failed program was:" >&5
11466   cat conftest.$ac_ext >&5
11467   rm -rf conftest*
11468   eval "ac_cv_func_$ac_func=no"
11469 fi
11470 rm -f conftest*
11471 fi
11472
11473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11474   echo "$ac_t""yes" 1>&6
11475     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11476   cat >> confdefs.h <<EOF
11477 #define $ac_tr_func 1
11478 EOF
11479  
11480 else
11481   echo "$ac_t""no" 1>&6
11482 fi
11483 done
11484     
11485   else
11486     
11487   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11488 echo "configure:11489: checking for _copysign declaration" >&5
11489   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
11490     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_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  _copysign(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__copysign_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__copysign_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__copysign_use" 1>&6
11532
11533     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
11534       for ac_func in _copysign
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     fi
11590   fi
11591
11592   
11593   
11594   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11595 echo "configure:11596: checking for sincos declaration" >&5
11596   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
11597     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
11598   echo $ac_n "(cached) $ac_c" 1>&6
11599 else
11600   
11601       
11602       ac_ext=C
11603 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11604 ac_cpp='$CXXCPP $CPPFLAGS'
11605 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11606 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11607 cross_compiling=$ac_cv_prog_cxx_cross
11608
11609       cat > conftest.$ac_ext <<EOF
11610 #line 11611 "configure"
11611 #include "confdefs.h"
11612 #include <math.h>
11613 int main() {
11614  sincos(0, 0, 0);
11615 ; return 0; }
11616 EOF
11617 if { (eval echo configure:11618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11618   rm -rf conftest*
11619   glibcpp_cv_func_sincos_use=yes
11620 else
11621   echo "configure: failed program was:" >&5
11622   cat conftest.$ac_ext >&5
11623   rm -rf conftest*
11624   glibcpp_cv_func_sincos_use=no
11625 fi
11626 rm -f conftest*
11627       ac_ext=c
11628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11629 ac_cpp='$CPP $CPPFLAGS'
11630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11632 cross_compiling=$ac_cv_prog_cc_cross
11633
11634     
11635 fi
11636
11637   fi
11638   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
11639
11640   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
11641     for ac_func in sincos
11642 do
11643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11644 echo "configure:11645: checking for $ac_func" >&5
11645 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11646   echo $ac_n "(cached) $ac_c" 1>&6
11647 else
11648   cat > conftest.$ac_ext <<EOF
11649 #line 11650 "configure"
11650 #include "confdefs.h"
11651 /* System header to define __stub macros and hopefully few prototypes,
11652     which can conflict with char $ac_func(); below.  */
11653 #include <assert.h>
11654 /* Override any gcc2 internal prototype to avoid an error.  */
11655 /* We use char because int might match the return type of a gcc2
11656     builtin and then its argument prototype would still apply.  */
11657 char $ac_func();
11658
11659 int main() {
11660
11661 /* The GNU C library defines this for functions which it implements
11662     to always fail with ENOSYS.  Some functions are actually named
11663     something starting with __ and the normal name is an alias.  */
11664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11665 choke me
11666 #else
11667 $ac_func();
11668 #endif
11669
11670 ; return 0; }
11671 EOF
11672 if { (eval echo configure:11673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11673   rm -rf conftest*
11674   eval "ac_cv_func_$ac_func=yes"
11675 else
11676   echo "configure: failed program was:" >&5
11677   cat conftest.$ac_ext >&5
11678   rm -rf conftest*
11679   eval "ac_cv_func_$ac_func=no"
11680 fi
11681 rm -f conftest*
11682 fi
11683
11684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11685   echo "$ac_t""yes" 1>&6
11686     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11687   cat >> confdefs.h <<EOF
11688 #define $ac_tr_func 1
11689 EOF
11690  
11691 else
11692   echo "$ac_t""no" 1>&6
11693 fi
11694 done
11695     
11696   else
11697     
11698   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11699 echo "configure:11700: checking for _sincos declaration" >&5
11700   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
11701     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_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 int main() {
11718  _sincos(0, 0, 0);
11719 ; return 0; }
11720 EOF
11721 if { (eval echo configure:11722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11722   rm -rf conftest*
11723   glibcpp_cv_func__sincos_use=yes
11724 else
11725   echo "configure: failed program was:" >&5
11726   cat conftest.$ac_ext >&5
11727   rm -rf conftest*
11728   glibcpp_cv_func__sincos_use=no
11729 fi
11730 rm -f conftest*
11731       ac_ext=c
11732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11733 ac_cpp='$CPP $CPPFLAGS'
11734 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11735 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11736 cross_compiling=$ac_cv_prog_cc_cross
11737
11738     
11739 fi
11740
11741   fi
11742   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
11743
11744     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
11745       for ac_func in _sincos
11746 do
11747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11748 echo "configure:11749: checking for $ac_func" >&5
11749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11750   echo $ac_n "(cached) $ac_c" 1>&6
11751 else
11752   cat > conftest.$ac_ext <<EOF
11753 #line 11754 "configure"
11754 #include "confdefs.h"
11755 /* System header to define __stub macros and hopefully few prototypes,
11756     which can conflict with char $ac_func(); below.  */
11757 #include <assert.h>
11758 /* Override any gcc2 internal prototype to avoid an error.  */
11759 /* We use char because int might match the return type of a gcc2
11760     builtin and then its argument prototype would still apply.  */
11761 char $ac_func();
11762
11763 int main() {
11764
11765 /* The GNU C library defines this for functions which it implements
11766     to always fail with ENOSYS.  Some functions are actually named
11767     something starting with __ and the normal name is an alias.  */
11768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11769 choke me
11770 #else
11771 $ac_func();
11772 #endif
11773
11774 ; return 0; }
11775 EOF
11776 if { (eval echo configure:11777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11777   rm -rf conftest*
11778   eval "ac_cv_func_$ac_func=yes"
11779 else
11780   echo "configure: failed program was:" >&5
11781   cat conftest.$ac_ext >&5
11782   rm -rf conftest*
11783   eval "ac_cv_func_$ac_func=no"
11784 fi
11785 rm -f conftest*
11786 fi
11787
11788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11789   echo "$ac_t""yes" 1>&6
11790     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11791   cat >> confdefs.h <<EOF
11792 #define $ac_tr_func 1
11793 EOF
11794  
11795 else
11796   echo "$ac_t""no" 1>&6
11797 fi
11798 done
11799     
11800     fi
11801   fi
11802
11803   
11804   
11805   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
11806 echo "configure:11807: checking for fpclass declaration" >&5
11807   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
11808     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
11809   echo $ac_n "(cached) $ac_c" 1>&6
11810 else
11811   
11812       
11813       ac_ext=C
11814 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11815 ac_cpp='$CXXCPP $CPPFLAGS'
11816 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11817 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11818 cross_compiling=$ac_cv_prog_cxx_cross
11819
11820       cat > conftest.$ac_ext <<EOF
11821 #line 11822 "configure"
11822 #include "confdefs.h"
11823 #include <math.h>
11824                       #ifdef HAVE_IEEEFP_H
11825                       #include <ieeefp.h>
11826                       #endif
11827                      
11828 int main() {
11829  fpclass(0);
11830 ; return 0; }
11831 EOF
11832 if { (eval echo configure:11833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11833   rm -rf conftest*
11834   glibcpp_cv_func_fpclass_use=yes
11835 else
11836   echo "configure: failed program was:" >&5
11837   cat conftest.$ac_ext >&5
11838   rm -rf conftest*
11839   glibcpp_cv_func_fpclass_use=no
11840 fi
11841 rm -f conftest*
11842       ac_ext=c
11843 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11844 ac_cpp='$CPP $CPPFLAGS'
11845 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11846 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11847 cross_compiling=$ac_cv_prog_cc_cross
11848
11849     
11850 fi
11851
11852   fi
11853   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
11854
11855   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
11856     for ac_func in fpclass
11857 do
11858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11859 echo "configure:11860: checking for $ac_func" >&5
11860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11861   echo $ac_n "(cached) $ac_c" 1>&6
11862 else
11863   cat > conftest.$ac_ext <<EOF
11864 #line 11865 "configure"
11865 #include "confdefs.h"
11866 /* System header to define __stub macros and hopefully few prototypes,
11867     which can conflict with char $ac_func(); below.  */
11868 #include <assert.h>
11869 /* Override any gcc2 internal prototype to avoid an error.  */
11870 /* We use char because int might match the return type of a gcc2
11871     builtin and then its argument prototype would still apply.  */
11872 char $ac_func();
11873
11874 int main() {
11875
11876 /* The GNU C library defines this for functions which it implements
11877     to always fail with ENOSYS.  Some functions are actually named
11878     something starting with __ and the normal name is an alias.  */
11879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11880 choke me
11881 #else
11882 $ac_func();
11883 #endif
11884
11885 ; return 0; }
11886 EOF
11887 if { (eval echo configure:11888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11888   rm -rf conftest*
11889   eval "ac_cv_func_$ac_func=yes"
11890 else
11891   echo "configure: failed program was:" >&5
11892   cat conftest.$ac_ext >&5
11893   rm -rf conftest*
11894   eval "ac_cv_func_$ac_func=no"
11895 fi
11896 rm -f conftest*
11897 fi
11898
11899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11900   echo "$ac_t""yes" 1>&6
11901     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11902   cat >> confdefs.h <<EOF
11903 #define $ac_tr_func 1
11904 EOF
11905  
11906 else
11907   echo "$ac_t""no" 1>&6
11908 fi
11909 done
11910     
11911   else
11912     
11913   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
11914 echo "configure:11915: checking for _fpclass declaration" >&5
11915   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
11916     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
11917   echo $ac_n "(cached) $ac_c" 1>&6
11918 else
11919   
11920       
11921       ac_ext=C
11922 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11923 ac_cpp='$CXXCPP $CPPFLAGS'
11924 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11925 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11926 cross_compiling=$ac_cv_prog_cxx_cross
11927
11928       cat > conftest.$ac_ext <<EOF
11929 #line 11930 "configure"
11930 #include "confdefs.h"
11931 #include <math.h>
11932                       #ifdef HAVE_IEEEFP_H
11933                       #include <ieeefp.h>
11934                       #endif
11935                      
11936 int main() {
11937  _fpclass(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__fpclass_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__fpclass_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__fpclass_use" 1>&6
11962
11963     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
11964       for ac_func in _fpclass
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     fi
12020   fi
12021
12022   
12023   
12024   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
12025 echo "configure:12026: checking for qfpclass declaration" >&5
12026   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
12027     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
12028   echo $ac_n "(cached) $ac_c" 1>&6
12029 else
12030   
12031       
12032       ac_ext=C
12033 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12034 ac_cpp='$CXXCPP $CPPFLAGS'
12035 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12036 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12037 cross_compiling=$ac_cv_prog_cxx_cross
12038
12039       cat > conftest.$ac_ext <<EOF
12040 #line 12041 "configure"
12041 #include "confdefs.h"
12042 #include <math.h>
12043                       #ifdef HAVE_IEEEFP_H
12044                       #include <ieeefp.h>
12045                       #endif
12046                      
12047 int main() {
12048  qfpclass(0);
12049 ; return 0; }
12050 EOF
12051 if { (eval echo configure:12052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12052   rm -rf conftest*
12053   glibcpp_cv_func_qfpclass_use=yes
12054 else
12055   echo "configure: failed program was:" >&5
12056   cat conftest.$ac_ext >&5
12057   rm -rf conftest*
12058   glibcpp_cv_func_qfpclass_use=no
12059 fi
12060 rm -f conftest*
12061       ac_ext=c
12062 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12063 ac_cpp='$CPP $CPPFLAGS'
12064 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12065 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12066 cross_compiling=$ac_cv_prog_cc_cross
12067
12068     
12069 fi
12070
12071   fi
12072   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
12073
12074   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
12075     for ac_func in qfpclass
12076 do
12077 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12078 echo "configure:12079: checking for $ac_func" >&5
12079 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12080   echo $ac_n "(cached) $ac_c" 1>&6
12081 else
12082   cat > conftest.$ac_ext <<EOF
12083 #line 12084 "configure"
12084 #include "confdefs.h"
12085 /* System header to define __stub macros and hopefully few prototypes,
12086     which can conflict with char $ac_func(); below.  */
12087 #include <assert.h>
12088 /* Override any gcc2 internal prototype to avoid an error.  */
12089 /* We use char because int might match the return type of a gcc2
12090     builtin and then its argument prototype would still apply.  */
12091 char $ac_func();
12092
12093 int main() {
12094
12095 /* The GNU C library defines this for functions which it implements
12096     to always fail with ENOSYS.  Some functions are actually named
12097     something starting with __ and the normal name is an alias.  */
12098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12099 choke me
12100 #else
12101 $ac_func();
12102 #endif
12103
12104 ; return 0; }
12105 EOF
12106 if { (eval echo configure:12107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12107   rm -rf conftest*
12108   eval "ac_cv_func_$ac_func=yes"
12109 else
12110   echo "configure: failed program was:" >&5
12111   cat conftest.$ac_ext >&5
12112   rm -rf conftest*
12113   eval "ac_cv_func_$ac_func=no"
12114 fi
12115 rm -f conftest*
12116 fi
12117
12118 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12119   echo "$ac_t""yes" 1>&6
12120     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12121   cat >> confdefs.h <<EOF
12122 #define $ac_tr_func 1
12123 EOF
12124  
12125 else
12126   echo "$ac_t""no" 1>&6
12127 fi
12128 done
12129     
12130   else
12131     
12132   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12133 echo "configure:12134: checking for _qfpclass declaration" >&5
12134   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
12135     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
12136   echo $ac_n "(cached) $ac_c" 1>&6
12137 else
12138   
12139       
12140       ac_ext=C
12141 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12142 ac_cpp='$CXXCPP $CPPFLAGS'
12143 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12144 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12145 cross_compiling=$ac_cv_prog_cxx_cross
12146
12147       cat > conftest.$ac_ext <<EOF
12148 #line 12149 "configure"
12149 #include "confdefs.h"
12150 #include <math.h>
12151                       #ifdef HAVE_IEEEFP_H
12152                       #include <ieeefp.h>
12153                       #endif
12154                      
12155 int main() {
12156  _qfpclass(0);
12157 ; return 0; }
12158 EOF
12159 if { (eval echo configure:12160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12160   rm -rf conftest*
12161   glibcpp_cv_func__qfpclass_use=yes
12162 else
12163   echo "configure: failed program was:" >&5
12164   cat conftest.$ac_ext >&5
12165   rm -rf conftest*
12166   glibcpp_cv_func__qfpclass_use=no
12167 fi
12168 rm -f conftest*
12169       ac_ext=c
12170 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12171 ac_cpp='$CPP $CPPFLAGS'
12172 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12173 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12174 cross_compiling=$ac_cv_prog_cc_cross
12175
12176     
12177 fi
12178
12179   fi
12180   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
12181
12182     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
12183       for ac_func in _qfpclass
12184 do
12185 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12186 echo "configure:12187: checking for $ac_func" >&5
12187 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12188   echo $ac_n "(cached) $ac_c" 1>&6
12189 else
12190   cat > conftest.$ac_ext <<EOF
12191 #line 12192 "configure"
12192 #include "confdefs.h"
12193 /* System header to define __stub macros and hopefully few prototypes,
12194     which can conflict with char $ac_func(); below.  */
12195 #include <assert.h>
12196 /* Override any gcc2 internal prototype to avoid an error.  */
12197 /* We use char because int might match the return type of a gcc2
12198     builtin and then its argument prototype would still apply.  */
12199 char $ac_func();
12200
12201 int main() {
12202
12203 /* The GNU C library defines this for functions which it implements
12204     to always fail with ENOSYS.  Some functions are actually named
12205     something starting with __ and the normal name is an alias.  */
12206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12207 choke me
12208 #else
12209 $ac_func();
12210 #endif
12211
12212 ; return 0; }
12213 EOF
12214 if { (eval echo configure:12215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12215   rm -rf conftest*
12216   eval "ac_cv_func_$ac_func=yes"
12217 else
12218   echo "configure: failed program was:" >&5
12219   cat conftest.$ac_ext >&5
12220   rm -rf conftest*
12221   eval "ac_cv_func_$ac_func=no"
12222 fi
12223 rm -f conftest*
12224 fi
12225
12226 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12227   echo "$ac_t""yes" 1>&6
12228     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12229   cat >> confdefs.h <<EOF
12230 #define $ac_tr_func 1
12231 EOF
12232  
12233 else
12234   echo "$ac_t""no" 1>&6
12235 fi
12236 done
12237     
12238     fi
12239   fi
12240
12241   
12242   
12243   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12244 echo "configure:12245: checking for hypot declaration" >&5
12245   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
12246     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
12247   echo $ac_n "(cached) $ac_c" 1>&6
12248 else
12249   
12250       
12251       ac_ext=C
12252 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12253 ac_cpp='$CXXCPP $CPPFLAGS'
12254 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12255 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12256 cross_compiling=$ac_cv_prog_cxx_cross
12257
12258       cat > conftest.$ac_ext <<EOF
12259 #line 12260 "configure"
12260 #include "confdefs.h"
12261 #include <math.h>
12262 int main() {
12263  hypot(0, 0);
12264 ; return 0; }
12265 EOF
12266 if { (eval echo configure:12267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12267   rm -rf conftest*
12268   glibcpp_cv_func_hypot_use=yes
12269 else
12270   echo "configure: failed program was:" >&5
12271   cat conftest.$ac_ext >&5
12272   rm -rf conftest*
12273   glibcpp_cv_func_hypot_use=no
12274 fi
12275 rm -f conftest*
12276       ac_ext=c
12277 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12278 ac_cpp='$CPP $CPPFLAGS'
12279 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12280 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12281 cross_compiling=$ac_cv_prog_cc_cross
12282
12283     
12284 fi
12285
12286   fi
12287   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
12288
12289   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
12290     for ac_func in hypot
12291 do
12292 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12293 echo "configure:12294: checking for $ac_func" >&5
12294 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12295   echo $ac_n "(cached) $ac_c" 1>&6
12296 else
12297   cat > conftest.$ac_ext <<EOF
12298 #line 12299 "configure"
12299 #include "confdefs.h"
12300 /* System header to define __stub macros and hopefully few prototypes,
12301     which can conflict with char $ac_func(); below.  */
12302 #include <assert.h>
12303 /* Override any gcc2 internal prototype to avoid an error.  */
12304 /* We use char because int might match the return type of a gcc2
12305     builtin and then its argument prototype would still apply.  */
12306 char $ac_func();
12307
12308 int main() {
12309
12310 /* The GNU C library defines this for functions which it implements
12311     to always fail with ENOSYS.  Some functions are actually named
12312     something starting with __ and the normal name is an alias.  */
12313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12314 choke me
12315 #else
12316 $ac_func();
12317 #endif
12318
12319 ; return 0; }
12320 EOF
12321 if { (eval echo configure:12322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12322   rm -rf conftest*
12323   eval "ac_cv_func_$ac_func=yes"
12324 else
12325   echo "configure: failed program was:" >&5
12326   cat conftest.$ac_ext >&5
12327   rm -rf conftest*
12328   eval "ac_cv_func_$ac_func=no"
12329 fi
12330 rm -f conftest*
12331 fi
12332
12333 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12334   echo "$ac_t""yes" 1>&6
12335     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12336   cat >> confdefs.h <<EOF
12337 #define $ac_tr_func 1
12338 EOF
12339  
12340 else
12341   echo "$ac_t""no" 1>&6
12342 fi
12343 done
12344     
12345   else
12346     
12347   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12348 echo "configure:12349: checking for _hypot declaration" >&5
12349   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
12350     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
12351   echo $ac_n "(cached) $ac_c" 1>&6
12352 else
12353   
12354       
12355       ac_ext=C
12356 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12357 ac_cpp='$CXXCPP $CPPFLAGS'
12358 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12359 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12360 cross_compiling=$ac_cv_prog_cxx_cross
12361
12362       cat > conftest.$ac_ext <<EOF
12363 #line 12364 "configure"
12364 #include "confdefs.h"
12365 #include <math.h>
12366 int main() {
12367  _hypot(0, 0);
12368 ; return 0; }
12369 EOF
12370 if { (eval echo configure:12371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12371   rm -rf conftest*
12372   glibcpp_cv_func__hypot_use=yes
12373 else
12374   echo "configure: failed program was:" >&5
12375   cat conftest.$ac_ext >&5
12376   rm -rf conftest*
12377   glibcpp_cv_func__hypot_use=no
12378 fi
12379 rm -f conftest*
12380       ac_ext=c
12381 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12382 ac_cpp='$CPP $CPPFLAGS'
12383 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12384 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12385 cross_compiling=$ac_cv_prog_cc_cross
12386
12387     
12388 fi
12389
12390   fi
12391   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
12392
12393     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
12394       for ac_func in _hypot
12395 do
12396 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12397 echo "configure:12398: checking for $ac_func" >&5
12398 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12399   echo $ac_n "(cached) $ac_c" 1>&6
12400 else
12401   cat > conftest.$ac_ext <<EOF
12402 #line 12403 "configure"
12403 #include "confdefs.h"
12404 /* System header to define __stub macros and hopefully few prototypes,
12405     which can conflict with char $ac_func(); below.  */
12406 #include <assert.h>
12407 /* Override any gcc2 internal prototype to avoid an error.  */
12408 /* We use char because int might match the return type of a gcc2
12409     builtin and then its argument prototype would still apply.  */
12410 char $ac_func();
12411
12412 int main() {
12413
12414 /* The GNU C library defines this for functions which it implements
12415     to always fail with ENOSYS.  Some functions are actually named
12416     something starting with __ and the normal name is an alias.  */
12417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12418 choke me
12419 #else
12420 $ac_func();
12421 #endif
12422
12423 ; return 0; }
12424 EOF
12425 if { (eval echo configure:12426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12426   rm -rf conftest*
12427   eval "ac_cv_func_$ac_func=yes"
12428 else
12429   echo "configure: failed program was:" >&5
12430   cat conftest.$ac_ext >&5
12431   rm -rf conftest*
12432   eval "ac_cv_func_$ac_func=no"
12433 fi
12434 rm -f conftest*
12435 fi
12436
12437 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12438   echo "$ac_t""yes" 1>&6
12439     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12440   cat >> confdefs.h <<EOF
12441 #define $ac_tr_func 1
12442 EOF
12443  
12444 else
12445   echo "$ac_t""no" 1>&6
12446 fi
12447 done
12448     
12449     fi
12450   fi
12451
12452
12453     
12454   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12455 echo "configure:12456: checking for float trig functions" >&5
12456   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
12457   echo $ac_n "(cached) $ac_c" 1>&6
12458 else
12459   
12460     
12461     ac_ext=C
12462 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12463 ac_cpp='$CXXCPP $CPPFLAGS'
12464 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12465 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12466 cross_compiling=$ac_cv_prog_cxx_cross
12467
12468     cat > conftest.$ac_ext <<EOF
12469 #line 12470 "configure"
12470 #include "confdefs.h"
12471 #include <math.h>
12472 int main() {
12473  `for x in acosf asinf atanf \
12474                                           cosf sinf tanf \
12475                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
12476 ; return 0; }
12477 EOF
12478 if { (eval echo configure:12479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12479   rm -rf conftest*
12480   glibcpp_cv_func_float_trig_use=yes
12481 else
12482   echo "configure: failed program was:" >&5
12483   cat conftest.$ac_ext >&5
12484   rm -rf conftest*
12485   glibcpp_cv_func_float_trig_use=no
12486 fi
12487 rm -f conftest*
12488     ac_ext=c
12489 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12490 ac_cpp='$CPP $CPPFLAGS'
12491 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12492 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12493 cross_compiling=$ac_cv_prog_cc_cross
12494
12495 fi
12496
12497   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
12498   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
12499     for ac_func in acosf asinf atanf \
12500                                           cosf sinf tanf \
12501                                           coshf sinhf tanhf
12502 do
12503 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12504 echo "configure:12505: checking for $ac_func" >&5
12505 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12506   echo $ac_n "(cached) $ac_c" 1>&6
12507 else
12508   cat > conftest.$ac_ext <<EOF
12509 #line 12510 "configure"
12510 #include "confdefs.h"
12511 /* System header to define __stub macros and hopefully few prototypes,
12512     which can conflict with char $ac_func(); below.  */
12513 #include <assert.h>
12514 /* Override any gcc2 internal prototype to avoid an error.  */
12515 /* We use char because int might match the return type of a gcc2
12516     builtin and then its argument prototype would still apply.  */
12517 char $ac_func();
12518
12519 int main() {
12520
12521 /* The GNU C library defines this for functions which it implements
12522     to always fail with ENOSYS.  Some functions are actually named
12523     something starting with __ and the normal name is an alias.  */
12524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12525 choke me
12526 #else
12527 $ac_func();
12528 #endif
12529
12530 ; return 0; }
12531 EOF
12532 if { (eval echo configure:12533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12533   rm -rf conftest*
12534   eval "ac_cv_func_$ac_func=yes"
12535 else
12536   echo "configure: failed program was:" >&5
12537   cat conftest.$ac_ext >&5
12538   rm -rf conftest*
12539   eval "ac_cv_func_$ac_func=no"
12540 fi
12541 rm -f conftest*
12542 fi
12543
12544 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12545   echo "$ac_t""yes" 1>&6
12546     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12547   cat >> confdefs.h <<EOF
12548 #define $ac_tr_func 1
12549 EOF
12550  
12551 else
12552   echo "$ac_t""no" 1>&6
12553 fi
12554 done
12555
12556   fi
12557
12558   
12559   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12560 echo "configure:12561: checking for float round functions" >&5
12561   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
12562   echo $ac_n "(cached) $ac_c" 1>&6
12563 else
12564   
12565     
12566     ac_ext=C
12567 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12568 ac_cpp='$CXXCPP $CPPFLAGS'
12569 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12570 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12571 cross_compiling=$ac_cv_prog_cxx_cross
12572
12573     cat > conftest.$ac_ext <<EOF
12574 #line 12575 "configure"
12575 #include "confdefs.h"
12576 #include <math.h>
12577 int main() {
12578  `for x in ceilf floorf; do echo "$x (0);"; done` 
12579 ; return 0; }
12580 EOF
12581 if { (eval echo configure:12582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12582   rm -rf conftest*
12583   glibcpp_cv_func_float_round_use=yes
12584 else
12585   echo "configure: failed program was:" >&5
12586   cat conftest.$ac_ext >&5
12587   rm -rf conftest*
12588   glibcpp_cv_func_float_round_use=no
12589 fi
12590 rm -f conftest*
12591     ac_ext=c
12592 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12593 ac_cpp='$CPP $CPPFLAGS'
12594 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12595 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12596 cross_compiling=$ac_cv_prog_cc_cross
12597
12598 fi
12599
12600   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
12601   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
12602     for ac_func in ceilf floorf
12603 do
12604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12605 echo "configure:12606: checking for $ac_func" >&5
12606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12607   echo $ac_n "(cached) $ac_c" 1>&6
12608 else
12609   cat > conftest.$ac_ext <<EOF
12610 #line 12611 "configure"
12611 #include "confdefs.h"
12612 /* System header to define __stub macros and hopefully few prototypes,
12613     which can conflict with char $ac_func(); below.  */
12614 #include <assert.h>
12615 /* Override any gcc2 internal prototype to avoid an error.  */
12616 /* We use char because int might match the return type of a gcc2
12617     builtin and then its argument prototype would still apply.  */
12618 char $ac_func();
12619
12620 int main() {
12621
12622 /* The GNU C library defines this for functions which it implements
12623     to always fail with ENOSYS.  Some functions are actually named
12624     something starting with __ and the normal name is an alias.  */
12625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12626 choke me
12627 #else
12628 $ac_func();
12629 #endif
12630
12631 ; return 0; }
12632 EOF
12633 if { (eval echo configure:12634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12634   rm -rf conftest*
12635   eval "ac_cv_func_$ac_func=yes"
12636 else
12637   echo "configure: failed program was:" >&5
12638   cat conftest.$ac_ext >&5
12639   rm -rf conftest*
12640   eval "ac_cv_func_$ac_func=no"
12641 fi
12642 rm -f conftest*
12643 fi
12644
12645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12646   echo "$ac_t""yes" 1>&6
12647     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12648   cat >> confdefs.h <<EOF
12649 #define $ac_tr_func 1
12650 EOF
12651  
12652 else
12653   echo "$ac_t""no" 1>&6
12654 fi
12655 done
12656
12657   fi
12658
12659   
12660   
12661   echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12662 echo "configure:12663: checking for expf declaration" >&5
12663   if test x${glibcpp_cv_func_expf_use+set} != xset; then
12664     if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
12665   echo $ac_n "(cached) $ac_c" 1>&6
12666 else
12667   
12668       
12669       ac_ext=C
12670 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12671 ac_cpp='$CXXCPP $CPPFLAGS'
12672 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12673 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12674 cross_compiling=$ac_cv_prog_cxx_cross
12675
12676       cat > conftest.$ac_ext <<EOF
12677 #line 12678 "configure"
12678 #include "confdefs.h"
12679 #include <math.h>
12680                       #ifdef HAVE_IEEEFP_H
12681                       #include <ieeefp.h>
12682                       #endif
12683                      
12684 int main() {
12685  expf(0);
12686 ; return 0; }
12687 EOF
12688 if { (eval echo configure:12689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12689   rm -rf conftest*
12690   glibcpp_cv_func_expf_use=yes
12691 else
12692   echo "configure: failed program was:" >&5
12693   cat conftest.$ac_ext >&5
12694   rm -rf conftest*
12695   glibcpp_cv_func_expf_use=no
12696 fi
12697 rm -f conftest*
12698       ac_ext=c
12699 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12700 ac_cpp='$CPP $CPPFLAGS'
12701 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12702 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12703 cross_compiling=$ac_cv_prog_cc_cross
12704
12705     
12706 fi
12707
12708   fi
12709   echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
12710
12711   if test x$glibcpp_cv_func_expf_use = x"yes"; then
12712     for ac_func in expf
12713 do
12714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12715 echo "configure:12716: checking for $ac_func" >&5
12716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12717   echo $ac_n "(cached) $ac_c" 1>&6
12718 else
12719   cat > conftest.$ac_ext <<EOF
12720 #line 12721 "configure"
12721 #include "confdefs.h"
12722 /* System header to define __stub macros and hopefully few prototypes,
12723     which can conflict with char $ac_func(); below.  */
12724 #include <assert.h>
12725 /* Override any gcc2 internal prototype to avoid an error.  */
12726 /* We use char because int might match the return type of a gcc2
12727     builtin and then its argument prototype would still apply.  */
12728 char $ac_func();
12729
12730 int main() {
12731
12732 /* The GNU C library defines this for functions which it implements
12733     to always fail with ENOSYS.  Some functions are actually named
12734     something starting with __ and the normal name is an alias.  */
12735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12736 choke me
12737 #else
12738 $ac_func();
12739 #endif
12740
12741 ; return 0; }
12742 EOF
12743 if { (eval echo configure:12744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12744   rm -rf conftest*
12745   eval "ac_cv_func_$ac_func=yes"
12746 else
12747   echo "configure: failed program was:" >&5
12748   cat conftest.$ac_ext >&5
12749   rm -rf conftest*
12750   eval "ac_cv_func_$ac_func=no"
12751 fi
12752 rm -f conftest*
12753 fi
12754
12755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12756   echo "$ac_t""yes" 1>&6
12757     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12758   cat >> confdefs.h <<EOF
12759 #define $ac_tr_func 1
12760 EOF
12761  
12762 else
12763   echo "$ac_t""no" 1>&6
12764 fi
12765 done
12766     
12767   else
12768     
12769   echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12770 echo "configure:12771: checking for _expf declaration" >&5
12771   if test x${glibcpp_cv_func__expf_use+set} != xset; then
12772     if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12773   echo $ac_n "(cached) $ac_c" 1>&6
12774 else
12775   
12776       
12777       ac_ext=C
12778 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12779 ac_cpp='$CXXCPP $CPPFLAGS'
12780 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12781 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12782 cross_compiling=$ac_cv_prog_cxx_cross
12783
12784       cat > conftest.$ac_ext <<EOF
12785 #line 12786 "configure"
12786 #include "confdefs.h"
12787 #include <math.h>
12788                       #ifdef HAVE_IEEEFP_H
12789                       #include <ieeefp.h>
12790                       #endif
12791                      
12792 int main() {
12793  _expf(0);
12794 ; return 0; }
12795 EOF
12796 if { (eval echo configure:12797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12797   rm -rf conftest*
12798   glibcpp_cv_func__expf_use=yes
12799 else
12800   echo "configure: failed program was:" >&5
12801   cat conftest.$ac_ext >&5
12802   rm -rf conftest*
12803   glibcpp_cv_func__expf_use=no
12804 fi
12805 rm -f conftest*
12806       ac_ext=c
12807 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12808 ac_cpp='$CPP $CPPFLAGS'
12809 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12810 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12811 cross_compiling=$ac_cv_prog_cc_cross
12812
12813     
12814 fi
12815
12816   fi
12817   echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
12818
12819     if test x$glibcpp_cv_func__expf_use = x"yes"; then
12820       for ac_func in _expf
12821 do
12822 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12823 echo "configure:12824: checking for $ac_func" >&5
12824 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12825   echo $ac_n "(cached) $ac_c" 1>&6
12826 else
12827   cat > conftest.$ac_ext <<EOF
12828 #line 12829 "configure"
12829 #include "confdefs.h"
12830 /* System header to define __stub macros and hopefully few prototypes,
12831     which can conflict with char $ac_func(); below.  */
12832 #include <assert.h>
12833 /* Override any gcc2 internal prototype to avoid an error.  */
12834 /* We use char because int might match the return type of a gcc2
12835     builtin and then its argument prototype would still apply.  */
12836 char $ac_func();
12837
12838 int main() {
12839
12840 /* The GNU C library defines this for functions which it implements
12841     to always fail with ENOSYS.  Some functions are actually named
12842     something starting with __ and the normal name is an alias.  */
12843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12844 choke me
12845 #else
12846 $ac_func();
12847 #endif
12848
12849 ; return 0; }
12850 EOF
12851 if { (eval echo configure:12852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12852   rm -rf conftest*
12853   eval "ac_cv_func_$ac_func=yes"
12854 else
12855   echo "configure: failed program was:" >&5
12856   cat conftest.$ac_ext >&5
12857   rm -rf conftest*
12858   eval "ac_cv_func_$ac_func=no"
12859 fi
12860 rm -f conftest*
12861 fi
12862
12863 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12864   echo "$ac_t""yes" 1>&6
12865     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12866   cat >> confdefs.h <<EOF
12867 #define $ac_tr_func 1
12868 EOF
12869  
12870 else
12871   echo "$ac_t""no" 1>&6
12872 fi
12873 done
12874     
12875     fi
12876   fi
12877
12878   
12879   
12880   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
12881 echo "configure:12882: checking for isnanf declaration" >&5
12882   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
12883     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
12884   echo $ac_n "(cached) $ac_c" 1>&6
12885 else
12886   
12887       
12888       ac_ext=C
12889 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12890 ac_cpp='$CXXCPP $CPPFLAGS'
12891 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12892 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12893 cross_compiling=$ac_cv_prog_cxx_cross
12894
12895       cat > conftest.$ac_ext <<EOF
12896 #line 12897 "configure"
12897 #include "confdefs.h"
12898 #include <math.h>
12899                       #ifdef HAVE_IEEEFP_H
12900                       #include <ieeefp.h>
12901                       #endif
12902                      
12903 int main() {
12904  isnanf(0);
12905 ; return 0; }
12906 EOF
12907 if { (eval echo configure:12908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12908   rm -rf conftest*
12909   glibcpp_cv_func_isnanf_use=yes
12910 else
12911   echo "configure: failed program was:" >&5
12912   cat conftest.$ac_ext >&5
12913   rm -rf conftest*
12914   glibcpp_cv_func_isnanf_use=no
12915 fi
12916 rm -f conftest*
12917       ac_ext=c
12918 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12919 ac_cpp='$CPP $CPPFLAGS'
12920 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12921 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12922 cross_compiling=$ac_cv_prog_cc_cross
12923
12924     
12925 fi
12926
12927   fi
12928   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
12929
12930   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
12931     for ac_func in isnanf
12932 do
12933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12934 echo "configure:12935: checking for $ac_func" >&5
12935 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12936   echo $ac_n "(cached) $ac_c" 1>&6
12937 else
12938   cat > conftest.$ac_ext <<EOF
12939 #line 12940 "configure"
12940 #include "confdefs.h"
12941 /* System header to define __stub macros and hopefully few prototypes,
12942     which can conflict with char $ac_func(); below.  */
12943 #include <assert.h>
12944 /* Override any gcc2 internal prototype to avoid an error.  */
12945 /* We use char because int might match the return type of a gcc2
12946     builtin and then its argument prototype would still apply.  */
12947 char $ac_func();
12948
12949 int main() {
12950
12951 /* The GNU C library defines this for functions which it implements
12952     to always fail with ENOSYS.  Some functions are actually named
12953     something starting with __ and the normal name is an alias.  */
12954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12955 choke me
12956 #else
12957 $ac_func();
12958 #endif
12959
12960 ; return 0; }
12961 EOF
12962 if { (eval echo configure:12963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12963   rm -rf conftest*
12964   eval "ac_cv_func_$ac_func=yes"
12965 else
12966   echo "configure: failed program was:" >&5
12967   cat conftest.$ac_ext >&5
12968   rm -rf conftest*
12969   eval "ac_cv_func_$ac_func=no"
12970 fi
12971 rm -f conftest*
12972 fi
12973
12974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12975   echo "$ac_t""yes" 1>&6
12976     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12977   cat >> confdefs.h <<EOF
12978 #define $ac_tr_func 1
12979 EOF
12980  
12981 else
12982   echo "$ac_t""no" 1>&6
12983 fi
12984 done
12985     
12986   else
12987     
12988   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
12989 echo "configure:12990: checking for _isnanf declaration" >&5
12990   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
12991     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
12992   echo $ac_n "(cached) $ac_c" 1>&6
12993 else
12994   
12995       
12996       ac_ext=C
12997 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12998 ac_cpp='$CXXCPP $CPPFLAGS'
12999 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13000 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13001 cross_compiling=$ac_cv_prog_cxx_cross
13002
13003       cat > conftest.$ac_ext <<EOF
13004 #line 13005 "configure"
13005 #include "confdefs.h"
13006 #include <math.h>
13007                       #ifdef HAVE_IEEEFP_H
13008                       #include <ieeefp.h>
13009                       #endif
13010                      
13011 int main() {
13012  _isnanf(0);
13013 ; return 0; }
13014 EOF
13015 if { (eval echo configure:13016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13016   rm -rf conftest*
13017   glibcpp_cv_func__isnanf_use=yes
13018 else
13019   echo "configure: failed program was:" >&5
13020   cat conftest.$ac_ext >&5
13021   rm -rf conftest*
13022   glibcpp_cv_func__isnanf_use=no
13023 fi
13024 rm -f conftest*
13025       ac_ext=c
13026 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13027 ac_cpp='$CPP $CPPFLAGS'
13028 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13029 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13030 cross_compiling=$ac_cv_prog_cc_cross
13031
13032     
13033 fi
13034
13035   fi
13036   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
13037
13038     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
13039       for ac_func in _isnanf
13040 do
13041 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13042 echo "configure:13043: checking for $ac_func" >&5
13043 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13044   echo $ac_n "(cached) $ac_c" 1>&6
13045 else
13046   cat > conftest.$ac_ext <<EOF
13047 #line 13048 "configure"
13048 #include "confdefs.h"
13049 /* System header to define __stub macros and hopefully few prototypes,
13050     which can conflict with char $ac_func(); below.  */
13051 #include <assert.h>
13052 /* Override any gcc2 internal prototype to avoid an error.  */
13053 /* We use char because int might match the return type of a gcc2
13054     builtin and then its argument prototype would still apply.  */
13055 char $ac_func();
13056
13057 int main() {
13058
13059 /* The GNU C library defines this for functions which it implements
13060     to always fail with ENOSYS.  Some functions are actually named
13061     something starting with __ and the normal name is an alias.  */
13062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13063 choke me
13064 #else
13065 $ac_func();
13066 #endif
13067
13068 ; return 0; }
13069 EOF
13070 if { (eval echo configure:13071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13071   rm -rf conftest*
13072   eval "ac_cv_func_$ac_func=yes"
13073 else
13074   echo "configure: failed program was:" >&5
13075   cat conftest.$ac_ext >&5
13076   rm -rf conftest*
13077   eval "ac_cv_func_$ac_func=no"
13078 fi
13079 rm -f conftest*
13080 fi
13081
13082 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13083   echo "$ac_t""yes" 1>&6
13084     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13085   cat >> confdefs.h <<EOF
13086 #define $ac_tr_func 1
13087 EOF
13088  
13089 else
13090   echo "$ac_t""no" 1>&6
13091 fi
13092 done
13093     
13094     fi
13095   fi
13096
13097   
13098   
13099   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13100 echo "configure:13101: checking for isinff declaration" >&5
13101   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
13102     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
13103   echo $ac_n "(cached) $ac_c" 1>&6
13104 else
13105   
13106       
13107       ac_ext=C
13108 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13109 ac_cpp='$CXXCPP $CPPFLAGS'
13110 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13111 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13112 cross_compiling=$ac_cv_prog_cxx_cross
13113
13114       cat > conftest.$ac_ext <<EOF
13115 #line 13116 "configure"
13116 #include "confdefs.h"
13117 #include <math.h>
13118                       #ifdef HAVE_IEEEFP_H
13119                       #include <ieeefp.h>
13120                       #endif
13121                      
13122 int main() {
13123  isinff(0);
13124 ; return 0; }
13125 EOF
13126 if { (eval echo configure:13127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13127   rm -rf conftest*
13128   glibcpp_cv_func_isinff_use=yes
13129 else
13130   echo "configure: failed program was:" >&5
13131   cat conftest.$ac_ext >&5
13132   rm -rf conftest*
13133   glibcpp_cv_func_isinff_use=no
13134 fi
13135 rm -f conftest*
13136       ac_ext=c
13137 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13138 ac_cpp='$CPP $CPPFLAGS'
13139 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13140 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13141 cross_compiling=$ac_cv_prog_cc_cross
13142
13143     
13144 fi
13145
13146   fi
13147   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
13148
13149   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
13150     for ac_func in isinff
13151 do
13152 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13153 echo "configure:13154: checking for $ac_func" >&5
13154 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13155   echo $ac_n "(cached) $ac_c" 1>&6
13156 else
13157   cat > conftest.$ac_ext <<EOF
13158 #line 13159 "configure"
13159 #include "confdefs.h"
13160 /* System header to define __stub macros and hopefully few prototypes,
13161     which can conflict with char $ac_func(); below.  */
13162 #include <assert.h>
13163 /* Override any gcc2 internal prototype to avoid an error.  */
13164 /* We use char because int might match the return type of a gcc2
13165     builtin and then its argument prototype would still apply.  */
13166 char $ac_func();
13167
13168 int main() {
13169
13170 /* The GNU C library defines this for functions which it implements
13171     to always fail with ENOSYS.  Some functions are actually named
13172     something starting with __ and the normal name is an alias.  */
13173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13174 choke me
13175 #else
13176 $ac_func();
13177 #endif
13178
13179 ; return 0; }
13180 EOF
13181 if { (eval echo configure:13182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13182   rm -rf conftest*
13183   eval "ac_cv_func_$ac_func=yes"
13184 else
13185   echo "configure: failed program was:" >&5
13186   cat conftest.$ac_ext >&5
13187   rm -rf conftest*
13188   eval "ac_cv_func_$ac_func=no"
13189 fi
13190 rm -f conftest*
13191 fi
13192
13193 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13194   echo "$ac_t""yes" 1>&6
13195     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13196   cat >> confdefs.h <<EOF
13197 #define $ac_tr_func 1
13198 EOF
13199  
13200 else
13201   echo "$ac_t""no" 1>&6
13202 fi
13203 done
13204     
13205   else
13206     
13207   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13208 echo "configure:13209: checking for _isinff declaration" >&5
13209   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
13210     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
13211   echo $ac_n "(cached) $ac_c" 1>&6
13212 else
13213   
13214       
13215       ac_ext=C
13216 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13217 ac_cpp='$CXXCPP $CPPFLAGS'
13218 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13219 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13220 cross_compiling=$ac_cv_prog_cxx_cross
13221
13222       cat > conftest.$ac_ext <<EOF
13223 #line 13224 "configure"
13224 #include "confdefs.h"
13225 #include <math.h>
13226                       #ifdef HAVE_IEEEFP_H
13227                       #include <ieeefp.h>
13228                       #endif
13229                      
13230 int main() {
13231  _isinff(0);
13232 ; return 0; }
13233 EOF
13234 if { (eval echo configure:13235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13235   rm -rf conftest*
13236   glibcpp_cv_func__isinff_use=yes
13237 else
13238   echo "configure: failed program was:" >&5
13239   cat conftest.$ac_ext >&5
13240   rm -rf conftest*
13241   glibcpp_cv_func__isinff_use=no
13242 fi
13243 rm -f conftest*
13244       ac_ext=c
13245 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13246 ac_cpp='$CPP $CPPFLAGS'
13247 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13248 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13249 cross_compiling=$ac_cv_prog_cc_cross
13250
13251     
13252 fi
13253
13254   fi
13255   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
13256
13257     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
13258       for ac_func in _isinff
13259 do
13260 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13261 echo "configure:13262: checking for $ac_func" >&5
13262 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13263   echo $ac_n "(cached) $ac_c" 1>&6
13264 else
13265   cat > conftest.$ac_ext <<EOF
13266 #line 13267 "configure"
13267 #include "confdefs.h"
13268 /* System header to define __stub macros and hopefully few prototypes,
13269     which can conflict with char $ac_func(); below.  */
13270 #include <assert.h>
13271 /* Override any gcc2 internal prototype to avoid an error.  */
13272 /* We use char because int might match the return type of a gcc2
13273     builtin and then its argument prototype would still apply.  */
13274 char $ac_func();
13275
13276 int main() {
13277
13278 /* The GNU C library defines this for functions which it implements
13279     to always fail with ENOSYS.  Some functions are actually named
13280     something starting with __ and the normal name is an alias.  */
13281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13282 choke me
13283 #else
13284 $ac_func();
13285 #endif
13286
13287 ; return 0; }
13288 EOF
13289 if { (eval echo configure:13290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13290   rm -rf conftest*
13291   eval "ac_cv_func_$ac_func=yes"
13292 else
13293   echo "configure: failed program was:" >&5
13294   cat conftest.$ac_ext >&5
13295   rm -rf conftest*
13296   eval "ac_cv_func_$ac_func=no"
13297 fi
13298 rm -f conftest*
13299 fi
13300
13301 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13302   echo "$ac_t""yes" 1>&6
13303     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13304   cat >> confdefs.h <<EOF
13305 #define $ac_tr_func 1
13306 EOF
13307  
13308 else
13309   echo "$ac_t""no" 1>&6
13310 fi
13311 done
13312     
13313     fi
13314   fi
13315
13316   
13317   
13318   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13319 echo "configure:13320: checking for atan2f declaration" >&5
13320   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
13321     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
13322   echo $ac_n "(cached) $ac_c" 1>&6
13323 else
13324   
13325       
13326       ac_ext=C
13327 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13328 ac_cpp='$CXXCPP $CPPFLAGS'
13329 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13330 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13331 cross_compiling=$ac_cv_prog_cxx_cross
13332
13333       cat > conftest.$ac_ext <<EOF
13334 #line 13335 "configure"
13335 #include "confdefs.h"
13336 #include <math.h>
13337 int main() {
13338  atan2f(0, 0);
13339 ; return 0; }
13340 EOF
13341 if { (eval echo configure:13342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13342   rm -rf conftest*
13343   glibcpp_cv_func_atan2f_use=yes
13344 else
13345   echo "configure: failed program was:" >&5
13346   cat conftest.$ac_ext >&5
13347   rm -rf conftest*
13348   glibcpp_cv_func_atan2f_use=no
13349 fi
13350 rm -f conftest*
13351       ac_ext=c
13352 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13353 ac_cpp='$CPP $CPPFLAGS'
13354 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13355 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13356 cross_compiling=$ac_cv_prog_cc_cross
13357
13358     
13359 fi
13360
13361   fi
13362   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
13363
13364   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
13365     for ac_func in atan2f
13366 do
13367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13368 echo "configure:13369: checking for $ac_func" >&5
13369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13370   echo $ac_n "(cached) $ac_c" 1>&6
13371 else
13372   cat > conftest.$ac_ext <<EOF
13373 #line 13374 "configure"
13374 #include "confdefs.h"
13375 /* System header to define __stub macros and hopefully few prototypes,
13376     which can conflict with char $ac_func(); below.  */
13377 #include <assert.h>
13378 /* Override any gcc2 internal prototype to avoid an error.  */
13379 /* We use char because int might match the return type of a gcc2
13380     builtin and then its argument prototype would still apply.  */
13381 char $ac_func();
13382
13383 int main() {
13384
13385 /* The GNU C library defines this for functions which it implements
13386     to always fail with ENOSYS.  Some functions are actually named
13387     something starting with __ and the normal name is an alias.  */
13388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13389 choke me
13390 #else
13391 $ac_func();
13392 #endif
13393
13394 ; return 0; }
13395 EOF
13396 if { (eval echo configure:13397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13397   rm -rf conftest*
13398   eval "ac_cv_func_$ac_func=yes"
13399 else
13400   echo "configure: failed program was:" >&5
13401   cat conftest.$ac_ext >&5
13402   rm -rf conftest*
13403   eval "ac_cv_func_$ac_func=no"
13404 fi
13405 rm -f conftest*
13406 fi
13407
13408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13409   echo "$ac_t""yes" 1>&6
13410     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13411   cat >> confdefs.h <<EOF
13412 #define $ac_tr_func 1
13413 EOF
13414  
13415 else
13416   echo "$ac_t""no" 1>&6
13417 fi
13418 done
13419     
13420   else
13421     
13422   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13423 echo "configure:13424: checking for _atan2f declaration" >&5
13424   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
13425     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
13426   echo $ac_n "(cached) $ac_c" 1>&6
13427 else
13428   
13429       
13430       ac_ext=C
13431 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13432 ac_cpp='$CXXCPP $CPPFLAGS'
13433 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13434 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13435 cross_compiling=$ac_cv_prog_cxx_cross
13436
13437       cat > conftest.$ac_ext <<EOF
13438 #line 13439 "configure"
13439 #include "confdefs.h"
13440 #include <math.h>
13441 int main() {
13442  _atan2f(0, 0);
13443 ; return 0; }
13444 EOF
13445 if { (eval echo configure:13446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13446   rm -rf conftest*
13447   glibcpp_cv_func__atan2f_use=yes
13448 else
13449   echo "configure: failed program was:" >&5
13450   cat conftest.$ac_ext >&5
13451   rm -rf conftest*
13452   glibcpp_cv_func__atan2f_use=no
13453 fi
13454 rm -f conftest*
13455       ac_ext=c
13456 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13457 ac_cpp='$CPP $CPPFLAGS'
13458 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13459 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13460 cross_compiling=$ac_cv_prog_cc_cross
13461
13462     
13463 fi
13464
13465   fi
13466   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
13467
13468     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
13469       for ac_func in _atan2f
13470 do
13471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13472 echo "configure:13473: checking for $ac_func" >&5
13473 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13474   echo $ac_n "(cached) $ac_c" 1>&6
13475 else
13476   cat > conftest.$ac_ext <<EOF
13477 #line 13478 "configure"
13478 #include "confdefs.h"
13479 /* System header to define __stub macros and hopefully few prototypes,
13480     which can conflict with char $ac_func(); below.  */
13481 #include <assert.h>
13482 /* Override any gcc2 internal prototype to avoid an error.  */
13483 /* We use char because int might match the return type of a gcc2
13484     builtin and then its argument prototype would still apply.  */
13485 char $ac_func();
13486
13487 int main() {
13488
13489 /* The GNU C library defines this for functions which it implements
13490     to always fail with ENOSYS.  Some functions are actually named
13491     something starting with __ and the normal name is an alias.  */
13492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13493 choke me
13494 #else
13495 $ac_func();
13496 #endif
13497
13498 ; return 0; }
13499 EOF
13500 if { (eval echo configure:13501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13501   rm -rf conftest*
13502   eval "ac_cv_func_$ac_func=yes"
13503 else
13504   echo "configure: failed program was:" >&5
13505   cat conftest.$ac_ext >&5
13506   rm -rf conftest*
13507   eval "ac_cv_func_$ac_func=no"
13508 fi
13509 rm -f conftest*
13510 fi
13511
13512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13513   echo "$ac_t""yes" 1>&6
13514     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13515   cat >> confdefs.h <<EOF
13516 #define $ac_tr_func 1
13517 EOF
13518  
13519 else
13520   echo "$ac_t""no" 1>&6
13521 fi
13522 done
13523     
13524     fi
13525   fi
13526
13527   
13528   
13529   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13530 echo "configure:13531: checking for fabsf declaration" >&5
13531   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
13532     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
13533   echo $ac_n "(cached) $ac_c" 1>&6
13534 else
13535   
13536       
13537       ac_ext=C
13538 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13539 ac_cpp='$CXXCPP $CPPFLAGS'
13540 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13541 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13542 cross_compiling=$ac_cv_prog_cxx_cross
13543
13544       cat > conftest.$ac_ext <<EOF
13545 #line 13546 "configure"
13546 #include "confdefs.h"
13547 #include <math.h>
13548                       #ifdef HAVE_IEEEFP_H
13549                       #include <ieeefp.h>
13550                       #endif
13551                      
13552 int main() {
13553  fabsf(0);
13554 ; return 0; }
13555 EOF
13556 if { (eval echo configure:13557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13557   rm -rf conftest*
13558   glibcpp_cv_func_fabsf_use=yes
13559 else
13560   echo "configure: failed program was:" >&5
13561   cat conftest.$ac_ext >&5
13562   rm -rf conftest*
13563   glibcpp_cv_func_fabsf_use=no
13564 fi
13565 rm -f conftest*
13566       ac_ext=c
13567 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13568 ac_cpp='$CPP $CPPFLAGS'
13569 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13570 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13571 cross_compiling=$ac_cv_prog_cc_cross
13572
13573     
13574 fi
13575
13576   fi
13577   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
13578
13579   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
13580     for ac_func in fabsf
13581 do
13582 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13583 echo "configure:13584: checking for $ac_func" >&5
13584 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13585   echo $ac_n "(cached) $ac_c" 1>&6
13586 else
13587   cat > conftest.$ac_ext <<EOF
13588 #line 13589 "configure"
13589 #include "confdefs.h"
13590 /* System header to define __stub macros and hopefully few prototypes,
13591     which can conflict with char $ac_func(); below.  */
13592 #include <assert.h>
13593 /* Override any gcc2 internal prototype to avoid an error.  */
13594 /* We use char because int might match the return type of a gcc2
13595     builtin and then its argument prototype would still apply.  */
13596 char $ac_func();
13597
13598 int main() {
13599
13600 /* The GNU C library defines this for functions which it implements
13601     to always fail with ENOSYS.  Some functions are actually named
13602     something starting with __ and the normal name is an alias.  */
13603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13604 choke me
13605 #else
13606 $ac_func();
13607 #endif
13608
13609 ; return 0; }
13610 EOF
13611 if { (eval echo configure:13612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13612   rm -rf conftest*
13613   eval "ac_cv_func_$ac_func=yes"
13614 else
13615   echo "configure: failed program was:" >&5
13616   cat conftest.$ac_ext >&5
13617   rm -rf conftest*
13618   eval "ac_cv_func_$ac_func=no"
13619 fi
13620 rm -f conftest*
13621 fi
13622
13623 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13624   echo "$ac_t""yes" 1>&6
13625     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13626   cat >> confdefs.h <<EOF
13627 #define $ac_tr_func 1
13628 EOF
13629  
13630 else
13631   echo "$ac_t""no" 1>&6
13632 fi
13633 done
13634     
13635   else
13636     
13637   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13638 echo "configure:13639: checking for _fabsf declaration" >&5
13639   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
13640     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
13641   echo $ac_n "(cached) $ac_c" 1>&6
13642 else
13643   
13644       
13645       ac_ext=C
13646 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13647 ac_cpp='$CXXCPP $CPPFLAGS'
13648 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13649 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13650 cross_compiling=$ac_cv_prog_cxx_cross
13651
13652       cat > conftest.$ac_ext <<EOF
13653 #line 13654 "configure"
13654 #include "confdefs.h"
13655 #include <math.h>
13656                       #ifdef HAVE_IEEEFP_H
13657                       #include <ieeefp.h>
13658                       #endif
13659                      
13660 int main() {
13661  _fabsf(0);
13662 ; return 0; }
13663 EOF
13664 if { (eval echo configure:13665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13665   rm -rf conftest*
13666   glibcpp_cv_func__fabsf_use=yes
13667 else
13668   echo "configure: failed program was:" >&5
13669   cat conftest.$ac_ext >&5
13670   rm -rf conftest*
13671   glibcpp_cv_func__fabsf_use=no
13672 fi
13673 rm -f conftest*
13674       ac_ext=c
13675 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13676 ac_cpp='$CPP $CPPFLAGS'
13677 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13678 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13679 cross_compiling=$ac_cv_prog_cc_cross
13680
13681     
13682 fi
13683
13684   fi
13685   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
13686
13687     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
13688       for ac_func in _fabsf
13689 do
13690 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13691 echo "configure:13692: checking for $ac_func" >&5
13692 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13693   echo $ac_n "(cached) $ac_c" 1>&6
13694 else
13695   cat > conftest.$ac_ext <<EOF
13696 #line 13697 "configure"
13697 #include "confdefs.h"
13698 /* System header to define __stub macros and hopefully few prototypes,
13699     which can conflict with char $ac_func(); below.  */
13700 #include <assert.h>
13701 /* Override any gcc2 internal prototype to avoid an error.  */
13702 /* We use char because int might match the return type of a gcc2
13703     builtin and then its argument prototype would still apply.  */
13704 char $ac_func();
13705
13706 int main() {
13707
13708 /* The GNU C library defines this for functions which it implements
13709     to always fail with ENOSYS.  Some functions are actually named
13710     something starting with __ and the normal name is an alias.  */
13711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13712 choke me
13713 #else
13714 $ac_func();
13715 #endif
13716
13717 ; return 0; }
13718 EOF
13719 if { (eval echo configure:13720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13720   rm -rf conftest*
13721   eval "ac_cv_func_$ac_func=yes"
13722 else
13723   echo "configure: failed program was:" >&5
13724   cat conftest.$ac_ext >&5
13725   rm -rf conftest*
13726   eval "ac_cv_func_$ac_func=no"
13727 fi
13728 rm -f conftest*
13729 fi
13730
13731 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13732   echo "$ac_t""yes" 1>&6
13733     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13734   cat >> confdefs.h <<EOF
13735 #define $ac_tr_func 1
13736 EOF
13737  
13738 else
13739   echo "$ac_t""no" 1>&6
13740 fi
13741 done
13742     
13743     fi
13744   fi
13745
13746   
13747   
13748   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13749 echo "configure:13750: checking for fmodf declaration" >&5
13750   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
13751     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
13752   echo $ac_n "(cached) $ac_c" 1>&6
13753 else
13754   
13755       
13756       ac_ext=C
13757 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13758 ac_cpp='$CXXCPP $CPPFLAGS'
13759 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13760 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13761 cross_compiling=$ac_cv_prog_cxx_cross
13762
13763       cat > conftest.$ac_ext <<EOF
13764 #line 13765 "configure"
13765 #include "confdefs.h"
13766 #include <math.h>
13767 int main() {
13768  fmodf(0, 0);
13769 ; return 0; }
13770 EOF
13771 if { (eval echo configure:13772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13772   rm -rf conftest*
13773   glibcpp_cv_func_fmodf_use=yes
13774 else
13775   echo "configure: failed program was:" >&5
13776   cat conftest.$ac_ext >&5
13777   rm -rf conftest*
13778   glibcpp_cv_func_fmodf_use=no
13779 fi
13780 rm -f conftest*
13781       ac_ext=c
13782 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13783 ac_cpp='$CPP $CPPFLAGS'
13784 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13785 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13786 cross_compiling=$ac_cv_prog_cc_cross
13787
13788     
13789 fi
13790
13791   fi
13792   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
13793
13794   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
13795     for ac_func in fmodf
13796 do
13797 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13798 echo "configure:13799: checking for $ac_func" >&5
13799 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13800   echo $ac_n "(cached) $ac_c" 1>&6
13801 else
13802   cat > conftest.$ac_ext <<EOF
13803 #line 13804 "configure"
13804 #include "confdefs.h"
13805 /* System header to define __stub macros and hopefully few prototypes,
13806     which can conflict with char $ac_func(); below.  */
13807 #include <assert.h>
13808 /* Override any gcc2 internal prototype to avoid an error.  */
13809 /* We use char because int might match the return type of a gcc2
13810     builtin and then its argument prototype would still apply.  */
13811 char $ac_func();
13812
13813 int main() {
13814
13815 /* The GNU C library defines this for functions which it implements
13816     to always fail with ENOSYS.  Some functions are actually named
13817     something starting with __ and the normal name is an alias.  */
13818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13819 choke me
13820 #else
13821 $ac_func();
13822 #endif
13823
13824 ; return 0; }
13825 EOF
13826 if { (eval echo configure:13827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13827   rm -rf conftest*
13828   eval "ac_cv_func_$ac_func=yes"
13829 else
13830   echo "configure: failed program was:" >&5
13831   cat conftest.$ac_ext >&5
13832   rm -rf conftest*
13833   eval "ac_cv_func_$ac_func=no"
13834 fi
13835 rm -f conftest*
13836 fi
13837
13838 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13839   echo "$ac_t""yes" 1>&6
13840     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13841   cat >> confdefs.h <<EOF
13842 #define $ac_tr_func 1
13843 EOF
13844  
13845 else
13846   echo "$ac_t""no" 1>&6
13847 fi
13848 done
13849     
13850   else
13851     
13852   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
13853 echo "configure:13854: checking for _fmodf declaration" >&5
13854   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
13855     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
13856   echo $ac_n "(cached) $ac_c" 1>&6
13857 else
13858   
13859       
13860       ac_ext=C
13861 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13862 ac_cpp='$CXXCPP $CPPFLAGS'
13863 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13864 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13865 cross_compiling=$ac_cv_prog_cxx_cross
13866
13867       cat > conftest.$ac_ext <<EOF
13868 #line 13869 "configure"
13869 #include "confdefs.h"
13870 #include <math.h>
13871 int main() {
13872  _fmodf(0, 0);
13873 ; return 0; }
13874 EOF
13875 if { (eval echo configure:13876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13876   rm -rf conftest*
13877   glibcpp_cv_func__fmodf_use=yes
13878 else
13879   echo "configure: failed program was:" >&5
13880   cat conftest.$ac_ext >&5
13881   rm -rf conftest*
13882   glibcpp_cv_func__fmodf_use=no
13883 fi
13884 rm -f conftest*
13885       ac_ext=c
13886 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13887 ac_cpp='$CPP $CPPFLAGS'
13888 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13889 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13890 cross_compiling=$ac_cv_prog_cc_cross
13891
13892     
13893 fi
13894
13895   fi
13896   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
13897
13898     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
13899       for ac_func in _fmodf
13900 do
13901 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13902 echo "configure:13903: checking for $ac_func" >&5
13903 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13904   echo $ac_n "(cached) $ac_c" 1>&6
13905 else
13906   cat > conftest.$ac_ext <<EOF
13907 #line 13908 "configure"
13908 #include "confdefs.h"
13909 /* System header to define __stub macros and hopefully few prototypes,
13910     which can conflict with char $ac_func(); below.  */
13911 #include <assert.h>
13912 /* Override any gcc2 internal prototype to avoid an error.  */
13913 /* We use char because int might match the return type of a gcc2
13914     builtin and then its argument prototype would still apply.  */
13915 char $ac_func();
13916
13917 int main() {
13918
13919 /* The GNU C library defines this for functions which it implements
13920     to always fail with ENOSYS.  Some functions are actually named
13921     something starting with __ and the normal name is an alias.  */
13922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13923 choke me
13924 #else
13925 $ac_func();
13926 #endif
13927
13928 ; return 0; }
13929 EOF
13930 if { (eval echo configure:13931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13931   rm -rf conftest*
13932   eval "ac_cv_func_$ac_func=yes"
13933 else
13934   echo "configure: failed program was:" >&5
13935   cat conftest.$ac_ext >&5
13936   rm -rf conftest*
13937   eval "ac_cv_func_$ac_func=no"
13938 fi
13939 rm -f conftest*
13940 fi
13941
13942 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13943   echo "$ac_t""yes" 1>&6
13944     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13945   cat >> confdefs.h <<EOF
13946 #define $ac_tr_func 1
13947 EOF
13948  
13949 else
13950   echo "$ac_t""no" 1>&6
13951 fi
13952 done
13953     
13954     fi
13955   fi
13956
13957   
13958   
13959   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
13960 echo "configure:13961: checking for frexpf declaration" >&5
13961   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
13962     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
13963   echo $ac_n "(cached) $ac_c" 1>&6
13964 else
13965   
13966       
13967       ac_ext=C
13968 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13969 ac_cpp='$CXXCPP $CPPFLAGS'
13970 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13971 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13972 cross_compiling=$ac_cv_prog_cxx_cross
13973
13974       cat > conftest.$ac_ext <<EOF
13975 #line 13976 "configure"
13976 #include "confdefs.h"
13977 #include <math.h>
13978 int main() {
13979  frexpf(0, 0);
13980 ; return 0; }
13981 EOF
13982 if { (eval echo configure:13983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13983   rm -rf conftest*
13984   glibcpp_cv_func_frexpf_use=yes
13985 else
13986   echo "configure: failed program was:" >&5
13987   cat conftest.$ac_ext >&5
13988   rm -rf conftest*
13989   glibcpp_cv_func_frexpf_use=no
13990 fi
13991 rm -f conftest*
13992       ac_ext=c
13993 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13994 ac_cpp='$CPP $CPPFLAGS'
13995 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13996 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13997 cross_compiling=$ac_cv_prog_cc_cross
13998
13999     
14000 fi
14001
14002   fi
14003   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
14004
14005   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
14006     for ac_func in frexpf
14007 do
14008 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14009 echo "configure:14010: checking for $ac_func" >&5
14010 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14011   echo $ac_n "(cached) $ac_c" 1>&6
14012 else
14013   cat > conftest.$ac_ext <<EOF
14014 #line 14015 "configure"
14015 #include "confdefs.h"
14016 /* System header to define __stub macros and hopefully few prototypes,
14017     which can conflict with char $ac_func(); below.  */
14018 #include <assert.h>
14019 /* Override any gcc2 internal prototype to avoid an error.  */
14020 /* We use char because int might match the return type of a gcc2
14021     builtin and then its argument prototype would still apply.  */
14022 char $ac_func();
14023
14024 int main() {
14025
14026 /* The GNU C library defines this for functions which it implements
14027     to always fail with ENOSYS.  Some functions are actually named
14028     something starting with __ and the normal name is an alias.  */
14029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14030 choke me
14031 #else
14032 $ac_func();
14033 #endif
14034
14035 ; return 0; }
14036 EOF
14037 if { (eval echo configure:14038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14038   rm -rf conftest*
14039   eval "ac_cv_func_$ac_func=yes"
14040 else
14041   echo "configure: failed program was:" >&5
14042   cat conftest.$ac_ext >&5
14043   rm -rf conftest*
14044   eval "ac_cv_func_$ac_func=no"
14045 fi
14046 rm -f conftest*
14047 fi
14048
14049 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14050   echo "$ac_t""yes" 1>&6
14051     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14052   cat >> confdefs.h <<EOF
14053 #define $ac_tr_func 1
14054 EOF
14055  
14056 else
14057   echo "$ac_t""no" 1>&6
14058 fi
14059 done
14060     
14061   else
14062     
14063   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14064 echo "configure:14065: checking for _frexpf declaration" >&5
14065   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
14066     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
14067   echo $ac_n "(cached) $ac_c" 1>&6
14068 else
14069   
14070       
14071       ac_ext=C
14072 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14073 ac_cpp='$CXXCPP $CPPFLAGS'
14074 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14075 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14076 cross_compiling=$ac_cv_prog_cxx_cross
14077
14078       cat > conftest.$ac_ext <<EOF
14079 #line 14080 "configure"
14080 #include "confdefs.h"
14081 #include <math.h>
14082 int main() {
14083  _frexpf(0, 0);
14084 ; return 0; }
14085 EOF
14086 if { (eval echo configure:14087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14087   rm -rf conftest*
14088   glibcpp_cv_func__frexpf_use=yes
14089 else
14090   echo "configure: failed program was:" >&5
14091   cat conftest.$ac_ext >&5
14092   rm -rf conftest*
14093   glibcpp_cv_func__frexpf_use=no
14094 fi
14095 rm -f conftest*
14096       ac_ext=c
14097 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14098 ac_cpp='$CPP $CPPFLAGS'
14099 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14100 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14101 cross_compiling=$ac_cv_prog_cc_cross
14102
14103     
14104 fi
14105
14106   fi
14107   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
14108
14109     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
14110       for ac_func in _frexpf
14111 do
14112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14113 echo "configure:14114: checking for $ac_func" >&5
14114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14115   echo $ac_n "(cached) $ac_c" 1>&6
14116 else
14117   cat > conftest.$ac_ext <<EOF
14118 #line 14119 "configure"
14119 #include "confdefs.h"
14120 /* System header to define __stub macros and hopefully few prototypes,
14121     which can conflict with char $ac_func(); below.  */
14122 #include <assert.h>
14123 /* Override any gcc2 internal prototype to avoid an error.  */
14124 /* We use char because int might match the return type of a gcc2
14125     builtin and then its argument prototype would still apply.  */
14126 char $ac_func();
14127
14128 int main() {
14129
14130 /* The GNU C library defines this for functions which it implements
14131     to always fail with ENOSYS.  Some functions are actually named
14132     something starting with __ and the normal name is an alias.  */
14133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14134 choke me
14135 #else
14136 $ac_func();
14137 #endif
14138
14139 ; return 0; }
14140 EOF
14141 if { (eval echo configure:14142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14142   rm -rf conftest*
14143   eval "ac_cv_func_$ac_func=yes"
14144 else
14145   echo "configure: failed program was:" >&5
14146   cat conftest.$ac_ext >&5
14147   rm -rf conftest*
14148   eval "ac_cv_func_$ac_func=no"
14149 fi
14150 rm -f conftest*
14151 fi
14152
14153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14154   echo "$ac_t""yes" 1>&6
14155     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14156   cat >> confdefs.h <<EOF
14157 #define $ac_tr_func 1
14158 EOF
14159  
14160 else
14161   echo "$ac_t""no" 1>&6
14162 fi
14163 done
14164     
14165     fi
14166   fi
14167
14168   
14169   
14170   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14171 echo "configure:14172: checking for hypotf declaration" >&5
14172   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
14173     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
14174   echo $ac_n "(cached) $ac_c" 1>&6
14175 else
14176   
14177       
14178       ac_ext=C
14179 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14180 ac_cpp='$CXXCPP $CPPFLAGS'
14181 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14182 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14183 cross_compiling=$ac_cv_prog_cxx_cross
14184
14185       cat > conftest.$ac_ext <<EOF
14186 #line 14187 "configure"
14187 #include "confdefs.h"
14188 #include <math.h>
14189 int main() {
14190  hypotf(0, 0);
14191 ; return 0; }
14192 EOF
14193 if { (eval echo configure:14194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14194   rm -rf conftest*
14195   glibcpp_cv_func_hypotf_use=yes
14196 else
14197   echo "configure: failed program was:" >&5
14198   cat conftest.$ac_ext >&5
14199   rm -rf conftest*
14200   glibcpp_cv_func_hypotf_use=no
14201 fi
14202 rm -f conftest*
14203       ac_ext=c
14204 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14205 ac_cpp='$CPP $CPPFLAGS'
14206 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14207 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14208 cross_compiling=$ac_cv_prog_cc_cross
14209
14210     
14211 fi
14212
14213   fi
14214   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
14215
14216   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
14217     for ac_func in hypotf
14218 do
14219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14220 echo "configure:14221: checking for $ac_func" >&5
14221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14222   echo $ac_n "(cached) $ac_c" 1>&6
14223 else
14224   cat > conftest.$ac_ext <<EOF
14225 #line 14226 "configure"
14226 #include "confdefs.h"
14227 /* System header to define __stub macros and hopefully few prototypes,
14228     which can conflict with char $ac_func(); below.  */
14229 #include <assert.h>
14230 /* Override any gcc2 internal prototype to avoid an error.  */
14231 /* We use char because int might match the return type of a gcc2
14232     builtin and then its argument prototype would still apply.  */
14233 char $ac_func();
14234
14235 int main() {
14236
14237 /* The GNU C library defines this for functions which it implements
14238     to always fail with ENOSYS.  Some functions are actually named
14239     something starting with __ and the normal name is an alias.  */
14240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14241 choke me
14242 #else
14243 $ac_func();
14244 #endif
14245
14246 ; return 0; }
14247 EOF
14248 if { (eval echo configure:14249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14249   rm -rf conftest*
14250   eval "ac_cv_func_$ac_func=yes"
14251 else
14252   echo "configure: failed program was:" >&5
14253   cat conftest.$ac_ext >&5
14254   rm -rf conftest*
14255   eval "ac_cv_func_$ac_func=no"
14256 fi
14257 rm -f conftest*
14258 fi
14259
14260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14261   echo "$ac_t""yes" 1>&6
14262     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14263   cat >> confdefs.h <<EOF
14264 #define $ac_tr_func 1
14265 EOF
14266  
14267 else
14268   echo "$ac_t""no" 1>&6
14269 fi
14270 done
14271     
14272   else
14273     
14274   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14275 echo "configure:14276: checking for _hypotf declaration" >&5
14276   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
14277     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
14278   echo $ac_n "(cached) $ac_c" 1>&6
14279 else
14280   
14281       
14282       ac_ext=C
14283 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14284 ac_cpp='$CXXCPP $CPPFLAGS'
14285 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14286 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14287 cross_compiling=$ac_cv_prog_cxx_cross
14288
14289       cat > conftest.$ac_ext <<EOF
14290 #line 14291 "configure"
14291 #include "confdefs.h"
14292 #include <math.h>
14293 int main() {
14294  _hypotf(0, 0);
14295 ; return 0; }
14296 EOF
14297 if { (eval echo configure:14298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14298   rm -rf conftest*
14299   glibcpp_cv_func__hypotf_use=yes
14300 else
14301   echo "configure: failed program was:" >&5
14302   cat conftest.$ac_ext >&5
14303   rm -rf conftest*
14304   glibcpp_cv_func__hypotf_use=no
14305 fi
14306 rm -f conftest*
14307       ac_ext=c
14308 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14309 ac_cpp='$CPP $CPPFLAGS'
14310 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14311 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14312 cross_compiling=$ac_cv_prog_cc_cross
14313
14314     
14315 fi
14316
14317   fi
14318   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
14319
14320     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
14321       for ac_func in _hypotf
14322 do
14323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14324 echo "configure:14325: checking for $ac_func" >&5
14325 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14326   echo $ac_n "(cached) $ac_c" 1>&6
14327 else
14328   cat > conftest.$ac_ext <<EOF
14329 #line 14330 "configure"
14330 #include "confdefs.h"
14331 /* System header to define __stub macros and hopefully few prototypes,
14332     which can conflict with char $ac_func(); below.  */
14333 #include <assert.h>
14334 /* Override any gcc2 internal prototype to avoid an error.  */
14335 /* We use char because int might match the return type of a gcc2
14336     builtin and then its argument prototype would still apply.  */
14337 char $ac_func();
14338
14339 int main() {
14340
14341 /* The GNU C library defines this for functions which it implements
14342     to always fail with ENOSYS.  Some functions are actually named
14343     something starting with __ and the normal name is an alias.  */
14344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14345 choke me
14346 #else
14347 $ac_func();
14348 #endif
14349
14350 ; return 0; }
14351 EOF
14352 if { (eval echo configure:14353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14353   rm -rf conftest*
14354   eval "ac_cv_func_$ac_func=yes"
14355 else
14356   echo "configure: failed program was:" >&5
14357   cat conftest.$ac_ext >&5
14358   rm -rf conftest*
14359   eval "ac_cv_func_$ac_func=no"
14360 fi
14361 rm -f conftest*
14362 fi
14363
14364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14365   echo "$ac_t""yes" 1>&6
14366     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14367   cat >> confdefs.h <<EOF
14368 #define $ac_tr_func 1
14369 EOF
14370  
14371 else
14372   echo "$ac_t""no" 1>&6
14373 fi
14374 done
14375     
14376     fi
14377   fi
14378
14379   
14380   
14381   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14382 echo "configure:14383: checking for ldexpf declaration" >&5
14383   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
14384     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
14385   echo $ac_n "(cached) $ac_c" 1>&6
14386 else
14387   
14388       
14389       ac_ext=C
14390 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14391 ac_cpp='$CXXCPP $CPPFLAGS'
14392 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14393 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14394 cross_compiling=$ac_cv_prog_cxx_cross
14395
14396       cat > conftest.$ac_ext <<EOF
14397 #line 14398 "configure"
14398 #include "confdefs.h"
14399 #include <math.h>
14400 int main() {
14401  ldexpf(0, 0);
14402 ; return 0; }
14403 EOF
14404 if { (eval echo configure:14405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14405   rm -rf conftest*
14406   glibcpp_cv_func_ldexpf_use=yes
14407 else
14408   echo "configure: failed program was:" >&5
14409   cat conftest.$ac_ext >&5
14410   rm -rf conftest*
14411   glibcpp_cv_func_ldexpf_use=no
14412 fi
14413 rm -f conftest*
14414       ac_ext=c
14415 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14416 ac_cpp='$CPP $CPPFLAGS'
14417 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14418 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14419 cross_compiling=$ac_cv_prog_cc_cross
14420
14421     
14422 fi
14423
14424   fi
14425   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
14426
14427   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
14428     for ac_func in ldexpf
14429 do
14430 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14431 echo "configure:14432: checking for $ac_func" >&5
14432 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14433   echo $ac_n "(cached) $ac_c" 1>&6
14434 else
14435   cat > conftest.$ac_ext <<EOF
14436 #line 14437 "configure"
14437 #include "confdefs.h"
14438 /* System header to define __stub macros and hopefully few prototypes,
14439     which can conflict with char $ac_func(); below.  */
14440 #include <assert.h>
14441 /* Override any gcc2 internal prototype to avoid an error.  */
14442 /* We use char because int might match the return type of a gcc2
14443     builtin and then its argument prototype would still apply.  */
14444 char $ac_func();
14445
14446 int main() {
14447
14448 /* The GNU C library defines this for functions which it implements
14449     to always fail with ENOSYS.  Some functions are actually named
14450     something starting with __ and the normal name is an alias.  */
14451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14452 choke me
14453 #else
14454 $ac_func();
14455 #endif
14456
14457 ; return 0; }
14458 EOF
14459 if { (eval echo configure:14460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14460   rm -rf conftest*
14461   eval "ac_cv_func_$ac_func=yes"
14462 else
14463   echo "configure: failed program was:" >&5
14464   cat conftest.$ac_ext >&5
14465   rm -rf conftest*
14466   eval "ac_cv_func_$ac_func=no"
14467 fi
14468 rm -f conftest*
14469 fi
14470
14471 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14472   echo "$ac_t""yes" 1>&6
14473     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14474   cat >> confdefs.h <<EOF
14475 #define $ac_tr_func 1
14476 EOF
14477  
14478 else
14479   echo "$ac_t""no" 1>&6
14480 fi
14481 done
14482     
14483   else
14484     
14485   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14486 echo "configure:14487: checking for _ldexpf declaration" >&5
14487   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
14488     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
14489   echo $ac_n "(cached) $ac_c" 1>&6
14490 else
14491   
14492       
14493       ac_ext=C
14494 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14495 ac_cpp='$CXXCPP $CPPFLAGS'
14496 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14497 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14498 cross_compiling=$ac_cv_prog_cxx_cross
14499
14500       cat > conftest.$ac_ext <<EOF
14501 #line 14502 "configure"
14502 #include "confdefs.h"
14503 #include <math.h>
14504 int main() {
14505  _ldexpf(0, 0);
14506 ; return 0; }
14507 EOF
14508 if { (eval echo configure:14509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14509   rm -rf conftest*
14510   glibcpp_cv_func__ldexpf_use=yes
14511 else
14512   echo "configure: failed program was:" >&5
14513   cat conftest.$ac_ext >&5
14514   rm -rf conftest*
14515   glibcpp_cv_func__ldexpf_use=no
14516 fi
14517 rm -f conftest*
14518       ac_ext=c
14519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14520 ac_cpp='$CPP $CPPFLAGS'
14521 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14522 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14523 cross_compiling=$ac_cv_prog_cc_cross
14524
14525     
14526 fi
14527
14528   fi
14529   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
14530
14531     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
14532       for ac_func in _ldexpf
14533 do
14534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14535 echo "configure:14536: checking for $ac_func" >&5
14536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14537   echo $ac_n "(cached) $ac_c" 1>&6
14538 else
14539   cat > conftest.$ac_ext <<EOF
14540 #line 14541 "configure"
14541 #include "confdefs.h"
14542 /* System header to define __stub macros and hopefully few prototypes,
14543     which can conflict with char $ac_func(); below.  */
14544 #include <assert.h>
14545 /* Override any gcc2 internal prototype to avoid an error.  */
14546 /* We use char because int might match the return type of a gcc2
14547     builtin and then its argument prototype would still apply.  */
14548 char $ac_func();
14549
14550 int main() {
14551
14552 /* The GNU C library defines this for functions which it implements
14553     to always fail with ENOSYS.  Some functions are actually named
14554     something starting with __ and the normal name is an alias.  */
14555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14556 choke me
14557 #else
14558 $ac_func();
14559 #endif
14560
14561 ; return 0; }
14562 EOF
14563 if { (eval echo configure:14564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14564   rm -rf conftest*
14565   eval "ac_cv_func_$ac_func=yes"
14566 else
14567   echo "configure: failed program was:" >&5
14568   cat conftest.$ac_ext >&5
14569   rm -rf conftest*
14570   eval "ac_cv_func_$ac_func=no"
14571 fi
14572 rm -f conftest*
14573 fi
14574
14575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14576   echo "$ac_t""yes" 1>&6
14577     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14578   cat >> confdefs.h <<EOF
14579 #define $ac_tr_func 1
14580 EOF
14581  
14582 else
14583   echo "$ac_t""no" 1>&6
14584 fi
14585 done
14586     
14587     fi
14588   fi
14589
14590   
14591   
14592   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14593 echo "configure:14594: checking for logf declaration" >&5
14594   if test x${glibcpp_cv_func_logf_use+set} != xset; then
14595     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
14596   echo $ac_n "(cached) $ac_c" 1>&6
14597 else
14598   
14599       
14600       ac_ext=C
14601 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14602 ac_cpp='$CXXCPP $CPPFLAGS'
14603 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14604 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14605 cross_compiling=$ac_cv_prog_cxx_cross
14606
14607       cat > conftest.$ac_ext <<EOF
14608 #line 14609 "configure"
14609 #include "confdefs.h"
14610 #include <math.h>
14611                       #ifdef HAVE_IEEEFP_H
14612                       #include <ieeefp.h>
14613                       #endif
14614                      
14615 int main() {
14616  logf(0);
14617 ; return 0; }
14618 EOF
14619 if { (eval echo configure:14620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14620   rm -rf conftest*
14621   glibcpp_cv_func_logf_use=yes
14622 else
14623   echo "configure: failed program was:" >&5
14624   cat conftest.$ac_ext >&5
14625   rm -rf conftest*
14626   glibcpp_cv_func_logf_use=no
14627 fi
14628 rm -f conftest*
14629       ac_ext=c
14630 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14631 ac_cpp='$CPP $CPPFLAGS'
14632 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14633 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14634 cross_compiling=$ac_cv_prog_cc_cross
14635
14636     
14637 fi
14638
14639   fi
14640   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
14641
14642   if test x$glibcpp_cv_func_logf_use = x"yes"; then
14643     for ac_func in logf
14644 do
14645 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14646 echo "configure:14647: checking for $ac_func" >&5
14647 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14648   echo $ac_n "(cached) $ac_c" 1>&6
14649 else
14650   cat > conftest.$ac_ext <<EOF
14651 #line 14652 "configure"
14652 #include "confdefs.h"
14653 /* System header to define __stub macros and hopefully few prototypes,
14654     which can conflict with char $ac_func(); below.  */
14655 #include <assert.h>
14656 /* Override any gcc2 internal prototype to avoid an error.  */
14657 /* We use char because int might match the return type of a gcc2
14658     builtin and then its argument prototype would still apply.  */
14659 char $ac_func();
14660
14661 int main() {
14662
14663 /* The GNU C library defines this for functions which it implements
14664     to always fail with ENOSYS.  Some functions are actually named
14665     something starting with __ and the normal name is an alias.  */
14666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14667 choke me
14668 #else
14669 $ac_func();
14670 #endif
14671
14672 ; return 0; }
14673 EOF
14674 if { (eval echo configure:14675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14675   rm -rf conftest*
14676   eval "ac_cv_func_$ac_func=yes"
14677 else
14678   echo "configure: failed program was:" >&5
14679   cat conftest.$ac_ext >&5
14680   rm -rf conftest*
14681   eval "ac_cv_func_$ac_func=no"
14682 fi
14683 rm -f conftest*
14684 fi
14685
14686 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14687   echo "$ac_t""yes" 1>&6
14688     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14689   cat >> confdefs.h <<EOF
14690 #define $ac_tr_func 1
14691 EOF
14692  
14693 else
14694   echo "$ac_t""no" 1>&6
14695 fi
14696 done
14697     
14698   else
14699     
14700   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14701 echo "configure:14702: checking for _logf declaration" >&5
14702   if test x${glibcpp_cv_func__logf_use+set} != xset; then
14703     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
14704   echo $ac_n "(cached) $ac_c" 1>&6
14705 else
14706   
14707       
14708       ac_ext=C
14709 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14710 ac_cpp='$CXXCPP $CPPFLAGS'
14711 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14712 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14713 cross_compiling=$ac_cv_prog_cxx_cross
14714
14715       cat > conftest.$ac_ext <<EOF
14716 #line 14717 "configure"
14717 #include "confdefs.h"
14718 #include <math.h>
14719                       #ifdef HAVE_IEEEFP_H
14720                       #include <ieeefp.h>
14721                       #endif
14722                      
14723 int main() {
14724  _logf(0);
14725 ; return 0; }
14726 EOF
14727 if { (eval echo configure:14728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14728   rm -rf conftest*
14729   glibcpp_cv_func__logf_use=yes
14730 else
14731   echo "configure: failed program was:" >&5
14732   cat conftest.$ac_ext >&5
14733   rm -rf conftest*
14734   glibcpp_cv_func__logf_use=no
14735 fi
14736 rm -f conftest*
14737       ac_ext=c
14738 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14739 ac_cpp='$CPP $CPPFLAGS'
14740 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14741 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14742 cross_compiling=$ac_cv_prog_cc_cross
14743
14744     
14745 fi
14746
14747   fi
14748   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
14749
14750     if test x$glibcpp_cv_func__logf_use = x"yes"; then
14751       for ac_func in _logf
14752 do
14753 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14754 echo "configure:14755: checking for $ac_func" >&5
14755 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14756   echo $ac_n "(cached) $ac_c" 1>&6
14757 else
14758   cat > conftest.$ac_ext <<EOF
14759 #line 14760 "configure"
14760 #include "confdefs.h"
14761 /* System header to define __stub macros and hopefully few prototypes,
14762     which can conflict with char $ac_func(); below.  */
14763 #include <assert.h>
14764 /* Override any gcc2 internal prototype to avoid an error.  */
14765 /* We use char because int might match the return type of a gcc2
14766     builtin and then its argument prototype would still apply.  */
14767 char $ac_func();
14768
14769 int main() {
14770
14771 /* The GNU C library defines this for functions which it implements
14772     to always fail with ENOSYS.  Some functions are actually named
14773     something starting with __ and the normal name is an alias.  */
14774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14775 choke me
14776 #else
14777 $ac_func();
14778 #endif
14779
14780 ; return 0; }
14781 EOF
14782 if { (eval echo configure:14783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14783   rm -rf conftest*
14784   eval "ac_cv_func_$ac_func=yes"
14785 else
14786   echo "configure: failed program was:" >&5
14787   cat conftest.$ac_ext >&5
14788   rm -rf conftest*
14789   eval "ac_cv_func_$ac_func=no"
14790 fi
14791 rm -f conftest*
14792 fi
14793
14794 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14795   echo "$ac_t""yes" 1>&6
14796     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14797   cat >> confdefs.h <<EOF
14798 #define $ac_tr_func 1
14799 EOF
14800  
14801 else
14802   echo "$ac_t""no" 1>&6
14803 fi
14804 done
14805     
14806     fi
14807   fi
14808
14809   
14810   
14811   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
14812 echo "configure:14813: checking for log10f declaration" >&5
14813   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
14814     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
14815   echo $ac_n "(cached) $ac_c" 1>&6
14816 else
14817   
14818       
14819       ac_ext=C
14820 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14821 ac_cpp='$CXXCPP $CPPFLAGS'
14822 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14823 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14824 cross_compiling=$ac_cv_prog_cxx_cross
14825
14826       cat > conftest.$ac_ext <<EOF
14827 #line 14828 "configure"
14828 #include "confdefs.h"
14829 #include <math.h>
14830                       #ifdef HAVE_IEEEFP_H
14831                       #include <ieeefp.h>
14832                       #endif
14833                      
14834 int main() {
14835  log10f(0);
14836 ; return 0; }
14837 EOF
14838 if { (eval echo configure:14839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14839   rm -rf conftest*
14840   glibcpp_cv_func_log10f_use=yes
14841 else
14842   echo "configure: failed program was:" >&5
14843   cat conftest.$ac_ext >&5
14844   rm -rf conftest*
14845   glibcpp_cv_func_log10f_use=no
14846 fi
14847 rm -f conftest*
14848       ac_ext=c
14849 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14850 ac_cpp='$CPP $CPPFLAGS'
14851 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14852 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14853 cross_compiling=$ac_cv_prog_cc_cross
14854
14855     
14856 fi
14857
14858   fi
14859   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
14860
14861   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
14862     for ac_func in log10f
14863 do
14864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14865 echo "configure:14866: checking for $ac_func" >&5
14866 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14867   echo $ac_n "(cached) $ac_c" 1>&6
14868 else
14869   cat > conftest.$ac_ext <<EOF
14870 #line 14871 "configure"
14871 #include "confdefs.h"
14872 /* System header to define __stub macros and hopefully few prototypes,
14873     which can conflict with char $ac_func(); below.  */
14874 #include <assert.h>
14875 /* Override any gcc2 internal prototype to avoid an error.  */
14876 /* We use char because int might match the return type of a gcc2
14877     builtin and then its argument prototype would still apply.  */
14878 char $ac_func();
14879
14880 int main() {
14881
14882 /* The GNU C library defines this for functions which it implements
14883     to always fail with ENOSYS.  Some functions are actually named
14884     something starting with __ and the normal name is an alias.  */
14885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14886 choke me
14887 #else
14888 $ac_func();
14889 #endif
14890
14891 ; return 0; }
14892 EOF
14893 if { (eval echo configure:14894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14894   rm -rf conftest*
14895   eval "ac_cv_func_$ac_func=yes"
14896 else
14897   echo "configure: failed program was:" >&5
14898   cat conftest.$ac_ext >&5
14899   rm -rf conftest*
14900   eval "ac_cv_func_$ac_func=no"
14901 fi
14902 rm -f conftest*
14903 fi
14904
14905 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14906   echo "$ac_t""yes" 1>&6
14907     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14908   cat >> confdefs.h <<EOF
14909 #define $ac_tr_func 1
14910 EOF
14911  
14912 else
14913   echo "$ac_t""no" 1>&6
14914 fi
14915 done
14916     
14917   else
14918     
14919   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
14920 echo "configure:14921: checking for _log10f declaration" >&5
14921   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
14922     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
14923   echo $ac_n "(cached) $ac_c" 1>&6
14924 else
14925   
14926       
14927       ac_ext=C
14928 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14929 ac_cpp='$CXXCPP $CPPFLAGS'
14930 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14931 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14932 cross_compiling=$ac_cv_prog_cxx_cross
14933
14934       cat > conftest.$ac_ext <<EOF
14935 #line 14936 "configure"
14936 #include "confdefs.h"
14937 #include <math.h>
14938                       #ifdef HAVE_IEEEFP_H
14939                       #include <ieeefp.h>
14940                       #endif
14941                      
14942 int main() {
14943  _log10f(0);
14944 ; return 0; }
14945 EOF
14946 if { (eval echo configure:14947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14947   rm -rf conftest*
14948   glibcpp_cv_func__log10f_use=yes
14949 else
14950   echo "configure: failed program was:" >&5
14951   cat conftest.$ac_ext >&5
14952   rm -rf conftest*
14953   glibcpp_cv_func__log10f_use=no
14954 fi
14955 rm -f conftest*
14956       ac_ext=c
14957 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14958 ac_cpp='$CPP $CPPFLAGS'
14959 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14960 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14961 cross_compiling=$ac_cv_prog_cc_cross
14962
14963     
14964 fi
14965
14966   fi
14967   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
14968
14969     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
14970       for ac_func in _log10f
14971 do
14972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14973 echo "configure:14974: checking for $ac_func" >&5
14974 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14975   echo $ac_n "(cached) $ac_c" 1>&6
14976 else
14977   cat > conftest.$ac_ext <<EOF
14978 #line 14979 "configure"
14979 #include "confdefs.h"
14980 /* System header to define __stub macros and hopefully few prototypes,
14981     which can conflict with char $ac_func(); below.  */
14982 #include <assert.h>
14983 /* Override any gcc2 internal prototype to avoid an error.  */
14984 /* We use char because int might match the return type of a gcc2
14985     builtin and then its argument prototype would still apply.  */
14986 char $ac_func();
14987
14988 int main() {
14989
14990 /* The GNU C library defines this for functions which it implements
14991     to always fail with ENOSYS.  Some functions are actually named
14992     something starting with __ and the normal name is an alias.  */
14993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14994 choke me
14995 #else
14996 $ac_func();
14997 #endif
14998
14999 ; return 0; }
15000 EOF
15001 if { (eval echo configure:15002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15002   rm -rf conftest*
15003   eval "ac_cv_func_$ac_func=yes"
15004 else
15005   echo "configure: failed program was:" >&5
15006   cat conftest.$ac_ext >&5
15007   rm -rf conftest*
15008   eval "ac_cv_func_$ac_func=no"
15009 fi
15010 rm -f conftest*
15011 fi
15012
15013 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15014   echo "$ac_t""yes" 1>&6
15015     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15016   cat >> confdefs.h <<EOF
15017 #define $ac_tr_func 1
15018 EOF
15019  
15020 else
15021   echo "$ac_t""no" 1>&6
15022 fi
15023 done
15024     
15025     fi
15026   fi
15027
15028   
15029   
15030   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
15031 echo "configure:15032: checking for modff declaration" >&5
15032   if test x${glibcpp_cv_func_modff_use+set} != xset; then
15033     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
15034   echo $ac_n "(cached) $ac_c" 1>&6
15035 else
15036   
15037       
15038       ac_ext=C
15039 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15040 ac_cpp='$CXXCPP $CPPFLAGS'
15041 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15042 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15043 cross_compiling=$ac_cv_prog_cxx_cross
15044
15045       cat > conftest.$ac_ext <<EOF
15046 #line 15047 "configure"
15047 #include "confdefs.h"
15048 #include <math.h>
15049 int main() {
15050  modff(0, 0);
15051 ; return 0; }
15052 EOF
15053 if { (eval echo configure:15054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15054   rm -rf conftest*
15055   glibcpp_cv_func_modff_use=yes
15056 else
15057   echo "configure: failed program was:" >&5
15058   cat conftest.$ac_ext >&5
15059   rm -rf conftest*
15060   glibcpp_cv_func_modff_use=no
15061 fi
15062 rm -f conftest*
15063       ac_ext=c
15064 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15065 ac_cpp='$CPP $CPPFLAGS'
15066 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15067 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15068 cross_compiling=$ac_cv_prog_cc_cross
15069
15070     
15071 fi
15072
15073   fi
15074   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
15075
15076   if test x$glibcpp_cv_func_modff_use = x"yes"; then
15077     for ac_func in modff
15078 do
15079 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15080 echo "configure:15081: checking for $ac_func" >&5
15081 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15082   echo $ac_n "(cached) $ac_c" 1>&6
15083 else
15084   cat > conftest.$ac_ext <<EOF
15085 #line 15086 "configure"
15086 #include "confdefs.h"
15087 /* System header to define __stub macros and hopefully few prototypes,
15088     which can conflict with char $ac_func(); below.  */
15089 #include <assert.h>
15090 /* Override any gcc2 internal prototype to avoid an error.  */
15091 /* We use char because int might match the return type of a gcc2
15092     builtin and then its argument prototype would still apply.  */
15093 char $ac_func();
15094
15095 int main() {
15096
15097 /* The GNU C library defines this for functions which it implements
15098     to always fail with ENOSYS.  Some functions are actually named
15099     something starting with __ and the normal name is an alias.  */
15100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15101 choke me
15102 #else
15103 $ac_func();
15104 #endif
15105
15106 ; return 0; }
15107 EOF
15108 if { (eval echo configure:15109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15109   rm -rf conftest*
15110   eval "ac_cv_func_$ac_func=yes"
15111 else
15112   echo "configure: failed program was:" >&5
15113   cat conftest.$ac_ext >&5
15114   rm -rf conftest*
15115   eval "ac_cv_func_$ac_func=no"
15116 fi
15117 rm -f conftest*
15118 fi
15119
15120 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15121   echo "$ac_t""yes" 1>&6
15122     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15123   cat >> confdefs.h <<EOF
15124 #define $ac_tr_func 1
15125 EOF
15126  
15127 else
15128   echo "$ac_t""no" 1>&6
15129 fi
15130 done
15131     
15132   else
15133     
15134   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15135 echo "configure:15136: checking for _modff declaration" >&5
15136   if test x${glibcpp_cv_func__modff_use+set} != xset; then
15137     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
15138   echo $ac_n "(cached) $ac_c" 1>&6
15139 else
15140   
15141       
15142       ac_ext=C
15143 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15144 ac_cpp='$CXXCPP $CPPFLAGS'
15145 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15146 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15147 cross_compiling=$ac_cv_prog_cxx_cross
15148
15149       cat > conftest.$ac_ext <<EOF
15150 #line 15151 "configure"
15151 #include "confdefs.h"
15152 #include <math.h>
15153 int main() {
15154  _modff(0, 0);
15155 ; return 0; }
15156 EOF
15157 if { (eval echo configure:15158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15158   rm -rf conftest*
15159   glibcpp_cv_func__modff_use=yes
15160 else
15161   echo "configure: failed program was:" >&5
15162   cat conftest.$ac_ext >&5
15163   rm -rf conftest*
15164   glibcpp_cv_func__modff_use=no
15165 fi
15166 rm -f conftest*
15167       ac_ext=c
15168 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15169 ac_cpp='$CPP $CPPFLAGS'
15170 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15171 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15172 cross_compiling=$ac_cv_prog_cc_cross
15173
15174     
15175 fi
15176
15177   fi
15178   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
15179
15180     if test x$glibcpp_cv_func__modff_use = x"yes"; then
15181       for ac_func in _modff
15182 do
15183 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15184 echo "configure:15185: checking for $ac_func" >&5
15185 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15186   echo $ac_n "(cached) $ac_c" 1>&6
15187 else
15188   cat > conftest.$ac_ext <<EOF
15189 #line 15190 "configure"
15190 #include "confdefs.h"
15191 /* System header to define __stub macros and hopefully few prototypes,
15192     which can conflict with char $ac_func(); below.  */
15193 #include <assert.h>
15194 /* Override any gcc2 internal prototype to avoid an error.  */
15195 /* We use char because int might match the return type of a gcc2
15196     builtin and then its argument prototype would still apply.  */
15197 char $ac_func();
15198
15199 int main() {
15200
15201 /* The GNU C library defines this for functions which it implements
15202     to always fail with ENOSYS.  Some functions are actually named
15203     something starting with __ and the normal name is an alias.  */
15204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15205 choke me
15206 #else
15207 $ac_func();
15208 #endif
15209
15210 ; return 0; }
15211 EOF
15212 if { (eval echo configure:15213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15213   rm -rf conftest*
15214   eval "ac_cv_func_$ac_func=yes"
15215 else
15216   echo "configure: failed program was:" >&5
15217   cat conftest.$ac_ext >&5
15218   rm -rf conftest*
15219   eval "ac_cv_func_$ac_func=no"
15220 fi
15221 rm -f conftest*
15222 fi
15223
15224 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15225   echo "$ac_t""yes" 1>&6
15226     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15227   cat >> confdefs.h <<EOF
15228 #define $ac_tr_func 1
15229 EOF
15230  
15231 else
15232   echo "$ac_t""no" 1>&6
15233 fi
15234 done
15235     
15236     fi
15237   fi
15238
15239   
15240   
15241   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15242 echo "configure:15243: checking for powf declaration" >&5
15243   if test x${glibcpp_cv_func_powf_use+set} != xset; then
15244     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
15245   echo $ac_n "(cached) $ac_c" 1>&6
15246 else
15247   
15248       
15249       ac_ext=C
15250 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15251 ac_cpp='$CXXCPP $CPPFLAGS'
15252 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15253 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15254 cross_compiling=$ac_cv_prog_cxx_cross
15255
15256       cat > conftest.$ac_ext <<EOF
15257 #line 15258 "configure"
15258 #include "confdefs.h"
15259 #include <math.h>
15260 int main() {
15261  powf(0, 0);
15262 ; return 0; }
15263 EOF
15264 if { (eval echo configure:15265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15265   rm -rf conftest*
15266   glibcpp_cv_func_powf_use=yes
15267 else
15268   echo "configure: failed program was:" >&5
15269   cat conftest.$ac_ext >&5
15270   rm -rf conftest*
15271   glibcpp_cv_func_powf_use=no
15272 fi
15273 rm -f conftest*
15274       ac_ext=c
15275 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15276 ac_cpp='$CPP $CPPFLAGS'
15277 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15278 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15279 cross_compiling=$ac_cv_prog_cc_cross
15280
15281     
15282 fi
15283
15284   fi
15285   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
15286
15287   if test x$glibcpp_cv_func_powf_use = x"yes"; then
15288     for ac_func in powf
15289 do
15290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15291 echo "configure:15292: checking for $ac_func" >&5
15292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15293   echo $ac_n "(cached) $ac_c" 1>&6
15294 else
15295   cat > conftest.$ac_ext <<EOF
15296 #line 15297 "configure"
15297 #include "confdefs.h"
15298 /* System header to define __stub macros and hopefully few prototypes,
15299     which can conflict with char $ac_func(); below.  */
15300 #include <assert.h>
15301 /* Override any gcc2 internal prototype to avoid an error.  */
15302 /* We use char because int might match the return type of a gcc2
15303     builtin and then its argument prototype would still apply.  */
15304 char $ac_func();
15305
15306 int main() {
15307
15308 /* The GNU C library defines this for functions which it implements
15309     to always fail with ENOSYS.  Some functions are actually named
15310     something starting with __ and the normal name is an alias.  */
15311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15312 choke me
15313 #else
15314 $ac_func();
15315 #endif
15316
15317 ; return 0; }
15318 EOF
15319 if { (eval echo configure:15320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15320   rm -rf conftest*
15321   eval "ac_cv_func_$ac_func=yes"
15322 else
15323   echo "configure: failed program was:" >&5
15324   cat conftest.$ac_ext >&5
15325   rm -rf conftest*
15326   eval "ac_cv_func_$ac_func=no"
15327 fi
15328 rm -f conftest*
15329 fi
15330
15331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15332   echo "$ac_t""yes" 1>&6
15333     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15334   cat >> confdefs.h <<EOF
15335 #define $ac_tr_func 1
15336 EOF
15337  
15338 else
15339   echo "$ac_t""no" 1>&6
15340 fi
15341 done
15342     
15343   else
15344     
15345   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15346 echo "configure:15347: checking for _powf declaration" >&5
15347   if test x${glibcpp_cv_func__powf_use+set} != xset; then
15348     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
15349   echo $ac_n "(cached) $ac_c" 1>&6
15350 else
15351   
15352       
15353       ac_ext=C
15354 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15355 ac_cpp='$CXXCPP $CPPFLAGS'
15356 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15357 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15358 cross_compiling=$ac_cv_prog_cxx_cross
15359
15360       cat > conftest.$ac_ext <<EOF
15361 #line 15362 "configure"
15362 #include "confdefs.h"
15363 #include <math.h>
15364 int main() {
15365  _powf(0, 0);
15366 ; return 0; }
15367 EOF
15368 if { (eval echo configure:15369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15369   rm -rf conftest*
15370   glibcpp_cv_func__powf_use=yes
15371 else
15372   echo "configure: failed program was:" >&5
15373   cat conftest.$ac_ext >&5
15374   rm -rf conftest*
15375   glibcpp_cv_func__powf_use=no
15376 fi
15377 rm -f conftest*
15378       ac_ext=c
15379 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15380 ac_cpp='$CPP $CPPFLAGS'
15381 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15382 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15383 cross_compiling=$ac_cv_prog_cc_cross
15384
15385     
15386 fi
15387
15388   fi
15389   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
15390
15391     if test x$glibcpp_cv_func__powf_use = x"yes"; then
15392       for ac_func in _powf
15393 do
15394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15395 echo "configure:15396: checking for $ac_func" >&5
15396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15397   echo $ac_n "(cached) $ac_c" 1>&6
15398 else
15399   cat > conftest.$ac_ext <<EOF
15400 #line 15401 "configure"
15401 #include "confdefs.h"
15402 /* System header to define __stub macros and hopefully few prototypes,
15403     which can conflict with char $ac_func(); below.  */
15404 #include <assert.h>
15405 /* Override any gcc2 internal prototype to avoid an error.  */
15406 /* We use char because int might match the return type of a gcc2
15407     builtin and then its argument prototype would still apply.  */
15408 char $ac_func();
15409
15410 int main() {
15411
15412 /* The GNU C library defines this for functions which it implements
15413     to always fail with ENOSYS.  Some functions are actually named
15414     something starting with __ and the normal name is an alias.  */
15415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15416 choke me
15417 #else
15418 $ac_func();
15419 #endif
15420
15421 ; return 0; }
15422 EOF
15423 if { (eval echo configure:15424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15424   rm -rf conftest*
15425   eval "ac_cv_func_$ac_func=yes"
15426 else
15427   echo "configure: failed program was:" >&5
15428   cat conftest.$ac_ext >&5
15429   rm -rf conftest*
15430   eval "ac_cv_func_$ac_func=no"
15431 fi
15432 rm -f conftest*
15433 fi
15434
15435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15436   echo "$ac_t""yes" 1>&6
15437     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15438   cat >> confdefs.h <<EOF
15439 #define $ac_tr_func 1
15440 EOF
15441  
15442 else
15443   echo "$ac_t""no" 1>&6
15444 fi
15445 done
15446     
15447     fi
15448   fi
15449
15450   
15451   
15452   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15453 echo "configure:15454: checking for sqrtf declaration" >&5
15454   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
15455     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
15456   echo $ac_n "(cached) $ac_c" 1>&6
15457 else
15458   
15459       
15460       ac_ext=C
15461 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15462 ac_cpp='$CXXCPP $CPPFLAGS'
15463 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15464 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15465 cross_compiling=$ac_cv_prog_cxx_cross
15466
15467       cat > conftest.$ac_ext <<EOF
15468 #line 15469 "configure"
15469 #include "confdefs.h"
15470 #include <math.h>
15471                       #ifdef HAVE_IEEEFP_H
15472                       #include <ieeefp.h>
15473                       #endif
15474                      
15475 int main() {
15476  sqrtf(0);
15477 ; return 0; }
15478 EOF
15479 if { (eval echo configure:15480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15480   rm -rf conftest*
15481   glibcpp_cv_func_sqrtf_use=yes
15482 else
15483   echo "configure: failed program was:" >&5
15484   cat conftest.$ac_ext >&5
15485   rm -rf conftest*
15486   glibcpp_cv_func_sqrtf_use=no
15487 fi
15488 rm -f conftest*
15489       ac_ext=c
15490 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15491 ac_cpp='$CPP $CPPFLAGS'
15492 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15493 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15494 cross_compiling=$ac_cv_prog_cc_cross
15495
15496     
15497 fi
15498
15499   fi
15500   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
15501
15502   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
15503     for ac_func in sqrtf
15504 do
15505 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15506 echo "configure:15507: checking for $ac_func" >&5
15507 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15508   echo $ac_n "(cached) $ac_c" 1>&6
15509 else
15510   cat > conftest.$ac_ext <<EOF
15511 #line 15512 "configure"
15512 #include "confdefs.h"
15513 /* System header to define __stub macros and hopefully few prototypes,
15514     which can conflict with char $ac_func(); below.  */
15515 #include <assert.h>
15516 /* Override any gcc2 internal prototype to avoid an error.  */
15517 /* We use char because int might match the return type of a gcc2
15518     builtin and then its argument prototype would still apply.  */
15519 char $ac_func();
15520
15521 int main() {
15522
15523 /* The GNU C library defines this for functions which it implements
15524     to always fail with ENOSYS.  Some functions are actually named
15525     something starting with __ and the normal name is an alias.  */
15526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15527 choke me
15528 #else
15529 $ac_func();
15530 #endif
15531
15532 ; return 0; }
15533 EOF
15534 if { (eval echo configure:15535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15535   rm -rf conftest*
15536   eval "ac_cv_func_$ac_func=yes"
15537 else
15538   echo "configure: failed program was:" >&5
15539   cat conftest.$ac_ext >&5
15540   rm -rf conftest*
15541   eval "ac_cv_func_$ac_func=no"
15542 fi
15543 rm -f conftest*
15544 fi
15545
15546 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15547   echo "$ac_t""yes" 1>&6
15548     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15549   cat >> confdefs.h <<EOF
15550 #define $ac_tr_func 1
15551 EOF
15552  
15553 else
15554   echo "$ac_t""no" 1>&6
15555 fi
15556 done
15557     
15558   else
15559     
15560   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15561 echo "configure:15562: checking for _sqrtf declaration" >&5
15562   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
15563     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
15564   echo $ac_n "(cached) $ac_c" 1>&6
15565 else
15566   
15567       
15568       ac_ext=C
15569 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15570 ac_cpp='$CXXCPP $CPPFLAGS'
15571 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15572 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15573 cross_compiling=$ac_cv_prog_cxx_cross
15574
15575       cat > conftest.$ac_ext <<EOF
15576 #line 15577 "configure"
15577 #include "confdefs.h"
15578 #include <math.h>
15579                       #ifdef HAVE_IEEEFP_H
15580                       #include <ieeefp.h>
15581                       #endif
15582                      
15583 int main() {
15584  _sqrtf(0);
15585 ; return 0; }
15586 EOF
15587 if { (eval echo configure:15588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15588   rm -rf conftest*
15589   glibcpp_cv_func__sqrtf_use=yes
15590 else
15591   echo "configure: failed program was:" >&5
15592   cat conftest.$ac_ext >&5
15593   rm -rf conftest*
15594   glibcpp_cv_func__sqrtf_use=no
15595 fi
15596 rm -f conftest*
15597       ac_ext=c
15598 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15599 ac_cpp='$CPP $CPPFLAGS'
15600 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15601 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15602 cross_compiling=$ac_cv_prog_cc_cross
15603
15604     
15605 fi
15606
15607   fi
15608   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
15609
15610     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
15611       for ac_func in _sqrtf
15612 do
15613 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15614 echo "configure:15615: checking for $ac_func" >&5
15615 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15616   echo $ac_n "(cached) $ac_c" 1>&6
15617 else
15618   cat > conftest.$ac_ext <<EOF
15619 #line 15620 "configure"
15620 #include "confdefs.h"
15621 /* System header to define __stub macros and hopefully few prototypes,
15622     which can conflict with char $ac_func(); below.  */
15623 #include <assert.h>
15624 /* Override any gcc2 internal prototype to avoid an error.  */
15625 /* We use char because int might match the return type of a gcc2
15626     builtin and then its argument prototype would still apply.  */
15627 char $ac_func();
15628
15629 int main() {
15630
15631 /* The GNU C library defines this for functions which it implements
15632     to always fail with ENOSYS.  Some functions are actually named
15633     something starting with __ and the normal name is an alias.  */
15634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15635 choke me
15636 #else
15637 $ac_func();
15638 #endif
15639
15640 ; return 0; }
15641 EOF
15642 if { (eval echo configure:15643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15643   rm -rf conftest*
15644   eval "ac_cv_func_$ac_func=yes"
15645 else
15646   echo "configure: failed program was:" >&5
15647   cat conftest.$ac_ext >&5
15648   rm -rf conftest*
15649   eval "ac_cv_func_$ac_func=no"
15650 fi
15651 rm -f conftest*
15652 fi
15653
15654 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15655   echo "$ac_t""yes" 1>&6
15656     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15657   cat >> confdefs.h <<EOF
15658 #define $ac_tr_func 1
15659 EOF
15660  
15661 else
15662   echo "$ac_t""no" 1>&6
15663 fi
15664 done
15665     
15666     fi
15667   fi
15668
15669   
15670   
15671   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15672 echo "configure:15673: checking for sincosf declaration" >&5
15673   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
15674     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
15675   echo $ac_n "(cached) $ac_c" 1>&6
15676 else
15677   
15678       
15679       ac_ext=C
15680 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15681 ac_cpp='$CXXCPP $CPPFLAGS'
15682 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15683 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15684 cross_compiling=$ac_cv_prog_cxx_cross
15685
15686       cat > conftest.$ac_ext <<EOF
15687 #line 15688 "configure"
15688 #include "confdefs.h"
15689 #include <math.h>
15690 int main() {
15691  sincosf(0, 0, 0);
15692 ; return 0; }
15693 EOF
15694 if { (eval echo configure:15695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15695   rm -rf conftest*
15696   glibcpp_cv_func_sincosf_use=yes
15697 else
15698   echo "configure: failed program was:" >&5
15699   cat conftest.$ac_ext >&5
15700   rm -rf conftest*
15701   glibcpp_cv_func_sincosf_use=no
15702 fi
15703 rm -f conftest*
15704       ac_ext=c
15705 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15706 ac_cpp='$CPP $CPPFLAGS'
15707 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15708 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15709 cross_compiling=$ac_cv_prog_cc_cross
15710
15711     
15712 fi
15713
15714   fi
15715   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
15716
15717   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
15718     for ac_func in sincosf
15719 do
15720 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15721 echo "configure:15722: checking for $ac_func" >&5
15722 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15723   echo $ac_n "(cached) $ac_c" 1>&6
15724 else
15725   cat > conftest.$ac_ext <<EOF
15726 #line 15727 "configure"
15727 #include "confdefs.h"
15728 /* System header to define __stub macros and hopefully few prototypes,
15729     which can conflict with char $ac_func(); below.  */
15730 #include <assert.h>
15731 /* Override any gcc2 internal prototype to avoid an error.  */
15732 /* We use char because int might match the return type of a gcc2
15733     builtin and then its argument prototype would still apply.  */
15734 char $ac_func();
15735
15736 int main() {
15737
15738 /* The GNU C library defines this for functions which it implements
15739     to always fail with ENOSYS.  Some functions are actually named
15740     something starting with __ and the normal name is an alias.  */
15741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15742 choke me
15743 #else
15744 $ac_func();
15745 #endif
15746
15747 ; return 0; }
15748 EOF
15749 if { (eval echo configure:15750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15750   rm -rf conftest*
15751   eval "ac_cv_func_$ac_func=yes"
15752 else
15753   echo "configure: failed program was:" >&5
15754   cat conftest.$ac_ext >&5
15755   rm -rf conftest*
15756   eval "ac_cv_func_$ac_func=no"
15757 fi
15758 rm -f conftest*
15759 fi
15760
15761 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15762   echo "$ac_t""yes" 1>&6
15763     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15764   cat >> confdefs.h <<EOF
15765 #define $ac_tr_func 1
15766 EOF
15767  
15768 else
15769   echo "$ac_t""no" 1>&6
15770 fi
15771 done
15772     
15773   else
15774     
15775   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15776 echo "configure:15777: checking for _sincosf declaration" >&5
15777   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
15778     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_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  _sincosf(0, 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__sincosf_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__sincosf_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__sincosf_use" 1>&6
15820
15821     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
15822       for ac_func in _sincosf
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     fi
15878   fi
15879
15880   
15881   
15882   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
15883 echo "configure:15884: checking for finitef declaration" >&5
15884   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
15885     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
15886   echo $ac_n "(cached) $ac_c" 1>&6
15887 else
15888   
15889       
15890       ac_ext=C
15891 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15892 ac_cpp='$CXXCPP $CPPFLAGS'
15893 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15894 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15895 cross_compiling=$ac_cv_prog_cxx_cross
15896
15897       cat > conftest.$ac_ext <<EOF
15898 #line 15899 "configure"
15899 #include "confdefs.h"
15900 #include <math.h>
15901                       #ifdef HAVE_IEEEFP_H
15902                       #include <ieeefp.h>
15903                       #endif
15904                      
15905 int main() {
15906  finitef(0);
15907 ; return 0; }
15908 EOF
15909 if { (eval echo configure:15910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15910   rm -rf conftest*
15911   glibcpp_cv_func_finitef_use=yes
15912 else
15913   echo "configure: failed program was:" >&5
15914   cat conftest.$ac_ext >&5
15915   rm -rf conftest*
15916   glibcpp_cv_func_finitef_use=no
15917 fi
15918 rm -f conftest*
15919       ac_ext=c
15920 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15921 ac_cpp='$CPP $CPPFLAGS'
15922 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15923 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15924 cross_compiling=$ac_cv_prog_cc_cross
15925
15926     
15927 fi
15928
15929   fi
15930   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
15931
15932   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
15933     for ac_func in finitef
15934 do
15935 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15936 echo "configure:15937: checking for $ac_func" >&5
15937 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15938   echo $ac_n "(cached) $ac_c" 1>&6
15939 else
15940   cat > conftest.$ac_ext <<EOF
15941 #line 15942 "configure"
15942 #include "confdefs.h"
15943 /* System header to define __stub macros and hopefully few prototypes,
15944     which can conflict with char $ac_func(); below.  */
15945 #include <assert.h>
15946 /* Override any gcc2 internal prototype to avoid an error.  */
15947 /* We use char because int might match the return type of a gcc2
15948     builtin and then its argument prototype would still apply.  */
15949 char $ac_func();
15950
15951 int main() {
15952
15953 /* The GNU C library defines this for functions which it implements
15954     to always fail with ENOSYS.  Some functions are actually named
15955     something starting with __ and the normal name is an alias.  */
15956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15957 choke me
15958 #else
15959 $ac_func();
15960 #endif
15961
15962 ; return 0; }
15963 EOF
15964 if { (eval echo configure:15965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15965   rm -rf conftest*
15966   eval "ac_cv_func_$ac_func=yes"
15967 else
15968   echo "configure: failed program was:" >&5
15969   cat conftest.$ac_ext >&5
15970   rm -rf conftest*
15971   eval "ac_cv_func_$ac_func=no"
15972 fi
15973 rm -f conftest*
15974 fi
15975
15976 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15977   echo "$ac_t""yes" 1>&6
15978     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15979   cat >> confdefs.h <<EOF
15980 #define $ac_tr_func 1
15981 EOF
15982  
15983 else
15984   echo "$ac_t""no" 1>&6
15985 fi
15986 done
15987     
15988   else
15989     
15990   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
15991 echo "configure:15992: checking for _finitef declaration" >&5
15992   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
15993     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
15994   echo $ac_n "(cached) $ac_c" 1>&6
15995 else
15996   
15997       
15998       ac_ext=C
15999 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16000 ac_cpp='$CXXCPP $CPPFLAGS'
16001 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16002 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16003 cross_compiling=$ac_cv_prog_cxx_cross
16004
16005       cat > conftest.$ac_ext <<EOF
16006 #line 16007 "configure"
16007 #include "confdefs.h"
16008 #include <math.h>
16009                       #ifdef HAVE_IEEEFP_H
16010                       #include <ieeefp.h>
16011                       #endif
16012                      
16013 int main() {
16014  _finitef(0);
16015 ; return 0; }
16016 EOF
16017 if { (eval echo configure:16018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16018   rm -rf conftest*
16019   glibcpp_cv_func__finitef_use=yes
16020 else
16021   echo "configure: failed program was:" >&5
16022   cat conftest.$ac_ext >&5
16023   rm -rf conftest*
16024   glibcpp_cv_func__finitef_use=no
16025 fi
16026 rm -f conftest*
16027       ac_ext=c
16028 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16029 ac_cpp='$CPP $CPPFLAGS'
16030 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16031 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16032 cross_compiling=$ac_cv_prog_cc_cross
16033
16034     
16035 fi
16036
16037   fi
16038   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
16039
16040     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
16041       for ac_func in _finitef
16042 do
16043 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16044 echo "configure:16045: checking for $ac_func" >&5
16045 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16046   echo $ac_n "(cached) $ac_c" 1>&6
16047 else
16048   cat > conftest.$ac_ext <<EOF
16049 #line 16050 "configure"
16050 #include "confdefs.h"
16051 /* System header to define __stub macros and hopefully few prototypes,
16052     which can conflict with char $ac_func(); below.  */
16053 #include <assert.h>
16054 /* Override any gcc2 internal prototype to avoid an error.  */
16055 /* We use char because int might match the return type of a gcc2
16056     builtin and then its argument prototype would still apply.  */
16057 char $ac_func();
16058
16059 int main() {
16060
16061 /* The GNU C library defines this for functions which it implements
16062     to always fail with ENOSYS.  Some functions are actually named
16063     something starting with __ and the normal name is an alias.  */
16064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16065 choke me
16066 #else
16067 $ac_func();
16068 #endif
16069
16070 ; return 0; }
16071 EOF
16072 if { (eval echo configure:16073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16073   rm -rf conftest*
16074   eval "ac_cv_func_$ac_func=yes"
16075 else
16076   echo "configure: failed program was:" >&5
16077   cat conftest.$ac_ext >&5
16078   rm -rf conftest*
16079   eval "ac_cv_func_$ac_func=no"
16080 fi
16081 rm -f conftest*
16082 fi
16083
16084 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16085   echo "$ac_t""yes" 1>&6
16086     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16087   cat >> confdefs.h <<EOF
16088 #define $ac_tr_func 1
16089 EOF
16090  
16091 else
16092   echo "$ac_t""no" 1>&6
16093 fi
16094 done
16095     
16096     fi
16097   fi
16098
16099
16100     
16101   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16102 echo "configure:16103: checking for long double trig functions" >&5
16103   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
16104   echo $ac_n "(cached) $ac_c" 1>&6
16105 else
16106   
16107     
16108     ac_ext=C
16109 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16110 ac_cpp='$CXXCPP $CPPFLAGS'
16111 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16112 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16113 cross_compiling=$ac_cv_prog_cxx_cross
16114
16115     cat > conftest.$ac_ext <<EOF
16116 #line 16117 "configure"
16117 #include "confdefs.h"
16118 #include <math.h>
16119 int main() {
16120  `for x in acosl asinl atanl \
16121                                           cosl sinl tanl \
16122                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
16123 ; return 0; }
16124 EOF
16125 if { (eval echo configure:16126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16126   rm -rf conftest*
16127   glibcpp_cv_func_long_double_trig_use=yes
16128 else
16129   echo "configure: failed program was:" >&5
16130   cat conftest.$ac_ext >&5
16131   rm -rf conftest*
16132   glibcpp_cv_func_long_double_trig_use=no
16133 fi
16134 rm -f conftest*
16135     ac_ext=c
16136 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16137 ac_cpp='$CPP $CPPFLAGS'
16138 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16139 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16140 cross_compiling=$ac_cv_prog_cc_cross
16141
16142 fi
16143
16144   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
16145   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
16146     for ac_func in acosl asinl atanl \
16147                                           cosl sinl tanl \
16148                                           coshl sinhl tanhl
16149 do
16150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16151 echo "configure:16152: checking for $ac_func" >&5
16152 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16153   echo $ac_n "(cached) $ac_c" 1>&6
16154 else
16155   cat > conftest.$ac_ext <<EOF
16156 #line 16157 "configure"
16157 #include "confdefs.h"
16158 /* System header to define __stub macros and hopefully few prototypes,
16159     which can conflict with char $ac_func(); below.  */
16160 #include <assert.h>
16161 /* Override any gcc2 internal prototype to avoid an error.  */
16162 /* We use char because int might match the return type of a gcc2
16163     builtin and then its argument prototype would still apply.  */
16164 char $ac_func();
16165
16166 int main() {
16167
16168 /* The GNU C library defines this for functions which it implements
16169     to always fail with ENOSYS.  Some functions are actually named
16170     something starting with __ and the normal name is an alias.  */
16171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16172 choke me
16173 #else
16174 $ac_func();
16175 #endif
16176
16177 ; return 0; }
16178 EOF
16179 if { (eval echo configure:16180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16180   rm -rf conftest*
16181   eval "ac_cv_func_$ac_func=yes"
16182 else
16183   echo "configure: failed program was:" >&5
16184   cat conftest.$ac_ext >&5
16185   rm -rf conftest*
16186   eval "ac_cv_func_$ac_func=no"
16187 fi
16188 rm -f conftest*
16189 fi
16190
16191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16192   echo "$ac_t""yes" 1>&6
16193     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16194   cat >> confdefs.h <<EOF
16195 #define $ac_tr_func 1
16196 EOF
16197  
16198 else
16199   echo "$ac_t""no" 1>&6
16200 fi
16201 done
16202
16203   fi
16204
16205   
16206   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16207 echo "configure:16208: checking for long double round functions" >&5
16208   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
16209   echo $ac_n "(cached) $ac_c" 1>&6
16210 else
16211   
16212     
16213     ac_ext=C
16214 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16215 ac_cpp='$CXXCPP $CPPFLAGS'
16216 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16217 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16218 cross_compiling=$ac_cv_prog_cxx_cross
16219
16220     cat > conftest.$ac_ext <<EOF
16221 #line 16222 "configure"
16222 #include "confdefs.h"
16223 #include <math.h>
16224 int main() {
16225  `for x in ceill floorl; do echo "$x (0);"; done` 
16226 ; return 0; }
16227 EOF
16228 if { (eval echo configure:16229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16229   rm -rf conftest*
16230   glibcpp_cv_func_long_double_round_use=yes
16231 else
16232   echo "configure: failed program was:" >&5
16233   cat conftest.$ac_ext >&5
16234   rm -rf conftest*
16235   glibcpp_cv_func_long_double_round_use=no
16236 fi
16237 rm -f conftest*
16238     ac_ext=c
16239 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16240 ac_cpp='$CPP $CPPFLAGS'
16241 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16242 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16243 cross_compiling=$ac_cv_prog_cc_cross
16244
16245 fi
16246
16247   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
16248   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
16249     for ac_func in ceill floorl
16250 do
16251 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16252 echo "configure:16253: checking for $ac_func" >&5
16253 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16254   echo $ac_n "(cached) $ac_c" 1>&6
16255 else
16256   cat > conftest.$ac_ext <<EOF
16257 #line 16258 "configure"
16258 #include "confdefs.h"
16259 /* System header to define __stub macros and hopefully few prototypes,
16260     which can conflict with char $ac_func(); below.  */
16261 #include <assert.h>
16262 /* Override any gcc2 internal prototype to avoid an error.  */
16263 /* We use char because int might match the return type of a gcc2
16264     builtin and then its argument prototype would still apply.  */
16265 char $ac_func();
16266
16267 int main() {
16268
16269 /* The GNU C library defines this for functions which it implements
16270     to always fail with ENOSYS.  Some functions are actually named
16271     something starting with __ and the normal name is an alias.  */
16272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16273 choke me
16274 #else
16275 $ac_func();
16276 #endif
16277
16278 ; return 0; }
16279 EOF
16280 if { (eval echo configure:16281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16281   rm -rf conftest*
16282   eval "ac_cv_func_$ac_func=yes"
16283 else
16284   echo "configure: failed program was:" >&5
16285   cat conftest.$ac_ext >&5
16286   rm -rf conftest*
16287   eval "ac_cv_func_$ac_func=no"
16288 fi
16289 rm -f conftest*
16290 fi
16291
16292 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16293   echo "$ac_t""yes" 1>&6
16294     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16295   cat >> confdefs.h <<EOF
16296 #define $ac_tr_func 1
16297 EOF
16298  
16299 else
16300   echo "$ac_t""no" 1>&6
16301 fi
16302 done
16303
16304   fi
16305
16306   
16307   
16308   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16309 echo "configure:16310: checking for isnanl declaration" >&5
16310   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
16311     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
16312   echo $ac_n "(cached) $ac_c" 1>&6
16313 else
16314   
16315       
16316       ac_ext=C
16317 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16318 ac_cpp='$CXXCPP $CPPFLAGS'
16319 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16320 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16321 cross_compiling=$ac_cv_prog_cxx_cross
16322
16323       cat > conftest.$ac_ext <<EOF
16324 #line 16325 "configure"
16325 #include "confdefs.h"
16326 #include <math.h>
16327                       #ifdef HAVE_IEEEFP_H
16328                       #include <ieeefp.h>
16329                       #endif
16330                      
16331 int main() {
16332  isnanl(0);
16333 ; return 0; }
16334 EOF
16335 if { (eval echo configure:16336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16336   rm -rf conftest*
16337   glibcpp_cv_func_isnanl_use=yes
16338 else
16339   echo "configure: failed program was:" >&5
16340   cat conftest.$ac_ext >&5
16341   rm -rf conftest*
16342   glibcpp_cv_func_isnanl_use=no
16343 fi
16344 rm -f conftest*
16345       ac_ext=c
16346 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16347 ac_cpp='$CPP $CPPFLAGS'
16348 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16349 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16350 cross_compiling=$ac_cv_prog_cc_cross
16351
16352     
16353 fi
16354
16355   fi
16356   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
16357
16358   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
16359     for ac_func in isnanl
16360 do
16361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16362 echo "configure:16363: checking for $ac_func" >&5
16363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16364   echo $ac_n "(cached) $ac_c" 1>&6
16365 else
16366   cat > conftest.$ac_ext <<EOF
16367 #line 16368 "configure"
16368 #include "confdefs.h"
16369 /* System header to define __stub macros and hopefully few prototypes,
16370     which can conflict with char $ac_func(); below.  */
16371 #include <assert.h>
16372 /* Override any gcc2 internal prototype to avoid an error.  */
16373 /* We use char because int might match the return type of a gcc2
16374     builtin and then its argument prototype would still apply.  */
16375 char $ac_func();
16376
16377 int main() {
16378
16379 /* The GNU C library defines this for functions which it implements
16380     to always fail with ENOSYS.  Some functions are actually named
16381     something starting with __ and the normal name is an alias.  */
16382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16383 choke me
16384 #else
16385 $ac_func();
16386 #endif
16387
16388 ; return 0; }
16389 EOF
16390 if { (eval echo configure:16391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16391   rm -rf conftest*
16392   eval "ac_cv_func_$ac_func=yes"
16393 else
16394   echo "configure: failed program was:" >&5
16395   cat conftest.$ac_ext >&5
16396   rm -rf conftest*
16397   eval "ac_cv_func_$ac_func=no"
16398 fi
16399 rm -f conftest*
16400 fi
16401
16402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16403   echo "$ac_t""yes" 1>&6
16404     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16405   cat >> confdefs.h <<EOF
16406 #define $ac_tr_func 1
16407 EOF
16408  
16409 else
16410   echo "$ac_t""no" 1>&6
16411 fi
16412 done
16413     
16414   else
16415     
16416   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16417 echo "configure:16418: checking for _isnanl declaration" >&5
16418   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
16419     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
16420   echo $ac_n "(cached) $ac_c" 1>&6
16421 else
16422   
16423       
16424       ac_ext=C
16425 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16426 ac_cpp='$CXXCPP $CPPFLAGS'
16427 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16428 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16429 cross_compiling=$ac_cv_prog_cxx_cross
16430
16431       cat > conftest.$ac_ext <<EOF
16432 #line 16433 "configure"
16433 #include "confdefs.h"
16434 #include <math.h>
16435                       #ifdef HAVE_IEEEFP_H
16436                       #include <ieeefp.h>
16437                       #endif
16438                      
16439 int main() {
16440  _isnanl(0);
16441 ; return 0; }
16442 EOF
16443 if { (eval echo configure:16444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16444   rm -rf conftest*
16445   glibcpp_cv_func__isnanl_use=yes
16446 else
16447   echo "configure: failed program was:" >&5
16448   cat conftest.$ac_ext >&5
16449   rm -rf conftest*
16450   glibcpp_cv_func__isnanl_use=no
16451 fi
16452 rm -f conftest*
16453       ac_ext=c
16454 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16455 ac_cpp='$CPP $CPPFLAGS'
16456 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16457 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16458 cross_compiling=$ac_cv_prog_cc_cross
16459
16460     
16461 fi
16462
16463   fi
16464   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
16465
16466     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
16467       for ac_func in _isnanl
16468 do
16469 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16470 echo "configure:16471: checking for $ac_func" >&5
16471 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16472   echo $ac_n "(cached) $ac_c" 1>&6
16473 else
16474   cat > conftest.$ac_ext <<EOF
16475 #line 16476 "configure"
16476 #include "confdefs.h"
16477 /* System header to define __stub macros and hopefully few prototypes,
16478     which can conflict with char $ac_func(); below.  */
16479 #include <assert.h>
16480 /* Override any gcc2 internal prototype to avoid an error.  */
16481 /* We use char because int might match the return type of a gcc2
16482     builtin and then its argument prototype would still apply.  */
16483 char $ac_func();
16484
16485 int main() {
16486
16487 /* The GNU C library defines this for functions which it implements
16488     to always fail with ENOSYS.  Some functions are actually named
16489     something starting with __ and the normal name is an alias.  */
16490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16491 choke me
16492 #else
16493 $ac_func();
16494 #endif
16495
16496 ; return 0; }
16497 EOF
16498 if { (eval echo configure:16499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16499   rm -rf conftest*
16500   eval "ac_cv_func_$ac_func=yes"
16501 else
16502   echo "configure: failed program was:" >&5
16503   cat conftest.$ac_ext >&5
16504   rm -rf conftest*
16505   eval "ac_cv_func_$ac_func=no"
16506 fi
16507 rm -f conftest*
16508 fi
16509
16510 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16511   echo "$ac_t""yes" 1>&6
16512     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16513   cat >> confdefs.h <<EOF
16514 #define $ac_tr_func 1
16515 EOF
16516  
16517 else
16518   echo "$ac_t""no" 1>&6
16519 fi
16520 done
16521     
16522     fi
16523   fi
16524
16525   
16526   
16527   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16528 echo "configure:16529: checking for isinfl declaration" >&5
16529   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
16530     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
16531   echo $ac_n "(cached) $ac_c" 1>&6
16532 else
16533   
16534       
16535       ac_ext=C
16536 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16537 ac_cpp='$CXXCPP $CPPFLAGS'
16538 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16539 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16540 cross_compiling=$ac_cv_prog_cxx_cross
16541
16542       cat > conftest.$ac_ext <<EOF
16543 #line 16544 "configure"
16544 #include "confdefs.h"
16545 #include <math.h>
16546                       #ifdef HAVE_IEEEFP_H
16547                       #include <ieeefp.h>
16548                       #endif
16549                      
16550 int main() {
16551  isinfl(0);
16552 ; return 0; }
16553 EOF
16554 if { (eval echo configure:16555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16555   rm -rf conftest*
16556   glibcpp_cv_func_isinfl_use=yes
16557 else
16558   echo "configure: failed program was:" >&5
16559   cat conftest.$ac_ext >&5
16560   rm -rf conftest*
16561   glibcpp_cv_func_isinfl_use=no
16562 fi
16563 rm -f conftest*
16564       ac_ext=c
16565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16566 ac_cpp='$CPP $CPPFLAGS'
16567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16568 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16569 cross_compiling=$ac_cv_prog_cc_cross
16570
16571     
16572 fi
16573
16574   fi
16575   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
16576
16577   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
16578     for ac_func in isinfl
16579 do
16580 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16581 echo "configure:16582: checking for $ac_func" >&5
16582 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16583   echo $ac_n "(cached) $ac_c" 1>&6
16584 else
16585   cat > conftest.$ac_ext <<EOF
16586 #line 16587 "configure"
16587 #include "confdefs.h"
16588 /* System header to define __stub macros and hopefully few prototypes,
16589     which can conflict with char $ac_func(); below.  */
16590 #include <assert.h>
16591 /* Override any gcc2 internal prototype to avoid an error.  */
16592 /* We use char because int might match the return type of a gcc2
16593     builtin and then its argument prototype would still apply.  */
16594 char $ac_func();
16595
16596 int main() {
16597
16598 /* The GNU C library defines this for functions which it implements
16599     to always fail with ENOSYS.  Some functions are actually named
16600     something starting with __ and the normal name is an alias.  */
16601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16602 choke me
16603 #else
16604 $ac_func();
16605 #endif
16606
16607 ; return 0; }
16608 EOF
16609 if { (eval echo configure:16610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16610   rm -rf conftest*
16611   eval "ac_cv_func_$ac_func=yes"
16612 else
16613   echo "configure: failed program was:" >&5
16614   cat conftest.$ac_ext >&5
16615   rm -rf conftest*
16616   eval "ac_cv_func_$ac_func=no"
16617 fi
16618 rm -f conftest*
16619 fi
16620
16621 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16622   echo "$ac_t""yes" 1>&6
16623     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16624   cat >> confdefs.h <<EOF
16625 #define $ac_tr_func 1
16626 EOF
16627  
16628 else
16629   echo "$ac_t""no" 1>&6
16630 fi
16631 done
16632     
16633   else
16634     
16635   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16636 echo "configure:16637: checking for _isinfl declaration" >&5
16637   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
16638     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
16639   echo $ac_n "(cached) $ac_c" 1>&6
16640 else
16641   
16642       
16643       ac_ext=C
16644 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16645 ac_cpp='$CXXCPP $CPPFLAGS'
16646 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16647 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16648 cross_compiling=$ac_cv_prog_cxx_cross
16649
16650       cat > conftest.$ac_ext <<EOF
16651 #line 16652 "configure"
16652 #include "confdefs.h"
16653 #include <math.h>
16654                       #ifdef HAVE_IEEEFP_H
16655                       #include <ieeefp.h>
16656                       #endif
16657                      
16658 int main() {
16659  _isinfl(0);
16660 ; return 0; }
16661 EOF
16662 if { (eval echo configure:16663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16663   rm -rf conftest*
16664   glibcpp_cv_func__isinfl_use=yes
16665 else
16666   echo "configure: failed program was:" >&5
16667   cat conftest.$ac_ext >&5
16668   rm -rf conftest*
16669   glibcpp_cv_func__isinfl_use=no
16670 fi
16671 rm -f conftest*
16672       ac_ext=c
16673 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16674 ac_cpp='$CPP $CPPFLAGS'
16675 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16676 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16677 cross_compiling=$ac_cv_prog_cc_cross
16678
16679     
16680 fi
16681
16682   fi
16683   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
16684
16685     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
16686       for ac_func in _isinfl
16687 do
16688 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16689 echo "configure:16690: checking for $ac_func" >&5
16690 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16691   echo $ac_n "(cached) $ac_c" 1>&6
16692 else
16693   cat > conftest.$ac_ext <<EOF
16694 #line 16695 "configure"
16695 #include "confdefs.h"
16696 /* System header to define __stub macros and hopefully few prototypes,
16697     which can conflict with char $ac_func(); below.  */
16698 #include <assert.h>
16699 /* Override any gcc2 internal prototype to avoid an error.  */
16700 /* We use char because int might match the return type of a gcc2
16701     builtin and then its argument prototype would still apply.  */
16702 char $ac_func();
16703
16704 int main() {
16705
16706 /* The GNU C library defines this for functions which it implements
16707     to always fail with ENOSYS.  Some functions are actually named
16708     something starting with __ and the normal name is an alias.  */
16709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16710 choke me
16711 #else
16712 $ac_func();
16713 #endif
16714
16715 ; return 0; }
16716 EOF
16717 if { (eval echo configure:16718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16718   rm -rf conftest*
16719   eval "ac_cv_func_$ac_func=yes"
16720 else
16721   echo "configure: failed program was:" >&5
16722   cat conftest.$ac_ext >&5
16723   rm -rf conftest*
16724   eval "ac_cv_func_$ac_func=no"
16725 fi
16726 rm -f conftest*
16727 fi
16728
16729 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16730   echo "$ac_t""yes" 1>&6
16731     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16732   cat >> confdefs.h <<EOF
16733 #define $ac_tr_func 1
16734 EOF
16735  
16736 else
16737   echo "$ac_t""no" 1>&6
16738 fi
16739 done
16740     
16741     fi
16742   fi
16743
16744   
16745   
16746   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16747 echo "configure:16748: checking for copysignl declaration" >&5
16748   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
16749     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
16750   echo $ac_n "(cached) $ac_c" 1>&6
16751 else
16752   
16753       
16754       ac_ext=C
16755 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16756 ac_cpp='$CXXCPP $CPPFLAGS'
16757 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16758 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16759 cross_compiling=$ac_cv_prog_cxx_cross
16760
16761       cat > conftest.$ac_ext <<EOF
16762 #line 16763 "configure"
16763 #include "confdefs.h"
16764 #include <math.h>
16765 int main() {
16766  copysignl(0, 0);
16767 ; return 0; }
16768 EOF
16769 if { (eval echo configure:16770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16770   rm -rf conftest*
16771   glibcpp_cv_func_copysignl_use=yes
16772 else
16773   echo "configure: failed program was:" >&5
16774   cat conftest.$ac_ext >&5
16775   rm -rf conftest*
16776   glibcpp_cv_func_copysignl_use=no
16777 fi
16778 rm -f conftest*
16779       ac_ext=c
16780 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16781 ac_cpp='$CPP $CPPFLAGS'
16782 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16783 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16784 cross_compiling=$ac_cv_prog_cc_cross
16785
16786     
16787 fi
16788
16789   fi
16790   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
16791
16792   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
16793     for ac_func in copysignl
16794 do
16795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16796 echo "configure:16797: checking for $ac_func" >&5
16797 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16798   echo $ac_n "(cached) $ac_c" 1>&6
16799 else
16800   cat > conftest.$ac_ext <<EOF
16801 #line 16802 "configure"
16802 #include "confdefs.h"
16803 /* System header to define __stub macros and hopefully few prototypes,
16804     which can conflict with char $ac_func(); below.  */
16805 #include <assert.h>
16806 /* Override any gcc2 internal prototype to avoid an error.  */
16807 /* We use char because int might match the return type of a gcc2
16808     builtin and then its argument prototype would still apply.  */
16809 char $ac_func();
16810
16811 int main() {
16812
16813 /* The GNU C library defines this for functions which it implements
16814     to always fail with ENOSYS.  Some functions are actually named
16815     something starting with __ and the normal name is an alias.  */
16816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16817 choke me
16818 #else
16819 $ac_func();
16820 #endif
16821
16822 ; return 0; }
16823 EOF
16824 if { (eval echo configure:16825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16825   rm -rf conftest*
16826   eval "ac_cv_func_$ac_func=yes"
16827 else
16828   echo "configure: failed program was:" >&5
16829   cat conftest.$ac_ext >&5
16830   rm -rf conftest*
16831   eval "ac_cv_func_$ac_func=no"
16832 fi
16833 rm -f conftest*
16834 fi
16835
16836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16837   echo "$ac_t""yes" 1>&6
16838     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16839   cat >> confdefs.h <<EOF
16840 #define $ac_tr_func 1
16841 EOF
16842  
16843 else
16844   echo "$ac_t""no" 1>&6
16845 fi
16846 done
16847     
16848   else
16849     
16850   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
16851 echo "configure:16852: checking for _copysignl declaration" >&5
16852   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
16853     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
16854   echo $ac_n "(cached) $ac_c" 1>&6
16855 else
16856   
16857       
16858       ac_ext=C
16859 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16860 ac_cpp='$CXXCPP $CPPFLAGS'
16861 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16862 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16863 cross_compiling=$ac_cv_prog_cxx_cross
16864
16865       cat > conftest.$ac_ext <<EOF
16866 #line 16867 "configure"
16867 #include "confdefs.h"
16868 #include <math.h>
16869 int main() {
16870  _copysignl(0, 0);
16871 ; return 0; }
16872 EOF
16873 if { (eval echo configure:16874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16874   rm -rf conftest*
16875   glibcpp_cv_func__copysignl_use=yes
16876 else
16877   echo "configure: failed program was:" >&5
16878   cat conftest.$ac_ext >&5
16879   rm -rf conftest*
16880   glibcpp_cv_func__copysignl_use=no
16881 fi
16882 rm -f conftest*
16883       ac_ext=c
16884 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16885 ac_cpp='$CPP $CPPFLAGS'
16886 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16887 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16888 cross_compiling=$ac_cv_prog_cc_cross
16889
16890     
16891 fi
16892
16893   fi
16894   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
16895
16896     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
16897       for ac_func in _copysignl
16898 do
16899 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16900 echo "configure:16901: checking for $ac_func" >&5
16901 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16902   echo $ac_n "(cached) $ac_c" 1>&6
16903 else
16904   cat > conftest.$ac_ext <<EOF
16905 #line 16906 "configure"
16906 #include "confdefs.h"
16907 /* System header to define __stub macros and hopefully few prototypes,
16908     which can conflict with char $ac_func(); below.  */
16909 #include <assert.h>
16910 /* Override any gcc2 internal prototype to avoid an error.  */
16911 /* We use char because int might match the return type of a gcc2
16912     builtin and then its argument prototype would still apply.  */
16913 char $ac_func();
16914
16915 int main() {
16916
16917 /* The GNU C library defines this for functions which it implements
16918     to always fail with ENOSYS.  Some functions are actually named
16919     something starting with __ and the normal name is an alias.  */
16920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16921 choke me
16922 #else
16923 $ac_func();
16924 #endif
16925
16926 ; return 0; }
16927 EOF
16928 if { (eval echo configure:16929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16929   rm -rf conftest*
16930   eval "ac_cv_func_$ac_func=yes"
16931 else
16932   echo "configure: failed program was:" >&5
16933   cat conftest.$ac_ext >&5
16934   rm -rf conftest*
16935   eval "ac_cv_func_$ac_func=no"
16936 fi
16937 rm -f conftest*
16938 fi
16939
16940 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16941   echo "$ac_t""yes" 1>&6
16942     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16943   cat >> confdefs.h <<EOF
16944 #define $ac_tr_func 1
16945 EOF
16946  
16947 else
16948   echo "$ac_t""no" 1>&6
16949 fi
16950 done
16951     
16952     fi
16953   fi
16954
16955   
16956   
16957   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
16958 echo "configure:16959: checking for atan2l declaration" >&5
16959   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
16960     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
16961   echo $ac_n "(cached) $ac_c" 1>&6
16962 else
16963   
16964       
16965       ac_ext=C
16966 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16967 ac_cpp='$CXXCPP $CPPFLAGS'
16968 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16969 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16970 cross_compiling=$ac_cv_prog_cxx_cross
16971
16972       cat > conftest.$ac_ext <<EOF
16973 #line 16974 "configure"
16974 #include "confdefs.h"
16975 #include <math.h>
16976 int main() {
16977  atan2l(0, 0);
16978 ; return 0; }
16979 EOF
16980 if { (eval echo configure:16981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16981   rm -rf conftest*
16982   glibcpp_cv_func_atan2l_use=yes
16983 else
16984   echo "configure: failed program was:" >&5
16985   cat conftest.$ac_ext >&5
16986   rm -rf conftest*
16987   glibcpp_cv_func_atan2l_use=no
16988 fi
16989 rm -f conftest*
16990       ac_ext=c
16991 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16992 ac_cpp='$CPP $CPPFLAGS'
16993 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16994 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16995 cross_compiling=$ac_cv_prog_cc_cross
16996
16997     
16998 fi
16999
17000   fi
17001   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
17002
17003   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
17004     for ac_func in atan2l
17005 do
17006 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17007 echo "configure:17008: checking for $ac_func" >&5
17008 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17009   echo $ac_n "(cached) $ac_c" 1>&6
17010 else
17011   cat > conftest.$ac_ext <<EOF
17012 #line 17013 "configure"
17013 #include "confdefs.h"
17014 /* System header to define __stub macros and hopefully few prototypes,
17015     which can conflict with char $ac_func(); below.  */
17016 #include <assert.h>
17017 /* Override any gcc2 internal prototype to avoid an error.  */
17018 /* We use char because int might match the return type of a gcc2
17019     builtin and then its argument prototype would still apply.  */
17020 char $ac_func();
17021
17022 int main() {
17023
17024 /* The GNU C library defines this for functions which it implements
17025     to always fail with ENOSYS.  Some functions are actually named
17026     something starting with __ and the normal name is an alias.  */
17027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17028 choke me
17029 #else
17030 $ac_func();
17031 #endif
17032
17033 ; return 0; }
17034 EOF
17035 if { (eval echo configure:17036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17036   rm -rf conftest*
17037   eval "ac_cv_func_$ac_func=yes"
17038 else
17039   echo "configure: failed program was:" >&5
17040   cat conftest.$ac_ext >&5
17041   rm -rf conftest*
17042   eval "ac_cv_func_$ac_func=no"
17043 fi
17044 rm -f conftest*
17045 fi
17046
17047 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17048   echo "$ac_t""yes" 1>&6
17049     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17050   cat >> confdefs.h <<EOF
17051 #define $ac_tr_func 1
17052 EOF
17053  
17054 else
17055   echo "$ac_t""no" 1>&6
17056 fi
17057 done
17058     
17059   else
17060     
17061   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17062 echo "configure:17063: checking for _atan2l declaration" >&5
17063   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
17064     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
17065   echo $ac_n "(cached) $ac_c" 1>&6
17066 else
17067   
17068       
17069       ac_ext=C
17070 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17071 ac_cpp='$CXXCPP $CPPFLAGS'
17072 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17073 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17074 cross_compiling=$ac_cv_prog_cxx_cross
17075
17076       cat > conftest.$ac_ext <<EOF
17077 #line 17078 "configure"
17078 #include "confdefs.h"
17079 #include <math.h>
17080 int main() {
17081  _atan2l(0, 0);
17082 ; return 0; }
17083 EOF
17084 if { (eval echo configure:17085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17085   rm -rf conftest*
17086   glibcpp_cv_func__atan2l_use=yes
17087 else
17088   echo "configure: failed program was:" >&5
17089   cat conftest.$ac_ext >&5
17090   rm -rf conftest*
17091   glibcpp_cv_func__atan2l_use=no
17092 fi
17093 rm -f conftest*
17094       ac_ext=c
17095 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17096 ac_cpp='$CPP $CPPFLAGS'
17097 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17098 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17099 cross_compiling=$ac_cv_prog_cc_cross
17100
17101     
17102 fi
17103
17104   fi
17105   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
17106
17107     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
17108       for ac_func in _atan2l
17109 do
17110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17111 echo "configure:17112: checking for $ac_func" >&5
17112 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17113   echo $ac_n "(cached) $ac_c" 1>&6
17114 else
17115   cat > conftest.$ac_ext <<EOF
17116 #line 17117 "configure"
17117 #include "confdefs.h"
17118 /* System header to define __stub macros and hopefully few prototypes,
17119     which can conflict with char $ac_func(); below.  */
17120 #include <assert.h>
17121 /* Override any gcc2 internal prototype to avoid an error.  */
17122 /* We use char because int might match the return type of a gcc2
17123     builtin and then its argument prototype would still apply.  */
17124 char $ac_func();
17125
17126 int main() {
17127
17128 /* The GNU C library defines this for functions which it implements
17129     to always fail with ENOSYS.  Some functions are actually named
17130     something starting with __ and the normal name is an alias.  */
17131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17132 choke me
17133 #else
17134 $ac_func();
17135 #endif
17136
17137 ; return 0; }
17138 EOF
17139 if { (eval echo configure:17140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17140   rm -rf conftest*
17141   eval "ac_cv_func_$ac_func=yes"
17142 else
17143   echo "configure: failed program was:" >&5
17144   cat conftest.$ac_ext >&5
17145   rm -rf conftest*
17146   eval "ac_cv_func_$ac_func=no"
17147 fi
17148 rm -f conftest*
17149 fi
17150
17151 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17152   echo "$ac_t""yes" 1>&6
17153     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17154   cat >> confdefs.h <<EOF
17155 #define $ac_tr_func 1
17156 EOF
17157  
17158 else
17159   echo "$ac_t""no" 1>&6
17160 fi
17161 done
17162     
17163     fi
17164   fi
17165
17166   
17167   
17168   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17169 echo "configure:17170: checking for expl declaration" >&5
17170   if test x${glibcpp_cv_func_expl_use+set} != xset; then
17171     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
17172   echo $ac_n "(cached) $ac_c" 1>&6
17173 else
17174   
17175       
17176       ac_ext=C
17177 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17178 ac_cpp='$CXXCPP $CPPFLAGS'
17179 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17180 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17181 cross_compiling=$ac_cv_prog_cxx_cross
17182
17183       cat > conftest.$ac_ext <<EOF
17184 #line 17185 "configure"
17185 #include "confdefs.h"
17186 #include <math.h>
17187                       #ifdef HAVE_IEEEFP_H
17188                       #include <ieeefp.h>
17189                       #endif
17190                      
17191 int main() {
17192  expl(0);
17193 ; return 0; }
17194 EOF
17195 if { (eval echo configure:17196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17196   rm -rf conftest*
17197   glibcpp_cv_func_expl_use=yes
17198 else
17199   echo "configure: failed program was:" >&5
17200   cat conftest.$ac_ext >&5
17201   rm -rf conftest*
17202   glibcpp_cv_func_expl_use=no
17203 fi
17204 rm -f conftest*
17205       ac_ext=c
17206 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17207 ac_cpp='$CPP $CPPFLAGS'
17208 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17209 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17210 cross_compiling=$ac_cv_prog_cc_cross
17211
17212     
17213 fi
17214
17215   fi
17216   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
17217
17218   if test x$glibcpp_cv_func_expl_use = x"yes"; then
17219     for ac_func in expl
17220 do
17221 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17222 echo "configure:17223: checking for $ac_func" >&5
17223 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17224   echo $ac_n "(cached) $ac_c" 1>&6
17225 else
17226   cat > conftest.$ac_ext <<EOF
17227 #line 17228 "configure"
17228 #include "confdefs.h"
17229 /* System header to define __stub macros and hopefully few prototypes,
17230     which can conflict with char $ac_func(); below.  */
17231 #include <assert.h>
17232 /* Override any gcc2 internal prototype to avoid an error.  */
17233 /* We use char because int might match the return type of a gcc2
17234     builtin and then its argument prototype would still apply.  */
17235 char $ac_func();
17236
17237 int main() {
17238
17239 /* The GNU C library defines this for functions which it implements
17240     to always fail with ENOSYS.  Some functions are actually named
17241     something starting with __ and the normal name is an alias.  */
17242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17243 choke me
17244 #else
17245 $ac_func();
17246 #endif
17247
17248 ; return 0; }
17249 EOF
17250 if { (eval echo configure:17251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17251   rm -rf conftest*
17252   eval "ac_cv_func_$ac_func=yes"
17253 else
17254   echo "configure: failed program was:" >&5
17255   cat conftest.$ac_ext >&5
17256   rm -rf conftest*
17257   eval "ac_cv_func_$ac_func=no"
17258 fi
17259 rm -f conftest*
17260 fi
17261
17262 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17263   echo "$ac_t""yes" 1>&6
17264     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17265   cat >> confdefs.h <<EOF
17266 #define $ac_tr_func 1
17267 EOF
17268  
17269 else
17270   echo "$ac_t""no" 1>&6
17271 fi
17272 done
17273     
17274   else
17275     
17276   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17277 echo "configure:17278: checking for _expl declaration" >&5
17278   if test x${glibcpp_cv_func__expl_use+set} != xset; then
17279     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
17280   echo $ac_n "(cached) $ac_c" 1>&6
17281 else
17282   
17283       
17284       ac_ext=C
17285 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17286 ac_cpp='$CXXCPP $CPPFLAGS'
17287 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17288 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17289 cross_compiling=$ac_cv_prog_cxx_cross
17290
17291       cat > conftest.$ac_ext <<EOF
17292 #line 17293 "configure"
17293 #include "confdefs.h"
17294 #include <math.h>
17295                       #ifdef HAVE_IEEEFP_H
17296                       #include <ieeefp.h>
17297                       #endif
17298                      
17299 int main() {
17300  _expl(0);
17301 ; return 0; }
17302 EOF
17303 if { (eval echo configure:17304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17304   rm -rf conftest*
17305   glibcpp_cv_func__expl_use=yes
17306 else
17307   echo "configure: failed program was:" >&5
17308   cat conftest.$ac_ext >&5
17309   rm -rf conftest*
17310   glibcpp_cv_func__expl_use=no
17311 fi
17312 rm -f conftest*
17313       ac_ext=c
17314 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17315 ac_cpp='$CPP $CPPFLAGS'
17316 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17317 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17318 cross_compiling=$ac_cv_prog_cc_cross
17319
17320     
17321 fi
17322
17323   fi
17324   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
17325
17326     if test x$glibcpp_cv_func__expl_use = x"yes"; then
17327       for ac_func in _expl
17328 do
17329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17330 echo "configure:17331: checking for $ac_func" >&5
17331 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17332   echo $ac_n "(cached) $ac_c" 1>&6
17333 else
17334   cat > conftest.$ac_ext <<EOF
17335 #line 17336 "configure"
17336 #include "confdefs.h"
17337 /* System header to define __stub macros and hopefully few prototypes,
17338     which can conflict with char $ac_func(); below.  */
17339 #include <assert.h>
17340 /* Override any gcc2 internal prototype to avoid an error.  */
17341 /* We use char because int might match the return type of a gcc2
17342     builtin and then its argument prototype would still apply.  */
17343 char $ac_func();
17344
17345 int main() {
17346
17347 /* The GNU C library defines this for functions which it implements
17348     to always fail with ENOSYS.  Some functions are actually named
17349     something starting with __ and the normal name is an alias.  */
17350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17351 choke me
17352 #else
17353 $ac_func();
17354 #endif
17355
17356 ; return 0; }
17357 EOF
17358 if { (eval echo configure:17359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17359   rm -rf conftest*
17360   eval "ac_cv_func_$ac_func=yes"
17361 else
17362   echo "configure: failed program was:" >&5
17363   cat conftest.$ac_ext >&5
17364   rm -rf conftest*
17365   eval "ac_cv_func_$ac_func=no"
17366 fi
17367 rm -f conftest*
17368 fi
17369
17370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17371   echo "$ac_t""yes" 1>&6
17372     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17373   cat >> confdefs.h <<EOF
17374 #define $ac_tr_func 1
17375 EOF
17376  
17377 else
17378   echo "$ac_t""no" 1>&6
17379 fi
17380 done
17381     
17382     fi
17383   fi
17384
17385   
17386   
17387   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17388 echo "configure:17389: checking for fabsl declaration" >&5
17389   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
17390     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
17391   echo $ac_n "(cached) $ac_c" 1>&6
17392 else
17393   
17394       
17395       ac_ext=C
17396 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17397 ac_cpp='$CXXCPP $CPPFLAGS'
17398 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17399 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17400 cross_compiling=$ac_cv_prog_cxx_cross
17401
17402       cat > conftest.$ac_ext <<EOF
17403 #line 17404 "configure"
17404 #include "confdefs.h"
17405 #include <math.h>
17406                       #ifdef HAVE_IEEEFP_H
17407                       #include <ieeefp.h>
17408                       #endif
17409                      
17410 int main() {
17411  fabsl(0);
17412 ; return 0; }
17413 EOF
17414 if { (eval echo configure:17415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17415   rm -rf conftest*
17416   glibcpp_cv_func_fabsl_use=yes
17417 else
17418   echo "configure: failed program was:" >&5
17419   cat conftest.$ac_ext >&5
17420   rm -rf conftest*
17421   glibcpp_cv_func_fabsl_use=no
17422 fi
17423 rm -f conftest*
17424       ac_ext=c
17425 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17426 ac_cpp='$CPP $CPPFLAGS'
17427 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17428 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17429 cross_compiling=$ac_cv_prog_cc_cross
17430
17431     
17432 fi
17433
17434   fi
17435   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
17436
17437   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
17438     for ac_func in fabsl
17439 do
17440 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17441 echo "configure:17442: checking for $ac_func" >&5
17442 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17443   echo $ac_n "(cached) $ac_c" 1>&6
17444 else
17445   cat > conftest.$ac_ext <<EOF
17446 #line 17447 "configure"
17447 #include "confdefs.h"
17448 /* System header to define __stub macros and hopefully few prototypes,
17449     which can conflict with char $ac_func(); below.  */
17450 #include <assert.h>
17451 /* Override any gcc2 internal prototype to avoid an error.  */
17452 /* We use char because int might match the return type of a gcc2
17453     builtin and then its argument prototype would still apply.  */
17454 char $ac_func();
17455
17456 int main() {
17457
17458 /* The GNU C library defines this for functions which it implements
17459     to always fail with ENOSYS.  Some functions are actually named
17460     something starting with __ and the normal name is an alias.  */
17461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17462 choke me
17463 #else
17464 $ac_func();
17465 #endif
17466
17467 ; return 0; }
17468 EOF
17469 if { (eval echo configure:17470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17470   rm -rf conftest*
17471   eval "ac_cv_func_$ac_func=yes"
17472 else
17473   echo "configure: failed program was:" >&5
17474   cat conftest.$ac_ext >&5
17475   rm -rf conftest*
17476   eval "ac_cv_func_$ac_func=no"
17477 fi
17478 rm -f conftest*
17479 fi
17480
17481 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17482   echo "$ac_t""yes" 1>&6
17483     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17484   cat >> confdefs.h <<EOF
17485 #define $ac_tr_func 1
17486 EOF
17487  
17488 else
17489   echo "$ac_t""no" 1>&6
17490 fi
17491 done
17492     
17493   else
17494     
17495   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17496 echo "configure:17497: checking for _fabsl declaration" >&5
17497   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
17498     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
17499   echo $ac_n "(cached) $ac_c" 1>&6
17500 else
17501   
17502       
17503       ac_ext=C
17504 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17505 ac_cpp='$CXXCPP $CPPFLAGS'
17506 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17507 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17508 cross_compiling=$ac_cv_prog_cxx_cross
17509
17510       cat > conftest.$ac_ext <<EOF
17511 #line 17512 "configure"
17512 #include "confdefs.h"
17513 #include <math.h>
17514                       #ifdef HAVE_IEEEFP_H
17515                       #include <ieeefp.h>
17516                       #endif
17517                      
17518 int main() {
17519  _fabsl(0);
17520 ; return 0; }
17521 EOF
17522 if { (eval echo configure:17523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17523   rm -rf conftest*
17524   glibcpp_cv_func__fabsl_use=yes
17525 else
17526   echo "configure: failed program was:" >&5
17527   cat conftest.$ac_ext >&5
17528   rm -rf conftest*
17529   glibcpp_cv_func__fabsl_use=no
17530 fi
17531 rm -f conftest*
17532       ac_ext=c
17533 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17534 ac_cpp='$CPP $CPPFLAGS'
17535 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17536 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17537 cross_compiling=$ac_cv_prog_cc_cross
17538
17539     
17540 fi
17541
17542   fi
17543   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
17544
17545     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
17546       for ac_func in _fabsl
17547 do
17548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17549 echo "configure:17550: checking for $ac_func" >&5
17550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17551   echo $ac_n "(cached) $ac_c" 1>&6
17552 else
17553   cat > conftest.$ac_ext <<EOF
17554 #line 17555 "configure"
17555 #include "confdefs.h"
17556 /* System header to define __stub macros and hopefully few prototypes,
17557     which can conflict with char $ac_func(); below.  */
17558 #include <assert.h>
17559 /* Override any gcc2 internal prototype to avoid an error.  */
17560 /* We use char because int might match the return type of a gcc2
17561     builtin and then its argument prototype would still apply.  */
17562 char $ac_func();
17563
17564 int main() {
17565
17566 /* The GNU C library defines this for functions which it implements
17567     to always fail with ENOSYS.  Some functions are actually named
17568     something starting with __ and the normal name is an alias.  */
17569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17570 choke me
17571 #else
17572 $ac_func();
17573 #endif
17574
17575 ; return 0; }
17576 EOF
17577 if { (eval echo configure:17578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17578   rm -rf conftest*
17579   eval "ac_cv_func_$ac_func=yes"
17580 else
17581   echo "configure: failed program was:" >&5
17582   cat conftest.$ac_ext >&5
17583   rm -rf conftest*
17584   eval "ac_cv_func_$ac_func=no"
17585 fi
17586 rm -f conftest*
17587 fi
17588
17589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17590   echo "$ac_t""yes" 1>&6
17591     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17592   cat >> confdefs.h <<EOF
17593 #define $ac_tr_func 1
17594 EOF
17595  
17596 else
17597   echo "$ac_t""no" 1>&6
17598 fi
17599 done
17600     
17601     fi
17602   fi
17603
17604   
17605   
17606   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17607 echo "configure:17608: checking for fmodl declaration" >&5
17608   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
17609     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
17610   echo $ac_n "(cached) $ac_c" 1>&6
17611 else
17612   
17613       
17614       ac_ext=C
17615 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17616 ac_cpp='$CXXCPP $CPPFLAGS'
17617 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17618 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17619 cross_compiling=$ac_cv_prog_cxx_cross
17620
17621       cat > conftest.$ac_ext <<EOF
17622 #line 17623 "configure"
17623 #include "confdefs.h"
17624 #include <math.h>
17625 int main() {
17626  fmodl(0, 0);
17627 ; return 0; }
17628 EOF
17629 if { (eval echo configure:17630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17630   rm -rf conftest*
17631   glibcpp_cv_func_fmodl_use=yes
17632 else
17633   echo "configure: failed program was:" >&5
17634   cat conftest.$ac_ext >&5
17635   rm -rf conftest*
17636   glibcpp_cv_func_fmodl_use=no
17637 fi
17638 rm -f conftest*
17639       ac_ext=c
17640 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17641 ac_cpp='$CPP $CPPFLAGS'
17642 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17643 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17644 cross_compiling=$ac_cv_prog_cc_cross
17645
17646     
17647 fi
17648
17649   fi
17650   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
17651
17652   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
17653     for ac_func in fmodl
17654 do
17655 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17656 echo "configure:17657: checking for $ac_func" >&5
17657 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17658   echo $ac_n "(cached) $ac_c" 1>&6
17659 else
17660   cat > conftest.$ac_ext <<EOF
17661 #line 17662 "configure"
17662 #include "confdefs.h"
17663 /* System header to define __stub macros and hopefully few prototypes,
17664     which can conflict with char $ac_func(); below.  */
17665 #include <assert.h>
17666 /* Override any gcc2 internal prototype to avoid an error.  */
17667 /* We use char because int might match the return type of a gcc2
17668     builtin and then its argument prototype would still apply.  */
17669 char $ac_func();
17670
17671 int main() {
17672
17673 /* The GNU C library defines this for functions which it implements
17674     to always fail with ENOSYS.  Some functions are actually named
17675     something starting with __ and the normal name is an alias.  */
17676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17677 choke me
17678 #else
17679 $ac_func();
17680 #endif
17681
17682 ; return 0; }
17683 EOF
17684 if { (eval echo configure:17685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17685   rm -rf conftest*
17686   eval "ac_cv_func_$ac_func=yes"
17687 else
17688   echo "configure: failed program was:" >&5
17689   cat conftest.$ac_ext >&5
17690   rm -rf conftest*
17691   eval "ac_cv_func_$ac_func=no"
17692 fi
17693 rm -f conftest*
17694 fi
17695
17696 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17697   echo "$ac_t""yes" 1>&6
17698     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17699   cat >> confdefs.h <<EOF
17700 #define $ac_tr_func 1
17701 EOF
17702  
17703 else
17704   echo "$ac_t""no" 1>&6
17705 fi
17706 done
17707     
17708   else
17709     
17710   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17711 echo "configure:17712: checking for _fmodl declaration" >&5
17712   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
17713     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
17714   echo $ac_n "(cached) $ac_c" 1>&6
17715 else
17716   
17717       
17718       ac_ext=C
17719 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17720 ac_cpp='$CXXCPP $CPPFLAGS'
17721 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17722 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17723 cross_compiling=$ac_cv_prog_cxx_cross
17724
17725       cat > conftest.$ac_ext <<EOF
17726 #line 17727 "configure"
17727 #include "confdefs.h"
17728 #include <math.h>
17729 int main() {
17730  _fmodl(0, 0);
17731 ; return 0; }
17732 EOF
17733 if { (eval echo configure:17734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17734   rm -rf conftest*
17735   glibcpp_cv_func__fmodl_use=yes
17736 else
17737   echo "configure: failed program was:" >&5
17738   cat conftest.$ac_ext >&5
17739   rm -rf conftest*
17740   glibcpp_cv_func__fmodl_use=no
17741 fi
17742 rm -f conftest*
17743       ac_ext=c
17744 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17745 ac_cpp='$CPP $CPPFLAGS'
17746 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17747 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17748 cross_compiling=$ac_cv_prog_cc_cross
17749
17750     
17751 fi
17752
17753   fi
17754   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
17755
17756     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
17757       for ac_func in _fmodl
17758 do
17759 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17760 echo "configure:17761: checking for $ac_func" >&5
17761 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17762   echo $ac_n "(cached) $ac_c" 1>&6
17763 else
17764   cat > conftest.$ac_ext <<EOF
17765 #line 17766 "configure"
17766 #include "confdefs.h"
17767 /* System header to define __stub macros and hopefully few prototypes,
17768     which can conflict with char $ac_func(); below.  */
17769 #include <assert.h>
17770 /* Override any gcc2 internal prototype to avoid an error.  */
17771 /* We use char because int might match the return type of a gcc2
17772     builtin and then its argument prototype would still apply.  */
17773 char $ac_func();
17774
17775 int main() {
17776
17777 /* The GNU C library defines this for functions which it implements
17778     to always fail with ENOSYS.  Some functions are actually named
17779     something starting with __ and the normal name is an alias.  */
17780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17781 choke me
17782 #else
17783 $ac_func();
17784 #endif
17785
17786 ; return 0; }
17787 EOF
17788 if { (eval echo configure:17789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17789   rm -rf conftest*
17790   eval "ac_cv_func_$ac_func=yes"
17791 else
17792   echo "configure: failed program was:" >&5
17793   cat conftest.$ac_ext >&5
17794   rm -rf conftest*
17795   eval "ac_cv_func_$ac_func=no"
17796 fi
17797 rm -f conftest*
17798 fi
17799
17800 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17801   echo "$ac_t""yes" 1>&6
17802     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17803   cat >> confdefs.h <<EOF
17804 #define $ac_tr_func 1
17805 EOF
17806  
17807 else
17808   echo "$ac_t""no" 1>&6
17809 fi
17810 done
17811     
17812     fi
17813   fi
17814
17815   
17816   
17817   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
17818 echo "configure:17819: checking for frexpl declaration" >&5
17819   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
17820     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
17821   echo $ac_n "(cached) $ac_c" 1>&6
17822 else
17823   
17824       
17825       ac_ext=C
17826 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17827 ac_cpp='$CXXCPP $CPPFLAGS'
17828 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17829 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17830 cross_compiling=$ac_cv_prog_cxx_cross
17831
17832       cat > conftest.$ac_ext <<EOF
17833 #line 17834 "configure"
17834 #include "confdefs.h"
17835 #include <math.h>
17836 int main() {
17837  frexpl(0, 0);
17838 ; return 0; }
17839 EOF
17840 if { (eval echo configure:17841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17841   rm -rf conftest*
17842   glibcpp_cv_func_frexpl_use=yes
17843 else
17844   echo "configure: failed program was:" >&5
17845   cat conftest.$ac_ext >&5
17846   rm -rf conftest*
17847   glibcpp_cv_func_frexpl_use=no
17848 fi
17849 rm -f conftest*
17850       ac_ext=c
17851 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17852 ac_cpp='$CPP $CPPFLAGS'
17853 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17854 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17855 cross_compiling=$ac_cv_prog_cc_cross
17856
17857     
17858 fi
17859
17860   fi
17861   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
17862
17863   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
17864     for ac_func in frexpl
17865 do
17866 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17867 echo "configure:17868: checking for $ac_func" >&5
17868 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17869   echo $ac_n "(cached) $ac_c" 1>&6
17870 else
17871   cat > conftest.$ac_ext <<EOF
17872 #line 17873 "configure"
17873 #include "confdefs.h"
17874 /* System header to define __stub macros and hopefully few prototypes,
17875     which can conflict with char $ac_func(); below.  */
17876 #include <assert.h>
17877 /* Override any gcc2 internal prototype to avoid an error.  */
17878 /* We use char because int might match the return type of a gcc2
17879     builtin and then its argument prototype would still apply.  */
17880 char $ac_func();
17881
17882 int main() {
17883
17884 /* The GNU C library defines this for functions which it implements
17885     to always fail with ENOSYS.  Some functions are actually named
17886     something starting with __ and the normal name is an alias.  */
17887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17888 choke me
17889 #else
17890 $ac_func();
17891 #endif
17892
17893 ; return 0; }
17894 EOF
17895 if { (eval echo configure:17896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17896   rm -rf conftest*
17897   eval "ac_cv_func_$ac_func=yes"
17898 else
17899   echo "configure: failed program was:" >&5
17900   cat conftest.$ac_ext >&5
17901   rm -rf conftest*
17902   eval "ac_cv_func_$ac_func=no"
17903 fi
17904 rm -f conftest*
17905 fi
17906
17907 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17908   echo "$ac_t""yes" 1>&6
17909     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17910   cat >> confdefs.h <<EOF
17911 #define $ac_tr_func 1
17912 EOF
17913  
17914 else
17915   echo "$ac_t""no" 1>&6
17916 fi
17917 done
17918     
17919   else
17920     
17921   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
17922 echo "configure:17923: checking for _frexpl declaration" >&5
17923   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
17924     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
17925   echo $ac_n "(cached) $ac_c" 1>&6
17926 else
17927   
17928       
17929       ac_ext=C
17930 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17931 ac_cpp='$CXXCPP $CPPFLAGS'
17932 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17933 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17934 cross_compiling=$ac_cv_prog_cxx_cross
17935
17936       cat > conftest.$ac_ext <<EOF
17937 #line 17938 "configure"
17938 #include "confdefs.h"
17939 #include <math.h>
17940 int main() {
17941  _frexpl(0, 0);
17942 ; return 0; }
17943 EOF
17944 if { (eval echo configure:17945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17945   rm -rf conftest*
17946   glibcpp_cv_func__frexpl_use=yes
17947 else
17948   echo "configure: failed program was:" >&5
17949   cat conftest.$ac_ext >&5
17950   rm -rf conftest*
17951   glibcpp_cv_func__frexpl_use=no
17952 fi
17953 rm -f conftest*
17954       ac_ext=c
17955 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17956 ac_cpp='$CPP $CPPFLAGS'
17957 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17958 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17959 cross_compiling=$ac_cv_prog_cc_cross
17960
17961     
17962 fi
17963
17964   fi
17965   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
17966
17967     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
17968       for ac_func in _frexpl
17969 do
17970 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17971 echo "configure:17972: checking for $ac_func" >&5
17972 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17973   echo $ac_n "(cached) $ac_c" 1>&6
17974 else
17975   cat > conftest.$ac_ext <<EOF
17976 #line 17977 "configure"
17977 #include "confdefs.h"
17978 /* System header to define __stub macros and hopefully few prototypes,
17979     which can conflict with char $ac_func(); below.  */
17980 #include <assert.h>
17981 /* Override any gcc2 internal prototype to avoid an error.  */
17982 /* We use char because int might match the return type of a gcc2
17983     builtin and then its argument prototype would still apply.  */
17984 char $ac_func();
17985
17986 int main() {
17987
17988 /* The GNU C library defines this for functions which it implements
17989     to always fail with ENOSYS.  Some functions are actually named
17990     something starting with __ and the normal name is an alias.  */
17991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17992 choke me
17993 #else
17994 $ac_func();
17995 #endif
17996
17997 ; return 0; }
17998 EOF
17999 if { (eval echo configure:18000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18000   rm -rf conftest*
18001   eval "ac_cv_func_$ac_func=yes"
18002 else
18003   echo "configure: failed program was:" >&5
18004   cat conftest.$ac_ext >&5
18005   rm -rf conftest*
18006   eval "ac_cv_func_$ac_func=no"
18007 fi
18008 rm -f conftest*
18009 fi
18010
18011 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18012   echo "$ac_t""yes" 1>&6
18013     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18014   cat >> confdefs.h <<EOF
18015 #define $ac_tr_func 1
18016 EOF
18017  
18018 else
18019   echo "$ac_t""no" 1>&6
18020 fi
18021 done
18022     
18023     fi
18024   fi
18025
18026   
18027   
18028   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
18029 echo "configure:18030: checking for hypotl declaration" >&5
18030   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
18031     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
18032   echo $ac_n "(cached) $ac_c" 1>&6
18033 else
18034   
18035       
18036       ac_ext=C
18037 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18038 ac_cpp='$CXXCPP $CPPFLAGS'
18039 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18040 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18041 cross_compiling=$ac_cv_prog_cxx_cross
18042
18043       cat > conftest.$ac_ext <<EOF
18044 #line 18045 "configure"
18045 #include "confdefs.h"
18046 #include <math.h>
18047 int main() {
18048  hypotl(0, 0);
18049 ; return 0; }
18050 EOF
18051 if { (eval echo configure:18052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18052   rm -rf conftest*
18053   glibcpp_cv_func_hypotl_use=yes
18054 else
18055   echo "configure: failed program was:" >&5
18056   cat conftest.$ac_ext >&5
18057   rm -rf conftest*
18058   glibcpp_cv_func_hypotl_use=no
18059 fi
18060 rm -f conftest*
18061       ac_ext=c
18062 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18063 ac_cpp='$CPP $CPPFLAGS'
18064 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18065 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18066 cross_compiling=$ac_cv_prog_cc_cross
18067
18068     
18069 fi
18070
18071   fi
18072   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
18073
18074   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
18075     for ac_func in hypotl
18076 do
18077 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18078 echo "configure:18079: checking for $ac_func" >&5
18079 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18080   echo $ac_n "(cached) $ac_c" 1>&6
18081 else
18082   cat > conftest.$ac_ext <<EOF
18083 #line 18084 "configure"
18084 #include "confdefs.h"
18085 /* System header to define __stub macros and hopefully few prototypes,
18086     which can conflict with char $ac_func(); below.  */
18087 #include <assert.h>
18088 /* Override any gcc2 internal prototype to avoid an error.  */
18089 /* We use char because int might match the return type of a gcc2
18090     builtin and then its argument prototype would still apply.  */
18091 char $ac_func();
18092
18093 int main() {
18094
18095 /* The GNU C library defines this for functions which it implements
18096     to always fail with ENOSYS.  Some functions are actually named
18097     something starting with __ and the normal name is an alias.  */
18098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18099 choke me
18100 #else
18101 $ac_func();
18102 #endif
18103
18104 ; return 0; }
18105 EOF
18106 if { (eval echo configure:18107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18107   rm -rf conftest*
18108   eval "ac_cv_func_$ac_func=yes"
18109 else
18110   echo "configure: failed program was:" >&5
18111   cat conftest.$ac_ext >&5
18112   rm -rf conftest*
18113   eval "ac_cv_func_$ac_func=no"
18114 fi
18115 rm -f conftest*
18116 fi
18117
18118 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18119   echo "$ac_t""yes" 1>&6
18120     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18121   cat >> confdefs.h <<EOF
18122 #define $ac_tr_func 1
18123 EOF
18124  
18125 else
18126   echo "$ac_t""no" 1>&6
18127 fi
18128 done
18129     
18130   else
18131     
18132   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18133 echo "configure:18134: checking for _hypotl declaration" >&5
18134   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
18135     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
18136   echo $ac_n "(cached) $ac_c" 1>&6
18137 else
18138   
18139       
18140       ac_ext=C
18141 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18142 ac_cpp='$CXXCPP $CPPFLAGS'
18143 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18144 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18145 cross_compiling=$ac_cv_prog_cxx_cross
18146
18147       cat > conftest.$ac_ext <<EOF
18148 #line 18149 "configure"
18149 #include "confdefs.h"
18150 #include <math.h>
18151 int main() {
18152  _hypotl(0, 0);
18153 ; return 0; }
18154 EOF
18155 if { (eval echo configure:18156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18156   rm -rf conftest*
18157   glibcpp_cv_func__hypotl_use=yes
18158 else
18159   echo "configure: failed program was:" >&5
18160   cat conftest.$ac_ext >&5
18161   rm -rf conftest*
18162   glibcpp_cv_func__hypotl_use=no
18163 fi
18164 rm -f conftest*
18165       ac_ext=c
18166 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18167 ac_cpp='$CPP $CPPFLAGS'
18168 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18169 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18170 cross_compiling=$ac_cv_prog_cc_cross
18171
18172     
18173 fi
18174
18175   fi
18176   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
18177
18178     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
18179       for ac_func in _hypotl
18180 do
18181 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18182 echo "configure:18183: checking for $ac_func" >&5
18183 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18184   echo $ac_n "(cached) $ac_c" 1>&6
18185 else
18186   cat > conftest.$ac_ext <<EOF
18187 #line 18188 "configure"
18188 #include "confdefs.h"
18189 /* System header to define __stub macros and hopefully few prototypes,
18190     which can conflict with char $ac_func(); below.  */
18191 #include <assert.h>
18192 /* Override any gcc2 internal prototype to avoid an error.  */
18193 /* We use char because int might match the return type of a gcc2
18194     builtin and then its argument prototype would still apply.  */
18195 char $ac_func();
18196
18197 int main() {
18198
18199 /* The GNU C library defines this for functions which it implements
18200     to always fail with ENOSYS.  Some functions are actually named
18201     something starting with __ and the normal name is an alias.  */
18202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18203 choke me
18204 #else
18205 $ac_func();
18206 #endif
18207
18208 ; return 0; }
18209 EOF
18210 if { (eval echo configure:18211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18211   rm -rf conftest*
18212   eval "ac_cv_func_$ac_func=yes"
18213 else
18214   echo "configure: failed program was:" >&5
18215   cat conftest.$ac_ext >&5
18216   rm -rf conftest*
18217   eval "ac_cv_func_$ac_func=no"
18218 fi
18219 rm -f conftest*
18220 fi
18221
18222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18223   echo "$ac_t""yes" 1>&6
18224     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18225   cat >> confdefs.h <<EOF
18226 #define $ac_tr_func 1
18227 EOF
18228  
18229 else
18230   echo "$ac_t""no" 1>&6
18231 fi
18232 done
18233     
18234     fi
18235   fi
18236
18237   
18238   
18239   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18240 echo "configure:18241: checking for ldexpl declaration" >&5
18241   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
18242     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
18243   echo $ac_n "(cached) $ac_c" 1>&6
18244 else
18245   
18246       
18247       ac_ext=C
18248 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18249 ac_cpp='$CXXCPP $CPPFLAGS'
18250 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18251 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18252 cross_compiling=$ac_cv_prog_cxx_cross
18253
18254       cat > conftest.$ac_ext <<EOF
18255 #line 18256 "configure"
18256 #include "confdefs.h"
18257 #include <math.h>
18258 int main() {
18259  ldexpl(0, 0);
18260 ; return 0; }
18261 EOF
18262 if { (eval echo configure:18263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18263   rm -rf conftest*
18264   glibcpp_cv_func_ldexpl_use=yes
18265 else
18266   echo "configure: failed program was:" >&5
18267   cat conftest.$ac_ext >&5
18268   rm -rf conftest*
18269   glibcpp_cv_func_ldexpl_use=no
18270 fi
18271 rm -f conftest*
18272       ac_ext=c
18273 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18274 ac_cpp='$CPP $CPPFLAGS'
18275 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18276 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18277 cross_compiling=$ac_cv_prog_cc_cross
18278
18279     
18280 fi
18281
18282   fi
18283   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
18284
18285   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
18286     for ac_func in ldexpl
18287 do
18288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18289 echo "configure:18290: checking for $ac_func" >&5
18290 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18291   echo $ac_n "(cached) $ac_c" 1>&6
18292 else
18293   cat > conftest.$ac_ext <<EOF
18294 #line 18295 "configure"
18295 #include "confdefs.h"
18296 /* System header to define __stub macros and hopefully few prototypes,
18297     which can conflict with char $ac_func(); below.  */
18298 #include <assert.h>
18299 /* Override any gcc2 internal prototype to avoid an error.  */
18300 /* We use char because int might match the return type of a gcc2
18301     builtin and then its argument prototype would still apply.  */
18302 char $ac_func();
18303
18304 int main() {
18305
18306 /* The GNU C library defines this for functions which it implements
18307     to always fail with ENOSYS.  Some functions are actually named
18308     something starting with __ and the normal name is an alias.  */
18309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18310 choke me
18311 #else
18312 $ac_func();
18313 #endif
18314
18315 ; return 0; }
18316 EOF
18317 if { (eval echo configure:18318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18318   rm -rf conftest*
18319   eval "ac_cv_func_$ac_func=yes"
18320 else
18321   echo "configure: failed program was:" >&5
18322   cat conftest.$ac_ext >&5
18323   rm -rf conftest*
18324   eval "ac_cv_func_$ac_func=no"
18325 fi
18326 rm -f conftest*
18327 fi
18328
18329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18330   echo "$ac_t""yes" 1>&6
18331     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18332   cat >> confdefs.h <<EOF
18333 #define $ac_tr_func 1
18334 EOF
18335  
18336 else
18337   echo "$ac_t""no" 1>&6
18338 fi
18339 done
18340     
18341   else
18342     
18343   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18344 echo "configure:18345: checking for _ldexpl declaration" >&5
18345   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
18346     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
18347   echo $ac_n "(cached) $ac_c" 1>&6
18348 else
18349   
18350       
18351       ac_ext=C
18352 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18353 ac_cpp='$CXXCPP $CPPFLAGS'
18354 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18355 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18356 cross_compiling=$ac_cv_prog_cxx_cross
18357
18358       cat > conftest.$ac_ext <<EOF
18359 #line 18360 "configure"
18360 #include "confdefs.h"
18361 #include <math.h>
18362 int main() {
18363  _ldexpl(0, 0);
18364 ; return 0; }
18365 EOF
18366 if { (eval echo configure:18367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18367   rm -rf conftest*
18368   glibcpp_cv_func__ldexpl_use=yes
18369 else
18370   echo "configure: failed program was:" >&5
18371   cat conftest.$ac_ext >&5
18372   rm -rf conftest*
18373   glibcpp_cv_func__ldexpl_use=no
18374 fi
18375 rm -f conftest*
18376       ac_ext=c
18377 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18378 ac_cpp='$CPP $CPPFLAGS'
18379 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18380 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18381 cross_compiling=$ac_cv_prog_cc_cross
18382
18383     
18384 fi
18385
18386   fi
18387   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
18388
18389     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
18390       for ac_func in _ldexpl
18391 do
18392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18393 echo "configure:18394: checking for $ac_func" >&5
18394 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18395   echo $ac_n "(cached) $ac_c" 1>&6
18396 else
18397   cat > conftest.$ac_ext <<EOF
18398 #line 18399 "configure"
18399 #include "confdefs.h"
18400 /* System header to define __stub macros and hopefully few prototypes,
18401     which can conflict with char $ac_func(); below.  */
18402 #include <assert.h>
18403 /* Override any gcc2 internal prototype to avoid an error.  */
18404 /* We use char because int might match the return type of a gcc2
18405     builtin and then its argument prototype would still apply.  */
18406 char $ac_func();
18407
18408 int main() {
18409
18410 /* The GNU C library defines this for functions which it implements
18411     to always fail with ENOSYS.  Some functions are actually named
18412     something starting with __ and the normal name is an alias.  */
18413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18414 choke me
18415 #else
18416 $ac_func();
18417 #endif
18418
18419 ; return 0; }
18420 EOF
18421 if { (eval echo configure:18422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18422   rm -rf conftest*
18423   eval "ac_cv_func_$ac_func=yes"
18424 else
18425   echo "configure: failed program was:" >&5
18426   cat conftest.$ac_ext >&5
18427   rm -rf conftest*
18428   eval "ac_cv_func_$ac_func=no"
18429 fi
18430 rm -f conftest*
18431 fi
18432
18433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18434   echo "$ac_t""yes" 1>&6
18435     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18436   cat >> confdefs.h <<EOF
18437 #define $ac_tr_func 1
18438 EOF
18439  
18440 else
18441   echo "$ac_t""no" 1>&6
18442 fi
18443 done
18444     
18445     fi
18446   fi
18447
18448   
18449   
18450   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18451 echo "configure:18452: checking for logl declaration" >&5
18452   if test x${glibcpp_cv_func_logl_use+set} != xset; then
18453     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
18454   echo $ac_n "(cached) $ac_c" 1>&6
18455 else
18456   
18457       
18458       ac_ext=C
18459 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18460 ac_cpp='$CXXCPP $CPPFLAGS'
18461 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18462 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18463 cross_compiling=$ac_cv_prog_cxx_cross
18464
18465       cat > conftest.$ac_ext <<EOF
18466 #line 18467 "configure"
18467 #include "confdefs.h"
18468 #include <math.h>
18469                       #ifdef HAVE_IEEEFP_H
18470                       #include <ieeefp.h>
18471                       #endif
18472                      
18473 int main() {
18474  logl(0);
18475 ; return 0; }
18476 EOF
18477 if { (eval echo configure:18478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18478   rm -rf conftest*
18479   glibcpp_cv_func_logl_use=yes
18480 else
18481   echo "configure: failed program was:" >&5
18482   cat conftest.$ac_ext >&5
18483   rm -rf conftest*
18484   glibcpp_cv_func_logl_use=no
18485 fi
18486 rm -f conftest*
18487       ac_ext=c
18488 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18489 ac_cpp='$CPP $CPPFLAGS'
18490 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18491 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18492 cross_compiling=$ac_cv_prog_cc_cross
18493
18494     
18495 fi
18496
18497   fi
18498   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
18499
18500   if test x$glibcpp_cv_func_logl_use = x"yes"; then
18501     for ac_func in logl
18502 do
18503 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18504 echo "configure:18505: checking for $ac_func" >&5
18505 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18506   echo $ac_n "(cached) $ac_c" 1>&6
18507 else
18508   cat > conftest.$ac_ext <<EOF
18509 #line 18510 "configure"
18510 #include "confdefs.h"
18511 /* System header to define __stub macros and hopefully few prototypes,
18512     which can conflict with char $ac_func(); below.  */
18513 #include <assert.h>
18514 /* Override any gcc2 internal prototype to avoid an error.  */
18515 /* We use char because int might match the return type of a gcc2
18516     builtin and then its argument prototype would still apply.  */
18517 char $ac_func();
18518
18519 int main() {
18520
18521 /* The GNU C library defines this for functions which it implements
18522     to always fail with ENOSYS.  Some functions are actually named
18523     something starting with __ and the normal name is an alias.  */
18524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18525 choke me
18526 #else
18527 $ac_func();
18528 #endif
18529
18530 ; return 0; }
18531 EOF
18532 if { (eval echo configure:18533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18533   rm -rf conftest*
18534   eval "ac_cv_func_$ac_func=yes"
18535 else
18536   echo "configure: failed program was:" >&5
18537   cat conftest.$ac_ext >&5
18538   rm -rf conftest*
18539   eval "ac_cv_func_$ac_func=no"
18540 fi
18541 rm -f conftest*
18542 fi
18543
18544 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18545   echo "$ac_t""yes" 1>&6
18546     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18547   cat >> confdefs.h <<EOF
18548 #define $ac_tr_func 1
18549 EOF
18550  
18551 else
18552   echo "$ac_t""no" 1>&6
18553 fi
18554 done
18555     
18556   else
18557     
18558   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18559 echo "configure:18560: checking for _logl declaration" >&5
18560   if test x${glibcpp_cv_func__logl_use+set} != xset; then
18561     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
18562   echo $ac_n "(cached) $ac_c" 1>&6
18563 else
18564   
18565       
18566       ac_ext=C
18567 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18568 ac_cpp='$CXXCPP $CPPFLAGS'
18569 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18570 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18571 cross_compiling=$ac_cv_prog_cxx_cross
18572
18573       cat > conftest.$ac_ext <<EOF
18574 #line 18575 "configure"
18575 #include "confdefs.h"
18576 #include <math.h>
18577                       #ifdef HAVE_IEEEFP_H
18578                       #include <ieeefp.h>
18579                       #endif
18580                      
18581 int main() {
18582  _logl(0);
18583 ; return 0; }
18584 EOF
18585 if { (eval echo configure:18586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18586   rm -rf conftest*
18587   glibcpp_cv_func__logl_use=yes
18588 else
18589   echo "configure: failed program was:" >&5
18590   cat conftest.$ac_ext >&5
18591   rm -rf conftest*
18592   glibcpp_cv_func__logl_use=no
18593 fi
18594 rm -f conftest*
18595       ac_ext=c
18596 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18597 ac_cpp='$CPP $CPPFLAGS'
18598 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18599 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18600 cross_compiling=$ac_cv_prog_cc_cross
18601
18602     
18603 fi
18604
18605   fi
18606   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
18607
18608     if test x$glibcpp_cv_func__logl_use = x"yes"; then
18609       for ac_func in _logl
18610 do
18611 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18612 echo "configure:18613: checking for $ac_func" >&5
18613 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18614   echo $ac_n "(cached) $ac_c" 1>&6
18615 else
18616   cat > conftest.$ac_ext <<EOF
18617 #line 18618 "configure"
18618 #include "confdefs.h"
18619 /* System header to define __stub macros and hopefully few prototypes,
18620     which can conflict with char $ac_func(); below.  */
18621 #include <assert.h>
18622 /* Override any gcc2 internal prototype to avoid an error.  */
18623 /* We use char because int might match the return type of a gcc2
18624     builtin and then its argument prototype would still apply.  */
18625 char $ac_func();
18626
18627 int main() {
18628
18629 /* The GNU C library defines this for functions which it implements
18630     to always fail with ENOSYS.  Some functions are actually named
18631     something starting with __ and the normal name is an alias.  */
18632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18633 choke me
18634 #else
18635 $ac_func();
18636 #endif
18637
18638 ; return 0; }
18639 EOF
18640 if { (eval echo configure:18641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18641   rm -rf conftest*
18642   eval "ac_cv_func_$ac_func=yes"
18643 else
18644   echo "configure: failed program was:" >&5
18645   cat conftest.$ac_ext >&5
18646   rm -rf conftest*
18647   eval "ac_cv_func_$ac_func=no"
18648 fi
18649 rm -f conftest*
18650 fi
18651
18652 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18653   echo "$ac_t""yes" 1>&6
18654     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18655   cat >> confdefs.h <<EOF
18656 #define $ac_tr_func 1
18657 EOF
18658  
18659 else
18660   echo "$ac_t""no" 1>&6
18661 fi
18662 done
18663     
18664     fi
18665   fi
18666
18667   
18668   
18669   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18670 echo "configure:18671: checking for log10l declaration" >&5
18671   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
18672     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
18673   echo $ac_n "(cached) $ac_c" 1>&6
18674 else
18675   
18676       
18677       ac_ext=C
18678 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18679 ac_cpp='$CXXCPP $CPPFLAGS'
18680 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18681 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18682 cross_compiling=$ac_cv_prog_cxx_cross
18683
18684       cat > conftest.$ac_ext <<EOF
18685 #line 18686 "configure"
18686 #include "confdefs.h"
18687 #include <math.h>
18688                       #ifdef HAVE_IEEEFP_H
18689                       #include <ieeefp.h>
18690                       #endif
18691                      
18692 int main() {
18693  log10l(0);
18694 ; return 0; }
18695 EOF
18696 if { (eval echo configure:18697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18697   rm -rf conftest*
18698   glibcpp_cv_func_log10l_use=yes
18699 else
18700   echo "configure: failed program was:" >&5
18701   cat conftest.$ac_ext >&5
18702   rm -rf conftest*
18703   glibcpp_cv_func_log10l_use=no
18704 fi
18705 rm -f conftest*
18706       ac_ext=c
18707 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18708 ac_cpp='$CPP $CPPFLAGS'
18709 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18710 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18711 cross_compiling=$ac_cv_prog_cc_cross
18712
18713     
18714 fi
18715
18716   fi
18717   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
18718
18719   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
18720     for ac_func in log10l
18721 do
18722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18723 echo "configure:18724: checking for $ac_func" >&5
18724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18725   echo $ac_n "(cached) $ac_c" 1>&6
18726 else
18727   cat > conftest.$ac_ext <<EOF
18728 #line 18729 "configure"
18729 #include "confdefs.h"
18730 /* System header to define __stub macros and hopefully few prototypes,
18731     which can conflict with char $ac_func(); below.  */
18732 #include <assert.h>
18733 /* Override any gcc2 internal prototype to avoid an error.  */
18734 /* We use char because int might match the return type of a gcc2
18735     builtin and then its argument prototype would still apply.  */
18736 char $ac_func();
18737
18738 int main() {
18739
18740 /* The GNU C library defines this for functions which it implements
18741     to always fail with ENOSYS.  Some functions are actually named
18742     something starting with __ and the normal name is an alias.  */
18743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18744 choke me
18745 #else
18746 $ac_func();
18747 #endif
18748
18749 ; return 0; }
18750 EOF
18751 if { (eval echo configure:18752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18752   rm -rf conftest*
18753   eval "ac_cv_func_$ac_func=yes"
18754 else
18755   echo "configure: failed program was:" >&5
18756   cat conftest.$ac_ext >&5
18757   rm -rf conftest*
18758   eval "ac_cv_func_$ac_func=no"
18759 fi
18760 rm -f conftest*
18761 fi
18762
18763 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18764   echo "$ac_t""yes" 1>&6
18765     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18766   cat >> confdefs.h <<EOF
18767 #define $ac_tr_func 1
18768 EOF
18769  
18770 else
18771   echo "$ac_t""no" 1>&6
18772 fi
18773 done
18774     
18775   else
18776     
18777   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18778 echo "configure:18779: checking for _log10l declaration" >&5
18779   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
18780     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
18781   echo $ac_n "(cached) $ac_c" 1>&6
18782 else
18783   
18784       
18785       ac_ext=C
18786 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18787 ac_cpp='$CXXCPP $CPPFLAGS'
18788 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18789 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18790 cross_compiling=$ac_cv_prog_cxx_cross
18791
18792       cat > conftest.$ac_ext <<EOF
18793 #line 18794 "configure"
18794 #include "confdefs.h"
18795 #include <math.h>
18796                       #ifdef HAVE_IEEEFP_H
18797                       #include <ieeefp.h>
18798                       #endif
18799                      
18800 int main() {
18801  _log10l(0);
18802 ; return 0; }
18803 EOF
18804 if { (eval echo configure:18805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18805   rm -rf conftest*
18806   glibcpp_cv_func__log10l_use=yes
18807 else
18808   echo "configure: failed program was:" >&5
18809   cat conftest.$ac_ext >&5
18810   rm -rf conftest*
18811   glibcpp_cv_func__log10l_use=no
18812 fi
18813 rm -f conftest*
18814       ac_ext=c
18815 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18816 ac_cpp='$CPP $CPPFLAGS'
18817 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18818 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18819 cross_compiling=$ac_cv_prog_cc_cross
18820
18821     
18822 fi
18823
18824   fi
18825   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
18826
18827     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
18828       for ac_func in _log10l
18829 do
18830 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18831 echo "configure:18832: checking for $ac_func" >&5
18832 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18833   echo $ac_n "(cached) $ac_c" 1>&6
18834 else
18835   cat > conftest.$ac_ext <<EOF
18836 #line 18837 "configure"
18837 #include "confdefs.h"
18838 /* System header to define __stub macros and hopefully few prototypes,
18839     which can conflict with char $ac_func(); below.  */
18840 #include <assert.h>
18841 /* Override any gcc2 internal prototype to avoid an error.  */
18842 /* We use char because int might match the return type of a gcc2
18843     builtin and then its argument prototype would still apply.  */
18844 char $ac_func();
18845
18846 int main() {
18847
18848 /* The GNU C library defines this for functions which it implements
18849     to always fail with ENOSYS.  Some functions are actually named
18850     something starting with __ and the normal name is an alias.  */
18851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18852 choke me
18853 #else
18854 $ac_func();
18855 #endif
18856
18857 ; return 0; }
18858 EOF
18859 if { (eval echo configure:18860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18860   rm -rf conftest*
18861   eval "ac_cv_func_$ac_func=yes"
18862 else
18863   echo "configure: failed program was:" >&5
18864   cat conftest.$ac_ext >&5
18865   rm -rf conftest*
18866   eval "ac_cv_func_$ac_func=no"
18867 fi
18868 rm -f conftest*
18869 fi
18870
18871 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18872   echo "$ac_t""yes" 1>&6
18873     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18874   cat >> confdefs.h <<EOF
18875 #define $ac_tr_func 1
18876 EOF
18877  
18878 else
18879   echo "$ac_t""no" 1>&6
18880 fi
18881 done
18882     
18883     fi
18884   fi
18885
18886   
18887   
18888   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
18889 echo "configure:18890: checking for modfl declaration" >&5
18890   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
18891     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
18892   echo $ac_n "(cached) $ac_c" 1>&6
18893 else
18894   
18895       
18896       ac_ext=C
18897 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18898 ac_cpp='$CXXCPP $CPPFLAGS'
18899 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18900 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18901 cross_compiling=$ac_cv_prog_cxx_cross
18902
18903       cat > conftest.$ac_ext <<EOF
18904 #line 18905 "configure"
18905 #include "confdefs.h"
18906 #include <math.h>
18907 int main() {
18908  modfl(0, 0);
18909 ; return 0; }
18910 EOF
18911 if { (eval echo configure:18912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18912   rm -rf conftest*
18913   glibcpp_cv_func_modfl_use=yes
18914 else
18915   echo "configure: failed program was:" >&5
18916   cat conftest.$ac_ext >&5
18917   rm -rf conftest*
18918   glibcpp_cv_func_modfl_use=no
18919 fi
18920 rm -f conftest*
18921       ac_ext=c
18922 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18923 ac_cpp='$CPP $CPPFLAGS'
18924 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18925 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18926 cross_compiling=$ac_cv_prog_cc_cross
18927
18928     
18929 fi
18930
18931   fi
18932   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
18933
18934   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
18935     for ac_func in modfl
18936 do
18937 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18938 echo "configure:18939: checking for $ac_func" >&5
18939 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18940   echo $ac_n "(cached) $ac_c" 1>&6
18941 else
18942   cat > conftest.$ac_ext <<EOF
18943 #line 18944 "configure"
18944 #include "confdefs.h"
18945 /* System header to define __stub macros and hopefully few prototypes,
18946     which can conflict with char $ac_func(); below.  */
18947 #include <assert.h>
18948 /* Override any gcc2 internal prototype to avoid an error.  */
18949 /* We use char because int might match the return type of a gcc2
18950     builtin and then its argument prototype would still apply.  */
18951 char $ac_func();
18952
18953 int main() {
18954
18955 /* The GNU C library defines this for functions which it implements
18956     to always fail with ENOSYS.  Some functions are actually named
18957     something starting with __ and the normal name is an alias.  */
18958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18959 choke me
18960 #else
18961 $ac_func();
18962 #endif
18963
18964 ; return 0; }
18965 EOF
18966 if { (eval echo configure:18967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18967   rm -rf conftest*
18968   eval "ac_cv_func_$ac_func=yes"
18969 else
18970   echo "configure: failed program was:" >&5
18971   cat conftest.$ac_ext >&5
18972   rm -rf conftest*
18973   eval "ac_cv_func_$ac_func=no"
18974 fi
18975 rm -f conftest*
18976 fi
18977
18978 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18979   echo "$ac_t""yes" 1>&6
18980     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18981   cat >> confdefs.h <<EOF
18982 #define $ac_tr_func 1
18983 EOF
18984  
18985 else
18986   echo "$ac_t""no" 1>&6
18987 fi
18988 done
18989     
18990   else
18991     
18992   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
18993 echo "configure:18994: checking for _modfl declaration" >&5
18994   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
18995     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
18996   echo $ac_n "(cached) $ac_c" 1>&6
18997 else
18998   
18999       
19000       ac_ext=C
19001 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19002 ac_cpp='$CXXCPP $CPPFLAGS'
19003 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19004 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19005 cross_compiling=$ac_cv_prog_cxx_cross
19006
19007       cat > conftest.$ac_ext <<EOF
19008 #line 19009 "configure"
19009 #include "confdefs.h"
19010 #include <math.h>
19011 int main() {
19012  _modfl(0, 0);
19013 ; return 0; }
19014 EOF
19015 if { (eval echo configure:19016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19016   rm -rf conftest*
19017   glibcpp_cv_func__modfl_use=yes
19018 else
19019   echo "configure: failed program was:" >&5
19020   cat conftest.$ac_ext >&5
19021   rm -rf conftest*
19022   glibcpp_cv_func__modfl_use=no
19023 fi
19024 rm -f conftest*
19025       ac_ext=c
19026 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19027 ac_cpp='$CPP $CPPFLAGS'
19028 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19029 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19030 cross_compiling=$ac_cv_prog_cc_cross
19031
19032     
19033 fi
19034
19035   fi
19036   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
19037
19038     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
19039       for ac_func in _modfl
19040 do
19041 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19042 echo "configure:19043: checking for $ac_func" >&5
19043 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19044   echo $ac_n "(cached) $ac_c" 1>&6
19045 else
19046   cat > conftest.$ac_ext <<EOF
19047 #line 19048 "configure"
19048 #include "confdefs.h"
19049 /* System header to define __stub macros and hopefully few prototypes,
19050     which can conflict with char $ac_func(); below.  */
19051 #include <assert.h>
19052 /* Override any gcc2 internal prototype to avoid an error.  */
19053 /* We use char because int might match the return type of a gcc2
19054     builtin and then its argument prototype would still apply.  */
19055 char $ac_func();
19056
19057 int main() {
19058
19059 /* The GNU C library defines this for functions which it implements
19060     to always fail with ENOSYS.  Some functions are actually named
19061     something starting with __ and the normal name is an alias.  */
19062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19063 choke me
19064 #else
19065 $ac_func();
19066 #endif
19067
19068 ; return 0; }
19069 EOF
19070 if { (eval echo configure:19071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19071   rm -rf conftest*
19072   eval "ac_cv_func_$ac_func=yes"
19073 else
19074   echo "configure: failed program was:" >&5
19075   cat conftest.$ac_ext >&5
19076   rm -rf conftest*
19077   eval "ac_cv_func_$ac_func=no"
19078 fi
19079 rm -f conftest*
19080 fi
19081
19082 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19083   echo "$ac_t""yes" 1>&6
19084     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19085   cat >> confdefs.h <<EOF
19086 #define $ac_tr_func 1
19087 EOF
19088  
19089 else
19090   echo "$ac_t""no" 1>&6
19091 fi
19092 done
19093     
19094     fi
19095   fi
19096
19097   
19098   
19099   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19100 echo "configure:19101: checking for powl declaration" >&5
19101   if test x${glibcpp_cv_func_powl_use+set} != xset; then
19102     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
19103   echo $ac_n "(cached) $ac_c" 1>&6
19104 else
19105   
19106       
19107       ac_ext=C
19108 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19109 ac_cpp='$CXXCPP $CPPFLAGS'
19110 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19111 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19112 cross_compiling=$ac_cv_prog_cxx_cross
19113
19114       cat > conftest.$ac_ext <<EOF
19115 #line 19116 "configure"
19116 #include "confdefs.h"
19117 #include <math.h>
19118 int main() {
19119  powl(0, 0);
19120 ; return 0; }
19121 EOF
19122 if { (eval echo configure:19123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19123   rm -rf conftest*
19124   glibcpp_cv_func_powl_use=yes
19125 else
19126   echo "configure: failed program was:" >&5
19127   cat conftest.$ac_ext >&5
19128   rm -rf conftest*
19129   glibcpp_cv_func_powl_use=no
19130 fi
19131 rm -f conftest*
19132       ac_ext=c
19133 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19134 ac_cpp='$CPP $CPPFLAGS'
19135 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19136 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19137 cross_compiling=$ac_cv_prog_cc_cross
19138
19139     
19140 fi
19141
19142   fi
19143   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
19144
19145   if test x$glibcpp_cv_func_powl_use = x"yes"; then
19146     for ac_func in powl
19147 do
19148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19149 echo "configure:19150: checking for $ac_func" >&5
19150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19151   echo $ac_n "(cached) $ac_c" 1>&6
19152 else
19153   cat > conftest.$ac_ext <<EOF
19154 #line 19155 "configure"
19155 #include "confdefs.h"
19156 /* System header to define __stub macros and hopefully few prototypes,
19157     which can conflict with char $ac_func(); below.  */
19158 #include <assert.h>
19159 /* Override any gcc2 internal prototype to avoid an error.  */
19160 /* We use char because int might match the return type of a gcc2
19161     builtin and then its argument prototype would still apply.  */
19162 char $ac_func();
19163
19164 int main() {
19165
19166 /* The GNU C library defines this for functions which it implements
19167     to always fail with ENOSYS.  Some functions are actually named
19168     something starting with __ and the normal name is an alias.  */
19169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19170 choke me
19171 #else
19172 $ac_func();
19173 #endif
19174
19175 ; return 0; }
19176 EOF
19177 if { (eval echo configure:19178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19178   rm -rf conftest*
19179   eval "ac_cv_func_$ac_func=yes"
19180 else
19181   echo "configure: failed program was:" >&5
19182   cat conftest.$ac_ext >&5
19183   rm -rf conftest*
19184   eval "ac_cv_func_$ac_func=no"
19185 fi
19186 rm -f conftest*
19187 fi
19188
19189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19190   echo "$ac_t""yes" 1>&6
19191     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19192   cat >> confdefs.h <<EOF
19193 #define $ac_tr_func 1
19194 EOF
19195  
19196 else
19197   echo "$ac_t""no" 1>&6
19198 fi
19199 done
19200     
19201   else
19202     
19203   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19204 echo "configure:19205: checking for _powl declaration" >&5
19205   if test x${glibcpp_cv_func__powl_use+set} != xset; then
19206     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
19207   echo $ac_n "(cached) $ac_c" 1>&6
19208 else
19209   
19210       
19211       ac_ext=C
19212 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19213 ac_cpp='$CXXCPP $CPPFLAGS'
19214 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19215 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19216 cross_compiling=$ac_cv_prog_cxx_cross
19217
19218       cat > conftest.$ac_ext <<EOF
19219 #line 19220 "configure"
19220 #include "confdefs.h"
19221 #include <math.h>
19222 int main() {
19223  _powl(0, 0);
19224 ; return 0; }
19225 EOF
19226 if { (eval echo configure:19227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19227   rm -rf conftest*
19228   glibcpp_cv_func__powl_use=yes
19229 else
19230   echo "configure: failed program was:" >&5
19231   cat conftest.$ac_ext >&5
19232   rm -rf conftest*
19233   glibcpp_cv_func__powl_use=no
19234 fi
19235 rm -f conftest*
19236       ac_ext=c
19237 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19238 ac_cpp='$CPP $CPPFLAGS'
19239 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19240 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19241 cross_compiling=$ac_cv_prog_cc_cross
19242
19243     
19244 fi
19245
19246   fi
19247   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
19248
19249     if test x$glibcpp_cv_func__powl_use = x"yes"; then
19250       for ac_func in _powl
19251 do
19252 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19253 echo "configure:19254: checking for $ac_func" >&5
19254 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19255   echo $ac_n "(cached) $ac_c" 1>&6
19256 else
19257   cat > conftest.$ac_ext <<EOF
19258 #line 19259 "configure"
19259 #include "confdefs.h"
19260 /* System header to define __stub macros and hopefully few prototypes,
19261     which can conflict with char $ac_func(); below.  */
19262 #include <assert.h>
19263 /* Override any gcc2 internal prototype to avoid an error.  */
19264 /* We use char because int might match the return type of a gcc2
19265     builtin and then its argument prototype would still apply.  */
19266 char $ac_func();
19267
19268 int main() {
19269
19270 /* The GNU C library defines this for functions which it implements
19271     to always fail with ENOSYS.  Some functions are actually named
19272     something starting with __ and the normal name is an alias.  */
19273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19274 choke me
19275 #else
19276 $ac_func();
19277 #endif
19278
19279 ; return 0; }
19280 EOF
19281 if { (eval echo configure:19282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19282   rm -rf conftest*
19283   eval "ac_cv_func_$ac_func=yes"
19284 else
19285   echo "configure: failed program was:" >&5
19286   cat conftest.$ac_ext >&5
19287   rm -rf conftest*
19288   eval "ac_cv_func_$ac_func=no"
19289 fi
19290 rm -f conftest*
19291 fi
19292
19293 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19294   echo "$ac_t""yes" 1>&6
19295     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19296   cat >> confdefs.h <<EOF
19297 #define $ac_tr_func 1
19298 EOF
19299  
19300 else
19301   echo "$ac_t""no" 1>&6
19302 fi
19303 done
19304     
19305     fi
19306   fi
19307
19308   
19309   
19310   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19311 echo "configure:19312: checking for sqrtl declaration" >&5
19312   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
19313     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
19314   echo $ac_n "(cached) $ac_c" 1>&6
19315 else
19316   
19317       
19318       ac_ext=C
19319 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19320 ac_cpp='$CXXCPP $CPPFLAGS'
19321 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19322 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19323 cross_compiling=$ac_cv_prog_cxx_cross
19324
19325       cat > conftest.$ac_ext <<EOF
19326 #line 19327 "configure"
19327 #include "confdefs.h"
19328 #include <math.h>
19329                       #ifdef HAVE_IEEEFP_H
19330                       #include <ieeefp.h>
19331                       #endif
19332                      
19333 int main() {
19334  sqrtl(0);
19335 ; return 0; }
19336 EOF
19337 if { (eval echo configure:19338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19338   rm -rf conftest*
19339   glibcpp_cv_func_sqrtl_use=yes
19340 else
19341   echo "configure: failed program was:" >&5
19342   cat conftest.$ac_ext >&5
19343   rm -rf conftest*
19344   glibcpp_cv_func_sqrtl_use=no
19345 fi
19346 rm -f conftest*
19347       ac_ext=c
19348 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19349 ac_cpp='$CPP $CPPFLAGS'
19350 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19351 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19352 cross_compiling=$ac_cv_prog_cc_cross
19353
19354     
19355 fi
19356
19357   fi
19358   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
19359
19360   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
19361     for ac_func in sqrtl
19362 do
19363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19364 echo "configure:19365: checking for $ac_func" >&5
19365 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19366   echo $ac_n "(cached) $ac_c" 1>&6
19367 else
19368   cat > conftest.$ac_ext <<EOF
19369 #line 19370 "configure"
19370 #include "confdefs.h"
19371 /* System header to define __stub macros and hopefully few prototypes,
19372     which can conflict with char $ac_func(); below.  */
19373 #include <assert.h>
19374 /* Override any gcc2 internal prototype to avoid an error.  */
19375 /* We use char because int might match the return type of a gcc2
19376     builtin and then its argument prototype would still apply.  */
19377 char $ac_func();
19378
19379 int main() {
19380
19381 /* The GNU C library defines this for functions which it implements
19382     to always fail with ENOSYS.  Some functions are actually named
19383     something starting with __ and the normal name is an alias.  */
19384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19385 choke me
19386 #else
19387 $ac_func();
19388 #endif
19389
19390 ; return 0; }
19391 EOF
19392 if { (eval echo configure:19393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19393   rm -rf conftest*
19394   eval "ac_cv_func_$ac_func=yes"
19395 else
19396   echo "configure: failed program was:" >&5
19397   cat conftest.$ac_ext >&5
19398   rm -rf conftest*
19399   eval "ac_cv_func_$ac_func=no"
19400 fi
19401 rm -f conftest*
19402 fi
19403
19404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19405   echo "$ac_t""yes" 1>&6
19406     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19407   cat >> confdefs.h <<EOF
19408 #define $ac_tr_func 1
19409 EOF
19410  
19411 else
19412   echo "$ac_t""no" 1>&6
19413 fi
19414 done
19415     
19416   else
19417     
19418   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19419 echo "configure:19420: checking for _sqrtl declaration" >&5
19420   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
19421     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
19422   echo $ac_n "(cached) $ac_c" 1>&6
19423 else
19424   
19425       
19426       ac_ext=C
19427 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19428 ac_cpp='$CXXCPP $CPPFLAGS'
19429 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19430 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19431 cross_compiling=$ac_cv_prog_cxx_cross
19432
19433       cat > conftest.$ac_ext <<EOF
19434 #line 19435 "configure"
19435 #include "confdefs.h"
19436 #include <math.h>
19437                       #ifdef HAVE_IEEEFP_H
19438                       #include <ieeefp.h>
19439                       #endif
19440                      
19441 int main() {
19442  _sqrtl(0);
19443 ; return 0; }
19444 EOF
19445 if { (eval echo configure:19446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19446   rm -rf conftest*
19447   glibcpp_cv_func__sqrtl_use=yes
19448 else
19449   echo "configure: failed program was:" >&5
19450   cat conftest.$ac_ext >&5
19451   rm -rf conftest*
19452   glibcpp_cv_func__sqrtl_use=no
19453 fi
19454 rm -f conftest*
19455       ac_ext=c
19456 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19457 ac_cpp='$CPP $CPPFLAGS'
19458 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19459 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19460 cross_compiling=$ac_cv_prog_cc_cross
19461
19462     
19463 fi
19464
19465   fi
19466   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
19467
19468     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
19469       for ac_func in _sqrtl
19470 do
19471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19472 echo "configure:19473: checking for $ac_func" >&5
19473 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19474   echo $ac_n "(cached) $ac_c" 1>&6
19475 else
19476   cat > conftest.$ac_ext <<EOF
19477 #line 19478 "configure"
19478 #include "confdefs.h"
19479 /* System header to define __stub macros and hopefully few prototypes,
19480     which can conflict with char $ac_func(); below.  */
19481 #include <assert.h>
19482 /* Override any gcc2 internal prototype to avoid an error.  */
19483 /* We use char because int might match the return type of a gcc2
19484     builtin and then its argument prototype would still apply.  */
19485 char $ac_func();
19486
19487 int main() {
19488
19489 /* The GNU C library defines this for functions which it implements
19490     to always fail with ENOSYS.  Some functions are actually named
19491     something starting with __ and the normal name is an alias.  */
19492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19493 choke me
19494 #else
19495 $ac_func();
19496 #endif
19497
19498 ; return 0; }
19499 EOF
19500 if { (eval echo configure:19501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19501   rm -rf conftest*
19502   eval "ac_cv_func_$ac_func=yes"
19503 else
19504   echo "configure: failed program was:" >&5
19505   cat conftest.$ac_ext >&5
19506   rm -rf conftest*
19507   eval "ac_cv_func_$ac_func=no"
19508 fi
19509 rm -f conftest*
19510 fi
19511
19512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19513   echo "$ac_t""yes" 1>&6
19514     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19515   cat >> confdefs.h <<EOF
19516 #define $ac_tr_func 1
19517 EOF
19518  
19519 else
19520   echo "$ac_t""no" 1>&6
19521 fi
19522 done
19523     
19524     fi
19525   fi
19526
19527   
19528   
19529   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19530 echo "configure:19531: checking for sincosl declaration" >&5
19531   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
19532     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
19533   echo $ac_n "(cached) $ac_c" 1>&6
19534 else
19535   
19536       
19537       ac_ext=C
19538 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19539 ac_cpp='$CXXCPP $CPPFLAGS'
19540 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19541 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19542 cross_compiling=$ac_cv_prog_cxx_cross
19543
19544       cat > conftest.$ac_ext <<EOF
19545 #line 19546 "configure"
19546 #include "confdefs.h"
19547 #include <math.h>
19548 int main() {
19549  sincosl(0, 0, 0);
19550 ; return 0; }
19551 EOF
19552 if { (eval echo configure:19553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19553   rm -rf conftest*
19554   glibcpp_cv_func_sincosl_use=yes
19555 else
19556   echo "configure: failed program was:" >&5
19557   cat conftest.$ac_ext >&5
19558   rm -rf conftest*
19559   glibcpp_cv_func_sincosl_use=no
19560 fi
19561 rm -f conftest*
19562       ac_ext=c
19563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19564 ac_cpp='$CPP $CPPFLAGS'
19565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19566 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19567 cross_compiling=$ac_cv_prog_cc_cross
19568
19569     
19570 fi
19571
19572   fi
19573   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
19574
19575   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
19576     for ac_func in sincosl
19577 do
19578 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19579 echo "configure:19580: checking for $ac_func" >&5
19580 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19581   echo $ac_n "(cached) $ac_c" 1>&6
19582 else
19583   cat > conftest.$ac_ext <<EOF
19584 #line 19585 "configure"
19585 #include "confdefs.h"
19586 /* System header to define __stub macros and hopefully few prototypes,
19587     which can conflict with char $ac_func(); below.  */
19588 #include <assert.h>
19589 /* Override any gcc2 internal prototype to avoid an error.  */
19590 /* We use char because int might match the return type of a gcc2
19591     builtin and then its argument prototype would still apply.  */
19592 char $ac_func();
19593
19594 int main() {
19595
19596 /* The GNU C library defines this for functions which it implements
19597     to always fail with ENOSYS.  Some functions are actually named
19598     something starting with __ and the normal name is an alias.  */
19599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19600 choke me
19601 #else
19602 $ac_func();
19603 #endif
19604
19605 ; return 0; }
19606 EOF
19607 if { (eval echo configure:19608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19608   rm -rf conftest*
19609   eval "ac_cv_func_$ac_func=yes"
19610 else
19611   echo "configure: failed program was:" >&5
19612   cat conftest.$ac_ext >&5
19613   rm -rf conftest*
19614   eval "ac_cv_func_$ac_func=no"
19615 fi
19616 rm -f conftest*
19617 fi
19618
19619 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19620   echo "$ac_t""yes" 1>&6
19621     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19622   cat >> confdefs.h <<EOF
19623 #define $ac_tr_func 1
19624 EOF
19625  
19626 else
19627   echo "$ac_t""no" 1>&6
19628 fi
19629 done
19630     
19631   else
19632     
19633   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19634 echo "configure:19635: checking for _sincosl declaration" >&5
19635   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
19636     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
19637   echo $ac_n "(cached) $ac_c" 1>&6
19638 else
19639   
19640       
19641       ac_ext=C
19642 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19643 ac_cpp='$CXXCPP $CPPFLAGS'
19644 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19645 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19646 cross_compiling=$ac_cv_prog_cxx_cross
19647
19648       cat > conftest.$ac_ext <<EOF
19649 #line 19650 "configure"
19650 #include "confdefs.h"
19651 #include <math.h>
19652 int main() {
19653  _sincosl(0, 0, 0);
19654 ; return 0; }
19655 EOF
19656 if { (eval echo configure:19657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19657   rm -rf conftest*
19658   glibcpp_cv_func__sincosl_use=yes
19659 else
19660   echo "configure: failed program was:" >&5
19661   cat conftest.$ac_ext >&5
19662   rm -rf conftest*
19663   glibcpp_cv_func__sincosl_use=no
19664 fi
19665 rm -f conftest*
19666       ac_ext=c
19667 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19668 ac_cpp='$CPP $CPPFLAGS'
19669 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19670 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19671 cross_compiling=$ac_cv_prog_cc_cross
19672
19673     
19674 fi
19675
19676   fi
19677   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
19678
19679     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
19680       for ac_func in _sincosl
19681 do
19682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19683 echo "configure:19684: checking for $ac_func" >&5
19684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19685   echo $ac_n "(cached) $ac_c" 1>&6
19686 else
19687   cat > conftest.$ac_ext <<EOF
19688 #line 19689 "configure"
19689 #include "confdefs.h"
19690 /* System header to define __stub macros and hopefully few prototypes,
19691     which can conflict with char $ac_func(); below.  */
19692 #include <assert.h>
19693 /* Override any gcc2 internal prototype to avoid an error.  */
19694 /* We use char because int might match the return type of a gcc2
19695     builtin and then its argument prototype would still apply.  */
19696 char $ac_func();
19697
19698 int main() {
19699
19700 /* The GNU C library defines this for functions which it implements
19701     to always fail with ENOSYS.  Some functions are actually named
19702     something starting with __ and the normal name is an alias.  */
19703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19704 choke me
19705 #else
19706 $ac_func();
19707 #endif
19708
19709 ; return 0; }
19710 EOF
19711 if { (eval echo configure:19712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19712   rm -rf conftest*
19713   eval "ac_cv_func_$ac_func=yes"
19714 else
19715   echo "configure: failed program was:" >&5
19716   cat conftest.$ac_ext >&5
19717   rm -rf conftest*
19718   eval "ac_cv_func_$ac_func=no"
19719 fi
19720 rm -f conftest*
19721 fi
19722
19723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19724   echo "$ac_t""yes" 1>&6
19725     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19726   cat >> confdefs.h <<EOF
19727 #define $ac_tr_func 1
19728 EOF
19729  
19730 else
19731   echo "$ac_t""no" 1>&6
19732 fi
19733 done
19734     
19735     fi
19736   fi
19737
19738   
19739   
19740   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19741 echo "configure:19742: checking for finitel declaration" >&5
19742   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
19743     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
19744   echo $ac_n "(cached) $ac_c" 1>&6
19745 else
19746   
19747       
19748       ac_ext=C
19749 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19750 ac_cpp='$CXXCPP $CPPFLAGS'
19751 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19752 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19753 cross_compiling=$ac_cv_prog_cxx_cross
19754
19755       cat > conftest.$ac_ext <<EOF
19756 #line 19757 "configure"
19757 #include "confdefs.h"
19758 #include <math.h>
19759                       #ifdef HAVE_IEEEFP_H
19760                       #include <ieeefp.h>
19761                       #endif
19762                      
19763 int main() {
19764  finitel(0);
19765 ; return 0; }
19766 EOF
19767 if { (eval echo configure:19768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19768   rm -rf conftest*
19769   glibcpp_cv_func_finitel_use=yes
19770 else
19771   echo "configure: failed program was:" >&5
19772   cat conftest.$ac_ext >&5
19773   rm -rf conftest*
19774   glibcpp_cv_func_finitel_use=no
19775 fi
19776 rm -f conftest*
19777       ac_ext=c
19778 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19779 ac_cpp='$CPP $CPPFLAGS'
19780 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19781 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19782 cross_compiling=$ac_cv_prog_cc_cross
19783
19784     
19785 fi
19786
19787   fi
19788   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
19789
19790   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
19791     for ac_func in finitel
19792 do
19793 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19794 echo "configure:19795: checking for $ac_func" >&5
19795 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19796   echo $ac_n "(cached) $ac_c" 1>&6
19797 else
19798   cat > conftest.$ac_ext <<EOF
19799 #line 19800 "configure"
19800 #include "confdefs.h"
19801 /* System header to define __stub macros and hopefully few prototypes,
19802     which can conflict with char $ac_func(); below.  */
19803 #include <assert.h>
19804 /* Override any gcc2 internal prototype to avoid an error.  */
19805 /* We use char because int might match the return type of a gcc2
19806     builtin and then its argument prototype would still apply.  */
19807 char $ac_func();
19808
19809 int main() {
19810
19811 /* The GNU C library defines this for functions which it implements
19812     to always fail with ENOSYS.  Some functions are actually named
19813     something starting with __ and the normal name is an alias.  */
19814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19815 choke me
19816 #else
19817 $ac_func();
19818 #endif
19819
19820 ; return 0; }
19821 EOF
19822 if { (eval echo configure:19823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19823   rm -rf conftest*
19824   eval "ac_cv_func_$ac_func=yes"
19825 else
19826   echo "configure: failed program was:" >&5
19827   cat conftest.$ac_ext >&5
19828   rm -rf conftest*
19829   eval "ac_cv_func_$ac_func=no"
19830 fi
19831 rm -f conftest*
19832 fi
19833
19834 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19835   echo "$ac_t""yes" 1>&6
19836     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19837   cat >> confdefs.h <<EOF
19838 #define $ac_tr_func 1
19839 EOF
19840  
19841 else
19842   echo "$ac_t""no" 1>&6
19843 fi
19844 done
19845     
19846   else
19847     
19848   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
19849 echo "configure:19850: checking for _finitel declaration" >&5
19850   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
19851     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
19852   echo $ac_n "(cached) $ac_c" 1>&6
19853 else
19854   
19855       
19856       ac_ext=C
19857 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19858 ac_cpp='$CXXCPP $CPPFLAGS'
19859 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19860 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19861 cross_compiling=$ac_cv_prog_cxx_cross
19862
19863       cat > conftest.$ac_ext <<EOF
19864 #line 19865 "configure"
19865 #include "confdefs.h"
19866 #include <math.h>
19867                       #ifdef HAVE_IEEEFP_H
19868                       #include <ieeefp.h>
19869                       #endif
19870                      
19871 int main() {
19872  _finitel(0);
19873 ; return 0; }
19874 EOF
19875 if { (eval echo configure:19876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19876   rm -rf conftest*
19877   glibcpp_cv_func__finitel_use=yes
19878 else
19879   echo "configure: failed program was:" >&5
19880   cat conftest.$ac_ext >&5
19881   rm -rf conftest*
19882   glibcpp_cv_func__finitel_use=no
19883 fi
19884 rm -f conftest*
19885       ac_ext=c
19886 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19887 ac_cpp='$CPP $CPPFLAGS'
19888 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19889 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19890 cross_compiling=$ac_cv_prog_cc_cross
19891
19892     
19893 fi
19894
19895   fi
19896   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
19897
19898     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
19899       for ac_func in _finitel
19900 do
19901 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19902 echo "configure:19903: checking for $ac_func" >&5
19903 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19904   echo $ac_n "(cached) $ac_c" 1>&6
19905 else
19906   cat > conftest.$ac_ext <<EOF
19907 #line 19908 "configure"
19908 #include "confdefs.h"
19909 /* System header to define __stub macros and hopefully few prototypes,
19910     which can conflict with char $ac_func(); below.  */
19911 #include <assert.h>
19912 /* Override any gcc2 internal prototype to avoid an error.  */
19913 /* We use char because int might match the return type of a gcc2
19914     builtin and then its argument prototype would still apply.  */
19915 char $ac_func();
19916
19917 int main() {
19918
19919 /* The GNU C library defines this for functions which it implements
19920     to always fail with ENOSYS.  Some functions are actually named
19921     something starting with __ and the normal name is an alias.  */
19922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19923 choke me
19924 #else
19925 $ac_func();
19926 #endif
19927
19928 ; return 0; }
19929 EOF
19930 if { (eval echo configure:19931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19931   rm -rf conftest*
19932   eval "ac_cv_func_$ac_func=yes"
19933 else
19934   echo "configure: failed program was:" >&5
19935   cat conftest.$ac_ext >&5
19936   rm -rf conftest*
19937   eval "ac_cv_func_$ac_func=no"
19938 fi
19939 rm -f conftest*
19940 fi
19941
19942 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19943   echo "$ac_t""yes" 1>&6
19944     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19945   cat >> confdefs.h <<EOF
19946 #define $ac_tr_func 1
19947 EOF
19948  
19949 else
19950   echo "$ac_t""no" 1>&6
19951 fi
19952 done
19953     
19954     fi
19955   fi
19956
19957
19958         
19959     
19960   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
19961 echo "configure:19962: checking for _float trig functions" >&5
19962   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
19963   echo $ac_n "(cached) $ac_c" 1>&6
19964 else
19965   
19966     
19967     ac_ext=C
19968 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19969 ac_cpp='$CXXCPP $CPPFLAGS'
19970 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19971 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19972 cross_compiling=$ac_cv_prog_cxx_cross
19973
19974     cat > conftest.$ac_ext <<EOF
19975 #line 19976 "configure"
19976 #include "confdefs.h"
19977 #include <math.h>
19978 int main() {
19979  `for x in _acosf _asinf _atanf \
19980                                           _cosf _sinf _tanf \
19981                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
19982 ; return 0; }
19983 EOF
19984 if { (eval echo configure:19985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19985   rm -rf conftest*
19986   glibcpp_cv_func__float_trig_use=yes
19987 else
19988   echo "configure: failed program was:" >&5
19989   cat conftest.$ac_ext >&5
19990   rm -rf conftest*
19991   glibcpp_cv_func__float_trig_use=no
19992 fi
19993 rm -f conftest*
19994     ac_ext=c
19995 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19996 ac_cpp='$CPP $CPPFLAGS'
19997 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19998 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19999 cross_compiling=$ac_cv_prog_cc_cross
20000
20001 fi
20002
20003   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
20004   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
20005     for ac_func in _acosf _asinf _atanf \
20006                                           _cosf _sinf _tanf \
20007                                           _coshf _sinhf _tanhf
20008 do
20009 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20010 echo "configure:20011: checking for $ac_func" >&5
20011 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20012   echo $ac_n "(cached) $ac_c" 1>&6
20013 else
20014   cat > conftest.$ac_ext <<EOF
20015 #line 20016 "configure"
20016 #include "confdefs.h"
20017 /* System header to define __stub macros and hopefully few prototypes,
20018     which can conflict with char $ac_func(); below.  */
20019 #include <assert.h>
20020 /* Override any gcc2 internal prototype to avoid an error.  */
20021 /* We use char because int might match the return type of a gcc2
20022     builtin and then its argument prototype would still apply.  */
20023 char $ac_func();
20024
20025 int main() {
20026
20027 /* The GNU C library defines this for functions which it implements
20028     to always fail with ENOSYS.  Some functions are actually named
20029     something starting with __ and the normal name is an alias.  */
20030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20031 choke me
20032 #else
20033 $ac_func();
20034 #endif
20035
20036 ; return 0; }
20037 EOF
20038 if { (eval echo configure:20039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20039   rm -rf conftest*
20040   eval "ac_cv_func_$ac_func=yes"
20041 else
20042   echo "configure: failed program was:" >&5
20043   cat conftest.$ac_ext >&5
20044   rm -rf conftest*
20045   eval "ac_cv_func_$ac_func=no"
20046 fi
20047 rm -f conftest*
20048 fi
20049
20050 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20051   echo "$ac_t""yes" 1>&6
20052     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20053   cat >> confdefs.h <<EOF
20054 #define $ac_tr_func 1
20055 EOF
20056  
20057 else
20058   echo "$ac_t""no" 1>&6
20059 fi
20060 done
20061
20062   fi
20063
20064   
20065   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20066 echo "configure:20067: checking for _float round functions" >&5
20067   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
20068   echo $ac_n "(cached) $ac_c" 1>&6
20069 else
20070   
20071     
20072     ac_ext=C
20073 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20074 ac_cpp='$CXXCPP $CPPFLAGS'
20075 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20076 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20077 cross_compiling=$ac_cv_prog_cxx_cross
20078
20079     cat > conftest.$ac_ext <<EOF
20080 #line 20081 "configure"
20081 #include "confdefs.h"
20082 #include <math.h>
20083 int main() {
20084  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
20085 ; return 0; }
20086 EOF
20087 if { (eval echo configure:20088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20088   rm -rf conftest*
20089   glibcpp_cv_func__float_round_use=yes
20090 else
20091   echo "configure: failed program was:" >&5
20092   cat conftest.$ac_ext >&5
20093   rm -rf conftest*
20094   glibcpp_cv_func__float_round_use=no
20095 fi
20096 rm -f conftest*
20097     ac_ext=c
20098 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20099 ac_cpp='$CPP $CPPFLAGS'
20100 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20101 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20102 cross_compiling=$ac_cv_prog_cc_cross
20103
20104 fi
20105
20106   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
20107   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
20108     for ac_func in _ceilf _floorf
20109 do
20110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20111 echo "configure:20112: checking for $ac_func" >&5
20112 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20113   echo $ac_n "(cached) $ac_c" 1>&6
20114 else
20115   cat > conftest.$ac_ext <<EOF
20116 #line 20117 "configure"
20117 #include "confdefs.h"
20118 /* System header to define __stub macros and hopefully few prototypes,
20119     which can conflict with char $ac_func(); below.  */
20120 #include <assert.h>
20121 /* Override any gcc2 internal prototype to avoid an error.  */
20122 /* We use char because int might match the return type of a gcc2
20123     builtin and then its argument prototype would still apply.  */
20124 char $ac_func();
20125
20126 int main() {
20127
20128 /* The GNU C library defines this for functions which it implements
20129     to always fail with ENOSYS.  Some functions are actually named
20130     something starting with __ and the normal name is an alias.  */
20131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20132 choke me
20133 #else
20134 $ac_func();
20135 #endif
20136
20137 ; return 0; }
20138 EOF
20139 if { (eval echo configure:20140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20140   rm -rf conftest*
20141   eval "ac_cv_func_$ac_func=yes"
20142 else
20143   echo "configure: failed program was:" >&5
20144   cat conftest.$ac_ext >&5
20145   rm -rf conftest*
20146   eval "ac_cv_func_$ac_func=no"
20147 fi
20148 rm -f conftest*
20149 fi
20150
20151 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20152   echo "$ac_t""yes" 1>&6
20153     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20154   cat >> confdefs.h <<EOF
20155 #define $ac_tr_func 1
20156 EOF
20157  
20158 else
20159   echo "$ac_t""no" 1>&6
20160 fi
20161 done
20162
20163   fi
20164
20165
20166     
20167   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20168 echo "configure:20169: checking for _long double trig functions" >&5
20169   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
20170   echo $ac_n "(cached) $ac_c" 1>&6
20171 else
20172   
20173     
20174     ac_ext=C
20175 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20176 ac_cpp='$CXXCPP $CPPFLAGS'
20177 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20178 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20179 cross_compiling=$ac_cv_prog_cxx_cross
20180
20181     cat > conftest.$ac_ext <<EOF
20182 #line 20183 "configure"
20183 #include "confdefs.h"
20184 #include <math.h>
20185 int main() {
20186  `for x in _acosl _asinl _atanl \
20187                                           _cosl _sinl _tanl \
20188                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
20189 ; return 0; }
20190 EOF
20191 if { (eval echo configure:20192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20192   rm -rf conftest*
20193   glibcpp_cv_func__long_double_trig_use=yes
20194 else
20195   echo "configure: failed program was:" >&5
20196   cat conftest.$ac_ext >&5
20197   rm -rf conftest*
20198   glibcpp_cv_func__long_double_trig_use=no
20199 fi
20200 rm -f conftest*
20201     ac_ext=c
20202 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20203 ac_cpp='$CPP $CPPFLAGS'
20204 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20205 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20206 cross_compiling=$ac_cv_prog_cc_cross
20207
20208 fi
20209
20210   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
20211   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
20212     for ac_func in _acosl _asinl _atanl \
20213                                           _cosl _sinl _tanl \
20214                                           _coshl _sinhl _tanhl
20215 do
20216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20217 echo "configure:20218: checking for $ac_func" >&5
20218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20219   echo $ac_n "(cached) $ac_c" 1>&6
20220 else
20221   cat > conftest.$ac_ext <<EOF
20222 #line 20223 "configure"
20223 #include "confdefs.h"
20224 /* System header to define __stub macros and hopefully few prototypes,
20225     which can conflict with char $ac_func(); below.  */
20226 #include <assert.h>
20227 /* Override any gcc2 internal prototype to avoid an error.  */
20228 /* We use char because int might match the return type of a gcc2
20229     builtin and then its argument prototype would still apply.  */
20230 char $ac_func();
20231
20232 int main() {
20233
20234 /* The GNU C library defines this for functions which it implements
20235     to always fail with ENOSYS.  Some functions are actually named
20236     something starting with __ and the normal name is an alias.  */
20237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20238 choke me
20239 #else
20240 $ac_func();
20241 #endif
20242
20243 ; return 0; }
20244 EOF
20245 if { (eval echo configure:20246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20246   rm -rf conftest*
20247   eval "ac_cv_func_$ac_func=yes"
20248 else
20249   echo "configure: failed program was:" >&5
20250   cat conftest.$ac_ext >&5
20251   rm -rf conftest*
20252   eval "ac_cv_func_$ac_func=no"
20253 fi
20254 rm -f conftest*
20255 fi
20256
20257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20258   echo "$ac_t""yes" 1>&6
20259     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20260   cat >> confdefs.h <<EOF
20261 #define $ac_tr_func 1
20262 EOF
20263  
20264 else
20265   echo "$ac_t""no" 1>&6
20266 fi
20267 done
20268
20269   fi
20270
20271   
20272   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20273 echo "configure:20274: checking for _long double round functions" >&5
20274   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
20275   echo $ac_n "(cached) $ac_c" 1>&6
20276 else
20277   
20278     
20279     ac_ext=C
20280 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20281 ac_cpp='$CXXCPP $CPPFLAGS'
20282 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20283 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20284 cross_compiling=$ac_cv_prog_cxx_cross
20285
20286     cat > conftest.$ac_ext <<EOF
20287 #line 20288 "configure"
20288 #include "confdefs.h"
20289 #include <math.h>
20290 int main() {
20291  `for x in _ceill _floorl; do echo "$x (0);"; done` 
20292 ; return 0; }
20293 EOF
20294 if { (eval echo configure:20295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20295   rm -rf conftest*
20296   glibcpp_cv_func__long_double_round_use=yes
20297 else
20298   echo "configure: failed program was:" >&5
20299   cat conftest.$ac_ext >&5
20300   rm -rf conftest*
20301   glibcpp_cv_func__long_double_round_use=no
20302 fi
20303 rm -f conftest*
20304     ac_ext=c
20305 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20306 ac_cpp='$CPP $CPPFLAGS'
20307 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20308 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20309 cross_compiling=$ac_cv_prog_cc_cross
20310
20311 fi
20312
20313   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
20314   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
20315     for ac_func in _ceill _floorl
20316 do
20317 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20318 echo "configure:20319: checking for $ac_func" >&5
20319 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20320   echo $ac_n "(cached) $ac_c" 1>&6
20321 else
20322   cat > conftest.$ac_ext <<EOF
20323 #line 20324 "configure"
20324 #include "confdefs.h"
20325 /* System header to define __stub macros and hopefully few prototypes,
20326     which can conflict with char $ac_func(); below.  */
20327 #include <assert.h>
20328 /* Override any gcc2 internal prototype to avoid an error.  */
20329 /* We use char because int might match the return type of a gcc2
20330     builtin and then its argument prototype would still apply.  */
20331 char $ac_func();
20332
20333 int main() {
20334
20335 /* The GNU C library defines this for functions which it implements
20336     to always fail with ENOSYS.  Some functions are actually named
20337     something starting with __ and the normal name is an alias.  */
20338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20339 choke me
20340 #else
20341 $ac_func();
20342 #endif
20343
20344 ; return 0; }
20345 EOF
20346 if { (eval echo configure:20347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20347   rm -rf conftest*
20348   eval "ac_cv_func_$ac_func=yes"
20349 else
20350   echo "configure: failed program was:" >&5
20351   cat conftest.$ac_ext >&5
20352   rm -rf conftest*
20353   eval "ac_cv_func_$ac_func=no"
20354 fi
20355 rm -f conftest*
20356 fi
20357
20358 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20359   echo "$ac_t""yes" 1>&6
20360     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20361   cat >> confdefs.h <<EOF
20362 #define $ac_tr_func 1
20363 EOF
20364  
20365 else
20366   echo "$ac_t""no" 1>&6
20367 fi
20368 done
20369
20370   fi
20371
20372
20373   LIBS="$ac_save_LIBS"
20374   CXXFLAGS="$ac_save_CXXFLAGS"
20375
20376   
20377     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
20378 echo "configure:20379: checking for main in -lm" >&5
20379 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
20380 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20381   echo $ac_n "(cached) $ac_c" 1>&6
20382 else
20383   ac_save_LIBS="$LIBS"
20384 LIBS="-lm  $LIBS"
20385 cat > conftest.$ac_ext <<EOF
20386 #line 20387 "configure"
20387 #include "confdefs.h"
20388
20389 int main() {
20390 main()
20391 ; return 0; }
20392 EOF
20393 if { (eval echo configure:20394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20394   rm -rf conftest*
20395   eval "ac_cv_lib_$ac_lib_var=yes"
20396 else
20397   echo "configure: failed program was:" >&5
20398   cat conftest.$ac_ext >&5
20399   rm -rf conftest*
20400   eval "ac_cv_lib_$ac_lib_var=no"
20401 fi
20402 rm -f conftest*
20403 LIBS="$ac_save_LIBS"
20404
20405 fi
20406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20407   echo "$ac_t""yes" 1>&6
20408     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
20409     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
20410   cat >> confdefs.h <<EOF
20411 #define $ac_tr_lib 1
20412 EOF
20413
20414   LIBS="-lm $LIBS"
20415
20416 else
20417   echo "$ac_t""no" 1>&6
20418 fi
20419
20420   for ac_func in nan copysignf
20421 do
20422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20423 echo "configure:20424: checking for $ac_func" >&5
20424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20425   echo $ac_n "(cached) $ac_c" 1>&6
20426 else
20427   cat > conftest.$ac_ext <<EOF
20428 #line 20429 "configure"
20429 #include "confdefs.h"
20430 /* System header to define __stub macros and hopefully few prototypes,
20431     which can conflict with char $ac_func(); below.  */
20432 #include <assert.h>
20433 /* Override any gcc2 internal prototype to avoid an error.  */
20434 /* We use char because int might match the return type of a gcc2
20435     builtin and then its argument prototype would still apply.  */
20436 char $ac_func();
20437
20438 int main() {
20439
20440 /* The GNU C library defines this for functions which it implements
20441     to always fail with ENOSYS.  Some functions are actually named
20442     something starting with __ and the normal name is an alias.  */
20443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20444 choke me
20445 #else
20446 $ac_func();
20447 #endif
20448
20449 ; return 0; }
20450 EOF
20451 if { (eval echo configure:20452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20452   rm -rf conftest*
20453   eval "ac_cv_func_$ac_func=yes"
20454 else
20455   echo "configure: failed program was:" >&5
20456   cat conftest.$ac_ext >&5
20457   rm -rf conftest*
20458   eval "ac_cv_func_$ac_func=no"
20459 fi
20460 rm -f conftest*
20461 fi
20462
20463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20464   echo "$ac_t""yes" 1>&6
20465     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20466   cat >> confdefs.h <<EOF
20467 #define $ac_tr_func 1
20468 EOF
20469  
20470 else
20471   echo "$ac_t""no" 1>&6
20472 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
20473 fi
20474 done
20475
20476
20477     for ac_func in __signbit
20478 do
20479 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20480 echo "configure:20481: checking for $ac_func" >&5
20481 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20482   echo $ac_n "(cached) $ac_c" 1>&6
20483 else
20484   cat > conftest.$ac_ext <<EOF
20485 #line 20486 "configure"
20486 #include "confdefs.h"
20487 /* System header to define __stub macros and hopefully few prototypes,
20488     which can conflict with char $ac_func(); below.  */
20489 #include <assert.h>
20490 /* Override any gcc2 internal prototype to avoid an error.  */
20491 /* We use char because int might match the return type of a gcc2
20492     builtin and then its argument prototype would still apply.  */
20493 char $ac_func();
20494
20495 int main() {
20496
20497 /* The GNU C library defines this for functions which it implements
20498     to always fail with ENOSYS.  Some functions are actually named
20499     something starting with __ and the normal name is an alias.  */
20500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20501 choke me
20502 #else
20503 $ac_func();
20504 #endif
20505
20506 ; return 0; }
20507 EOF
20508 if { (eval echo configure:20509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20509   rm -rf conftest*
20510   eval "ac_cv_func_$ac_func=yes"
20511 else
20512   echo "configure: failed program was:" >&5
20513   cat conftest.$ac_ext >&5
20514   rm -rf conftest*
20515   eval "ac_cv_func_$ac_func=no"
20516 fi
20517 rm -f conftest*
20518 fi
20519
20520 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20521   echo "$ac_t""yes" 1>&6
20522     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20523   cat >> confdefs.h <<EOF
20524 #define $ac_tr_func 1
20525 EOF
20526  
20527 else
20528   echo "$ac_t""no" 1>&6
20529 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
20530 fi
20531 done
20532
20533   for ac_func in __signbitf
20534 do
20535 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20536 echo "configure:20537: checking for $ac_func" >&5
20537 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20538   echo $ac_n "(cached) $ac_c" 1>&6
20539 else
20540   cat > conftest.$ac_ext <<EOF
20541 #line 20542 "configure"
20542 #include "confdefs.h"
20543 /* System header to define __stub macros and hopefully few prototypes,
20544     which can conflict with char $ac_func(); below.  */
20545 #include <assert.h>
20546 /* Override any gcc2 internal prototype to avoid an error.  */
20547 /* We use char because int might match the return type of a gcc2
20548     builtin and then its argument prototype would still apply.  */
20549 char $ac_func();
20550
20551 int main() {
20552
20553 /* The GNU C library defines this for functions which it implements
20554     to always fail with ENOSYS.  Some functions are actually named
20555     something starting with __ and the normal name is an alias.  */
20556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20557 choke me
20558 #else
20559 $ac_func();
20560 #endif
20561
20562 ; return 0; }
20563 EOF
20564 if { (eval echo configure:20565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20565   rm -rf conftest*
20566   eval "ac_cv_func_$ac_func=yes"
20567 else
20568   echo "configure: failed program was:" >&5
20569   cat conftest.$ac_ext >&5
20570   rm -rf conftest*
20571   eval "ac_cv_func_$ac_func=no"
20572 fi
20573 rm -f conftest*
20574 fi
20575
20576 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20577   echo "$ac_t""yes" 1>&6
20578     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20579   cat >> confdefs.h <<EOF
20580 #define $ac_tr_func 1
20581 EOF
20582  
20583 else
20584   echo "$ac_t""no" 1>&6
20585 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
20586 fi
20587 done
20588
20589
20590           if test x$ac_cv_func_copysignl = x"yes"; then
20591     for ac_func in __signbitl
20592 do
20593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20594 echo "configure:20595: checking for $ac_func" >&5
20595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20596   echo $ac_n "(cached) $ac_c" 1>&6
20597 else
20598   cat > conftest.$ac_ext <<EOF
20599 #line 20600 "configure"
20600 #include "confdefs.h"
20601 /* System header to define __stub macros and hopefully few prototypes,
20602     which can conflict with char $ac_func(); below.  */
20603 #include <assert.h>
20604 /* Override any gcc2 internal prototype to avoid an error.  */
20605 /* We use char because int might match the return type of a gcc2
20606     builtin and then its argument prototype would still apply.  */
20607 char $ac_func();
20608
20609 int main() {
20610
20611 /* The GNU C library defines this for functions which it implements
20612     to always fail with ENOSYS.  Some functions are actually named
20613     something starting with __ and the normal name is an alias.  */
20614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20615 choke me
20616 #else
20617 $ac_func();
20618 #endif
20619
20620 ; return 0; }
20621 EOF
20622 if { (eval echo configure:20623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20623   rm -rf conftest*
20624   eval "ac_cv_func_$ac_func=yes"
20625 else
20626   echo "configure: failed program was:" >&5
20627   cat conftest.$ac_ext >&5
20628   rm -rf conftest*
20629   eval "ac_cv_func_$ac_func=no"
20630 fi
20631 rm -f conftest*
20632 fi
20633
20634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20635   echo "$ac_t""yes" 1>&6
20636     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20637   cat >> confdefs.h <<EOF
20638 #define $ac_tr_func 1
20639 EOF
20640  
20641 else
20642   echo "$ac_t""no" 1>&6
20643 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
20644 fi
20645 done
20646
20647   fi
20648
20649   
20650
20651   
20652
20653       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
20654 echo "configure:20655: checking for mbstate_t" >&5
20655   cat > conftest.$ac_ext <<EOF
20656 #line 20657 "configure"
20657 #include "confdefs.h"
20658 #include <wchar.h>
20659 int main() {
20660 mbstate_t teststate;
20661 ; return 0; }
20662 EOF
20663 if { (eval echo configure:20664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20664   rm -rf conftest*
20665   have_mbstate_t=yes
20666 else
20667   echo "configure: failed program was:" >&5
20668   cat conftest.$ac_ext >&5
20669   rm -rf conftest*
20670   have_mbstate_t=no
20671 fi
20672 rm -f conftest*
20673   echo "$ac_t""$have_mbstate_t" 1>&6
20674   if test x"$have_mbstate_t" = xyes; then
20675     cat >> confdefs.h <<\EOF
20676 #define HAVE_MBSTATE_T 1
20677 EOF
20678
20679   fi
20680
20681     for ac_hdr in wchar.h
20682 do
20683 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20684 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20685 echo "configure:20686: checking for $ac_hdr" >&5
20686 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20687   echo $ac_n "(cached) $ac_c" 1>&6
20688 else
20689   cat > conftest.$ac_ext <<EOF
20690 #line 20691 "configure"
20691 #include "confdefs.h"
20692 #include <$ac_hdr>
20693 EOF
20694 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20695 { (eval echo configure:20696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20696 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20697 if test -z "$ac_err"; then
20698   rm -rf conftest*
20699   eval "ac_cv_header_$ac_safe=yes"
20700 else
20701   echo "$ac_err" >&5
20702   echo "configure: failed program was:" >&5
20703   cat conftest.$ac_ext >&5
20704   rm -rf conftest*
20705   eval "ac_cv_header_$ac_safe=no"
20706 fi
20707 rm -f conftest*
20708 fi
20709 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20710   echo "$ac_t""yes" 1>&6
20711     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20712   cat >> confdefs.h <<EOF
20713 #define $ac_tr_hdr 1
20714 EOF
20715  ac_has_wchar_h=yes
20716 else
20717   echo "$ac_t""no" 1>&6
20718 ac_has_wchar_h=no
20719 fi
20720 done
20721
20722   for ac_hdr in wctype.h
20723 do
20724 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20725 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20726 echo "configure:20727: checking for $ac_hdr" >&5
20727 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20728   echo $ac_n "(cached) $ac_c" 1>&6
20729 else
20730   cat > conftest.$ac_ext <<EOF
20731 #line 20732 "configure"
20732 #include "confdefs.h"
20733 #include <$ac_hdr>
20734 EOF
20735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20736 { (eval echo configure:20737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20738 if test -z "$ac_err"; then
20739   rm -rf conftest*
20740   eval "ac_cv_header_$ac_safe=yes"
20741 else
20742   echo "$ac_err" >&5
20743   echo "configure: failed program was:" >&5
20744   cat conftest.$ac_ext >&5
20745   rm -rf conftest*
20746   eval "ac_cv_header_$ac_safe=no"
20747 fi
20748 rm -f conftest*
20749 fi
20750 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20751   echo "$ac_t""yes" 1>&6
20752     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20753   cat >> confdefs.h <<EOF
20754 #define $ac_tr_hdr 1
20755 EOF
20756  ac_has_wctype_h=yes
20757 else
20758   echo "$ac_t""no" 1>&6
20759 ac_has_wctype_h=no
20760 fi
20761 done
20762
20763   
20764     if test x"$ac_has_wchar_h" = xyes &&
20765      test x"$ac_has_wctype_h" = xyes &&
20766      test x"$enable_c_mbchar" != xno; then
20767       
20768             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
20769 echo "configure:20770: checking for WCHAR_MIN and WCHAR_MAX" >&5
20770     cat > conftest.$ac_ext <<EOF
20771 #line 20772 "configure"
20772 #include "confdefs.h"
20773 #include <wchar.h>
20774 int main() {
20775 int i = WCHAR_MIN; int j = WCHAR_MAX;
20776 ; return 0; }
20777 EOF
20778 if { (eval echo configure:20779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20779   rm -rf conftest*
20780   has_wchar_minmax=yes
20781 else
20782   echo "configure: failed program was:" >&5
20783   cat conftest.$ac_ext >&5
20784   rm -rf conftest*
20785   has_wchar_minmax=no
20786 fi
20787 rm -f conftest*
20788     echo "$ac_t""$has_wchar_minmax" 1>&6
20789     
20790             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
20791 echo "configure:20792: checking for WEOF" >&5
20792     cat > conftest.$ac_ext <<EOF
20793 #line 20794 "configure"
20794 #include "confdefs.h"
20795
20796       #include <wchar.h>
20797       #include <stddef.h>
20798 int main() {
20799 wint_t i = WEOF;
20800 ; return 0; }
20801 EOF
20802 if { (eval echo configure:20803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20803   rm -rf conftest*
20804   has_weof=yes
20805 else
20806   echo "configure: failed program was:" >&5
20807   cat conftest.$ac_ext >&5
20808   rm -rf conftest*
20809   has_weof=no
20810 fi
20811 rm -f conftest*
20812     echo "$ac_t""$has_weof" 1>&6
20813   
20814         ac_wfuncs=yes
20815     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
20816 do
20817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20818 echo "configure:20819: checking for $ac_func" >&5
20819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20820   echo $ac_n "(cached) $ac_c" 1>&6
20821 else
20822   cat > conftest.$ac_ext <<EOF
20823 #line 20824 "configure"
20824 #include "confdefs.h"
20825 /* System header to define __stub macros and hopefully few prototypes,
20826     which can conflict with char $ac_func(); below.  */
20827 #include <assert.h>
20828 /* Override any gcc2 internal prototype to avoid an error.  */
20829 /* We use char because int might match the return type of a gcc2
20830     builtin and then its argument prototype would still apply.  */
20831 char $ac_func();
20832
20833 int main() {
20834
20835 /* The GNU C library defines this for functions which it implements
20836     to always fail with ENOSYS.  Some functions are actually named
20837     something starting with __ and the normal name is an alias.  */
20838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20839 choke me
20840 #else
20841 $ac_func();
20842 #endif
20843
20844 ; return 0; }
20845 EOF
20846 if { (eval echo configure:20847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20847   rm -rf conftest*
20848   eval "ac_cv_func_$ac_func=yes"
20849 else
20850   echo "configure: failed program was:" >&5
20851   cat conftest.$ac_ext >&5
20852   rm -rf conftest*
20853   eval "ac_cv_func_$ac_func=no"
20854 fi
20855 rm -f conftest*
20856 fi
20857
20858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20859   echo "$ac_t""yes" 1>&6
20860     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20861   cat >> confdefs.h <<EOF
20862 #define $ac_tr_func 1
20863 EOF
20864  
20865 else
20866   echo "$ac_t""no" 1>&6
20867 \
20868     ac_wfuncs=no
20869 fi
20870 done
20871
20872   
20873         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
20874     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
20875     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
20876     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
20877     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
20878     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
20879 do
20880 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20881 echo "configure:20882: checking for $ac_func" >&5
20882 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20883   echo $ac_n "(cached) $ac_c" 1>&6
20884 else
20885   cat > conftest.$ac_ext <<EOF
20886 #line 20887 "configure"
20887 #include "confdefs.h"
20888 /* System header to define __stub macros and hopefully few prototypes,
20889     which can conflict with char $ac_func(); below.  */
20890 #include <assert.h>
20891 /* Override any gcc2 internal prototype to avoid an error.  */
20892 /* We use char because int might match the return type of a gcc2
20893     builtin and then its argument prototype would still apply.  */
20894 char $ac_func();
20895
20896 int main() {
20897
20898 /* The GNU C library defines this for functions which it implements
20899     to always fail with ENOSYS.  Some functions are actually named
20900     something starting with __ and the normal name is an alias.  */
20901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20902 choke me
20903 #else
20904 $ac_func();
20905 #endif
20906
20907 ; return 0; }
20908 EOF
20909 if { (eval echo configure:20910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20910   rm -rf conftest*
20911   eval "ac_cv_func_$ac_func=yes"
20912 else
20913   echo "configure: failed program was:" >&5
20914   cat conftest.$ac_ext >&5
20915   rm -rf conftest*
20916   eval "ac_cv_func_$ac_func=no"
20917 fi
20918 rm -f conftest*
20919 fi
20920
20921 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20922   echo "$ac_t""yes" 1>&6
20923     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20924   cat >> confdefs.h <<EOF
20925 #define $ac_tr_func 1
20926 EOF
20927  
20928 else
20929   echo "$ac_t""no" 1>&6
20930 \
20931     ac_wfuncs=no
20932 fi
20933 done
20934
20935
20936     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
20937 echo "configure:20938: checking for ISO C99 wchar_t support" >&5
20938     if test x"$has_weof" = xyes &&
20939        test x"$has_wchar_minmax" = xyes &&
20940        test x"$ac_wfuncs" = xyes; then
20941       ac_isoC99_wchar_t=yes
20942     else
20943       ac_isoC99_wchar_t=no
20944     fi
20945     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
20946   
20947             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
20948 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
20949 echo "configure:20950: checking for iconv.h" >&5
20950 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20951   echo $ac_n "(cached) $ac_c" 1>&6
20952 else
20953   cat > conftest.$ac_ext <<EOF
20954 #line 20955 "configure"
20955 #include "confdefs.h"
20956 #include <iconv.h>
20957 EOF
20958 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20959 { (eval echo configure:20960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20960 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20961 if test -z "$ac_err"; then
20962   rm -rf conftest*
20963   eval "ac_cv_header_$ac_safe=yes"
20964 else
20965   echo "$ac_err" >&5
20966   echo "configure: failed program was:" >&5
20967   cat conftest.$ac_ext >&5
20968   rm -rf conftest*
20969   eval "ac_cv_header_$ac_safe=no"
20970 fi
20971 rm -f conftest*
20972 fi
20973 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20974   echo "$ac_t""yes" 1>&6
20975   ac_has_iconv_h=yes
20976 else
20977   echo "$ac_t""no" 1>&6
20978 ac_has_iconv_h=no
20979 fi
20980
20981     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
20982 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
20983 echo "configure:20984: checking for langinfo.h" >&5
20984 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20985   echo $ac_n "(cached) $ac_c" 1>&6
20986 else
20987   cat > conftest.$ac_ext <<EOF
20988 #line 20989 "configure"
20989 #include "confdefs.h"
20990 #include <langinfo.h>
20991 EOF
20992 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20993 { (eval echo configure:20994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20994 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20995 if test -z "$ac_err"; then
20996   rm -rf conftest*
20997   eval "ac_cv_header_$ac_safe=yes"
20998 else
20999   echo "$ac_err" >&5
21000   echo "configure: failed program was:" >&5
21001   cat conftest.$ac_ext >&5
21002   rm -rf conftest*
21003   eval "ac_cv_header_$ac_safe=no"
21004 fi
21005 rm -f conftest*
21006 fi
21007 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21008   echo "$ac_t""yes" 1>&6
21009   ac_has_langinfo_h=yes
21010 else
21011   echo "$ac_t""no" 1>&6
21012 ac_has_langinfo_h=no
21013 fi
21014
21015
21016         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
21017 echo "configure:21018: checking for iconv in -liconv" >&5
21018 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
21019 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21020   echo $ac_n "(cached) $ac_c" 1>&6
21021 else
21022   ac_save_LIBS="$LIBS"
21023 LIBS="-liconv  $LIBS"
21024 cat > conftest.$ac_ext <<EOF
21025 #line 21026 "configure"
21026 #include "confdefs.h"
21027 /* Override any gcc2 internal prototype to avoid an error.  */
21028 /* We use char because int might match the return type of a gcc2
21029     builtin and then its argument prototype would still apply.  */
21030 char iconv();
21031
21032 int main() {
21033 iconv()
21034 ; return 0; }
21035 EOF
21036 if { (eval echo configure:21037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21037   rm -rf conftest*
21038   eval "ac_cv_lib_$ac_lib_var=yes"
21039 else
21040   echo "configure: failed program was:" >&5
21041   cat conftest.$ac_ext >&5
21042   rm -rf conftest*
21043   eval "ac_cv_lib_$ac_lib_var=no"
21044 fi
21045 rm -f conftest*
21046 LIBS="$ac_save_LIBS"
21047
21048 fi
21049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21050   echo "$ac_t""yes" 1>&6
21051   libiconv="-liconv"
21052 else
21053   echo "$ac_t""no" 1>&6
21054 fi
21055
21056     ac_save_LIBS="$LIBS"
21057     LIBS="$LIBS $libiconv"
21058
21059     for ac_func in iconv_open iconv_close iconv nl_langinfo
21060 do
21061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21062 echo "configure:21063: checking for $ac_func" >&5
21063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21064   echo $ac_n "(cached) $ac_c" 1>&6
21065 else
21066   cat > conftest.$ac_ext <<EOF
21067 #line 21068 "configure"
21068 #include "confdefs.h"
21069 /* System header to define __stub macros and hopefully few prototypes,
21070     which can conflict with char $ac_func(); below.  */
21071 #include <assert.h>
21072 /* Override any gcc2 internal prototype to avoid an error.  */
21073 /* We use char because int might match the return type of a gcc2
21074     builtin and then its argument prototype would still apply.  */
21075 char $ac_func();
21076
21077 int main() {
21078
21079 /* The GNU C library defines this for functions which it implements
21080     to always fail with ENOSYS.  Some functions are actually named
21081     something starting with __ and the normal name is an alias.  */
21082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21083 choke me
21084 #else
21085 $ac_func();
21086 #endif
21087
21088 ; return 0; }
21089 EOF
21090 if { (eval echo configure:21091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21091   rm -rf conftest*
21092   eval "ac_cv_func_$ac_func=yes"
21093 else
21094   echo "configure: failed program was:" >&5
21095   cat conftest.$ac_ext >&5
21096   rm -rf conftest*
21097   eval "ac_cv_func_$ac_func=no"
21098 fi
21099 rm -f conftest*
21100 fi
21101
21102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21103   echo "$ac_t""yes" 1>&6
21104     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21105   cat >> confdefs.h <<EOF
21106 #define $ac_tr_func 1
21107 EOF
21108  \
21109     ac_XPG2funcs=yes
21110 else
21111   echo "$ac_t""no" 1>&6
21112 ac_XPG2funcs=no
21113 fi
21114 done
21115
21116   
21117     LIBS="$ac_save_LIBS"
21118
21119     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
21120 echo "configure:21121: checking for XPG2 wchar_t support" >&5
21121     if test x"$ac_has_iconv_h" = xyes &&
21122        test x"$ac_has_langinfo_h" = xyes &&
21123        test x"$ac_XPG2funcs" = xyes; then
21124       ac_XPG2_wchar_t=yes
21125     else
21126       ac_XPG2_wchar_t=no
21127     fi
21128     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
21129   
21130             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
21131 echo "configure:21132: checking for enabled wchar_t specializations" >&5
21132     if test x"$ac_isoC99_wchar_t" = xyes &&
21133        test x"$ac_XPG2_wchar_t" = xyes; then
21134       cat >> confdefs.h <<\EOF
21135 #define _GLIBCPP_USE_WCHAR_T 1
21136 EOF
21137
21138       echo "$ac_t"""yes"" 1>&6
21139     else
21140       echo "$ac_t"""no"" 1>&6
21141     fi
21142   else
21143         echo "configure: warning: wchar_t support disabled." 1>&2
21144   fi
21145
21146   
21147   ac_test_CXXFLAGS="${CXXFLAGS+set}"
21148   ac_save_CXXFLAGS="$CXXFLAGS"
21149   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
21150
21151   
21152   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
21153 echo "configure:21154: checking for strtold declaration" >&5
21154   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
21155     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
21156   echo $ac_n "(cached) $ac_c" 1>&6
21157 else
21158   
21159       
21160       ac_ext=C
21161 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21162 ac_cpp='$CXXCPP $CPPFLAGS'
21163 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21164 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21165 cross_compiling=$ac_cv_prog_cxx_cross
21166
21167       cat > conftest.$ac_ext <<EOF
21168 #line 21169 "configure"
21169 #include "confdefs.h"
21170 #include <stdlib.h>
21171 int main() {
21172  strtold(0, 0);
21173 ; return 0; }
21174 EOF
21175 if { (eval echo configure:21176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21176   rm -rf conftest*
21177   glibcpp_cv_func_strtold_use=yes
21178 else
21179   echo "configure: failed program was:" >&5
21180   cat conftest.$ac_ext >&5
21181   rm -rf conftest*
21182   glibcpp_cv_func_strtold_use=no
21183 fi
21184 rm -f conftest*
21185       ac_ext=c
21186 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21187 ac_cpp='$CPP $CPPFLAGS'
21188 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21189 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21190 cross_compiling=$ac_cv_prog_cc_cross
21191
21192     
21193 fi
21194
21195   fi
21196   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
21197   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
21198     for ac_func in strtold
21199 do
21200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21201 echo "configure:21202: checking for $ac_func" >&5
21202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21203   echo $ac_n "(cached) $ac_c" 1>&6
21204 else
21205   cat > conftest.$ac_ext <<EOF
21206 #line 21207 "configure"
21207 #include "confdefs.h"
21208 /* System header to define __stub macros and hopefully few prototypes,
21209     which can conflict with char $ac_func(); below.  */
21210 #include <assert.h>
21211 /* Override any gcc2 internal prototype to avoid an error.  */
21212 /* We use char because int might match the return type of a gcc2
21213     builtin and then its argument prototype would still apply.  */
21214 char $ac_func();
21215
21216 int main() {
21217
21218 /* The GNU C library defines this for functions which it implements
21219     to always fail with ENOSYS.  Some functions are actually named
21220     something starting with __ and the normal name is an alias.  */
21221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21222 choke me
21223 #else
21224 $ac_func();
21225 #endif
21226
21227 ; return 0; }
21228 EOF
21229 if { (eval echo configure:21230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21230   rm -rf conftest*
21231   eval "ac_cv_func_$ac_func=yes"
21232 else
21233   echo "configure: failed program was:" >&5
21234   cat conftest.$ac_ext >&5
21235   rm -rf conftest*
21236   eval "ac_cv_func_$ac_func=no"
21237 fi
21238 rm -f conftest*
21239 fi
21240
21241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21242   echo "$ac_t""yes" 1>&6
21243     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21244   cat >> confdefs.h <<EOF
21245 #define $ac_tr_func 1
21246 EOF
21247  
21248 else
21249   echo "$ac_t""no" 1>&6
21250 fi
21251 done
21252     
21253   fi
21254
21255   
21256   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
21257 echo "configure:21258: checking for strtof declaration" >&5
21258   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
21259     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
21260   echo $ac_n "(cached) $ac_c" 1>&6
21261 else
21262   
21263       
21264       ac_ext=C
21265 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21266 ac_cpp='$CXXCPP $CPPFLAGS'
21267 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21268 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21269 cross_compiling=$ac_cv_prog_cxx_cross
21270
21271       cat > conftest.$ac_ext <<EOF
21272 #line 21273 "configure"
21273 #include "confdefs.h"
21274 #include <stdlib.h>
21275 int main() {
21276  strtof(0, 0);
21277 ; return 0; }
21278 EOF
21279 if { (eval echo configure:21280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21280   rm -rf conftest*
21281   glibcpp_cv_func_strtof_use=yes
21282 else
21283   echo "configure: failed program was:" >&5
21284   cat conftest.$ac_ext >&5
21285   rm -rf conftest*
21286   glibcpp_cv_func_strtof_use=no
21287 fi
21288 rm -f conftest*
21289       ac_ext=c
21290 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21291 ac_cpp='$CPP $CPPFLAGS'
21292 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21293 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21294 cross_compiling=$ac_cv_prog_cc_cross
21295
21296     
21297 fi
21298
21299   fi
21300   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
21301   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
21302     for ac_func in strtof
21303 do
21304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21305 echo "configure:21306: checking for $ac_func" >&5
21306 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21307   echo $ac_n "(cached) $ac_c" 1>&6
21308 else
21309   cat > conftest.$ac_ext <<EOF
21310 #line 21311 "configure"
21311 #include "confdefs.h"
21312 /* System header to define __stub macros and hopefully few prototypes,
21313     which can conflict with char $ac_func(); below.  */
21314 #include <assert.h>
21315 /* Override any gcc2 internal prototype to avoid an error.  */
21316 /* We use char because int might match the return type of a gcc2
21317     builtin and then its argument prototype would still apply.  */
21318 char $ac_func();
21319
21320 int main() {
21321
21322 /* The GNU C library defines this for functions which it implements
21323     to always fail with ENOSYS.  Some functions are actually named
21324     something starting with __ and the normal name is an alias.  */
21325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21326 choke me
21327 #else
21328 $ac_func();
21329 #endif
21330
21331 ; return 0; }
21332 EOF
21333 if { (eval echo configure:21334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21334   rm -rf conftest*
21335   eval "ac_cv_func_$ac_func=yes"
21336 else
21337   echo "configure: failed program was:" >&5
21338   cat conftest.$ac_ext >&5
21339   rm -rf conftest*
21340   eval "ac_cv_func_$ac_func=no"
21341 fi
21342 rm -f conftest*
21343 fi
21344
21345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21346   echo "$ac_t""yes" 1>&6
21347     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21348   cat >> confdefs.h <<EOF
21349 #define $ac_tr_func 1
21350 EOF
21351  
21352 else
21353   echo "$ac_t""no" 1>&6
21354 fi
21355 done
21356     
21357   fi
21358
21359   for ac_func in drand48
21360 do
21361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21362 echo "configure:21363: checking for $ac_func" >&5
21363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21364   echo $ac_n "(cached) $ac_c" 1>&6
21365 else
21366   cat > conftest.$ac_ext <<EOF
21367 #line 21368 "configure"
21368 #include "confdefs.h"
21369 /* System header to define __stub macros and hopefully few prototypes,
21370     which can conflict with char $ac_func(); below.  */
21371 #include <assert.h>
21372 /* Override any gcc2 internal prototype to avoid an error.  */
21373 /* We use char because int might match the return type of a gcc2
21374     builtin and then its argument prototype would still apply.  */
21375 char $ac_func();
21376
21377 int main() {
21378
21379 /* The GNU C library defines this for functions which it implements
21380     to always fail with ENOSYS.  Some functions are actually named
21381     something starting with __ and the normal name is an alias.  */
21382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21383 choke me
21384 #else
21385 $ac_func();
21386 #endif
21387
21388 ; return 0; }
21389 EOF
21390 if { (eval echo configure:21391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21391   rm -rf conftest*
21392   eval "ac_cv_func_$ac_func=yes"
21393 else
21394   echo "configure: failed program was:" >&5
21395   cat conftest.$ac_ext >&5
21396   rm -rf conftest*
21397   eval "ac_cv_func_$ac_func=no"
21398 fi
21399 rm -f conftest*
21400 fi
21401
21402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21403   echo "$ac_t""yes" 1>&6
21404     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21405   cat >> confdefs.h <<EOF
21406 #define $ac_tr_func 1
21407 EOF
21408  
21409 else
21410   echo "$ac_t""no" 1>&6
21411 fi
21412 done
21413
21414
21415   CXXFLAGS="$ac_save_CXXFLAGS"
21416
21417   
21418   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
21419 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
21420 echo "configure:21421: checking for locale.h" >&5
21421 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21422   echo $ac_n "(cached) $ac_c" 1>&6
21423 else
21424   cat > conftest.$ac_ext <<EOF
21425 #line 21426 "configure"
21426 #include "confdefs.h"
21427 #include <locale.h>
21428 EOF
21429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21430 { (eval echo configure:21431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21432 if test -z "$ac_err"; then
21433   rm -rf conftest*
21434   eval "ac_cv_header_$ac_safe=yes"
21435 else
21436   echo "$ac_err" >&5
21437   echo "configure: failed program was:" >&5
21438   cat conftest.$ac_ext >&5
21439   rm -rf conftest*
21440   eval "ac_cv_header_$ac_safe=no"
21441 fi
21442 rm -f conftest*
21443 fi
21444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21445   echo "$ac_t""yes" 1>&6
21446   
21447     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
21448 echo "configure:21449: checking for LC_MESSAGES" >&5
21449 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
21450   echo $ac_n "(cached) $ac_c" 1>&6
21451 else
21452   cat > conftest.$ac_ext <<EOF
21453 #line 21454 "configure"
21454 #include "confdefs.h"
21455 #include <locale.h>
21456 int main() {
21457 return LC_MESSAGES
21458 ; return 0; }
21459 EOF
21460 if { (eval echo configure:21461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21461   rm -rf conftest*
21462   ac_cv_val_LC_MESSAGES=yes
21463 else
21464   echo "configure: failed program was:" >&5
21465   cat conftest.$ac_ext >&5
21466   rm -rf conftest*
21467   ac_cv_val_LC_MESSAGES=no
21468 fi
21469 rm -f conftest*
21470 fi
21471
21472 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
21473     if test $ac_cv_val_LC_MESSAGES = yes; then
21474       cat >> confdefs.h <<\EOF
21475 #define HAVE_LC_MESSAGES 1
21476 EOF
21477
21478     fi
21479   
21480 else
21481   echo "$ac_t""no" 1>&6
21482 fi
21483
21484
21485
21486   cat > conftest.$ac_ext <<EOF
21487 #line 21488 "configure"
21488 #include "confdefs.h"
21489
21490   #include <setjmp.h>
21491   
21492 int main() {
21493 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
21494 ; return 0; }
21495 EOF
21496 if { (eval echo configure:21497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21497   rm -rf conftest*
21498   cat >> confdefs.h <<\EOF
21499 #define HAVE_SIGSETJMP 1
21500 EOF
21501
21502   
21503 else
21504   echo "configure: failed program was:" >&5
21505   cat conftest.$ac_ext >&5
21506 fi
21507 rm -f conftest*
21508
21509   for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
21510 do
21511 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21512 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21513 echo "configure:21514: checking for $ac_hdr" >&5
21514 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21515   echo $ac_n "(cached) $ac_c" 1>&6
21516 else
21517   cat > conftest.$ac_ext <<EOF
21518 #line 21519 "configure"
21519 #include "confdefs.h"
21520 #include <$ac_hdr>
21521 EOF
21522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21523 { (eval echo configure:21524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21524 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21525 if test -z "$ac_err"; then
21526   rm -rf conftest*
21527   eval "ac_cv_header_$ac_safe=yes"
21528 else
21529   echo "$ac_err" >&5
21530   echo "configure: failed program was:" >&5
21531   cat conftest.$ac_ext >&5
21532   rm -rf conftest*
21533   eval "ac_cv_header_$ac_safe=no"
21534 fi
21535 rm -f conftest*
21536 fi
21537 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21538   echo "$ac_t""yes" 1>&6
21539     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21540   cat >> confdefs.h <<EOF
21541 #define $ac_tr_hdr 1
21542 EOF
21543  
21544 else
21545   echo "$ac_t""no" 1>&6
21546 fi
21547 done
21548
21549 for ac_func in getpagesize
21550 do
21551 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21552 echo "configure:21553: checking for $ac_func" >&5
21553 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21554   echo $ac_n "(cached) $ac_c" 1>&6
21555 else
21556   cat > conftest.$ac_ext <<EOF
21557 #line 21558 "configure"
21558 #include "confdefs.h"
21559 /* System header to define __stub macros and hopefully few prototypes,
21560     which can conflict with char $ac_func(); below.  */
21561 #include <assert.h>
21562 /* Override any gcc2 internal prototype to avoid an error.  */
21563 /* We use char because int might match the return type of a gcc2
21564     builtin and then its argument prototype would still apply.  */
21565 char $ac_func();
21566
21567 int main() {
21568
21569 /* The GNU C library defines this for functions which it implements
21570     to always fail with ENOSYS.  Some functions are actually named
21571     something starting with __ and the normal name is an alias.  */
21572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21573 choke me
21574 #else
21575 $ac_func();
21576 #endif
21577
21578 ; return 0; }
21579 EOF
21580 if { (eval echo configure:21581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21581   rm -rf conftest*
21582   eval "ac_cv_func_$ac_func=yes"
21583 else
21584   echo "configure: failed program was:" >&5
21585   cat conftest.$ac_ext >&5
21586   rm -rf conftest*
21587   eval "ac_cv_func_$ac_func=no"
21588 fi
21589 rm -f conftest*
21590 fi
21591
21592 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21593   echo "$ac_t""yes" 1>&6
21594     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21595   cat >> confdefs.h <<EOF
21596 #define $ac_tr_func 1
21597 EOF
21598  
21599 else
21600   echo "$ac_t""no" 1>&6
21601 fi
21602 done
21603
21604 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
21605 echo "configure:21606: checking for working mmap" >&5
21606 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
21607   echo $ac_n "(cached) $ac_c" 1>&6
21608 else
21609   if test "$cross_compiling" = yes; then
21610   ac_cv_func_mmap_fixed_mapped=no
21611 else
21612   cat > conftest.$ac_ext <<EOF
21613 #line 21614 "configure"
21614 #include "confdefs.h"
21615
21616 /* Thanks to Mike Haertel and Jim Avera for this test.
21617    Here is a matrix of mmap possibilities:
21618         mmap private not fixed
21619         mmap private fixed at somewhere currently unmapped
21620         mmap private fixed at somewhere already mapped
21621         mmap shared not fixed
21622         mmap shared fixed at somewhere currently unmapped
21623         mmap shared fixed at somewhere already mapped
21624    For private mappings, we should verify that changes cannot be read()
21625    back from the file, nor mmap's back from the file at a different
21626    address.  (There have been systems where private was not correctly
21627    implemented like the infamous i386 svr4.0, and systems where the
21628    VM page cache was not coherent with the filesystem buffer cache
21629    like early versions of FreeBSD and possibly contemporary NetBSD.)
21630    For shared mappings, we should conversely verify that changes get
21631    propogated back to all the places they're supposed to be.
21632
21633    Grep wants private fixed already mapped.
21634    The main things grep needs to know about mmap are:
21635    * does it exist and is it safe to write into the mmap'd area
21636    * how to use it (BSD variants)  */
21637 #include <sys/types.h>
21638 #include <fcntl.h>
21639 #include <sys/mman.h>
21640
21641 #if HAVE_SYS_TYPES_H
21642 # include <sys/types.h>
21643 #endif
21644
21645 #if HAVE_STDLIB_H
21646 # include <stdlib.h>
21647 #endif
21648
21649 #if HAVE_SYS_STAT_H
21650 # include <sys/stat.h>
21651 #endif
21652
21653 #if HAVE_UNISTD_H
21654 # include <unistd.h>
21655 #endif
21656
21657 /* This mess was copied from the GNU getpagesize.h.  */
21658 #ifndef HAVE_GETPAGESIZE
21659
21660 /* Assume that all systems that can run configure have sys/param.h.  */
21661 # ifndef HAVE_SYS_PARAM_H
21662 #  define HAVE_SYS_PARAM_H 1
21663 # endif
21664
21665 # ifdef _SC_PAGESIZE
21666 #  define getpagesize() sysconf(_SC_PAGESIZE)
21667 # else /* no _SC_PAGESIZE */
21668 #  ifdef HAVE_SYS_PARAM_H
21669 #   include <sys/param.h>
21670 #   ifdef EXEC_PAGESIZE
21671 #    define getpagesize() EXEC_PAGESIZE
21672 #   else /* no EXEC_PAGESIZE */
21673 #    ifdef NBPG
21674 #     define getpagesize() NBPG * CLSIZE
21675 #     ifndef CLSIZE
21676 #      define CLSIZE 1
21677 #     endif /* no CLSIZE */
21678 #    else /* no NBPG */
21679 #     ifdef NBPC
21680 #      define getpagesize() NBPC
21681 #     else /* no NBPC */
21682 #      ifdef PAGESIZE
21683 #       define getpagesize() PAGESIZE
21684 #      endif /* PAGESIZE */
21685 #     endif /* no NBPC */
21686 #    endif /* no NBPG */
21687 #   endif /* no EXEC_PAGESIZE */
21688 #  else /* no HAVE_SYS_PARAM_H */
21689 #   define getpagesize() 8192   /* punt totally */
21690 #  endif /* no HAVE_SYS_PARAM_H */
21691 # endif /* no _SC_PAGESIZE */
21692
21693 #endif /* no HAVE_GETPAGESIZE */
21694
21695 #ifdef __cplusplus
21696 extern "C" { void *malloc(unsigned); }
21697 #else
21698 char *malloc();
21699 #endif
21700
21701 int
21702 main()
21703 {
21704         char *data, *data2, *data3;
21705         int i, pagesize;
21706         int fd;
21707
21708         pagesize = getpagesize();
21709
21710         /*
21711          * First, make a file with some known garbage in it.
21712          */
21713         data = malloc(pagesize);
21714         if (!data)
21715                 exit(1);
21716         for (i = 0; i < pagesize; ++i)
21717                 *(data + i) = rand();
21718         umask(0);
21719         fd = creat("conftestmmap", 0600);
21720         if (fd < 0)
21721                 exit(1);
21722         if (write(fd, data, pagesize) != pagesize)
21723                 exit(1);
21724         close(fd);
21725
21726         /*
21727          * Next, try to mmap the file at a fixed address which
21728          * already has something else allocated at it.  If we can,
21729          * also make sure that we see the same garbage.
21730          */
21731         fd = open("conftestmmap", O_RDWR);
21732         if (fd < 0)
21733                 exit(1);
21734         data2 = malloc(2 * pagesize);
21735         if (!data2)
21736                 exit(1);
21737         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21738         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
21739             MAP_PRIVATE | MAP_FIXED, fd, 0L))
21740                 exit(1);
21741         for (i = 0; i < pagesize; ++i)
21742                 if (*(data + i) != *(data2 + i))
21743                         exit(1);
21744
21745         /*
21746          * Finally, make sure that changes to the mapped area
21747          * do not percolate back to the file as seen by read().
21748          * (This is a bug on some variants of i386 svr4.0.)
21749          */
21750         for (i = 0; i < pagesize; ++i)
21751                 *(data2 + i) = *(data2 + i) + 1;
21752         data3 = malloc(pagesize);
21753         if (!data3)
21754                 exit(1);
21755         if (read(fd, data3, pagesize) != pagesize)
21756                 exit(1);
21757         for (i = 0; i < pagesize; ++i)
21758                 if (*(data + i) != *(data3 + i))
21759                         exit(1);
21760         close(fd);
21761         unlink("conftestmmap");
21762         exit(0);
21763 }
21764
21765 EOF
21766 if { (eval echo configure:21767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21767 then
21768   ac_cv_func_mmap_fixed_mapped=yes
21769 else
21770   echo "configure: failed program was:" >&5
21771   cat conftest.$ac_ext >&5
21772   rm -fr conftest*
21773   ac_cv_func_mmap_fixed_mapped=no
21774 fi
21775 rm -fr conftest*
21776 fi
21777
21778 fi
21779
21780 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
21781 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21782   cat >> confdefs.h <<\EOF
21783 #define HAVE_MMAP 1
21784 EOF
21785
21786 fi
21787
21788
21789   # Establish limits on memory usage during 'make check'
21790   
21791   
21792   setrlimit_have_headers=yes
21793   for ac_hdr in unistd.h sys/time.h sys/resource.h
21794 do
21795 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21796 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21797 echo "configure:21798: checking for $ac_hdr" >&5
21798 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21799   echo $ac_n "(cached) $ac_c" 1>&6
21800 else
21801   cat > conftest.$ac_ext <<EOF
21802 #line 21803 "configure"
21803 #include "confdefs.h"
21804 #include <$ac_hdr>
21805 EOF
21806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21807 { (eval echo configure:21808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21809 if test -z "$ac_err"; then
21810   rm -rf conftest*
21811   eval "ac_cv_header_$ac_safe=yes"
21812 else
21813   echo "$ac_err" >&5
21814   echo "configure: failed program was:" >&5
21815   cat conftest.$ac_ext >&5
21816   rm -rf conftest*
21817   eval "ac_cv_header_$ac_safe=no"
21818 fi
21819 rm -f conftest*
21820 fi
21821 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21822   echo "$ac_t""yes" 1>&6
21823     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21824   cat >> confdefs.h <<EOF
21825 #define $ac_tr_hdr 1
21826 EOF
21827  
21828 else
21829   echo "$ac_t""no" 1>&6
21830 setrlimit_have_headers=no
21831 fi
21832 done
21833
21834   # If don't have the headers, then we can't run the tests now, and we
21835   # won't be seeing any of these during testsuite compilation.
21836   if test $setrlimit_have_headers = yes; then
21837     # Can't do these in a loop, else the resulting syntax is wrong.
21838     
21839   cat > conftest.$ac_ext <<EOF
21840 #line 21841 "configure"
21841 #include "confdefs.h"
21842 #include <unistd.h>
21843                   #include <sys/time.h>
21844                   #include <sys/resource.h>
21845                  
21846 int main() {
21847  int f = RLIMIT_DATA ; 
21848 ; return 0; }
21849 EOF
21850 if { (eval echo configure:21851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21851   rm -rf conftest*
21852   glibcpp_mresult=1
21853 else
21854   echo "configure: failed program was:" >&5
21855   cat conftest.$ac_ext >&5
21856   rm -rf conftest*
21857   glibcpp_mresult=0
21858 fi
21859 rm -f conftest*
21860   cat >> confdefs.h <<EOF
21861 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
21862 EOF
21863
21864
21865     
21866   cat > conftest.$ac_ext <<EOF
21867 #line 21868 "configure"
21868 #include "confdefs.h"
21869 #include <unistd.h>
21870                   #include <sys/time.h>
21871                   #include <sys/resource.h>
21872                  
21873 int main() {
21874  int f = RLIMIT_RSS ; 
21875 ; return 0; }
21876 EOF
21877 if { (eval echo configure:21878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21878   rm -rf conftest*
21879   glibcpp_mresult=1
21880 else
21881   echo "configure: failed program was:" >&5
21882   cat conftest.$ac_ext >&5
21883   rm -rf conftest*
21884   glibcpp_mresult=0
21885 fi
21886 rm -f conftest*
21887   cat >> confdefs.h <<EOF
21888 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
21889 EOF
21890
21891
21892     
21893   cat > conftest.$ac_ext <<EOF
21894 #line 21895 "configure"
21895 #include "confdefs.h"
21896 #include <unistd.h>
21897                   #include <sys/time.h>
21898                   #include <sys/resource.h>
21899                  
21900 int main() {
21901  int f = RLIMIT_VMEM ; 
21902 ; return 0; }
21903 EOF
21904 if { (eval echo configure:21905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21905   rm -rf conftest*
21906   glibcpp_mresult=1
21907 else
21908   echo "configure: failed program was:" >&5
21909   cat conftest.$ac_ext >&5
21910   rm -rf conftest*
21911   glibcpp_mresult=0
21912 fi
21913 rm -f conftest*
21914   cat >> confdefs.h <<EOF
21915 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
21916 EOF
21917
21918
21919     
21920   cat > conftest.$ac_ext <<EOF
21921 #line 21922 "configure"
21922 #include "confdefs.h"
21923 #include <unistd.h>
21924                   #include <sys/time.h>
21925                   #include <sys/resource.h>
21926                  
21927 int main() {
21928  int f = RLIMIT_AS ; 
21929 ; return 0; }
21930 EOF
21931 if { (eval echo configure:21932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21932   rm -rf conftest*
21933   glibcpp_mresult=1
21934 else
21935   echo "configure: failed program was:" >&5
21936   cat conftest.$ac_ext >&5
21937   rm -rf conftest*
21938   glibcpp_mresult=0
21939 fi
21940 rm -f conftest*
21941   cat >> confdefs.h <<EOF
21942 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
21943 EOF
21944
21945
21946
21947     # Check for rlimit, setrlimit.
21948     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
21949   echo $ac_n "(cached) $ac_c" 1>&6
21950 else
21951   
21952       cat > conftest.$ac_ext <<EOF
21953 #line 21954 "configure"
21954 #include "confdefs.h"
21955 #include <unistd.h>
21956                   #include <sys/time.h>
21957                   #include <sys/resource.h>
21958                      
21959 int main() {
21960  struct rlimit r; setrlimit(0, &r);
21961 ; return 0; }
21962 EOF
21963 if { (eval echo configure:21964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21964   rm -rf conftest*
21965   ac_setrlimit=yes
21966 else
21967   echo "configure: failed program was:" >&5
21968   cat conftest.$ac_ext >&5
21969   rm -rf conftest*
21970   ac_setrlimit=no
21971 fi
21972 rm -f conftest*
21973     
21974 fi
21975
21976   fi
21977
21978   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
21979 echo "configure:21980: checking for testsuite memory limit support" >&5
21980   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
21981     ac_mem_limits=yes
21982     cat >> confdefs.h <<\EOF
21983 #define _GLIBCPP_MEM_LIMITS 1
21984 EOF
21985
21986   else
21987     ac_mem_limits=no
21988   fi
21989   echo "$ac_t""$ac_mem_limits" 1>&6
21990
21991
21992   # Look for setenv, so that extended locale tests can be performed.
21993   
21994   echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
21995 echo "configure:21996: checking for setenv declaration" >&5
21996   if test x${glibcpp_cv_func_setenv_use+set} != xset; then
21997     if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
21998   echo $ac_n "(cached) $ac_c" 1>&6
21999 else
22000   
22001       
22002       ac_ext=C
22003 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22004 ac_cpp='$CXXCPP $CPPFLAGS'
22005 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22006 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22007 cross_compiling=$ac_cv_prog_cxx_cross
22008
22009       cat > conftest.$ac_ext <<EOF
22010 #line 22011 "configure"
22011 #include "confdefs.h"
22012 #include <stdlib.h>
22013 int main() {
22014  setenv(0, 0, 0);
22015 ; return 0; }
22016 EOF
22017 if { (eval echo configure:22018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22018   rm -rf conftest*
22019   glibcpp_cv_func_setenv_use=yes
22020 else
22021   echo "configure: failed program was:" >&5
22022   cat conftest.$ac_ext >&5
22023   rm -rf conftest*
22024   glibcpp_cv_func_setenv_use=no
22025 fi
22026 rm -f conftest*
22027       ac_ext=c
22028 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22029 ac_cpp='$CPP $CPPFLAGS'
22030 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22031 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22032 cross_compiling=$ac_cv_prog_cc_cross
22033
22034     
22035 fi
22036
22037   fi
22038   echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
22039   if test x$glibcpp_cv_func_setenv_use = x"yes"; then
22040     for ac_func in setenv
22041 do
22042 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22043 echo "configure:22044: checking for $ac_func" >&5
22044 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22045   echo $ac_n "(cached) $ac_c" 1>&6
22046 else
22047   cat > conftest.$ac_ext <<EOF
22048 #line 22049 "configure"
22049 #include "confdefs.h"
22050 /* System header to define __stub macros and hopefully few prototypes,
22051     which can conflict with char $ac_func(); below.  */
22052 #include <assert.h>
22053 /* Override any gcc2 internal prototype to avoid an error.  */
22054 /* We use char because int might match the return type of a gcc2
22055     builtin and then its argument prototype would still apply.  */
22056 char $ac_func();
22057
22058 int main() {
22059
22060 /* The GNU C library defines this for functions which it implements
22061     to always fail with ENOSYS.  Some functions are actually named
22062     something starting with __ and the normal name is an alias.  */
22063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22064 choke me
22065 #else
22066 $ac_func();
22067 #endif
22068
22069 ; return 0; }
22070 EOF
22071 if { (eval echo configure:22072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22072   rm -rf conftest*
22073   eval "ac_cv_func_$ac_func=yes"
22074 else
22075   echo "configure: failed program was:" >&5
22076   cat conftest.$ac_ext >&5
22077   rm -rf conftest*
22078   eval "ac_cv_func_$ac_func=no"
22079 fi
22080 rm -f conftest*
22081 fi
22082
22083 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22084   echo "$ac_t""yes" 1>&6
22085     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22086   cat >> confdefs.h <<EOF
22087 #define $ac_tr_func 1
22088 EOF
22089  
22090 else
22091   echo "$ac_t""no" 1>&6
22092 fi
22093 done
22094     
22095   fi
22096
22097
22098   # Export file names for ABI checking.
22099   baseline_file="${glibcpp_srcdir}/config/abi/${abi_baseline_triplet}/baseline_symbols.txt"
22100   
22101
22102   # Don't do ABI checking unless native.
22103   
22104
22105 if test x"$build" = x"$host" && test -z "$with_cross_host"; then
22106   GLIBCPP_BUILD_ABI_CHECK_TRUE=
22107   GLIBCPP_BUILD_ABI_CHECK_FALSE='#'
22108 else
22109   GLIBCPP_BUILD_ABI_CHECK_TRUE='#'
22110   GLIBCPP_BUILD_ABI_CHECK_FALSE=
22111 fi
22112
22113 fi
22114
22115 # This depends on the possibly-skipped linker test above.
22116 # Check whether --enable-symvers or --disable-symvers was given.
22117 if test "${enable_symvers+set}" = set; then
22118   enableval="$enable_symvers"
22119   case "$enableval" in
22120  yes) enable_symvers=yes ;;
22121  no)  enable_symvers=no ;;
22122  # other names here, just as sanity checks
22123  #gnu|sun|etcetera) enable_symvers=$enableval ;;
22124  gnu) enable_symvers=$enableval ;;
22125  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
22126  esac
22127 else
22128   enable_symvers=yes
22129 fi
22130
22131 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
22132 # don't know enough about $LD to do tricks... 
22133 if test x$enable_shared = xno || 
22134         test "x$LD" = x || 
22135         test x$glibcpp_gnu_ld_version = x; then
22136   enable_symvers=no
22137 fi
22138
22139 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
22140 if test $enable_symvers != no; then
22141   echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
22142 echo "configure:22143: checking for shared libgcc" >&5
22143   ac_save_CFLAGS="$CFLAGS"
22144   CFLAGS=' -lgcc_s'
22145   cat > conftest.$ac_ext <<EOF
22146 #line 22147 "configure"
22147 #include "confdefs.h"
22148
22149 int main() {
22150 return 0
22151 ; return 0; }
22152 EOF
22153 if { (eval echo configure:22154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22154   rm -rf conftest*
22155   glibcpp_shared_libgcc=yes
22156 else
22157   echo "configure: failed program was:" >&5
22158   cat conftest.$ac_ext >&5
22159   rm -rf conftest*
22160   glibcpp_shared_libgcc=no
22161 fi
22162 rm -f conftest*
22163   CFLAGS="$ac_save_CFLAGS"
22164   echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
22165 fi
22166
22167 # For GNU ld, we need at least this version.  It's 2.12 in the same format
22168 # as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
22169 glibcpp_min_gnu_ld_version=21200
22170
22171 # Check to see if unspecified "yes" value can win, given results
22172 # above.  
22173 if test $enable_symvers = yes ; then
22174   if test $with_gnu_ld = yes &&
22175     test $glibcpp_shared_libgcc = yes ;
22176   then
22177     if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
22178         enable_symvers=gnu
22179     else
22180       ac_test_CFLAGS="${CFLAGS+set}"
22181       ac_save_CFLAGS="$CFLAGS"
22182       CFLAGS='-shared -Wl,--version-script,conftest.map'
22183       enable_symvers=no
22184       
22185       echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
22186       
22187       cat > conftest.$ac_ext <<EOF
22188 #line 22189 "configure"
22189 #include "confdefs.h"
22190 int foo;
22191 int main() {
22192
22193 ; return 0; }
22194 EOF
22195 if { (eval echo configure:22196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22196   rm -rf conftest*
22197   enable_symvers=gnu
22198 else
22199   echo "configure: failed program was:" >&5
22200   cat conftest.$ac_ext >&5
22201 fi
22202 rm -f conftest*
22203       if test "$ac_test_CFLAGS" = set; then
22204         CFLAGS="$ac_save_CFLAGS"
22205       else
22206         # this is the suspicious part
22207         CFLAGS=''
22208       fi
22209       rm -f conftest.map
22210     fi
22211   else
22212     # just fail for now
22213     enable_symvers=no
22214   fi
22215 fi
22216
22217 case $enable_symvers in
22218   no)
22219       LINKER_MAP=config/linker-map.dummy
22220       ;;
22221   gnu)
22222       LINKER_MAP=config/linker-map.gnu
22223       ;;
22224 esac
22225
22226
22227
22228
22229 if test $enable_symvers != no; then
22230   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
22231   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
22232 else
22233   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
22234   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
22235 fi
22236 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
22237 echo "configure:22238: checking versioning on shared library symbols" >&5
22238 echo "$ac_t""$enable_symvers" 1>&6
22239
22240
22241 # Propagate the target-specific source directories through the build chain.
22242 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH and
22243 # CPULIMITSH [might] use it, and they only get used here.)
22244 OS_INC_SRCDIR=config/${os_include_dir}
22245 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
22246 CPU_LIMITS_INC_SRCDIR=config/${CPULIMITSH}
22247
22248
22249
22250
22251 # Set up cross-compile flags
22252   
22253
22254 if test "$CANADIAN" = yes; then
22255   CANADIAN_TRUE=
22256   CANADIAN_FALSE='#'
22257 else
22258   CANADIAN_TRUE='#'
22259   CANADIAN_FALSE=
22260 fi
22261  
22262 cat > confcache <<\EOF
22263 # This file is a shell script that caches the results of configure
22264 # tests run on this system so they can be shared between configure
22265 # scripts and configure runs.  It is not useful on other systems.
22266 # If it contains results you don't want to keep, you may remove or edit it.
22267 #
22268 # By default, configure uses ./config.cache as the cache file,
22269 # creating it if it does not exist already.  You can give configure
22270 # the --cache-file=FILE option to use a different cache file; that is
22271 # what configure does when it calls configure scripts in
22272 # subdirectories, so they share the cache.
22273 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22274 # config.status only pays attention to the cache file if you give it the
22275 # --recheck option to rerun configure.
22276 #
22277 EOF
22278 # The following way of writing the cache mishandles newlines in values,
22279 # but we know of no workaround that is simple, portable, and efficient.
22280 # So, don't put newlines in cache variables' values.
22281 # Ultrix sh set writes to stderr and can't be redirected directly,
22282 # and sets the high bit in the cache file unless we assign to the vars.
22283 (set) 2>&1 |
22284   case `(ac_space=' '; set | grep ac_space) 2>&1` in
22285   *ac_space=\ *)
22286     # `set' does not quote correctly, so add quotes (double-quote substitution
22287     # turns \\\\ into \\, and sed turns \\ into \).
22288     sed -n \
22289       -e "s/'/'\\\\''/g" \
22290       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22291     ;;
22292   *)
22293     # `set' quotes correctly as required by POSIX, so do not add quotes.
22294     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22295     ;;
22296   esac >> confcache
22297 if cmp -s $cache_file confcache; then
22298   :
22299 else
22300   if test -w $cache_file; then
22301     echo "updating cache $cache_file"
22302     cat confcache > $cache_file
22303   else
22304     echo "not updating unwritable cache $cache_file"
22305   fi
22306 fi
22307 rm -f confcache
22308
22309
22310 if test "${multilib}" = "yes"; then
22311   multilib_arg="--enable-multilib"
22312 else
22313   multilib_arg=
22314 fi
22315
22316 # Export all the install information
22317
22318 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
22319 # exported correctly in GLIBCPP_CONFIGURE.
22320 glibcpp_toolexecdir=no
22321 glibcpp_toolexeclibdir=no
22322 glibcpp_prefixdir=${prefix}
22323
22324 # Process the option --with-gxx-include-dir=<path to include-files directory>
22325 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
22326 echo "configure:22327: checking for --with-gxx-include-dir" >&5
22327 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
22328 if test "${with_gxx_include_dir+set}" = set; then
22329   withval="$with_gxx_include_dir"
22330   case "${withval}" in
22331   yes)
22332     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
22333     gxx_include_dir=no
22334     ;;
22335   no)
22336     gxx_include_dir=no
22337     ;;
22338   *)
22339     gxx_include_dir=${withval}
22340     ;;
22341 esac
22342 else
22343   gxx_include_dir=no
22344 fi
22345
22346 echo "$ac_t""$gxx_include_dir" 1>&6
22347
22348 # Process the option "--enable-version-specific-runtime-libs"
22349 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
22350 echo "configure:22351: checking for --enable-version-specific-runtime-libs" >&5
22351 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
22352 if test "${enable_version_specific_runtime_libs+set}" = set; then
22353   enableval="$enable_version_specific_runtime_libs"
22354   case "$enableval" in
22355  yes) version_specific_libs=yes ;;
22356  no)  version_specific_libs=no ;;
22357  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
22358  esac
22359 else
22360   version_specific_libs=no
22361 fi
22362 # Option set, now we can test it.
22363 echo "$ac_t""$version_specific_libs" 1>&6
22364
22365 # Default case for install directory for include files.
22366 if test $version_specific_libs = no && test $gxx_include_dir = no; then
22367   gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
22368 fi
22369
22370 # Version-specific runtime libs processing.
22371 if test $version_specific_libs = yes; then
22372   # Need the gcc compiler version to know where to install libraries
22373   # and header files if --enable-version-specific-runtime-libs option
22374   # is selected.
22375   if test x"$gxx_include_dir" = x"no"; then
22376     gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
22377   fi
22378   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22379   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
22380 fi
22381
22382 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
22383 # Install a library built with a cross compiler in tooldir, not libdir.
22384 if test x"$glibcpp_toolexecdir" = x"no"; then 
22385   if test -n "$with_cross_host" &&
22386      test x"$with_cross_host" != x"no"; then
22387     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
22388     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
22389   else
22390     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22391     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
22392   fi
22393 fi
22394
22395 echo $ac_n "checking for install location""... $ac_c" 1>&6
22396 echo "configure:22397: checking for install location" >&5
22397 echo "$ac_t""$gxx_include_dir" 1>&6
22398
22399
22400
22401
22402
22403
22404
22405 # Export all the include and flag information to makefiles.
22406
22407   # Root level of the build directory include sources.
22408   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
22409
22410   # Passed down for canadian crosses.
22411   if test x"$CANADIAN" = xyes; then
22412     TOPLEVEL_INCLUDES='-I$(includedir)'
22413   fi
22414
22415   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
22416
22417   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
22418
22419   if test x"$need_libio" = xyes; then
22420     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
22421     
22422   fi
22423
22424   # Now, export this to all the little Makefiles....
22425   
22426   
22427   
22428   
22429
22430
22431   # Optimization flags that are probably a good idea for thrill-seekers. Just
22432   # uncomment the lines below and make, everything else is ready to go... 
22433   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
22434   OPTIMIZE_CXXFLAGS=
22435   
22436
22437   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
22438   
22439
22440
22441 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
22442    grep "enable shared" > /dev/null; then
22443   LIBSUPCXX_PICFLAGS=-prefer-pic
22444 else
22445   LIBSUPCXX_PICFLAGS=
22446 fi
22447
22448
22449 # Generate the various Makefiles, include files, and scripts.
22450 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
22451 # and libsupc++/Makefile.am so that multilib installs will end up
22452 # installed in the correct place. To work around this not being passed
22453 # down from config-ml.in -> top_srcdir/Makefile.am ->
22454 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
22455 trap '' 1 2 15
22456 cat > confcache <<\EOF
22457 # This file is a shell script that caches the results of configure
22458 # tests run on this system so they can be shared between configure
22459 # scripts and configure runs.  It is not useful on other systems.
22460 # If it contains results you don't want to keep, you may remove or edit it.
22461 #
22462 # By default, configure uses ./config.cache as the cache file,
22463 # creating it if it does not exist already.  You can give configure
22464 # the --cache-file=FILE option to use a different cache file; that is
22465 # what configure does when it calls configure scripts in
22466 # subdirectories, so they share the cache.
22467 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22468 # config.status only pays attention to the cache file if you give it the
22469 # --recheck option to rerun configure.
22470 #
22471 EOF
22472 # The following way of writing the cache mishandles newlines in values,
22473 # but we know of no workaround that is simple, portable, and efficient.
22474 # So, don't put newlines in cache variables' values.
22475 # Ultrix sh set writes to stderr and can't be redirected directly,
22476 # and sets the high bit in the cache file unless we assign to the vars.
22477 (set) 2>&1 |
22478   case `(ac_space=' '; set | grep ac_space) 2>&1` in
22479   *ac_space=\ *)
22480     # `set' does not quote correctly, so add quotes (double-quote substitution
22481     # turns \\\\ into \\, and sed turns \\ into \).
22482     sed -n \
22483       -e "s/'/'\\\\''/g" \
22484       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22485     ;;
22486   *)
22487     # `set' quotes correctly as required by POSIX, so do not add quotes.
22488     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22489     ;;
22490   esac >> confcache
22491 if cmp -s $cache_file confcache; then
22492   :
22493 else
22494   if test -w $cache_file; then
22495     echo "updating cache $cache_file"
22496     cat confcache > $cache_file
22497   else
22498     echo "not updating unwritable cache $cache_file"
22499   fi
22500 fi
22501 rm -f confcache
22502
22503 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22504
22505 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22506 # Let make expand exec_prefix.
22507 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22508
22509 # Any assignment to VPATH causes Sun make to only execute
22510 # the first set of double-colon rules, so remove it if not needed.
22511 # If there is a colon in the path, we need to keep it.
22512 if test "x$srcdir" = x.; then
22513   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
22514 fi
22515
22516 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22517
22518 DEFS=-DHAVE_CONFIG_H
22519
22520 # Without the "./", some shells look in PATH for config.status.
22521 : ${CONFIG_STATUS=./config.status}
22522
22523 echo creating $CONFIG_STATUS
22524 rm -f $CONFIG_STATUS
22525 cat > $CONFIG_STATUS <<EOF
22526 #! /bin/sh
22527 # Generated automatically by configure.
22528 # Run this file to recreate the current configuration.
22529 # This directory was configured as follows,
22530 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22531 #
22532 # $0 $ac_configure_args
22533 #
22534 # Compiler output produced by configure, useful for debugging
22535 # configure, is in ./config.log if it exists.
22536
22537 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22538 for ac_option
22539 do
22540   case "\$ac_option" in
22541   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22542     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22543     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22544   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22545     echo "$CONFIG_STATUS generated by autoconf version 2.13"
22546     exit 0 ;;
22547   -help | --help | --hel | --he | --h)
22548     echo "\$ac_cs_usage"; exit 0 ;;
22549   *) echo "\$ac_cs_usage"; exit 1 ;;
22550   esac
22551 done
22552
22553 ac_given_srcdir=$srcdir
22554 ac_given_INSTALL="$INSTALL"
22555
22556 trap 'rm -fr `echo "Makefile \
22557     include/Makefile src/Makefile \
22558     libmath/Makefile libio/Makefile libsupc++/Makefile \
22559     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22560 EOF
22561 cat >> $CONFIG_STATUS <<EOF
22562
22563 # Protect against being on the right side of a sed subst in config.status.
22564 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22565  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22566 $ac_vpsub
22567 $extrasub
22568 s%@SHELL@%$SHELL%g
22569 s%@CFLAGS@%$CFLAGS%g
22570 s%@CPPFLAGS@%$CPPFLAGS%g
22571 s%@CXXFLAGS@%$CXXFLAGS%g
22572 s%@FFLAGS@%$FFLAGS%g
22573 s%@DEFS@%$DEFS%g
22574 s%@LDFLAGS@%$LDFLAGS%g
22575 s%@LIBS@%$LIBS%g
22576 s%@exec_prefix@%$exec_prefix%g
22577 s%@prefix@%$prefix%g
22578 s%@program_transform_name@%$program_transform_name%g
22579 s%@bindir@%$bindir%g
22580 s%@sbindir@%$sbindir%g
22581 s%@libexecdir@%$libexecdir%g
22582 s%@datadir@%$datadir%g
22583 s%@sysconfdir@%$sysconfdir%g
22584 s%@sharedstatedir@%$sharedstatedir%g
22585 s%@localstatedir@%$localstatedir%g
22586 s%@libdir@%$libdir%g
22587 s%@includedir@%$includedir%g
22588 s%@oldincludedir@%$oldincludedir%g
22589 s%@infodir@%$infodir%g
22590 s%@mandir@%$mandir%g
22591 s%@PACKAGE@%$PACKAGE%g
22592 s%@libtool_VERSION@%$libtool_VERSION%g
22593 s%@toplevel_srcdir@%$toplevel_srcdir%g
22594 s%@host@%$host%g
22595 s%@host_alias@%$host_alias%g
22596 s%@host_cpu@%$host_cpu%g
22597 s%@host_vendor@%$host_vendor%g
22598 s%@host_os@%$host_os%g
22599 s%@target@%$target%g
22600 s%@target_alias@%$target_alias%g
22601 s%@target_cpu@%$target_cpu%g
22602 s%@target_vendor@%$target_vendor%g
22603 s%@target_os@%$target_os%g
22604 s%@build@%$build%g
22605 s%@build_alias@%$build_alias%g
22606 s%@build_cpu@%$build_cpu%g
22607 s%@build_vendor@%$build_vendor%g
22608 s%@build_os@%$build_os%g
22609 s%@glibcpp_builddir@%$glibcpp_builddir%g
22610 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
22611 s%@AWK@%$AWK%g
22612 s%@LN_S@%$LN_S%g
22613 s%@glibcpp_basedir@%$glibcpp_basedir%g
22614 s%@CC@%$CC%g
22615 s%@glibcpp_CXX@%$glibcpp_CXX%g
22616 s%@AS@%$AS%g
22617 s%@AR@%$AR%g
22618 s%@RANLIB@%$RANLIB%g
22619 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22620 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22621 s%@INSTALL_DATA@%$INSTALL_DATA%g
22622 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
22623 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
22624 s%@MAINT@%$MAINT%g
22625 s%@EXEEXT@%$EXEEXT%g
22626 s%@VERSION@%$VERSION%g
22627 s%@ACLOCAL@%$ACLOCAL%g
22628 s%@AUTOCONF@%$AUTOCONF%g
22629 s%@AUTOMAKE@%$AUTOMAKE%g
22630 s%@AUTOHEADER@%$AUTOHEADER%g
22631 s%@MAKEINFO@%$MAKEINFO%g
22632 s%@SET_MAKE@%$SET_MAKE%g
22633 s%@OBJEXT@%$OBJEXT%g
22634 s%@STRIP@%$STRIP%g
22635 s%@LIBTOOL@%$LIBTOOL%g
22636 s%@CXXCPP@%$CXXCPP%g
22637 s%@enable_shared@%$enable_shared%g
22638 s%@enable_static@%$enable_static%g
22639 s%@ifGNUmake@%$ifGNUmake%g
22640 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
22641 s%@CPP@%$CPP%g
22642 s%@CSTDIO_H@%$CSTDIO_H%g
22643 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
22644 s%@CCODECVT_C@%$CCODECVT_C%g
22645 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
22646 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
22647 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
22648 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
22649 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
22650 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
22651 s%@libio_la@%$libio_la%g
22652 s%@check_msgfmt@%$check_msgfmt%g
22653 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
22654 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
22655 s%@glibcpp_localedir@%$glibcpp_localedir%g
22656 s%@USE_NLS@%$USE_NLS%g
22657 s%@CLOCALE_H@%$CLOCALE_H%g
22658 s%@CCODECVT_H@%$CCODECVT_H%g
22659 s%@CMESSAGES_H@%$CMESSAGES_H%g
22660 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
22661 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
22662 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
22663 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
22664 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
22665 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
22666 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
22667 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
22668 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
22669 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
22670 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
22671 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
22672 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
22673 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
22674 s%@WERROR@%$WERROR%g
22675 s%@baseline_file@%$baseline_file%g
22676 s%@GLIBCPP_BUILD_ABI_CHECK_TRUE@%$GLIBCPP_BUILD_ABI_CHECK_TRUE%g
22677 s%@GLIBCPP_BUILD_ABI_CHECK_FALSE@%$GLIBCPP_BUILD_ABI_CHECK_FALSE%g
22678 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
22679 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
22680 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
22681 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
22682 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
22683 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
22684 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
22685 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
22686 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
22687 s%@gxx_include_dir@%$gxx_include_dir%g
22688 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
22689 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
22690 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
22691 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
22692 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
22693 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
22694 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
22695 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
22696 s%@WARN_FLAGS@%$WARN_FLAGS%g
22697 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
22698
22699 CEOF
22700 EOF
22701
22702 cat >> $CONFIG_STATUS <<\EOF
22703
22704 # Split the substitutions into bite-sized pieces for seds with
22705 # small command number limits, like on Digital OSF/1 and HP-UX.
22706 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22707 ac_file=1 # Number of current file.
22708 ac_beg=1 # First line for current file.
22709 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22710 ac_more_lines=:
22711 ac_sed_cmds=""
22712 while $ac_more_lines; do
22713   if test $ac_beg -gt 1; then
22714     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22715   else
22716     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22717   fi
22718   if test ! -s conftest.s$ac_file; then
22719     ac_more_lines=false
22720     rm -f conftest.s$ac_file
22721   else
22722     if test -z "$ac_sed_cmds"; then
22723       ac_sed_cmds="sed -f conftest.s$ac_file"
22724     else
22725       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22726     fi
22727     ac_file=`expr $ac_file + 1`
22728     ac_beg=$ac_end
22729     ac_end=`expr $ac_end + $ac_max_sed_cmds`
22730   fi
22731 done
22732 if test -z "$ac_sed_cmds"; then
22733   ac_sed_cmds=cat
22734 fi
22735 EOF
22736
22737 cat >> $CONFIG_STATUS <<EOF
22738
22739 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
22740     include/Makefile src/Makefile \
22741     libmath/Makefile libio/Makefile libsupc++/Makefile \
22742     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
22743 EOF
22744 cat >> $CONFIG_STATUS <<\EOF
22745 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22746   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22747   case "$ac_file" in
22748   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22749        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22750   *) ac_file_in="${ac_file}.in" ;;
22751   esac
22752
22753   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22754
22755   # Remove last slash and all that follows it.  Not all systems have dirname.
22756   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22757   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22758     # The file is in a subdirectory.
22759     test ! -d "$ac_dir" && mkdir "$ac_dir"
22760     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22761     # A "../" for each directory in $ac_dir_suffix.
22762     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22763   else
22764     ac_dir_suffix= ac_dots=
22765   fi
22766
22767   case "$ac_given_srcdir" in
22768   .)  srcdir=.
22769       if test -z "$ac_dots"; then top_srcdir=.
22770       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22771   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22772   *) # Relative path.
22773     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22774     top_srcdir="$ac_dots$ac_given_srcdir" ;;
22775   esac
22776
22777   case "$ac_given_INSTALL" in
22778   [/$]*) INSTALL="$ac_given_INSTALL" ;;
22779   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22780   esac
22781
22782   echo creating "$ac_file"
22783   rm -f "$ac_file"
22784   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22785   case "$ac_file" in
22786   *Makefile*) ac_comsub="1i\\
22787 # $configure_input" ;;
22788   *) ac_comsub= ;;
22789   esac
22790
22791   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22792   sed -e "$ac_comsub
22793 s%@configure_input@%$configure_input%g
22794 s%@srcdir@%$srcdir%g
22795 s%@top_srcdir@%$top_srcdir%g
22796 s%@INSTALL@%$INSTALL%g
22797 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22798 fi; done
22799 rm -f conftest.s*
22800
22801 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22802 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22803 #
22804 # ac_d sets the value in "#define NAME VALUE" lines.
22805 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
22806 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
22807 ac_dC='\3'
22808 ac_dD='%g'
22809 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22810 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22811 ac_uB='\([      ]\)%\1#\2define\3'
22812 ac_uC=' '
22813 ac_uD='\4%g'
22814 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22815 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22816 ac_eB='$%\1#\2define\3'
22817 ac_eC=' '
22818 ac_eD='%g'
22819
22820 if test "${CONFIG_HEADERS+set}" != set; then
22821 EOF
22822 cat >> $CONFIG_STATUS <<EOF
22823   CONFIG_HEADERS="config.h"
22824 EOF
22825 cat >> $CONFIG_STATUS <<\EOF
22826 fi
22827 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22828   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22829   case "$ac_file" in
22830   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22831        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22832   *) ac_file_in="${ac_file}.in" ;;
22833   esac
22834
22835   echo creating $ac_file
22836
22837   rm -f conftest.frag conftest.in conftest.out
22838   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22839   cat $ac_file_inputs > conftest.in
22840
22841 EOF
22842
22843 # Transform confdefs.h into a sed script conftest.vals that substitutes
22844 # the proper values into config.h.in to produce config.h.  And first:
22845 # Protect against being on the right side of a sed subst in config.status.
22846 # Protect against being in an unquoted here document in config.status.
22847 rm -f conftest.vals
22848 cat > conftest.hdr <<\EOF
22849 s/[\\&%]/\\&/g
22850 s%[\\$`]%\\&%g
22851 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22852 s%ac_d%ac_u%gp
22853 s%ac_u%ac_e%gp
22854 EOF
22855 sed -n -f conftest.hdr confdefs.h > conftest.vals
22856 rm -f conftest.hdr
22857
22858 # This sed command replaces #undef with comments.  This is necessary, for
22859 # example, in the case of _POSIX_SOURCE, which is predefined and required
22860 # on some systems where configure will not decide to define it.
22861 cat >> conftest.vals <<\EOF
22862 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22863 EOF
22864
22865 # Break up conftest.vals because some shells have a limit on
22866 # the size of here documents, and old seds have small limits too.
22867
22868 rm -f conftest.tail
22869 while :
22870 do
22871   ac_lines=`grep -c . conftest.vals`
22872   # grep -c gives empty output for an empty file on some AIX systems.
22873   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22874   # Write a limited-size here document to conftest.frag.
22875   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22876   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22877   echo 'CEOF
22878   sed -f conftest.frag conftest.in > conftest.out
22879   rm -f conftest.in
22880   mv conftest.out conftest.in
22881 ' >> $CONFIG_STATUS
22882   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22883   rm -f conftest.vals
22884   mv conftest.tail conftest.vals
22885 done
22886 rm -f conftest.vals
22887
22888 cat >> $CONFIG_STATUS <<\EOF
22889   rm -f conftest.frag conftest.h
22890   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
22891   cat conftest.in >> conftest.h
22892   rm -f conftest.in
22893   if cmp -s $ac_file conftest.h 2>/dev/null; then
22894     echo "$ac_file is unchanged"
22895     rm -f conftest.h
22896   else
22897     # Remove last slash and all that follows it.  Not all systems have dirname.
22898       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22899       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22900       # The file is in a subdirectory.
22901       test ! -d "$ac_dir" && mkdir "$ac_dir"
22902     fi
22903     rm -f $ac_file
22904     mv conftest.h $ac_file
22905   fi
22906 fi; done
22907
22908 EOF
22909
22910 cat >> $CONFIG_STATUS <<EOF
22911 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCODECVT_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $CLOCALE_INTERNAL_H $LINKER_MAP"
22912 ac_dests="src/basic_file.cc src/c++locale.cc src/codecvt_members.cc src/collate_members.cc src/ctype_members.cc src/messages_members.cc src/monetary_members.cc src/numeric_members.cc src/time_members.cc src/c++locale_internal.h src/linker.map"
22913 EOF
22914
22915 cat >> $CONFIG_STATUS <<\EOF
22916 srcdir=$ac_given_srcdir
22917 while test -n "$ac_sources"; do
22918   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22919   set $ac_sources; ac_source=$1; shift; ac_sources=$*
22920
22921   echo "linking $srcdir/$ac_source to $ac_dest"
22922
22923   if test ! -r $srcdir/$ac_source; then
22924     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
22925   fi
22926   rm -f $ac_dest
22927
22928   # Make relative symlinks.
22929   # Remove last slash and all that follows it.  Not all systems have dirname.
22930   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
22931   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
22932     # The dest file is in a subdirectory.
22933     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
22934     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
22935     # A "../" for each directory in $ac_dest_dir_suffix.
22936     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
22937   else
22938     ac_dest_dir_suffix= ac_dots=
22939   fi
22940
22941   case "$srcdir" in
22942   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
22943   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
22944   esac
22945
22946   # Make a symlink if possible; otherwise try a hard link.
22947   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22948     ln $srcdir/$ac_source $ac_dest; then :
22949   else
22950     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
22951   fi
22952 done
22953 EOF
22954 cat >> $CONFIG_STATUS <<EOF
22955
22956 srcdir=${srcdir}
22957 host=${host}
22958 target=${target}
22959 with_multisubdir=${with_multisubdir}
22960 ac_configure_args="${multilib_arg} ${ac_configure_args}"
22961 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
22962 glibcpp_basedir=${glibcpp_basedir}
22963 CC="${CC}"
22964 CXX="${CXX}"
22965
22966 EOF
22967 cat >> $CONFIG_STATUS <<\EOF
22968 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
22969 if test -n "$CONFIG_FILES"; then
22970   LD="${ORIGINAL_LD_FOR_MULTILIBS}"
22971   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
22972   grep '^MULTISUBDIR =' Makefile >> src/Makefile
22973   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
22974 fi
22975 chmod +x mkcheck
22976 chmod +x testsuite_flags
22977
22978 exit 0
22979 EOF
22980 chmod +x $CONFIG_STATUS
22981 rm -fr confdefs* $ac_clean_files
22982 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
22983
22984
22985
22986 # Sanity checking & User-visible messages.
22987 # Checks down here, otherwise they get scrolled off before
22988 # the user will notice.
22989
22990 # Trying to get more people to read documentation.  Possibly remove
22991 # check and warn all the time. There is no "informational" AC_MSG_
22992 # macro, so these are going to be printed even when --quiet/--silent
22993 # is given.
22994 if test ! -f stamp-sanity-warned; then
22995   touch stamp-sanity-warned
22996   echo ""
22997   echo "Please make certain that you read the installation information here:"
22998   echo "  faster => ${srcdir}/docs/html/install.html"
22999   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
23000   echo ""
23001   echo "and the configuration information here:"
23002   echo "  faster => ${srcdir}/docs/html/configopts.html"
23003   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
23004   echo ""
23005   echo "before proceeding with ${_cv_gnu_make_command}."
23006   echo ""
23007 fi