OSDN Git Service

2002-06-18 Benjamin Kosnik <bkoz@redhat.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-multilib       build hella library versions (default)"
16 ac_help="$ac_help
17   --with-target-subdir=SUBDIR
18                           configuring in a subdirectory"
19 ac_help="$ac_help
20   --with-cross-host=HOST  configuring with a cross compiler"
21 ac_help="$ac_help
22   --enable-maintainer-mode enable make rules and dependencies not useful
23                           (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25   --enable-shared[=PKGS]  build shared libraries [default=yes]"
26 ac_help="$ac_help
27   --enable-static[=PKGS]  build static libraries [default=yes]"
28 ac_help="$ac_help
29   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33   --disable-libtool-lock  avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37   --enable-debug          extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39   --enable-cstdio         enable stdio for target io package. 
40   --enable-cstdio=LIB     use LIB target-speific io package. [default=stdio]
41   "
42 ac_help="$ac_help
43   --enable-clocale        enable model for target locale package. 
44   --enable-clocale=MODEL  use MODEL target-speific locale package. [default=generic]
45   "
46 ac_help="$ac_help
47   --enable-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 typical GNU versioning info, format is MAJOR.MINOR.MICRO
591 release_VERSION=3.1.1
592
593 # For libtool versioning info, format is CURRENT:REVISION:AGE
594 libtool_VERSION=4:1:0
595
596
597 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
598 #
599 # You will slowly go insane if you do not grok the following fact:  when
600 # building v3 as part of the compiler, the top-level /target/ becomes the
601 # library's /host/.  `configure' then causes --target to default to --host,
602 # exactly like any other package using autoconf.  Therefore, 'target' and
603 # 'host' will always be the same.  This makes sense both for native and
604 # cross compilers, just think about it for a little while.  :-)
605 #
606 # Also, if v3 is being configured as part of a cross compiler, the top-level
607 # configure script will pass the "real" host as $with_cross_host.
608 #
609 # AC 2.5x sets target_alias iff the user specified --target, but we use it
610 # everywhere, so we set it here just to be sure.  In AC 2.13
611 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
612 ac_aux_dir=
613 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
614   if test -f $ac_dir/install-sh; then
615     ac_aux_dir=$ac_dir
616     ac_install_sh="$ac_aux_dir/install-sh -c"
617     break
618   elif test -f $ac_dir/install.sh; then
619     ac_aux_dir=$ac_dir
620     ac_install_sh="$ac_aux_dir/install.sh -c"
621     break
622   fi
623 done
624 if test -z "$ac_aux_dir"; then
625   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
626 fi
627 ac_config_guess=$ac_aux_dir/config.guess
628 ac_config_sub=$ac_aux_dir/config.sub
629 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
630
631
632 # Do some error checking and defaulting for the host and target type.
633 # The inputs are:
634 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
635 #
636 # The rules are:
637 # 1. You are not allowed to specify --host, --target, and nonopt at the
638 #    same time.
639 # 2. Host defaults to nonopt.
640 # 3. If nonopt is not specified, then host defaults to the current host,
641 #    as determined by config.guess.
642 # 4. Target and build default to nonopt.
643 # 5. If nonopt is not specified, then target and build default to host.
644
645 # The aliases save the names the user supplied, while $host etc.
646 # will get canonicalized.
647 case $host---$target---$nonopt in
648 NONE---*---* | *---NONE---* | *---*---NONE) ;;
649 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
650 esac
651
652
653 # Make sure we can run config.sub.
654 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
655 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
656 fi
657
658 echo $ac_n "checking host system type""... $ac_c" 1>&6
659 echo "configure:660: checking host system type" >&5
660
661 host_alias=$host
662 case "$host_alias" in
663 NONE)
664   case $nonopt in
665   NONE)
666     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
667     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
668     fi ;;
669   *) host_alias=$nonopt ;;
670   esac ;;
671 esac
672
673 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
674 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
675 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
676 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
677 echo "$ac_t""$host" 1>&6
678
679 echo $ac_n "checking target system type""... $ac_c" 1>&6
680 echo "configure:681: checking target system type" >&5
681
682 target_alias=$target
683 case "$target_alias" in
684 NONE)
685   case $nonopt in
686   NONE) target_alias=$host_alias ;;
687   *) target_alias=$nonopt ;;
688   esac ;;
689 esac
690
691 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
692 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
693 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
694 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
695 echo "$ac_t""$target" 1>&6
696
697 echo $ac_n "checking build system type""... $ac_c" 1>&6
698 echo "configure:699: checking build system type" >&5
699
700 build_alias=$build
701 case "$build_alias" in
702 NONE)
703   case $nonopt in
704   NONE) build_alias=$host_alias ;;
705   *) build_alias=$nonopt ;;
706   esac ;;
707 esac
708
709 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
710 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
711 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
712 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
713 echo "$ac_t""$build" 1>&6
714
715 test "$host_alias" != "$target_alias" &&
716   test "$program_prefix$program_suffix$program_transform_name" = \
717     NONENONEs,x,x, &&
718   program_prefix=${target_alias}-
719
720 target_alias=${target_alias-$target}
721
722
723 # Find a good install program.  We prefer a C program (faster),
724 # so one script is as good as another.  But avoid the broken or
725 # incompatible versions:
726 # SysV /etc/install, /usr/sbin/install
727 # SunOS /usr/etc/install
728 # IRIX /sbin/install
729 # AIX /bin/install
730 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
731 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
732 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
733 # ./install, which can be erroneously created by make from ./install.sh.
734 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
735 echo "configure:736: checking for a BSD compatible install" >&5
736 if test -z "$INSTALL"; then
737 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
738   echo $ac_n "(cached) $ac_c" 1>&6
739 else
740     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
741   for ac_dir in $PATH; do
742     # Account for people who put trailing slashes in PATH elements.
743     case "$ac_dir/" in
744     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
745     *)
746       # OSF1 and SCO ODT 3.0 have their own names for install.
747       # Don't use installbsd from OSF since it installs stuff as root
748       # by default.
749       for ac_prog in ginstall scoinst install; do
750         if test -f $ac_dir/$ac_prog; then
751           if test $ac_prog = install &&
752             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
753             # AIX install.  It has an incompatible calling convention.
754             :
755           else
756             ac_cv_path_install="$ac_dir/$ac_prog -c"
757             break 2
758           fi
759         fi
760       done
761       ;;
762     esac
763   done
764   IFS="$ac_save_IFS"
765
766 fi
767   if test "${ac_cv_path_install+set}" = set; then
768     INSTALL="$ac_cv_path_install"
769   else
770     # As a last resort, use the slow shell script.  We don't cache a
771     # path for INSTALL within a source directory, because that will
772     # break other packages using the cache if that directory is
773     # removed, or if the path is relative.
774     INSTALL="$ac_install_sh"
775   fi
776 fi
777 echo "$ac_t""$INSTALL" 1>&6
778
779 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
780 # It thinks the first close brace ends the variable substitution.
781 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
782
783 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
784
785 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
786
787 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
788 echo "configure:789: checking whether build environment is sane" >&5
789 # Just in case
790 sleep 1
791 echo timestamp > conftestfile
792 # Do `set' in a subshell so we don't clobber the current shell's
793 # arguments.  Must try -L first in case configure is actually a
794 # symlink; some systems play weird games with the mod time of symlinks
795 # (eg FreeBSD returns the mod time of the symlink's containing
796 # directory).
797 if (
798    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
799    if test "$*" = "X"; then
800       # -L didn't work.
801       set X `ls -t $srcdir/configure conftestfile`
802    fi
803    if test "$*" != "X $srcdir/configure conftestfile" \
804       && test "$*" != "X conftestfile $srcdir/configure"; then
805
806       # If neither matched, then we have a broken ls.  This can happen
807       # if, for instance, CONFIG_SHELL is bash and it inherits a
808       # broken ls alias from the environment.  This has actually
809       # happened.  Such a system could not be considered "sane".
810       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
811 alias in your environment" 1>&2; exit 1; }
812    fi
813
814    test "$2" = conftestfile
815    )
816 then
817    # Ok.
818    :
819 else
820    { echo "configure: error: newly created file is older than distributed files!
821 Check your system clock" 1>&2; exit 1; }
822 fi
823 rm -f conftest*
824 echo "$ac_t""yes" 1>&6
825 if test "$program_transform_name" = s,x,x,; then
826   program_transform_name=
827 else
828   # Double any \ or $.  echo might interpret backslashes.
829   cat <<\EOF_SED > conftestsed
830 s,\\,\\\\,g; s,\$,$$,g
831 EOF_SED
832   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
833   rm -f conftestsed
834 fi
835 test "$program_prefix" != NONE &&
836   program_transform_name="s,^,${program_prefix},; $program_transform_name"
837 # Use a double $ so make ignores it.
838 test "$program_suffix" != NONE &&
839   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
840
841 # sed with no file args requires a program.
842 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
843
844 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
845 echo "configure:846: checking whether ${MAKE-make} sets \${MAKE}" >&5
846 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
847 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
848   echo $ac_n "(cached) $ac_c" 1>&6
849 else
850   cat > conftestmake <<\EOF
851 all:
852         @echo 'ac_maketemp="${MAKE}"'
853 EOF
854 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
855 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
856 if test -n "$ac_maketemp"; then
857   eval ac_cv_prog_make_${ac_make}_set=yes
858 else
859   eval ac_cv_prog_make_${ac_make}_set=no
860 fi
861 rm -f conftestmake
862 fi
863 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
864   echo "$ac_t""yes" 1>&6
865   SET_MAKE=
866 else
867   echo "$ac_t""no" 1>&6
868   SET_MAKE="MAKE=${MAKE-make}"
869 fi
870
871
872 PACKAGE=$PACKAGE
873
874 VERSION=$release_VERSION
875
876 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
877   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
878 fi
879 cat >> confdefs.h <<EOF
880 #define PACKAGE "$PACKAGE"
881 EOF
882
883 cat >> confdefs.h <<EOF
884 #define VERSION "$VERSION"
885 EOF
886
887
888
889 missing_dir=`cd $ac_aux_dir && pwd`
890 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
891 echo "configure:892: checking for working aclocal" >&5
892 # Run test in a subshell; some versions of sh will print an error if
893 # an executable is not found, even if stderr is redirected.
894 # Redirect stdin to placate older versions of autoconf.  Sigh.
895 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
896    ACLOCAL=aclocal
897    echo "$ac_t""found" 1>&6
898 else
899    ACLOCAL="$missing_dir/missing aclocal"
900    echo "$ac_t""missing" 1>&6
901 fi
902
903 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
904 echo "configure:905: checking for working autoconf" >&5
905 # Run test in a subshell; some versions of sh will print an error if
906 # an executable is not found, even if stderr is redirected.
907 # Redirect stdin to placate older versions of autoconf.  Sigh.
908 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
909    AUTOCONF=autoconf
910    echo "$ac_t""found" 1>&6
911 else
912    AUTOCONF="$missing_dir/missing autoconf"
913    echo "$ac_t""missing" 1>&6
914 fi
915
916 echo $ac_n "checking for working automake""... $ac_c" 1>&6
917 echo "configure:918: checking for working automake" >&5
918 # Run test in a subshell; some versions of sh will print an error if
919 # an executable is not found, even if stderr is redirected.
920 # Redirect stdin to placate older versions of autoconf.  Sigh.
921 if (automake --version) < /dev/null > /dev/null 2>&1; then
922    AUTOMAKE=automake
923    echo "$ac_t""found" 1>&6
924 else
925    AUTOMAKE="$missing_dir/missing automake"
926    echo "$ac_t""missing" 1>&6
927 fi
928
929 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
930 echo "configure:931: checking for working autoheader" >&5
931 # Run test in a subshell; some versions of sh will print an error if
932 # an executable is not found, even if stderr is redirected.
933 # Redirect stdin to placate older versions of autoconf.  Sigh.
934 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
935    AUTOHEADER=autoheader
936    echo "$ac_t""found" 1>&6
937 else
938    AUTOHEADER="$missing_dir/missing autoheader"
939    echo "$ac_t""missing" 1>&6
940 fi
941
942 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
943 echo "configure:944: checking for working makeinfo" >&5
944 # Run test in a subshell; some versions of sh will print an error if
945 # an executable is not found, even if stderr is redirected.
946 # Redirect stdin to placate older versions of autoconf.  Sigh.
947 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
948    MAKEINFO=makeinfo
949    echo "$ac_t""found" 1>&6
950 else
951    MAKEINFO="$missing_dir/missing makeinfo"
952    echo "$ac_t""missing" 1>&6
953 fi
954
955
956
957
958
959
960 # Runs configure.target, finds CC, CXX and assorted other critical bits.
961 # Must run this before the GLIBCPP_ENABLE_* macros below.
962 if test $host != $build; then
963   ac_tool_prefix=${host_alias}-
964 else
965   ac_tool_prefix=
966 fi
967
968 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
969 echo "configure:970: checking for Cygwin environment" >&5
970 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
971   echo $ac_n "(cached) $ac_c" 1>&6
972 else
973   cat > conftest.$ac_ext <<EOF
974 #line 975 "configure"
975 #include "confdefs.h"
976
977 int main() {
978
979 #ifndef __CYGWIN__
980 #define __CYGWIN__ __CYGWIN32__
981 #endif
982 return __CYGWIN__;
983 ; return 0; }
984 EOF
985 if { (eval echo configure:986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
986   rm -rf conftest*
987   ac_cv_cygwin=yes
988 else
989   echo "configure: failed program was:" >&5
990   cat conftest.$ac_ext >&5
991   rm -rf conftest*
992   ac_cv_cygwin=no
993 fi
994 rm -f conftest*
995 rm -f conftest*
996 fi
997
998 echo "$ac_t""$ac_cv_cygwin" 1>&6
999 CYGWIN=
1000 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1001 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1002 echo "configure:1003: checking for mingw32 environment" >&5
1003 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1004   echo $ac_n "(cached) $ac_c" 1>&6
1005 else
1006   cat > conftest.$ac_ext <<EOF
1007 #line 1008 "configure"
1008 #include "confdefs.h"
1009
1010 int main() {
1011 return __MINGW32__;
1012 ; return 0; }
1013 EOF
1014 if { (eval echo configure:1015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1015   rm -rf conftest*
1016   ac_cv_mingw32=yes
1017 else
1018   echo "configure: failed program was:" >&5
1019   cat conftest.$ac_ext >&5
1020   rm -rf conftest*
1021   ac_cv_mingw32=no
1022 fi
1023 rm -f conftest*
1024 rm -f conftest*
1025 fi
1026
1027 echo "$ac_t""$ac_cv_mingw32" 1>&6
1028 MINGW32=
1029 test "$ac_cv_mingw32" = yes && MINGW32=yes
1030
1031       # Check whether --enable-multilib or --disable-multilib was given.
1032 if test "${enable_multilib+set}" = set; then
1033   enableval="$enable_multilib"
1034   case "${enableval}" in
1035     yes) multilib=yes ;;
1036     no)  multilib=no ;;
1037     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1038    esac
1039 else
1040   multilib=yes
1041 fi
1042
1043   # When building with srcdir == objdir, links to the source files will
1044   # be created in directories within the target_subdir.  We have to
1045   # adjust toplevel_srcdir accordingly, so that configure finds
1046   # install-sh and other auxiliary files that live in the top-level
1047   # source directory.
1048   if test "${srcdir}" = "."; then
1049     if test -z "${with_target_subdir}"; then
1050       toprel=".."
1051     else
1052       if test "${with_target_subdir}" != "."; then
1053         toprel="${with_multisrctop}../.."
1054       else
1055         toprel="${with_multisrctop}.."
1056       fi
1057     fi
1058   else
1059     toprel=".."
1060   fi
1061   ac_aux_dir=
1062 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1063   if test -f $ac_dir/install-sh; then
1064     ac_aux_dir=$ac_dir
1065     ac_install_sh="$ac_aux_dir/install-sh -c"
1066     break
1067   elif test -f $ac_dir/install.sh; then
1068     ac_aux_dir=$ac_dir
1069     ac_install_sh="$ac_aux_dir/install.sh -c"
1070     break
1071   fi
1072 done
1073 if test -z "$ac_aux_dir"; then
1074   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
1075 fi
1076 ac_config_guess=$ac_aux_dir/config.guess
1077 ac_config_sub=$ac_aux_dir/config.sub
1078 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1079
1080   toplevel_srcdir=\${top_srcdir}/$toprel
1081   
1082
1083 #possibly test for the presence of the compiler sources here?
1084
1085   # Export build and source directories.
1086   # These need to be absolute paths, yet at the same time need to
1087   # canonicalize only relative paths, because then amd will not unmount
1088   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1089   glibcpp_builddir=`${PWDCMD-pwd}`
1090   case $srcdir in
1091   \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1092   *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1093   esac
1094   
1095   
1096
1097     
1098
1099   for ac_prog in gawk mawk nawk awk
1100 do
1101 # Extract the first word of "$ac_prog", so it can be a program name with args.
1102 set dummy $ac_prog; ac_word=$2
1103 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1104 echo "configure:1105: checking for $ac_word" >&5
1105 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1106   echo $ac_n "(cached) $ac_c" 1>&6
1107 else
1108   if test -n "$AWK"; then
1109   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1110 else
1111   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1112   ac_dummy="$PATH"
1113   for ac_dir in $ac_dummy; do
1114     test -z "$ac_dir" && ac_dir=.
1115     if test -f $ac_dir/$ac_word; then
1116       ac_cv_prog_AWK="$ac_prog"
1117       break
1118     fi
1119   done
1120   IFS="$ac_save_ifs"
1121 fi
1122 fi
1123 AWK="$ac_cv_prog_AWK"
1124 if test -n "$AWK"; then
1125   echo "$ac_t""$AWK" 1>&6
1126 else
1127   echo "$ac_t""no" 1>&6
1128 fi
1129
1130 test -n "$AWK" && break
1131 done
1132
1133   # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.5x, can also
1134   # be 'cp -p' if linking isn't available.  Uncomment the next line to
1135   # force a particular method.
1136   #ac_cv_prog_LN_S='cp -p'
1137   echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1138 echo "configure:1139: checking whether ln -s works" >&5
1139 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1140   echo $ac_n "(cached) $ac_c" 1>&6
1141 else
1142   rm -f conftestdata
1143 if ln -s X conftestdata 2>/dev/null
1144 then
1145   rm -f conftestdata
1146   ac_cv_prog_LN_S="ln -s"
1147 else
1148   ac_cv_prog_LN_S=ln
1149 fi
1150 fi
1151 LN_S="$ac_cv_prog_LN_S"
1152 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1153   echo "$ac_t""yes" 1>&6
1154 else
1155   echo "$ac_t""no" 1>&6
1156 fi
1157
1158
1159   # We use these options to decide which functions to include.
1160   # Check whether --with-target-subdir or --without-target-subdir was given.
1161 if test "${with_target_subdir+set}" = set; then
1162   withval="$with_target_subdir"
1163   :
1164 fi
1165
1166   # Check whether --with-cross-host or --without-cross-host was given.
1167 if test "${with_cross_host+set}" = set; then
1168   withval="$with_cross_host"
1169   :
1170 fi
1171
1172
1173   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
1174   
1175
1176   # Never versions of autoconf add an underscore to these functions.
1177   # Prevent future problems ...
1178   
1179   
1180   
1181   
1182
1183   # AC_PROG_CC
1184   # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1185   # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1186   # are probably using a cross compiler, which will not be able to fully
1187   # link an executable.  This is addressed in later versions of autoconf.
1188
1189   
1190
1191       
1192   # Extract the first word of "gcc", so it can be a program name with args.
1193 set dummy gcc; ac_word=$2
1194 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1195 echo "configure:1196: checking for $ac_word" >&5
1196 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1197   echo $ac_n "(cached) $ac_c" 1>&6
1198 else
1199   if test -n "$CC"; then
1200   ac_cv_prog_CC="$CC" # Let the user override the test.
1201 else
1202   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1203   ac_dummy="$PATH"
1204   for ac_dir in $ac_dummy; do
1205     test -z "$ac_dir" && ac_dir=.
1206     if test -f $ac_dir/$ac_word; then
1207       ac_cv_prog_CC="gcc"
1208       break
1209     fi
1210   done
1211   IFS="$ac_save_ifs"
1212 fi
1213 fi
1214 CC="$ac_cv_prog_CC"
1215 if test -n "$CC"; then
1216   echo "$ac_t""$CC" 1>&6
1217 else
1218   echo "$ac_t""no" 1>&6
1219 fi
1220
1221   if test -z "$CC"; then
1222     # Extract the first word of "cc", so it can be a program name with args.
1223 set dummy cc; ac_word=$2
1224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1225 echo "configure:1226: checking for $ac_word" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1227   echo $ac_n "(cached) $ac_c" 1>&6
1228 else
1229   if test -n "$CC"; then
1230   ac_cv_prog_CC="$CC" # Let the user override the test.
1231 else
1232   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1233   ac_prog_rejected=no
1234   ac_dummy="$PATH"
1235   for ac_dir in $ac_dummy; do
1236     test -z "$ac_dir" && ac_dir=.
1237     if test -f $ac_dir/$ac_word; then
1238       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1239         ac_prog_rejected=yes
1240         continue
1241       fi
1242       ac_cv_prog_CC="cc"
1243       break
1244     fi
1245   done
1246   IFS="$ac_save_ifs"
1247 if test $ac_prog_rejected = yes; then
1248   # We found a bogon in the path, so make sure we never use it.
1249   set dummy $ac_cv_prog_CC
1250   shift
1251   if test $# -gt 0; then
1252     # We chose a different compiler from the bogus one.
1253     # However, it has the same basename, so the bogon will be chosen
1254     # first if we set CC to just the basename; use the full file name.
1255     shift
1256     set dummy "$ac_dir/$ac_word" "$@"
1257     shift
1258     ac_cv_prog_CC="$@"
1259   fi
1260 fi
1261 fi
1262 fi
1263 CC="$ac_cv_prog_CC"
1264 if test -n "$CC"; then
1265   echo "$ac_t""$CC" 1>&6
1266 else
1267   echo "$ac_t""no" 1>&6
1268 fi
1269
1270     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1271   fi
1272
1273   echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1274 echo "configure:1275: checking whether we are using GNU C" >&5
1275 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1276   echo $ac_n "(cached) $ac_c" 1>&6
1277 else
1278   cat > conftest.c <<EOF
1279 #ifdef __GNUC__
1280   yes;
1281 #endif
1282 EOF
1283 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1284   ac_cv_prog_gcc=yes
1285 else
1286   ac_cv_prog_gcc=no
1287 fi
1288 fi
1289
1290 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1291
1292   if test $ac_cv_prog_gcc = yes; then
1293     GCC=yes
1294           ac_test_CFLAGS="${CFLAGS+set}"
1295     ac_save_CFLAGS="$CFLAGS"
1296     CFLAGS=
1297     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1298 echo "configure:1299: checking whether ${CC-cc} accepts -g" >&5
1299 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1300   echo $ac_n "(cached) $ac_c" 1>&6
1301 else
1302   echo 'void f(){}' > conftest.c
1303 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1304   ac_cv_prog_cc_g=yes
1305 else
1306   ac_cv_prog_cc_g=no
1307 fi
1308 rm -f conftest*
1309
1310 fi
1311
1312 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1313     if test "$ac_test_CFLAGS" = set; then
1314       CFLAGS="$ac_save_CFLAGS"
1315     elif test $ac_cv_prog_cc_g = yes; then
1316       CFLAGS="-g -O2"
1317     else
1318       CFLAGS="-O2"
1319     fi
1320   else
1321     GCC=
1322     test "${CFLAGS+set}" = set || CFLAGS="-g"
1323   fi
1324   
1325
1326   # Likewise for AC_PROG_CXX.  We can't just call it directly because g++
1327   # will try to link in libstdc++.
1328   
1329
1330       
1331   # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1332   # flags that come in CXX while configuring libstdc++.  They're different
1333   # from those used for all other target libraries.  If CXX is set in
1334   # the environment, respect that here.
1335   glibcpp_CXX=$CXX
1336   for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1337 do
1338 # Extract the first word of "$ac_prog", so it can be a program name with args.
1339 set dummy $ac_prog; ac_word=$2
1340 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1341 echo "configure:1342: checking for $ac_word" >&5
1342 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1343   echo $ac_n "(cached) $ac_c" 1>&6
1344 else
1345   if test -n "$glibcpp_CXX"; then
1346   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1347 else
1348   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1349   ac_dummy="$PATH"
1350   for ac_dir in $ac_dummy; do
1351     test -z "$ac_dir" && ac_dir=.
1352     if test -f $ac_dir/$ac_word; then
1353       ac_cv_prog_glibcpp_CXX="$ac_prog"
1354       break
1355     fi
1356   done
1357   IFS="$ac_save_ifs"
1358 fi
1359 fi
1360 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1361 if test -n "$glibcpp_CXX"; then
1362   echo "$ac_t""$glibcpp_CXX" 1>&6
1363 else
1364   echo "$ac_t""no" 1>&6
1365 fi
1366
1367 test -n "$glibcpp_CXX" && break
1368 done
1369 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1370
1371   
1372   CXX=$glibcpp_CXX
1373   test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1374
1375   echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1376 echo "configure:1377: checking whether we are using GNU C++" >&5
1377 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1378   echo $ac_n "(cached) $ac_c" 1>&6
1379 else
1380   cat > conftest.C <<EOF
1381 #ifdef __GNUC__
1382   yes;
1383 #endif
1384 EOF
1385 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1386   ac_cv_prog_gxx=yes
1387 else
1388   ac_cv_prog_gxx=no
1389 fi
1390 fi
1391
1392 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1393
1394   if test $ac_cv_prog_gxx = yes; then
1395     GXX=yes
1396                 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1397     ac_save_CXXFLAGS="$CXXFLAGS"
1398     CXXFLAGS=
1399     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1400 echo "configure:1401: checking whether ${CXX-g++} accepts -g" >&5
1401 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1402   echo $ac_n "(cached) $ac_c" 1>&6
1403 else
1404   echo 'void f(){}' > conftest.cc
1405 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1406   ac_cv_prog_cxx_g=yes
1407 else
1408   ac_cv_prog_cxx_g=no
1409 fi
1410 rm -f conftest*
1411
1412 fi
1413
1414 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1415     if test "$ac_test_CXXFLAGS" = set; then
1416       CXXFLAGS="$ac_save_CXXFLAGS"
1417     elif test $ac_cv_prog_cxx_g = yes; then
1418       CXXFLAGS="-g -O2"
1419     else
1420       CXXFLAGS="-O2"
1421     fi
1422   else
1423     GXX=
1424     test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1425   fi
1426   
1427
1428   # For some reason, gettext needs this.
1429   
1430         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1431 echo "configure:1432: checking for strerror in -lcposix" >&5
1432 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1434   echo $ac_n "(cached) $ac_c" 1>&6
1435 else
1436   ac_save_LIBS="$LIBS"
1437 LIBS="-lcposix  $LIBS"
1438 cat > conftest.$ac_ext <<EOF
1439 #line 1440 "configure"
1440 #include "confdefs.h"
1441 /* Override any gcc2 internal prototype to avoid an error.  */
1442 /* We use char because int might match the return type of a gcc2
1443     builtin and then its argument prototype would still apply.  */
1444 char strerror();
1445
1446 int main() {
1447 strerror()
1448 ; return 0; }
1449 EOF
1450 if { (eval echo configure:1451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1451   rm -rf conftest*
1452   eval "ac_cv_lib_$ac_lib_var=yes"
1453 else
1454   echo "configure: failed program was:" >&5
1455   cat conftest.$ac_ext >&5
1456   rm -rf conftest*
1457   eval "ac_cv_lib_$ac_lib_var=no"
1458 fi
1459 rm -f conftest*
1460 LIBS="$ac_save_LIBS"
1461
1462 fi
1463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1464   echo "$ac_t""yes" 1>&6
1465   LIBS="$LIBS -lcposix"
1466 else
1467   echo "$ac_t""no" 1>&6
1468 fi
1469
1470   
1471
1472
1473   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1474 set dummy ${ac_tool_prefix}as; ac_word=$2
1475 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1476 echo "configure:1477: checking for $ac_word" >&5
1477 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1478   echo $ac_n "(cached) $ac_c" 1>&6
1479 else
1480   if test -n "$AS"; then
1481   ac_cv_prog_AS="$AS" # Let the user override the test.
1482 else
1483   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1484   ac_dummy="$PATH"
1485   for ac_dir in $ac_dummy; do
1486     test -z "$ac_dir" && ac_dir=.
1487     if test -f $ac_dir/$ac_word; then
1488       ac_cv_prog_AS="${ac_tool_prefix}as"
1489       break
1490     fi
1491   done
1492   IFS="$ac_save_ifs"
1493   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1494 fi
1495 fi
1496 AS="$ac_cv_prog_AS"
1497 if test -n "$AS"; then
1498   echo "$ac_t""$AS" 1>&6
1499 else
1500   echo "$ac_t""no" 1>&6
1501 fi
1502
1503
1504
1505   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1506 set dummy ${ac_tool_prefix}ar; ac_word=$2
1507 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1508 echo "configure:1509: checking for $ac_word" >&5
1509 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1510   echo $ac_n "(cached) $ac_c" 1>&6
1511 else
1512   if test -n "$AR"; then
1513   ac_cv_prog_AR="$AR" # Let the user override the test.
1514 else
1515   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1516   ac_dummy="$PATH"
1517   for ac_dir in $ac_dummy; do
1518     test -z "$ac_dir" && ac_dir=.
1519     if test -f $ac_dir/$ac_word; then
1520       ac_cv_prog_AR="${ac_tool_prefix}ar"
1521       break
1522     fi
1523   done
1524   IFS="$ac_save_ifs"
1525   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1526 fi
1527 fi
1528 AR="$ac_cv_prog_AR"
1529 if test -n "$AR"; then
1530   echo "$ac_t""$AR" 1>&6
1531 else
1532   echo "$ac_t""no" 1>&6
1533 fi
1534
1535
1536
1537   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1538 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1539 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1540 echo "configure:1541: checking for $ac_word" >&5
1541 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1542   echo $ac_n "(cached) $ac_c" 1>&6
1543 else
1544   if test -n "$RANLIB"; then
1545   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1546 else
1547   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1548   ac_dummy="$PATH"
1549   for ac_dir in $ac_dummy; do
1550     test -z "$ac_dir" && ac_dir=.
1551     if test -f $ac_dir/$ac_word; then
1552       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1553       break
1554     fi
1555   done
1556   IFS="$ac_save_ifs"
1557 fi
1558 fi
1559 RANLIB="$ac_cv_prog_RANLIB"
1560 if test -n "$RANLIB"; then
1561   echo "$ac_t""$RANLIB" 1>&6
1562 else
1563   echo "$ac_t""no" 1>&6
1564 fi
1565
1566
1567 if test -z "$ac_cv_prog_RANLIB"; then
1568 if test -n "$ac_tool_prefix"; then
1569   # Extract the first word of "ranlib", so it can be a program name with args.
1570 set dummy ranlib; ac_word=$2
1571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1572 echo "configure:1573: checking for $ac_word" >&5
1573 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1574   echo $ac_n "(cached) $ac_c" 1>&6
1575 else
1576   if test -n "$RANLIB"; then
1577   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1578 else
1579   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1580   ac_dummy="$PATH"
1581   for ac_dir in $ac_dummy; do
1582     test -z "$ac_dir" && ac_dir=.
1583     if test -f $ac_dir/$ac_word; then
1584       ac_cv_prog_RANLIB="ranlib"
1585       break
1586     fi
1587   done
1588   IFS="$ac_save_ifs"
1589   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1590 fi
1591 fi
1592 RANLIB="$ac_cv_prog_RANLIB"
1593 if test -n "$RANLIB"; then
1594   echo "$ac_t""$RANLIB" 1>&6
1595 else
1596   echo "$ac_t""no" 1>&6
1597 fi
1598
1599 else
1600   RANLIB="ranlib-not-found-in-path-error"
1601 fi
1602 fi
1603
1604   # Find a good install program.  We prefer a C program (faster),
1605 # so one script is as good as another.  But avoid the broken or
1606 # incompatible versions:
1607 # SysV /etc/install, /usr/sbin/install
1608 # SunOS /usr/etc/install
1609 # IRIX /sbin/install
1610 # AIX /bin/install
1611 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1612 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1613 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1614 # ./install, which can be erroneously created by make from ./install.sh.
1615 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1616 echo "configure:1617: checking for a BSD compatible install" >&5
1617 if test -z "$INSTALL"; then
1618 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1619   echo $ac_n "(cached) $ac_c" 1>&6
1620 else
1621     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1622   for ac_dir in $PATH; do
1623     # Account for people who put trailing slashes in PATH elements.
1624     case "$ac_dir/" in
1625     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1626     *)
1627       # OSF1 and SCO ODT 3.0 have their own names for install.
1628       # Don't use installbsd from OSF since it installs stuff as root
1629       # by default.
1630       for ac_prog in ginstall scoinst install; do
1631         if test -f $ac_dir/$ac_prog; then
1632           if test $ac_prog = install &&
1633             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1634             # AIX install.  It has an incompatible calling convention.
1635             :
1636           else
1637             ac_cv_path_install="$ac_dir/$ac_prog -c"
1638             break 2
1639           fi
1640         fi
1641       done
1642       ;;
1643     esac
1644   done
1645   IFS="$ac_save_IFS"
1646
1647 fi
1648   if test "${ac_cv_path_install+set}" = set; then
1649     INSTALL="$ac_cv_path_install"
1650   else
1651     # As a last resort, use the slow shell script.  We don't cache a
1652     # path for INSTALL within a source directory, because that will
1653     # break other packages using the cache if that directory is
1654     # removed, or if the path is relative.
1655     INSTALL="$ac_install_sh"
1656   fi
1657 fi
1658 echo "$ac_t""$INSTALL" 1>&6
1659
1660 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1661 # It thinks the first close brace ends the variable substitution.
1662 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1663
1664 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1665
1666 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1667
1668
1669   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1670 echo "configure:1671: checking whether to enable maintainer-specific portions of Makefiles" >&5
1671     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1672 if test "${enable_maintainer_mode+set}" = set; then
1673   enableval="$enable_maintainer_mode"
1674   USE_MAINTAINER_MODE=$enableval
1675 else
1676   USE_MAINTAINER_MODE=no
1677 fi
1678
1679   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1680   
1681
1682 if test $USE_MAINTAINER_MODE = yes; then
1683   MAINTAINER_MODE_TRUE=
1684   MAINTAINER_MODE_FALSE='#'
1685 else
1686   MAINTAINER_MODE_TRUE='#'
1687   MAINTAINER_MODE_FALSE=
1688 fi
1689   MAINT=$MAINTAINER_MODE_TRUE
1690   
1691
1692
1693   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1694   # at least currently, we never actually build a program, so we never
1695   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1696   # fails, because we are probably configuring with a cross compiler
1697   # which can't create executables.  So we include AC_EXEEXT to keep
1698   # automake happy, but we don't execute it, since we don't care about
1699   # the result.
1700   if false; then
1701     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1702     # to nothing, so nothing would remain between `then' and `fi' if it
1703     # were not for the `:' below.
1704     :
1705     
1706
1707 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1708 echo "configure:1709: checking for executable suffix" >&5
1709 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1710   echo $ac_n "(cached) $ac_c" 1>&6
1711 else
1712   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1713   ac_cv_exeext=.exe
1714 else
1715   rm -f conftest*
1716   echo 'int main () { return 0; }' > conftest.$ac_ext
1717   ac_cv_exeext=
1718   if { (eval echo configure:1719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1719     for file in conftest.*; do
1720       case $file in
1721       *.c | *.o | *.obj) ;;
1722       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1723       esac
1724     done
1725   else
1726     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1727   fi
1728   rm -f conftest*
1729   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1730 fi
1731 fi
1732
1733 EXEEXT=""
1734 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1735 echo "$ac_t""${ac_cv_exeext}" 1>&6
1736 ac_exeext=$EXEEXT
1737
1738   fi
1739
1740   case ${glibcpp_basedir} in
1741     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1742     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1743   esac
1744
1745   # Find platform-specific directories containing configuration info.  In
1746   # addition to possibly modifying the same flags, it also sets up symlinks.
1747   
1748     . ${glibcpp_basedir}/configure.target
1749     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1750     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1751
1752
1753
1754
1755
1756 # Check whether --enable-shared or --disable-shared was given.
1757 if test "${enable_shared+set}" = set; then
1758   enableval="$enable_shared"
1759   p=${PACKAGE-default}
1760 case $enableval in
1761 yes) enable_shared=yes ;;
1762 no) enable_shared=no ;;
1763 *)
1764   enable_shared=no
1765   # Look at the argument we got.  We use all the common list separators.
1766   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1767   for pkg in $enableval; do
1768     if test "X$pkg" = "X$p"; then
1769       enable_shared=yes
1770     fi
1771   done
1772   IFS="$ac_save_ifs"
1773   ;;
1774 esac
1775 else
1776   enable_shared=yes
1777 fi
1778
1779 # Check whether --enable-static or --disable-static was given.
1780 if test "${enable_static+set}" = set; then
1781   enableval="$enable_static"
1782   p=${PACKAGE-default}
1783 case $enableval in
1784 yes) enable_static=yes ;;
1785 no) enable_static=no ;;
1786 *)
1787   enable_static=no
1788   # Look at the argument we got.  We use all the common list separators.
1789   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1790   for pkg in $enableval; do
1791     if test "X$pkg" = "X$p"; then
1792       enable_static=yes
1793     fi
1794   done
1795   IFS="$ac_save_ifs"
1796   ;;
1797 esac
1798 else
1799   enable_static=yes
1800 fi
1801
1802 # Check whether --enable-fast-install or --disable-fast-install was given.
1803 if test "${enable_fast_install+set}" = set; then
1804   enableval="$enable_fast_install"
1805   p=${PACKAGE-default}
1806 case $enableval in
1807 yes) enable_fast_install=yes ;;
1808 no) enable_fast_install=no ;;
1809 *)
1810   enable_fast_install=no
1811   # Look at the argument we got.  We use all the common list separators.
1812   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1813   for pkg in $enableval; do
1814     if test "X$pkg" = "X$p"; then
1815       enable_fast_install=yes
1816     fi
1817   done
1818   IFS="$ac_save_ifs"
1819   ;;
1820 esac
1821 else
1822   enable_fast_install=yes
1823 fi
1824
1825 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1826 if test "${with_gnu_ld+set}" = set; then
1827   withval="$with_gnu_ld"
1828   test "$withval" = no || with_gnu_ld=yes
1829 else
1830   with_gnu_ld=no
1831 fi
1832
1833 ac_prog=ld
1834 if test "$GCC" = yes; then
1835   # Check if gcc -print-prog-name=ld gives a path.
1836   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1837 echo "configure:1838: checking for ld used by GCC" >&5
1838   case $host in
1839   *-*-mingw*)
1840     # gcc leaves a trailing carriage return which upsets mingw
1841     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1842   *)
1843     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1844   esac
1845   case $ac_prog in
1846     # Accept absolute paths.
1847     [\\/]* | [A-Za-z]:[\\/]*)
1848       re_direlt='/[^/][^/]*/\.\./'
1849       # Canonicalize the path of ld
1850       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1851       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1852         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1853       done
1854       test -z "$LD" && LD="$ac_prog"
1855       ;;
1856   "")
1857     # If it fails, then pretend we aren't using GCC.
1858     ac_prog=ld
1859     ;;
1860   *)
1861     # If it is relative, then search for the first ld in PATH.
1862     with_gnu_ld=unknown
1863     ;;
1864   esac
1865 elif test "$with_gnu_ld" = yes; then
1866   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1867 echo "configure:1868: checking for GNU ld" >&5
1868 else
1869   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1870 echo "configure:1871: checking for non-GNU ld" >&5
1871 fi
1872 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1873   echo $ac_n "(cached) $ac_c" 1>&6
1874 else
1875   if test -z "$LD"; then
1876   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1877   for ac_dir in $PATH; do
1878     test -z "$ac_dir" && ac_dir=.
1879     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1880       lt_cv_path_LD="$ac_dir/$ac_prog"
1881       # Check to see if the program is GNU ld.  I'd rather use --version,
1882       # but apparently some GNU ld's only accept -v.
1883       # Break only if it was the GNU/non-GNU ld that we prefer.
1884       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1885         test "$with_gnu_ld" != no && break
1886       else
1887         test "$with_gnu_ld" != yes && break
1888       fi
1889     fi
1890   done
1891   IFS="$ac_save_ifs"
1892 else
1893   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1894 fi
1895 fi
1896
1897 LD="$lt_cv_path_LD"
1898 if test -n "$LD"; then
1899   echo "$ac_t""$LD" 1>&6
1900 else
1901   echo "$ac_t""no" 1>&6
1902 fi
1903 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1904 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1905 echo "configure:1906: checking if the linker ($LD) is GNU ld" >&5
1906 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1907   echo $ac_n "(cached) $ac_c" 1>&6
1908 else
1909   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1910 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1911   lt_cv_prog_gnu_ld=yes
1912 else
1913   lt_cv_prog_gnu_ld=no
1914 fi
1915 fi
1916
1917 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1918 with_gnu_ld=$lt_cv_prog_gnu_ld
1919
1920
1921 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1922 echo "configure:1923: checking for $LD option to reload object files" >&5
1923 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1924   echo $ac_n "(cached) $ac_c" 1>&6
1925 else
1926   lt_cv_ld_reload_flag='-r'
1927 fi
1928
1929 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1930 reload_flag=$lt_cv_ld_reload_flag
1931 test -n "$reload_flag" && reload_flag=" $reload_flag"
1932
1933 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1934 echo "configure:1935: checking for BSD-compatible nm" >&5
1935 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1936   echo $ac_n "(cached) $ac_c" 1>&6
1937 else
1938   if test -n "$NM"; then
1939   # Let the user override the test.
1940   lt_cv_path_NM="$NM"
1941 else
1942   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1943   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1944     test -z "$ac_dir" && ac_dir=.
1945     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1946     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1947       # Check to see if the nm accepts a BSD-compat flag.
1948       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1949       #   nm: unknown option "B" ignored
1950       # Tru64's nm complains that /dev/null is an invalid object file
1951       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1952         lt_cv_path_NM="$tmp_nm -B"
1953         break
1954       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1955         lt_cv_path_NM="$tmp_nm -p"
1956         break
1957       else
1958         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1959         continue # so that we can try to find one that supports BSD flags
1960       fi
1961     fi
1962   done
1963   IFS="$ac_save_ifs"
1964   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1965 fi
1966 fi
1967
1968 NM="$lt_cv_path_NM"
1969 echo "$ac_t""$NM" 1>&6
1970
1971 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1972 echo "configure:1973: checking how to recognise dependant libraries" >&5
1973 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1974   echo $ac_n "(cached) $ac_c" 1>&6
1975 else
1976   lt_cv_file_magic_cmd='$MAGIC_CMD'
1977 lt_cv_file_magic_test_file=
1978 lt_cv_deplibs_check_method='unknown'
1979 # Need to set the preceding variable on all platforms that support
1980 # interlibrary dependencies.
1981 # 'none' -- dependencies not supported.
1982 # `unknown' -- same as none, but documents that we really don't know.
1983 # 'pass_all' -- all dependencies passed with no checks.
1984 # 'test_compile' -- check by making test program.
1985 # 'file_magic [regex]' -- check by looking for files in library path
1986 # which responds to the $file_magic_cmd with a given egrep regex.
1987 # If you have `file' or equivalent on your system and you're not sure
1988 # whether `pass_all' will *always* work, you probably want this one.
1989
1990 case $host_os in
1991 aix*)
1992   lt_cv_deplibs_check_method=pass_all
1993   ;;
1994
1995 beos*)
1996   lt_cv_deplibs_check_method=pass_all
1997   ;;
1998
1999 bsdi4*)
2000   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2001   lt_cv_file_magic_cmd='/usr/bin/file -L'
2002   lt_cv_file_magic_test_file=/shlib/libc.so
2003   ;;
2004
2005 cygwin* | mingw* |pw32*)
2006   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2007   lt_cv_file_magic_cmd='$OBJDUMP -f'
2008   ;;
2009
2010 darwin* | rhapsody*)
2011   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2012   lt_cv_file_magic_cmd='/usr/bin/file -L'
2013   case "$host_os" in
2014   rhapsody* | darwin1.012)
2015     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2016     ;;
2017   *) # Darwin 1.3 on
2018     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2019     ;;
2020   esac
2021   ;;
2022
2023 freebsd* )
2024   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2025     case $host_cpu in
2026     i*86 )
2027       # Not sure whether the presence of OpenBSD here was a mistake.
2028       # Let's accept both of them until this is cleared up.
2029       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2030       lt_cv_file_magic_cmd=/usr/bin/file
2031       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2032       ;;
2033     esac
2034   else
2035     lt_cv_deplibs_check_method=pass_all
2036   fi
2037   ;;
2038
2039 gnu*)
2040   lt_cv_deplibs_check_method=pass_all
2041   ;;
2042
2043 hpux10.20*|hpux11*)
2044   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2045   lt_cv_file_magic_cmd=/usr/bin/file
2046   lt_cv_file_magic_test_file=/usr/lib/libc.sl
2047   ;;
2048
2049 irix5* | irix6*)
2050   case $host_os in
2051   irix5*)
2052     # this will be overridden with pass_all, but let us keep it just in case
2053     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2054     ;;
2055   *)
2056     case $LD in
2057     *-32|*"-32 ") libmagic=32-bit;;
2058     *-n32|*"-n32 ") libmagic=N32;;
2059     *-64|*"-64 ") libmagic=64-bit;;
2060     *) libmagic=never-match;;
2061     esac
2062     # this will be overridden with pass_all, but let us keep it just in case
2063     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2064     ;;
2065   esac
2066   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2067   lt_cv_deplibs_check_method=pass_all
2068   ;;
2069
2070 # This must be Linux ELF.
2071 linux-gnu*)
2072   case $host_cpu in
2073   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2074     lt_cv_deplibs_check_method=pass_all ;;
2075   *)
2076     # glibc up to 2.1.1 does not perform some relocations on ARM
2077     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2078   esac
2079   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2080   ;;
2081
2082 netbsd*)
2083   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2084     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2085   else
2086     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2087   fi
2088   ;;
2089
2090 newsos6)
2091   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2092   lt_cv_file_magic_cmd=/usr/bin/file
2093   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2094   ;;
2095
2096 osf3* | osf4* | osf5*)
2097   # this will be overridden with pass_all, but let us keep it just in case
2098   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2099   lt_cv_file_magic_test_file=/shlib/libc.so
2100   lt_cv_deplibs_check_method=pass_all
2101   ;;
2102
2103 sco3.2v5*)
2104   lt_cv_deplibs_check_method=pass_all
2105   ;;
2106
2107 solaris*)
2108   lt_cv_deplibs_check_method=pass_all
2109   lt_cv_file_magic_test_file=/lib/libc.so
2110   ;;
2111
2112 sysv5uw[78]* | sysv4*uw2*)
2113   lt_cv_deplibs_check_method=pass_all
2114   ;;
2115
2116 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2117   case $host_vendor in
2118   ncr)
2119     lt_cv_deplibs_check_method=pass_all
2120     ;;
2121   motorola)
2122     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]'
2123     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2124     ;;
2125   esac
2126   ;;
2127 esac
2128
2129 fi
2130
2131 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2132 file_magic_cmd=$lt_cv_file_magic_cmd
2133 deplibs_check_method=$lt_cv_deplibs_check_method
2134
2135 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2136 echo "configure:2137: checking for object suffix" >&5
2137 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2138   echo $ac_n "(cached) $ac_c" 1>&6
2139 else
2140   rm -f conftest*
2141 echo 'int i = 1;' > conftest.$ac_ext
2142 if { (eval echo configure:2143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2143   for ac_file in conftest.*; do
2144     case $ac_file in
2145     *.c) ;;
2146     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2147     esac
2148   done
2149 else
2150   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2151 fi
2152 rm -f conftest*
2153 fi
2154
2155 echo "$ac_t""$ac_cv_objext" 1>&6
2156 OBJEXT=$ac_cv_objext
2157 ac_objext=$ac_cv_objext
2158
2159 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2160
2161 # Only perform the check for file, if the check method requires it
2162 case $deplibs_check_method in
2163 file_magic*)
2164   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2165     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2166 echo "configure:2167: checking for ${ac_tool_prefix}file" >&5
2167 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2168   echo $ac_n "(cached) $ac_c" 1>&6
2169 else
2170   case $MAGIC_CMD in
2171   /*)
2172   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2173   ;;
2174   ?:/*)
2175   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2176   ;;
2177   *)
2178   ac_save_MAGIC_CMD="$MAGIC_CMD"
2179   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2180   ac_dummy="/usr/bin:$PATH"
2181   for ac_dir in $ac_dummy; do
2182     test -z "$ac_dir" && ac_dir=.
2183     if test -f $ac_dir/${ac_tool_prefix}file; then
2184       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2185       if test -n "$file_magic_test_file"; then
2186         case $deplibs_check_method in
2187         "file_magic "*)
2188           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2189           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2190           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2191             egrep "$file_magic_regex" > /dev/null; then
2192             :
2193           else
2194             cat <<EOF 1>&2
2195
2196 *** Warning: the command libtool uses to detect shared libraries,
2197 *** $file_magic_cmd, produces output that libtool cannot recognize.
2198 *** The result is that libtool may fail to recognize shared libraries
2199 *** as such.  This will affect the creation of libtool libraries that
2200 *** depend on shared libraries, but programs linked with such libtool
2201 *** libraries will work regardless of this problem.  Nevertheless, you
2202 *** may want to report the problem to your system manager and/or to
2203 *** bug-libtool@gnu.org
2204
2205 EOF
2206           fi ;;
2207         esac
2208       fi
2209       break
2210     fi
2211   done
2212   IFS="$ac_save_ifs"
2213   MAGIC_CMD="$ac_save_MAGIC_CMD"
2214   ;;
2215 esac
2216 fi
2217
2218 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2219 if test -n "$MAGIC_CMD"; then
2220   echo "$ac_t""$MAGIC_CMD" 1>&6
2221 else
2222   echo "$ac_t""no" 1>&6
2223 fi
2224
2225 if test -z "$lt_cv_path_MAGIC_CMD"; then
2226   if test -n "$ac_tool_prefix"; then
2227     echo $ac_n "checking for file""... $ac_c" 1>&6
2228 echo "configure:2229: checking for file" >&5
2229 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2230   echo $ac_n "(cached) $ac_c" 1>&6
2231 else
2232   case $MAGIC_CMD in
2233   /*)
2234   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2235   ;;
2236   ?:/*)
2237   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2238   ;;
2239   *)
2240   ac_save_MAGIC_CMD="$MAGIC_CMD"
2241   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2242   ac_dummy="/usr/bin:$PATH"
2243   for ac_dir in $ac_dummy; do
2244     test -z "$ac_dir" && ac_dir=.
2245     if test -f $ac_dir/file; then
2246       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2247       if test -n "$file_magic_test_file"; then
2248         case $deplibs_check_method in
2249         "file_magic "*)
2250           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2251           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2252           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2253             egrep "$file_magic_regex" > /dev/null; then
2254             :
2255           else
2256             cat <<EOF 1>&2
2257
2258 *** Warning: the command libtool uses to detect shared libraries,
2259 *** $file_magic_cmd, produces output that libtool cannot recognize.
2260 *** The result is that libtool may fail to recognize shared libraries
2261 *** as such.  This will affect the creation of libtool libraries that
2262 *** depend on shared libraries, but programs linked with such libtool
2263 *** libraries will work regardless of this problem.  Nevertheless, you
2264 *** may want to report the problem to your system manager and/or to
2265 *** bug-libtool@gnu.org
2266
2267 EOF
2268           fi ;;
2269         esac
2270       fi
2271       break
2272     fi
2273   done
2274   IFS="$ac_save_ifs"
2275   MAGIC_CMD="$ac_save_MAGIC_CMD"
2276   ;;
2277 esac
2278 fi
2279
2280 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2281 if test -n "$MAGIC_CMD"; then
2282   echo "$ac_t""$MAGIC_CMD" 1>&6
2283 else
2284   echo "$ac_t""no" 1>&6
2285 fi
2286
2287   else
2288     MAGIC_CMD=:
2289   fi
2290 fi
2291
2292   fi
2293   ;;
2294 esac
2295
2296 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2297 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2298 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2299 echo "configure:2300: checking for $ac_word" >&5
2300 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2301   echo $ac_n "(cached) $ac_c" 1>&6
2302 else
2303   if test -n "$RANLIB"; then
2304   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2305 else
2306   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2307   ac_dummy="$PATH"
2308   for ac_dir in $ac_dummy; do
2309     test -z "$ac_dir" && ac_dir=.
2310     if test -f $ac_dir/$ac_word; then
2311       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2312       break
2313     fi
2314   done
2315   IFS="$ac_save_ifs"
2316 fi
2317 fi
2318 RANLIB="$ac_cv_prog_RANLIB"
2319 if test -n "$RANLIB"; then
2320   echo "$ac_t""$RANLIB" 1>&6
2321 else
2322   echo "$ac_t""no" 1>&6
2323 fi
2324
2325
2326 if test -z "$ac_cv_prog_RANLIB"; then
2327 if test -n "$ac_tool_prefix"; then
2328   # Extract the first word of "ranlib", so it can be a program name with args.
2329 set dummy ranlib; ac_word=$2
2330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2331 echo "configure:2332: checking for $ac_word" >&5
2332 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2333   echo $ac_n "(cached) $ac_c" 1>&6
2334 else
2335   if test -n "$RANLIB"; then
2336   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2337 else
2338   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2339   ac_dummy="$PATH"
2340   for ac_dir in $ac_dummy; do
2341     test -z "$ac_dir" && ac_dir=.
2342     if test -f $ac_dir/$ac_word; then
2343       ac_cv_prog_RANLIB="ranlib"
2344       break
2345     fi
2346   done
2347   IFS="$ac_save_ifs"
2348   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2349 fi
2350 fi
2351 RANLIB="$ac_cv_prog_RANLIB"
2352 if test -n "$RANLIB"; then
2353   echo "$ac_t""$RANLIB" 1>&6
2354 else
2355   echo "$ac_t""no" 1>&6
2356 fi
2357
2358 else
2359   RANLIB=":"
2360 fi
2361 fi
2362
2363 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2364 set dummy ${ac_tool_prefix}strip; ac_word=$2
2365 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2366 echo "configure:2367: checking for $ac_word" >&5
2367 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2368   echo $ac_n "(cached) $ac_c" 1>&6
2369 else
2370   if test -n "$STRIP"; then
2371   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2372 else
2373   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2374   ac_dummy="$PATH"
2375   for ac_dir in $ac_dummy; do
2376     test -z "$ac_dir" && ac_dir=.
2377     if test -f $ac_dir/$ac_word; then
2378       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2379       break
2380     fi
2381   done
2382   IFS="$ac_save_ifs"
2383 fi
2384 fi
2385 STRIP="$ac_cv_prog_STRIP"
2386 if test -n "$STRIP"; then
2387   echo "$ac_t""$STRIP" 1>&6
2388 else
2389   echo "$ac_t""no" 1>&6
2390 fi
2391
2392
2393 if test -z "$ac_cv_prog_STRIP"; then
2394 if test -n "$ac_tool_prefix"; then
2395   # Extract the first word of "strip", so it can be a program name with args.
2396 set dummy strip; ac_word=$2
2397 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2398 echo "configure:2399: checking for $ac_word" >&5
2399 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2400   echo $ac_n "(cached) $ac_c" 1>&6
2401 else
2402   if test -n "$STRIP"; then
2403   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2404 else
2405   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2406   ac_dummy="$PATH"
2407   for ac_dir in $ac_dummy; do
2408     test -z "$ac_dir" && ac_dir=.
2409     if test -f $ac_dir/$ac_word; then
2410       ac_cv_prog_STRIP="strip"
2411       break
2412     fi
2413   done
2414   IFS="$ac_save_ifs"
2415   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2416 fi
2417 fi
2418 STRIP="$ac_cv_prog_STRIP"
2419 if test -n "$STRIP"; then
2420   echo "$ac_t""$STRIP" 1>&6
2421 else
2422   echo "$ac_t""no" 1>&6
2423 fi
2424
2425 else
2426   STRIP=":"
2427 fi
2428 fi
2429
2430
2431 # Check for any special flags to pass to ltconfig.
2432 libtool_flags="--cache-file=$cache_file"
2433 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2434 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2435 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2436 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2437 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2438 libtool_flags="$libtool_flags --enable-dlopen"
2439
2440 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2441 if test "${enable_libtool_lock+set}" = set; then
2442   enableval="$enable_libtool_lock"
2443   :
2444 fi
2445
2446 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2447 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2448
2449 # Check whether --with-pic or --without-pic was given.
2450 if test "${with_pic+set}" = set; then
2451   withval="$with_pic"
2452   pic_mode="$withval"
2453 else
2454   pic_mode=default
2455 fi
2456
2457 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2458 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2459
2460 # Some flags need to be propagated to the compiler or linker for good
2461 # libtool support.
2462 case $host in
2463 *-*-irix6*)
2464   # Find out which ABI we are using.
2465   echo '#line 2466 "configure"' > conftest.$ac_ext
2466   if { (eval echo configure:2467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2467     case `/usr/bin/file conftest.$ac_objext` in
2468     *32-bit*)
2469       LD="${LD-ld} -32"
2470       ;;
2471     *N32*)
2472       LD="${LD-ld} -n32"
2473       ;;
2474     *64-bit*)
2475       LD="${LD-ld} -64"
2476       ;;
2477     esac
2478   fi
2479   rm -rf conftest*
2480   ;;
2481
2482 *-*-sco3.2v5*)
2483   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2484   SAVE_CFLAGS="$CFLAGS"
2485   CFLAGS="$CFLAGS -belf"
2486   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2487 echo "configure:2488: checking whether the C compiler needs -belf" >&5
2488 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2489   echo $ac_n "(cached) $ac_c" 1>&6
2490 else
2491   
2492      ac_ext=c
2493 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2494 ac_cpp='$CPP $CPPFLAGS'
2495 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2496 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2497 cross_compiling=$ac_cv_prog_cc_cross
2498
2499      cat > conftest.$ac_ext <<EOF
2500 #line 2501 "configure"
2501 #include "confdefs.h"
2502
2503 int main() {
2504
2505 ; return 0; }
2506 EOF
2507 if { (eval echo configure:2508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2508   rm -rf conftest*
2509   lt_cv_cc_needs_belf=yes
2510 else
2511   echo "configure: failed program was:" >&5
2512   cat conftest.$ac_ext >&5
2513   rm -rf conftest*
2514   lt_cv_cc_needs_belf=no
2515 fi
2516 rm -f conftest*
2517      ac_ext=c
2518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2519 ac_cpp='$CPP $CPPFLAGS'
2520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2521 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2522 cross_compiling=$ac_cv_prog_cc_cross
2523
2524 fi
2525
2526 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2527   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2528     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2529     CFLAGS="$SAVE_CFLAGS"
2530   fi
2531   ;;
2532
2533
2534 esac
2535
2536 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2537 echo "configure:2538: checking how to run the C++ preprocessor" >&5
2538 if test -z "$CXXCPP"; then
2539 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2540   echo $ac_n "(cached) $ac_c" 1>&6
2541 else
2542   ac_ext=C
2543 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2544 ac_cpp='$CXXCPP $CPPFLAGS'
2545 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2546 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2547 cross_compiling=$ac_cv_prog_cxx_cross
2548   CXXCPP="${CXX-g++} -E"
2549   cat > conftest.$ac_ext <<EOF
2550 #line 2551 "configure"
2551 #include "confdefs.h"
2552 #include <stdlib.h>
2553 EOF
2554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2555 { (eval echo configure:2556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2556 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2557 if test -z "$ac_err"; then
2558   :
2559 else
2560   echo "$ac_err" >&5
2561   echo "configure: failed program was:" >&5
2562   cat conftest.$ac_ext >&5
2563   rm -rf conftest*
2564   CXXCPP=/lib/cpp
2565 fi
2566 rm -f conftest*
2567   ac_cv_prog_CXXCPP="$CXXCPP"
2568 ac_ext=c
2569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2570 ac_cpp='$CPP $CPPFLAGS'
2571 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2572 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2573 cross_compiling=$ac_cv_prog_cc_cross
2574 fi
2575 fi
2576 CXXCPP="$ac_cv_prog_CXXCPP"
2577 echo "$ac_t""$CXXCPP" 1>&6
2578
2579
2580 # Save cache, so that ltconfig can load it
2581 cat > confcache <<\EOF
2582 # This file is a shell script that caches the results of configure
2583 # tests run on this system so they can be shared between configure
2584 # scripts and configure runs.  It is not useful on other systems.
2585 # If it contains results you don't want to keep, you may remove or edit it.
2586 #
2587 # By default, configure uses ./config.cache as the cache file,
2588 # creating it if it does not exist already.  You can give configure
2589 # the --cache-file=FILE option to use a different cache file; that is
2590 # what configure does when it calls configure scripts in
2591 # subdirectories, so they share the cache.
2592 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2593 # config.status only pays attention to the cache file if you give it the
2594 # --recheck option to rerun configure.
2595 #
2596 EOF
2597 # The following way of writing the cache mishandles newlines in values,
2598 # but we know of no workaround that is simple, portable, and efficient.
2599 # So, don't put newlines in cache variables' values.
2600 # Ultrix sh set writes to stderr and can't be redirected directly,
2601 # and sets the high bit in the cache file unless we assign to the vars.
2602 (set) 2>&1 |
2603   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2604   *ac_space=\ *)
2605     # `set' does not quote correctly, so add quotes (double-quote substitution
2606     # turns \\\\ into \\, and sed turns \\ into \).
2607     sed -n \
2608       -e "s/'/'\\\\''/g" \
2609       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2610     ;;
2611   *)
2612     # `set' quotes correctly as required by POSIX, so do not add quotes.
2613     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2614     ;;
2615   esac >> confcache
2616 if cmp -s $cache_file confcache; then
2617   :
2618 else
2619   if test -w $cache_file; then
2620     echo "updating cache $cache_file"
2621     cat confcache > $cache_file
2622   else
2623     echo "not updating unwritable cache $cache_file"
2624   fi
2625 fi
2626 rm -f confcache
2627
2628
2629 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2630 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2631 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2632 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2633 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2634 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2635 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2636 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2637 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2638 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2639
2640 # Reload cache, that may have been modified by ltconfig
2641 if test -r "$cache_file"; then
2642   echo "loading cache $cache_file"
2643   . $cache_file
2644 else
2645   echo "creating cache $cache_file"
2646   > $cache_file
2647 fi
2648
2649
2650 # This can be used to rebuild libtool when needed
2651 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2652
2653 # Always use our own libtool.
2654 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2655
2656 # Redirect the config.log output again, so that the ltconfig log is not
2657 # clobbered by the next message.
2658 exec 5>>./config.log
2659
2660
2661
2662 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2663 lt_save_CC="$CC"
2664 lt_save_CFLAGS="$CFLAGS"
2665 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2666 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2667 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2668 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2669 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2670 deplibs_check_method="$deplibs_check_method" \
2671 file_magic_cmd="$file_magic_cmd" \
2672 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2673 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2674 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2675 CC="$lt_save_CC"
2676 CFLAGS="$lt_save_CFLAGS"
2677
2678 # Redirect the config.log output again, so that the ltconfig log is not
2679 # clobbered by the next message.
2680 exec 5>>./config.log
2681
2682   
2683
2684   
2685          
2686          
2687
2688
2689
2690 # Check for c++ or library specific bits that don't require linking.
2691 #GLIBCPP_CHECK_COMPILER_VERSION
2692 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2693 echo "configure:2694: checking for GNU make" >&5
2694 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2695   echo $ac_n "(cached) $ac_c" 1>&6
2696 else
2697   _cv_gnu_make_command='' ;
2698           for a in "${MAKE-make}" make gmake gnumake ; do
2699                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2700                   then
2701                           _cv_gnu_make_command=$a ;
2702                           break;
2703                   fi
2704           done ;
2705   
2706 fi
2707
2708 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2709   if test  "x$_cv_gnu_make_command" != "x"  ; then
2710           ifGNUmake='' ;
2711   else
2712           ifGNUmake='#' ;
2713   fi
2714   
2715
2716
2717 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2718 # Check whether --enable-debug or --disable-debug was given.
2719 if test "${enable_debug+set}" = set; then
2720   enableval="$enable_debug"
2721   case "${enableval}" in
2722  yes) enable_debug=yes ;;
2723  no)  enable_debug=no ;;
2724  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2725  esac
2726 else
2727   enable_debug=no
2728 fi
2729
2730 case "${enable_debug}" in
2731     yes) 
2732         DEBUG_FLAGS='-O0 -ggdb3'                        
2733         ;; 
2734     no)   
2735         DEBUG_FLAGS='-g'
2736         ;;
2737 esac
2738
2739
2740 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2741 echo "configure:2742: checking how to run the C preprocessor" >&5
2742 # On Suns, sometimes $CPP names a directory.
2743 if test -n "$CPP" && test -d "$CPP"; then
2744   CPP=
2745 fi
2746 if test -z "$CPP"; then
2747 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2748   echo $ac_n "(cached) $ac_c" 1>&6
2749 else
2750     # This must be in double quotes, not single quotes, because CPP may get
2751   # substituted into the Makefile and "${CC-cc}" will confuse make.
2752   CPP="${CC-cc} -E"
2753   # On the NeXT, cc -E runs the code through the compiler's parser,
2754   # not just through cpp.
2755   cat > conftest.$ac_ext <<EOF
2756 #line 2757 "configure"
2757 #include "confdefs.h"
2758 #include <assert.h>
2759 Syntax Error
2760 EOF
2761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2762 { (eval echo configure:2763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2764 if test -z "$ac_err"; then
2765   :
2766 else
2767   echo "$ac_err" >&5
2768   echo "configure: failed program was:" >&5
2769   cat conftest.$ac_ext >&5
2770   rm -rf conftest*
2771   CPP="${CC-cc} -E -traditional-cpp"
2772   cat > conftest.$ac_ext <<EOF
2773 #line 2774 "configure"
2774 #include "confdefs.h"
2775 #include <assert.h>
2776 Syntax Error
2777 EOF
2778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2779 { (eval echo configure:2780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2781 if test -z "$ac_err"; then
2782   :
2783 else
2784   echo "$ac_err" >&5
2785   echo "configure: failed program was:" >&5
2786   cat conftest.$ac_ext >&5
2787   rm -rf conftest*
2788   CPP="${CC-cc} -nologo -E"
2789   cat > conftest.$ac_ext <<EOF
2790 #line 2791 "configure"
2791 #include "confdefs.h"
2792 #include <assert.h>
2793 Syntax Error
2794 EOF
2795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2796 { (eval echo configure:2797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2798 if test -z "$ac_err"; then
2799   :
2800 else
2801   echo "$ac_err" >&5
2802   echo "configure: failed program was:" >&5
2803   cat conftest.$ac_ext >&5
2804   rm -rf conftest*
2805   CPP=/lib/cpp
2806 fi
2807 rm -f conftest*
2808 fi
2809 rm -f conftest*
2810 fi
2811 rm -f conftest*
2812   ac_cv_prog_CPP="$CPP"
2813 fi
2814   CPP="$ac_cv_prog_CPP"
2815 else
2816   ac_cv_prog_CPP="$CPP"
2817 fi
2818 echo "$ac_t""$CPP" 1>&6
2819
2820
2821   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2822 echo "configure:2823: checking for cstdio to use" >&5
2823   # Check whether --enable-cstdio or --disable-cstdio was given.
2824 if test "${enable_cstdio+set}" = set; then
2825   enableval="$enable_cstdio"
2826   if test x$enable_cstdio = xno; then
2827      enable_cstdio=stdio
2828   fi
2829 else
2830   enable_cstdio=stdio
2831 fi
2832
2833
2834   enable_cstdio_flag=$enable_cstdio
2835
2836     case x${enable_cstdio_flag} in
2837     xlibio)
2838       CSTDIO_H=config/io/c_io_libio.h
2839       BASIC_FILE_H=config/io/basic_file_libio.h
2840       BASIC_FILE_CC=config/io/basic_file_libio.cc
2841       echo "$ac_t""libio" 1>&6
2842
2843       # see if we are on a system with libio native (ie, linux)
2844       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2845 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2846 echo "configure:2847: checking for libio.h" >&5
2847 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2848   echo $ac_n "(cached) $ac_c" 1>&6
2849 else
2850   cat > conftest.$ac_ext <<EOF
2851 #line 2852 "configure"
2852 #include "confdefs.h"
2853 #include <libio.h>
2854 EOF
2855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2856 { (eval echo configure:2857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2857 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2858 if test -z "$ac_err"; then
2859   rm -rf conftest*
2860   eval "ac_cv_header_$ac_safe=yes"
2861 else
2862   echo "$ac_err" >&5
2863   echo "configure: failed program was:" >&5
2864   cat conftest.$ac_ext >&5
2865   rm -rf conftest*
2866   eval "ac_cv_header_$ac_safe=no"
2867 fi
2868 rm -f conftest*
2869 fi
2870 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2871   echo "$ac_t""yes" 1>&6
2872   has_libio=yes
2873 else
2874   echo "$ac_t""no" 1>&6
2875 has_libio=no
2876 fi
2877
2878
2879       # Need to check and see what version of glibc is being used. If
2880       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2881       # compile most of libio for linux systems.
2882       if test x$has_libio = x"yes"; then
2883         case "$target" in
2884           *-*-linux*)
2885               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2886 echo "configure:2887: checking for glibc version >= 2.2" >&5
2887               cat > conftest.$ac_ext <<EOF
2888 #line 2889 "configure"
2889 #include "confdefs.h"
2890
2891             #include <features.h>
2892               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2893                     ok
2894               #endif
2895               
2896 EOF
2897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2898   egrep "ok" >/dev/null 2>&1; then
2899   rm -rf conftest*
2900   glibc_satisfactory=yes
2901 else
2902   rm -rf conftest*
2903   glibc_satisfactory=no
2904 fi
2905 rm -f conftest*
2906
2907               echo "$ac_t""$glibc_satisfactory" 1>&6
2908             ;;
2909         esac
2910
2911         # XXX at the moment, admit defeat and force the recompilation
2912         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2913         glibc_satisfactory=no        
2914
2915         if test x$glibc_satisfactory = x"yes"; then
2916            need_libio=no
2917            need_wlibio=no        
2918         else
2919            need_libio=yes
2920            # bkoz XXX need to add checks to enable this
2921            # pme XXX here's a first pass at such a check
2922            if test x$enable_c_mbchar != xno; then
2923               need_wlibio=yes
2924            else
2925               need_wlibio=no
2926            fi
2927         fi
2928
2929       else
2930          # Using libio, but <libio.h> doesn't exist on the target system. . .
2931          need_libio=yes
2932          # bkoz XXX need to add checks to enable this
2933          # pme XXX here's a first pass at such a check
2934          if test x$enable_c_mbchar != xno; then
2935              need_wlibio=yes
2936          else
2937              need_wlibio=no
2938          fi
2939       fi
2940       ;;
2941     xstdio | x | xno | xnone | xyes)
2942       # default
2943       CSTDIO_H=config/io/c_io_stdio.h
2944       BASIC_FILE_H=config/io/basic_file_stdio.h
2945       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2946       echo "$ac_t""stdio" 1>&6
2947
2948       # We're not using stdio.
2949       need_libio=no
2950       need_wlibio=no
2951       ;;
2952     *)
2953       echo "$enable_cstdio is an unknown io package" 1>&2
2954       exit 1
2955       ;;
2956   esac
2957   
2958   
2959   
2960
2961   # 2000-08-04 bkoz hack
2962   CCODECVT_C=config/io/c_io_libio_codecvt.c
2963   
2964   # 2000-08-04 bkoz hack
2965
2966   
2967
2968 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2969   GLIBCPP_BUILD_LIBIO_TRUE=
2970   GLIBCPP_BUILD_LIBIO_FALSE='#'
2971 else
2972   GLIBCPP_BUILD_LIBIO_TRUE='#'
2973   GLIBCPP_BUILD_LIBIO_FALSE=
2974 fi
2975   
2976
2977 if test "$need_libio" = yes; then
2978   GLIBCPP_NEED_LIBIO_TRUE=
2979   GLIBCPP_NEED_LIBIO_FALSE='#'
2980 else
2981   GLIBCPP_NEED_LIBIO_TRUE='#'
2982   GLIBCPP_NEED_LIBIO_FALSE=
2983 fi
2984   
2985
2986 if test "$need_wlibio" = yes; then
2987   GLIBCPP_NEED_WLIBIO_TRUE=
2988   GLIBCPP_NEED_WLIBIO_FALSE='#'
2989 else
2990   GLIBCPP_NEED_WLIBIO_TRUE='#'
2991   GLIBCPP_NEED_WLIBIO_FALSE=
2992 fi
2993   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2994     libio_la=../libio/libio.la
2995   else
2996     libio_la=
2997   fi
2998   
2999
3000
3001   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
3002 echo "configure:3003: checking for clocale to use" >&5
3003   # Check whether --enable-clocale or --disable-clocale was given.
3004 if test "${enable_clocale+set}" = set; then
3005   enableval="$enable_clocale"
3006   if test x$enable_clocale = xno; then
3007      enable_clocale=no
3008   fi
3009 else
3010   enable_clocale=no
3011 fi
3012
3013
3014   enable_clocale_flag=$enable_clocale
3015
3016       if test x$enable_clocale_flag = xno; then
3017     case x${target_os} in
3018       xlinux* | xgnu*)
3019         cat > conftest.$ac_ext <<EOF
3020 #line 3021 "configure"
3021 #include "confdefs.h"
3022
3023         #include <features.h>
3024         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
3025           _GLIBCPP_ok
3026         #endif
3027         
3028 EOF
3029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3030   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3031   rm -rf conftest*
3032   enable_clocale_flag=gnu
3033 else
3034   rm -rf conftest*
3035   enable_clocale_flag=generic
3036 fi
3037 rm -f conftest*
3038
3039
3040         # Test for bugs early in glibc-2.2.x series
3041         if test x$enable_clocale_flag = xgnu; then
3042           if test "$cross_compiling" = yes; then
3043   enable_clocale_flag=generic
3044 else
3045   cat > conftest.$ac_ext <<EOF
3046 #line 3047 "configure"
3047 #include "confdefs.h"
3048
3049           #define _GNU_SOURCE 1
3050           #include <locale.h>
3051           int main()
3052           {
3053             const char __one[] = "Äuglein Augmen";
3054             const char __two[] = "Äuglein";
3055             int i;
3056             int j;
3057             __locale_t  loc;
3058             __locale_t  loc_dup;
3059             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3060             loc_dup = __duplocale(loc);
3061             i = __strcoll_l(__one, __two, loc);
3062             j = __strcoll_l(__one, __two, loc_dup);
3063             return 0;
3064           }
3065           
3066 EOF
3067 if { (eval echo configure:3068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3068 then
3069   enable_clocale_flag=gnu
3070 else
3071   echo "configure: failed program was:" >&5
3072   cat conftest.$ac_ext >&5
3073   rm -fr conftest*
3074   enable_clocale_flag=generic
3075 fi
3076 rm -fr conftest*
3077 fi
3078
3079         fi
3080
3081         # ... at some point put __strxfrm_l tests in as well.
3082         ;;
3083       *)
3084         enable_clocale_flag=generic
3085         ;;
3086     esac
3087   fi
3088
3089     # Check whether --enable-nls or --disable-nls was given.
3090 if test "${enable_nls+set}" = set; then
3091   enableval="$enable_nls"
3092   :
3093 else
3094   enable_nls=yes
3095 fi
3096
3097   USE_NLS=no
3098
3099     case x${enable_clocale_flag} in
3100     xgeneric)
3101       echo "$ac_t""generic" 1>&6
3102
3103       CLOCALE_H=config/locale/generic/c_locale.h
3104       CLOCALE_CC=config/locale/generic/c_locale.cc
3105       CCODECVT_H=config/locale/generic/codecvt_specializations.h
3106       CCOLLATE_CC=config/locale/generic/collate_members.cc
3107       CCTYPE_CC=config/locale/generic/ctype_members.cc
3108       CMESSAGES_H=config/locale/generic/messages_members.h
3109       CMESSAGES_CC=config/locale/generic/messages_members.cc
3110       CMONEY_CC=config/locale/generic/monetary_members.cc
3111       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3112       CTIME_CC=config/locale/generic/time_members.cc
3113       ;;
3114     xgnu)
3115       echo "$ac_t""gnu" 1>&6
3116
3117       # Declare intention to use gettext, and add support for specific
3118       # languages.
3119       # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3120       ALL_LINGUAS="de fr"
3121
3122       # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3123       # Extract the first word of "msgfmt", so it can be a program name with args.
3124 set dummy msgfmt; ac_word=$2
3125 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3126 echo "configure:3127: checking for $ac_word" >&5
3127 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3128   echo $ac_n "(cached) $ac_c" 1>&6
3129 else
3130   if test -n "$check_msgfmt"; then
3131   ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3132 else
3133   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3134   ac_dummy="$PATH"
3135   for ac_dir in $ac_dummy; do
3136     test -z "$ac_dir" && ac_dir=.
3137     if test -f $ac_dir/$ac_word; then
3138       ac_cv_prog_check_msgfmt="yes"
3139       break
3140     fi
3141   done
3142   IFS="$ac_save_ifs"
3143   test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3144 fi
3145 fi
3146 check_msgfmt="$ac_cv_prog_check_msgfmt"
3147 if test -n "$check_msgfmt"; then
3148   echo "$ac_t""$check_msgfmt" 1>&6
3149 else
3150   echo "$ac_t""no" 1>&6
3151 fi
3152
3153       if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3154         USE_NLS=yes
3155       fi
3156       # Export the build objects.
3157       for ling in $ALL_LINGUAS; do \
3158         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3159         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3160       done
3161       
3162       
3163
3164       CLOCALE_H=config/locale/gnu/c_locale.h
3165       CLOCALE_CC=config/locale/gnu/c_locale.cc
3166       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3167       CCOLLATE_CC=config/locale/gnu/collate_members.cc
3168       CCTYPE_CC=config/locale/gnu/ctype_members.cc
3169       CMESSAGES_H=config/locale/gnu/messages_members.h
3170       CMESSAGES_CC=config/locale/gnu/messages_members.cc
3171       CMONEY_CC=config/locale/gnu/monetary_members.cc
3172       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3173       CTIME_CC=config/locale/gnu/time_members.cc
3174       ;;
3175     xieee_1003.1-2001)
3176       echo "$ac_t""generic" 1>&6
3177
3178       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3179       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3180       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3181       CCOLLATE_CC=config/locale/generic/collate_members.cc
3182       CCTYPE_CC=config/locale/generic/ctype_members.cc
3183       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3184       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3185       CMONEY_CC=config/locale/generic/monetary_members.cc
3186       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3187       CTIME_CC=config/locale/generic/time_members.cc
3188       ;;
3189     *)
3190       echo "$enable_clocale is an unknown locale package" 1>&2
3191       exit 1
3192       ;;
3193   esac
3194
3195   # This is where the testsuite looks for locale catalogs, using the
3196   # -DLOCALEDIR define during testsuite compilation.
3197   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3198   
3199
3200   
3201   
3202   
3203   
3204   
3205   
3206   
3207   
3208   
3209   
3210   
3211
3212 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3213 if test "${enable_c_mbchar+set}" = set; then
3214   enableval="$enable_c_mbchar"
3215   case "$enableval" in
3216  yes) enable_c_mbchar=yes ;;
3217  no)  enable_c_mbchar=no ;;
3218  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3219  esac
3220 else
3221   enable_c_mbchar=yes
3222 fi
3223
3224   
3225   # Check whether --enable-c99 or --disable-c99 was given.
3226 if test "${enable_c99+set}" = set; then
3227   enableval="$enable_c99"
3228     case "$enableval" in
3229    yes) enable_c99=yes ;;
3230    no)  enable_c99=no ;;
3231    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3232    esac
3233 else
3234   enable_c99=yes
3235 fi
3236  
3237   
3238   ac_ext=C
3239 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3240 ac_cpp='$CXXCPP $CPPFLAGS'
3241 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3242 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3243 cross_compiling=$ac_cv_prog_cxx_cross
3244
3245
3246   # Check for the existence of <math.h> functions used if C99 is enabled.
3247   ac_c99_math=yes;
3248   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3249 echo "configure:3250: checking for ISO C99 support in <math.h>" >&5
3250   cat > conftest.$ac_ext <<EOF
3251 #line 3252 "configure"
3252 #include "confdefs.h"
3253 #include <math.h>
3254 int main() {
3255 fpclassify(0.0);
3256 ; return 0; }
3257 EOF
3258 if { (eval echo configure:3259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3259   :
3260 else
3261   echo "configure: failed program was:" >&5
3262   cat conftest.$ac_ext >&5
3263   rm -rf conftest*
3264   ac_c99_math=no
3265 fi
3266 rm -f conftest*
3267   cat > conftest.$ac_ext <<EOF
3268 #line 3269 "configure"
3269 #include "confdefs.h"
3270 #include <math.h>
3271 int main() {
3272 isfinite(0.0);
3273 ; return 0; }
3274 EOF
3275 if { (eval echo configure:3276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3276   :
3277 else
3278   echo "configure: failed program was:" >&5
3279   cat conftest.$ac_ext >&5
3280   rm -rf conftest*
3281   ac_c99_math=no
3282 fi
3283 rm -f conftest*
3284   cat > conftest.$ac_ext <<EOF
3285 #line 3286 "configure"
3286 #include "confdefs.h"
3287 #include <math.h>
3288 int main() {
3289 isinf(0.0);
3290 ; return 0; }
3291 EOF
3292 if { (eval echo configure:3293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3293   :
3294 else
3295   echo "configure: failed program was:" >&5
3296   cat conftest.$ac_ext >&5
3297   rm -rf conftest*
3298   ac_c99_math=no
3299 fi
3300 rm -f conftest*
3301   cat > conftest.$ac_ext <<EOF
3302 #line 3303 "configure"
3303 #include "confdefs.h"
3304 #include <math.h>
3305 int main() {
3306 isnan(0.0);
3307 ; return 0; }
3308 EOF
3309 if { (eval echo configure:3310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3310   :
3311 else
3312   echo "configure: failed program was:" >&5
3313   cat conftest.$ac_ext >&5
3314   rm -rf conftest*
3315   ac_c99_math=no
3316 fi
3317 rm -f conftest*
3318   cat > conftest.$ac_ext <<EOF
3319 #line 3320 "configure"
3320 #include "confdefs.h"
3321 #include <math.h>
3322 int main() {
3323 isnormal(0.0);
3324 ; return 0; }
3325 EOF
3326 if { (eval echo configure:3327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3327   :
3328 else
3329   echo "configure: failed program was:" >&5
3330   cat conftest.$ac_ext >&5
3331   rm -rf conftest*
3332   ac_c99_math=no
3333 fi
3334 rm -f conftest*
3335   cat > conftest.$ac_ext <<EOF
3336 #line 3337 "configure"
3337 #include "confdefs.h"
3338 #include <math.h>
3339 int main() {
3340 signbit(0.0);
3341 ; return 0; }
3342 EOF
3343 if { (eval echo configure:3344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3344   :
3345 else
3346   echo "configure: failed program was:" >&5
3347   cat conftest.$ac_ext >&5
3348   rm -rf conftest*
3349   ac_c99_math=no
3350 fi
3351 rm -f conftest*
3352   cat > conftest.$ac_ext <<EOF
3353 #line 3354 "configure"
3354 #include "confdefs.h"
3355 #include <math.h>
3356 int main() {
3357 isgreater(0.0,0.0);
3358 ; return 0; }
3359 EOF
3360 if { (eval echo configure:3361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3361   :
3362 else
3363   echo "configure: failed program was:" >&5
3364   cat conftest.$ac_ext >&5
3365   rm -rf conftest*
3366   ac_c99_math=no
3367 fi
3368 rm -f conftest*
3369   cat > conftest.$ac_ext <<EOF
3370 #line 3371 "configure"
3371 #include "confdefs.h"
3372 #include <math.h>
3373 int main() {
3374 isgreaterequal(0.0,0.0);
3375 ; return 0; }
3376 EOF
3377 if { (eval echo configure:3378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3378   :
3379 else
3380   echo "configure: failed program was:" >&5
3381   cat conftest.$ac_ext >&5
3382   rm -rf conftest*
3383   ac_c99_math=no
3384 fi
3385 rm -f conftest*
3386   cat > conftest.$ac_ext <<EOF
3387 #line 3388 "configure"
3388 #include "confdefs.h"
3389 #include <math.h>
3390 int main() {
3391 isless(0.0,0.0);
3392 ; return 0; }
3393 EOF
3394 if { (eval echo configure:3395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3395   :
3396 else
3397   echo "configure: failed program was:" >&5
3398   cat conftest.$ac_ext >&5
3399   rm -rf conftest*
3400   ac_c99_math=no
3401 fi
3402 rm -f conftest*
3403   cat > conftest.$ac_ext <<EOF
3404 #line 3405 "configure"
3405 #include "confdefs.h"
3406 #include <math.h>
3407 int main() {
3408 islessequal(0.0,0.0);
3409 ; return 0; }
3410 EOF
3411 if { (eval echo configure:3412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3412   :
3413 else
3414   echo "configure: failed program was:" >&5
3415   cat conftest.$ac_ext >&5
3416   rm -rf conftest*
3417   ac_c99_math=no
3418 fi
3419 rm -f conftest*
3420   cat > conftest.$ac_ext <<EOF
3421 #line 3422 "configure"
3422 #include "confdefs.h"
3423 #include <math.h>
3424 int main() {
3425 islessgreater(0.0,0.0);
3426 ; return 0; }
3427 EOF
3428 if { (eval echo configure:3429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3429   :
3430 else
3431   echo "configure: failed program was:" >&5
3432   cat conftest.$ac_ext >&5
3433   rm -rf conftest*
3434   ac_c99_math=no
3435 fi
3436 rm -f conftest*
3437   cat > conftest.$ac_ext <<EOF
3438 #line 3439 "configure"
3439 #include "confdefs.h"
3440 #include <math.h>
3441 int main() {
3442 isunordered(0.0,0.0);
3443 ; return 0; }
3444 EOF
3445 if { (eval echo configure:3446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3446   :
3447 else
3448   echo "configure: failed program was:" >&5
3449   cat conftest.$ac_ext >&5
3450   rm -rf conftest*
3451   ac_c99_math=no
3452 fi
3453 rm -f conftest*
3454   echo "$ac_t""$ac_c99_math" 1>&6
3455
3456   # Check for the existence in <stdio.h> of vscanf, et. al.
3457   ac_c99_stdio=yes;
3458   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3459 echo "configure:3460: checking for ISO C99 support in <stdio.h>" >&5
3460   cat > conftest.$ac_ext <<EOF
3461 #line 3462 "configure"
3462 #include "confdefs.h"
3463 #include <stdio.h>
3464 int main() {
3465 snprintf("12", 0, "%i");
3466 ; return 0; }
3467 EOF
3468 if { (eval echo configure:3469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3469   :
3470 else
3471   echo "configure: failed program was:" >&5
3472   cat conftest.$ac_ext >&5
3473   rm -rf conftest*
3474   ac_c99_stdio=no
3475 fi
3476 rm -f conftest*
3477   cat > conftest.$ac_ext <<EOF
3478 #line 3479 "configure"
3479 #include "confdefs.h"
3480 #include <stdio.h>
3481                   #include <stdarg.h>
3482                   void foo(char* fmt, ...)
3483                   {va_list args; va_start(args, fmt);
3484                   vfscanf(stderr, "%i", args);}
3485 int main() {
3486
3487 ; return 0; }
3488 EOF
3489 if { (eval echo configure:3490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3490   :
3491 else
3492   echo "configure: failed program was:" >&5
3493   cat conftest.$ac_ext >&5
3494   rm -rf conftest*
3495   ac_c99_stdio=no
3496 fi
3497 rm -f conftest*
3498   cat > conftest.$ac_ext <<EOF
3499 #line 3500 "configure"
3500 #include "confdefs.h"
3501 #include <stdio.h>
3502                   #include <stdarg.h>
3503                   void foo(char* fmt, ...)
3504                   {va_list args; va_start(args, fmt);
3505                   vscanf("%i", args);}
3506 int main() {
3507
3508 ; return 0; }
3509 EOF
3510 if { (eval echo configure:3511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3511   :
3512 else
3513   echo "configure: failed program was:" >&5
3514   cat conftest.$ac_ext >&5
3515   rm -rf conftest*
3516   ac_c99_stdio=no
3517 fi
3518 rm -f conftest*
3519   cat > conftest.$ac_ext <<EOF
3520 #line 3521 "configure"
3521 #include "confdefs.h"
3522 #include <stdio.h>
3523                   #include <stdarg.h>
3524                   void foo(char* fmt, ...)
3525                   {va_list args; va_start(args, fmt);
3526                   vsnprintf(fmt, 0, "%i", args);}
3527 int main() {
3528
3529 ; return 0; }
3530 EOF
3531 if { (eval echo configure:3532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3532   :
3533 else
3534   echo "configure: failed program was:" >&5
3535   cat conftest.$ac_ext >&5
3536   rm -rf conftest*
3537   ac_c99_stdio=no
3538 fi
3539 rm -f conftest*
3540   cat > conftest.$ac_ext <<EOF
3541 #line 3542 "configure"
3542 #include "confdefs.h"
3543 #include <stdio.h>
3544                   #include <stdarg.h>
3545                   void foo(char* fmt, ...)
3546                   {va_list args; va_start(args, fmt);
3547                   vsscanf(fmt, "%i", args);}
3548 int main() {
3549
3550 ; return 0; }
3551 EOF
3552 if { (eval echo configure:3553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3553   :
3554 else
3555   echo "configure: failed program was:" >&5
3556   cat conftest.$ac_ext >&5
3557   rm -rf conftest*
3558   ac_c99_stdio=no
3559 fi
3560 rm -f conftest*
3561   echo "$ac_t""$ac_c99_stdio" 1>&6
3562
3563   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3564   ac_c99_stdlib=yes;
3565   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3566 echo "configure:3567: checking for lldiv_t declaration" >&5
3567   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3568   echo $ac_n "(cached) $ac_c" 1>&6
3569 else
3570   
3571   cat > conftest.$ac_ext <<EOF
3572 #line 3573 "configure"
3573 #include "confdefs.h"
3574 #include <stdlib.h>
3575 int main() {
3576  lldiv_t mydivt;
3577 ; return 0; }
3578 EOF
3579 if { (eval echo configure:3580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3580   rm -rf conftest*
3581   ac_c99_lldiv_t=yes
3582 else
3583   echo "configure: failed program was:" >&5
3584   cat conftest.$ac_ext >&5
3585   rm -rf conftest*
3586   ac_c99_lldiv_t=no
3587 fi
3588 rm -f conftest*
3589   
3590 fi
3591
3592   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3593
3594   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3595 echo "configure:3596: checking for ISO C99 support in <stdlib.h>" >&5
3596   cat > conftest.$ac_ext <<EOF
3597 #line 3598 "configure"
3598 #include "confdefs.h"
3599 #include <stdlib.h>
3600 int main() {
3601 char* tmp; strtof("gnu", &tmp);
3602 ; return 0; }
3603 EOF
3604 if { (eval echo configure:3605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3605   :
3606 else
3607   echo "configure: failed program was:" >&5
3608   cat conftest.$ac_ext >&5
3609   rm -rf conftest*
3610   ac_c99_stdlib=no
3611 fi
3612 rm -f conftest*
3613   cat > conftest.$ac_ext <<EOF
3614 #line 3615 "configure"
3615 #include "confdefs.h"
3616 #include <stdlib.h>
3617 int main() {
3618 char* tmp; strtold("gnu", &tmp);
3619 ; return 0; }
3620 EOF
3621 if { (eval echo configure:3622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3622   :
3623 else
3624   echo "configure: failed program was:" >&5
3625   cat conftest.$ac_ext >&5
3626   rm -rf conftest*
3627   ac_c99_stdlib=no
3628 fi
3629 rm -f conftest*
3630   cat > conftest.$ac_ext <<EOF
3631 #line 3632 "configure"
3632 #include "confdefs.h"
3633 #include <stdlib.h>
3634 int main() {
3635 llabs(10);
3636 ; return 0; }
3637 EOF
3638 if { (eval echo configure:3639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3639   :
3640 else
3641   echo "configure: failed program was:" >&5
3642   cat conftest.$ac_ext >&5
3643   rm -rf conftest*
3644   ac_c99_stdlib=no
3645 fi
3646 rm -f conftest*
3647   cat > conftest.$ac_ext <<EOF
3648 #line 3649 "configure"
3649 #include "confdefs.h"
3650 #include <stdlib.h>
3651 int main() {
3652 lldiv(10,1);
3653 ; return 0; }
3654 EOF
3655 if { (eval echo configure:3656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3656   :
3657 else
3658   echo "configure: failed program was:" >&5
3659   cat conftest.$ac_ext >&5
3660   rm -rf conftest*
3661   ac_c99_stdlib=no
3662 fi
3663 rm -f conftest*
3664   cat > conftest.$ac_ext <<EOF
3665 #line 3666 "configure"
3666 #include "confdefs.h"
3667 #include <stdlib.h>
3668 int main() {
3669 atoll("10");
3670 ; return 0; }
3671 EOF
3672 if { (eval echo configure:3673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3673   :
3674 else
3675   echo "configure: failed program was:" >&5
3676   cat conftest.$ac_ext >&5
3677   rm -rf conftest*
3678   ac_c99_stdlib=no
3679 fi
3680 rm -f conftest*
3681   cat > conftest.$ac_ext <<EOF
3682 #line 3683 "configure"
3683 #include "confdefs.h"
3684 #include <stdlib.h>
3685 int main() {
3686 _Exit(0);
3687 ; return 0; }
3688 EOF
3689 if { (eval echo configure:3690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3690   :
3691 else
3692   echo "configure: failed program was:" >&5
3693   cat conftest.$ac_ext >&5
3694   rm -rf conftest*
3695   ac_c99_stdlib=no
3696 fi
3697 rm -f conftest*
3698   if test x"$ac_c99_lldiv_t" = x"no"; then
3699     ac_c99_stdlib=no; 
3700   fi; 
3701   echo "$ac_t""$ac_c99_stdlib" 1>&6
3702
3703   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3704   # XXX the wchar.h checks should be rolled into the general C99 bits.
3705   ac_c99_wchar=yes;
3706   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3707 echo "configure:3708: checking for additional ISO C99 support in <wchar.h>" >&5
3708   cat > conftest.$ac_ext <<EOF
3709 #line 3710 "configure"
3710 #include "confdefs.h"
3711 #include <wchar.h>
3712 int main() {
3713 wcstold(L"10.0", NULL);
3714 ; return 0; }
3715 EOF
3716 if { (eval echo configure:3717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3717   :
3718 else
3719   echo "configure: failed program was:" >&5
3720   cat conftest.$ac_ext >&5
3721   rm -rf conftest*
3722   ac_c99_wchar=no
3723 fi
3724 rm -f conftest*
3725   cat > conftest.$ac_ext <<EOF
3726 #line 3727 "configure"
3727 #include "confdefs.h"
3728 #include <wchar.h>
3729 int main() {
3730 wcstoll(L"10", NULL, 10);
3731 ; return 0; }
3732 EOF
3733 if { (eval echo configure:3734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3734   :
3735 else
3736   echo "configure: failed program was:" >&5
3737   cat conftest.$ac_ext >&5
3738   rm -rf conftest*
3739   ac_c99_wchar=no
3740 fi
3741 rm -f conftest*
3742   cat > conftest.$ac_ext <<EOF
3743 #line 3744 "configure"
3744 #include "confdefs.h"
3745 #include <wchar.h>
3746 int main() {
3747 wcstoull(L"10", NULL, 10);
3748 ; return 0; }
3749 EOF
3750 if { (eval echo configure:3751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3751   :
3752 else
3753   echo "configure: failed program was:" >&5
3754   cat conftest.$ac_ext >&5
3755   rm -rf conftest*
3756   ac_c99_wchar=no
3757 fi
3758 rm -f conftest*
3759   echo "$ac_t""$ac_c99_wchar" 1>&6
3760
3761   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3762 echo "configure:3763: checking for enabled ISO C99 support" >&5
3763   if test x"$ac_c99_math" = x"no" ||
3764      test x"$ac_c99_stdio" = x"no" ||
3765      test x"$ac_c99_stdlib" = x"no" ||
3766      test x"$ac_c99_wchar" = x"no"; then
3767     enable_c99=no; 
3768   fi; 
3769   echo "$ac_t""$enable_c99" 1>&6
3770
3771   # Option parsed, now set things appropriately
3772   if test x"$enable_c99" = x"yes"; then
3773     cat >> confdefs.h <<\EOF
3774 #define _GLIBCPP_USE_C99 1
3775 EOF
3776
3777   fi
3778
3779   ac_ext=c
3780 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3781 ac_cpp='$CPP $CPPFLAGS'
3782 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3783 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3784 cross_compiling=$ac_cv_prog_cc_cross
3785
3786
3787   
3788   # Check whether --enable-long-long or --disable-long-long was given.
3789 if test "${enable_long_long+set}" = set; then
3790   enableval="$enable_long_long"
3791     case "$enableval" in
3792    yes) enable_long_long=yes ;;
3793    no)  enable_long_long=no ;;
3794    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3795    esac
3796 else
3797   enable_long_long=yes
3798 fi
3799
3800   
3801   ac_ext=C
3802 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3803 ac_cpp='$CXXCPP $CPPFLAGS'
3804 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3805 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3806 cross_compiling=$ac_cv_prog_cxx_cross
3807
3808
3809   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3810 echo "configure:3811: checking for enabled long long I/O support" >&5
3811   # iostreams require strtoll, strtoull to compile
3812   cat > conftest.$ac_ext <<EOF
3813 #line 3814 "configure"
3814 #include "confdefs.h"
3815 #include <stdlib.h>
3816 int main() {
3817 char* tmp; strtoll("gnu", &tmp, 10);
3818 ; return 0; }
3819 EOF
3820 if { (eval echo configure:3821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3821   :
3822 else
3823   echo "configure: failed program was:" >&5
3824   cat conftest.$ac_ext >&5
3825   rm -rf conftest*
3826   enable_long_long=no
3827 fi
3828 rm -f conftest*
3829   cat > conftest.$ac_ext <<EOF
3830 #line 3831 "configure"
3831 #include "confdefs.h"
3832 #include <stdlib.h>
3833 int main() {
3834 char* tmp; strtoull("gnu", &tmp, 10);
3835 ; return 0; }
3836 EOF
3837 if { (eval echo configure:3838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3838   :
3839 else
3840   echo "configure: failed program was:" >&5
3841   cat conftest.$ac_ext >&5
3842   rm -rf conftest*
3843   enable_long_long=no
3844 fi
3845 rm -f conftest*
3846
3847   # Option parsed, now set things appropriately
3848   if test x"$enable_long_long" = xyes; then
3849     cat >> confdefs.h <<\EOF
3850 #define _GLIBCPP_USE_LONG_LONG 1
3851 EOF
3852
3853   fi
3854   echo "$ac_t""$enable_long_long" 1>&6
3855
3856   ac_ext=c
3857 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3858 ac_cpp='$CPP $CPPFLAGS'
3859 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3860 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3861 cross_compiling=$ac_cv_prog_cc_cross
3862
3863
3864 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3865 echo "configure:3866: checking for c header strategy to use" >&5
3866 # Check whether --enable-cheaders or --disable-cheaders was given.
3867 if test "${enable_cheaders+set}" = set; then
3868   enableval="$enable_cheaders"
3869   
3870   case "$enableval" in
3871    c) 
3872         enable_cheaders=c 
3873         ;;
3874    c_std)  
3875         enable_cheaders=c_std 
3876         ;;
3877    c_shadow)  
3878         enable_cheaders=c_shadow 
3879         ;;
3880    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3881         ;;
3882   esac
3883 else
3884   enable_cheaders=c_std
3885 fi
3886
3887   echo "$ac_t""$enable_cheaders" 1>&6
3888
3889     case "$enable_cheaders" in
3890     c_shadow) 
3891         CSHADOW_FLAGS="-fno-builtin"
3892         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3893         ;;
3894     c_std)   
3895         CSHADOW_FLAGS=""
3896         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3897         ;;
3898     c)   
3899         CSHADOW_FLAGS=""
3900         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3901         ;;
3902   esac
3903
3904   
3905   
3906   
3907
3908 if test "$enable_cheaders" = c; then
3909   GLIBCPP_C_HEADERS_C_TRUE=
3910   GLIBCPP_C_HEADERS_C_FALSE='#'
3911 else
3912   GLIBCPP_C_HEADERS_C_TRUE='#'
3913   GLIBCPP_C_HEADERS_C_FALSE=
3914 fi
3915   
3916
3917 if test "$enable_cheaders" = c_std; then
3918   GLIBCPP_C_HEADERS_C_STD_TRUE=
3919   GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3920 else
3921   GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3922   GLIBCPP_C_HEADERS_C_STD_FALSE=
3923 fi
3924
3925
3926   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3927 echo "configure:3928: checking for thread model used by GCC" >&5
3928   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3929   echo "$ac_t""$target_thread_file" 1>&6
3930
3931   if test $target_thread_file != single; then
3932     cat >> confdefs.h <<\EOF
3933 #define HAVE_GTHR_DEFAULT 1
3934 EOF
3935
3936     cat >> confdefs.h <<\EOF
3937 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3938 EOF
3939
3940   fi
3941
3942   glibcpp_thread_h=gthr-$target_thread_file.h
3943   
3944
3945 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3946 if test "${enable_cxx_flags+set}" = set; then
3947   enableval="$enable_cxx_flags"
3948   case "x$enableval" in
3949  xyes)   
3950         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3951  xno|x)  
3952         enable_cxx_flags='' ;;
3953  *)      
3954         enable_cxx_flags="$enableval" ;;
3955  esac
3956 else
3957   enable_cxx_flags='none'
3958 fi
3959
3960
3961 if test "$enable_cxx_flags" = "none"; then 
3962   enable_cxx_flags=''; 
3963 fi
3964
3965 if test -n "$enable_cxx_flags"; then
3966     for f in $enable_cxx_flags; do
3967         case "$f" in
3968             -fhonor-std)  ;;
3969             -*)  ;;
3970             *)   # and we're trying to pass /what/ exactly?
3971                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3972         esac
3973     done
3974 fi
3975 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3976
3977
3978
3979   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3980 echo "configure:3981: checking for exception model to use" >&5
3981   
3982   ac_ext=C
3983 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3984 ac_cpp='$CXXCPP $CPPFLAGS'
3985 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3986 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3987 cross_compiling=$ac_cv_prog_cxx_cross
3988
3989   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3990 if test "${enable_sjlj_exceptions+set}" = set; then
3991   enableval="$enable_sjlj_exceptions"
3992   :
3993 else
3994                        cat > conftest.$ac_ext << EOF
3995 #line 3996 "configure"
3996 struct S { ~S(); };
3997 void bar();
3998 void foo()
3999 {
4000   S s;
4001   bar();
4002 }
4003 EOF
4004    old_CXXFLAGS="$CXXFLAGS"  
4005    CXXFLAGS=-S
4006    if { (eval echo configure:4007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4007      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
4008        enable_sjlj_exceptions=yes
4009      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
4010        enable_sjlj_exceptions=no
4011      fi
4012    fi
4013    CXXFLAGS="$old_CXXFLAGS"
4014    rm -f conftest*
4015 fi
4016
4017    if test x$enable_sjlj_exceptions = xyes; then
4018      cat >> confdefs.h <<\EOF
4019 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
4020 EOF
4021
4022      ac_exception_model_name=sjlj
4023    elif test x$enable_sjlj_exceptions = xno; then
4024      ac_exception_model_name="call frame"
4025    else
4026      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
4027    fi
4028    ac_ext=c
4029 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4030 ac_cpp='$CPP $CPPFLAGS'
4031 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4032 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4033 cross_compiling=$ac_cv_prog_cc_cross
4034
4035    echo "$ac_t""$ac_exception_model_name" 1>&6
4036
4037
4038   echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4039 echo "configure:4040: checking for use of libunwind" >&5
4040   # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4041 if test "${enable_libunwind_exceptions+set}" = set; then
4042   enableval="$enable_libunwind_exceptions"
4043   use_libunwind_exceptions=$enableval
4044 else
4045   use_libunwind_exceptions=no
4046 fi
4047
4048   echo "$ac_t""$use_libunwind_exceptions" 1>&6
4049     if test x"$use_libunwind_exceptions" = xyes; then
4050     LIBUNWIND_FLAG="-lunwind"
4051   else
4052     LIBUNWIND_FLAG=""
4053   fi
4054   
4055
4056 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4057 if test "${enable_concept_checks+set}" = set; then
4058   enableval="$enable_concept_checks"
4059   case "$enableval" in
4060  yes) enable_concept_checks=yes ;;
4061  no)  enable_concept_checks=no ;;
4062  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4063  esac
4064 else
4065   enable_concept_checks=no
4066 fi
4067 if test x"$enable_concept_checks" = xyes; then
4068   cat >> confdefs.h <<\EOF
4069 #define _GLIBCPP_CONCEPT_CHECKS 1
4070 EOF
4071
4072 fi
4073
4074
4075 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
4076 for ac_hdr in string.h stdlib.h
4077 do
4078 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4079 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4080 echo "configure:4081: checking for $ac_hdr" >&5
4081 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4082   echo $ac_n "(cached) $ac_c" 1>&6
4083 else
4084   cat > conftest.$ac_ext <<EOF
4085 #line 4086 "configure"
4086 #include "confdefs.h"
4087 #include <$ac_hdr>
4088 EOF
4089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4090 { (eval echo configure:4091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4091 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4092 if test -z "$ac_err"; then
4093   rm -rf conftest*
4094   eval "ac_cv_header_$ac_safe=yes"
4095 else
4096   echo "$ac_err" >&5
4097   echo "configure: failed program was:" >&5
4098   cat conftest.$ac_ext >&5
4099   rm -rf conftest*
4100   eval "ac_cv_header_$ac_safe=no"
4101 fi
4102 rm -f conftest*
4103 fi
4104 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4105   echo "$ac_t""yes" 1>&6
4106     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4107   cat >> confdefs.h <<EOF
4108 #define $ac_tr_hdr 1
4109 EOF
4110  
4111 else
4112   echo "$ac_t""no" 1>&6
4113 fi
4114 done
4115
4116
4117 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4118
4119   # We are being configured with some form of cross compiler.
4120   GLIBCPP_IS_CROSS_COMPILING=1
4121
4122   # This lets us hard-code the functionality we know we'll have in the cross
4123   # target environment.  "Let" is a sugar-coated word placed on an especially
4124   # dull and tedious hack, actually.
4125   #
4126   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4127   # that involve linking, can't be used:
4128   #    "cannot open sim-crt0.o"
4129   #    "cannot open crt0.o"
4130   # etc.  All this is because there currently exists no unified, consistent
4131   # way for top level CC information to be passed down to target directories:
4132   # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4133   # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4134   # crosses can be removed.
4135
4136   # If Canadian cross, then don't pick up tools from the build directory.
4137   # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4138   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4139     CANADIAN=yes
4140   else
4141     CANADIAN=no
4142   fi
4143
4144   # Construct crosses by hand, eliminating bits that need ld...
4145   # GLIBCPP_CHECK_COMPILER_FEATURES
4146   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4147   # GLIBCPP_CHECK_MATH_SUPPORT
4148
4149   case "$target_alias" in
4150     *-linux*)
4151       os_include_dir="os/gnu-linux"
4152       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4153         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4154         fp.h locale.h float.h inttypes.h
4155 do
4156 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4157 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4158 echo "configure:4159: checking for $ac_hdr" >&5
4159 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4160   echo $ac_n "(cached) $ac_c" 1>&6
4161 else
4162   cat > conftest.$ac_ext <<EOF
4163 #line 4164 "configure"
4164 #include "confdefs.h"
4165 #include <$ac_hdr>
4166 EOF
4167 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4168 { (eval echo configure:4169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4169 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4170 if test -z "$ac_err"; then
4171   rm -rf conftest*
4172   eval "ac_cv_header_$ac_safe=yes"
4173 else
4174   echo "$ac_err" >&5
4175   echo "configure: failed program was:" >&5
4176   cat conftest.$ac_ext >&5
4177   rm -rf conftest*
4178   eval "ac_cv_header_$ac_safe=no"
4179 fi
4180 rm -f conftest*
4181 fi
4182 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4183   echo "$ac_t""yes" 1>&6
4184     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4185   cat >> confdefs.h <<EOF
4186 #define $ac_tr_hdr 1
4187 EOF
4188  
4189 else
4190   echo "$ac_t""no" 1>&6
4191 fi
4192 done
4193
4194       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4195       
4196       
4197   # If we're not using GNU ld, then there's no point in even trying these
4198   # tests.  Check for that first.  We should have already tested for gld
4199   # by now (in libtool), but require it now just to be safe...
4200   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4201   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4202   
4203
4204   # The name set by libtool depends on the version of libtool.  Shame on us
4205   # for depending on an impl detail, but c'est la vie.  Older versions used
4206   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4207   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4208   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4209   # set (hence we're using an older libtool), then set it.
4210   if test x${with_gnu_ld+set} != xset; then
4211     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4212       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4213       with_gnu_ld=no
4214     else
4215       with_gnu_ld=$ac_cv_prog_gnu_ld
4216     fi
4217   fi
4218
4219   # Start by getting the version number.  I think the libtool test already
4220   # does some of this, but throws away the result.
4221   
4222   ldver=`$LD --version 2>/dev/null | head -1 | \
4223          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4224   
4225   glibcpp_gnu_ld_version=`echo $ldver | \
4226          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4227
4228   # Set --gc-sections.
4229   if test "$with_gnu_ld" = "notbroken"; then
4230     # GNU ld it is!  Joy and bunny rabbits!
4231
4232     # All these tests are for C++; save the language and the compiler flags.
4233     # Need to do this so that g++ won't try to link in libstdc++
4234     ac_test_CFLAGS="${CFLAGS+set}"
4235     ac_save_CFLAGS="$CFLAGS"
4236     CFLAGS='-x c++  -Wl,--gc-sections'
4237
4238     # Check for -Wl,--gc-sections
4239     # XXX This test is broken at the moment, as symbols required for
4240     # linking are now in libsupc++ (not built yet.....). In addition, 
4241     # this test has cored on solaris in the past. In addition,
4242     # --gc-sections doesn't really work at the moment (keeps on discarding
4243     # used sections, first .eh_frame and now some of the glibc sections for
4244     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4245     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4246 echo "configure:4247: checking for ld that supports -Wl,--gc-sections" >&5
4247     if test "$cross_compiling" = yes; then
4248   ac_sectionLDflags=yes
4249 else
4250   cat > conftest.$ac_ext <<EOF
4251 #line 4252 "configure"
4252 #include "confdefs.h"
4253
4254      int main(void) 
4255      {
4256        try { throw 1; }
4257        catch (...) { };
4258        return 0;
4259      }
4260     
4261 EOF
4262 if { (eval echo configure:4263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4263 then
4264   ac_sectionLDflags=yes
4265 else
4266   echo "configure: failed program was:" >&5
4267   cat conftest.$ac_ext >&5
4268   rm -fr conftest*
4269   ac_sectionLDflags=no
4270 fi
4271 rm -fr conftest*
4272 fi
4273
4274     if test "$ac_test_CFLAGS" = set; then
4275       CFLAGS="$ac_save_CFLAGS"
4276     else
4277       # this is the suspicious part
4278       CFLAGS=''
4279     fi
4280     if test "$ac_sectionLDflags" = "yes"; then
4281       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4282     fi
4283     echo "$ac_t""$ac_sectionLDflags" 1>&6
4284   fi
4285
4286   # Set linker optimization flags.
4287   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4288     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4289   fi
4290
4291   
4292   
4293
4294       
4295     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4296 echo "configure:4297: checking for main in -lm" >&5
4297 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4298 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4299   echo $ac_n "(cached) $ac_c" 1>&6
4300 else
4301   ac_save_LIBS="$LIBS"
4302 LIBS="-lm  $LIBS"
4303 cat > conftest.$ac_ext <<EOF
4304 #line 4305 "configure"
4305 #include "confdefs.h"
4306
4307 int main() {
4308 main()
4309 ; return 0; }
4310 EOF
4311 if { (eval echo configure:4312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4312   rm -rf conftest*
4313   eval "ac_cv_lib_$ac_lib_var=yes"
4314 else
4315   echo "configure: failed program was:" >&5
4316   cat conftest.$ac_ext >&5
4317   rm -rf conftest*
4318   eval "ac_cv_lib_$ac_lib_var=no"
4319 fi
4320 rm -f conftest*
4321 LIBS="$ac_save_LIBS"
4322
4323 fi
4324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4325   echo "$ac_t""yes" 1>&6
4326     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4327     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4328   cat >> confdefs.h <<EOF
4329 #define $ac_tr_lib 1
4330 EOF
4331
4332   LIBS="-lm $LIBS"
4333
4334 else
4335   echo "$ac_t""no" 1>&6
4336 fi
4337
4338   for ac_func in nan copysignf
4339 do
4340 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4341 echo "configure:4342: checking for $ac_func" >&5
4342 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4343   echo $ac_n "(cached) $ac_c" 1>&6
4344 else
4345   cat > conftest.$ac_ext <<EOF
4346 #line 4347 "configure"
4347 #include "confdefs.h"
4348 /* System header to define __stub macros and hopefully few prototypes,
4349     which can conflict with char $ac_func(); below.  */
4350 #include <assert.h>
4351 /* Override any gcc2 internal prototype to avoid an error.  */
4352 /* We use char because int might match the return type of a gcc2
4353     builtin and then its argument prototype would still apply.  */
4354 char $ac_func();
4355
4356 int main() {
4357
4358 /* The GNU C library defines this for functions which it implements
4359     to always fail with ENOSYS.  Some functions are actually named
4360     something starting with __ and the normal name is an alias.  */
4361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4362 choke me
4363 #else
4364 $ac_func();
4365 #endif
4366
4367 ; return 0; }
4368 EOF
4369 if { (eval echo configure:4370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4370   rm -rf conftest*
4371   eval "ac_cv_func_$ac_func=yes"
4372 else
4373   echo "configure: failed program was:" >&5
4374   cat conftest.$ac_ext >&5
4375   rm -rf conftest*
4376   eval "ac_cv_func_$ac_func=no"
4377 fi
4378 rm -f conftest*
4379 fi
4380
4381 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4382   echo "$ac_t""yes" 1>&6
4383     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4384   cat >> confdefs.h <<EOF
4385 #define $ac_tr_func 1
4386 EOF
4387  
4388 else
4389   echo "$ac_t""no" 1>&6
4390 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4391 fi
4392 done
4393
4394
4395     for ac_func in __signbit
4396 do
4397 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4398 echo "configure:4399: checking for $ac_func" >&5
4399 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4400   echo $ac_n "(cached) $ac_c" 1>&6
4401 else
4402   cat > conftest.$ac_ext <<EOF
4403 #line 4404 "configure"
4404 #include "confdefs.h"
4405 /* System header to define __stub macros and hopefully few prototypes,
4406     which can conflict with char $ac_func(); below.  */
4407 #include <assert.h>
4408 /* Override any gcc2 internal prototype to avoid an error.  */
4409 /* We use char because int might match the return type of a gcc2
4410     builtin and then its argument prototype would still apply.  */
4411 char $ac_func();
4412
4413 int main() {
4414
4415 /* The GNU C library defines this for functions which it implements
4416     to always fail with ENOSYS.  Some functions are actually named
4417     something starting with __ and the normal name is an alias.  */
4418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4419 choke me
4420 #else
4421 $ac_func();
4422 #endif
4423
4424 ; return 0; }
4425 EOF
4426 if { (eval echo configure:4427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4427   rm -rf conftest*
4428   eval "ac_cv_func_$ac_func=yes"
4429 else
4430   echo "configure: failed program was:" >&5
4431   cat conftest.$ac_ext >&5
4432   rm -rf conftest*
4433   eval "ac_cv_func_$ac_func=no"
4434 fi
4435 rm -f conftest*
4436 fi
4437
4438 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4439   echo "$ac_t""yes" 1>&6
4440     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4441   cat >> confdefs.h <<EOF
4442 #define $ac_tr_func 1
4443 EOF
4444  
4445 else
4446   echo "$ac_t""no" 1>&6
4447 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4448 fi
4449 done
4450
4451   for ac_func in __signbitf
4452 do
4453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4454 echo "configure:4455: checking for $ac_func" >&5
4455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4456   echo $ac_n "(cached) $ac_c" 1>&6
4457 else
4458   cat > conftest.$ac_ext <<EOF
4459 #line 4460 "configure"
4460 #include "confdefs.h"
4461 /* System header to define __stub macros and hopefully few prototypes,
4462     which can conflict with char $ac_func(); below.  */
4463 #include <assert.h>
4464 /* Override any gcc2 internal prototype to avoid an error.  */
4465 /* We use char because int might match the return type of a gcc2
4466     builtin and then its argument prototype would still apply.  */
4467 char $ac_func();
4468
4469 int main() {
4470
4471 /* The GNU C library defines this for functions which it implements
4472     to always fail with ENOSYS.  Some functions are actually named
4473     something starting with __ and the normal name is an alias.  */
4474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4475 choke me
4476 #else
4477 $ac_func();
4478 #endif
4479
4480 ; return 0; }
4481 EOF
4482 if { (eval echo configure:4483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4483   rm -rf conftest*
4484   eval "ac_cv_func_$ac_func=yes"
4485 else
4486   echo "configure: failed program was:" >&5
4487   cat conftest.$ac_ext >&5
4488   rm -rf conftest*
4489   eval "ac_cv_func_$ac_func=no"
4490 fi
4491 rm -f conftest*
4492 fi
4493
4494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4495   echo "$ac_t""yes" 1>&6
4496     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4497   cat >> confdefs.h <<EOF
4498 #define $ac_tr_func 1
4499 EOF
4500  
4501 else
4502   echo "$ac_t""no" 1>&6
4503 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4504 fi
4505 done
4506
4507
4508           if test x$ac_cv_func_copysignl = x"yes"; then
4509     for ac_func in __signbitl
4510 do
4511 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4512 echo "configure:4513: checking for $ac_func" >&5
4513 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4514   echo $ac_n "(cached) $ac_c" 1>&6
4515 else
4516   cat > conftest.$ac_ext <<EOF
4517 #line 4518 "configure"
4518 #include "confdefs.h"
4519 /* System header to define __stub macros and hopefully few prototypes,
4520     which can conflict with char $ac_func(); below.  */
4521 #include <assert.h>
4522 /* Override any gcc2 internal prototype to avoid an error.  */
4523 /* We use char because int might match the return type of a gcc2
4524     builtin and then its argument prototype would still apply.  */
4525 char $ac_func();
4526
4527 int main() {
4528
4529 /* The GNU C library defines this for functions which it implements
4530     to always fail with ENOSYS.  Some functions are actually named
4531     something starting with __ and the normal name is an alias.  */
4532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4533 choke me
4534 #else
4535 $ac_func();
4536 #endif
4537
4538 ; return 0; }
4539 EOF
4540 if { (eval echo configure:4541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4541   rm -rf conftest*
4542   eval "ac_cv_func_$ac_func=yes"
4543 else
4544   echo "configure: failed program was:" >&5
4545   cat conftest.$ac_ext >&5
4546   rm -rf conftest*
4547   eval "ac_cv_func_$ac_func=no"
4548 fi
4549 rm -f conftest*
4550 fi
4551
4552 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4553   echo "$ac_t""yes" 1>&6
4554     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4555   cat >> confdefs.h <<EOF
4556 #define $ac_tr_func 1
4557 EOF
4558  
4559 else
4560   echo "$ac_t""no" 1>&6
4561 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4562 fi
4563 done
4564
4565   fi
4566
4567   
4568
4569       
4570
4571       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4572 echo "configure:4573: checking for mbstate_t" >&5
4573   cat > conftest.$ac_ext <<EOF
4574 #line 4575 "configure"
4575 #include "confdefs.h"
4576 #include <wchar.h>
4577 int main() {
4578 mbstate_t teststate;
4579 ; return 0; }
4580 EOF
4581 if { (eval echo configure:4582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4582   rm -rf conftest*
4583   have_mbstate_t=yes
4584 else
4585   echo "configure: failed program was:" >&5
4586   cat conftest.$ac_ext >&5
4587   rm -rf conftest*
4588   have_mbstate_t=no
4589 fi
4590 rm -f conftest*
4591   echo "$ac_t""$have_mbstate_t" 1>&6
4592   if test x"$have_mbstate_t" = xyes; then
4593     cat >> confdefs.h <<\EOF
4594 #define HAVE_MBSTATE_T 1
4595 EOF
4596
4597   fi
4598
4599     for ac_hdr in wchar.h
4600 do
4601 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4602 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4603 echo "configure:4604: checking for $ac_hdr" >&5
4604 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4605   echo $ac_n "(cached) $ac_c" 1>&6
4606 else
4607   cat > conftest.$ac_ext <<EOF
4608 #line 4609 "configure"
4609 #include "confdefs.h"
4610 #include <$ac_hdr>
4611 EOF
4612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4613 { (eval echo configure:4614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4615 if test -z "$ac_err"; then
4616   rm -rf conftest*
4617   eval "ac_cv_header_$ac_safe=yes"
4618 else
4619   echo "$ac_err" >&5
4620   echo "configure: failed program was:" >&5
4621   cat conftest.$ac_ext >&5
4622   rm -rf conftest*
4623   eval "ac_cv_header_$ac_safe=no"
4624 fi
4625 rm -f conftest*
4626 fi
4627 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4628   echo "$ac_t""yes" 1>&6
4629     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4630   cat >> confdefs.h <<EOF
4631 #define $ac_tr_hdr 1
4632 EOF
4633  ac_has_wchar_h=yes
4634 else
4635   echo "$ac_t""no" 1>&6
4636 ac_has_wchar_h=no
4637 fi
4638 done
4639
4640   for ac_hdr in wctype.h
4641 do
4642 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4643 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4644 echo "configure:4645: checking for $ac_hdr" >&5
4645 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4646   echo $ac_n "(cached) $ac_c" 1>&6
4647 else
4648   cat > conftest.$ac_ext <<EOF
4649 #line 4650 "configure"
4650 #include "confdefs.h"
4651 #include <$ac_hdr>
4652 EOF
4653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4654 { (eval echo configure:4655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4655 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4656 if test -z "$ac_err"; then
4657   rm -rf conftest*
4658   eval "ac_cv_header_$ac_safe=yes"
4659 else
4660   echo "$ac_err" >&5
4661   echo "configure: failed program was:" >&5
4662   cat conftest.$ac_ext >&5
4663   rm -rf conftest*
4664   eval "ac_cv_header_$ac_safe=no"
4665 fi
4666 rm -f conftest*
4667 fi
4668 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4669   echo "$ac_t""yes" 1>&6
4670     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4671   cat >> confdefs.h <<EOF
4672 #define $ac_tr_hdr 1
4673 EOF
4674  ac_has_wctype_h=yes
4675 else
4676   echo "$ac_t""no" 1>&6
4677 ac_has_wctype_h=no
4678 fi
4679 done
4680
4681   
4682     if test x"$ac_has_wchar_h" = xyes &&
4683      test x"$ac_has_wctype_h" = xyes &&
4684      test x"$enable_c_mbchar" != xno; then
4685       
4686             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4687 echo "configure:4688: checking for WCHAR_MIN and WCHAR_MAX" >&5
4688     cat > conftest.$ac_ext <<EOF
4689 #line 4690 "configure"
4690 #include "confdefs.h"
4691 #include <wchar.h>
4692 int main() {
4693 int i = WCHAR_MIN; int j = WCHAR_MAX;
4694 ; return 0; }
4695 EOF
4696 if { (eval echo configure:4697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4697   rm -rf conftest*
4698   has_wchar_minmax=yes
4699 else
4700   echo "configure: failed program was:" >&5
4701   cat conftest.$ac_ext >&5
4702   rm -rf conftest*
4703   has_wchar_minmax=no
4704 fi
4705 rm -f conftest*
4706     echo "$ac_t""$has_wchar_minmax" 1>&6
4707     
4708             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4709 echo "configure:4710: checking for WEOF" >&5
4710     cat > conftest.$ac_ext <<EOF
4711 #line 4712 "configure"
4712 #include "confdefs.h"
4713
4714       #include <wchar.h>
4715       #include <stddef.h>
4716 int main() {
4717 wint_t i = WEOF;
4718 ; return 0; }
4719 EOF
4720 if { (eval echo configure:4721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4721   rm -rf conftest*
4722   has_weof=yes
4723 else
4724   echo "configure: failed program was:" >&5
4725   cat conftest.$ac_ext >&5
4726   rm -rf conftest*
4727   has_weof=no
4728 fi
4729 rm -f conftest*
4730     echo "$ac_t""$has_weof" 1>&6
4731   
4732         ac_wfuncs=yes
4733     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4734 do
4735 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4736 echo "configure:4737: checking for $ac_func" >&5
4737 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4738   echo $ac_n "(cached) $ac_c" 1>&6
4739 else
4740   cat > conftest.$ac_ext <<EOF
4741 #line 4742 "configure"
4742 #include "confdefs.h"
4743 /* System header to define __stub macros and hopefully few prototypes,
4744     which can conflict with char $ac_func(); below.  */
4745 #include <assert.h>
4746 /* Override any gcc2 internal prototype to avoid an error.  */
4747 /* We use char because int might match the return type of a gcc2
4748     builtin and then its argument prototype would still apply.  */
4749 char $ac_func();
4750
4751 int main() {
4752
4753 /* The GNU C library defines this for functions which it implements
4754     to always fail with ENOSYS.  Some functions are actually named
4755     something starting with __ and the normal name is an alias.  */
4756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4757 choke me
4758 #else
4759 $ac_func();
4760 #endif
4761
4762 ; return 0; }
4763 EOF
4764 if { (eval echo configure:4765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4765   rm -rf conftest*
4766   eval "ac_cv_func_$ac_func=yes"
4767 else
4768   echo "configure: failed program was:" >&5
4769   cat conftest.$ac_ext >&5
4770   rm -rf conftest*
4771   eval "ac_cv_func_$ac_func=no"
4772 fi
4773 rm -f conftest*
4774 fi
4775
4776 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4777   echo "$ac_t""yes" 1>&6
4778     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4779   cat >> confdefs.h <<EOF
4780 #define $ac_tr_func 1
4781 EOF
4782  
4783 else
4784   echo "$ac_t""no" 1>&6
4785 \
4786     ac_wfuncs=no
4787 fi
4788 done
4789
4790   
4791         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4792     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4793     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4794     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4795     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4796     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4797 do
4798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4799 echo "configure:4800: checking for $ac_func" >&5
4800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4801   echo $ac_n "(cached) $ac_c" 1>&6
4802 else
4803   cat > conftest.$ac_ext <<EOF
4804 #line 4805 "configure"
4805 #include "confdefs.h"
4806 /* System header to define __stub macros and hopefully few prototypes,
4807     which can conflict with char $ac_func(); below.  */
4808 #include <assert.h>
4809 /* Override any gcc2 internal prototype to avoid an error.  */
4810 /* We use char because int might match the return type of a gcc2
4811     builtin and then its argument prototype would still apply.  */
4812 char $ac_func();
4813
4814 int main() {
4815
4816 /* The GNU C library defines this for functions which it implements
4817     to always fail with ENOSYS.  Some functions are actually named
4818     something starting with __ and the normal name is an alias.  */
4819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4820 choke me
4821 #else
4822 $ac_func();
4823 #endif
4824
4825 ; return 0; }
4826 EOF
4827 if { (eval echo configure:4828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4828   rm -rf conftest*
4829   eval "ac_cv_func_$ac_func=yes"
4830 else
4831   echo "configure: failed program was:" >&5
4832   cat conftest.$ac_ext >&5
4833   rm -rf conftest*
4834   eval "ac_cv_func_$ac_func=no"
4835 fi
4836 rm -f conftest*
4837 fi
4838
4839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4840   echo "$ac_t""yes" 1>&6
4841     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4842   cat >> confdefs.h <<EOF
4843 #define $ac_tr_func 1
4844 EOF
4845  
4846 else
4847   echo "$ac_t""no" 1>&6
4848 \
4849     ac_wfuncs=no
4850 fi
4851 done
4852
4853
4854     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4855 echo "configure:4856: checking for ISO C99 wchar_t support" >&5
4856     if test x"$has_weof" = xyes &&
4857        test x"$has_wchar_minmax" = xyes &&
4858        test x"$ac_wfuncs" = xyes; then
4859       ac_isoC99_wchar_t=yes
4860     else
4861       ac_isoC99_wchar_t=no
4862     fi
4863     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4864   
4865             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4866 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4867 echo "configure:4868: checking for iconv.h" >&5
4868 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4869   echo $ac_n "(cached) $ac_c" 1>&6
4870 else
4871   cat > conftest.$ac_ext <<EOF
4872 #line 4873 "configure"
4873 #include "confdefs.h"
4874 #include <iconv.h>
4875 EOF
4876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4877 { (eval echo configure:4878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4879 if test -z "$ac_err"; then
4880   rm -rf conftest*
4881   eval "ac_cv_header_$ac_safe=yes"
4882 else
4883   echo "$ac_err" >&5
4884   echo "configure: failed program was:" >&5
4885   cat conftest.$ac_ext >&5
4886   rm -rf conftest*
4887   eval "ac_cv_header_$ac_safe=no"
4888 fi
4889 rm -f conftest*
4890 fi
4891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4892   echo "$ac_t""yes" 1>&6
4893   ac_has_iconv_h=yes
4894 else
4895   echo "$ac_t""no" 1>&6
4896 ac_has_iconv_h=no
4897 fi
4898
4899     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4900 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4901 echo "configure:4902: checking for langinfo.h" >&5
4902 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4903   echo $ac_n "(cached) $ac_c" 1>&6
4904 else
4905   cat > conftest.$ac_ext <<EOF
4906 #line 4907 "configure"
4907 #include "confdefs.h"
4908 #include <langinfo.h>
4909 EOF
4910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4911 { (eval echo configure:4912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4913 if test -z "$ac_err"; then
4914   rm -rf conftest*
4915   eval "ac_cv_header_$ac_safe=yes"
4916 else
4917   echo "$ac_err" >&5
4918   echo "configure: failed program was:" >&5
4919   cat conftest.$ac_ext >&5
4920   rm -rf conftest*
4921   eval "ac_cv_header_$ac_safe=no"
4922 fi
4923 rm -f conftest*
4924 fi
4925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4926   echo "$ac_t""yes" 1>&6
4927   ac_has_langinfo_h=yes
4928 else
4929   echo "$ac_t""no" 1>&6
4930 ac_has_langinfo_h=no
4931 fi
4932
4933
4934         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4935 echo "configure:4936: checking for iconv in -liconv" >&5
4936 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4937 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4938   echo $ac_n "(cached) $ac_c" 1>&6
4939 else
4940   ac_save_LIBS="$LIBS"
4941 LIBS="-liconv  $LIBS"
4942 cat > conftest.$ac_ext <<EOF
4943 #line 4944 "configure"
4944 #include "confdefs.h"
4945 /* Override any gcc2 internal prototype to avoid an error.  */
4946 /* We use char because int might match the return type of a gcc2
4947     builtin and then its argument prototype would still apply.  */
4948 char iconv();
4949
4950 int main() {
4951 iconv()
4952 ; return 0; }
4953 EOF
4954 if { (eval echo configure:4955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4955   rm -rf conftest*
4956   eval "ac_cv_lib_$ac_lib_var=yes"
4957 else
4958   echo "configure: failed program was:" >&5
4959   cat conftest.$ac_ext >&5
4960   rm -rf conftest*
4961   eval "ac_cv_lib_$ac_lib_var=no"
4962 fi
4963 rm -f conftest*
4964 LIBS="$ac_save_LIBS"
4965
4966 fi
4967 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4968   echo "$ac_t""yes" 1>&6
4969   libiconv="-liconv"
4970 else
4971   echo "$ac_t""no" 1>&6
4972 fi
4973
4974     ac_save_LIBS="$LIBS"
4975     LIBS="$LIBS $libiconv"
4976
4977     for ac_func in iconv_open iconv_close iconv nl_langinfo
4978 do
4979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4980 echo "configure:4981: checking for $ac_func" >&5
4981 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4982   echo $ac_n "(cached) $ac_c" 1>&6
4983 else
4984   cat > conftest.$ac_ext <<EOF
4985 #line 4986 "configure"
4986 #include "confdefs.h"
4987 /* System header to define __stub macros and hopefully few prototypes,
4988     which can conflict with char $ac_func(); below.  */
4989 #include <assert.h>
4990 /* Override any gcc2 internal prototype to avoid an error.  */
4991 /* We use char because int might match the return type of a gcc2
4992     builtin and then its argument prototype would still apply.  */
4993 char $ac_func();
4994
4995 int main() {
4996
4997 /* The GNU C library defines this for functions which it implements
4998     to always fail with ENOSYS.  Some functions are actually named
4999     something starting with __ and the normal name is an alias.  */
5000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5001 choke me
5002 #else
5003 $ac_func();
5004 #endif
5005
5006 ; return 0; }
5007 EOF
5008 if { (eval echo configure:5009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5009   rm -rf conftest*
5010   eval "ac_cv_func_$ac_func=yes"
5011 else
5012   echo "configure: failed program was:" >&5
5013   cat conftest.$ac_ext >&5
5014   rm -rf conftest*
5015   eval "ac_cv_func_$ac_func=no"
5016 fi
5017 rm -f conftest*
5018 fi
5019
5020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5021   echo "$ac_t""yes" 1>&6
5022     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5023   cat >> confdefs.h <<EOF
5024 #define $ac_tr_func 1
5025 EOF
5026  \
5027     ac_XPG2funcs=yes
5028 else
5029   echo "$ac_t""no" 1>&6
5030 ac_XPG2funcs=no
5031 fi
5032 done
5033
5034   
5035     LIBS="$ac_save_LIBS"
5036
5037     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5038 echo "configure:5039: checking for XPG2 wchar_t support" >&5
5039     if test x"$ac_has_iconv_h" = xyes &&
5040        test x"$ac_has_langinfo_h" = xyes &&
5041        test x"$ac_XPG2funcs" = xyes; then
5042       ac_XPG2_wchar_t=yes
5043     else
5044       ac_XPG2_wchar_t=no
5045     fi
5046     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5047   
5048             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5049 echo "configure:5050: checking for enabled wchar_t specializations" >&5
5050     if test x"$ac_isoC99_wchar_t" = xyes &&
5051        test x"$ac_XPG2_wchar_t" = xyes; then
5052       cat >> confdefs.h <<\EOF
5053 #define _GLIBCPP_USE_WCHAR_T 1
5054 EOF
5055
5056       echo "$ac_t"""yes"" 1>&6
5057     else
5058       echo "$ac_t"""no"" 1>&6
5059     fi
5060   else
5061         echo "configure: warning: wchar_t support disabled." 1>&2
5062   fi
5063
5064       cat >> confdefs.h <<\EOF
5065 #define HAVE_COPYSIGN 1
5066 EOF
5067
5068       cat >> confdefs.h <<\EOF
5069 #define HAVE_COPYSIGNF 1
5070 EOF
5071
5072       cat >> confdefs.h <<\EOF
5073 #define HAVE_FINITEF 1
5074 EOF
5075
5076       cat >> confdefs.h <<\EOF
5077 #define HAVE_FREXPF 1
5078 EOF
5079
5080       cat >> confdefs.h <<\EOF
5081 #define HAVE_HYPOTF 1
5082 EOF
5083
5084       cat >> confdefs.h <<\EOF
5085 #define HAVE_SINCOS 1
5086 EOF
5087
5088       cat >> confdefs.h <<\EOF
5089 #define HAVE_SINCOSF 1
5090 EOF
5091
5092       if test x"long_double_math_on_this_cpu" = x"yes"; then
5093         cat >> confdefs.h <<\EOF
5094 #define HAVE_HYPOTL 1
5095 EOF
5096
5097       fi
5098       ;;
5099     *-hpux*)
5100       # Check for available headers.
5101       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5102         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5103         fp.h locale.h float.h inttypes.h
5104 do
5105 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5106 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5107 echo "configure:5108: checking for $ac_hdr" >&5
5108 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5109   echo $ac_n "(cached) $ac_c" 1>&6
5110 else
5111   cat > conftest.$ac_ext <<EOF
5112 #line 5113 "configure"
5113 #include "confdefs.h"
5114 #include <$ac_hdr>
5115 EOF
5116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5117 { (eval echo configure:5118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5118 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5119 if test -z "$ac_err"; then
5120   rm -rf conftest*
5121   eval "ac_cv_header_$ac_safe=yes"
5122 else
5123   echo "$ac_err" >&5
5124   echo "configure: failed program was:" >&5
5125   cat conftest.$ac_ext >&5
5126   rm -rf conftest*
5127   eval "ac_cv_header_$ac_safe=no"
5128 fi
5129 rm -f conftest*
5130 fi
5131 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5132   echo "$ac_t""yes" 1>&6
5133     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5134   cat >> confdefs.h <<EOF
5135 #define $ac_tr_hdr 1
5136 EOF
5137  
5138 else
5139   echo "$ac_t""no" 1>&6
5140 fi
5141 done
5142
5143       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5144       
5145       
5146   # If we're not using GNU ld, then there's no point in even trying these
5147   # tests.  Check for that first.  We should have already tested for gld
5148   # by now (in libtool), but require it now just to be safe...
5149   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5150   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5151   
5152
5153   # The name set by libtool depends on the version of libtool.  Shame on us
5154   # for depending on an impl detail, but c'est la vie.  Older versions used
5155   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5156   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5157   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5158   # set (hence we're using an older libtool), then set it.
5159   if test x${with_gnu_ld+set} != xset; then
5160     if test x${ac_cv_prog_gnu_ld+set} != xset; then
5161       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5162       with_gnu_ld=no
5163     else
5164       with_gnu_ld=$ac_cv_prog_gnu_ld
5165     fi
5166   fi
5167
5168   # Start by getting the version number.  I think the libtool test already
5169   # does some of this, but throws away the result.
5170   
5171   ldver=`$LD --version 2>/dev/null | head -1 | \
5172          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5173   
5174   glibcpp_gnu_ld_version=`echo $ldver | \
5175          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5176
5177   # Set --gc-sections.
5178   if test "$with_gnu_ld" = "notbroken"; then
5179     # GNU ld it is!  Joy and bunny rabbits!
5180
5181     # All these tests are for C++; save the language and the compiler flags.
5182     # Need to do this so that g++ won't try to link in libstdc++
5183     ac_test_CFLAGS="${CFLAGS+set}"
5184     ac_save_CFLAGS="$CFLAGS"
5185     CFLAGS='-x c++  -Wl,--gc-sections'
5186
5187     # Check for -Wl,--gc-sections
5188     # XXX This test is broken at the moment, as symbols required for
5189     # linking are now in libsupc++ (not built yet.....). In addition, 
5190     # this test has cored on solaris in the past. In addition,
5191     # --gc-sections doesn't really work at the moment (keeps on discarding
5192     # used sections, first .eh_frame and now some of the glibc sections for
5193     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5194     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5195 echo "configure:5196: checking for ld that supports -Wl,--gc-sections" >&5
5196     if test "$cross_compiling" = yes; then
5197   ac_sectionLDflags=yes
5198 else
5199   cat > conftest.$ac_ext <<EOF
5200 #line 5201 "configure"
5201 #include "confdefs.h"
5202
5203      int main(void) 
5204      {
5205        try { throw 1; }
5206        catch (...) { };
5207        return 0;
5208      }
5209     
5210 EOF
5211 if { (eval echo configure:5212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5212 then
5213   ac_sectionLDflags=yes
5214 else
5215   echo "configure: failed program was:" >&5
5216   cat conftest.$ac_ext >&5
5217   rm -fr conftest*
5218   ac_sectionLDflags=no
5219 fi
5220 rm -fr conftest*
5221 fi
5222
5223     if test "$ac_test_CFLAGS" = set; then
5224       CFLAGS="$ac_save_CFLAGS"
5225     else
5226       # this is the suspicious part
5227       CFLAGS=''
5228     fi
5229     if test "$ac_sectionLDflags" = "yes"; then
5230       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5231     fi
5232     echo "$ac_t""$ac_sectionLDflags" 1>&6
5233   fi
5234
5235   # Set linker optimization flags.
5236   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5237     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5238   fi
5239
5240   
5241   
5242
5243       
5244     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5245 echo "configure:5246: checking for main in -lm" >&5
5246 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5247 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5248   echo $ac_n "(cached) $ac_c" 1>&6
5249 else
5250   ac_save_LIBS="$LIBS"
5251 LIBS="-lm  $LIBS"
5252 cat > conftest.$ac_ext <<EOF
5253 #line 5254 "configure"
5254 #include "confdefs.h"
5255
5256 int main() {
5257 main()
5258 ; return 0; }
5259 EOF
5260 if { (eval echo configure:5261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5261   rm -rf conftest*
5262   eval "ac_cv_lib_$ac_lib_var=yes"
5263 else
5264   echo "configure: failed program was:" >&5
5265   cat conftest.$ac_ext >&5
5266   rm -rf conftest*
5267   eval "ac_cv_lib_$ac_lib_var=no"
5268 fi
5269 rm -f conftest*
5270 LIBS="$ac_save_LIBS"
5271
5272 fi
5273 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5274   echo "$ac_t""yes" 1>&6
5275     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5276     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5277   cat >> confdefs.h <<EOF
5278 #define $ac_tr_lib 1
5279 EOF
5280
5281   LIBS="-lm $LIBS"
5282
5283 else
5284   echo "$ac_t""no" 1>&6
5285 fi
5286
5287   for ac_func in nan copysignf
5288 do
5289 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5290 echo "configure:5291: checking for $ac_func" >&5
5291 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5292   echo $ac_n "(cached) $ac_c" 1>&6
5293 else
5294   cat > conftest.$ac_ext <<EOF
5295 #line 5296 "configure"
5296 #include "confdefs.h"
5297 /* System header to define __stub macros and hopefully few prototypes,
5298     which can conflict with char $ac_func(); below.  */
5299 #include <assert.h>
5300 /* Override any gcc2 internal prototype to avoid an error.  */
5301 /* We use char because int might match the return type of a gcc2
5302     builtin and then its argument prototype would still apply.  */
5303 char $ac_func();
5304
5305 int main() {
5306
5307 /* The GNU C library defines this for functions which it implements
5308     to always fail with ENOSYS.  Some functions are actually named
5309     something starting with __ and the normal name is an alias.  */
5310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5311 choke me
5312 #else
5313 $ac_func();
5314 #endif
5315
5316 ; return 0; }
5317 EOF
5318 if { (eval echo configure:5319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5319   rm -rf conftest*
5320   eval "ac_cv_func_$ac_func=yes"
5321 else
5322   echo "configure: failed program was:" >&5
5323   cat conftest.$ac_ext >&5
5324   rm -rf conftest*
5325   eval "ac_cv_func_$ac_func=no"
5326 fi
5327 rm -f conftest*
5328 fi
5329
5330 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5331   echo "$ac_t""yes" 1>&6
5332     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5333   cat >> confdefs.h <<EOF
5334 #define $ac_tr_func 1
5335 EOF
5336  
5337 else
5338   echo "$ac_t""no" 1>&6
5339 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5340 fi
5341 done
5342
5343
5344     for ac_func in __signbit
5345 do
5346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5347 echo "configure:5348: checking for $ac_func" >&5
5348 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5349   echo $ac_n "(cached) $ac_c" 1>&6
5350 else
5351   cat > conftest.$ac_ext <<EOF
5352 #line 5353 "configure"
5353 #include "confdefs.h"
5354 /* System header to define __stub macros and hopefully few prototypes,
5355     which can conflict with char $ac_func(); below.  */
5356 #include <assert.h>
5357 /* Override any gcc2 internal prototype to avoid an error.  */
5358 /* We use char because int might match the return type of a gcc2
5359     builtin and then its argument prototype would still apply.  */
5360 char $ac_func();
5361
5362 int main() {
5363
5364 /* The GNU C library defines this for functions which it implements
5365     to always fail with ENOSYS.  Some functions are actually named
5366     something starting with __ and the normal name is an alias.  */
5367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5368 choke me
5369 #else
5370 $ac_func();
5371 #endif
5372
5373 ; return 0; }
5374 EOF
5375 if { (eval echo configure:5376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5376   rm -rf conftest*
5377   eval "ac_cv_func_$ac_func=yes"
5378 else
5379   echo "configure: failed program was:" >&5
5380   cat conftest.$ac_ext >&5
5381   rm -rf conftest*
5382   eval "ac_cv_func_$ac_func=no"
5383 fi
5384 rm -f conftest*
5385 fi
5386
5387 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5388   echo "$ac_t""yes" 1>&6
5389     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5390   cat >> confdefs.h <<EOF
5391 #define $ac_tr_func 1
5392 EOF
5393  
5394 else
5395   echo "$ac_t""no" 1>&6
5396 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5397 fi
5398 done
5399
5400   for ac_func in __signbitf
5401 do
5402 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5403 echo "configure:5404: checking for $ac_func" >&5
5404 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5405   echo $ac_n "(cached) $ac_c" 1>&6
5406 else
5407   cat > conftest.$ac_ext <<EOF
5408 #line 5409 "configure"
5409 #include "confdefs.h"
5410 /* System header to define __stub macros and hopefully few prototypes,
5411     which can conflict with char $ac_func(); below.  */
5412 #include <assert.h>
5413 /* Override any gcc2 internal prototype to avoid an error.  */
5414 /* We use char because int might match the return type of a gcc2
5415     builtin and then its argument prototype would still apply.  */
5416 char $ac_func();
5417
5418 int main() {
5419
5420 /* The GNU C library defines this for functions which it implements
5421     to always fail with ENOSYS.  Some functions are actually named
5422     something starting with __ and the normal name is an alias.  */
5423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5424 choke me
5425 #else
5426 $ac_func();
5427 #endif
5428
5429 ; return 0; }
5430 EOF
5431 if { (eval echo configure:5432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5432   rm -rf conftest*
5433   eval "ac_cv_func_$ac_func=yes"
5434 else
5435   echo "configure: failed program was:" >&5
5436   cat conftest.$ac_ext >&5
5437   rm -rf conftest*
5438   eval "ac_cv_func_$ac_func=no"
5439 fi
5440 rm -f conftest*
5441 fi
5442
5443 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5444   echo "$ac_t""yes" 1>&6
5445     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5446   cat >> confdefs.h <<EOF
5447 #define $ac_tr_func 1
5448 EOF
5449  
5450 else
5451   echo "$ac_t""no" 1>&6
5452 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5453 fi
5454 done
5455
5456
5457           if test x$ac_cv_func_copysignl = x"yes"; then
5458     for ac_func in __signbitl
5459 do
5460 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5461 echo "configure:5462: checking for $ac_func" >&5
5462 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5463   echo $ac_n "(cached) $ac_c" 1>&6
5464 else
5465   cat > conftest.$ac_ext <<EOF
5466 #line 5467 "configure"
5467 #include "confdefs.h"
5468 /* System header to define __stub macros and hopefully few prototypes,
5469     which can conflict with char $ac_func(); below.  */
5470 #include <assert.h>
5471 /* Override any gcc2 internal prototype to avoid an error.  */
5472 /* We use char because int might match the return type of a gcc2
5473     builtin and then its argument prototype would still apply.  */
5474 char $ac_func();
5475
5476 int main() {
5477
5478 /* The GNU C library defines this for functions which it implements
5479     to always fail with ENOSYS.  Some functions are actually named
5480     something starting with __ and the normal name is an alias.  */
5481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5482 choke me
5483 #else
5484 $ac_func();
5485 #endif
5486
5487 ; return 0; }
5488 EOF
5489 if { (eval echo configure:5490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5490   rm -rf conftest*
5491   eval "ac_cv_func_$ac_func=yes"
5492 else
5493   echo "configure: failed program was:" >&5
5494   cat conftest.$ac_ext >&5
5495   rm -rf conftest*
5496   eval "ac_cv_func_$ac_func=no"
5497 fi
5498 rm -f conftest*
5499 fi
5500
5501 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5502   echo "$ac_t""yes" 1>&6
5503     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5504   cat >> confdefs.h <<EOF
5505 #define $ac_tr_func 1
5506 EOF
5507  
5508 else
5509   echo "$ac_t""no" 1>&6
5510 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5511 fi
5512 done
5513
5514   fi
5515
5516   
5517
5518       
5519
5520       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5521 echo "configure:5522: checking for mbstate_t" >&5
5522   cat > conftest.$ac_ext <<EOF
5523 #line 5524 "configure"
5524 #include "confdefs.h"
5525 #include <wchar.h>
5526 int main() {
5527 mbstate_t teststate;
5528 ; return 0; }
5529 EOF
5530 if { (eval echo configure:5531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5531   rm -rf conftest*
5532   have_mbstate_t=yes
5533 else
5534   echo "configure: failed program was:" >&5
5535   cat conftest.$ac_ext >&5
5536   rm -rf conftest*
5537   have_mbstate_t=no
5538 fi
5539 rm -f conftest*
5540   echo "$ac_t""$have_mbstate_t" 1>&6
5541   if test x"$have_mbstate_t" = xyes; then
5542     cat >> confdefs.h <<\EOF
5543 #define HAVE_MBSTATE_T 1
5544 EOF
5545
5546   fi
5547
5548     for ac_hdr in wchar.h
5549 do
5550 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5551 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5552 echo "configure:5553: checking for $ac_hdr" >&5
5553 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5554   echo $ac_n "(cached) $ac_c" 1>&6
5555 else
5556   cat > conftest.$ac_ext <<EOF
5557 #line 5558 "configure"
5558 #include "confdefs.h"
5559 #include <$ac_hdr>
5560 EOF
5561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5562 { (eval echo configure:5563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5563 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5564 if test -z "$ac_err"; then
5565   rm -rf conftest*
5566   eval "ac_cv_header_$ac_safe=yes"
5567 else
5568   echo "$ac_err" >&5
5569   echo "configure: failed program was:" >&5
5570   cat conftest.$ac_ext >&5
5571   rm -rf conftest*
5572   eval "ac_cv_header_$ac_safe=no"
5573 fi
5574 rm -f conftest*
5575 fi
5576 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5577   echo "$ac_t""yes" 1>&6
5578     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5579   cat >> confdefs.h <<EOF
5580 #define $ac_tr_hdr 1
5581 EOF
5582  ac_has_wchar_h=yes
5583 else
5584   echo "$ac_t""no" 1>&6
5585 ac_has_wchar_h=no
5586 fi
5587 done
5588
5589   for ac_hdr in wctype.h
5590 do
5591 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5592 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5593 echo "configure:5594: checking for $ac_hdr" >&5
5594 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5595   echo $ac_n "(cached) $ac_c" 1>&6
5596 else
5597   cat > conftest.$ac_ext <<EOF
5598 #line 5599 "configure"
5599 #include "confdefs.h"
5600 #include <$ac_hdr>
5601 EOF
5602 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5603 { (eval echo configure:5604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5604 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5605 if test -z "$ac_err"; then
5606   rm -rf conftest*
5607   eval "ac_cv_header_$ac_safe=yes"
5608 else
5609   echo "$ac_err" >&5
5610   echo "configure: failed program was:" >&5
5611   cat conftest.$ac_ext >&5
5612   rm -rf conftest*
5613   eval "ac_cv_header_$ac_safe=no"
5614 fi
5615 rm -f conftest*
5616 fi
5617 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5618   echo "$ac_t""yes" 1>&6
5619     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5620   cat >> confdefs.h <<EOF
5621 #define $ac_tr_hdr 1
5622 EOF
5623  ac_has_wctype_h=yes
5624 else
5625   echo "$ac_t""no" 1>&6
5626 ac_has_wctype_h=no
5627 fi
5628 done
5629
5630   
5631     if test x"$ac_has_wchar_h" = xyes &&
5632      test x"$ac_has_wctype_h" = xyes &&
5633      test x"$enable_c_mbchar" != xno; then
5634       
5635             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5636 echo "configure:5637: checking for WCHAR_MIN and WCHAR_MAX" >&5
5637     cat > conftest.$ac_ext <<EOF
5638 #line 5639 "configure"
5639 #include "confdefs.h"
5640 #include <wchar.h>
5641 int main() {
5642 int i = WCHAR_MIN; int j = WCHAR_MAX;
5643 ; return 0; }
5644 EOF
5645 if { (eval echo configure:5646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5646   rm -rf conftest*
5647   has_wchar_minmax=yes
5648 else
5649   echo "configure: failed program was:" >&5
5650   cat conftest.$ac_ext >&5
5651   rm -rf conftest*
5652   has_wchar_minmax=no
5653 fi
5654 rm -f conftest*
5655     echo "$ac_t""$has_wchar_minmax" 1>&6
5656     
5657             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5658 echo "configure:5659: checking for WEOF" >&5
5659     cat > conftest.$ac_ext <<EOF
5660 #line 5661 "configure"
5661 #include "confdefs.h"
5662
5663       #include <wchar.h>
5664       #include <stddef.h>
5665 int main() {
5666 wint_t i = WEOF;
5667 ; return 0; }
5668 EOF
5669 if { (eval echo configure:5670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5670   rm -rf conftest*
5671   has_weof=yes
5672 else
5673   echo "configure: failed program was:" >&5
5674   cat conftest.$ac_ext >&5
5675   rm -rf conftest*
5676   has_weof=no
5677 fi
5678 rm -f conftest*
5679     echo "$ac_t""$has_weof" 1>&6
5680   
5681         ac_wfuncs=yes
5682     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5683 do
5684 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5685 echo "configure:5686: checking for $ac_func" >&5
5686 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5687   echo $ac_n "(cached) $ac_c" 1>&6
5688 else
5689   cat > conftest.$ac_ext <<EOF
5690 #line 5691 "configure"
5691 #include "confdefs.h"
5692 /* System header to define __stub macros and hopefully few prototypes,
5693     which can conflict with char $ac_func(); below.  */
5694 #include <assert.h>
5695 /* Override any gcc2 internal prototype to avoid an error.  */
5696 /* We use char because int might match the return type of a gcc2
5697     builtin and then its argument prototype would still apply.  */
5698 char $ac_func();
5699
5700 int main() {
5701
5702 /* The GNU C library defines this for functions which it implements
5703     to always fail with ENOSYS.  Some functions are actually named
5704     something starting with __ and the normal name is an alias.  */
5705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5706 choke me
5707 #else
5708 $ac_func();
5709 #endif
5710
5711 ; return 0; }
5712 EOF
5713 if { (eval echo configure:5714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5714   rm -rf conftest*
5715   eval "ac_cv_func_$ac_func=yes"
5716 else
5717   echo "configure: failed program was:" >&5
5718   cat conftest.$ac_ext >&5
5719   rm -rf conftest*
5720   eval "ac_cv_func_$ac_func=no"
5721 fi
5722 rm -f conftest*
5723 fi
5724
5725 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5726   echo "$ac_t""yes" 1>&6
5727     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5728   cat >> confdefs.h <<EOF
5729 #define $ac_tr_func 1
5730 EOF
5731  
5732 else
5733   echo "$ac_t""no" 1>&6
5734 \
5735     ac_wfuncs=no
5736 fi
5737 done
5738
5739   
5740         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5741     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5742     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5743     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5744     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5745     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5746 do
5747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5748 echo "configure:5749: checking for $ac_func" >&5
5749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5750   echo $ac_n "(cached) $ac_c" 1>&6
5751 else
5752   cat > conftest.$ac_ext <<EOF
5753 #line 5754 "configure"
5754 #include "confdefs.h"
5755 /* System header to define __stub macros and hopefully few prototypes,
5756     which can conflict with char $ac_func(); below.  */
5757 #include <assert.h>
5758 /* Override any gcc2 internal prototype to avoid an error.  */
5759 /* We use char because int might match the return type of a gcc2
5760     builtin and then its argument prototype would still apply.  */
5761 char $ac_func();
5762
5763 int main() {
5764
5765 /* The GNU C library defines this for functions which it implements
5766     to always fail with ENOSYS.  Some functions are actually named
5767     something starting with __ and the normal name is an alias.  */
5768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5769 choke me
5770 #else
5771 $ac_func();
5772 #endif
5773
5774 ; return 0; }
5775 EOF
5776 if { (eval echo configure:5777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5777   rm -rf conftest*
5778   eval "ac_cv_func_$ac_func=yes"
5779 else
5780   echo "configure: failed program was:" >&5
5781   cat conftest.$ac_ext >&5
5782   rm -rf conftest*
5783   eval "ac_cv_func_$ac_func=no"
5784 fi
5785 rm -f conftest*
5786 fi
5787
5788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5789   echo "$ac_t""yes" 1>&6
5790     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5791   cat >> confdefs.h <<EOF
5792 #define $ac_tr_func 1
5793 EOF
5794  
5795 else
5796   echo "$ac_t""no" 1>&6
5797 \
5798     ac_wfuncs=no
5799 fi
5800 done
5801
5802
5803     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5804 echo "configure:5805: checking for ISO C99 wchar_t support" >&5
5805     if test x"$has_weof" = xyes &&
5806        test x"$has_wchar_minmax" = xyes &&
5807        test x"$ac_wfuncs" = xyes; then
5808       ac_isoC99_wchar_t=yes
5809     else
5810       ac_isoC99_wchar_t=no
5811     fi
5812     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5813   
5814             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5815 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5816 echo "configure:5817: checking for iconv.h" >&5
5817 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5818   echo $ac_n "(cached) $ac_c" 1>&6
5819 else
5820   cat > conftest.$ac_ext <<EOF
5821 #line 5822 "configure"
5822 #include "confdefs.h"
5823 #include <iconv.h>
5824 EOF
5825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5826 { (eval echo configure:5827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5828 if test -z "$ac_err"; then
5829   rm -rf conftest*
5830   eval "ac_cv_header_$ac_safe=yes"
5831 else
5832   echo "$ac_err" >&5
5833   echo "configure: failed program was:" >&5
5834   cat conftest.$ac_ext >&5
5835   rm -rf conftest*
5836   eval "ac_cv_header_$ac_safe=no"
5837 fi
5838 rm -f conftest*
5839 fi
5840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5841   echo "$ac_t""yes" 1>&6
5842   ac_has_iconv_h=yes
5843 else
5844   echo "$ac_t""no" 1>&6
5845 ac_has_iconv_h=no
5846 fi
5847
5848     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5849 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5850 echo "configure:5851: checking for langinfo.h" >&5
5851 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5852   echo $ac_n "(cached) $ac_c" 1>&6
5853 else
5854   cat > conftest.$ac_ext <<EOF
5855 #line 5856 "configure"
5856 #include "confdefs.h"
5857 #include <langinfo.h>
5858 EOF
5859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5860 { (eval echo configure:5861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5861 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5862 if test -z "$ac_err"; then
5863   rm -rf conftest*
5864   eval "ac_cv_header_$ac_safe=yes"
5865 else
5866   echo "$ac_err" >&5
5867   echo "configure: failed program was:" >&5
5868   cat conftest.$ac_ext >&5
5869   rm -rf conftest*
5870   eval "ac_cv_header_$ac_safe=no"
5871 fi
5872 rm -f conftest*
5873 fi
5874 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5875   echo "$ac_t""yes" 1>&6
5876   ac_has_langinfo_h=yes
5877 else
5878   echo "$ac_t""no" 1>&6
5879 ac_has_langinfo_h=no
5880 fi
5881
5882
5883         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5884 echo "configure:5885: checking for iconv in -liconv" >&5
5885 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5886 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5887   echo $ac_n "(cached) $ac_c" 1>&6
5888 else
5889   ac_save_LIBS="$LIBS"
5890 LIBS="-liconv  $LIBS"
5891 cat > conftest.$ac_ext <<EOF
5892 #line 5893 "configure"
5893 #include "confdefs.h"
5894 /* Override any gcc2 internal prototype to avoid an error.  */
5895 /* We use char because int might match the return type of a gcc2
5896     builtin and then its argument prototype would still apply.  */
5897 char iconv();
5898
5899 int main() {
5900 iconv()
5901 ; return 0; }
5902 EOF
5903 if { (eval echo configure:5904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5904   rm -rf conftest*
5905   eval "ac_cv_lib_$ac_lib_var=yes"
5906 else
5907   echo "configure: failed program was:" >&5
5908   cat conftest.$ac_ext >&5
5909   rm -rf conftest*
5910   eval "ac_cv_lib_$ac_lib_var=no"
5911 fi
5912 rm -f conftest*
5913 LIBS="$ac_save_LIBS"
5914
5915 fi
5916 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5917   echo "$ac_t""yes" 1>&6
5918   libiconv="-liconv"
5919 else
5920   echo "$ac_t""no" 1>&6
5921 fi
5922
5923     ac_save_LIBS="$LIBS"
5924     LIBS="$LIBS $libiconv"
5925
5926     for ac_func in iconv_open iconv_close iconv nl_langinfo
5927 do
5928 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5929 echo "configure:5930: checking for $ac_func" >&5
5930 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5931   echo $ac_n "(cached) $ac_c" 1>&6
5932 else
5933   cat > conftest.$ac_ext <<EOF
5934 #line 5935 "configure"
5935 #include "confdefs.h"
5936 /* System header to define __stub macros and hopefully few prototypes,
5937     which can conflict with char $ac_func(); below.  */
5938 #include <assert.h>
5939 /* Override any gcc2 internal prototype to avoid an error.  */
5940 /* We use char because int might match the return type of a gcc2
5941     builtin and then its argument prototype would still apply.  */
5942 char $ac_func();
5943
5944 int main() {
5945
5946 /* The GNU C library defines this for functions which it implements
5947     to always fail with ENOSYS.  Some functions are actually named
5948     something starting with __ and the normal name is an alias.  */
5949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5950 choke me
5951 #else
5952 $ac_func();
5953 #endif
5954
5955 ; return 0; }
5956 EOF
5957 if { (eval echo configure:5958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5958   rm -rf conftest*
5959   eval "ac_cv_func_$ac_func=yes"
5960 else
5961   echo "configure: failed program was:" >&5
5962   cat conftest.$ac_ext >&5
5963   rm -rf conftest*
5964   eval "ac_cv_func_$ac_func=no"
5965 fi
5966 rm -f conftest*
5967 fi
5968
5969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5970   echo "$ac_t""yes" 1>&6
5971     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5972   cat >> confdefs.h <<EOF
5973 #define $ac_tr_func 1
5974 EOF
5975  \
5976     ac_XPG2funcs=yes
5977 else
5978   echo "$ac_t""no" 1>&6
5979 ac_XPG2funcs=no
5980 fi
5981 done
5982
5983   
5984     LIBS="$ac_save_LIBS"
5985
5986     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5987 echo "configure:5988: checking for XPG2 wchar_t support" >&5
5988     if test x"$ac_has_iconv_h" = xyes &&
5989        test x"$ac_has_langinfo_h" = xyes &&
5990        test x"$ac_XPG2funcs" = xyes; then
5991       ac_XPG2_wchar_t=yes
5992     else
5993       ac_XPG2_wchar_t=no
5994     fi
5995     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5996   
5997             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5998 echo "configure:5999: checking for enabled wchar_t specializations" >&5
5999     if test x"$ac_isoC99_wchar_t" = xyes &&
6000        test x"$ac_XPG2_wchar_t" = xyes; then
6001       cat >> confdefs.h <<\EOF
6002 #define _GLIBCPP_USE_WCHAR_T 1
6003 EOF
6004
6005       echo "$ac_t"""yes"" 1>&6
6006     else
6007       echo "$ac_t"""no"" 1>&6
6008     fi
6009   else
6010         echo "configure: warning: wchar_t support disabled." 1>&2
6011   fi
6012
6013       os_include_dir="os/hpux"
6014       cat >> confdefs.h <<\EOF
6015 #define HAVE_COPYSIGN 1
6016 EOF
6017
6018       cat >> confdefs.h <<\EOF
6019 #define HAVE_COPYSIGNF 1
6020 EOF
6021
6022       cat >> confdefs.h <<\EOF
6023 #define HAVE_FINITEF 1
6024 EOF
6025
6026       cat >> confdefs.h <<\EOF
6027 #define HAVE_FREXPF 1
6028 EOF
6029
6030       cat >> confdefs.h <<\EOF
6031 #define HAVE_HYPOT 1
6032 EOF
6033
6034       cat >> confdefs.h <<\EOF
6035 #define HAVE_SINCOS 1
6036 EOF
6037
6038       cat >> confdefs.h <<\EOF
6039 #define HAVE_SINCOSF 1
6040 EOF
6041
6042       ;;
6043     *-netbsd*)
6044       # Check for available headers.
6045       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6046         machine/endian.h machine/param.h sys/machine.h sys/types.h \
6047         fp.h locale.h float.h inttypes.h
6048 do
6049 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6050 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6051 echo "configure:6052: checking for $ac_hdr" >&5
6052 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6053   echo $ac_n "(cached) $ac_c" 1>&6
6054 else
6055   cat > conftest.$ac_ext <<EOF
6056 #line 6057 "configure"
6057 #include "confdefs.h"
6058 #include <$ac_hdr>
6059 EOF
6060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6061 { (eval echo configure:6062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6062 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6063 if test -z "$ac_err"; then
6064   rm -rf conftest*
6065   eval "ac_cv_header_$ac_safe=yes"
6066 else
6067   echo "$ac_err" >&5
6068   echo "configure: failed program was:" >&5
6069   cat conftest.$ac_ext >&5
6070   rm -rf conftest*
6071   eval "ac_cv_header_$ac_safe=no"
6072 fi
6073 rm -f conftest*
6074 fi
6075 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6076   echo "$ac_t""yes" 1>&6
6077     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6078   cat >> confdefs.h <<EOF
6079 #define $ac_tr_hdr 1
6080 EOF
6081  
6082 else
6083   echo "$ac_t""no" 1>&6
6084 fi
6085 done
6086
6087       SECTION_FLAGS='-ffunction-sections -fdata-sections'
6088        
6089       
6090   # If we're not using GNU ld, then there's no point in even trying these
6091   # tests.  Check for that first.  We should have already tested for gld
6092   # by now (in libtool), but require it now just to be safe...
6093   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6094   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6095   
6096
6097   # The name set by libtool depends on the version of libtool.  Shame on us
6098   # for depending on an impl detail, but c'est la vie.  Older versions used
6099   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6100   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6101   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6102   # set (hence we're using an older libtool), then set it.
6103   if test x${with_gnu_ld+set} != xset; then
6104     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6105       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6106       with_gnu_ld=no
6107     else
6108       with_gnu_ld=$ac_cv_prog_gnu_ld
6109     fi
6110   fi
6111
6112   # Start by getting the version number.  I think the libtool test already
6113   # does some of this, but throws away the result.
6114   
6115   ldver=`$LD --version 2>/dev/null | head -1 | \
6116          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6117   
6118   glibcpp_gnu_ld_version=`echo $ldver | \
6119          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6120
6121   # Set --gc-sections.
6122   if test "$with_gnu_ld" = "notbroken"; then
6123     # GNU ld it is!  Joy and bunny rabbits!
6124
6125     # All these tests are for C++; save the language and the compiler flags.
6126     # Need to do this so that g++ won't try to link in libstdc++
6127     ac_test_CFLAGS="${CFLAGS+set}"
6128     ac_save_CFLAGS="$CFLAGS"
6129     CFLAGS='-x c++  -Wl,--gc-sections'
6130
6131     # Check for -Wl,--gc-sections
6132     # XXX This test is broken at the moment, as symbols required for
6133     # linking are now in libsupc++ (not built yet.....). In addition, 
6134     # this test has cored on solaris in the past. In addition,
6135     # --gc-sections doesn't really work at the moment (keeps on discarding
6136     # used sections, first .eh_frame and now some of the glibc sections for
6137     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6138     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6139 echo "configure:6140: checking for ld that supports -Wl,--gc-sections" >&5
6140     if test "$cross_compiling" = yes; then
6141   ac_sectionLDflags=yes
6142 else
6143   cat > conftest.$ac_ext <<EOF
6144 #line 6145 "configure"
6145 #include "confdefs.h"
6146
6147      int main(void) 
6148      {
6149        try { throw 1; }
6150        catch (...) { };
6151        return 0;
6152      }
6153     
6154 EOF
6155 if { (eval echo configure:6156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6156 then
6157   ac_sectionLDflags=yes
6158 else
6159   echo "configure: failed program was:" >&5
6160   cat conftest.$ac_ext >&5
6161   rm -fr conftest*
6162   ac_sectionLDflags=no
6163 fi
6164 rm -fr conftest*
6165 fi
6166
6167     if test "$ac_test_CFLAGS" = set; then
6168       CFLAGS="$ac_save_CFLAGS"
6169     else
6170       # this is the suspicious part
6171       CFLAGS=''
6172     fi
6173     if test "$ac_sectionLDflags" = "yes"; then
6174       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6175     fi
6176     echo "$ac_t""$ac_sectionLDflags" 1>&6
6177   fi
6178
6179   # Set linker optimization flags.
6180   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
6181     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6182   fi
6183
6184   
6185   
6186
6187       
6188     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6189 echo "configure:6190: checking for main in -lm" >&5
6190 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6191 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6192   echo $ac_n "(cached) $ac_c" 1>&6
6193 else
6194   ac_save_LIBS="$LIBS"
6195 LIBS="-lm  $LIBS"
6196 cat > conftest.$ac_ext <<EOF
6197 #line 6198 "configure"
6198 #include "confdefs.h"
6199
6200 int main() {
6201 main()
6202 ; return 0; }
6203 EOF
6204 if { (eval echo configure:6205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6205   rm -rf conftest*
6206   eval "ac_cv_lib_$ac_lib_var=yes"
6207 else
6208   echo "configure: failed program was:" >&5
6209   cat conftest.$ac_ext >&5
6210   rm -rf conftest*
6211   eval "ac_cv_lib_$ac_lib_var=no"
6212 fi
6213 rm -f conftest*
6214 LIBS="$ac_save_LIBS"
6215
6216 fi
6217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6218   echo "$ac_t""yes" 1>&6
6219     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6220     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6221   cat >> confdefs.h <<EOF
6222 #define $ac_tr_lib 1
6223 EOF
6224
6225   LIBS="-lm $LIBS"
6226
6227 else
6228   echo "$ac_t""no" 1>&6
6229 fi
6230
6231   for ac_func in nan copysignf
6232 do
6233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6234 echo "configure:6235: checking for $ac_func" >&5
6235 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6236   echo $ac_n "(cached) $ac_c" 1>&6
6237 else
6238   cat > conftest.$ac_ext <<EOF
6239 #line 6240 "configure"
6240 #include "confdefs.h"
6241 /* System header to define __stub macros and hopefully few prototypes,
6242     which can conflict with char $ac_func(); below.  */
6243 #include <assert.h>
6244 /* Override any gcc2 internal prototype to avoid an error.  */
6245 /* We use char because int might match the return type of a gcc2
6246     builtin and then its argument prototype would still apply.  */
6247 char $ac_func();
6248
6249 int main() {
6250
6251 /* The GNU C library defines this for functions which it implements
6252     to always fail with ENOSYS.  Some functions are actually named
6253     something starting with __ and the normal name is an alias.  */
6254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6255 choke me
6256 #else
6257 $ac_func();
6258 #endif
6259
6260 ; return 0; }
6261 EOF
6262 if { (eval echo configure:6263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6263   rm -rf conftest*
6264   eval "ac_cv_func_$ac_func=yes"
6265 else
6266   echo "configure: failed program was:" >&5
6267   cat conftest.$ac_ext >&5
6268   rm -rf conftest*
6269   eval "ac_cv_func_$ac_func=no"
6270 fi
6271 rm -f conftest*
6272 fi
6273
6274 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6275   echo "$ac_t""yes" 1>&6
6276     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6277   cat >> confdefs.h <<EOF
6278 #define $ac_tr_func 1
6279 EOF
6280  
6281 else
6282   echo "$ac_t""no" 1>&6
6283 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6284 fi
6285 done
6286
6287
6288     for ac_func in __signbit
6289 do
6290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6291 echo "configure:6292: checking for $ac_func" >&5
6292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6293   echo $ac_n "(cached) $ac_c" 1>&6
6294 else
6295   cat > conftest.$ac_ext <<EOF
6296 #line 6297 "configure"
6297 #include "confdefs.h"
6298 /* System header to define __stub macros and hopefully few prototypes,
6299     which can conflict with char $ac_func(); below.  */
6300 #include <assert.h>
6301 /* Override any gcc2 internal prototype to avoid an error.  */
6302 /* We use char because int might match the return type of a gcc2
6303     builtin and then its argument prototype would still apply.  */
6304 char $ac_func();
6305
6306 int main() {
6307
6308 /* The GNU C library defines this for functions which it implements
6309     to always fail with ENOSYS.  Some functions are actually named
6310     something starting with __ and the normal name is an alias.  */
6311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6312 choke me
6313 #else
6314 $ac_func();
6315 #endif
6316
6317 ; return 0; }
6318 EOF
6319 if { (eval echo configure:6320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6320   rm -rf conftest*
6321   eval "ac_cv_func_$ac_func=yes"
6322 else
6323   echo "configure: failed program was:" >&5
6324   cat conftest.$ac_ext >&5
6325   rm -rf conftest*
6326   eval "ac_cv_func_$ac_func=no"
6327 fi
6328 rm -f conftest*
6329 fi
6330
6331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6332   echo "$ac_t""yes" 1>&6
6333     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6334   cat >> confdefs.h <<EOF
6335 #define $ac_tr_func 1
6336 EOF
6337  
6338 else
6339   echo "$ac_t""no" 1>&6
6340 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6341 fi
6342 done
6343
6344   for ac_func in __signbitf
6345 do
6346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6347 echo "configure:6348: checking for $ac_func" >&5
6348 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6349   echo $ac_n "(cached) $ac_c" 1>&6
6350 else
6351   cat > conftest.$ac_ext <<EOF
6352 #line 6353 "configure"
6353 #include "confdefs.h"
6354 /* System header to define __stub macros and hopefully few prototypes,
6355     which can conflict with char $ac_func(); below.  */
6356 #include <assert.h>
6357 /* Override any gcc2 internal prototype to avoid an error.  */
6358 /* We use char because int might match the return type of a gcc2
6359     builtin and then its argument prototype would still apply.  */
6360 char $ac_func();
6361
6362 int main() {
6363
6364 /* The GNU C library defines this for functions which it implements
6365     to always fail with ENOSYS.  Some functions are actually named
6366     something starting with __ and the normal name is an alias.  */
6367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6368 choke me
6369 #else
6370 $ac_func();
6371 #endif
6372
6373 ; return 0; }
6374 EOF
6375 if { (eval echo configure:6376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6376   rm -rf conftest*
6377   eval "ac_cv_func_$ac_func=yes"
6378 else
6379   echo "configure: failed program was:" >&5
6380   cat conftest.$ac_ext >&5
6381   rm -rf conftest*
6382   eval "ac_cv_func_$ac_func=no"
6383 fi
6384 rm -f conftest*
6385 fi
6386
6387 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6388   echo "$ac_t""yes" 1>&6
6389     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6390   cat >> confdefs.h <<EOF
6391 #define $ac_tr_func 1
6392 EOF
6393  
6394 else
6395   echo "$ac_t""no" 1>&6
6396 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6397 fi
6398 done
6399
6400
6401           if test x$ac_cv_func_copysignl = x"yes"; then
6402     for ac_func in __signbitl
6403 do
6404 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6405 echo "configure:6406: checking for $ac_func" >&5
6406 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6407   echo $ac_n "(cached) $ac_c" 1>&6
6408 else
6409   cat > conftest.$ac_ext <<EOF
6410 #line 6411 "configure"
6411 #include "confdefs.h"
6412 /* System header to define __stub macros and hopefully few prototypes,
6413     which can conflict with char $ac_func(); below.  */
6414 #include <assert.h>
6415 /* Override any gcc2 internal prototype to avoid an error.  */
6416 /* We use char because int might match the return type of a gcc2
6417     builtin and then its argument prototype would still apply.  */
6418 char $ac_func();
6419
6420 int main() {
6421
6422 /* The GNU C library defines this for functions which it implements
6423     to always fail with ENOSYS.  Some functions are actually named
6424     something starting with __ and the normal name is an alias.  */
6425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6426 choke me
6427 #else
6428 $ac_func();
6429 #endif
6430
6431 ; return 0; }
6432 EOF
6433 if { (eval echo configure:6434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6434   rm -rf conftest*
6435   eval "ac_cv_func_$ac_func=yes"
6436 else
6437   echo "configure: failed program was:" >&5
6438   cat conftest.$ac_ext >&5
6439   rm -rf conftest*
6440   eval "ac_cv_func_$ac_func=no"
6441 fi
6442 rm -f conftest*
6443 fi
6444
6445 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6446   echo "$ac_t""yes" 1>&6
6447     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6448   cat >> confdefs.h <<EOF
6449 #define $ac_tr_func 1
6450 EOF
6451  
6452 else
6453   echo "$ac_t""no" 1>&6
6454 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6455 fi
6456 done
6457
6458   fi
6459
6460   
6461
6462       
6463
6464       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6465 echo "configure:6466: checking for mbstate_t" >&5
6466   cat > conftest.$ac_ext <<EOF
6467 #line 6468 "configure"
6468 #include "confdefs.h"
6469 #include <wchar.h>
6470 int main() {
6471 mbstate_t teststate;
6472 ; return 0; }
6473 EOF
6474 if { (eval echo configure:6475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6475   rm -rf conftest*
6476   have_mbstate_t=yes
6477 else
6478   echo "configure: failed program was:" >&5
6479   cat conftest.$ac_ext >&5
6480   rm -rf conftest*
6481   have_mbstate_t=no
6482 fi
6483 rm -f conftest*
6484   echo "$ac_t""$have_mbstate_t" 1>&6
6485   if test x"$have_mbstate_t" = xyes; then
6486     cat >> confdefs.h <<\EOF
6487 #define HAVE_MBSTATE_T 1
6488 EOF
6489
6490   fi
6491
6492     for ac_hdr in wchar.h
6493 do
6494 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6495 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6496 echo "configure:6497: checking for $ac_hdr" >&5
6497 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6498   echo $ac_n "(cached) $ac_c" 1>&6
6499 else
6500   cat > conftest.$ac_ext <<EOF
6501 #line 6502 "configure"
6502 #include "confdefs.h"
6503 #include <$ac_hdr>
6504 EOF
6505 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6506 { (eval echo configure:6507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6507 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6508 if test -z "$ac_err"; then
6509   rm -rf conftest*
6510   eval "ac_cv_header_$ac_safe=yes"
6511 else
6512   echo "$ac_err" >&5
6513   echo "configure: failed program was:" >&5
6514   cat conftest.$ac_ext >&5
6515   rm -rf conftest*
6516   eval "ac_cv_header_$ac_safe=no"
6517 fi
6518 rm -f conftest*
6519 fi
6520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6521   echo "$ac_t""yes" 1>&6
6522     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6523   cat >> confdefs.h <<EOF
6524 #define $ac_tr_hdr 1
6525 EOF
6526  ac_has_wchar_h=yes
6527 else
6528   echo "$ac_t""no" 1>&6
6529 ac_has_wchar_h=no
6530 fi
6531 done
6532
6533   for ac_hdr in wctype.h
6534 do
6535 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6536 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6537 echo "configure:6538: checking for $ac_hdr" >&5
6538 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6539   echo $ac_n "(cached) $ac_c" 1>&6
6540 else
6541   cat > conftest.$ac_ext <<EOF
6542 #line 6543 "configure"
6543 #include "confdefs.h"
6544 #include <$ac_hdr>
6545 EOF
6546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6547 { (eval echo configure:6548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6548 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6549 if test -z "$ac_err"; then
6550   rm -rf conftest*
6551   eval "ac_cv_header_$ac_safe=yes"
6552 else
6553   echo "$ac_err" >&5
6554   echo "configure: failed program was:" >&5
6555   cat conftest.$ac_ext >&5
6556   rm -rf conftest*
6557   eval "ac_cv_header_$ac_safe=no"
6558 fi
6559 rm -f conftest*
6560 fi
6561 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6562   echo "$ac_t""yes" 1>&6
6563     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6564   cat >> confdefs.h <<EOF
6565 #define $ac_tr_hdr 1
6566 EOF
6567  ac_has_wctype_h=yes
6568 else
6569   echo "$ac_t""no" 1>&6
6570 ac_has_wctype_h=no
6571 fi
6572 done
6573
6574   
6575     if test x"$ac_has_wchar_h" = xyes &&
6576      test x"$ac_has_wctype_h" = xyes &&
6577      test x"$enable_c_mbchar" != xno; then
6578       
6579             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6580 echo "configure:6581: checking for WCHAR_MIN and WCHAR_MAX" >&5
6581     cat > conftest.$ac_ext <<EOF
6582 #line 6583 "configure"
6583 #include "confdefs.h"
6584 #include <wchar.h>
6585 int main() {
6586 int i = WCHAR_MIN; int j = WCHAR_MAX;
6587 ; return 0; }
6588 EOF
6589 if { (eval echo configure:6590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6590   rm -rf conftest*
6591   has_wchar_minmax=yes
6592 else
6593   echo "configure: failed program was:" >&5
6594   cat conftest.$ac_ext >&5
6595   rm -rf conftest*
6596   has_wchar_minmax=no
6597 fi
6598 rm -f conftest*
6599     echo "$ac_t""$has_wchar_minmax" 1>&6
6600     
6601             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6602 echo "configure:6603: checking for WEOF" >&5
6603     cat > conftest.$ac_ext <<EOF
6604 #line 6605 "configure"
6605 #include "confdefs.h"
6606
6607       #include <wchar.h>
6608       #include <stddef.h>
6609 int main() {
6610 wint_t i = WEOF;
6611 ; return 0; }
6612 EOF
6613 if { (eval echo configure:6614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6614   rm -rf conftest*
6615   has_weof=yes
6616 else
6617   echo "configure: failed program was:" >&5
6618   cat conftest.$ac_ext >&5
6619   rm -rf conftest*
6620   has_weof=no
6621 fi
6622 rm -f conftest*
6623     echo "$ac_t""$has_weof" 1>&6
6624   
6625         ac_wfuncs=yes
6626     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6627 do
6628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6629 echo "configure:6630: checking for $ac_func" >&5
6630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6631   echo $ac_n "(cached) $ac_c" 1>&6
6632 else
6633   cat > conftest.$ac_ext <<EOF
6634 #line 6635 "configure"
6635 #include "confdefs.h"
6636 /* System header to define __stub macros and hopefully few prototypes,
6637     which can conflict with char $ac_func(); below.  */
6638 #include <assert.h>
6639 /* Override any gcc2 internal prototype to avoid an error.  */
6640 /* We use char because int might match the return type of a gcc2
6641     builtin and then its argument prototype would still apply.  */
6642 char $ac_func();
6643
6644 int main() {
6645
6646 /* The GNU C library defines this for functions which it implements
6647     to always fail with ENOSYS.  Some functions are actually named
6648     something starting with __ and the normal name is an alias.  */
6649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6650 choke me
6651 #else
6652 $ac_func();
6653 #endif
6654
6655 ; return 0; }
6656 EOF
6657 if { (eval echo configure:6658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6658   rm -rf conftest*
6659   eval "ac_cv_func_$ac_func=yes"
6660 else
6661   echo "configure: failed program was:" >&5
6662   cat conftest.$ac_ext >&5
6663   rm -rf conftest*
6664   eval "ac_cv_func_$ac_func=no"
6665 fi
6666 rm -f conftest*
6667 fi
6668
6669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6670   echo "$ac_t""yes" 1>&6
6671     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6672   cat >> confdefs.h <<EOF
6673 #define $ac_tr_func 1
6674 EOF
6675  
6676 else
6677   echo "$ac_t""no" 1>&6
6678 \
6679     ac_wfuncs=no
6680 fi
6681 done
6682
6683   
6684         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6685     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6686     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6687     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6688     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6689     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6690 do
6691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6692 echo "configure:6693: checking for $ac_func" >&5
6693 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6694   echo $ac_n "(cached) $ac_c" 1>&6
6695 else
6696   cat > conftest.$ac_ext <<EOF
6697 #line 6698 "configure"
6698 #include "confdefs.h"
6699 /* System header to define __stub macros and hopefully few prototypes,
6700     which can conflict with char $ac_func(); below.  */
6701 #include <assert.h>
6702 /* Override any gcc2 internal prototype to avoid an error.  */
6703 /* We use char because int might match the return type of a gcc2
6704     builtin and then its argument prototype would still apply.  */
6705 char $ac_func();
6706
6707 int main() {
6708
6709 /* The GNU C library defines this for functions which it implements
6710     to always fail with ENOSYS.  Some functions are actually named
6711     something starting with __ and the normal name is an alias.  */
6712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6713 choke me
6714 #else
6715 $ac_func();
6716 #endif
6717
6718 ; return 0; }
6719 EOF
6720 if { (eval echo configure:6721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6721   rm -rf conftest*
6722   eval "ac_cv_func_$ac_func=yes"
6723 else
6724   echo "configure: failed program was:" >&5
6725   cat conftest.$ac_ext >&5
6726   rm -rf conftest*
6727   eval "ac_cv_func_$ac_func=no"
6728 fi
6729 rm -f conftest*
6730 fi
6731
6732 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6733   echo "$ac_t""yes" 1>&6
6734     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6735   cat >> confdefs.h <<EOF
6736 #define $ac_tr_func 1
6737 EOF
6738  
6739 else
6740   echo "$ac_t""no" 1>&6
6741 \
6742     ac_wfuncs=no
6743 fi
6744 done
6745
6746
6747     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6748 echo "configure:6749: checking for ISO C99 wchar_t support" >&5
6749     if test x"$has_weof" = xyes &&
6750        test x"$has_wchar_minmax" = xyes &&
6751        test x"$ac_wfuncs" = xyes; then
6752       ac_isoC99_wchar_t=yes
6753     else
6754       ac_isoC99_wchar_t=no
6755     fi
6756     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6757   
6758             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6759 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6760 echo "configure:6761: checking for iconv.h" >&5
6761 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6762   echo $ac_n "(cached) $ac_c" 1>&6
6763 else
6764   cat > conftest.$ac_ext <<EOF
6765 #line 6766 "configure"
6766 #include "confdefs.h"
6767 #include <iconv.h>
6768 EOF
6769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6770 { (eval echo configure:6771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6772 if test -z "$ac_err"; then
6773   rm -rf conftest*
6774   eval "ac_cv_header_$ac_safe=yes"
6775 else
6776   echo "$ac_err" >&5
6777   echo "configure: failed program was:" >&5
6778   cat conftest.$ac_ext >&5
6779   rm -rf conftest*
6780   eval "ac_cv_header_$ac_safe=no"
6781 fi
6782 rm -f conftest*
6783 fi
6784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6785   echo "$ac_t""yes" 1>&6
6786   ac_has_iconv_h=yes
6787 else
6788   echo "$ac_t""no" 1>&6
6789 ac_has_iconv_h=no
6790 fi
6791
6792     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6793 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6794 echo "configure:6795: checking for langinfo.h" >&5
6795 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6796   echo $ac_n "(cached) $ac_c" 1>&6
6797 else
6798   cat > conftest.$ac_ext <<EOF
6799 #line 6800 "configure"
6800 #include "confdefs.h"
6801 #include <langinfo.h>
6802 EOF
6803 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6804 { (eval echo configure:6805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6805 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6806 if test -z "$ac_err"; then
6807   rm -rf conftest*
6808   eval "ac_cv_header_$ac_safe=yes"
6809 else
6810   echo "$ac_err" >&5
6811   echo "configure: failed program was:" >&5
6812   cat conftest.$ac_ext >&5
6813   rm -rf conftest*
6814   eval "ac_cv_header_$ac_safe=no"
6815 fi
6816 rm -f conftest*
6817 fi
6818 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6819   echo "$ac_t""yes" 1>&6
6820   ac_has_langinfo_h=yes
6821 else
6822   echo "$ac_t""no" 1>&6
6823 ac_has_langinfo_h=no
6824 fi
6825
6826
6827         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6828 echo "configure:6829: checking for iconv in -liconv" >&5
6829 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6830 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6831   echo $ac_n "(cached) $ac_c" 1>&6
6832 else
6833   ac_save_LIBS="$LIBS"
6834 LIBS="-liconv  $LIBS"
6835 cat > conftest.$ac_ext <<EOF
6836 #line 6837 "configure"
6837 #include "confdefs.h"
6838 /* Override any gcc2 internal prototype to avoid an error.  */
6839 /* We use char because int might match the return type of a gcc2
6840     builtin and then its argument prototype would still apply.  */
6841 char iconv();
6842
6843 int main() {
6844 iconv()
6845 ; return 0; }
6846 EOF
6847 if { (eval echo configure:6848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6848   rm -rf conftest*
6849   eval "ac_cv_lib_$ac_lib_var=yes"
6850 else
6851   echo "configure: failed program was:" >&5
6852   cat conftest.$ac_ext >&5
6853   rm -rf conftest*
6854   eval "ac_cv_lib_$ac_lib_var=no"
6855 fi
6856 rm -f conftest*
6857 LIBS="$ac_save_LIBS"
6858
6859 fi
6860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6861   echo "$ac_t""yes" 1>&6
6862   libiconv="-liconv"
6863 else
6864   echo "$ac_t""no" 1>&6
6865 fi
6866
6867     ac_save_LIBS="$LIBS"
6868     LIBS="$LIBS $libiconv"
6869
6870     for ac_func in iconv_open iconv_close iconv nl_langinfo
6871 do
6872 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6873 echo "configure:6874: checking for $ac_func" >&5
6874 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6875   echo $ac_n "(cached) $ac_c" 1>&6
6876 else
6877   cat > conftest.$ac_ext <<EOF
6878 #line 6879 "configure"
6879 #include "confdefs.h"
6880 /* System header to define __stub macros and hopefully few prototypes,
6881     which can conflict with char $ac_func(); below.  */
6882 #include <assert.h>
6883 /* Override any gcc2 internal prototype to avoid an error.  */
6884 /* We use char because int might match the return type of a gcc2
6885     builtin and then its argument prototype would still apply.  */
6886 char $ac_func();
6887
6888 int main() {
6889
6890 /* The GNU C library defines this for functions which it implements
6891     to always fail with ENOSYS.  Some functions are actually named
6892     something starting with __ and the normal name is an alias.  */
6893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6894 choke me
6895 #else
6896 $ac_func();
6897 #endif
6898
6899 ; return 0; }
6900 EOF
6901 if { (eval echo configure:6902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6902   rm -rf conftest*
6903   eval "ac_cv_func_$ac_func=yes"
6904 else
6905   echo "configure: failed program was:" >&5
6906   cat conftest.$ac_ext >&5
6907   rm -rf conftest*
6908   eval "ac_cv_func_$ac_func=no"
6909 fi
6910 rm -f conftest*
6911 fi
6912
6913 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6914   echo "$ac_t""yes" 1>&6
6915     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6916   cat >> confdefs.h <<EOF
6917 #define $ac_tr_func 1
6918 EOF
6919  \
6920     ac_XPG2funcs=yes
6921 else
6922   echo "$ac_t""no" 1>&6
6923 ac_XPG2funcs=no
6924 fi
6925 done
6926
6927   
6928     LIBS="$ac_save_LIBS"
6929
6930     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6931 echo "configure:6932: checking for XPG2 wchar_t support" >&5
6932     if test x"$ac_has_iconv_h" = xyes &&
6933        test x"$ac_has_langinfo_h" = xyes &&
6934        test x"$ac_XPG2funcs" = xyes; then
6935       ac_XPG2_wchar_t=yes
6936     else
6937       ac_XPG2_wchar_t=no
6938     fi
6939     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6940   
6941             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6942 echo "configure:6943: checking for enabled wchar_t specializations" >&5
6943     if test x"$ac_isoC99_wchar_t" = xyes &&
6944        test x"$ac_XPG2_wchar_t" = xyes; then
6945       cat >> confdefs.h <<\EOF
6946 #define _GLIBCPP_USE_WCHAR_T 1
6947 EOF
6948
6949       echo "$ac_t"""yes"" 1>&6
6950     else
6951       echo "$ac_t"""no"" 1>&6
6952     fi
6953   else
6954         echo "configure: warning: wchar_t support disabled." 1>&2
6955   fi
6956
6957       os_include_dir="os/bsd/netbsd"
6958       cat >> confdefs.h <<\EOF
6959 #define HAVE_COPYSIGN 1
6960 EOF
6961
6962       cat >> confdefs.h <<\EOF
6963 #define HAVE_COPYSIGNF 1
6964 EOF
6965
6966       cat >> confdefs.h <<\EOF
6967 #define HAVE_FINITEF 1
6968 EOF
6969
6970       cat >> confdefs.h <<\EOF
6971 #define HAVE_FREXPF 1
6972 EOF
6973
6974       cat >> confdefs.h <<\EOF
6975 #define HAVE_HYPOTF 1
6976 EOF
6977
6978       ;;
6979     *-mingw32*)
6980       for ac_hdr in sys/types.h locale.h float.h
6981 do
6982 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6983 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6984 echo "configure:6985: checking for $ac_hdr" >&5
6985 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6986   echo $ac_n "(cached) $ac_c" 1>&6
6987 else
6988   cat > conftest.$ac_ext <<EOF
6989 #line 6990 "configure"
6990 #include "confdefs.h"
6991 #include <$ac_hdr>
6992 EOF
6993 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6994 { (eval echo configure:6995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6995 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6996 if test -z "$ac_err"; then
6997   rm -rf conftest*
6998   eval "ac_cv_header_$ac_safe=yes"
6999 else
7000   echo "$ac_err" >&5
7001   echo "configure: failed program was:" >&5
7002   cat conftest.$ac_ext >&5
7003   rm -rf conftest*
7004   eval "ac_cv_header_$ac_safe=no"
7005 fi
7006 rm -f conftest*
7007 fi
7008 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7009   echo "$ac_t""yes" 1>&6
7010     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7011   cat >> confdefs.h <<EOF
7012 #define $ac_tr_hdr 1
7013 EOF
7014  
7015 else
7016   echo "$ac_t""no" 1>&6
7017 fi
7018 done
7019
7020       
7021   # If we're not using GNU ld, then there's no point in even trying these
7022   # tests.  Check for that first.  We should have already tested for gld
7023   # by now (in libtool), but require it now just to be safe...
7024   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7025   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7026   
7027
7028   # The name set by libtool depends on the version of libtool.  Shame on us
7029   # for depending on an impl detail, but c'est la vie.  Older versions used
7030   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7031   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7032   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7033   # set (hence we're using an older libtool), then set it.
7034   if test x${with_gnu_ld+set} != xset; then
7035     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7036       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7037       with_gnu_ld=no
7038     else
7039       with_gnu_ld=$ac_cv_prog_gnu_ld
7040     fi
7041   fi
7042
7043   # Start by getting the version number.  I think the libtool test already
7044   # does some of this, but throws away the result.
7045   
7046   ldver=`$LD --version 2>/dev/null | head -1 | \
7047          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7048   
7049   glibcpp_gnu_ld_version=`echo $ldver | \
7050          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7051
7052   # Set --gc-sections.
7053   if test "$with_gnu_ld" = "notbroken"; then
7054     # GNU ld it is!  Joy and bunny rabbits!
7055
7056     # All these tests are for C++; save the language and the compiler flags.
7057     # Need to do this so that g++ won't try to link in libstdc++
7058     ac_test_CFLAGS="${CFLAGS+set}"
7059     ac_save_CFLAGS="$CFLAGS"
7060     CFLAGS='-x c++  -Wl,--gc-sections'
7061
7062     # Check for -Wl,--gc-sections
7063     # XXX This test is broken at the moment, as symbols required for
7064     # linking are now in libsupc++ (not built yet.....). In addition, 
7065     # this test has cored on solaris in the past. In addition,
7066     # --gc-sections doesn't really work at the moment (keeps on discarding
7067     # used sections, first .eh_frame and now some of the glibc sections for
7068     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7069     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7070 echo "configure:7071: checking for ld that supports -Wl,--gc-sections" >&5
7071     if test "$cross_compiling" = yes; then
7072   ac_sectionLDflags=yes
7073 else
7074   cat > conftest.$ac_ext <<EOF
7075 #line 7076 "configure"
7076 #include "confdefs.h"
7077
7078      int main(void) 
7079      {
7080        try { throw 1; }
7081        catch (...) { };
7082        return 0;
7083      }
7084     
7085 EOF
7086 if { (eval echo configure:7087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7087 then
7088   ac_sectionLDflags=yes
7089 else
7090   echo "configure: failed program was:" >&5
7091   cat conftest.$ac_ext >&5
7092   rm -fr conftest*
7093   ac_sectionLDflags=no
7094 fi
7095 rm -fr conftest*
7096 fi
7097
7098     if test "$ac_test_CFLAGS" = set; then
7099       CFLAGS="$ac_save_CFLAGS"
7100     else
7101       # this is the suspicious part
7102       CFLAGS=''
7103     fi
7104     if test "$ac_sectionLDflags" = "yes"; then
7105       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7106     fi
7107     echo "$ac_t""$ac_sectionLDflags" 1>&6
7108   fi
7109
7110   # Set linker optimization flags.
7111   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7112     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7113   fi
7114
7115   
7116   
7117
7118       
7119     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7120 echo "configure:7121: checking for main in -lm" >&5
7121 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7122 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7123   echo $ac_n "(cached) $ac_c" 1>&6
7124 else
7125   ac_save_LIBS="$LIBS"
7126 LIBS="-lm  $LIBS"
7127 cat > conftest.$ac_ext <<EOF
7128 #line 7129 "configure"
7129 #include "confdefs.h"
7130
7131 int main() {
7132 main()
7133 ; return 0; }
7134 EOF
7135 if { (eval echo configure:7136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7136   rm -rf conftest*
7137   eval "ac_cv_lib_$ac_lib_var=yes"
7138 else
7139   echo "configure: failed program was:" >&5
7140   cat conftest.$ac_ext >&5
7141   rm -rf conftest*
7142   eval "ac_cv_lib_$ac_lib_var=no"
7143 fi
7144 rm -f conftest*
7145 LIBS="$ac_save_LIBS"
7146
7147 fi
7148 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7149   echo "$ac_t""yes" 1>&6
7150     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7151     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7152   cat >> confdefs.h <<EOF
7153 #define $ac_tr_lib 1
7154 EOF
7155
7156   LIBS="-lm $LIBS"
7157
7158 else
7159   echo "$ac_t""no" 1>&6
7160 fi
7161
7162   for ac_func in nan copysignf
7163 do
7164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7165 echo "configure:7166: checking for $ac_func" >&5
7166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7167   echo $ac_n "(cached) $ac_c" 1>&6
7168 else
7169   cat > conftest.$ac_ext <<EOF
7170 #line 7171 "configure"
7171 #include "confdefs.h"
7172 /* System header to define __stub macros and hopefully few prototypes,
7173     which can conflict with char $ac_func(); below.  */
7174 #include <assert.h>
7175 /* Override any gcc2 internal prototype to avoid an error.  */
7176 /* We use char because int might match the return type of a gcc2
7177     builtin and then its argument prototype would still apply.  */
7178 char $ac_func();
7179
7180 int main() {
7181
7182 /* The GNU C library defines this for functions which it implements
7183     to always fail with ENOSYS.  Some functions are actually named
7184     something starting with __ and the normal name is an alias.  */
7185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7186 choke me
7187 #else
7188 $ac_func();
7189 #endif
7190
7191 ; return 0; }
7192 EOF
7193 if { (eval echo configure:7194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7194   rm -rf conftest*
7195   eval "ac_cv_func_$ac_func=yes"
7196 else
7197   echo "configure: failed program was:" >&5
7198   cat conftest.$ac_ext >&5
7199   rm -rf conftest*
7200   eval "ac_cv_func_$ac_func=no"
7201 fi
7202 rm -f conftest*
7203 fi
7204
7205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7206   echo "$ac_t""yes" 1>&6
7207     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7208   cat >> confdefs.h <<EOF
7209 #define $ac_tr_func 1
7210 EOF
7211  
7212 else
7213   echo "$ac_t""no" 1>&6
7214 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7215 fi
7216 done
7217
7218
7219     for ac_func in __signbit
7220 do
7221 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7222 echo "configure:7223: checking for $ac_func" >&5
7223 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7224   echo $ac_n "(cached) $ac_c" 1>&6
7225 else
7226   cat > conftest.$ac_ext <<EOF
7227 #line 7228 "configure"
7228 #include "confdefs.h"
7229 /* System header to define __stub macros and hopefully few prototypes,
7230     which can conflict with char $ac_func(); below.  */
7231 #include <assert.h>
7232 /* Override any gcc2 internal prototype to avoid an error.  */
7233 /* We use char because int might match the return type of a gcc2
7234     builtin and then its argument prototype would still apply.  */
7235 char $ac_func();
7236
7237 int main() {
7238
7239 /* The GNU C library defines this for functions which it implements
7240     to always fail with ENOSYS.  Some functions are actually named
7241     something starting with __ and the normal name is an alias.  */
7242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7243 choke me
7244 #else
7245 $ac_func();
7246 #endif
7247
7248 ; return 0; }
7249 EOF
7250 if { (eval echo configure:7251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7251   rm -rf conftest*
7252   eval "ac_cv_func_$ac_func=yes"
7253 else
7254   echo "configure: failed program was:" >&5
7255   cat conftest.$ac_ext >&5
7256   rm -rf conftest*
7257   eval "ac_cv_func_$ac_func=no"
7258 fi
7259 rm -f conftest*
7260 fi
7261
7262 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7263   echo "$ac_t""yes" 1>&6
7264     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7265   cat >> confdefs.h <<EOF
7266 #define $ac_tr_func 1
7267 EOF
7268  
7269 else
7270   echo "$ac_t""no" 1>&6
7271 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7272 fi
7273 done
7274
7275   for ac_func in __signbitf
7276 do
7277 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7278 echo "configure:7279: checking for $ac_func" >&5
7279 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7280   echo $ac_n "(cached) $ac_c" 1>&6
7281 else
7282   cat > conftest.$ac_ext <<EOF
7283 #line 7284 "configure"
7284 #include "confdefs.h"
7285 /* System header to define __stub macros and hopefully few prototypes,
7286     which can conflict with char $ac_func(); below.  */
7287 #include <assert.h>
7288 /* Override any gcc2 internal prototype to avoid an error.  */
7289 /* We use char because int might match the return type of a gcc2
7290     builtin and then its argument prototype would still apply.  */
7291 char $ac_func();
7292
7293 int main() {
7294
7295 /* The GNU C library defines this for functions which it implements
7296     to always fail with ENOSYS.  Some functions are actually named
7297     something starting with __ and the normal name is an alias.  */
7298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7299 choke me
7300 #else
7301 $ac_func();
7302 #endif
7303
7304 ; return 0; }
7305 EOF
7306 if { (eval echo configure:7307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7307   rm -rf conftest*
7308   eval "ac_cv_func_$ac_func=yes"
7309 else
7310   echo "configure: failed program was:" >&5
7311   cat conftest.$ac_ext >&5
7312   rm -rf conftest*
7313   eval "ac_cv_func_$ac_func=no"
7314 fi
7315 rm -f conftest*
7316 fi
7317
7318 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7319   echo "$ac_t""yes" 1>&6
7320     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7321   cat >> confdefs.h <<EOF
7322 #define $ac_tr_func 1
7323 EOF
7324  
7325 else
7326   echo "$ac_t""no" 1>&6
7327 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7328 fi
7329 done
7330
7331
7332           if test x$ac_cv_func_copysignl = x"yes"; then
7333     for ac_func in __signbitl
7334 do
7335 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7336 echo "configure:7337: checking for $ac_func" >&5
7337 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7338   echo $ac_n "(cached) $ac_c" 1>&6
7339 else
7340   cat > conftest.$ac_ext <<EOF
7341 #line 7342 "configure"
7342 #include "confdefs.h"
7343 /* System header to define __stub macros and hopefully few prototypes,
7344     which can conflict with char $ac_func(); below.  */
7345 #include <assert.h>
7346 /* Override any gcc2 internal prototype to avoid an error.  */
7347 /* We use char because int might match the return type of a gcc2
7348     builtin and then its argument prototype would still apply.  */
7349 char $ac_func();
7350
7351 int main() {
7352
7353 /* The GNU C library defines this for functions which it implements
7354     to always fail with ENOSYS.  Some functions are actually named
7355     something starting with __ and the normal name is an alias.  */
7356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7357 choke me
7358 #else
7359 $ac_func();
7360 #endif
7361
7362 ; return 0; }
7363 EOF
7364 if { (eval echo configure:7365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7365   rm -rf conftest*
7366   eval "ac_cv_func_$ac_func=yes"
7367 else
7368   echo "configure: failed program was:" >&5
7369   cat conftest.$ac_ext >&5
7370   rm -rf conftest*
7371   eval "ac_cv_func_$ac_func=no"
7372 fi
7373 rm -f conftest*
7374 fi
7375
7376 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7377   echo "$ac_t""yes" 1>&6
7378     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7379   cat >> confdefs.h <<EOF
7380 #define $ac_tr_func 1
7381 EOF
7382  
7383 else
7384   echo "$ac_t""no" 1>&6
7385 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7386 fi
7387 done
7388
7389   fi
7390
7391   
7392
7393       
7394
7395       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7396 echo "configure:7397: checking for mbstate_t" >&5
7397   cat > conftest.$ac_ext <<EOF
7398 #line 7399 "configure"
7399 #include "confdefs.h"
7400 #include <wchar.h>
7401 int main() {
7402 mbstate_t teststate;
7403 ; return 0; }
7404 EOF
7405 if { (eval echo configure:7406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7406   rm -rf conftest*
7407   have_mbstate_t=yes
7408 else
7409   echo "configure: failed program was:" >&5
7410   cat conftest.$ac_ext >&5
7411   rm -rf conftest*
7412   have_mbstate_t=no
7413 fi
7414 rm -f conftest*
7415   echo "$ac_t""$have_mbstate_t" 1>&6
7416   if test x"$have_mbstate_t" = xyes; then
7417     cat >> confdefs.h <<\EOF
7418 #define HAVE_MBSTATE_T 1
7419 EOF
7420
7421   fi
7422
7423     for ac_hdr in wchar.h
7424 do
7425 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7426 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7427 echo "configure:7428: checking for $ac_hdr" >&5
7428 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7429   echo $ac_n "(cached) $ac_c" 1>&6
7430 else
7431   cat > conftest.$ac_ext <<EOF
7432 #line 7433 "configure"
7433 #include "confdefs.h"
7434 #include <$ac_hdr>
7435 EOF
7436 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7437 { (eval echo configure:7438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7438 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7439 if test -z "$ac_err"; then
7440   rm -rf conftest*
7441   eval "ac_cv_header_$ac_safe=yes"
7442 else
7443   echo "$ac_err" >&5
7444   echo "configure: failed program was:" >&5
7445   cat conftest.$ac_ext >&5
7446   rm -rf conftest*
7447   eval "ac_cv_header_$ac_safe=no"
7448 fi
7449 rm -f conftest*
7450 fi
7451 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7452   echo "$ac_t""yes" 1>&6
7453     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7454   cat >> confdefs.h <<EOF
7455 #define $ac_tr_hdr 1
7456 EOF
7457  ac_has_wchar_h=yes
7458 else
7459   echo "$ac_t""no" 1>&6
7460 ac_has_wchar_h=no
7461 fi
7462 done
7463
7464   for ac_hdr in wctype.h
7465 do
7466 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7467 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7468 echo "configure:7469: checking for $ac_hdr" >&5
7469 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7470   echo $ac_n "(cached) $ac_c" 1>&6
7471 else
7472   cat > conftest.$ac_ext <<EOF
7473 #line 7474 "configure"
7474 #include "confdefs.h"
7475 #include <$ac_hdr>
7476 EOF
7477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7478 { (eval echo configure:7479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7480 if test -z "$ac_err"; then
7481   rm -rf conftest*
7482   eval "ac_cv_header_$ac_safe=yes"
7483 else
7484   echo "$ac_err" >&5
7485   echo "configure: failed program was:" >&5
7486   cat conftest.$ac_ext >&5
7487   rm -rf conftest*
7488   eval "ac_cv_header_$ac_safe=no"
7489 fi
7490 rm -f conftest*
7491 fi
7492 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7493   echo "$ac_t""yes" 1>&6
7494     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7495   cat >> confdefs.h <<EOF
7496 #define $ac_tr_hdr 1
7497 EOF
7498  ac_has_wctype_h=yes
7499 else
7500   echo "$ac_t""no" 1>&6
7501 ac_has_wctype_h=no
7502 fi
7503 done
7504
7505   
7506     if test x"$ac_has_wchar_h" = xyes &&
7507      test x"$ac_has_wctype_h" = xyes &&
7508      test x"$enable_c_mbchar" != xno; then
7509       
7510             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7511 echo "configure:7512: checking for WCHAR_MIN and WCHAR_MAX" >&5
7512     cat > conftest.$ac_ext <<EOF
7513 #line 7514 "configure"
7514 #include "confdefs.h"
7515 #include <wchar.h>
7516 int main() {
7517 int i = WCHAR_MIN; int j = WCHAR_MAX;
7518 ; return 0; }
7519 EOF
7520 if { (eval echo configure:7521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7521   rm -rf conftest*
7522   has_wchar_minmax=yes
7523 else
7524   echo "configure: failed program was:" >&5
7525   cat conftest.$ac_ext >&5
7526   rm -rf conftest*
7527   has_wchar_minmax=no
7528 fi
7529 rm -f conftest*
7530     echo "$ac_t""$has_wchar_minmax" 1>&6
7531     
7532             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7533 echo "configure:7534: checking for WEOF" >&5
7534     cat > conftest.$ac_ext <<EOF
7535 #line 7536 "configure"
7536 #include "confdefs.h"
7537
7538       #include <wchar.h>
7539       #include <stddef.h>
7540 int main() {
7541 wint_t i = WEOF;
7542 ; return 0; }
7543 EOF
7544 if { (eval echo configure:7545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7545   rm -rf conftest*
7546   has_weof=yes
7547 else
7548   echo "configure: failed program was:" >&5
7549   cat conftest.$ac_ext >&5
7550   rm -rf conftest*
7551   has_weof=no
7552 fi
7553 rm -f conftest*
7554     echo "$ac_t""$has_weof" 1>&6
7555   
7556         ac_wfuncs=yes
7557     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7558 do
7559 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7560 echo "configure:7561: checking for $ac_func" >&5
7561 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7562   echo $ac_n "(cached) $ac_c" 1>&6
7563 else
7564   cat > conftest.$ac_ext <<EOF
7565 #line 7566 "configure"
7566 #include "confdefs.h"
7567 /* System header to define __stub macros and hopefully few prototypes,
7568     which can conflict with char $ac_func(); below.  */
7569 #include <assert.h>
7570 /* Override any gcc2 internal prototype to avoid an error.  */
7571 /* We use char because int might match the return type of a gcc2
7572     builtin and then its argument prototype would still apply.  */
7573 char $ac_func();
7574
7575 int main() {
7576
7577 /* The GNU C library defines this for functions which it implements
7578     to always fail with ENOSYS.  Some functions are actually named
7579     something starting with __ and the normal name is an alias.  */
7580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7581 choke me
7582 #else
7583 $ac_func();
7584 #endif
7585
7586 ; return 0; }
7587 EOF
7588 if { (eval echo configure:7589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7589   rm -rf conftest*
7590   eval "ac_cv_func_$ac_func=yes"
7591 else
7592   echo "configure: failed program was:" >&5
7593   cat conftest.$ac_ext >&5
7594   rm -rf conftest*
7595   eval "ac_cv_func_$ac_func=no"
7596 fi
7597 rm -f conftest*
7598 fi
7599
7600 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7601   echo "$ac_t""yes" 1>&6
7602     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7603   cat >> confdefs.h <<EOF
7604 #define $ac_tr_func 1
7605 EOF
7606  
7607 else
7608   echo "$ac_t""no" 1>&6
7609 \
7610     ac_wfuncs=no
7611 fi
7612 done
7613
7614   
7615         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7616     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7617     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7618     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7619     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7620     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7621 do
7622 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7623 echo "configure:7624: checking for $ac_func" >&5
7624 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7625   echo $ac_n "(cached) $ac_c" 1>&6
7626 else
7627   cat > conftest.$ac_ext <<EOF
7628 #line 7629 "configure"
7629 #include "confdefs.h"
7630 /* System header to define __stub macros and hopefully few prototypes,
7631     which can conflict with char $ac_func(); below.  */
7632 #include <assert.h>
7633 /* Override any gcc2 internal prototype to avoid an error.  */
7634 /* We use char because int might match the return type of a gcc2
7635     builtin and then its argument prototype would still apply.  */
7636 char $ac_func();
7637
7638 int main() {
7639
7640 /* The GNU C library defines this for functions which it implements
7641     to always fail with ENOSYS.  Some functions are actually named
7642     something starting with __ and the normal name is an alias.  */
7643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7644 choke me
7645 #else
7646 $ac_func();
7647 #endif
7648
7649 ; return 0; }
7650 EOF
7651 if { (eval echo configure:7652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7652   rm -rf conftest*
7653   eval "ac_cv_func_$ac_func=yes"
7654 else
7655   echo "configure: failed program was:" >&5
7656   cat conftest.$ac_ext >&5
7657   rm -rf conftest*
7658   eval "ac_cv_func_$ac_func=no"
7659 fi
7660 rm -f conftest*
7661 fi
7662
7663 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7664   echo "$ac_t""yes" 1>&6
7665     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7666   cat >> confdefs.h <<EOF
7667 #define $ac_tr_func 1
7668 EOF
7669  
7670 else
7671   echo "$ac_t""no" 1>&6
7672 \
7673     ac_wfuncs=no
7674 fi
7675 done
7676
7677
7678     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7679 echo "configure:7680: checking for ISO C99 wchar_t support" >&5
7680     if test x"$has_weof" = xyes &&
7681        test x"$has_wchar_minmax" = xyes &&
7682        test x"$ac_wfuncs" = xyes; then
7683       ac_isoC99_wchar_t=yes
7684     else
7685       ac_isoC99_wchar_t=no
7686     fi
7687     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7688   
7689             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7690 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7691 echo "configure:7692: checking for iconv.h" >&5
7692 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7693   echo $ac_n "(cached) $ac_c" 1>&6
7694 else
7695   cat > conftest.$ac_ext <<EOF
7696 #line 7697 "configure"
7697 #include "confdefs.h"
7698 #include <iconv.h>
7699 EOF
7700 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7701 { (eval echo configure:7702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7702 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7703 if test -z "$ac_err"; then
7704   rm -rf conftest*
7705   eval "ac_cv_header_$ac_safe=yes"
7706 else
7707   echo "$ac_err" >&5
7708   echo "configure: failed program was:" >&5
7709   cat conftest.$ac_ext >&5
7710   rm -rf conftest*
7711   eval "ac_cv_header_$ac_safe=no"
7712 fi
7713 rm -f conftest*
7714 fi
7715 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7716   echo "$ac_t""yes" 1>&6
7717   ac_has_iconv_h=yes
7718 else
7719   echo "$ac_t""no" 1>&6
7720 ac_has_iconv_h=no
7721 fi
7722
7723     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7724 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7725 echo "configure:7726: checking for langinfo.h" >&5
7726 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7727   echo $ac_n "(cached) $ac_c" 1>&6
7728 else
7729   cat > conftest.$ac_ext <<EOF
7730 #line 7731 "configure"
7731 #include "confdefs.h"
7732 #include <langinfo.h>
7733 EOF
7734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7735 { (eval echo configure:7736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7736 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7737 if test -z "$ac_err"; then
7738   rm -rf conftest*
7739   eval "ac_cv_header_$ac_safe=yes"
7740 else
7741   echo "$ac_err" >&5
7742   echo "configure: failed program was:" >&5
7743   cat conftest.$ac_ext >&5
7744   rm -rf conftest*
7745   eval "ac_cv_header_$ac_safe=no"
7746 fi
7747 rm -f conftest*
7748 fi
7749 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7750   echo "$ac_t""yes" 1>&6
7751   ac_has_langinfo_h=yes
7752 else
7753   echo "$ac_t""no" 1>&6
7754 ac_has_langinfo_h=no
7755 fi
7756
7757
7758         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7759 echo "configure:7760: checking for iconv in -liconv" >&5
7760 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7762   echo $ac_n "(cached) $ac_c" 1>&6
7763 else
7764   ac_save_LIBS="$LIBS"
7765 LIBS="-liconv  $LIBS"
7766 cat > conftest.$ac_ext <<EOF
7767 #line 7768 "configure"
7768 #include "confdefs.h"
7769 /* Override any gcc2 internal prototype to avoid an error.  */
7770 /* We use char because int might match the return type of a gcc2
7771     builtin and then its argument prototype would still apply.  */
7772 char iconv();
7773
7774 int main() {
7775 iconv()
7776 ; return 0; }
7777 EOF
7778 if { (eval echo configure:7779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7779   rm -rf conftest*
7780   eval "ac_cv_lib_$ac_lib_var=yes"
7781 else
7782   echo "configure: failed program was:" >&5
7783   cat conftest.$ac_ext >&5
7784   rm -rf conftest*
7785   eval "ac_cv_lib_$ac_lib_var=no"
7786 fi
7787 rm -f conftest*
7788 LIBS="$ac_save_LIBS"
7789
7790 fi
7791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7792   echo "$ac_t""yes" 1>&6
7793   libiconv="-liconv"
7794 else
7795   echo "$ac_t""no" 1>&6
7796 fi
7797
7798     ac_save_LIBS="$LIBS"
7799     LIBS="$LIBS $libiconv"
7800
7801     for ac_func in iconv_open iconv_close iconv nl_langinfo
7802 do
7803 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7804 echo "configure:7805: checking for $ac_func" >&5
7805 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7806   echo $ac_n "(cached) $ac_c" 1>&6
7807 else
7808   cat > conftest.$ac_ext <<EOF
7809 #line 7810 "configure"
7810 #include "confdefs.h"
7811 /* System header to define __stub macros and hopefully few prototypes,
7812     which can conflict with char $ac_func(); below.  */
7813 #include <assert.h>
7814 /* Override any gcc2 internal prototype to avoid an error.  */
7815 /* We use char because int might match the return type of a gcc2
7816     builtin and then its argument prototype would still apply.  */
7817 char $ac_func();
7818
7819 int main() {
7820
7821 /* The GNU C library defines this for functions which it implements
7822     to always fail with ENOSYS.  Some functions are actually named
7823     something starting with __ and the normal name is an alias.  */
7824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7825 choke me
7826 #else
7827 $ac_func();
7828 #endif
7829
7830 ; return 0; }
7831 EOF
7832 if { (eval echo configure:7833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7833   rm -rf conftest*
7834   eval "ac_cv_func_$ac_func=yes"
7835 else
7836   echo "configure: failed program was:" >&5
7837   cat conftest.$ac_ext >&5
7838   rm -rf conftest*
7839   eval "ac_cv_func_$ac_func=no"
7840 fi
7841 rm -f conftest*
7842 fi
7843
7844 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7845   echo "$ac_t""yes" 1>&6
7846     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7847   cat >> confdefs.h <<EOF
7848 #define $ac_tr_func 1
7849 EOF
7850  \
7851     ac_XPG2funcs=yes
7852 else
7853   echo "$ac_t""no" 1>&6
7854 ac_XPG2funcs=no
7855 fi
7856 done
7857
7858   
7859     LIBS="$ac_save_LIBS"
7860
7861     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7862 echo "configure:7863: checking for XPG2 wchar_t support" >&5
7863     if test x"$ac_has_iconv_h" = xyes &&
7864        test x"$ac_has_langinfo_h" = xyes &&
7865        test x"$ac_XPG2funcs" = xyes; then
7866       ac_XPG2_wchar_t=yes
7867     else
7868       ac_XPG2_wchar_t=no
7869     fi
7870     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7871   
7872             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7873 echo "configure:7874: checking for enabled wchar_t specializations" >&5
7874     if test x"$ac_isoC99_wchar_t" = xyes &&
7875        test x"$ac_XPG2_wchar_t" = xyes; then
7876       cat >> confdefs.h <<\EOF
7877 #define _GLIBCPP_USE_WCHAR_T 1
7878 EOF
7879
7880       echo "$ac_t"""yes"" 1>&6
7881     else
7882       echo "$ac_t"""no"" 1>&6
7883     fi
7884   else
7885         echo "configure: warning: wchar_t support disabled." 1>&2
7886   fi
7887
7888       os_include_dir="os/mingw32"
7889       ;;
7890     *-windiss*)
7891       os_include_dir="os/windiss"
7892       ;;
7893     *-qnx6.[12]*)
7894       SECTION_FLAGS='-ffunction-sections -fdata-sections'
7895        
7896       
7897   # If we're not using GNU ld, then there's no point in even trying these
7898   # tests.  Check for that first.  We should have already tested for gld
7899   # by now (in libtool), but require it now just to be safe...
7900   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7901   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7902   
7903
7904   # The name set by libtool depends on the version of libtool.  Shame on us
7905   # for depending on an impl detail, but c'est la vie.  Older versions used
7906   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7907   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7908   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7909   # set (hence we're using an older libtool), then set it.
7910   if test x${with_gnu_ld+set} != xset; then
7911     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7912       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7913       with_gnu_ld=no
7914     else
7915       with_gnu_ld=$ac_cv_prog_gnu_ld
7916     fi
7917   fi
7918
7919   # Start by getting the version number.  I think the libtool test already
7920   # does some of this, but throws away the result.
7921   
7922   ldver=`$LD --version 2>/dev/null | head -1 | \
7923          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7924   
7925   glibcpp_gnu_ld_version=`echo $ldver | \
7926          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7927
7928   # Set --gc-sections.
7929   if test "$with_gnu_ld" = "notbroken"; then
7930     # GNU ld it is!  Joy and bunny rabbits!
7931
7932     # All these tests are for C++; save the language and the compiler flags.
7933     # Need to do this so that g++ won't try to link in libstdc++
7934     ac_test_CFLAGS="${CFLAGS+set}"
7935     ac_save_CFLAGS="$CFLAGS"
7936     CFLAGS='-x c++  -Wl,--gc-sections'
7937
7938     # Check for -Wl,--gc-sections
7939     # XXX This test is broken at the moment, as symbols required for
7940     # linking are now in libsupc++ (not built yet.....). In addition, 
7941     # this test has cored on solaris in the past. In addition,
7942     # --gc-sections doesn't really work at the moment (keeps on discarding
7943     # used sections, first .eh_frame and now some of the glibc sections for
7944     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7945     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7946 echo "configure:7947: checking for ld that supports -Wl,--gc-sections" >&5
7947     if test "$cross_compiling" = yes; then
7948   ac_sectionLDflags=yes
7949 else
7950   cat > conftest.$ac_ext <<EOF
7951 #line 7952 "configure"
7952 #include "confdefs.h"
7953
7954      int main(void) 
7955      {
7956        try { throw 1; }
7957        catch (...) { };
7958        return 0;
7959      }
7960     
7961 EOF
7962 if { (eval echo configure:7963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7963 then
7964   ac_sectionLDflags=yes
7965 else
7966   echo "configure: failed program was:" >&5
7967   cat conftest.$ac_ext >&5
7968   rm -fr conftest*
7969   ac_sectionLDflags=no
7970 fi
7971 rm -fr conftest*
7972 fi
7973
7974     if test "$ac_test_CFLAGS" = set; then
7975       CFLAGS="$ac_save_CFLAGS"
7976     else
7977       # this is the suspicious part
7978       CFLAGS=''
7979     fi
7980     if test "$ac_sectionLDflags" = "yes"; then
7981       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7982     fi
7983     echo "$ac_t""$ac_sectionLDflags" 1>&6
7984   fi
7985
7986   # Set linker optimization flags.
7987   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7988     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7989   fi
7990
7991   
7992   
7993
7994       
7995     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7996 echo "configure:7997: checking for main in -lm" >&5
7997 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7998 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7999   echo $ac_n "(cached) $ac_c" 1>&6
8000 else
8001   ac_save_LIBS="$LIBS"
8002 LIBS="-lm  $LIBS"
8003 cat > conftest.$ac_ext <<EOF
8004 #line 8005 "configure"
8005 #include "confdefs.h"
8006
8007 int main() {
8008 main()
8009 ; return 0; }
8010 EOF
8011 if { (eval echo configure:8012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8012   rm -rf conftest*
8013   eval "ac_cv_lib_$ac_lib_var=yes"
8014 else
8015   echo "configure: failed program was:" >&5
8016   cat conftest.$ac_ext >&5
8017   rm -rf conftest*
8018   eval "ac_cv_lib_$ac_lib_var=no"
8019 fi
8020 rm -f conftest*
8021 LIBS="$ac_save_LIBS"
8022
8023 fi
8024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8025   echo "$ac_t""yes" 1>&6
8026     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8027     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8028   cat >> confdefs.h <<EOF
8029 #define $ac_tr_lib 1
8030 EOF
8031
8032   LIBS="-lm $LIBS"
8033
8034 else
8035   echo "$ac_t""no" 1>&6
8036 fi
8037
8038   for ac_func in nan copysignf
8039 do
8040 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8041 echo "configure:8042: checking for $ac_func" >&5
8042 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8043   echo $ac_n "(cached) $ac_c" 1>&6
8044 else
8045   cat > conftest.$ac_ext <<EOF
8046 #line 8047 "configure"
8047 #include "confdefs.h"
8048 /* System header to define __stub macros and hopefully few prototypes,
8049     which can conflict with char $ac_func(); below.  */
8050 #include <assert.h>
8051 /* Override any gcc2 internal prototype to avoid an error.  */
8052 /* We use char because int might match the return type of a gcc2
8053     builtin and then its argument prototype would still apply.  */
8054 char $ac_func();
8055
8056 int main() {
8057
8058 /* The GNU C library defines this for functions which it implements
8059     to always fail with ENOSYS.  Some functions are actually named
8060     something starting with __ and the normal name is an alias.  */
8061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8062 choke me
8063 #else
8064 $ac_func();
8065 #endif
8066
8067 ; return 0; }
8068 EOF
8069 if { (eval echo configure:8070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8070   rm -rf conftest*
8071   eval "ac_cv_func_$ac_func=yes"
8072 else
8073   echo "configure: failed program was:" >&5
8074   cat conftest.$ac_ext >&5
8075   rm -rf conftest*
8076   eval "ac_cv_func_$ac_func=no"
8077 fi
8078 rm -f conftest*
8079 fi
8080
8081 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8082   echo "$ac_t""yes" 1>&6
8083     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8084   cat >> confdefs.h <<EOF
8085 #define $ac_tr_func 1
8086 EOF
8087  
8088 else
8089   echo "$ac_t""no" 1>&6
8090 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8091 fi
8092 done
8093
8094
8095     for ac_func in __signbit
8096 do
8097 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8098 echo "configure:8099: checking for $ac_func" >&5
8099 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8100   echo $ac_n "(cached) $ac_c" 1>&6
8101 else
8102   cat > conftest.$ac_ext <<EOF
8103 #line 8104 "configure"
8104 #include "confdefs.h"
8105 /* System header to define __stub macros and hopefully few prototypes,
8106     which can conflict with char $ac_func(); below.  */
8107 #include <assert.h>
8108 /* Override any gcc2 internal prototype to avoid an error.  */
8109 /* We use char because int might match the return type of a gcc2
8110     builtin and then its argument prototype would still apply.  */
8111 char $ac_func();
8112
8113 int main() {
8114
8115 /* The GNU C library defines this for functions which it implements
8116     to always fail with ENOSYS.  Some functions are actually named
8117     something starting with __ and the normal name is an alias.  */
8118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8119 choke me
8120 #else
8121 $ac_func();
8122 #endif
8123
8124 ; return 0; }
8125 EOF
8126 if { (eval echo configure:8127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8127   rm -rf conftest*
8128   eval "ac_cv_func_$ac_func=yes"
8129 else
8130   echo "configure: failed program was:" >&5
8131   cat conftest.$ac_ext >&5
8132   rm -rf conftest*
8133   eval "ac_cv_func_$ac_func=no"
8134 fi
8135 rm -f conftest*
8136 fi
8137
8138 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8139   echo "$ac_t""yes" 1>&6
8140     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8141   cat >> confdefs.h <<EOF
8142 #define $ac_tr_func 1
8143 EOF
8144  
8145 else
8146   echo "$ac_t""no" 1>&6
8147 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8148 fi
8149 done
8150
8151   for ac_func in __signbitf
8152 do
8153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8154 echo "configure:8155: checking for $ac_func" >&5
8155 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8156   echo $ac_n "(cached) $ac_c" 1>&6
8157 else
8158   cat > conftest.$ac_ext <<EOF
8159 #line 8160 "configure"
8160 #include "confdefs.h"
8161 /* System header to define __stub macros and hopefully few prototypes,
8162     which can conflict with char $ac_func(); below.  */
8163 #include <assert.h>
8164 /* Override any gcc2 internal prototype to avoid an error.  */
8165 /* We use char because int might match the return type of a gcc2
8166     builtin and then its argument prototype would still apply.  */
8167 char $ac_func();
8168
8169 int main() {
8170
8171 /* The GNU C library defines this for functions which it implements
8172     to always fail with ENOSYS.  Some functions are actually named
8173     something starting with __ and the normal name is an alias.  */
8174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8175 choke me
8176 #else
8177 $ac_func();
8178 #endif
8179
8180 ; return 0; }
8181 EOF
8182 if { (eval echo configure:8183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8183   rm -rf conftest*
8184   eval "ac_cv_func_$ac_func=yes"
8185 else
8186   echo "configure: failed program was:" >&5
8187   cat conftest.$ac_ext >&5
8188   rm -rf conftest*
8189   eval "ac_cv_func_$ac_func=no"
8190 fi
8191 rm -f conftest*
8192 fi
8193
8194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8195   echo "$ac_t""yes" 1>&6
8196     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8197   cat >> confdefs.h <<EOF
8198 #define $ac_tr_func 1
8199 EOF
8200  
8201 else
8202   echo "$ac_t""no" 1>&6
8203 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8204 fi
8205 done
8206
8207
8208           if test x$ac_cv_func_copysignl = x"yes"; then
8209     for ac_func in __signbitl
8210 do
8211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8212 echo "configure:8213: checking for $ac_func" >&5
8213 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8214   echo $ac_n "(cached) $ac_c" 1>&6
8215 else
8216   cat > conftest.$ac_ext <<EOF
8217 #line 8218 "configure"
8218 #include "confdefs.h"
8219 /* System header to define __stub macros and hopefully few prototypes,
8220     which can conflict with char $ac_func(); below.  */
8221 #include <assert.h>
8222 /* Override any gcc2 internal prototype to avoid an error.  */
8223 /* We use char because int might match the return type of a gcc2
8224     builtin and then its argument prototype would still apply.  */
8225 char $ac_func();
8226
8227 int main() {
8228
8229 /* The GNU C library defines this for functions which it implements
8230     to always fail with ENOSYS.  Some functions are actually named
8231     something starting with __ and the normal name is an alias.  */
8232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8233 choke me
8234 #else
8235 $ac_func();
8236 #endif
8237
8238 ; return 0; }
8239 EOF
8240 if { (eval echo configure:8241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8241   rm -rf conftest*
8242   eval "ac_cv_func_$ac_func=yes"
8243 else
8244   echo "configure: failed program was:" >&5
8245   cat conftest.$ac_ext >&5
8246   rm -rf conftest*
8247   eval "ac_cv_func_$ac_func=no"
8248 fi
8249 rm -f conftest*
8250 fi
8251
8252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8253   echo "$ac_t""yes" 1>&6
8254     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8255   cat >> confdefs.h <<EOF
8256 #define $ac_tr_func 1
8257 EOF
8258  
8259 else
8260   echo "$ac_t""no" 1>&6
8261 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8262 fi
8263 done
8264
8265   fi
8266
8267   
8268
8269       
8270
8271       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8272 echo "configure:8273: checking for mbstate_t" >&5
8273   cat > conftest.$ac_ext <<EOF
8274 #line 8275 "configure"
8275 #include "confdefs.h"
8276 #include <wchar.h>
8277 int main() {
8278 mbstate_t teststate;
8279 ; return 0; }
8280 EOF
8281 if { (eval echo configure:8282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8282   rm -rf conftest*
8283   have_mbstate_t=yes
8284 else
8285   echo "configure: failed program was:" >&5
8286   cat conftest.$ac_ext >&5
8287   rm -rf conftest*
8288   have_mbstate_t=no
8289 fi
8290 rm -f conftest*
8291   echo "$ac_t""$have_mbstate_t" 1>&6
8292   if test x"$have_mbstate_t" = xyes; then
8293     cat >> confdefs.h <<\EOF
8294 #define HAVE_MBSTATE_T 1
8295 EOF
8296
8297   fi
8298
8299     for ac_hdr in wchar.h
8300 do
8301 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8302 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8303 echo "configure:8304: checking for $ac_hdr" >&5
8304 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8305   echo $ac_n "(cached) $ac_c" 1>&6
8306 else
8307   cat > conftest.$ac_ext <<EOF
8308 #line 8309 "configure"
8309 #include "confdefs.h"
8310 #include <$ac_hdr>
8311 EOF
8312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8313 { (eval echo configure:8314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8315 if test -z "$ac_err"; then
8316   rm -rf conftest*
8317   eval "ac_cv_header_$ac_safe=yes"
8318 else
8319   echo "$ac_err" >&5
8320   echo "configure: failed program was:" >&5
8321   cat conftest.$ac_ext >&5
8322   rm -rf conftest*
8323   eval "ac_cv_header_$ac_safe=no"
8324 fi
8325 rm -f conftest*
8326 fi
8327 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8328   echo "$ac_t""yes" 1>&6
8329     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8330   cat >> confdefs.h <<EOF
8331 #define $ac_tr_hdr 1
8332 EOF
8333  ac_has_wchar_h=yes
8334 else
8335   echo "$ac_t""no" 1>&6
8336 ac_has_wchar_h=no
8337 fi
8338 done
8339
8340   for ac_hdr in wctype.h
8341 do
8342 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8343 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8344 echo "configure:8345: checking for $ac_hdr" >&5
8345 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8346   echo $ac_n "(cached) $ac_c" 1>&6
8347 else
8348   cat > conftest.$ac_ext <<EOF
8349 #line 8350 "configure"
8350 #include "confdefs.h"
8351 #include <$ac_hdr>
8352 EOF
8353 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8354 { (eval echo configure:8355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8355 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8356 if test -z "$ac_err"; then
8357   rm -rf conftest*
8358   eval "ac_cv_header_$ac_safe=yes"
8359 else
8360   echo "$ac_err" >&5
8361   echo "configure: failed program was:" >&5
8362   cat conftest.$ac_ext >&5
8363   rm -rf conftest*
8364   eval "ac_cv_header_$ac_safe=no"
8365 fi
8366 rm -f conftest*
8367 fi
8368 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8369   echo "$ac_t""yes" 1>&6
8370     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8371   cat >> confdefs.h <<EOF
8372 #define $ac_tr_hdr 1
8373 EOF
8374  ac_has_wctype_h=yes
8375 else
8376   echo "$ac_t""no" 1>&6
8377 ac_has_wctype_h=no
8378 fi
8379 done
8380
8381   
8382     if test x"$ac_has_wchar_h" = xyes &&
8383      test x"$ac_has_wctype_h" = xyes &&
8384      test x"$enable_c_mbchar" != xno; then
8385       
8386             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8387 echo "configure:8388: checking for WCHAR_MIN and WCHAR_MAX" >&5
8388     cat > conftest.$ac_ext <<EOF
8389 #line 8390 "configure"
8390 #include "confdefs.h"
8391 #include <wchar.h>
8392 int main() {
8393 int i = WCHAR_MIN; int j = WCHAR_MAX;
8394 ; return 0; }
8395 EOF
8396 if { (eval echo configure:8397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8397   rm -rf conftest*
8398   has_wchar_minmax=yes
8399 else
8400   echo "configure: failed program was:" >&5
8401   cat conftest.$ac_ext >&5
8402   rm -rf conftest*
8403   has_wchar_minmax=no
8404 fi
8405 rm -f conftest*
8406     echo "$ac_t""$has_wchar_minmax" 1>&6
8407     
8408             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8409 echo "configure:8410: checking for WEOF" >&5
8410     cat > conftest.$ac_ext <<EOF
8411 #line 8412 "configure"
8412 #include "confdefs.h"
8413
8414       #include <wchar.h>
8415       #include <stddef.h>
8416 int main() {
8417 wint_t i = WEOF;
8418 ; return 0; }
8419 EOF
8420 if { (eval echo configure:8421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8421   rm -rf conftest*
8422   has_weof=yes
8423 else
8424   echo "configure: failed program was:" >&5
8425   cat conftest.$ac_ext >&5
8426   rm -rf conftest*
8427   has_weof=no
8428 fi
8429 rm -f conftest*
8430     echo "$ac_t""$has_weof" 1>&6
8431   
8432         ac_wfuncs=yes
8433     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8434 do
8435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8436 echo "configure:8437: checking for $ac_func" >&5
8437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8438   echo $ac_n "(cached) $ac_c" 1>&6
8439 else
8440   cat > conftest.$ac_ext <<EOF
8441 #line 8442 "configure"
8442 #include "confdefs.h"
8443 /* System header to define __stub macros and hopefully few prototypes,
8444     which can conflict with char $ac_func(); below.  */
8445 #include <assert.h>
8446 /* Override any gcc2 internal prototype to avoid an error.  */
8447 /* We use char because int might match the return type of a gcc2
8448     builtin and then its argument prototype would still apply.  */
8449 char $ac_func();
8450
8451 int main() {
8452
8453 /* The GNU C library defines this for functions which it implements
8454     to always fail with ENOSYS.  Some functions are actually named
8455     something starting with __ and the normal name is an alias.  */
8456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8457 choke me
8458 #else
8459 $ac_func();
8460 #endif
8461
8462 ; return 0; }
8463 EOF
8464 if { (eval echo configure:8465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8465   rm -rf conftest*
8466   eval "ac_cv_func_$ac_func=yes"
8467 else
8468   echo "configure: failed program was:" >&5
8469   cat conftest.$ac_ext >&5
8470   rm -rf conftest*
8471   eval "ac_cv_func_$ac_func=no"
8472 fi
8473 rm -f conftest*
8474 fi
8475
8476 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8477   echo "$ac_t""yes" 1>&6
8478     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8479   cat >> confdefs.h <<EOF
8480 #define $ac_tr_func 1
8481 EOF
8482  
8483 else
8484   echo "$ac_t""no" 1>&6
8485 \
8486     ac_wfuncs=no
8487 fi
8488 done
8489
8490   
8491         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
8492     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8493     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8494     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8495     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8496     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8497 do
8498 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8499 echo "configure:8500: checking for $ac_func" >&5
8500 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8501   echo $ac_n "(cached) $ac_c" 1>&6
8502 else
8503   cat > conftest.$ac_ext <<EOF
8504 #line 8505 "configure"
8505 #include "confdefs.h"
8506 /* System header to define __stub macros and hopefully few prototypes,
8507     which can conflict with char $ac_func(); below.  */
8508 #include <assert.h>
8509 /* Override any gcc2 internal prototype to avoid an error.  */
8510 /* We use char because int might match the return type of a gcc2
8511     builtin and then its argument prototype would still apply.  */
8512 char $ac_func();
8513
8514 int main() {
8515
8516 /* The GNU C library defines this for functions which it implements
8517     to always fail with ENOSYS.  Some functions are actually named
8518     something starting with __ and the normal name is an alias.  */
8519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8520 choke me
8521 #else
8522 $ac_func();
8523 #endif
8524
8525 ; return 0; }
8526 EOF
8527 if { (eval echo configure:8528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8528   rm -rf conftest*
8529   eval "ac_cv_func_$ac_func=yes"
8530 else
8531   echo "configure: failed program was:" >&5
8532   cat conftest.$ac_ext >&5
8533   rm -rf conftest*
8534   eval "ac_cv_func_$ac_func=no"
8535 fi
8536 rm -f conftest*
8537 fi
8538
8539 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8540   echo "$ac_t""yes" 1>&6
8541     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8542   cat >> confdefs.h <<EOF
8543 #define $ac_tr_func 1
8544 EOF
8545  
8546 else
8547   echo "$ac_t""no" 1>&6
8548 \
8549     ac_wfuncs=no
8550 fi
8551 done
8552
8553
8554     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8555 echo "configure:8556: checking for ISO C99 wchar_t support" >&5
8556     if test x"$has_weof" = xyes &&
8557        test x"$has_wchar_minmax" = xyes &&
8558        test x"$ac_wfuncs" = xyes; then
8559       ac_isoC99_wchar_t=yes
8560     else
8561       ac_isoC99_wchar_t=no
8562     fi
8563     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8564   
8565             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8566 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8567 echo "configure:8568: checking for iconv.h" >&5
8568 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8569   echo $ac_n "(cached) $ac_c" 1>&6
8570 else
8571   cat > conftest.$ac_ext <<EOF
8572 #line 8573 "configure"
8573 #include "confdefs.h"
8574 #include <iconv.h>
8575 EOF
8576 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8577 { (eval echo configure:8578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8578 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8579 if test -z "$ac_err"; then
8580   rm -rf conftest*
8581   eval "ac_cv_header_$ac_safe=yes"
8582 else
8583   echo "$ac_err" >&5
8584   echo "configure: failed program was:" >&5
8585   cat conftest.$ac_ext >&5
8586   rm -rf conftest*
8587   eval "ac_cv_header_$ac_safe=no"
8588 fi
8589 rm -f conftest*
8590 fi
8591 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8592   echo "$ac_t""yes" 1>&6
8593   ac_has_iconv_h=yes
8594 else
8595   echo "$ac_t""no" 1>&6
8596 ac_has_iconv_h=no
8597 fi
8598
8599     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8600 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8601 echo "configure:8602: checking for langinfo.h" >&5
8602 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8603   echo $ac_n "(cached) $ac_c" 1>&6
8604 else
8605   cat > conftest.$ac_ext <<EOF
8606 #line 8607 "configure"
8607 #include "confdefs.h"
8608 #include <langinfo.h>
8609 EOF
8610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8611 { (eval echo configure:8612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8613 if test -z "$ac_err"; then
8614   rm -rf conftest*
8615   eval "ac_cv_header_$ac_safe=yes"
8616 else
8617   echo "$ac_err" >&5
8618   echo "configure: failed program was:" >&5
8619   cat conftest.$ac_ext >&5
8620   rm -rf conftest*
8621   eval "ac_cv_header_$ac_safe=no"
8622 fi
8623 rm -f conftest*
8624 fi
8625 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8626   echo "$ac_t""yes" 1>&6
8627   ac_has_langinfo_h=yes
8628 else
8629   echo "$ac_t""no" 1>&6
8630 ac_has_langinfo_h=no
8631 fi
8632
8633
8634         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8635 echo "configure:8636: checking for iconv in -liconv" >&5
8636 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8637 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8638   echo $ac_n "(cached) $ac_c" 1>&6
8639 else
8640   ac_save_LIBS="$LIBS"
8641 LIBS="-liconv  $LIBS"
8642 cat > conftest.$ac_ext <<EOF
8643 #line 8644 "configure"
8644 #include "confdefs.h"
8645 /* Override any gcc2 internal prototype to avoid an error.  */
8646 /* We use char because int might match the return type of a gcc2
8647     builtin and then its argument prototype would still apply.  */
8648 char iconv();
8649
8650 int main() {
8651 iconv()
8652 ; return 0; }
8653 EOF
8654 if { (eval echo configure:8655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8655   rm -rf conftest*
8656   eval "ac_cv_lib_$ac_lib_var=yes"
8657 else
8658   echo "configure: failed program was:" >&5
8659   cat conftest.$ac_ext >&5
8660   rm -rf conftest*
8661   eval "ac_cv_lib_$ac_lib_var=no"
8662 fi
8663 rm -f conftest*
8664 LIBS="$ac_save_LIBS"
8665
8666 fi
8667 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8668   echo "$ac_t""yes" 1>&6
8669   libiconv="-liconv"
8670 else
8671   echo "$ac_t""no" 1>&6
8672 fi
8673
8674     ac_save_LIBS="$LIBS"
8675     LIBS="$LIBS $libiconv"
8676
8677     for ac_func in iconv_open iconv_close iconv nl_langinfo
8678 do
8679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8680 echo "configure:8681: checking for $ac_func" >&5
8681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8682   echo $ac_n "(cached) $ac_c" 1>&6
8683 else
8684   cat > conftest.$ac_ext <<EOF
8685 #line 8686 "configure"
8686 #include "confdefs.h"
8687 /* System header to define __stub macros and hopefully few prototypes,
8688     which can conflict with char $ac_func(); below.  */
8689 #include <assert.h>
8690 /* Override any gcc2 internal prototype to avoid an error.  */
8691 /* We use char because int might match the return type of a gcc2
8692     builtin and then its argument prototype would still apply.  */
8693 char $ac_func();
8694
8695 int main() {
8696
8697 /* The GNU C library defines this for functions which it implements
8698     to always fail with ENOSYS.  Some functions are actually named
8699     something starting with __ and the normal name is an alias.  */
8700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8701 choke me
8702 #else
8703 $ac_func();
8704 #endif
8705
8706 ; return 0; }
8707 EOF
8708 if { (eval echo configure:8709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8709   rm -rf conftest*
8710   eval "ac_cv_func_$ac_func=yes"
8711 else
8712   echo "configure: failed program was:" >&5
8713   cat conftest.$ac_ext >&5
8714   rm -rf conftest*
8715   eval "ac_cv_func_$ac_func=no"
8716 fi
8717 rm -f conftest*
8718 fi
8719
8720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8721   echo "$ac_t""yes" 1>&6
8722     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8723   cat >> confdefs.h <<EOF
8724 #define $ac_tr_func 1
8725 EOF
8726  \
8727     ac_XPG2funcs=yes
8728 else
8729   echo "$ac_t""no" 1>&6
8730 ac_XPG2funcs=no
8731 fi
8732 done
8733
8734   
8735     LIBS="$ac_save_LIBS"
8736
8737     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8738 echo "configure:8739: checking for XPG2 wchar_t support" >&5
8739     if test x"$ac_has_iconv_h" = xyes &&
8740        test x"$ac_has_langinfo_h" = xyes &&
8741        test x"$ac_XPG2funcs" = xyes; then
8742       ac_XPG2_wchar_t=yes
8743     else
8744       ac_XPG2_wchar_t=no
8745     fi
8746     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8747   
8748             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8749 echo "configure:8750: checking for enabled wchar_t specializations" >&5
8750     if test x"$ac_isoC99_wchar_t" = xyes &&
8751        test x"$ac_XPG2_wchar_t" = xyes; then
8752       cat >> confdefs.h <<\EOF
8753 #define _GLIBCPP_USE_WCHAR_T 1
8754 EOF
8755
8756       echo "$ac_t"""yes"" 1>&6
8757     else
8758       echo "$ac_t"""no"" 1>&6
8759     fi
8760   else
8761         echo "configure: warning: wchar_t support disabled." 1>&2
8762   fi
8763
8764       os_include_dir="os/qnx/qnx6.1"
8765       cat >> confdefs.h <<\EOF
8766 #define HAVE_COSF 1
8767 EOF
8768
8769       cat >> confdefs.h <<\EOF
8770 #define HAVE_COSL 1
8771 EOF
8772
8773       cat >> confdefs.h <<\EOF
8774 #define HAVE_COSHF 1
8775 EOF
8776
8777       cat >> confdefs.h <<\EOF
8778 #define HAVE_COSHL 1
8779 EOF
8780
8781       cat >> confdefs.h <<\EOF
8782 #define HAVE_LOGF 1
8783 EOF
8784
8785       cat >> confdefs.h <<\EOF
8786 #define HAVE_LOGL 1
8787 EOF
8788
8789       cat >> confdefs.h <<\EOF
8790 #define HAVE_LOG10F 1
8791 EOF
8792
8793       cat >> confdefs.h <<\EOF
8794 #define HAVE_LOG10L 1
8795 EOF
8796
8797       cat >> confdefs.h <<\EOF
8798 #define HAVE_SINF 1
8799 EOF
8800
8801       cat >> confdefs.h <<\EOF
8802 #define HAVE_SINL 1
8803 EOF
8804
8805       cat >> confdefs.h <<\EOF
8806 #define HAVE_SINHF 1
8807 EOF
8808
8809       cat >> confdefs.h <<\EOF
8810 #define HAVE_SINHL 1
8811 EOF
8812
8813       ;;
8814     *)
8815       os_include_dir="os/newlib"
8816       cat >> confdefs.h <<\EOF
8817 #define HAVE_HYPOT 1
8818 EOF
8819
8820       ;;
8821   esac
8822
8823   case "$target_alias" in
8824     *-mingw32*)
8825       ;;
8826     *-windiss*)
8827       cat >> confdefs.h <<\EOF
8828 #define HAVE_ACOSF 1
8829 EOF
8830
8831       cat >> confdefs.h <<\EOF
8832 #define HAVE_ASINF 1
8833 EOF
8834
8835       cat >> confdefs.h <<\EOF
8836 #define HAVE_ATAN2F 1
8837 EOF
8838
8839       cat >> confdefs.h <<\EOF
8840 #define HAVE_ATANF 1
8841 EOF
8842
8843       cat >> confdefs.h <<\EOF
8844 #define HAVE_CEILF 1
8845 EOF
8846
8847       cat >> confdefs.h <<\EOF
8848 #define HAVE_COPYSIGN 1
8849 EOF
8850
8851       cat >> confdefs.h <<\EOF
8852 #define HAVE_COPYSIGNF 1
8853 EOF
8854
8855       cat >> confdefs.h <<\EOF
8856 #define HAVE_COSF 1
8857 EOF
8858
8859       cat >> confdefs.h <<\EOF
8860 #define HAVE_COSHF 1
8861 EOF
8862
8863       cat >> confdefs.h <<\EOF
8864 #define HAVE_EXPF 1
8865 EOF
8866
8867       cat >> confdefs.h <<\EOF
8868 #define HAVE_FABSF 1
8869 EOF
8870
8871       cat >> confdefs.h <<\EOF
8872 #define HAVE_FLOORF 1
8873 EOF
8874
8875       cat >> confdefs.h <<\EOF
8876 #define HAVE_FMODF 1
8877 EOF
8878
8879       cat >> confdefs.h <<\EOF
8880 #define HAVE_FREXPF 1
8881 EOF
8882
8883       cat >> confdefs.h <<\EOF
8884 #define HAVE_LDEXPF 1
8885 EOF
8886
8887       cat >> confdefs.h <<\EOF
8888 #define HAVE_LOG10F 1
8889 EOF
8890
8891       cat >> confdefs.h <<\EOF
8892 #define HAVE_LOGF 1
8893 EOF
8894
8895       cat >> confdefs.h <<\EOF
8896 #define HAVE_MODFF 1
8897 EOF
8898
8899       cat >> confdefs.h <<\EOF
8900 #define HAVE_POWF 1
8901 EOF
8902
8903       cat >> confdefs.h <<\EOF
8904 #define HAVE_SINF 1
8905 EOF
8906
8907       cat >> confdefs.h <<\EOF
8908 #define HAVE_SINHF 1
8909 EOF
8910
8911       cat >> confdefs.h <<\EOF
8912 #define HAVE_SQRTF 1
8913 EOF
8914
8915       cat >> confdefs.h <<\EOF
8916 #define HAVE_TANF 1
8917 EOF
8918
8919       cat >> confdefs.h <<\EOF
8920 #define HAVE_TANHF 1
8921 EOF
8922
8923       ;;
8924     *)
8925       # GLIBCPP_CHECK_STDLIB_SUPPORT
8926       cat >> confdefs.h <<\EOF
8927 #define HAVE_STRTOF 1
8928 EOF
8929         
8930       cat >> confdefs.h <<\EOF
8931 #define HAVE_STRTOLD 1
8932 EOF
8933         
8934       # AC_FUNC_MMAP
8935       cat >> confdefs.h <<\EOF
8936 #define HAVE_MMAP 1
8937 EOF
8938
8939
8940       cat >> confdefs.h <<\EOF
8941 #define HAVE_ACOSF 1
8942 EOF
8943
8944       cat >> confdefs.h <<\EOF
8945 #define HAVE_ASINF 1
8946 EOF
8947
8948       cat >> confdefs.h <<\EOF
8949 #define HAVE_ATAN2F 1
8950 EOF
8951
8952       cat >> confdefs.h <<\EOF
8953 #define HAVE_ATANF 1
8954 EOF
8955
8956       cat >> confdefs.h <<\EOF
8957 #define HAVE_CEILF 1
8958 EOF
8959
8960       cat >> confdefs.h <<\EOF
8961 #define HAVE_COPYSIGN 1
8962 EOF
8963
8964       cat >> confdefs.h <<\EOF
8965 #define HAVE_COPYSIGNF 1
8966 EOF
8967
8968       cat >> confdefs.h <<\EOF
8969 #define HAVE_COSF 1
8970 EOF
8971
8972       cat >> confdefs.h <<\EOF
8973 #define HAVE_COSHF 1
8974 EOF
8975
8976       cat >> confdefs.h <<\EOF
8977 #define HAVE_EXPF 1
8978 EOF
8979
8980       cat >> confdefs.h <<\EOF
8981 #define HAVE_FABSF 1
8982 EOF
8983
8984       cat >> confdefs.h <<\EOF
8985 #define HAVE_FINITE 1
8986 EOF
8987
8988       cat >> confdefs.h <<\EOF
8989 #define HAVE_FINITEF 1
8990 EOF
8991
8992       cat >> confdefs.h <<\EOF
8993 #define HAVE_FLOORF 1
8994 EOF
8995
8996       cat >> confdefs.h <<\EOF
8997 #define HAVE_FMODF 1
8998 EOF
8999
9000       cat >> confdefs.h <<\EOF
9001 #define HAVE_FREXPF 1
9002 EOF
9003
9004       cat >> confdefs.h <<\EOF
9005 #define HAVE_ISINF 1
9006 EOF
9007
9008       cat >> confdefs.h <<\EOF
9009 #define HAVE_ISINFF 1
9010 EOF
9011
9012       cat >> confdefs.h <<\EOF
9013 #define HAVE_ISNAN 1
9014 EOF
9015
9016       cat >> confdefs.h <<\EOF
9017 #define HAVE_ISNANF 1
9018 EOF
9019
9020       cat >> confdefs.h <<\EOF
9021 #define HAVE_LDEXPF 1
9022 EOF
9023
9024       cat >> confdefs.h <<\EOF
9025 #define HAVE_LOG10F 1
9026 EOF
9027
9028       cat >> confdefs.h <<\EOF
9029 #define HAVE_LOGF 1
9030 EOF
9031
9032       cat >> confdefs.h <<\EOF
9033 #define HAVE_MODFF 1
9034 EOF
9035
9036       cat >> confdefs.h <<\EOF
9037 #define HAVE_POWF 1
9038 EOF
9039
9040       cat >> confdefs.h <<\EOF
9041 #define HAVE_SINF 1
9042 EOF
9043
9044       cat >> confdefs.h <<\EOF
9045 #define HAVE_SINHF 1
9046 EOF
9047
9048       cat >> confdefs.h <<\EOF
9049 #define HAVE_SQRTF 1
9050 EOF
9051
9052       cat >> confdefs.h <<\EOF
9053 #define HAVE_TANF 1
9054 EOF
9055
9056       cat >> confdefs.h <<\EOF
9057 #define HAVE_TANHF 1
9058 EOF
9059
9060       ;;
9061   esac
9062
9063   # At some point, we should differentiate between architectures
9064   # like x86, which have long double versions, and alpha/powerpc/etc.,
9065   # which don't. For the time being, punt.
9066   if test x"long_double_math_on_this_cpu" = x"yes"; then
9067     cat >> confdefs.h <<\EOF
9068 #define HAVE_ACOSL 1
9069 EOF
9070
9071     cat >> confdefs.h <<\EOF
9072 #define HAVE_ASINL 1
9073 EOF
9074
9075     cat >> confdefs.h <<\EOF
9076 #define HAVE_ATAN2L 1
9077 EOF
9078
9079     cat >> confdefs.h <<\EOF
9080 #define HAVE_ATANL 1
9081 EOF
9082
9083     cat >> confdefs.h <<\EOF
9084 #define HAVE_CEILL 1
9085 EOF
9086
9087     cat >> confdefs.h <<\EOF
9088 #define HAVE_COPYSIGNL 1
9089 EOF
9090
9091     cat >> confdefs.h <<\EOF
9092 #define HAVE_COSL 1
9093 EOF
9094
9095     cat >> confdefs.h <<\EOF
9096 #define HAVE_COSHL 1
9097 EOF
9098
9099     cat >> confdefs.h <<\EOF
9100 #define HAVE_EXPL 1
9101 EOF
9102
9103     cat >> confdefs.h <<\EOF
9104 #define HAVE_FABSL 1
9105 EOF
9106
9107     cat >> confdefs.h <<\EOF
9108 #define HAVE_FINITEL 1
9109 EOF
9110
9111     cat >> confdefs.h <<\EOF
9112 #define HAVE_FLOORL 1
9113 EOF
9114
9115     cat >> confdefs.h <<\EOF
9116 #define HAVE_FMODL 1
9117 EOF
9118
9119     cat >> confdefs.h <<\EOF
9120 #define HAVE_FREXPL 1
9121 EOF
9122
9123     cat >> confdefs.h <<\EOF
9124 #define HAVE_ISINFL 1
9125 EOF
9126
9127     cat >> confdefs.h <<\EOF
9128 #define HAVE_ISNANL 1
9129 EOF
9130
9131     cat >> confdefs.h <<\EOF
9132 #define HAVE_LDEXPL 1
9133 EOF
9134
9135     cat >> confdefs.h <<\EOF
9136 #define HAVE_LOG10L 1
9137 EOF
9138
9139     cat >> confdefs.h <<\EOF
9140 #define HAVE_LOGL 1
9141 EOF
9142
9143     cat >> confdefs.h <<\EOF
9144 #define HAVE_MODFL 1
9145 EOF
9146
9147     cat >> confdefs.h <<\EOF
9148 #define HAVE_POWL 1
9149 EOF
9150
9151     cat >> confdefs.h <<\EOF
9152 #define HAVE_SINCOSL 1
9153 EOF
9154
9155     cat >> confdefs.h <<\EOF
9156 #define HAVE_SINL 1
9157 EOF
9158
9159     cat >> confdefs.h <<\EOF
9160 #define HAVE_SINHL 1
9161 EOF
9162
9163     cat >> confdefs.h <<\EOF
9164 #define HAVE_SQRTL 1
9165 EOF
9166
9167     cat >> confdefs.h <<\EOF
9168 #define HAVE_TANL 1
9169 EOF
9170
9171     cat >> confdefs.h <<\EOF
9172 #define HAVE_TANHL 1
9173 EOF
9174
9175   fi
9176
9177 else
9178
9179   # We are being configured natively. We can do more elaborate tests
9180   # that include AC_TRY_COMPILE now, as the linker is assumed to be
9181   # working.
9182   GLIBCPP_IS_CROSS_COMPILING=0
9183   CANADIAN=no
9184
9185   # Check for available headers.
9186   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
9187   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h
9188 do
9189 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9190 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9191 echo "configure:9192: checking for $ac_hdr" >&5
9192 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9193   echo $ac_n "(cached) $ac_c" 1>&6
9194 else
9195   cat > conftest.$ac_ext <<EOF
9196 #line 9197 "configure"
9197 #include "confdefs.h"
9198 #include <$ac_hdr>
9199 EOF
9200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9201 { (eval echo configure:9202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9202 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9203 if test -z "$ac_err"; then
9204   rm -rf conftest*
9205   eval "ac_cv_header_$ac_safe=yes"
9206 else
9207   echo "$ac_err" >&5
9208   echo "configure: failed program was:" >&5
9209   cat conftest.$ac_ext >&5
9210   rm -rf conftest*
9211   eval "ac_cv_header_$ac_safe=no"
9212 fi
9213 rm -f conftest*
9214 fi
9215 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9216   echo "$ac_t""yes" 1>&6
9217     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9218   cat >> confdefs.h <<EOF
9219 #define $ac_tr_hdr 1
9220 EOF
9221  
9222 else
9223   echo "$ac_t""no" 1>&6
9224 fi
9225 done
9226
9227
9228   
9229   # All these tests are for C++; save the language and the compiler flags.
9230   # The CXXFLAGS thing is suspicious, but based on similar bits previously
9231   # found in GLIBCPP_CONFIGURE.
9232   
9233   ac_ext=C
9234 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9235 ac_cpp='$CXXCPP $CPPFLAGS'
9236 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9237 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9238 cross_compiling=$ac_cv_prog_cxx_cross
9239
9240   ac_test_CXXFLAGS="${CXXFLAGS+set}"
9241   ac_save_CXXFLAGS="$CXXFLAGS"
9242
9243   # Check for maintainer-mode bits.
9244   if test x"$USE_MAINTAINER_MODE" = xno; then
9245     WERROR=''
9246   else
9247     WERROR='-Werror'
9248   fi
9249
9250   # Check for -ffunction-sections -fdata-sections
9251   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
9252 echo "configure:9253: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
9253   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
9254   cat > conftest.$ac_ext <<EOF
9255 #line 9256 "configure"
9256 #include "confdefs.h"
9257
9258 int main() {
9259 int foo;
9260   
9261 ; return 0; }
9262 EOF
9263 if { (eval echo configure:9264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9264   rm -rf conftest*
9265   ac_fdsections=yes
9266 else
9267   echo "configure: failed program was:" >&5
9268   cat conftest.$ac_ext >&5
9269   rm -rf conftest*
9270   ac_fdsections=no
9271 fi
9272 rm -f conftest*
9273   if test "$ac_test_CXXFLAGS" = set; then
9274     CXXFLAGS="$ac_save_CXXFLAGS"
9275   else
9276     # this is the suspicious part
9277     CXXFLAGS=''
9278   fi
9279   if test x"$ac_fdsections" = x"yes" &&
9280      test x"$enable_debug" = x"no"; then
9281     SECTION_FLAGS='-ffunction-sections -fdata-sections'
9282   fi
9283   echo "$ac_t""$ac_fdsections" 1>&6
9284
9285   ac_ext=c
9286 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9287 ac_cpp='$CPP $CPPFLAGS'
9288 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9289 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9290 cross_compiling=$ac_cv_prog_cc_cross
9291
9292   
9293   
9294
9295   
9296   # If we're not using GNU ld, then there's no point in even trying these
9297   # tests.  Check for that first.  We should have already tested for gld
9298   # by now (in libtool), but require it now just to be safe...
9299   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9300   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9301   
9302
9303   # The name set by libtool depends on the version of libtool.  Shame on us
9304   # for depending on an impl detail, but c'est la vie.  Older versions used
9305   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9306   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9307   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
9308   # set (hence we're using an older libtool), then set it.
9309   if test x${with_gnu_ld+set} != xset; then
9310     if test x${ac_cv_prog_gnu_ld+set} != xset; then
9311       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
9312       with_gnu_ld=no
9313     else
9314       with_gnu_ld=$ac_cv_prog_gnu_ld
9315     fi
9316   fi
9317
9318   # Start by getting the version number.  I think the libtool test already
9319   # does some of this, but throws away the result.
9320   
9321   ldver=`$LD --version 2>/dev/null | head -1 | \
9322          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9323   
9324   glibcpp_gnu_ld_version=`echo $ldver | \
9325          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9326
9327   # Set --gc-sections.
9328   if test "$with_gnu_ld" = "notbroken"; then
9329     # GNU ld it is!  Joy and bunny rabbits!
9330
9331     # All these tests are for C++; save the language and the compiler flags.
9332     # Need to do this so that g++ won't try to link in libstdc++
9333     ac_test_CFLAGS="${CFLAGS+set}"
9334     ac_save_CFLAGS="$CFLAGS"
9335     CFLAGS='-x c++  -Wl,--gc-sections'
9336
9337     # Check for -Wl,--gc-sections
9338     # XXX This test is broken at the moment, as symbols required for
9339     # linking are now in libsupc++ (not built yet.....). In addition, 
9340     # this test has cored on solaris in the past. In addition,
9341     # --gc-sections doesn't really work at the moment (keeps on discarding
9342     # used sections, first .eh_frame and now some of the glibc sections for
9343     # iconv). Bzzzzt. Thanks for playing, maybe next time.
9344     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9345 echo "configure:9346: checking for ld that supports -Wl,--gc-sections" >&5
9346     if test "$cross_compiling" = yes; then
9347   ac_sectionLDflags=yes
9348 else
9349   cat > conftest.$ac_ext <<EOF
9350 #line 9351 "configure"
9351 #include "confdefs.h"
9352
9353      int main(void) 
9354      {
9355        try { throw 1; }
9356        catch (...) { };
9357        return 0;
9358      }
9359     
9360 EOF
9361 if { (eval echo configure:9362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9362 then
9363   ac_sectionLDflags=yes
9364 else
9365   echo "configure: failed program was:" >&5
9366   cat conftest.$ac_ext >&5
9367   rm -fr conftest*
9368   ac_sectionLDflags=no
9369 fi
9370 rm -fr conftest*
9371 fi
9372
9373     if test "$ac_test_CFLAGS" = set; then
9374       CFLAGS="$ac_save_CFLAGS"
9375     else
9376       # this is the suspicious part
9377       CFLAGS=''
9378     fi
9379     if test "$ac_sectionLDflags" = "yes"; then
9380       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9381     fi
9382     echo "$ac_t""$ac_sectionLDflags" 1>&6
9383   fi
9384
9385   # Set linker optimization flags.
9386   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
9387     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9388   fi
9389
9390   
9391   
9392
9393   
9394       
9395   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
9396 echo "configure:9397: checking for __builtin_abs declaration" >&5
9397   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
9398     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
9399   echo $ac_n "(cached) $ac_c" 1>&6
9400 else
9401   
9402       
9403       ac_ext=C
9404 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9405 ac_cpp='$CXXCPP $CPPFLAGS'
9406 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9407 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9408 cross_compiling=$ac_cv_prog_cxx_cross
9409
9410       cat > conftest.$ac_ext <<EOF
9411 #line 9412 "configure"
9412 #include "confdefs.h"
9413 #include <math.h>
9414 int main() {
9415  __builtin_abs(0);
9416 ; return 0; }
9417 EOF
9418 if { (eval echo configure:9419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9419   rm -rf conftest*
9420   glibcpp_cv_func___builtin_abs_use=yes
9421 else
9422   echo "configure: failed program was:" >&5
9423   cat conftest.$ac_ext >&5
9424   rm -rf conftest*
9425   glibcpp_cv_func___builtin_abs_use=no
9426 fi
9427 rm -f conftest*
9428       ac_ext=c
9429 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9430 ac_cpp='$CPP $CPPFLAGS'
9431 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9432 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9433 cross_compiling=$ac_cv_prog_cc_cross
9434
9435     
9436 fi
9437
9438   fi
9439   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
9440   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
9441     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
9442 echo "configure:9443: checking for __builtin_abs linkage" >&5
9443     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
9444       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
9445   echo $ac_n "(cached) $ac_c" 1>&6
9446 else
9447   
9448         cat > conftest.$ac_ext <<EOF
9449 #line 9450 "configure"
9450 #include "confdefs.h"
9451 #include <math.h>
9452 int main() {
9453  __builtin_abs(0);
9454 ; return 0; }
9455 EOF
9456 if { (eval echo configure:9457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9457   rm -rf conftest*
9458   glibcpp_cv_func___builtin_abs_link=yes
9459 else
9460   echo "configure: failed program was:" >&5
9461   cat conftest.$ac_ext >&5
9462   rm -rf conftest*
9463   glibcpp_cv_func___builtin_abs_link=no
9464 fi
9465 rm -f conftest*
9466       
9467 fi
9468
9469     fi
9470     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
9471     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
9472       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9473       cat >> confdefs.h <<EOF
9474 #define ${ac_tr_func} 1
9475 EOF
9476
9477     fi
9478   fi
9479
9480   
9481   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
9482 echo "configure:9483: checking for __builtin_fabsf declaration" >&5
9483   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
9484     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
9485   echo $ac_n "(cached) $ac_c" 1>&6
9486 else
9487   
9488       
9489       ac_ext=C
9490 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9491 ac_cpp='$CXXCPP $CPPFLAGS'
9492 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9493 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9494 cross_compiling=$ac_cv_prog_cxx_cross
9495
9496       cat > conftest.$ac_ext <<EOF
9497 #line 9498 "configure"
9498 #include "confdefs.h"
9499 #include <math.h>
9500 int main() {
9501  __builtin_fabsf(0);
9502 ; return 0; }
9503 EOF
9504 if { (eval echo configure:9505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9505   rm -rf conftest*
9506   glibcpp_cv_func___builtin_fabsf_use=yes
9507 else
9508   echo "configure: failed program was:" >&5
9509   cat conftest.$ac_ext >&5
9510   rm -rf conftest*
9511   glibcpp_cv_func___builtin_fabsf_use=no
9512 fi
9513 rm -f conftest*
9514       ac_ext=c
9515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9516 ac_cpp='$CPP $CPPFLAGS'
9517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9518 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9519 cross_compiling=$ac_cv_prog_cc_cross
9520
9521     
9522 fi
9523
9524   fi
9525   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
9526   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
9527     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
9528 echo "configure:9529: checking for __builtin_fabsf linkage" >&5
9529     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
9530       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
9531   echo $ac_n "(cached) $ac_c" 1>&6
9532 else
9533   
9534         cat > conftest.$ac_ext <<EOF
9535 #line 9536 "configure"
9536 #include "confdefs.h"
9537 #include <math.h>
9538 int main() {
9539  __builtin_fabsf(0);
9540 ; return 0; }
9541 EOF
9542 if { (eval echo configure:9543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9543   rm -rf conftest*
9544   glibcpp_cv_func___builtin_fabsf_link=yes
9545 else
9546   echo "configure: failed program was:" >&5
9547   cat conftest.$ac_ext >&5
9548   rm -rf conftest*
9549   glibcpp_cv_func___builtin_fabsf_link=no
9550 fi
9551 rm -f conftest*
9552       
9553 fi
9554
9555     fi
9556     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
9557     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
9558       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9559       cat >> confdefs.h <<EOF
9560 #define ${ac_tr_func} 1
9561 EOF
9562
9563     fi
9564   fi
9565
9566   
9567   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
9568 echo "configure:9569: checking for __builtin_fabs declaration" >&5
9569   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
9570     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
9571   echo $ac_n "(cached) $ac_c" 1>&6
9572 else
9573   
9574       
9575       ac_ext=C
9576 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9577 ac_cpp='$CXXCPP $CPPFLAGS'
9578 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9579 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9580 cross_compiling=$ac_cv_prog_cxx_cross
9581
9582       cat > conftest.$ac_ext <<EOF
9583 #line 9584 "configure"
9584 #include "confdefs.h"
9585 #include <math.h>
9586 int main() {
9587  __builtin_fabs(0);
9588 ; return 0; }
9589 EOF
9590 if { (eval echo configure:9591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9591   rm -rf conftest*
9592   glibcpp_cv_func___builtin_fabs_use=yes
9593 else
9594   echo "configure: failed program was:" >&5
9595   cat conftest.$ac_ext >&5
9596   rm -rf conftest*
9597   glibcpp_cv_func___builtin_fabs_use=no
9598 fi
9599 rm -f conftest*
9600       ac_ext=c
9601 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9602 ac_cpp='$CPP $CPPFLAGS'
9603 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9604 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9605 cross_compiling=$ac_cv_prog_cc_cross
9606
9607     
9608 fi
9609
9610   fi
9611   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
9612   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
9613     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
9614 echo "configure:9615: checking for __builtin_fabs linkage" >&5
9615     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
9616       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
9617   echo $ac_n "(cached) $ac_c" 1>&6
9618 else
9619   
9620         cat > conftest.$ac_ext <<EOF
9621 #line 9622 "configure"
9622 #include "confdefs.h"
9623 #include <math.h>
9624 int main() {
9625  __builtin_fabs(0);
9626 ; return 0; }
9627 EOF
9628 if { (eval echo configure:9629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9629   rm -rf conftest*
9630   glibcpp_cv_func___builtin_fabs_link=yes
9631 else
9632   echo "configure: failed program was:" >&5
9633   cat conftest.$ac_ext >&5
9634   rm -rf conftest*
9635   glibcpp_cv_func___builtin_fabs_link=no
9636 fi
9637 rm -f conftest*
9638       
9639 fi
9640
9641     fi
9642     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
9643     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
9644       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9645       cat >> confdefs.h <<EOF
9646 #define ${ac_tr_func} 1
9647 EOF
9648
9649     fi
9650   fi
9651
9652   
9653   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
9654 echo "configure:9655: checking for __builtin_fabsl declaration" >&5
9655   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
9656     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
9657   echo $ac_n "(cached) $ac_c" 1>&6
9658 else
9659   
9660       
9661       ac_ext=C
9662 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9663 ac_cpp='$CXXCPP $CPPFLAGS'
9664 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9665 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9666 cross_compiling=$ac_cv_prog_cxx_cross
9667
9668       cat > conftest.$ac_ext <<EOF
9669 #line 9670 "configure"
9670 #include "confdefs.h"
9671 #include <math.h>
9672 int main() {
9673  __builtin_fabsl(0);
9674 ; return 0; }
9675 EOF
9676 if { (eval echo configure:9677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9677   rm -rf conftest*
9678   glibcpp_cv_func___builtin_fabsl_use=yes
9679 else
9680   echo "configure: failed program was:" >&5
9681   cat conftest.$ac_ext >&5
9682   rm -rf conftest*
9683   glibcpp_cv_func___builtin_fabsl_use=no
9684 fi
9685 rm -f conftest*
9686       ac_ext=c
9687 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9688 ac_cpp='$CPP $CPPFLAGS'
9689 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9690 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9691 cross_compiling=$ac_cv_prog_cc_cross
9692
9693     
9694 fi
9695
9696   fi
9697   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
9698   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
9699     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
9700 echo "configure:9701: checking for __builtin_fabsl linkage" >&5
9701     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
9702       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
9703   echo $ac_n "(cached) $ac_c" 1>&6
9704 else
9705   
9706         cat > conftest.$ac_ext <<EOF
9707 #line 9708 "configure"
9708 #include "confdefs.h"
9709 #include <math.h>
9710 int main() {
9711  __builtin_fabsl(0);
9712 ; return 0; }
9713 EOF
9714 if { (eval echo configure:9715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9715   rm -rf conftest*
9716   glibcpp_cv_func___builtin_fabsl_link=yes
9717 else
9718   echo "configure: failed program was:" >&5
9719   cat conftest.$ac_ext >&5
9720   rm -rf conftest*
9721   glibcpp_cv_func___builtin_fabsl_link=no
9722 fi
9723 rm -f conftest*
9724       
9725 fi
9726
9727     fi
9728     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
9729     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
9730       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9731       cat >> confdefs.h <<EOF
9732 #define ${ac_tr_func} 1
9733 EOF
9734
9735     fi
9736   fi
9737
9738   
9739   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
9740 echo "configure:9741: checking for __builtin_labs declaration" >&5
9741   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
9742     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
9743   echo $ac_n "(cached) $ac_c" 1>&6
9744 else
9745   
9746       
9747       ac_ext=C
9748 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9749 ac_cpp='$CXXCPP $CPPFLAGS'
9750 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9751 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9752 cross_compiling=$ac_cv_prog_cxx_cross
9753
9754       cat > conftest.$ac_ext <<EOF
9755 #line 9756 "configure"
9756 #include "confdefs.h"
9757 #include <math.h>
9758 int main() {
9759  __builtin_labs(0);
9760 ; return 0; }
9761 EOF
9762 if { (eval echo configure:9763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9763   rm -rf conftest*
9764   glibcpp_cv_func___builtin_labs_use=yes
9765 else
9766   echo "configure: failed program was:" >&5
9767   cat conftest.$ac_ext >&5
9768   rm -rf conftest*
9769   glibcpp_cv_func___builtin_labs_use=no
9770 fi
9771 rm -f conftest*
9772       ac_ext=c
9773 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9774 ac_cpp='$CPP $CPPFLAGS'
9775 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9776 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9777 cross_compiling=$ac_cv_prog_cc_cross
9778
9779     
9780 fi
9781
9782   fi
9783   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
9784   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
9785     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
9786 echo "configure:9787: checking for __builtin_labs linkage" >&5
9787     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
9788       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
9789   echo $ac_n "(cached) $ac_c" 1>&6
9790 else
9791   
9792         cat > conftest.$ac_ext <<EOF
9793 #line 9794 "configure"
9794 #include "confdefs.h"
9795 #include <math.h>
9796 int main() {
9797  __builtin_labs(0);
9798 ; return 0; }
9799 EOF
9800 if { (eval echo configure:9801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9801   rm -rf conftest*
9802   glibcpp_cv_func___builtin_labs_link=yes
9803 else
9804   echo "configure: failed program was:" >&5
9805   cat conftest.$ac_ext >&5
9806   rm -rf conftest*
9807   glibcpp_cv_func___builtin_labs_link=no
9808 fi
9809 rm -f conftest*
9810       
9811 fi
9812
9813     fi
9814     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
9815     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
9816       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9817       cat >> confdefs.h <<EOF
9818 #define ${ac_tr_func} 1
9819 EOF
9820
9821     fi
9822   fi
9823
9824
9825   
9826   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
9827 echo "configure:9828: checking for __builtin_sqrtf declaration" >&5
9828   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
9829     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
9830   echo $ac_n "(cached) $ac_c" 1>&6
9831 else
9832   
9833       
9834       ac_ext=C
9835 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9836 ac_cpp='$CXXCPP $CPPFLAGS'
9837 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9838 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9839 cross_compiling=$ac_cv_prog_cxx_cross
9840
9841       cat > conftest.$ac_ext <<EOF
9842 #line 9843 "configure"
9843 #include "confdefs.h"
9844 #include <math.h>
9845 int main() {
9846  __builtin_sqrtf(0);
9847 ; return 0; }
9848 EOF
9849 if { (eval echo configure:9850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9850   rm -rf conftest*
9851   glibcpp_cv_func___builtin_sqrtf_use=yes
9852 else
9853   echo "configure: failed program was:" >&5
9854   cat conftest.$ac_ext >&5
9855   rm -rf conftest*
9856   glibcpp_cv_func___builtin_sqrtf_use=no
9857 fi
9858 rm -f conftest*
9859       ac_ext=c
9860 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9861 ac_cpp='$CPP $CPPFLAGS'
9862 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9863 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9864 cross_compiling=$ac_cv_prog_cc_cross
9865
9866     
9867 fi
9868
9869   fi
9870   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
9871   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
9872     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
9873 echo "configure:9874: checking for __builtin_sqrtf linkage" >&5
9874     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
9875       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
9876   echo $ac_n "(cached) $ac_c" 1>&6
9877 else
9878   
9879         cat > conftest.$ac_ext <<EOF
9880 #line 9881 "configure"
9881 #include "confdefs.h"
9882 #include <math.h>
9883 int main() {
9884  __builtin_sqrtf(0);
9885 ; return 0; }
9886 EOF
9887 if { (eval echo configure:9888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9888   rm -rf conftest*
9889   glibcpp_cv_func___builtin_sqrtf_link=yes
9890 else
9891   echo "configure: failed program was:" >&5
9892   cat conftest.$ac_ext >&5
9893   rm -rf conftest*
9894   glibcpp_cv_func___builtin_sqrtf_link=no
9895 fi
9896 rm -f conftest*
9897       
9898 fi
9899
9900     fi
9901     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
9902     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
9903       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9904       cat >> confdefs.h <<EOF
9905 #define ${ac_tr_func} 1
9906 EOF
9907
9908     fi
9909   fi
9910
9911   
9912   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
9913 echo "configure:9914: checking for __builtin_sqrt declaration" >&5
9914   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
9915     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
9916   echo $ac_n "(cached) $ac_c" 1>&6
9917 else
9918   
9919       
9920       ac_ext=C
9921 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9922 ac_cpp='$CXXCPP $CPPFLAGS'
9923 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9924 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9925 cross_compiling=$ac_cv_prog_cxx_cross
9926
9927       cat > conftest.$ac_ext <<EOF
9928 #line 9929 "configure"
9929 #include "confdefs.h"
9930 #include <math.h>
9931 int main() {
9932  __builtin_sqrt(0);
9933 ; return 0; }
9934 EOF
9935 if { (eval echo configure:9936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9936   rm -rf conftest*
9937   glibcpp_cv_func___builtin_sqrt_use=yes
9938 else
9939   echo "configure: failed program was:" >&5
9940   cat conftest.$ac_ext >&5
9941   rm -rf conftest*
9942   glibcpp_cv_func___builtin_sqrt_use=no
9943 fi
9944 rm -f conftest*
9945       ac_ext=c
9946 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9947 ac_cpp='$CPP $CPPFLAGS'
9948 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9949 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9950 cross_compiling=$ac_cv_prog_cc_cross
9951
9952     
9953 fi
9954
9955   fi
9956   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
9957   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
9958     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
9959 echo "configure:9960: checking for __builtin_sqrt linkage" >&5
9960     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
9961       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
9962   echo $ac_n "(cached) $ac_c" 1>&6
9963 else
9964   
9965         cat > conftest.$ac_ext <<EOF
9966 #line 9967 "configure"
9967 #include "confdefs.h"
9968 #include <math.h>
9969 int main() {
9970  __builtin_sqrt(0);
9971 ; return 0; }
9972 EOF
9973 if { (eval echo configure:9974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9974   rm -rf conftest*
9975   glibcpp_cv_func___builtin_sqrt_link=yes
9976 else
9977   echo "configure: failed program was:" >&5
9978   cat conftest.$ac_ext >&5
9979   rm -rf conftest*
9980   glibcpp_cv_func___builtin_sqrt_link=no
9981 fi
9982 rm -f conftest*
9983       
9984 fi
9985
9986     fi
9987     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
9988     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
9989       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9990       cat >> confdefs.h <<EOF
9991 #define ${ac_tr_func} 1
9992 EOF
9993
9994     fi
9995   fi
9996
9997   
9998   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
9999 echo "configure:10000: checking for __builtin_sqrtl declaration" >&5
10000   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
10001     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
10002   echo $ac_n "(cached) $ac_c" 1>&6
10003 else
10004   
10005       
10006       ac_ext=C
10007 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10008 ac_cpp='$CXXCPP $CPPFLAGS'
10009 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10010 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10011 cross_compiling=$ac_cv_prog_cxx_cross
10012
10013       cat > conftest.$ac_ext <<EOF
10014 #line 10015 "configure"
10015 #include "confdefs.h"
10016 #include <math.h>
10017 int main() {
10018  __builtin_sqrtl(0);
10019 ; return 0; }
10020 EOF
10021 if { (eval echo configure:10022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10022   rm -rf conftest*
10023   glibcpp_cv_func___builtin_sqrtl_use=yes
10024 else
10025   echo "configure: failed program was:" >&5
10026   cat conftest.$ac_ext >&5
10027   rm -rf conftest*
10028   glibcpp_cv_func___builtin_sqrtl_use=no
10029 fi
10030 rm -f conftest*
10031       ac_ext=c
10032 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10033 ac_cpp='$CPP $CPPFLAGS'
10034 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10035 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10036 cross_compiling=$ac_cv_prog_cc_cross
10037
10038     
10039 fi
10040
10041   fi
10042   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
10043   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
10044     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
10045 echo "configure:10046: checking for __builtin_sqrtl linkage" >&5
10046     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
10047       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
10048   echo $ac_n "(cached) $ac_c" 1>&6
10049 else
10050   
10051         cat > conftest.$ac_ext <<EOF
10052 #line 10053 "configure"
10053 #include "confdefs.h"
10054 #include <math.h>
10055 int main() {
10056  __builtin_sqrtl(0);
10057 ; return 0; }
10058 EOF
10059 if { (eval echo configure:10060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10060   rm -rf conftest*
10061   glibcpp_cv_func___builtin_sqrtl_link=yes
10062 else
10063   echo "configure: failed program was:" >&5
10064   cat conftest.$ac_ext >&5
10065   rm -rf conftest*
10066   glibcpp_cv_func___builtin_sqrtl_link=no
10067 fi
10068 rm -f conftest*
10069       
10070 fi
10071
10072     fi
10073     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
10074     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
10075       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10076       cat >> confdefs.h <<EOF
10077 #define ${ac_tr_func} 1
10078 EOF
10079
10080     fi
10081   fi
10082
10083
10084   
10085   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
10086 echo "configure:10087: checking for __builtin_sinf declaration" >&5
10087   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
10088     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
10089   echo $ac_n "(cached) $ac_c" 1>&6
10090 else
10091   
10092       
10093       ac_ext=C
10094 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10095 ac_cpp='$CXXCPP $CPPFLAGS'
10096 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10097 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10098 cross_compiling=$ac_cv_prog_cxx_cross
10099
10100       cat > conftest.$ac_ext <<EOF
10101 #line 10102 "configure"
10102 #include "confdefs.h"
10103 #include <math.h>
10104 int main() {
10105  __builtin_sinf(0);
10106 ; return 0; }
10107 EOF
10108 if { (eval echo configure:10109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10109   rm -rf conftest*
10110   glibcpp_cv_func___builtin_sinf_use=yes
10111 else
10112   echo "configure: failed program was:" >&5
10113   cat conftest.$ac_ext >&5
10114   rm -rf conftest*
10115   glibcpp_cv_func___builtin_sinf_use=no
10116 fi
10117 rm -f conftest*
10118       ac_ext=c
10119 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10120 ac_cpp='$CPP $CPPFLAGS'
10121 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10122 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10123 cross_compiling=$ac_cv_prog_cc_cross
10124
10125     
10126 fi
10127
10128   fi
10129   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
10130   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
10131     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
10132 echo "configure:10133: checking for __builtin_sinf linkage" >&5
10133     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
10134       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
10135   echo $ac_n "(cached) $ac_c" 1>&6
10136 else
10137   
10138         cat > conftest.$ac_ext <<EOF
10139 #line 10140 "configure"
10140 #include "confdefs.h"
10141 #include <math.h>
10142 int main() {
10143  __builtin_sinf(0);
10144 ; return 0; }
10145 EOF
10146 if { (eval echo configure:10147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10147   rm -rf conftest*
10148   glibcpp_cv_func___builtin_sinf_link=yes
10149 else
10150   echo "configure: failed program was:" >&5
10151   cat conftest.$ac_ext >&5
10152   rm -rf conftest*
10153   glibcpp_cv_func___builtin_sinf_link=no
10154 fi
10155 rm -f conftest*
10156       
10157 fi
10158
10159     fi
10160     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
10161     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
10162       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10163       cat >> confdefs.h <<EOF
10164 #define ${ac_tr_func} 1
10165 EOF
10166
10167     fi
10168   fi
10169
10170   
10171   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
10172 echo "configure:10173: checking for __builtin_sin declaration" >&5
10173   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
10174     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
10175   echo $ac_n "(cached) $ac_c" 1>&6
10176 else
10177   
10178       
10179       ac_ext=C
10180 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10181 ac_cpp='$CXXCPP $CPPFLAGS'
10182 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10183 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10184 cross_compiling=$ac_cv_prog_cxx_cross
10185
10186       cat > conftest.$ac_ext <<EOF
10187 #line 10188 "configure"
10188 #include "confdefs.h"
10189 #include <math.h>
10190 int main() {
10191  __builtin_sin(0);
10192 ; return 0; }
10193 EOF
10194 if { (eval echo configure:10195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10195   rm -rf conftest*
10196   glibcpp_cv_func___builtin_sin_use=yes
10197 else
10198   echo "configure: failed program was:" >&5
10199   cat conftest.$ac_ext >&5
10200   rm -rf conftest*
10201   glibcpp_cv_func___builtin_sin_use=no
10202 fi
10203 rm -f conftest*
10204       ac_ext=c
10205 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10206 ac_cpp='$CPP $CPPFLAGS'
10207 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10208 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10209 cross_compiling=$ac_cv_prog_cc_cross
10210
10211     
10212 fi
10213
10214   fi
10215   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
10216   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
10217     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
10218 echo "configure:10219: checking for __builtin_sin linkage" >&5
10219     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
10220       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
10221   echo $ac_n "(cached) $ac_c" 1>&6
10222 else
10223   
10224         cat > conftest.$ac_ext <<EOF
10225 #line 10226 "configure"
10226 #include "confdefs.h"
10227 #include <math.h>
10228 int main() {
10229  __builtin_sin(0);
10230 ; return 0; }
10231 EOF
10232 if { (eval echo configure:10233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10233   rm -rf conftest*
10234   glibcpp_cv_func___builtin_sin_link=yes
10235 else
10236   echo "configure: failed program was:" >&5
10237   cat conftest.$ac_ext >&5
10238   rm -rf conftest*
10239   glibcpp_cv_func___builtin_sin_link=no
10240 fi
10241 rm -f conftest*
10242       
10243 fi
10244
10245     fi
10246     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
10247     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
10248       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10249       cat >> confdefs.h <<EOF
10250 #define ${ac_tr_func} 1
10251 EOF
10252
10253     fi
10254   fi
10255
10256   
10257   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
10258 echo "configure:10259: checking for __builtin_sinl declaration" >&5
10259   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
10260     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
10261   echo $ac_n "(cached) $ac_c" 1>&6
10262 else
10263   
10264       
10265       ac_ext=C
10266 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10267 ac_cpp='$CXXCPP $CPPFLAGS'
10268 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10269 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10270 cross_compiling=$ac_cv_prog_cxx_cross
10271
10272       cat > conftest.$ac_ext <<EOF
10273 #line 10274 "configure"
10274 #include "confdefs.h"
10275 #include <math.h>
10276 int main() {
10277  __builtin_sinl(0);
10278 ; return 0; }
10279 EOF
10280 if { (eval echo configure:10281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10281   rm -rf conftest*
10282   glibcpp_cv_func___builtin_sinl_use=yes
10283 else
10284   echo "configure: failed program was:" >&5
10285   cat conftest.$ac_ext >&5
10286   rm -rf conftest*
10287   glibcpp_cv_func___builtin_sinl_use=no
10288 fi
10289 rm -f conftest*
10290       ac_ext=c
10291 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10292 ac_cpp='$CPP $CPPFLAGS'
10293 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10294 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10295 cross_compiling=$ac_cv_prog_cc_cross
10296
10297     
10298 fi
10299
10300   fi
10301   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
10302   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
10303     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
10304 echo "configure:10305: checking for __builtin_sinl linkage" >&5
10305     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
10306       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
10307   echo $ac_n "(cached) $ac_c" 1>&6
10308 else
10309   
10310         cat > conftest.$ac_ext <<EOF
10311 #line 10312 "configure"
10312 #include "confdefs.h"
10313 #include <math.h>
10314 int main() {
10315  __builtin_sinl(0);
10316 ; return 0; }
10317 EOF
10318 if { (eval echo configure:10319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10319   rm -rf conftest*
10320   glibcpp_cv_func___builtin_sinl_link=yes
10321 else
10322   echo "configure: failed program was:" >&5
10323   cat conftest.$ac_ext >&5
10324   rm -rf conftest*
10325   glibcpp_cv_func___builtin_sinl_link=no
10326 fi
10327 rm -f conftest*
10328       
10329 fi
10330
10331     fi
10332     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
10333     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
10334       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10335       cat >> confdefs.h <<EOF
10336 #define ${ac_tr_func} 1
10337 EOF
10338
10339     fi
10340   fi
10341
10342
10343   
10344   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
10345 echo "configure:10346: checking for __builtin_cosf declaration" >&5
10346   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
10347     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
10348   echo $ac_n "(cached) $ac_c" 1>&6
10349 else
10350   
10351       
10352       ac_ext=C
10353 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10354 ac_cpp='$CXXCPP $CPPFLAGS'
10355 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10356 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10357 cross_compiling=$ac_cv_prog_cxx_cross
10358
10359       cat > conftest.$ac_ext <<EOF
10360 #line 10361 "configure"
10361 #include "confdefs.h"
10362 #include <math.h>
10363 int main() {
10364  __builtin_cosf(0);
10365 ; return 0; }
10366 EOF
10367 if { (eval echo configure:10368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10368   rm -rf conftest*
10369   glibcpp_cv_func___builtin_cosf_use=yes
10370 else
10371   echo "configure: failed program was:" >&5
10372   cat conftest.$ac_ext >&5
10373   rm -rf conftest*
10374   glibcpp_cv_func___builtin_cosf_use=no
10375 fi
10376 rm -f conftest*
10377       ac_ext=c
10378 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10379 ac_cpp='$CPP $CPPFLAGS'
10380 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10381 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10382 cross_compiling=$ac_cv_prog_cc_cross
10383
10384     
10385 fi
10386
10387   fi
10388   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
10389   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
10390     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
10391 echo "configure:10392: checking for __builtin_cosf linkage" >&5
10392     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
10393       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
10394   echo $ac_n "(cached) $ac_c" 1>&6
10395 else
10396   
10397         cat > conftest.$ac_ext <<EOF
10398 #line 10399 "configure"
10399 #include "confdefs.h"
10400 #include <math.h>
10401 int main() {
10402  __builtin_cosf(0);
10403 ; return 0; }
10404 EOF
10405 if { (eval echo configure:10406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10406   rm -rf conftest*
10407   glibcpp_cv_func___builtin_cosf_link=yes
10408 else
10409   echo "configure: failed program was:" >&5
10410   cat conftest.$ac_ext >&5
10411   rm -rf conftest*
10412   glibcpp_cv_func___builtin_cosf_link=no
10413 fi
10414 rm -f conftest*
10415       
10416 fi
10417
10418     fi
10419     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
10420     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
10421       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10422       cat >> confdefs.h <<EOF
10423 #define ${ac_tr_func} 1
10424 EOF
10425
10426     fi
10427   fi
10428
10429   
10430   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
10431 echo "configure:10432: checking for __builtin_cos declaration" >&5
10432   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
10433     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
10434   echo $ac_n "(cached) $ac_c" 1>&6
10435 else
10436   
10437       
10438       ac_ext=C
10439 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10440 ac_cpp='$CXXCPP $CPPFLAGS'
10441 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10442 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10443 cross_compiling=$ac_cv_prog_cxx_cross
10444
10445       cat > conftest.$ac_ext <<EOF
10446 #line 10447 "configure"
10447 #include "confdefs.h"
10448 #include <math.h>
10449 int main() {
10450  __builtin_cos(0);
10451 ; return 0; }
10452 EOF
10453 if { (eval echo configure:10454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10454   rm -rf conftest*
10455   glibcpp_cv_func___builtin_cos_use=yes
10456 else
10457   echo "configure: failed program was:" >&5
10458   cat conftest.$ac_ext >&5
10459   rm -rf conftest*
10460   glibcpp_cv_func___builtin_cos_use=no
10461 fi
10462 rm -f conftest*
10463       ac_ext=c
10464 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10465 ac_cpp='$CPP $CPPFLAGS'
10466 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10467 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10468 cross_compiling=$ac_cv_prog_cc_cross
10469
10470     
10471 fi
10472
10473   fi
10474   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
10475   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
10476     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
10477 echo "configure:10478: checking for __builtin_cos linkage" >&5
10478     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
10479       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
10480   echo $ac_n "(cached) $ac_c" 1>&6
10481 else
10482   
10483         cat > conftest.$ac_ext <<EOF
10484 #line 10485 "configure"
10485 #include "confdefs.h"
10486 #include <math.h>
10487 int main() {
10488  __builtin_cos(0);
10489 ; return 0; }
10490 EOF
10491 if { (eval echo configure:10492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10492   rm -rf conftest*
10493   glibcpp_cv_func___builtin_cos_link=yes
10494 else
10495   echo "configure: failed program was:" >&5
10496   cat conftest.$ac_ext >&5
10497   rm -rf conftest*
10498   glibcpp_cv_func___builtin_cos_link=no
10499 fi
10500 rm -f conftest*
10501       
10502 fi
10503
10504     fi
10505     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
10506     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
10507       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10508       cat >> confdefs.h <<EOF
10509 #define ${ac_tr_func} 1
10510 EOF
10511
10512     fi
10513   fi
10514
10515   
10516   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
10517 echo "configure:10518: checking for __builtin_cosl declaration" >&5
10518   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
10519     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
10520   echo $ac_n "(cached) $ac_c" 1>&6
10521 else
10522   
10523       
10524       ac_ext=C
10525 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10526 ac_cpp='$CXXCPP $CPPFLAGS'
10527 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10528 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10529 cross_compiling=$ac_cv_prog_cxx_cross
10530
10531       cat > conftest.$ac_ext <<EOF
10532 #line 10533 "configure"
10533 #include "confdefs.h"
10534 #include <math.h>
10535 int main() {
10536  __builtin_cosl(0);
10537 ; return 0; }
10538 EOF
10539 if { (eval echo configure:10540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10540   rm -rf conftest*
10541   glibcpp_cv_func___builtin_cosl_use=yes
10542 else
10543   echo "configure: failed program was:" >&5
10544   cat conftest.$ac_ext >&5
10545   rm -rf conftest*
10546   glibcpp_cv_func___builtin_cosl_use=no
10547 fi
10548 rm -f conftest*
10549       ac_ext=c
10550 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10551 ac_cpp='$CPP $CPPFLAGS'
10552 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10553 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10554 cross_compiling=$ac_cv_prog_cc_cross
10555
10556     
10557 fi
10558
10559   fi
10560   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
10561   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
10562     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
10563 echo "configure:10564: checking for __builtin_cosl linkage" >&5
10564     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
10565       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
10566   echo $ac_n "(cached) $ac_c" 1>&6
10567 else
10568   
10569         cat > conftest.$ac_ext <<EOF
10570 #line 10571 "configure"
10571 #include "confdefs.h"
10572 #include <math.h>
10573 int main() {
10574  __builtin_cosl(0);
10575 ; return 0; }
10576 EOF
10577 if { (eval echo configure:10578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10578   rm -rf conftest*
10579   glibcpp_cv_func___builtin_cosl_link=yes
10580 else
10581   echo "configure: failed program was:" >&5
10582   cat conftest.$ac_ext >&5
10583   rm -rf conftest*
10584   glibcpp_cv_func___builtin_cosl_link=no
10585 fi
10586 rm -f conftest*
10587       
10588 fi
10589
10590     fi
10591     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
10592     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
10593       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10594       cat >> confdefs.h <<EOF
10595 #define ${ac_tr_func} 1
10596 EOF
10597
10598     fi
10599   fi
10600
10601
10602               dummyvar=no
10603   if test x$dummyvar = x"yes"; then
10604     cat >> confdefs.h <<\EOF
10605 #define HAVE___BUILTIN_ABS 1
10606 EOF
10607
10608     cat >> confdefs.h <<\EOF
10609 #define HAVE___BUILTIN_LABS 1
10610 EOF
10611
10612     cat >> confdefs.h <<\EOF
10613 #define HAVE___BUILTIN_COS 1
10614 EOF
10615
10616     cat >> confdefs.h <<\EOF
10617 #define HAVE___BUILTIN_COSF 1
10618 EOF
10619
10620     cat >> confdefs.h <<\EOF
10621 #define HAVE___BUILTIN_COSL 1
10622 EOF
10623
10624     cat >> confdefs.h <<\EOF
10625 #define HAVE___BUILTIN_FABS 1
10626 EOF
10627
10628     cat >> confdefs.h <<\EOF
10629 #define HAVE___BUILTIN_FABSF 1
10630 EOF
10631
10632     cat >> confdefs.h <<\EOF
10633 #define HAVE___BUILTIN_FABSL 1
10634 EOF
10635
10636     cat >> confdefs.h <<\EOF
10637 #define HAVE___BUILTIN_SIN 1
10638 EOF
10639
10640     cat >> confdefs.h <<\EOF
10641 #define HAVE___BUILTIN_SINF 1
10642 EOF
10643
10644     cat >> confdefs.h <<\EOF
10645 #define HAVE___BUILTIN_SINL 1
10646 EOF
10647
10648     cat >> confdefs.h <<\EOF
10649 #define HAVE___BUILTIN_SQRT 1
10650 EOF
10651
10652     cat >> confdefs.h <<\EOF
10653 #define HAVE___BUILTIN_SQRTF 1
10654 EOF
10655
10656     cat >> confdefs.h <<\EOF
10657 #define HAVE___BUILTIN_SQRTL 1
10658 EOF
10659
10660   fi
10661
10662   
10663   ac_test_CXXFLAGS="${CXXFLAGS+set}"
10664   ac_save_CXXFLAGS="$CXXFLAGS"
10665   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
10666
10667     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10668 echo "configure:10669: checking for sin in -lm" >&5
10669 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10670 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10671   echo $ac_n "(cached) $ac_c" 1>&6
10672 else
10673   ac_save_LIBS="$LIBS"
10674 LIBS="-lm  $LIBS"
10675 cat > conftest.$ac_ext <<EOF
10676 #line 10677 "configure"
10677 #include "confdefs.h"
10678 /* Override any gcc2 internal prototype to avoid an error.  */
10679 /* We use char because int might match the return type of a gcc2
10680     builtin and then its argument prototype would still apply.  */
10681 char sin();
10682
10683 int main() {
10684 sin()
10685 ; return 0; }
10686 EOF
10687 if { (eval echo configure:10688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10688   rm -rf conftest*
10689   eval "ac_cv_lib_$ac_lib_var=yes"
10690 else
10691   echo "configure: failed program was:" >&5
10692   cat conftest.$ac_ext >&5
10693   rm -rf conftest*
10694   eval "ac_cv_lib_$ac_lib_var=no"
10695 fi
10696 rm -f conftest*
10697 LIBS="$ac_save_LIBS"
10698
10699 fi
10700 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10701   echo "$ac_t""yes" 1>&6
10702   libm="-lm"
10703 else
10704   echo "$ac_t""no" 1>&6
10705 fi
10706
10707   ac_save_LIBS="$LIBS"
10708   LIBS="$LIBS $libm"
10709
10710     
10711   
10712   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10713 echo "configure:10714: checking for isinf declaration" >&5
10714   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
10715     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
10716   echo $ac_n "(cached) $ac_c" 1>&6
10717 else
10718   
10719       
10720       ac_ext=C
10721 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10722 ac_cpp='$CXXCPP $CPPFLAGS'
10723 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10724 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10725 cross_compiling=$ac_cv_prog_cxx_cross
10726
10727       cat > conftest.$ac_ext <<EOF
10728 #line 10729 "configure"
10729 #include "confdefs.h"
10730 #include <math.h>
10731                       #ifdef HAVE_IEEEFP_H
10732                       #include <ieeefp.h>
10733                       #endif
10734                      
10735 int main() {
10736  isinf(0);
10737 ; return 0; }
10738 EOF
10739 if { (eval echo configure:10740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10740   rm -rf conftest*
10741   glibcpp_cv_func_isinf_use=yes
10742 else
10743   echo "configure: failed program was:" >&5
10744   cat conftest.$ac_ext >&5
10745   rm -rf conftest*
10746   glibcpp_cv_func_isinf_use=no
10747 fi
10748 rm -f conftest*
10749       ac_ext=c
10750 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10751 ac_cpp='$CPP $CPPFLAGS'
10752 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10753 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10754 cross_compiling=$ac_cv_prog_cc_cross
10755
10756     
10757 fi
10758
10759   fi
10760   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
10761
10762   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
10763     for ac_func in isinf
10764 do
10765 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10766 echo "configure:10767: checking for $ac_func" >&5
10767 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10768   echo $ac_n "(cached) $ac_c" 1>&6
10769 else
10770   cat > conftest.$ac_ext <<EOF
10771 #line 10772 "configure"
10772 #include "confdefs.h"
10773 /* System header to define __stub macros and hopefully few prototypes,
10774     which can conflict with char $ac_func(); below.  */
10775 #include <assert.h>
10776 /* Override any gcc2 internal prototype to avoid an error.  */
10777 /* We use char because int might match the return type of a gcc2
10778     builtin and then its argument prototype would still apply.  */
10779 char $ac_func();
10780
10781 int main() {
10782
10783 /* The GNU C library defines this for functions which it implements
10784     to always fail with ENOSYS.  Some functions are actually named
10785     something starting with __ and the normal name is an alias.  */
10786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10787 choke me
10788 #else
10789 $ac_func();
10790 #endif
10791
10792 ; return 0; }
10793 EOF
10794 if { (eval echo configure:10795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10795   rm -rf conftest*
10796   eval "ac_cv_func_$ac_func=yes"
10797 else
10798   echo "configure: failed program was:" >&5
10799   cat conftest.$ac_ext >&5
10800   rm -rf conftest*
10801   eval "ac_cv_func_$ac_func=no"
10802 fi
10803 rm -f conftest*
10804 fi
10805
10806 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10807   echo "$ac_t""yes" 1>&6
10808     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10809   cat >> confdefs.h <<EOF
10810 #define $ac_tr_func 1
10811 EOF
10812  
10813 else
10814   echo "$ac_t""no" 1>&6
10815 fi
10816 done
10817     
10818   else
10819     
10820   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
10821 echo "configure:10822: checking for _isinf declaration" >&5
10822   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
10823     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
10824   echo $ac_n "(cached) $ac_c" 1>&6
10825 else
10826   
10827       
10828       ac_ext=C
10829 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10830 ac_cpp='$CXXCPP $CPPFLAGS'
10831 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10832 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10833 cross_compiling=$ac_cv_prog_cxx_cross
10834
10835       cat > conftest.$ac_ext <<EOF
10836 #line 10837 "configure"
10837 #include "confdefs.h"
10838 #include <math.h>
10839                       #ifdef HAVE_IEEEFP_H
10840                       #include <ieeefp.h>
10841                       #endif
10842                      
10843 int main() {
10844  _isinf(0);
10845 ; return 0; }
10846 EOF
10847 if { (eval echo configure:10848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10848   rm -rf conftest*
10849   glibcpp_cv_func__isinf_use=yes
10850 else
10851   echo "configure: failed program was:" >&5
10852   cat conftest.$ac_ext >&5
10853   rm -rf conftest*
10854   glibcpp_cv_func__isinf_use=no
10855 fi
10856 rm -f conftest*
10857       ac_ext=c
10858 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10859 ac_cpp='$CPP $CPPFLAGS'
10860 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10861 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10862 cross_compiling=$ac_cv_prog_cc_cross
10863
10864     
10865 fi
10866
10867   fi
10868   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
10869
10870     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
10871       for ac_func in _isinf
10872 do
10873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10874 echo "configure:10875: checking for $ac_func" >&5
10875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10876   echo $ac_n "(cached) $ac_c" 1>&6
10877 else
10878   cat > conftest.$ac_ext <<EOF
10879 #line 10880 "configure"
10880 #include "confdefs.h"
10881 /* System header to define __stub macros and hopefully few prototypes,
10882     which can conflict with char $ac_func(); below.  */
10883 #include <assert.h>
10884 /* Override any gcc2 internal prototype to avoid an error.  */
10885 /* We use char because int might match the return type of a gcc2
10886     builtin and then its argument prototype would still apply.  */
10887 char $ac_func();
10888
10889 int main() {
10890
10891 /* The GNU C library defines this for functions which it implements
10892     to always fail with ENOSYS.  Some functions are actually named
10893     something starting with __ and the normal name is an alias.  */
10894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10895 choke me
10896 #else
10897 $ac_func();
10898 #endif
10899
10900 ; return 0; }
10901 EOF
10902 if { (eval echo configure:10903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10903   rm -rf conftest*
10904   eval "ac_cv_func_$ac_func=yes"
10905 else
10906   echo "configure: failed program was:" >&5
10907   cat conftest.$ac_ext >&5
10908   rm -rf conftest*
10909   eval "ac_cv_func_$ac_func=no"
10910 fi
10911 rm -f conftest*
10912 fi
10913
10914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10915   echo "$ac_t""yes" 1>&6
10916     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10917   cat >> confdefs.h <<EOF
10918 #define $ac_tr_func 1
10919 EOF
10920  
10921 else
10922   echo "$ac_t""no" 1>&6
10923 fi
10924 done
10925     
10926     fi
10927   fi
10928
10929   
10930   
10931   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
10932 echo "configure:10933: checking for isnan declaration" >&5
10933   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
10934     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
10935   echo $ac_n "(cached) $ac_c" 1>&6
10936 else
10937   
10938       
10939       ac_ext=C
10940 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10941 ac_cpp='$CXXCPP $CPPFLAGS'
10942 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10943 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10944 cross_compiling=$ac_cv_prog_cxx_cross
10945
10946       cat > conftest.$ac_ext <<EOF
10947 #line 10948 "configure"
10948 #include "confdefs.h"
10949 #include <math.h>
10950                       #ifdef HAVE_IEEEFP_H
10951                       #include <ieeefp.h>
10952                       #endif
10953                      
10954 int main() {
10955  isnan(0);
10956 ; return 0; }
10957 EOF
10958 if { (eval echo configure:10959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10959   rm -rf conftest*
10960   glibcpp_cv_func_isnan_use=yes
10961 else
10962   echo "configure: failed program was:" >&5
10963   cat conftest.$ac_ext >&5
10964   rm -rf conftest*
10965   glibcpp_cv_func_isnan_use=no
10966 fi
10967 rm -f conftest*
10968       ac_ext=c
10969 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10970 ac_cpp='$CPP $CPPFLAGS'
10971 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10972 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10973 cross_compiling=$ac_cv_prog_cc_cross
10974
10975     
10976 fi
10977
10978   fi
10979   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
10980
10981   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
10982     for ac_func in isnan
10983 do
10984 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10985 echo "configure:10986: checking for $ac_func" >&5
10986 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10987   echo $ac_n "(cached) $ac_c" 1>&6
10988 else
10989   cat > conftest.$ac_ext <<EOF
10990 #line 10991 "configure"
10991 #include "confdefs.h"
10992 /* System header to define __stub macros and hopefully few prototypes,
10993     which can conflict with char $ac_func(); below.  */
10994 #include <assert.h>
10995 /* Override any gcc2 internal prototype to avoid an error.  */
10996 /* We use char because int might match the return type of a gcc2
10997     builtin and then its argument prototype would still apply.  */
10998 char $ac_func();
10999
11000 int main() {
11001
11002 /* The GNU C library defines this for functions which it implements
11003     to always fail with ENOSYS.  Some functions are actually named
11004     something starting with __ and the normal name is an alias.  */
11005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11006 choke me
11007 #else
11008 $ac_func();
11009 #endif
11010
11011 ; return 0; }
11012 EOF
11013 if { (eval echo configure:11014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11014   rm -rf conftest*
11015   eval "ac_cv_func_$ac_func=yes"
11016 else
11017   echo "configure: failed program was:" >&5
11018   cat conftest.$ac_ext >&5
11019   rm -rf conftest*
11020   eval "ac_cv_func_$ac_func=no"
11021 fi
11022 rm -f conftest*
11023 fi
11024
11025 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11026   echo "$ac_t""yes" 1>&6
11027     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11028   cat >> confdefs.h <<EOF
11029 #define $ac_tr_func 1
11030 EOF
11031  
11032 else
11033   echo "$ac_t""no" 1>&6
11034 fi
11035 done
11036     
11037   else
11038     
11039   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11040 echo "configure:11041: checking for _isnan declaration" >&5
11041   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
11042     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
11043   echo $ac_n "(cached) $ac_c" 1>&6
11044 else
11045   
11046       
11047       ac_ext=C
11048 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11049 ac_cpp='$CXXCPP $CPPFLAGS'
11050 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11051 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11052 cross_compiling=$ac_cv_prog_cxx_cross
11053
11054       cat > conftest.$ac_ext <<EOF
11055 #line 11056 "configure"
11056 #include "confdefs.h"
11057 #include <math.h>
11058                       #ifdef HAVE_IEEEFP_H
11059                       #include <ieeefp.h>
11060                       #endif
11061                      
11062 int main() {
11063  _isnan(0);
11064 ; return 0; }
11065 EOF
11066 if { (eval echo configure:11067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11067   rm -rf conftest*
11068   glibcpp_cv_func__isnan_use=yes
11069 else
11070   echo "configure: failed program was:" >&5
11071   cat conftest.$ac_ext >&5
11072   rm -rf conftest*
11073   glibcpp_cv_func__isnan_use=no
11074 fi
11075 rm -f conftest*
11076       ac_ext=c
11077 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11078 ac_cpp='$CPP $CPPFLAGS'
11079 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11080 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11081 cross_compiling=$ac_cv_prog_cc_cross
11082
11083     
11084 fi
11085
11086   fi
11087   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
11088
11089     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
11090       for ac_func in _isnan
11091 do
11092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11093 echo "configure:11094: checking for $ac_func" >&5
11094 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11095   echo $ac_n "(cached) $ac_c" 1>&6
11096 else
11097   cat > conftest.$ac_ext <<EOF
11098 #line 11099 "configure"
11099 #include "confdefs.h"
11100 /* System header to define __stub macros and hopefully few prototypes,
11101     which can conflict with char $ac_func(); below.  */
11102 #include <assert.h>
11103 /* Override any gcc2 internal prototype to avoid an error.  */
11104 /* We use char because int might match the return type of a gcc2
11105     builtin and then its argument prototype would still apply.  */
11106 char $ac_func();
11107
11108 int main() {
11109
11110 /* The GNU C library defines this for functions which it implements
11111     to always fail with ENOSYS.  Some functions are actually named
11112     something starting with __ and the normal name is an alias.  */
11113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11114 choke me
11115 #else
11116 $ac_func();
11117 #endif
11118
11119 ; return 0; }
11120 EOF
11121 if { (eval echo configure:11122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11122   rm -rf conftest*
11123   eval "ac_cv_func_$ac_func=yes"
11124 else
11125   echo "configure: failed program was:" >&5
11126   cat conftest.$ac_ext >&5
11127   rm -rf conftest*
11128   eval "ac_cv_func_$ac_func=no"
11129 fi
11130 rm -f conftest*
11131 fi
11132
11133 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11134   echo "$ac_t""yes" 1>&6
11135     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11136   cat >> confdefs.h <<EOF
11137 #define $ac_tr_func 1
11138 EOF
11139  
11140 else
11141   echo "$ac_t""no" 1>&6
11142 fi
11143 done
11144     
11145     fi
11146   fi
11147
11148   
11149   
11150   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11151 echo "configure:11152: checking for finite declaration" >&5
11152   if test x${glibcpp_cv_func_finite_use+set} != xset; then
11153     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
11154   echo $ac_n "(cached) $ac_c" 1>&6
11155 else
11156   
11157       
11158       ac_ext=C
11159 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11160 ac_cpp='$CXXCPP $CPPFLAGS'
11161 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11162 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11163 cross_compiling=$ac_cv_prog_cxx_cross
11164
11165       cat > conftest.$ac_ext <<EOF
11166 #line 11167 "configure"
11167 #include "confdefs.h"
11168 #include <math.h>
11169                       #ifdef HAVE_IEEEFP_H
11170                       #include <ieeefp.h>
11171                       #endif
11172                      
11173 int main() {
11174  finite(0);
11175 ; return 0; }
11176 EOF
11177 if { (eval echo configure:11178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11178   rm -rf conftest*
11179   glibcpp_cv_func_finite_use=yes
11180 else
11181   echo "configure: failed program was:" >&5
11182   cat conftest.$ac_ext >&5
11183   rm -rf conftest*
11184   glibcpp_cv_func_finite_use=no
11185 fi
11186 rm -f conftest*
11187       ac_ext=c
11188 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11189 ac_cpp='$CPP $CPPFLAGS'
11190 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11191 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11192 cross_compiling=$ac_cv_prog_cc_cross
11193
11194     
11195 fi
11196
11197   fi
11198   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
11199
11200   if test x$glibcpp_cv_func_finite_use = x"yes"; then
11201     for ac_func in finite
11202 do
11203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11204 echo "configure:11205: checking for $ac_func" >&5
11205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11206   echo $ac_n "(cached) $ac_c" 1>&6
11207 else
11208   cat > conftest.$ac_ext <<EOF
11209 #line 11210 "configure"
11210 #include "confdefs.h"
11211 /* System header to define __stub macros and hopefully few prototypes,
11212     which can conflict with char $ac_func(); below.  */
11213 #include <assert.h>
11214 /* Override any gcc2 internal prototype to avoid an error.  */
11215 /* We use char because int might match the return type of a gcc2
11216     builtin and then its argument prototype would still apply.  */
11217 char $ac_func();
11218
11219 int main() {
11220
11221 /* The GNU C library defines this for functions which it implements
11222     to always fail with ENOSYS.  Some functions are actually named
11223     something starting with __ and the normal name is an alias.  */
11224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11225 choke me
11226 #else
11227 $ac_func();
11228 #endif
11229
11230 ; return 0; }
11231 EOF
11232 if { (eval echo configure:11233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11233   rm -rf conftest*
11234   eval "ac_cv_func_$ac_func=yes"
11235 else
11236   echo "configure: failed program was:" >&5
11237   cat conftest.$ac_ext >&5
11238   rm -rf conftest*
11239   eval "ac_cv_func_$ac_func=no"
11240 fi
11241 rm -f conftest*
11242 fi
11243
11244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11245   echo "$ac_t""yes" 1>&6
11246     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11247   cat >> confdefs.h <<EOF
11248 #define $ac_tr_func 1
11249 EOF
11250  
11251 else
11252   echo "$ac_t""no" 1>&6
11253 fi
11254 done
11255     
11256   else
11257     
11258   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11259 echo "configure:11260: checking for _finite declaration" >&5
11260   if test x${glibcpp_cv_func__finite_use+set} != xset; then
11261     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
11262   echo $ac_n "(cached) $ac_c" 1>&6
11263 else
11264   
11265       
11266       ac_ext=C
11267 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11268 ac_cpp='$CXXCPP $CPPFLAGS'
11269 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11270 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11271 cross_compiling=$ac_cv_prog_cxx_cross
11272
11273       cat > conftest.$ac_ext <<EOF
11274 #line 11275 "configure"
11275 #include "confdefs.h"
11276 #include <math.h>
11277                       #ifdef HAVE_IEEEFP_H
11278                       #include <ieeefp.h>
11279                       #endif
11280                      
11281 int main() {
11282  _finite(0);
11283 ; return 0; }
11284 EOF
11285 if { (eval echo configure:11286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11286   rm -rf conftest*
11287   glibcpp_cv_func__finite_use=yes
11288 else
11289   echo "configure: failed program was:" >&5
11290   cat conftest.$ac_ext >&5
11291   rm -rf conftest*
11292   glibcpp_cv_func__finite_use=no
11293 fi
11294 rm -f conftest*
11295       ac_ext=c
11296 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11297 ac_cpp='$CPP $CPPFLAGS'
11298 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11299 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11300 cross_compiling=$ac_cv_prog_cc_cross
11301
11302     
11303 fi
11304
11305   fi
11306   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
11307
11308     if test x$glibcpp_cv_func__finite_use = x"yes"; then
11309       for ac_func in _finite
11310 do
11311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11312 echo "configure:11313: checking for $ac_func" >&5
11313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11314   echo $ac_n "(cached) $ac_c" 1>&6
11315 else
11316   cat > conftest.$ac_ext <<EOF
11317 #line 11318 "configure"
11318 #include "confdefs.h"
11319 /* System header to define __stub macros and hopefully few prototypes,
11320     which can conflict with char $ac_func(); below.  */
11321 #include <assert.h>
11322 /* Override any gcc2 internal prototype to avoid an error.  */
11323 /* We use char because int might match the return type of a gcc2
11324     builtin and then its argument prototype would still apply.  */
11325 char $ac_func();
11326
11327 int main() {
11328
11329 /* The GNU C library defines this for functions which it implements
11330     to always fail with ENOSYS.  Some functions are actually named
11331     something starting with __ and the normal name is an alias.  */
11332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11333 choke me
11334 #else
11335 $ac_func();
11336 #endif
11337
11338 ; return 0; }
11339 EOF
11340 if { (eval echo configure:11341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11341   rm -rf conftest*
11342   eval "ac_cv_func_$ac_func=yes"
11343 else
11344   echo "configure: failed program was:" >&5
11345   cat conftest.$ac_ext >&5
11346   rm -rf conftest*
11347   eval "ac_cv_func_$ac_func=no"
11348 fi
11349 rm -f conftest*
11350 fi
11351
11352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11353   echo "$ac_t""yes" 1>&6
11354     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11355   cat >> confdefs.h <<EOF
11356 #define $ac_tr_func 1
11357 EOF
11358  
11359 else
11360   echo "$ac_t""no" 1>&6
11361 fi
11362 done
11363     
11364     fi
11365   fi
11366
11367   
11368   
11369   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11370 echo "configure:11371: checking for copysign declaration" >&5
11371   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
11372     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
11373   echo $ac_n "(cached) $ac_c" 1>&6
11374 else
11375   
11376       
11377       ac_ext=C
11378 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11379 ac_cpp='$CXXCPP $CPPFLAGS'
11380 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11381 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11382 cross_compiling=$ac_cv_prog_cxx_cross
11383
11384       cat > conftest.$ac_ext <<EOF
11385 #line 11386 "configure"
11386 #include "confdefs.h"
11387 #include <math.h>
11388 int main() {
11389  copysign(0, 0);
11390 ; return 0; }
11391 EOF
11392 if { (eval echo configure:11393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11393   rm -rf conftest*
11394   glibcpp_cv_func_copysign_use=yes
11395 else
11396   echo "configure: failed program was:" >&5
11397   cat conftest.$ac_ext >&5
11398   rm -rf conftest*
11399   glibcpp_cv_func_copysign_use=no
11400 fi
11401 rm -f conftest*
11402       ac_ext=c
11403 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11404 ac_cpp='$CPP $CPPFLAGS'
11405 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11406 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11407 cross_compiling=$ac_cv_prog_cc_cross
11408
11409     
11410 fi
11411
11412   fi
11413   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
11414
11415   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
11416     for ac_func in copysign
11417 do
11418 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11419 echo "configure:11420: checking for $ac_func" >&5
11420 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11421   echo $ac_n "(cached) $ac_c" 1>&6
11422 else
11423   cat > conftest.$ac_ext <<EOF
11424 #line 11425 "configure"
11425 #include "confdefs.h"
11426 /* System header to define __stub macros and hopefully few prototypes,
11427     which can conflict with char $ac_func(); below.  */
11428 #include <assert.h>
11429 /* Override any gcc2 internal prototype to avoid an error.  */
11430 /* We use char because int might match the return type of a gcc2
11431     builtin and then its argument prototype would still apply.  */
11432 char $ac_func();
11433
11434 int main() {
11435
11436 /* The GNU C library defines this for functions which it implements
11437     to always fail with ENOSYS.  Some functions are actually named
11438     something starting with __ and the normal name is an alias.  */
11439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11440 choke me
11441 #else
11442 $ac_func();
11443 #endif
11444
11445 ; return 0; }
11446 EOF
11447 if { (eval echo configure:11448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11448   rm -rf conftest*
11449   eval "ac_cv_func_$ac_func=yes"
11450 else
11451   echo "configure: failed program was:" >&5
11452   cat conftest.$ac_ext >&5
11453   rm -rf conftest*
11454   eval "ac_cv_func_$ac_func=no"
11455 fi
11456 rm -f conftest*
11457 fi
11458
11459 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11460   echo "$ac_t""yes" 1>&6
11461     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11462   cat >> confdefs.h <<EOF
11463 #define $ac_tr_func 1
11464 EOF
11465  
11466 else
11467   echo "$ac_t""no" 1>&6
11468 fi
11469 done
11470     
11471   else
11472     
11473   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11474 echo "configure:11475: checking for _copysign declaration" >&5
11475   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
11476     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
11477   echo $ac_n "(cached) $ac_c" 1>&6
11478 else
11479   
11480       
11481       ac_ext=C
11482 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11483 ac_cpp='$CXXCPP $CPPFLAGS'
11484 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11485 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11486 cross_compiling=$ac_cv_prog_cxx_cross
11487
11488       cat > conftest.$ac_ext <<EOF
11489 #line 11490 "configure"
11490 #include "confdefs.h"
11491 #include <math.h>
11492 int main() {
11493  _copysign(0, 0);
11494 ; return 0; }
11495 EOF
11496 if { (eval echo configure:11497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11497   rm -rf conftest*
11498   glibcpp_cv_func__copysign_use=yes
11499 else
11500   echo "configure: failed program was:" >&5
11501   cat conftest.$ac_ext >&5
11502   rm -rf conftest*
11503   glibcpp_cv_func__copysign_use=no
11504 fi
11505 rm -f conftest*
11506       ac_ext=c
11507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11508 ac_cpp='$CPP $CPPFLAGS'
11509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11511 cross_compiling=$ac_cv_prog_cc_cross
11512
11513     
11514 fi
11515
11516   fi
11517   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
11518
11519     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
11520       for ac_func in _copysign
11521 do
11522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11523 echo "configure:11524: checking for $ac_func" >&5
11524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11525   echo $ac_n "(cached) $ac_c" 1>&6
11526 else
11527   cat > conftest.$ac_ext <<EOF
11528 #line 11529 "configure"
11529 #include "confdefs.h"
11530 /* System header to define __stub macros and hopefully few prototypes,
11531     which can conflict with char $ac_func(); below.  */
11532 #include <assert.h>
11533 /* Override any gcc2 internal prototype to avoid an error.  */
11534 /* We use char because int might match the return type of a gcc2
11535     builtin and then its argument prototype would still apply.  */
11536 char $ac_func();
11537
11538 int main() {
11539
11540 /* The GNU C library defines this for functions which it implements
11541     to always fail with ENOSYS.  Some functions are actually named
11542     something starting with __ and the normal name is an alias.  */
11543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11544 choke me
11545 #else
11546 $ac_func();
11547 #endif
11548
11549 ; return 0; }
11550 EOF
11551 if { (eval echo configure:11552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11552   rm -rf conftest*
11553   eval "ac_cv_func_$ac_func=yes"
11554 else
11555   echo "configure: failed program was:" >&5
11556   cat conftest.$ac_ext >&5
11557   rm -rf conftest*
11558   eval "ac_cv_func_$ac_func=no"
11559 fi
11560 rm -f conftest*
11561 fi
11562
11563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11564   echo "$ac_t""yes" 1>&6
11565     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11566   cat >> confdefs.h <<EOF
11567 #define $ac_tr_func 1
11568 EOF
11569  
11570 else
11571   echo "$ac_t""no" 1>&6
11572 fi
11573 done
11574     
11575     fi
11576   fi
11577
11578   
11579   
11580   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11581 echo "configure:11582: checking for sincos declaration" >&5
11582   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
11583     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
11584   echo $ac_n "(cached) $ac_c" 1>&6
11585 else
11586   
11587       
11588       ac_ext=C
11589 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11590 ac_cpp='$CXXCPP $CPPFLAGS'
11591 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11592 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11593 cross_compiling=$ac_cv_prog_cxx_cross
11594
11595       cat > conftest.$ac_ext <<EOF
11596 #line 11597 "configure"
11597 #include "confdefs.h"
11598 #include <math.h>
11599 int main() {
11600  sincos(0, 0, 0);
11601 ; return 0; }
11602 EOF
11603 if { (eval echo configure:11604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11604   rm -rf conftest*
11605   glibcpp_cv_func_sincos_use=yes
11606 else
11607   echo "configure: failed program was:" >&5
11608   cat conftest.$ac_ext >&5
11609   rm -rf conftest*
11610   glibcpp_cv_func_sincos_use=no
11611 fi
11612 rm -f conftest*
11613       ac_ext=c
11614 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11615 ac_cpp='$CPP $CPPFLAGS'
11616 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11617 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11618 cross_compiling=$ac_cv_prog_cc_cross
11619
11620     
11621 fi
11622
11623   fi
11624   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
11625
11626   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
11627     for ac_func in sincos
11628 do
11629 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11630 echo "configure:11631: checking for $ac_func" >&5
11631 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11632   echo $ac_n "(cached) $ac_c" 1>&6
11633 else
11634   cat > conftest.$ac_ext <<EOF
11635 #line 11636 "configure"
11636 #include "confdefs.h"
11637 /* System header to define __stub macros and hopefully few prototypes,
11638     which can conflict with char $ac_func(); below.  */
11639 #include <assert.h>
11640 /* Override any gcc2 internal prototype to avoid an error.  */
11641 /* We use char because int might match the return type of a gcc2
11642     builtin and then its argument prototype would still apply.  */
11643 char $ac_func();
11644
11645 int main() {
11646
11647 /* The GNU C library defines this for functions which it implements
11648     to always fail with ENOSYS.  Some functions are actually named
11649     something starting with __ and the normal name is an alias.  */
11650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11651 choke me
11652 #else
11653 $ac_func();
11654 #endif
11655
11656 ; return 0; }
11657 EOF
11658 if { (eval echo configure:11659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11659   rm -rf conftest*
11660   eval "ac_cv_func_$ac_func=yes"
11661 else
11662   echo "configure: failed program was:" >&5
11663   cat conftest.$ac_ext >&5
11664   rm -rf conftest*
11665   eval "ac_cv_func_$ac_func=no"
11666 fi
11667 rm -f conftest*
11668 fi
11669
11670 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11671   echo "$ac_t""yes" 1>&6
11672     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11673   cat >> confdefs.h <<EOF
11674 #define $ac_tr_func 1
11675 EOF
11676  
11677 else
11678   echo "$ac_t""no" 1>&6
11679 fi
11680 done
11681     
11682   else
11683     
11684   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11685 echo "configure:11686: checking for _sincos declaration" >&5
11686   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
11687     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
11688   echo $ac_n "(cached) $ac_c" 1>&6
11689 else
11690   
11691       
11692       ac_ext=C
11693 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11694 ac_cpp='$CXXCPP $CPPFLAGS'
11695 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11696 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11697 cross_compiling=$ac_cv_prog_cxx_cross
11698
11699       cat > conftest.$ac_ext <<EOF
11700 #line 11701 "configure"
11701 #include "confdefs.h"
11702 #include <math.h>
11703 int main() {
11704  _sincos(0, 0, 0);
11705 ; return 0; }
11706 EOF
11707 if { (eval echo configure:11708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11708   rm -rf conftest*
11709   glibcpp_cv_func__sincos_use=yes
11710 else
11711   echo "configure: failed program was:" >&5
11712   cat conftest.$ac_ext >&5
11713   rm -rf conftest*
11714   glibcpp_cv_func__sincos_use=no
11715 fi
11716 rm -f conftest*
11717       ac_ext=c
11718 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11719 ac_cpp='$CPP $CPPFLAGS'
11720 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11721 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11722 cross_compiling=$ac_cv_prog_cc_cross
11723
11724     
11725 fi
11726
11727   fi
11728   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
11729
11730     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
11731       for ac_func in _sincos
11732 do
11733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11734 echo "configure:11735: checking for $ac_func" >&5
11735 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11736   echo $ac_n "(cached) $ac_c" 1>&6
11737 else
11738   cat > conftest.$ac_ext <<EOF
11739 #line 11740 "configure"
11740 #include "confdefs.h"
11741 /* System header to define __stub macros and hopefully few prototypes,
11742     which can conflict with char $ac_func(); below.  */
11743 #include <assert.h>
11744 /* Override any gcc2 internal prototype to avoid an error.  */
11745 /* We use char because int might match the return type of a gcc2
11746     builtin and then its argument prototype would still apply.  */
11747 char $ac_func();
11748
11749 int main() {
11750
11751 /* The GNU C library defines this for functions which it implements
11752     to always fail with ENOSYS.  Some functions are actually named
11753     something starting with __ and the normal name is an alias.  */
11754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11755 choke me
11756 #else
11757 $ac_func();
11758 #endif
11759
11760 ; return 0; }
11761 EOF
11762 if { (eval echo configure:11763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11763   rm -rf conftest*
11764   eval "ac_cv_func_$ac_func=yes"
11765 else
11766   echo "configure: failed program was:" >&5
11767   cat conftest.$ac_ext >&5
11768   rm -rf conftest*
11769   eval "ac_cv_func_$ac_func=no"
11770 fi
11771 rm -f conftest*
11772 fi
11773
11774 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11775   echo "$ac_t""yes" 1>&6
11776     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11777   cat >> confdefs.h <<EOF
11778 #define $ac_tr_func 1
11779 EOF
11780  
11781 else
11782   echo "$ac_t""no" 1>&6
11783 fi
11784 done
11785     
11786     fi
11787   fi
11788
11789   
11790   
11791   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
11792 echo "configure:11793: checking for fpclass declaration" >&5
11793   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
11794     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
11795   echo $ac_n "(cached) $ac_c" 1>&6
11796 else
11797   
11798       
11799       ac_ext=C
11800 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11801 ac_cpp='$CXXCPP $CPPFLAGS'
11802 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11803 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11804 cross_compiling=$ac_cv_prog_cxx_cross
11805
11806       cat > conftest.$ac_ext <<EOF
11807 #line 11808 "configure"
11808 #include "confdefs.h"
11809 #include <math.h>
11810                       #ifdef HAVE_IEEEFP_H
11811                       #include <ieeefp.h>
11812                       #endif
11813                      
11814 int main() {
11815  fpclass(0);
11816 ; return 0; }
11817 EOF
11818 if { (eval echo configure:11819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11819   rm -rf conftest*
11820   glibcpp_cv_func_fpclass_use=yes
11821 else
11822   echo "configure: failed program was:" >&5
11823   cat conftest.$ac_ext >&5
11824   rm -rf conftest*
11825   glibcpp_cv_func_fpclass_use=no
11826 fi
11827 rm -f conftest*
11828       ac_ext=c
11829 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11830 ac_cpp='$CPP $CPPFLAGS'
11831 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11832 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11833 cross_compiling=$ac_cv_prog_cc_cross
11834
11835     
11836 fi
11837
11838   fi
11839   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
11840
11841   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
11842     for ac_func in fpclass
11843 do
11844 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11845 echo "configure:11846: checking for $ac_func" >&5
11846 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11847   echo $ac_n "(cached) $ac_c" 1>&6
11848 else
11849   cat > conftest.$ac_ext <<EOF
11850 #line 11851 "configure"
11851 #include "confdefs.h"
11852 /* System header to define __stub macros and hopefully few prototypes,
11853     which can conflict with char $ac_func(); below.  */
11854 #include <assert.h>
11855 /* Override any gcc2 internal prototype to avoid an error.  */
11856 /* We use char because int might match the return type of a gcc2
11857     builtin and then its argument prototype would still apply.  */
11858 char $ac_func();
11859
11860 int main() {
11861
11862 /* The GNU C library defines this for functions which it implements
11863     to always fail with ENOSYS.  Some functions are actually named
11864     something starting with __ and the normal name is an alias.  */
11865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11866 choke me
11867 #else
11868 $ac_func();
11869 #endif
11870
11871 ; return 0; }
11872 EOF
11873 if { (eval echo configure:11874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11874   rm -rf conftest*
11875   eval "ac_cv_func_$ac_func=yes"
11876 else
11877   echo "configure: failed program was:" >&5
11878   cat conftest.$ac_ext >&5
11879   rm -rf conftest*
11880   eval "ac_cv_func_$ac_func=no"
11881 fi
11882 rm -f conftest*
11883 fi
11884
11885 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11886   echo "$ac_t""yes" 1>&6
11887     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11888   cat >> confdefs.h <<EOF
11889 #define $ac_tr_func 1
11890 EOF
11891  
11892 else
11893   echo "$ac_t""no" 1>&6
11894 fi
11895 done
11896     
11897   else
11898     
11899   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
11900 echo "configure:11901: checking for _fpclass declaration" >&5
11901   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
11902     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
11903   echo $ac_n "(cached) $ac_c" 1>&6
11904 else
11905   
11906       
11907       ac_ext=C
11908 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11909 ac_cpp='$CXXCPP $CPPFLAGS'
11910 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11911 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11912 cross_compiling=$ac_cv_prog_cxx_cross
11913
11914       cat > conftest.$ac_ext <<EOF
11915 #line 11916 "configure"
11916 #include "confdefs.h"
11917 #include <math.h>
11918                       #ifdef HAVE_IEEEFP_H
11919                       #include <ieeefp.h>
11920                       #endif
11921                      
11922 int main() {
11923  _fpclass(0);
11924 ; return 0; }
11925 EOF
11926 if { (eval echo configure:11927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11927   rm -rf conftest*
11928   glibcpp_cv_func__fpclass_use=yes
11929 else
11930   echo "configure: failed program was:" >&5
11931   cat conftest.$ac_ext >&5
11932   rm -rf conftest*
11933   glibcpp_cv_func__fpclass_use=no
11934 fi
11935 rm -f conftest*
11936       ac_ext=c
11937 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11938 ac_cpp='$CPP $CPPFLAGS'
11939 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11940 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11941 cross_compiling=$ac_cv_prog_cc_cross
11942
11943     
11944 fi
11945
11946   fi
11947   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
11948
11949     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
11950       for ac_func in _fpclass
11951 do
11952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11953 echo "configure:11954: checking for $ac_func" >&5
11954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11955   echo $ac_n "(cached) $ac_c" 1>&6
11956 else
11957   cat > conftest.$ac_ext <<EOF
11958 #line 11959 "configure"
11959 #include "confdefs.h"
11960 /* System header to define __stub macros and hopefully few prototypes,
11961     which can conflict with char $ac_func(); below.  */
11962 #include <assert.h>
11963 /* Override any gcc2 internal prototype to avoid an error.  */
11964 /* We use char because int might match the return type of a gcc2
11965     builtin and then its argument prototype would still apply.  */
11966 char $ac_func();
11967
11968 int main() {
11969
11970 /* The GNU C library defines this for functions which it implements
11971     to always fail with ENOSYS.  Some functions are actually named
11972     something starting with __ and the normal name is an alias.  */
11973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11974 choke me
11975 #else
11976 $ac_func();
11977 #endif
11978
11979 ; return 0; }
11980 EOF
11981 if { (eval echo configure:11982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11982   rm -rf conftest*
11983   eval "ac_cv_func_$ac_func=yes"
11984 else
11985   echo "configure: failed program was:" >&5
11986   cat conftest.$ac_ext >&5
11987   rm -rf conftest*
11988   eval "ac_cv_func_$ac_func=no"
11989 fi
11990 rm -f conftest*
11991 fi
11992
11993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11994   echo "$ac_t""yes" 1>&6
11995     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11996   cat >> confdefs.h <<EOF
11997 #define $ac_tr_func 1
11998 EOF
11999  
12000 else
12001   echo "$ac_t""no" 1>&6
12002 fi
12003 done
12004     
12005     fi
12006   fi
12007
12008   
12009   
12010   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
12011 echo "configure:12012: checking for qfpclass declaration" >&5
12012   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
12013     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
12014   echo $ac_n "(cached) $ac_c" 1>&6
12015 else
12016   
12017       
12018       ac_ext=C
12019 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12020 ac_cpp='$CXXCPP $CPPFLAGS'
12021 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12022 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12023 cross_compiling=$ac_cv_prog_cxx_cross
12024
12025       cat > conftest.$ac_ext <<EOF
12026 #line 12027 "configure"
12027 #include "confdefs.h"
12028 #include <math.h>
12029                       #ifdef HAVE_IEEEFP_H
12030                       #include <ieeefp.h>
12031                       #endif
12032                      
12033 int main() {
12034  qfpclass(0);
12035 ; return 0; }
12036 EOF
12037 if { (eval echo configure:12038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12038   rm -rf conftest*
12039   glibcpp_cv_func_qfpclass_use=yes
12040 else
12041   echo "configure: failed program was:" >&5
12042   cat conftest.$ac_ext >&5
12043   rm -rf conftest*
12044   glibcpp_cv_func_qfpclass_use=no
12045 fi
12046 rm -f conftest*
12047       ac_ext=c
12048 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12049 ac_cpp='$CPP $CPPFLAGS'
12050 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12051 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12052 cross_compiling=$ac_cv_prog_cc_cross
12053
12054     
12055 fi
12056
12057   fi
12058   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
12059
12060   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
12061     for ac_func in qfpclass
12062 do
12063 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12064 echo "configure:12065: checking for $ac_func" >&5
12065 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12066   echo $ac_n "(cached) $ac_c" 1>&6
12067 else
12068   cat > conftest.$ac_ext <<EOF
12069 #line 12070 "configure"
12070 #include "confdefs.h"
12071 /* System header to define __stub macros and hopefully few prototypes,
12072     which can conflict with char $ac_func(); below.  */
12073 #include <assert.h>
12074 /* Override any gcc2 internal prototype to avoid an error.  */
12075 /* We use char because int might match the return type of a gcc2
12076     builtin and then its argument prototype would still apply.  */
12077 char $ac_func();
12078
12079 int main() {
12080
12081 /* The GNU C library defines this for functions which it implements
12082     to always fail with ENOSYS.  Some functions are actually named
12083     something starting with __ and the normal name is an alias.  */
12084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12085 choke me
12086 #else
12087 $ac_func();
12088 #endif
12089
12090 ; return 0; }
12091 EOF
12092 if { (eval echo configure:12093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12093   rm -rf conftest*
12094   eval "ac_cv_func_$ac_func=yes"
12095 else
12096   echo "configure: failed program was:" >&5
12097   cat conftest.$ac_ext >&5
12098   rm -rf conftest*
12099   eval "ac_cv_func_$ac_func=no"
12100 fi
12101 rm -f conftest*
12102 fi
12103
12104 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12105   echo "$ac_t""yes" 1>&6
12106     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12107   cat >> confdefs.h <<EOF
12108 #define $ac_tr_func 1
12109 EOF
12110  
12111 else
12112   echo "$ac_t""no" 1>&6
12113 fi
12114 done
12115     
12116   else
12117     
12118   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12119 echo "configure:12120: checking for _qfpclass declaration" >&5
12120   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
12121     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
12122   echo $ac_n "(cached) $ac_c" 1>&6
12123 else
12124   
12125       
12126       ac_ext=C
12127 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12128 ac_cpp='$CXXCPP $CPPFLAGS'
12129 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12130 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12131 cross_compiling=$ac_cv_prog_cxx_cross
12132
12133       cat > conftest.$ac_ext <<EOF
12134 #line 12135 "configure"
12135 #include "confdefs.h"
12136 #include <math.h>
12137                       #ifdef HAVE_IEEEFP_H
12138                       #include <ieeefp.h>
12139                       #endif
12140                      
12141 int main() {
12142  _qfpclass(0);
12143 ; return 0; }
12144 EOF
12145 if { (eval echo configure:12146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12146   rm -rf conftest*
12147   glibcpp_cv_func__qfpclass_use=yes
12148 else
12149   echo "configure: failed program was:" >&5
12150   cat conftest.$ac_ext >&5
12151   rm -rf conftest*
12152   glibcpp_cv_func__qfpclass_use=no
12153 fi
12154 rm -f conftest*
12155       ac_ext=c
12156 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12157 ac_cpp='$CPP $CPPFLAGS'
12158 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12159 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12160 cross_compiling=$ac_cv_prog_cc_cross
12161
12162     
12163 fi
12164
12165   fi
12166   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
12167
12168     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
12169       for ac_func in _qfpclass
12170 do
12171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12172 echo "configure:12173: checking for $ac_func" >&5
12173 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12174   echo $ac_n "(cached) $ac_c" 1>&6
12175 else
12176   cat > conftest.$ac_ext <<EOF
12177 #line 12178 "configure"
12178 #include "confdefs.h"
12179 /* System header to define __stub macros and hopefully few prototypes,
12180     which can conflict with char $ac_func(); below.  */
12181 #include <assert.h>
12182 /* Override any gcc2 internal prototype to avoid an error.  */
12183 /* We use char because int might match the return type of a gcc2
12184     builtin and then its argument prototype would still apply.  */
12185 char $ac_func();
12186
12187 int main() {
12188
12189 /* The GNU C library defines this for functions which it implements
12190     to always fail with ENOSYS.  Some functions are actually named
12191     something starting with __ and the normal name is an alias.  */
12192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12193 choke me
12194 #else
12195 $ac_func();
12196 #endif
12197
12198 ; return 0; }
12199 EOF
12200 if { (eval echo configure:12201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12201   rm -rf conftest*
12202   eval "ac_cv_func_$ac_func=yes"
12203 else
12204   echo "configure: failed program was:" >&5
12205   cat conftest.$ac_ext >&5
12206   rm -rf conftest*
12207   eval "ac_cv_func_$ac_func=no"
12208 fi
12209 rm -f conftest*
12210 fi
12211
12212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12213   echo "$ac_t""yes" 1>&6
12214     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12215   cat >> confdefs.h <<EOF
12216 #define $ac_tr_func 1
12217 EOF
12218  
12219 else
12220   echo "$ac_t""no" 1>&6
12221 fi
12222 done
12223     
12224     fi
12225   fi
12226
12227   
12228   
12229   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12230 echo "configure:12231: checking for hypot declaration" >&5
12231   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
12232     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
12233   echo $ac_n "(cached) $ac_c" 1>&6
12234 else
12235   
12236       
12237       ac_ext=C
12238 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12239 ac_cpp='$CXXCPP $CPPFLAGS'
12240 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12241 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12242 cross_compiling=$ac_cv_prog_cxx_cross
12243
12244       cat > conftest.$ac_ext <<EOF
12245 #line 12246 "configure"
12246 #include "confdefs.h"
12247 #include <math.h>
12248 int main() {
12249  hypot(0, 0);
12250 ; return 0; }
12251 EOF
12252 if { (eval echo configure:12253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12253   rm -rf conftest*
12254   glibcpp_cv_func_hypot_use=yes
12255 else
12256   echo "configure: failed program was:" >&5
12257   cat conftest.$ac_ext >&5
12258   rm -rf conftest*
12259   glibcpp_cv_func_hypot_use=no
12260 fi
12261 rm -f conftest*
12262       ac_ext=c
12263 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12264 ac_cpp='$CPP $CPPFLAGS'
12265 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12266 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12267 cross_compiling=$ac_cv_prog_cc_cross
12268
12269     
12270 fi
12271
12272   fi
12273   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
12274
12275   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
12276     for ac_func in hypot
12277 do
12278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12279 echo "configure:12280: checking for $ac_func" >&5
12280 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12281   echo $ac_n "(cached) $ac_c" 1>&6
12282 else
12283   cat > conftest.$ac_ext <<EOF
12284 #line 12285 "configure"
12285 #include "confdefs.h"
12286 /* System header to define __stub macros and hopefully few prototypes,
12287     which can conflict with char $ac_func(); below.  */
12288 #include <assert.h>
12289 /* Override any gcc2 internal prototype to avoid an error.  */
12290 /* We use char because int might match the return type of a gcc2
12291     builtin and then its argument prototype would still apply.  */
12292 char $ac_func();
12293
12294 int main() {
12295
12296 /* The GNU C library defines this for functions which it implements
12297     to always fail with ENOSYS.  Some functions are actually named
12298     something starting with __ and the normal name is an alias.  */
12299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12300 choke me
12301 #else
12302 $ac_func();
12303 #endif
12304
12305 ; return 0; }
12306 EOF
12307 if { (eval echo configure:12308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12308   rm -rf conftest*
12309   eval "ac_cv_func_$ac_func=yes"
12310 else
12311   echo "configure: failed program was:" >&5
12312   cat conftest.$ac_ext >&5
12313   rm -rf conftest*
12314   eval "ac_cv_func_$ac_func=no"
12315 fi
12316 rm -f conftest*
12317 fi
12318
12319 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12320   echo "$ac_t""yes" 1>&6
12321     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12322   cat >> confdefs.h <<EOF
12323 #define $ac_tr_func 1
12324 EOF
12325  
12326 else
12327   echo "$ac_t""no" 1>&6
12328 fi
12329 done
12330     
12331   else
12332     
12333   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12334 echo "configure:12335: checking for _hypot declaration" >&5
12335   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
12336     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
12337   echo $ac_n "(cached) $ac_c" 1>&6
12338 else
12339   
12340       
12341       ac_ext=C
12342 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12343 ac_cpp='$CXXCPP $CPPFLAGS'
12344 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12345 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12346 cross_compiling=$ac_cv_prog_cxx_cross
12347
12348       cat > conftest.$ac_ext <<EOF
12349 #line 12350 "configure"
12350 #include "confdefs.h"
12351 #include <math.h>
12352 int main() {
12353  _hypot(0, 0);
12354 ; return 0; }
12355 EOF
12356 if { (eval echo configure:12357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12357   rm -rf conftest*
12358   glibcpp_cv_func__hypot_use=yes
12359 else
12360   echo "configure: failed program was:" >&5
12361   cat conftest.$ac_ext >&5
12362   rm -rf conftest*
12363   glibcpp_cv_func__hypot_use=no
12364 fi
12365 rm -f conftest*
12366       ac_ext=c
12367 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12368 ac_cpp='$CPP $CPPFLAGS'
12369 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12370 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12371 cross_compiling=$ac_cv_prog_cc_cross
12372
12373     
12374 fi
12375
12376   fi
12377   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
12378
12379     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
12380       for ac_func in _hypot
12381 do
12382 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12383 echo "configure:12384: checking for $ac_func" >&5
12384 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12385   echo $ac_n "(cached) $ac_c" 1>&6
12386 else
12387   cat > conftest.$ac_ext <<EOF
12388 #line 12389 "configure"
12389 #include "confdefs.h"
12390 /* System header to define __stub macros and hopefully few prototypes,
12391     which can conflict with char $ac_func(); below.  */
12392 #include <assert.h>
12393 /* Override any gcc2 internal prototype to avoid an error.  */
12394 /* We use char because int might match the return type of a gcc2
12395     builtin and then its argument prototype would still apply.  */
12396 char $ac_func();
12397
12398 int main() {
12399
12400 /* The GNU C library defines this for functions which it implements
12401     to always fail with ENOSYS.  Some functions are actually named
12402     something starting with __ and the normal name is an alias.  */
12403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12404 choke me
12405 #else
12406 $ac_func();
12407 #endif
12408
12409 ; return 0; }
12410 EOF
12411 if { (eval echo configure:12412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12412   rm -rf conftest*
12413   eval "ac_cv_func_$ac_func=yes"
12414 else
12415   echo "configure: failed program was:" >&5
12416   cat conftest.$ac_ext >&5
12417   rm -rf conftest*
12418   eval "ac_cv_func_$ac_func=no"
12419 fi
12420 rm -f conftest*
12421 fi
12422
12423 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12424   echo "$ac_t""yes" 1>&6
12425     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12426   cat >> confdefs.h <<EOF
12427 #define $ac_tr_func 1
12428 EOF
12429  
12430 else
12431   echo "$ac_t""no" 1>&6
12432 fi
12433 done
12434     
12435     fi
12436   fi
12437
12438
12439     
12440   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12441 echo "configure:12442: checking for float trig functions" >&5
12442   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
12443   echo $ac_n "(cached) $ac_c" 1>&6
12444 else
12445   
12446     
12447     ac_ext=C
12448 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12449 ac_cpp='$CXXCPP $CPPFLAGS'
12450 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12451 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12452 cross_compiling=$ac_cv_prog_cxx_cross
12453
12454     cat > conftest.$ac_ext <<EOF
12455 #line 12456 "configure"
12456 #include "confdefs.h"
12457 #include <math.h>
12458 int main() {
12459  `for x in acosf asinf atanf \
12460                                           cosf sinf tanf \
12461                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
12462 ; return 0; }
12463 EOF
12464 if { (eval echo configure:12465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12465   rm -rf conftest*
12466   glibcpp_cv_func_float_trig_use=yes
12467 else
12468   echo "configure: failed program was:" >&5
12469   cat conftest.$ac_ext >&5
12470   rm -rf conftest*
12471   glibcpp_cv_func_float_trig_use=no
12472 fi
12473 rm -f conftest*
12474     ac_ext=c
12475 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12476 ac_cpp='$CPP $CPPFLAGS'
12477 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12478 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12479 cross_compiling=$ac_cv_prog_cc_cross
12480
12481 fi
12482
12483   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
12484   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
12485     for ac_func in acosf asinf atanf \
12486                                           cosf sinf tanf \
12487                                           coshf sinhf tanhf
12488 do
12489 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12490 echo "configure:12491: checking for $ac_func" >&5
12491 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12492   echo $ac_n "(cached) $ac_c" 1>&6
12493 else
12494   cat > conftest.$ac_ext <<EOF
12495 #line 12496 "configure"
12496 #include "confdefs.h"
12497 /* System header to define __stub macros and hopefully few prototypes,
12498     which can conflict with char $ac_func(); below.  */
12499 #include <assert.h>
12500 /* Override any gcc2 internal prototype to avoid an error.  */
12501 /* We use char because int might match the return type of a gcc2
12502     builtin and then its argument prototype would still apply.  */
12503 char $ac_func();
12504
12505 int main() {
12506
12507 /* The GNU C library defines this for functions which it implements
12508     to always fail with ENOSYS.  Some functions are actually named
12509     something starting with __ and the normal name is an alias.  */
12510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12511 choke me
12512 #else
12513 $ac_func();
12514 #endif
12515
12516 ; return 0; }
12517 EOF
12518 if { (eval echo configure:12519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12519   rm -rf conftest*
12520   eval "ac_cv_func_$ac_func=yes"
12521 else
12522   echo "configure: failed program was:" >&5
12523   cat conftest.$ac_ext >&5
12524   rm -rf conftest*
12525   eval "ac_cv_func_$ac_func=no"
12526 fi
12527 rm -f conftest*
12528 fi
12529
12530 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12531   echo "$ac_t""yes" 1>&6
12532     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12533   cat >> confdefs.h <<EOF
12534 #define $ac_tr_func 1
12535 EOF
12536  
12537 else
12538   echo "$ac_t""no" 1>&6
12539 fi
12540 done
12541
12542   fi
12543
12544   
12545   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12546 echo "configure:12547: checking for float round functions" >&5
12547   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
12548   echo $ac_n "(cached) $ac_c" 1>&6
12549 else
12550   
12551     
12552     ac_ext=C
12553 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12554 ac_cpp='$CXXCPP $CPPFLAGS'
12555 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12556 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12557 cross_compiling=$ac_cv_prog_cxx_cross
12558
12559     cat > conftest.$ac_ext <<EOF
12560 #line 12561 "configure"
12561 #include "confdefs.h"
12562 #include <math.h>
12563 int main() {
12564  `for x in ceilf floorf; do echo "$x (0);"; done` 
12565 ; return 0; }
12566 EOF
12567 if { (eval echo configure:12568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12568   rm -rf conftest*
12569   glibcpp_cv_func_float_round_use=yes
12570 else
12571   echo "configure: failed program was:" >&5
12572   cat conftest.$ac_ext >&5
12573   rm -rf conftest*
12574   glibcpp_cv_func_float_round_use=no
12575 fi
12576 rm -f conftest*
12577     ac_ext=c
12578 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12579 ac_cpp='$CPP $CPPFLAGS'
12580 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12581 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12582 cross_compiling=$ac_cv_prog_cc_cross
12583
12584 fi
12585
12586   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
12587   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
12588     for ac_func in ceilf floorf
12589 do
12590 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12591 echo "configure:12592: checking for $ac_func" >&5
12592 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12593   echo $ac_n "(cached) $ac_c" 1>&6
12594 else
12595   cat > conftest.$ac_ext <<EOF
12596 #line 12597 "configure"
12597 #include "confdefs.h"
12598 /* System header to define __stub macros and hopefully few prototypes,
12599     which can conflict with char $ac_func(); below.  */
12600 #include <assert.h>
12601 /* Override any gcc2 internal prototype to avoid an error.  */
12602 /* We use char because int might match the return type of a gcc2
12603     builtin and then its argument prototype would still apply.  */
12604 char $ac_func();
12605
12606 int main() {
12607
12608 /* The GNU C library defines this for functions which it implements
12609     to always fail with ENOSYS.  Some functions are actually named
12610     something starting with __ and the normal name is an alias.  */
12611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12612 choke me
12613 #else
12614 $ac_func();
12615 #endif
12616
12617 ; return 0; }
12618 EOF
12619 if { (eval echo configure:12620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12620   rm -rf conftest*
12621   eval "ac_cv_func_$ac_func=yes"
12622 else
12623   echo "configure: failed program was:" >&5
12624   cat conftest.$ac_ext >&5
12625   rm -rf conftest*
12626   eval "ac_cv_func_$ac_func=no"
12627 fi
12628 rm -f conftest*
12629 fi
12630
12631 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12632   echo "$ac_t""yes" 1>&6
12633     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12634   cat >> confdefs.h <<EOF
12635 #define $ac_tr_func 1
12636 EOF
12637  
12638 else
12639   echo "$ac_t""no" 1>&6
12640 fi
12641 done
12642
12643   fi
12644
12645   
12646   
12647   echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12648 echo "configure:12649: checking for expf declaration" >&5
12649   if test x${glibcpp_cv_func_expf_use+set} != xset; then
12650     if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
12651   echo $ac_n "(cached) $ac_c" 1>&6
12652 else
12653   
12654       
12655       ac_ext=C
12656 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12657 ac_cpp='$CXXCPP $CPPFLAGS'
12658 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12659 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12660 cross_compiling=$ac_cv_prog_cxx_cross
12661
12662       cat > conftest.$ac_ext <<EOF
12663 #line 12664 "configure"
12664 #include "confdefs.h"
12665 #include <math.h>
12666                       #ifdef HAVE_IEEEFP_H
12667                       #include <ieeefp.h>
12668                       #endif
12669                      
12670 int main() {
12671  expf(0);
12672 ; return 0; }
12673 EOF
12674 if { (eval echo configure:12675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12675   rm -rf conftest*
12676   glibcpp_cv_func_expf_use=yes
12677 else
12678   echo "configure: failed program was:" >&5
12679   cat conftest.$ac_ext >&5
12680   rm -rf conftest*
12681   glibcpp_cv_func_expf_use=no
12682 fi
12683 rm -f conftest*
12684       ac_ext=c
12685 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12686 ac_cpp='$CPP $CPPFLAGS'
12687 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12688 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12689 cross_compiling=$ac_cv_prog_cc_cross
12690
12691     
12692 fi
12693
12694   fi
12695   echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
12696
12697   if test x$glibcpp_cv_func_expf_use = x"yes"; then
12698     for ac_func in expf
12699 do
12700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12701 echo "configure:12702: checking for $ac_func" >&5
12702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12703   echo $ac_n "(cached) $ac_c" 1>&6
12704 else
12705   cat > conftest.$ac_ext <<EOF
12706 #line 12707 "configure"
12707 #include "confdefs.h"
12708 /* System header to define __stub macros and hopefully few prototypes,
12709     which can conflict with char $ac_func(); below.  */
12710 #include <assert.h>
12711 /* Override any gcc2 internal prototype to avoid an error.  */
12712 /* We use char because int might match the return type of a gcc2
12713     builtin and then its argument prototype would still apply.  */
12714 char $ac_func();
12715
12716 int main() {
12717
12718 /* The GNU C library defines this for functions which it implements
12719     to always fail with ENOSYS.  Some functions are actually named
12720     something starting with __ and the normal name is an alias.  */
12721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12722 choke me
12723 #else
12724 $ac_func();
12725 #endif
12726
12727 ; return 0; }
12728 EOF
12729 if { (eval echo configure:12730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12730   rm -rf conftest*
12731   eval "ac_cv_func_$ac_func=yes"
12732 else
12733   echo "configure: failed program was:" >&5
12734   cat conftest.$ac_ext >&5
12735   rm -rf conftest*
12736   eval "ac_cv_func_$ac_func=no"
12737 fi
12738 rm -f conftest*
12739 fi
12740
12741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12742   echo "$ac_t""yes" 1>&6
12743     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12744   cat >> confdefs.h <<EOF
12745 #define $ac_tr_func 1
12746 EOF
12747  
12748 else
12749   echo "$ac_t""no" 1>&6
12750 fi
12751 done
12752     
12753   else
12754     
12755   echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12756 echo "configure:12757: checking for _expf declaration" >&5
12757   if test x${glibcpp_cv_func__expf_use+set} != xset; then
12758     if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12759   echo $ac_n "(cached) $ac_c" 1>&6
12760 else
12761   
12762       
12763       ac_ext=C
12764 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12765 ac_cpp='$CXXCPP $CPPFLAGS'
12766 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12767 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12768 cross_compiling=$ac_cv_prog_cxx_cross
12769
12770       cat > conftest.$ac_ext <<EOF
12771 #line 12772 "configure"
12772 #include "confdefs.h"
12773 #include <math.h>
12774                       #ifdef HAVE_IEEEFP_H
12775                       #include <ieeefp.h>
12776                       #endif
12777                      
12778 int main() {
12779  _expf(0);
12780 ; return 0; }
12781 EOF
12782 if { (eval echo configure:12783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12783   rm -rf conftest*
12784   glibcpp_cv_func__expf_use=yes
12785 else
12786   echo "configure: failed program was:" >&5
12787   cat conftest.$ac_ext >&5
12788   rm -rf conftest*
12789   glibcpp_cv_func__expf_use=no
12790 fi
12791 rm -f conftest*
12792       ac_ext=c
12793 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12794 ac_cpp='$CPP $CPPFLAGS'
12795 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12796 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12797 cross_compiling=$ac_cv_prog_cc_cross
12798
12799     
12800 fi
12801
12802   fi
12803   echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
12804
12805     if test x$glibcpp_cv_func__expf_use = x"yes"; then
12806       for ac_func in _expf
12807 do
12808 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12809 echo "configure:12810: checking for $ac_func" >&5
12810 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12811   echo $ac_n "(cached) $ac_c" 1>&6
12812 else
12813   cat > conftest.$ac_ext <<EOF
12814 #line 12815 "configure"
12815 #include "confdefs.h"
12816 /* System header to define __stub macros and hopefully few prototypes,
12817     which can conflict with char $ac_func(); below.  */
12818 #include <assert.h>
12819 /* Override any gcc2 internal prototype to avoid an error.  */
12820 /* We use char because int might match the return type of a gcc2
12821     builtin and then its argument prototype would still apply.  */
12822 char $ac_func();
12823
12824 int main() {
12825
12826 /* The GNU C library defines this for functions which it implements
12827     to always fail with ENOSYS.  Some functions are actually named
12828     something starting with __ and the normal name is an alias.  */
12829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12830 choke me
12831 #else
12832 $ac_func();
12833 #endif
12834
12835 ; return 0; }
12836 EOF
12837 if { (eval echo configure:12838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12838   rm -rf conftest*
12839   eval "ac_cv_func_$ac_func=yes"
12840 else
12841   echo "configure: failed program was:" >&5
12842   cat conftest.$ac_ext >&5
12843   rm -rf conftest*
12844   eval "ac_cv_func_$ac_func=no"
12845 fi
12846 rm -f conftest*
12847 fi
12848
12849 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12850   echo "$ac_t""yes" 1>&6
12851     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12852   cat >> confdefs.h <<EOF
12853 #define $ac_tr_func 1
12854 EOF
12855  
12856 else
12857   echo "$ac_t""no" 1>&6
12858 fi
12859 done
12860     
12861     fi
12862   fi
12863
12864   
12865   
12866   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
12867 echo "configure:12868: checking for isnanf declaration" >&5
12868   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
12869     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
12870   echo $ac_n "(cached) $ac_c" 1>&6
12871 else
12872   
12873       
12874       ac_ext=C
12875 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12876 ac_cpp='$CXXCPP $CPPFLAGS'
12877 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12878 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12879 cross_compiling=$ac_cv_prog_cxx_cross
12880
12881       cat > conftest.$ac_ext <<EOF
12882 #line 12883 "configure"
12883 #include "confdefs.h"
12884 #include <math.h>
12885                       #ifdef HAVE_IEEEFP_H
12886                       #include <ieeefp.h>
12887                       #endif
12888                      
12889 int main() {
12890  isnanf(0);
12891 ; return 0; }
12892 EOF
12893 if { (eval echo configure:12894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12894   rm -rf conftest*
12895   glibcpp_cv_func_isnanf_use=yes
12896 else
12897   echo "configure: failed program was:" >&5
12898   cat conftest.$ac_ext >&5
12899   rm -rf conftest*
12900   glibcpp_cv_func_isnanf_use=no
12901 fi
12902 rm -f conftest*
12903       ac_ext=c
12904 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12905 ac_cpp='$CPP $CPPFLAGS'
12906 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12907 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12908 cross_compiling=$ac_cv_prog_cc_cross
12909
12910     
12911 fi
12912
12913   fi
12914   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
12915
12916   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
12917     for ac_func in isnanf
12918 do
12919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12920 echo "configure:12921: checking for $ac_func" >&5
12921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12922   echo $ac_n "(cached) $ac_c" 1>&6
12923 else
12924   cat > conftest.$ac_ext <<EOF
12925 #line 12926 "configure"
12926 #include "confdefs.h"
12927 /* System header to define __stub macros and hopefully few prototypes,
12928     which can conflict with char $ac_func(); below.  */
12929 #include <assert.h>
12930 /* Override any gcc2 internal prototype to avoid an error.  */
12931 /* We use char because int might match the return type of a gcc2
12932     builtin and then its argument prototype would still apply.  */
12933 char $ac_func();
12934
12935 int main() {
12936
12937 /* The GNU C library defines this for functions which it implements
12938     to always fail with ENOSYS.  Some functions are actually named
12939     something starting with __ and the normal name is an alias.  */
12940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12941 choke me
12942 #else
12943 $ac_func();
12944 #endif
12945
12946 ; return 0; }
12947 EOF
12948 if { (eval echo configure:12949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12949   rm -rf conftest*
12950   eval "ac_cv_func_$ac_func=yes"
12951 else
12952   echo "configure: failed program was:" >&5
12953   cat conftest.$ac_ext >&5
12954   rm -rf conftest*
12955   eval "ac_cv_func_$ac_func=no"
12956 fi
12957 rm -f conftest*
12958 fi
12959
12960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12961   echo "$ac_t""yes" 1>&6
12962     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12963   cat >> confdefs.h <<EOF
12964 #define $ac_tr_func 1
12965 EOF
12966  
12967 else
12968   echo "$ac_t""no" 1>&6
12969 fi
12970 done
12971     
12972   else
12973     
12974   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
12975 echo "configure:12976: checking for _isnanf declaration" >&5
12976   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
12977     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
12978   echo $ac_n "(cached) $ac_c" 1>&6
12979 else
12980   
12981       
12982       ac_ext=C
12983 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12984 ac_cpp='$CXXCPP $CPPFLAGS'
12985 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12986 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12987 cross_compiling=$ac_cv_prog_cxx_cross
12988
12989       cat > conftest.$ac_ext <<EOF
12990 #line 12991 "configure"
12991 #include "confdefs.h"
12992 #include <math.h>
12993                       #ifdef HAVE_IEEEFP_H
12994                       #include <ieeefp.h>
12995                       #endif
12996                      
12997 int main() {
12998  _isnanf(0);
12999 ; return 0; }
13000 EOF
13001 if { (eval echo configure:13002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13002   rm -rf conftest*
13003   glibcpp_cv_func__isnanf_use=yes
13004 else
13005   echo "configure: failed program was:" >&5
13006   cat conftest.$ac_ext >&5
13007   rm -rf conftest*
13008   glibcpp_cv_func__isnanf_use=no
13009 fi
13010 rm -f conftest*
13011       ac_ext=c
13012 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13013 ac_cpp='$CPP $CPPFLAGS'
13014 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13015 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13016 cross_compiling=$ac_cv_prog_cc_cross
13017
13018     
13019 fi
13020
13021   fi
13022   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
13023
13024     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
13025       for ac_func in _isnanf
13026 do
13027 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13028 echo "configure:13029: checking for $ac_func" >&5
13029 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13030   echo $ac_n "(cached) $ac_c" 1>&6
13031 else
13032   cat > conftest.$ac_ext <<EOF
13033 #line 13034 "configure"
13034 #include "confdefs.h"
13035 /* System header to define __stub macros and hopefully few prototypes,
13036     which can conflict with char $ac_func(); below.  */
13037 #include <assert.h>
13038 /* Override any gcc2 internal prototype to avoid an error.  */
13039 /* We use char because int might match the return type of a gcc2
13040     builtin and then its argument prototype would still apply.  */
13041 char $ac_func();
13042
13043 int main() {
13044
13045 /* The GNU C library defines this for functions which it implements
13046     to always fail with ENOSYS.  Some functions are actually named
13047     something starting with __ and the normal name is an alias.  */
13048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13049 choke me
13050 #else
13051 $ac_func();
13052 #endif
13053
13054 ; return 0; }
13055 EOF
13056 if { (eval echo configure:13057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13057   rm -rf conftest*
13058   eval "ac_cv_func_$ac_func=yes"
13059 else
13060   echo "configure: failed program was:" >&5
13061   cat conftest.$ac_ext >&5
13062   rm -rf conftest*
13063   eval "ac_cv_func_$ac_func=no"
13064 fi
13065 rm -f conftest*
13066 fi
13067
13068 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13069   echo "$ac_t""yes" 1>&6
13070     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13071   cat >> confdefs.h <<EOF
13072 #define $ac_tr_func 1
13073 EOF
13074  
13075 else
13076   echo "$ac_t""no" 1>&6
13077 fi
13078 done
13079     
13080     fi
13081   fi
13082
13083   
13084   
13085   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13086 echo "configure:13087: checking for isinff declaration" >&5
13087   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
13088     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
13089   echo $ac_n "(cached) $ac_c" 1>&6
13090 else
13091   
13092       
13093       ac_ext=C
13094 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13095 ac_cpp='$CXXCPP $CPPFLAGS'
13096 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13097 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13098 cross_compiling=$ac_cv_prog_cxx_cross
13099
13100       cat > conftest.$ac_ext <<EOF
13101 #line 13102 "configure"
13102 #include "confdefs.h"
13103 #include <math.h>
13104                       #ifdef HAVE_IEEEFP_H
13105                       #include <ieeefp.h>
13106                       #endif
13107                      
13108 int main() {
13109  isinff(0);
13110 ; return 0; }
13111 EOF
13112 if { (eval echo configure:13113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13113   rm -rf conftest*
13114   glibcpp_cv_func_isinff_use=yes
13115 else
13116   echo "configure: failed program was:" >&5
13117   cat conftest.$ac_ext >&5
13118   rm -rf conftest*
13119   glibcpp_cv_func_isinff_use=no
13120 fi
13121 rm -f conftest*
13122       ac_ext=c
13123 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13124 ac_cpp='$CPP $CPPFLAGS'
13125 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13126 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13127 cross_compiling=$ac_cv_prog_cc_cross
13128
13129     
13130 fi
13131
13132   fi
13133   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
13134
13135   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
13136     for ac_func in isinff
13137 do
13138 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13139 echo "configure:13140: checking for $ac_func" >&5
13140 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13141   echo $ac_n "(cached) $ac_c" 1>&6
13142 else
13143   cat > conftest.$ac_ext <<EOF
13144 #line 13145 "configure"
13145 #include "confdefs.h"
13146 /* System header to define __stub macros and hopefully few prototypes,
13147     which can conflict with char $ac_func(); below.  */
13148 #include <assert.h>
13149 /* Override any gcc2 internal prototype to avoid an error.  */
13150 /* We use char because int might match the return type of a gcc2
13151     builtin and then its argument prototype would still apply.  */
13152 char $ac_func();
13153
13154 int main() {
13155
13156 /* The GNU C library defines this for functions which it implements
13157     to always fail with ENOSYS.  Some functions are actually named
13158     something starting with __ and the normal name is an alias.  */
13159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13160 choke me
13161 #else
13162 $ac_func();
13163 #endif
13164
13165 ; return 0; }
13166 EOF
13167 if { (eval echo configure:13168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13168   rm -rf conftest*
13169   eval "ac_cv_func_$ac_func=yes"
13170 else
13171   echo "configure: failed program was:" >&5
13172   cat conftest.$ac_ext >&5
13173   rm -rf conftest*
13174   eval "ac_cv_func_$ac_func=no"
13175 fi
13176 rm -f conftest*
13177 fi
13178
13179 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13180   echo "$ac_t""yes" 1>&6
13181     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13182   cat >> confdefs.h <<EOF
13183 #define $ac_tr_func 1
13184 EOF
13185  
13186 else
13187   echo "$ac_t""no" 1>&6
13188 fi
13189 done
13190     
13191   else
13192     
13193   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13194 echo "configure:13195: checking for _isinff declaration" >&5
13195   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
13196     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
13197   echo $ac_n "(cached) $ac_c" 1>&6
13198 else
13199   
13200       
13201       ac_ext=C
13202 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13203 ac_cpp='$CXXCPP $CPPFLAGS'
13204 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13205 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13206 cross_compiling=$ac_cv_prog_cxx_cross
13207
13208       cat > conftest.$ac_ext <<EOF
13209 #line 13210 "configure"
13210 #include "confdefs.h"
13211 #include <math.h>
13212                       #ifdef HAVE_IEEEFP_H
13213                       #include <ieeefp.h>
13214                       #endif
13215                      
13216 int main() {
13217  _isinff(0);
13218 ; return 0; }
13219 EOF
13220 if { (eval echo configure:13221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13221   rm -rf conftest*
13222   glibcpp_cv_func__isinff_use=yes
13223 else
13224   echo "configure: failed program was:" >&5
13225   cat conftest.$ac_ext >&5
13226   rm -rf conftest*
13227   glibcpp_cv_func__isinff_use=no
13228 fi
13229 rm -f conftest*
13230       ac_ext=c
13231 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13232 ac_cpp='$CPP $CPPFLAGS'
13233 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13234 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13235 cross_compiling=$ac_cv_prog_cc_cross
13236
13237     
13238 fi
13239
13240   fi
13241   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
13242
13243     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
13244       for ac_func in _isinff
13245 do
13246 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13247 echo "configure:13248: checking for $ac_func" >&5
13248 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13249   echo $ac_n "(cached) $ac_c" 1>&6
13250 else
13251   cat > conftest.$ac_ext <<EOF
13252 #line 13253 "configure"
13253 #include "confdefs.h"
13254 /* System header to define __stub macros and hopefully few prototypes,
13255     which can conflict with char $ac_func(); below.  */
13256 #include <assert.h>
13257 /* Override any gcc2 internal prototype to avoid an error.  */
13258 /* We use char because int might match the return type of a gcc2
13259     builtin and then its argument prototype would still apply.  */
13260 char $ac_func();
13261
13262 int main() {
13263
13264 /* The GNU C library defines this for functions which it implements
13265     to always fail with ENOSYS.  Some functions are actually named
13266     something starting with __ and the normal name is an alias.  */
13267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13268 choke me
13269 #else
13270 $ac_func();
13271 #endif
13272
13273 ; return 0; }
13274 EOF
13275 if { (eval echo configure:13276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13276   rm -rf conftest*
13277   eval "ac_cv_func_$ac_func=yes"
13278 else
13279   echo "configure: failed program was:" >&5
13280   cat conftest.$ac_ext >&5
13281   rm -rf conftest*
13282   eval "ac_cv_func_$ac_func=no"
13283 fi
13284 rm -f conftest*
13285 fi
13286
13287 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13288   echo "$ac_t""yes" 1>&6
13289     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13290   cat >> confdefs.h <<EOF
13291 #define $ac_tr_func 1
13292 EOF
13293  
13294 else
13295   echo "$ac_t""no" 1>&6
13296 fi
13297 done
13298     
13299     fi
13300   fi
13301
13302   
13303   
13304   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13305 echo "configure:13306: checking for atan2f declaration" >&5
13306   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
13307     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
13308   echo $ac_n "(cached) $ac_c" 1>&6
13309 else
13310   
13311       
13312       ac_ext=C
13313 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13314 ac_cpp='$CXXCPP $CPPFLAGS'
13315 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13316 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13317 cross_compiling=$ac_cv_prog_cxx_cross
13318
13319       cat > conftest.$ac_ext <<EOF
13320 #line 13321 "configure"
13321 #include "confdefs.h"
13322 #include <math.h>
13323 int main() {
13324  atan2f(0, 0);
13325 ; return 0; }
13326 EOF
13327 if { (eval echo configure:13328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13328   rm -rf conftest*
13329   glibcpp_cv_func_atan2f_use=yes
13330 else
13331   echo "configure: failed program was:" >&5
13332   cat conftest.$ac_ext >&5
13333   rm -rf conftest*
13334   glibcpp_cv_func_atan2f_use=no
13335 fi
13336 rm -f conftest*
13337       ac_ext=c
13338 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13339 ac_cpp='$CPP $CPPFLAGS'
13340 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13341 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13342 cross_compiling=$ac_cv_prog_cc_cross
13343
13344     
13345 fi
13346
13347   fi
13348   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
13349
13350   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
13351     for ac_func in atan2f
13352 do
13353 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13354 echo "configure:13355: checking for $ac_func" >&5
13355 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13356   echo $ac_n "(cached) $ac_c" 1>&6
13357 else
13358   cat > conftest.$ac_ext <<EOF
13359 #line 13360 "configure"
13360 #include "confdefs.h"
13361 /* System header to define __stub macros and hopefully few prototypes,
13362     which can conflict with char $ac_func(); below.  */
13363 #include <assert.h>
13364 /* Override any gcc2 internal prototype to avoid an error.  */
13365 /* We use char because int might match the return type of a gcc2
13366     builtin and then its argument prototype would still apply.  */
13367 char $ac_func();
13368
13369 int main() {
13370
13371 /* The GNU C library defines this for functions which it implements
13372     to always fail with ENOSYS.  Some functions are actually named
13373     something starting with __ and the normal name is an alias.  */
13374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13375 choke me
13376 #else
13377 $ac_func();
13378 #endif
13379
13380 ; return 0; }
13381 EOF
13382 if { (eval echo configure:13383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13383   rm -rf conftest*
13384   eval "ac_cv_func_$ac_func=yes"
13385 else
13386   echo "configure: failed program was:" >&5
13387   cat conftest.$ac_ext >&5
13388   rm -rf conftest*
13389   eval "ac_cv_func_$ac_func=no"
13390 fi
13391 rm -f conftest*
13392 fi
13393
13394 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13395   echo "$ac_t""yes" 1>&6
13396     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13397   cat >> confdefs.h <<EOF
13398 #define $ac_tr_func 1
13399 EOF
13400  
13401 else
13402   echo "$ac_t""no" 1>&6
13403 fi
13404 done
13405     
13406   else
13407     
13408   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13409 echo "configure:13410: checking for _atan2f declaration" >&5
13410   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
13411     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
13412   echo $ac_n "(cached) $ac_c" 1>&6
13413 else
13414   
13415       
13416       ac_ext=C
13417 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13418 ac_cpp='$CXXCPP $CPPFLAGS'
13419 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13420 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13421 cross_compiling=$ac_cv_prog_cxx_cross
13422
13423       cat > conftest.$ac_ext <<EOF
13424 #line 13425 "configure"
13425 #include "confdefs.h"
13426 #include <math.h>
13427 int main() {
13428  _atan2f(0, 0);
13429 ; return 0; }
13430 EOF
13431 if { (eval echo configure:13432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13432   rm -rf conftest*
13433   glibcpp_cv_func__atan2f_use=yes
13434 else
13435   echo "configure: failed program was:" >&5
13436   cat conftest.$ac_ext >&5
13437   rm -rf conftest*
13438   glibcpp_cv_func__atan2f_use=no
13439 fi
13440 rm -f conftest*
13441       ac_ext=c
13442 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13443 ac_cpp='$CPP $CPPFLAGS'
13444 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13445 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13446 cross_compiling=$ac_cv_prog_cc_cross
13447
13448     
13449 fi
13450
13451   fi
13452   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
13453
13454     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
13455       for ac_func in _atan2f
13456 do
13457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13458 echo "configure:13459: checking for $ac_func" >&5
13459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13460   echo $ac_n "(cached) $ac_c" 1>&6
13461 else
13462   cat > conftest.$ac_ext <<EOF
13463 #line 13464 "configure"
13464 #include "confdefs.h"
13465 /* System header to define __stub macros and hopefully few prototypes,
13466     which can conflict with char $ac_func(); below.  */
13467 #include <assert.h>
13468 /* Override any gcc2 internal prototype to avoid an error.  */
13469 /* We use char because int might match the return type of a gcc2
13470     builtin and then its argument prototype would still apply.  */
13471 char $ac_func();
13472
13473 int main() {
13474
13475 /* The GNU C library defines this for functions which it implements
13476     to always fail with ENOSYS.  Some functions are actually named
13477     something starting with __ and the normal name is an alias.  */
13478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13479 choke me
13480 #else
13481 $ac_func();
13482 #endif
13483
13484 ; return 0; }
13485 EOF
13486 if { (eval echo configure:13487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13487   rm -rf conftest*
13488   eval "ac_cv_func_$ac_func=yes"
13489 else
13490   echo "configure: failed program was:" >&5
13491   cat conftest.$ac_ext >&5
13492   rm -rf conftest*
13493   eval "ac_cv_func_$ac_func=no"
13494 fi
13495 rm -f conftest*
13496 fi
13497
13498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13499   echo "$ac_t""yes" 1>&6
13500     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13501   cat >> confdefs.h <<EOF
13502 #define $ac_tr_func 1
13503 EOF
13504  
13505 else
13506   echo "$ac_t""no" 1>&6
13507 fi
13508 done
13509     
13510     fi
13511   fi
13512
13513   
13514   
13515   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13516 echo "configure:13517: checking for fabsf declaration" >&5
13517   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
13518     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
13519   echo $ac_n "(cached) $ac_c" 1>&6
13520 else
13521   
13522       
13523       ac_ext=C
13524 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13525 ac_cpp='$CXXCPP $CPPFLAGS'
13526 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13527 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13528 cross_compiling=$ac_cv_prog_cxx_cross
13529
13530       cat > conftest.$ac_ext <<EOF
13531 #line 13532 "configure"
13532 #include "confdefs.h"
13533 #include <math.h>
13534                       #ifdef HAVE_IEEEFP_H
13535                       #include <ieeefp.h>
13536                       #endif
13537                      
13538 int main() {
13539  fabsf(0);
13540 ; return 0; }
13541 EOF
13542 if { (eval echo configure:13543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13543   rm -rf conftest*
13544   glibcpp_cv_func_fabsf_use=yes
13545 else
13546   echo "configure: failed program was:" >&5
13547   cat conftest.$ac_ext >&5
13548   rm -rf conftest*
13549   glibcpp_cv_func_fabsf_use=no
13550 fi
13551 rm -f conftest*
13552       ac_ext=c
13553 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13554 ac_cpp='$CPP $CPPFLAGS'
13555 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13556 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13557 cross_compiling=$ac_cv_prog_cc_cross
13558
13559     
13560 fi
13561
13562   fi
13563   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
13564
13565   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
13566     for ac_func in fabsf
13567 do
13568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13569 echo "configure:13570: checking for $ac_func" >&5
13570 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13571   echo $ac_n "(cached) $ac_c" 1>&6
13572 else
13573   cat > conftest.$ac_ext <<EOF
13574 #line 13575 "configure"
13575 #include "confdefs.h"
13576 /* System header to define __stub macros and hopefully few prototypes,
13577     which can conflict with char $ac_func(); below.  */
13578 #include <assert.h>
13579 /* Override any gcc2 internal prototype to avoid an error.  */
13580 /* We use char because int might match the return type of a gcc2
13581     builtin and then its argument prototype would still apply.  */
13582 char $ac_func();
13583
13584 int main() {
13585
13586 /* The GNU C library defines this for functions which it implements
13587     to always fail with ENOSYS.  Some functions are actually named
13588     something starting with __ and the normal name is an alias.  */
13589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13590 choke me
13591 #else
13592 $ac_func();
13593 #endif
13594
13595 ; return 0; }
13596 EOF
13597 if { (eval echo configure:13598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13598   rm -rf conftest*
13599   eval "ac_cv_func_$ac_func=yes"
13600 else
13601   echo "configure: failed program was:" >&5
13602   cat conftest.$ac_ext >&5
13603   rm -rf conftest*
13604   eval "ac_cv_func_$ac_func=no"
13605 fi
13606 rm -f conftest*
13607 fi
13608
13609 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13610   echo "$ac_t""yes" 1>&6
13611     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13612   cat >> confdefs.h <<EOF
13613 #define $ac_tr_func 1
13614 EOF
13615  
13616 else
13617   echo "$ac_t""no" 1>&6
13618 fi
13619 done
13620     
13621   else
13622     
13623   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13624 echo "configure:13625: checking for _fabsf declaration" >&5
13625   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
13626     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
13627   echo $ac_n "(cached) $ac_c" 1>&6
13628 else
13629   
13630       
13631       ac_ext=C
13632 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13633 ac_cpp='$CXXCPP $CPPFLAGS'
13634 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13635 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13636 cross_compiling=$ac_cv_prog_cxx_cross
13637
13638       cat > conftest.$ac_ext <<EOF
13639 #line 13640 "configure"
13640 #include "confdefs.h"
13641 #include <math.h>
13642                       #ifdef HAVE_IEEEFP_H
13643                       #include <ieeefp.h>
13644                       #endif
13645                      
13646 int main() {
13647  _fabsf(0);
13648 ; return 0; }
13649 EOF
13650 if { (eval echo configure:13651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13651   rm -rf conftest*
13652   glibcpp_cv_func__fabsf_use=yes
13653 else
13654   echo "configure: failed program was:" >&5
13655   cat conftest.$ac_ext >&5
13656   rm -rf conftest*
13657   glibcpp_cv_func__fabsf_use=no
13658 fi
13659 rm -f conftest*
13660       ac_ext=c
13661 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13662 ac_cpp='$CPP $CPPFLAGS'
13663 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13664 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13665 cross_compiling=$ac_cv_prog_cc_cross
13666
13667     
13668 fi
13669
13670   fi
13671   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
13672
13673     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
13674       for ac_func in _fabsf
13675 do
13676 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13677 echo "configure:13678: checking for $ac_func" >&5
13678 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13679   echo $ac_n "(cached) $ac_c" 1>&6
13680 else
13681   cat > conftest.$ac_ext <<EOF
13682 #line 13683 "configure"
13683 #include "confdefs.h"
13684 /* System header to define __stub macros and hopefully few prototypes,
13685     which can conflict with char $ac_func(); below.  */
13686 #include <assert.h>
13687 /* Override any gcc2 internal prototype to avoid an error.  */
13688 /* We use char because int might match the return type of a gcc2
13689     builtin and then its argument prototype would still apply.  */
13690 char $ac_func();
13691
13692 int main() {
13693
13694 /* The GNU C library defines this for functions which it implements
13695     to always fail with ENOSYS.  Some functions are actually named
13696     something starting with __ and the normal name is an alias.  */
13697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13698 choke me
13699 #else
13700 $ac_func();
13701 #endif
13702
13703 ; return 0; }
13704 EOF
13705 if { (eval echo configure:13706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13706   rm -rf conftest*
13707   eval "ac_cv_func_$ac_func=yes"
13708 else
13709   echo "configure: failed program was:" >&5
13710   cat conftest.$ac_ext >&5
13711   rm -rf conftest*
13712   eval "ac_cv_func_$ac_func=no"
13713 fi
13714 rm -f conftest*
13715 fi
13716
13717 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13718   echo "$ac_t""yes" 1>&6
13719     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13720   cat >> confdefs.h <<EOF
13721 #define $ac_tr_func 1
13722 EOF
13723  
13724 else
13725   echo "$ac_t""no" 1>&6
13726 fi
13727 done
13728     
13729     fi
13730   fi
13731
13732   
13733   
13734   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13735 echo "configure:13736: checking for fmodf declaration" >&5
13736   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
13737     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
13738   echo $ac_n "(cached) $ac_c" 1>&6
13739 else
13740   
13741       
13742       ac_ext=C
13743 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13744 ac_cpp='$CXXCPP $CPPFLAGS'
13745 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13746 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13747 cross_compiling=$ac_cv_prog_cxx_cross
13748
13749       cat > conftest.$ac_ext <<EOF
13750 #line 13751 "configure"
13751 #include "confdefs.h"
13752 #include <math.h>
13753 int main() {
13754  fmodf(0, 0);
13755 ; return 0; }
13756 EOF
13757 if { (eval echo configure:13758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13758   rm -rf conftest*
13759   glibcpp_cv_func_fmodf_use=yes
13760 else
13761   echo "configure: failed program was:" >&5
13762   cat conftest.$ac_ext >&5
13763   rm -rf conftest*
13764   glibcpp_cv_func_fmodf_use=no
13765 fi
13766 rm -f conftest*
13767       ac_ext=c
13768 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13769 ac_cpp='$CPP $CPPFLAGS'
13770 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13771 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13772 cross_compiling=$ac_cv_prog_cc_cross
13773
13774     
13775 fi
13776
13777   fi
13778   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
13779
13780   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
13781     for ac_func in fmodf
13782 do
13783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13784 echo "configure:13785: checking for $ac_func" >&5
13785 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13786   echo $ac_n "(cached) $ac_c" 1>&6
13787 else
13788   cat > conftest.$ac_ext <<EOF
13789 #line 13790 "configure"
13790 #include "confdefs.h"
13791 /* System header to define __stub macros and hopefully few prototypes,
13792     which can conflict with char $ac_func(); below.  */
13793 #include <assert.h>
13794 /* Override any gcc2 internal prototype to avoid an error.  */
13795 /* We use char because int might match the return type of a gcc2
13796     builtin and then its argument prototype would still apply.  */
13797 char $ac_func();
13798
13799 int main() {
13800
13801 /* The GNU C library defines this for functions which it implements
13802     to always fail with ENOSYS.  Some functions are actually named
13803     something starting with __ and the normal name is an alias.  */
13804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13805 choke me
13806 #else
13807 $ac_func();
13808 #endif
13809
13810 ; return 0; }
13811 EOF
13812 if { (eval echo configure:13813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13813   rm -rf conftest*
13814   eval "ac_cv_func_$ac_func=yes"
13815 else
13816   echo "configure: failed program was:" >&5
13817   cat conftest.$ac_ext >&5
13818   rm -rf conftest*
13819   eval "ac_cv_func_$ac_func=no"
13820 fi
13821 rm -f conftest*
13822 fi
13823
13824 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13825   echo "$ac_t""yes" 1>&6
13826     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13827   cat >> confdefs.h <<EOF
13828 #define $ac_tr_func 1
13829 EOF
13830  
13831 else
13832   echo "$ac_t""no" 1>&6
13833 fi
13834 done
13835     
13836   else
13837     
13838   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
13839 echo "configure:13840: checking for _fmodf declaration" >&5
13840   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
13841     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
13842   echo $ac_n "(cached) $ac_c" 1>&6
13843 else
13844   
13845       
13846       ac_ext=C
13847 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13848 ac_cpp='$CXXCPP $CPPFLAGS'
13849 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13850 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13851 cross_compiling=$ac_cv_prog_cxx_cross
13852
13853       cat > conftest.$ac_ext <<EOF
13854 #line 13855 "configure"
13855 #include "confdefs.h"
13856 #include <math.h>
13857 int main() {
13858  _fmodf(0, 0);
13859 ; return 0; }
13860 EOF
13861 if { (eval echo configure:13862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13862   rm -rf conftest*
13863   glibcpp_cv_func__fmodf_use=yes
13864 else
13865   echo "configure: failed program was:" >&5
13866   cat conftest.$ac_ext >&5
13867   rm -rf conftest*
13868   glibcpp_cv_func__fmodf_use=no
13869 fi
13870 rm -f conftest*
13871       ac_ext=c
13872 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13873 ac_cpp='$CPP $CPPFLAGS'
13874 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13875 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13876 cross_compiling=$ac_cv_prog_cc_cross
13877
13878     
13879 fi
13880
13881   fi
13882   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
13883
13884     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
13885       for ac_func in _fmodf
13886 do
13887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13888 echo "configure:13889: checking for $ac_func" >&5
13889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13890   echo $ac_n "(cached) $ac_c" 1>&6
13891 else
13892   cat > conftest.$ac_ext <<EOF
13893 #line 13894 "configure"
13894 #include "confdefs.h"
13895 /* System header to define __stub macros and hopefully few prototypes,
13896     which can conflict with char $ac_func(); below.  */
13897 #include <assert.h>
13898 /* Override any gcc2 internal prototype to avoid an error.  */
13899 /* We use char because int might match the return type of a gcc2
13900     builtin and then its argument prototype would still apply.  */
13901 char $ac_func();
13902
13903 int main() {
13904
13905 /* The GNU C library defines this for functions which it implements
13906     to always fail with ENOSYS.  Some functions are actually named
13907     something starting with __ and the normal name is an alias.  */
13908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13909 choke me
13910 #else
13911 $ac_func();
13912 #endif
13913
13914 ; return 0; }
13915 EOF
13916 if { (eval echo configure:13917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13917   rm -rf conftest*
13918   eval "ac_cv_func_$ac_func=yes"
13919 else
13920   echo "configure: failed program was:" >&5
13921   cat conftest.$ac_ext >&5
13922   rm -rf conftest*
13923   eval "ac_cv_func_$ac_func=no"
13924 fi
13925 rm -f conftest*
13926 fi
13927
13928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13929   echo "$ac_t""yes" 1>&6
13930     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13931   cat >> confdefs.h <<EOF
13932 #define $ac_tr_func 1
13933 EOF
13934  
13935 else
13936   echo "$ac_t""no" 1>&6
13937 fi
13938 done
13939     
13940     fi
13941   fi
13942
13943   
13944   
13945   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
13946 echo "configure:13947: checking for frexpf declaration" >&5
13947   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
13948     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
13949   echo $ac_n "(cached) $ac_c" 1>&6
13950 else
13951   
13952       
13953       ac_ext=C
13954 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13955 ac_cpp='$CXXCPP $CPPFLAGS'
13956 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13957 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13958 cross_compiling=$ac_cv_prog_cxx_cross
13959
13960       cat > conftest.$ac_ext <<EOF
13961 #line 13962 "configure"
13962 #include "confdefs.h"
13963 #include <math.h>
13964 int main() {
13965  frexpf(0, 0);
13966 ; return 0; }
13967 EOF
13968 if { (eval echo configure:13969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13969   rm -rf conftest*
13970   glibcpp_cv_func_frexpf_use=yes
13971 else
13972   echo "configure: failed program was:" >&5
13973   cat conftest.$ac_ext >&5
13974   rm -rf conftest*
13975   glibcpp_cv_func_frexpf_use=no
13976 fi
13977 rm -f conftest*
13978       ac_ext=c
13979 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13980 ac_cpp='$CPP $CPPFLAGS'
13981 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13982 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13983 cross_compiling=$ac_cv_prog_cc_cross
13984
13985     
13986 fi
13987
13988   fi
13989   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
13990
13991   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
13992     for ac_func in frexpf
13993 do
13994 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13995 echo "configure:13996: checking for $ac_func" >&5
13996 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13997   echo $ac_n "(cached) $ac_c" 1>&6
13998 else
13999   cat > conftest.$ac_ext <<EOF
14000 #line 14001 "configure"
14001 #include "confdefs.h"
14002 /* System header to define __stub macros and hopefully few prototypes,
14003     which can conflict with char $ac_func(); below.  */
14004 #include <assert.h>
14005 /* Override any gcc2 internal prototype to avoid an error.  */
14006 /* We use char because int might match the return type of a gcc2
14007     builtin and then its argument prototype would still apply.  */
14008 char $ac_func();
14009
14010 int main() {
14011
14012 /* The GNU C library defines this for functions which it implements
14013     to always fail with ENOSYS.  Some functions are actually named
14014     something starting with __ and the normal name is an alias.  */
14015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14016 choke me
14017 #else
14018 $ac_func();
14019 #endif
14020
14021 ; return 0; }
14022 EOF
14023 if { (eval echo configure:14024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14024   rm -rf conftest*
14025   eval "ac_cv_func_$ac_func=yes"
14026 else
14027   echo "configure: failed program was:" >&5
14028   cat conftest.$ac_ext >&5
14029   rm -rf conftest*
14030   eval "ac_cv_func_$ac_func=no"
14031 fi
14032 rm -f conftest*
14033 fi
14034
14035 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14036   echo "$ac_t""yes" 1>&6
14037     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14038   cat >> confdefs.h <<EOF
14039 #define $ac_tr_func 1
14040 EOF
14041  
14042 else
14043   echo "$ac_t""no" 1>&6
14044 fi
14045 done
14046     
14047   else
14048     
14049   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14050 echo "configure:14051: checking for _frexpf declaration" >&5
14051   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
14052     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
14053   echo $ac_n "(cached) $ac_c" 1>&6
14054 else
14055   
14056       
14057       ac_ext=C
14058 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14059 ac_cpp='$CXXCPP $CPPFLAGS'
14060 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14061 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14062 cross_compiling=$ac_cv_prog_cxx_cross
14063
14064       cat > conftest.$ac_ext <<EOF
14065 #line 14066 "configure"
14066 #include "confdefs.h"
14067 #include <math.h>
14068 int main() {
14069  _frexpf(0, 0);
14070 ; return 0; }
14071 EOF
14072 if { (eval echo configure:14073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14073   rm -rf conftest*
14074   glibcpp_cv_func__frexpf_use=yes
14075 else
14076   echo "configure: failed program was:" >&5
14077   cat conftest.$ac_ext >&5
14078   rm -rf conftest*
14079   glibcpp_cv_func__frexpf_use=no
14080 fi
14081 rm -f conftest*
14082       ac_ext=c
14083 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14084 ac_cpp='$CPP $CPPFLAGS'
14085 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14086 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14087 cross_compiling=$ac_cv_prog_cc_cross
14088
14089     
14090 fi
14091
14092   fi
14093   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
14094
14095     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
14096       for ac_func in _frexpf
14097 do
14098 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14099 echo "configure:14100: checking for $ac_func" >&5
14100 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14101   echo $ac_n "(cached) $ac_c" 1>&6
14102 else
14103   cat > conftest.$ac_ext <<EOF
14104 #line 14105 "configure"
14105 #include "confdefs.h"
14106 /* System header to define __stub macros and hopefully few prototypes,
14107     which can conflict with char $ac_func(); below.  */
14108 #include <assert.h>
14109 /* Override any gcc2 internal prototype to avoid an error.  */
14110 /* We use char because int might match the return type of a gcc2
14111     builtin and then its argument prototype would still apply.  */
14112 char $ac_func();
14113
14114 int main() {
14115
14116 /* The GNU C library defines this for functions which it implements
14117     to always fail with ENOSYS.  Some functions are actually named
14118     something starting with __ and the normal name is an alias.  */
14119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14120 choke me
14121 #else
14122 $ac_func();
14123 #endif
14124
14125 ; return 0; }
14126 EOF
14127 if { (eval echo configure:14128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14128   rm -rf conftest*
14129   eval "ac_cv_func_$ac_func=yes"
14130 else
14131   echo "configure: failed program was:" >&5
14132   cat conftest.$ac_ext >&5
14133   rm -rf conftest*
14134   eval "ac_cv_func_$ac_func=no"
14135 fi
14136 rm -f conftest*
14137 fi
14138
14139 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14140   echo "$ac_t""yes" 1>&6
14141     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14142   cat >> confdefs.h <<EOF
14143 #define $ac_tr_func 1
14144 EOF
14145  
14146 else
14147   echo "$ac_t""no" 1>&6
14148 fi
14149 done
14150     
14151     fi
14152   fi
14153
14154   
14155   
14156   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14157 echo "configure:14158: checking for hypotf declaration" >&5
14158   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
14159     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
14160   echo $ac_n "(cached) $ac_c" 1>&6
14161 else
14162   
14163       
14164       ac_ext=C
14165 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14166 ac_cpp='$CXXCPP $CPPFLAGS'
14167 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14168 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14169 cross_compiling=$ac_cv_prog_cxx_cross
14170
14171       cat > conftest.$ac_ext <<EOF
14172 #line 14173 "configure"
14173 #include "confdefs.h"
14174 #include <math.h>
14175 int main() {
14176  hypotf(0, 0);
14177 ; return 0; }
14178 EOF
14179 if { (eval echo configure:14180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14180   rm -rf conftest*
14181   glibcpp_cv_func_hypotf_use=yes
14182 else
14183   echo "configure: failed program was:" >&5
14184   cat conftest.$ac_ext >&5
14185   rm -rf conftest*
14186   glibcpp_cv_func_hypotf_use=no
14187 fi
14188 rm -f conftest*
14189       ac_ext=c
14190 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14191 ac_cpp='$CPP $CPPFLAGS'
14192 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14193 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14194 cross_compiling=$ac_cv_prog_cc_cross
14195
14196     
14197 fi
14198
14199   fi
14200   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
14201
14202   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
14203     for ac_func in hypotf
14204 do
14205 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14206 echo "configure:14207: checking for $ac_func" >&5
14207 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14208   echo $ac_n "(cached) $ac_c" 1>&6
14209 else
14210   cat > conftest.$ac_ext <<EOF
14211 #line 14212 "configure"
14212 #include "confdefs.h"
14213 /* System header to define __stub macros and hopefully few prototypes,
14214     which can conflict with char $ac_func(); below.  */
14215 #include <assert.h>
14216 /* Override any gcc2 internal prototype to avoid an error.  */
14217 /* We use char because int might match the return type of a gcc2
14218     builtin and then its argument prototype would still apply.  */
14219 char $ac_func();
14220
14221 int main() {
14222
14223 /* The GNU C library defines this for functions which it implements
14224     to always fail with ENOSYS.  Some functions are actually named
14225     something starting with __ and the normal name is an alias.  */
14226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14227 choke me
14228 #else
14229 $ac_func();
14230 #endif
14231
14232 ; return 0; }
14233 EOF
14234 if { (eval echo configure:14235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14235   rm -rf conftest*
14236   eval "ac_cv_func_$ac_func=yes"
14237 else
14238   echo "configure: failed program was:" >&5
14239   cat conftest.$ac_ext >&5
14240   rm -rf conftest*
14241   eval "ac_cv_func_$ac_func=no"
14242 fi
14243 rm -f conftest*
14244 fi
14245
14246 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14247   echo "$ac_t""yes" 1>&6
14248     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14249   cat >> confdefs.h <<EOF
14250 #define $ac_tr_func 1
14251 EOF
14252  
14253 else
14254   echo "$ac_t""no" 1>&6
14255 fi
14256 done
14257     
14258   else
14259     
14260   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14261 echo "configure:14262: checking for _hypotf declaration" >&5
14262   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
14263     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
14264   echo $ac_n "(cached) $ac_c" 1>&6
14265 else
14266   
14267       
14268       ac_ext=C
14269 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14270 ac_cpp='$CXXCPP $CPPFLAGS'
14271 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14272 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14273 cross_compiling=$ac_cv_prog_cxx_cross
14274
14275       cat > conftest.$ac_ext <<EOF
14276 #line 14277 "configure"
14277 #include "confdefs.h"
14278 #include <math.h>
14279 int main() {
14280  _hypotf(0, 0);
14281 ; return 0; }
14282 EOF
14283 if { (eval echo configure:14284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14284   rm -rf conftest*
14285   glibcpp_cv_func__hypotf_use=yes
14286 else
14287   echo "configure: failed program was:" >&5
14288   cat conftest.$ac_ext >&5
14289   rm -rf conftest*
14290   glibcpp_cv_func__hypotf_use=no
14291 fi
14292 rm -f conftest*
14293       ac_ext=c
14294 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14295 ac_cpp='$CPP $CPPFLAGS'
14296 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14297 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14298 cross_compiling=$ac_cv_prog_cc_cross
14299
14300     
14301 fi
14302
14303   fi
14304   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
14305
14306     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
14307       for ac_func in _hypotf
14308 do
14309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14310 echo "configure:14311: checking for $ac_func" >&5
14311 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14312   echo $ac_n "(cached) $ac_c" 1>&6
14313 else
14314   cat > conftest.$ac_ext <<EOF
14315 #line 14316 "configure"
14316 #include "confdefs.h"
14317 /* System header to define __stub macros and hopefully few prototypes,
14318     which can conflict with char $ac_func(); below.  */
14319 #include <assert.h>
14320 /* Override any gcc2 internal prototype to avoid an error.  */
14321 /* We use char because int might match the return type of a gcc2
14322     builtin and then its argument prototype would still apply.  */
14323 char $ac_func();
14324
14325 int main() {
14326
14327 /* The GNU C library defines this for functions which it implements
14328     to always fail with ENOSYS.  Some functions are actually named
14329     something starting with __ and the normal name is an alias.  */
14330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14331 choke me
14332 #else
14333 $ac_func();
14334 #endif
14335
14336 ; return 0; }
14337 EOF
14338 if { (eval echo configure:14339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14339   rm -rf conftest*
14340   eval "ac_cv_func_$ac_func=yes"
14341 else
14342   echo "configure: failed program was:" >&5
14343   cat conftest.$ac_ext >&5
14344   rm -rf conftest*
14345   eval "ac_cv_func_$ac_func=no"
14346 fi
14347 rm -f conftest*
14348 fi
14349
14350 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14351   echo "$ac_t""yes" 1>&6
14352     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14353   cat >> confdefs.h <<EOF
14354 #define $ac_tr_func 1
14355 EOF
14356  
14357 else
14358   echo "$ac_t""no" 1>&6
14359 fi
14360 done
14361     
14362     fi
14363   fi
14364
14365   
14366   
14367   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14368 echo "configure:14369: checking for ldexpf declaration" >&5
14369   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
14370     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
14371   echo $ac_n "(cached) $ac_c" 1>&6
14372 else
14373   
14374       
14375       ac_ext=C
14376 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14377 ac_cpp='$CXXCPP $CPPFLAGS'
14378 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14379 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14380 cross_compiling=$ac_cv_prog_cxx_cross
14381
14382       cat > conftest.$ac_ext <<EOF
14383 #line 14384 "configure"
14384 #include "confdefs.h"
14385 #include <math.h>
14386 int main() {
14387  ldexpf(0, 0);
14388 ; return 0; }
14389 EOF
14390 if { (eval echo configure:14391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14391   rm -rf conftest*
14392   glibcpp_cv_func_ldexpf_use=yes
14393 else
14394   echo "configure: failed program was:" >&5
14395   cat conftest.$ac_ext >&5
14396   rm -rf conftest*
14397   glibcpp_cv_func_ldexpf_use=no
14398 fi
14399 rm -f conftest*
14400       ac_ext=c
14401 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14402 ac_cpp='$CPP $CPPFLAGS'
14403 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14404 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14405 cross_compiling=$ac_cv_prog_cc_cross
14406
14407     
14408 fi
14409
14410   fi
14411   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
14412
14413   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
14414     for ac_func in ldexpf
14415 do
14416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14417 echo "configure:14418: checking for $ac_func" >&5
14418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14419   echo $ac_n "(cached) $ac_c" 1>&6
14420 else
14421   cat > conftest.$ac_ext <<EOF
14422 #line 14423 "configure"
14423 #include "confdefs.h"
14424 /* System header to define __stub macros and hopefully few prototypes,
14425     which can conflict with char $ac_func(); below.  */
14426 #include <assert.h>
14427 /* Override any gcc2 internal prototype to avoid an error.  */
14428 /* We use char because int might match the return type of a gcc2
14429     builtin and then its argument prototype would still apply.  */
14430 char $ac_func();
14431
14432 int main() {
14433
14434 /* The GNU C library defines this for functions which it implements
14435     to always fail with ENOSYS.  Some functions are actually named
14436     something starting with __ and the normal name is an alias.  */
14437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14438 choke me
14439 #else
14440 $ac_func();
14441 #endif
14442
14443 ; return 0; }
14444 EOF
14445 if { (eval echo configure:14446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14446   rm -rf conftest*
14447   eval "ac_cv_func_$ac_func=yes"
14448 else
14449   echo "configure: failed program was:" >&5
14450   cat conftest.$ac_ext >&5
14451   rm -rf conftest*
14452   eval "ac_cv_func_$ac_func=no"
14453 fi
14454 rm -f conftest*
14455 fi
14456
14457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14458   echo "$ac_t""yes" 1>&6
14459     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14460   cat >> confdefs.h <<EOF
14461 #define $ac_tr_func 1
14462 EOF
14463  
14464 else
14465   echo "$ac_t""no" 1>&6
14466 fi
14467 done
14468     
14469   else
14470     
14471   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14472 echo "configure:14473: checking for _ldexpf declaration" >&5
14473   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
14474     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
14475   echo $ac_n "(cached) $ac_c" 1>&6
14476 else
14477   
14478       
14479       ac_ext=C
14480 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14481 ac_cpp='$CXXCPP $CPPFLAGS'
14482 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14483 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14484 cross_compiling=$ac_cv_prog_cxx_cross
14485
14486       cat > conftest.$ac_ext <<EOF
14487 #line 14488 "configure"
14488 #include "confdefs.h"
14489 #include <math.h>
14490 int main() {
14491  _ldexpf(0, 0);
14492 ; return 0; }
14493 EOF
14494 if { (eval echo configure:14495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14495   rm -rf conftest*
14496   glibcpp_cv_func__ldexpf_use=yes
14497 else
14498   echo "configure: failed program was:" >&5
14499   cat conftest.$ac_ext >&5
14500   rm -rf conftest*
14501   glibcpp_cv_func__ldexpf_use=no
14502 fi
14503 rm -f conftest*
14504       ac_ext=c
14505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14506 ac_cpp='$CPP $CPPFLAGS'
14507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14508 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14509 cross_compiling=$ac_cv_prog_cc_cross
14510
14511     
14512 fi
14513
14514   fi
14515   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
14516
14517     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
14518       for ac_func in _ldexpf
14519 do
14520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14521 echo "configure:14522: checking for $ac_func" >&5
14522 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14523   echo $ac_n "(cached) $ac_c" 1>&6
14524 else
14525   cat > conftest.$ac_ext <<EOF
14526 #line 14527 "configure"
14527 #include "confdefs.h"
14528 /* System header to define __stub macros and hopefully few prototypes,
14529     which can conflict with char $ac_func(); below.  */
14530 #include <assert.h>
14531 /* Override any gcc2 internal prototype to avoid an error.  */
14532 /* We use char because int might match the return type of a gcc2
14533     builtin and then its argument prototype would still apply.  */
14534 char $ac_func();
14535
14536 int main() {
14537
14538 /* The GNU C library defines this for functions which it implements
14539     to always fail with ENOSYS.  Some functions are actually named
14540     something starting with __ and the normal name is an alias.  */
14541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14542 choke me
14543 #else
14544 $ac_func();
14545 #endif
14546
14547 ; return 0; }
14548 EOF
14549 if { (eval echo configure:14550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14550   rm -rf conftest*
14551   eval "ac_cv_func_$ac_func=yes"
14552 else
14553   echo "configure: failed program was:" >&5
14554   cat conftest.$ac_ext >&5
14555   rm -rf conftest*
14556   eval "ac_cv_func_$ac_func=no"
14557 fi
14558 rm -f conftest*
14559 fi
14560
14561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14562   echo "$ac_t""yes" 1>&6
14563     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14564   cat >> confdefs.h <<EOF
14565 #define $ac_tr_func 1
14566 EOF
14567  
14568 else
14569   echo "$ac_t""no" 1>&6
14570 fi
14571 done
14572     
14573     fi
14574   fi
14575
14576   
14577   
14578   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14579 echo "configure:14580: checking for logf declaration" >&5
14580   if test x${glibcpp_cv_func_logf_use+set} != xset; then
14581     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
14582   echo $ac_n "(cached) $ac_c" 1>&6
14583 else
14584   
14585       
14586       ac_ext=C
14587 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14588 ac_cpp='$CXXCPP $CPPFLAGS'
14589 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14590 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14591 cross_compiling=$ac_cv_prog_cxx_cross
14592
14593       cat > conftest.$ac_ext <<EOF
14594 #line 14595 "configure"
14595 #include "confdefs.h"
14596 #include <math.h>
14597                       #ifdef HAVE_IEEEFP_H
14598                       #include <ieeefp.h>
14599                       #endif
14600                      
14601 int main() {
14602  logf(0);
14603 ; return 0; }
14604 EOF
14605 if { (eval echo configure:14606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14606   rm -rf conftest*
14607   glibcpp_cv_func_logf_use=yes
14608 else
14609   echo "configure: failed program was:" >&5
14610   cat conftest.$ac_ext >&5
14611   rm -rf conftest*
14612   glibcpp_cv_func_logf_use=no
14613 fi
14614 rm -f conftest*
14615       ac_ext=c
14616 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14617 ac_cpp='$CPP $CPPFLAGS'
14618 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14619 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14620 cross_compiling=$ac_cv_prog_cc_cross
14621
14622     
14623 fi
14624
14625   fi
14626   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
14627
14628   if test x$glibcpp_cv_func_logf_use = x"yes"; then
14629     for ac_func in logf
14630 do
14631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14632 echo "configure:14633: checking for $ac_func" >&5
14633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14634   echo $ac_n "(cached) $ac_c" 1>&6
14635 else
14636   cat > conftest.$ac_ext <<EOF
14637 #line 14638 "configure"
14638 #include "confdefs.h"
14639 /* System header to define __stub macros and hopefully few prototypes,
14640     which can conflict with char $ac_func(); below.  */
14641 #include <assert.h>
14642 /* Override any gcc2 internal prototype to avoid an error.  */
14643 /* We use char because int might match the return type of a gcc2
14644     builtin and then its argument prototype would still apply.  */
14645 char $ac_func();
14646
14647 int main() {
14648
14649 /* The GNU C library defines this for functions which it implements
14650     to always fail with ENOSYS.  Some functions are actually named
14651     something starting with __ and the normal name is an alias.  */
14652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14653 choke me
14654 #else
14655 $ac_func();
14656 #endif
14657
14658 ; return 0; }
14659 EOF
14660 if { (eval echo configure:14661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14661   rm -rf conftest*
14662   eval "ac_cv_func_$ac_func=yes"
14663 else
14664   echo "configure: failed program was:" >&5
14665   cat conftest.$ac_ext >&5
14666   rm -rf conftest*
14667   eval "ac_cv_func_$ac_func=no"
14668 fi
14669 rm -f conftest*
14670 fi
14671
14672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14673   echo "$ac_t""yes" 1>&6
14674     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14675   cat >> confdefs.h <<EOF
14676 #define $ac_tr_func 1
14677 EOF
14678  
14679 else
14680   echo "$ac_t""no" 1>&6
14681 fi
14682 done
14683     
14684   else
14685     
14686   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14687 echo "configure:14688: checking for _logf declaration" >&5
14688   if test x${glibcpp_cv_func__logf_use+set} != xset; then
14689     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
14690   echo $ac_n "(cached) $ac_c" 1>&6
14691 else
14692   
14693       
14694       ac_ext=C
14695 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14696 ac_cpp='$CXXCPP $CPPFLAGS'
14697 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14698 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14699 cross_compiling=$ac_cv_prog_cxx_cross
14700
14701       cat > conftest.$ac_ext <<EOF
14702 #line 14703 "configure"
14703 #include "confdefs.h"
14704 #include <math.h>
14705                       #ifdef HAVE_IEEEFP_H
14706                       #include <ieeefp.h>
14707                       #endif
14708                      
14709 int main() {
14710  _logf(0);
14711 ; return 0; }
14712 EOF
14713 if { (eval echo configure:14714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14714   rm -rf conftest*
14715   glibcpp_cv_func__logf_use=yes
14716 else
14717   echo "configure: failed program was:" >&5
14718   cat conftest.$ac_ext >&5
14719   rm -rf conftest*
14720   glibcpp_cv_func__logf_use=no
14721 fi
14722 rm -f conftest*
14723       ac_ext=c
14724 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14725 ac_cpp='$CPP $CPPFLAGS'
14726 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14727 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14728 cross_compiling=$ac_cv_prog_cc_cross
14729
14730     
14731 fi
14732
14733   fi
14734   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
14735
14736     if test x$glibcpp_cv_func__logf_use = x"yes"; then
14737       for ac_func in _logf
14738 do
14739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14740 echo "configure:14741: checking for $ac_func" >&5
14741 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14742   echo $ac_n "(cached) $ac_c" 1>&6
14743 else
14744   cat > conftest.$ac_ext <<EOF
14745 #line 14746 "configure"
14746 #include "confdefs.h"
14747 /* System header to define __stub macros and hopefully few prototypes,
14748     which can conflict with char $ac_func(); below.  */
14749 #include <assert.h>
14750 /* Override any gcc2 internal prototype to avoid an error.  */
14751 /* We use char because int might match the return type of a gcc2
14752     builtin and then its argument prototype would still apply.  */
14753 char $ac_func();
14754
14755 int main() {
14756
14757 /* The GNU C library defines this for functions which it implements
14758     to always fail with ENOSYS.  Some functions are actually named
14759     something starting with __ and the normal name is an alias.  */
14760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14761 choke me
14762 #else
14763 $ac_func();
14764 #endif
14765
14766 ; return 0; }
14767 EOF
14768 if { (eval echo configure:14769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14769   rm -rf conftest*
14770   eval "ac_cv_func_$ac_func=yes"
14771 else
14772   echo "configure: failed program was:" >&5
14773   cat conftest.$ac_ext >&5
14774   rm -rf conftest*
14775   eval "ac_cv_func_$ac_func=no"
14776 fi
14777 rm -f conftest*
14778 fi
14779
14780 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14781   echo "$ac_t""yes" 1>&6
14782     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14783   cat >> confdefs.h <<EOF
14784 #define $ac_tr_func 1
14785 EOF
14786  
14787 else
14788   echo "$ac_t""no" 1>&6
14789 fi
14790 done
14791     
14792     fi
14793   fi
14794
14795   
14796   
14797   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
14798 echo "configure:14799: checking for log10f declaration" >&5
14799   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
14800     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
14801   echo $ac_n "(cached) $ac_c" 1>&6
14802 else
14803   
14804       
14805       ac_ext=C
14806 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14807 ac_cpp='$CXXCPP $CPPFLAGS'
14808 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14809 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14810 cross_compiling=$ac_cv_prog_cxx_cross
14811
14812       cat > conftest.$ac_ext <<EOF
14813 #line 14814 "configure"
14814 #include "confdefs.h"
14815 #include <math.h>
14816                       #ifdef HAVE_IEEEFP_H
14817                       #include <ieeefp.h>
14818                       #endif
14819                      
14820 int main() {
14821  log10f(0);
14822 ; return 0; }
14823 EOF
14824 if { (eval echo configure:14825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14825   rm -rf conftest*
14826   glibcpp_cv_func_log10f_use=yes
14827 else
14828   echo "configure: failed program was:" >&5
14829   cat conftest.$ac_ext >&5
14830   rm -rf conftest*
14831   glibcpp_cv_func_log10f_use=no
14832 fi
14833 rm -f conftest*
14834       ac_ext=c
14835 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14836 ac_cpp='$CPP $CPPFLAGS'
14837 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14838 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14839 cross_compiling=$ac_cv_prog_cc_cross
14840
14841     
14842 fi
14843
14844   fi
14845   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
14846
14847   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
14848     for ac_func in log10f
14849 do
14850 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14851 echo "configure:14852: checking for $ac_func" >&5
14852 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14853   echo $ac_n "(cached) $ac_c" 1>&6
14854 else
14855   cat > conftest.$ac_ext <<EOF
14856 #line 14857 "configure"
14857 #include "confdefs.h"
14858 /* System header to define __stub macros and hopefully few prototypes,
14859     which can conflict with char $ac_func(); below.  */
14860 #include <assert.h>
14861 /* Override any gcc2 internal prototype to avoid an error.  */
14862 /* We use char because int might match the return type of a gcc2
14863     builtin and then its argument prototype would still apply.  */
14864 char $ac_func();
14865
14866 int main() {
14867
14868 /* The GNU C library defines this for functions which it implements
14869     to always fail with ENOSYS.  Some functions are actually named
14870     something starting with __ and the normal name is an alias.  */
14871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14872 choke me
14873 #else
14874 $ac_func();
14875 #endif
14876
14877 ; return 0; }
14878 EOF
14879 if { (eval echo configure:14880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14880   rm -rf conftest*
14881   eval "ac_cv_func_$ac_func=yes"
14882 else
14883   echo "configure: failed program was:" >&5
14884   cat conftest.$ac_ext >&5
14885   rm -rf conftest*
14886   eval "ac_cv_func_$ac_func=no"
14887 fi
14888 rm -f conftest*
14889 fi
14890
14891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14892   echo "$ac_t""yes" 1>&6
14893     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14894   cat >> confdefs.h <<EOF
14895 #define $ac_tr_func 1
14896 EOF
14897  
14898 else
14899   echo "$ac_t""no" 1>&6
14900 fi
14901 done
14902     
14903   else
14904     
14905   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
14906 echo "configure:14907: checking for _log10f declaration" >&5
14907   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
14908     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
14909   echo $ac_n "(cached) $ac_c" 1>&6
14910 else
14911   
14912       
14913       ac_ext=C
14914 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14915 ac_cpp='$CXXCPP $CPPFLAGS'
14916 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14917 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14918 cross_compiling=$ac_cv_prog_cxx_cross
14919
14920       cat > conftest.$ac_ext <<EOF
14921 #line 14922 "configure"
14922 #include "confdefs.h"
14923 #include <math.h>
14924                       #ifdef HAVE_IEEEFP_H
14925                       #include <ieeefp.h>
14926                       #endif
14927                      
14928 int main() {
14929  _log10f(0);
14930 ; return 0; }
14931 EOF
14932 if { (eval echo configure:14933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14933   rm -rf conftest*
14934   glibcpp_cv_func__log10f_use=yes
14935 else
14936   echo "configure: failed program was:" >&5
14937   cat conftest.$ac_ext >&5
14938   rm -rf conftest*
14939   glibcpp_cv_func__log10f_use=no
14940 fi
14941 rm -f conftest*
14942       ac_ext=c
14943 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14944 ac_cpp='$CPP $CPPFLAGS'
14945 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14946 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14947 cross_compiling=$ac_cv_prog_cc_cross
14948
14949     
14950 fi
14951
14952   fi
14953   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
14954
14955     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
14956       for ac_func in _log10f
14957 do
14958 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14959 echo "configure:14960: checking for $ac_func" >&5
14960 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14961   echo $ac_n "(cached) $ac_c" 1>&6
14962 else
14963   cat > conftest.$ac_ext <<EOF
14964 #line 14965 "configure"
14965 #include "confdefs.h"
14966 /* System header to define __stub macros and hopefully few prototypes,
14967     which can conflict with char $ac_func(); below.  */
14968 #include <assert.h>
14969 /* Override any gcc2 internal prototype to avoid an error.  */
14970 /* We use char because int might match the return type of a gcc2
14971     builtin and then its argument prototype would still apply.  */
14972 char $ac_func();
14973
14974 int main() {
14975
14976 /* The GNU C library defines this for functions which it implements
14977     to always fail with ENOSYS.  Some functions are actually named
14978     something starting with __ and the normal name is an alias.  */
14979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14980 choke me
14981 #else
14982 $ac_func();
14983 #endif
14984
14985 ; return 0; }
14986 EOF
14987 if { (eval echo configure:14988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14988   rm -rf conftest*
14989   eval "ac_cv_func_$ac_func=yes"
14990 else
14991   echo "configure: failed program was:" >&5
14992   cat conftest.$ac_ext >&5
14993   rm -rf conftest*
14994   eval "ac_cv_func_$ac_func=no"
14995 fi
14996 rm -f conftest*
14997 fi
14998
14999 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15000   echo "$ac_t""yes" 1>&6
15001     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15002   cat >> confdefs.h <<EOF
15003 #define $ac_tr_func 1
15004 EOF
15005  
15006 else
15007   echo "$ac_t""no" 1>&6
15008 fi
15009 done
15010     
15011     fi
15012   fi
15013
15014   
15015   
15016   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
15017 echo "configure:15018: checking for modff declaration" >&5
15018   if test x${glibcpp_cv_func_modff_use+set} != xset; then
15019     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
15020   echo $ac_n "(cached) $ac_c" 1>&6
15021 else
15022   
15023       
15024       ac_ext=C
15025 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15026 ac_cpp='$CXXCPP $CPPFLAGS'
15027 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15028 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15029 cross_compiling=$ac_cv_prog_cxx_cross
15030
15031       cat > conftest.$ac_ext <<EOF
15032 #line 15033 "configure"
15033 #include "confdefs.h"
15034 #include <math.h>
15035 int main() {
15036  modff(0, 0);
15037 ; return 0; }
15038 EOF
15039 if { (eval echo configure:15040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15040   rm -rf conftest*
15041   glibcpp_cv_func_modff_use=yes
15042 else
15043   echo "configure: failed program was:" >&5
15044   cat conftest.$ac_ext >&5
15045   rm -rf conftest*
15046   glibcpp_cv_func_modff_use=no
15047 fi
15048 rm -f conftest*
15049       ac_ext=c
15050 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15051 ac_cpp='$CPP $CPPFLAGS'
15052 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15053 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15054 cross_compiling=$ac_cv_prog_cc_cross
15055
15056     
15057 fi
15058
15059   fi
15060   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
15061
15062   if test x$glibcpp_cv_func_modff_use = x"yes"; then
15063     for ac_func in modff
15064 do
15065 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15066 echo "configure:15067: checking for $ac_func" >&5
15067 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15068   echo $ac_n "(cached) $ac_c" 1>&6
15069 else
15070   cat > conftest.$ac_ext <<EOF
15071 #line 15072 "configure"
15072 #include "confdefs.h"
15073 /* System header to define __stub macros and hopefully few prototypes,
15074     which can conflict with char $ac_func(); below.  */
15075 #include <assert.h>
15076 /* Override any gcc2 internal prototype to avoid an error.  */
15077 /* We use char because int might match the return type of a gcc2
15078     builtin and then its argument prototype would still apply.  */
15079 char $ac_func();
15080
15081 int main() {
15082
15083 /* The GNU C library defines this for functions which it implements
15084     to always fail with ENOSYS.  Some functions are actually named
15085     something starting with __ and the normal name is an alias.  */
15086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15087 choke me
15088 #else
15089 $ac_func();
15090 #endif
15091
15092 ; return 0; }
15093 EOF
15094 if { (eval echo configure:15095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15095   rm -rf conftest*
15096   eval "ac_cv_func_$ac_func=yes"
15097 else
15098   echo "configure: failed program was:" >&5
15099   cat conftest.$ac_ext >&5
15100   rm -rf conftest*
15101   eval "ac_cv_func_$ac_func=no"
15102 fi
15103 rm -f conftest*
15104 fi
15105
15106 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15107   echo "$ac_t""yes" 1>&6
15108     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15109   cat >> confdefs.h <<EOF
15110 #define $ac_tr_func 1
15111 EOF
15112  
15113 else
15114   echo "$ac_t""no" 1>&6
15115 fi
15116 done
15117     
15118   else
15119     
15120   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15121 echo "configure:15122: checking for _modff declaration" >&5
15122   if test x${glibcpp_cv_func__modff_use+set} != xset; then
15123     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
15124   echo $ac_n "(cached) $ac_c" 1>&6
15125 else
15126   
15127       
15128       ac_ext=C
15129 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15130 ac_cpp='$CXXCPP $CPPFLAGS'
15131 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15132 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15133 cross_compiling=$ac_cv_prog_cxx_cross
15134
15135       cat > conftest.$ac_ext <<EOF
15136 #line 15137 "configure"
15137 #include "confdefs.h"
15138 #include <math.h>
15139 int main() {
15140  _modff(0, 0);
15141 ; return 0; }
15142 EOF
15143 if { (eval echo configure:15144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15144   rm -rf conftest*
15145   glibcpp_cv_func__modff_use=yes
15146 else
15147   echo "configure: failed program was:" >&5
15148   cat conftest.$ac_ext >&5
15149   rm -rf conftest*
15150   glibcpp_cv_func__modff_use=no
15151 fi
15152 rm -f conftest*
15153       ac_ext=c
15154 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15155 ac_cpp='$CPP $CPPFLAGS'
15156 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15157 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15158 cross_compiling=$ac_cv_prog_cc_cross
15159
15160     
15161 fi
15162
15163   fi
15164   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
15165
15166     if test x$glibcpp_cv_func__modff_use = x"yes"; then
15167       for ac_func in _modff
15168 do
15169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15170 echo "configure:15171: checking for $ac_func" >&5
15171 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15172   echo $ac_n "(cached) $ac_c" 1>&6
15173 else
15174   cat > conftest.$ac_ext <<EOF
15175 #line 15176 "configure"
15176 #include "confdefs.h"
15177 /* System header to define __stub macros and hopefully few prototypes,
15178     which can conflict with char $ac_func(); below.  */
15179 #include <assert.h>
15180 /* Override any gcc2 internal prototype to avoid an error.  */
15181 /* We use char because int might match the return type of a gcc2
15182     builtin and then its argument prototype would still apply.  */
15183 char $ac_func();
15184
15185 int main() {
15186
15187 /* The GNU C library defines this for functions which it implements
15188     to always fail with ENOSYS.  Some functions are actually named
15189     something starting with __ and the normal name is an alias.  */
15190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15191 choke me
15192 #else
15193 $ac_func();
15194 #endif
15195
15196 ; return 0; }
15197 EOF
15198 if { (eval echo configure:15199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15199   rm -rf conftest*
15200   eval "ac_cv_func_$ac_func=yes"
15201 else
15202   echo "configure: failed program was:" >&5
15203   cat conftest.$ac_ext >&5
15204   rm -rf conftest*
15205   eval "ac_cv_func_$ac_func=no"
15206 fi
15207 rm -f conftest*
15208 fi
15209
15210 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15211   echo "$ac_t""yes" 1>&6
15212     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15213   cat >> confdefs.h <<EOF
15214 #define $ac_tr_func 1
15215 EOF
15216  
15217 else
15218   echo "$ac_t""no" 1>&6
15219 fi
15220 done
15221     
15222     fi
15223   fi
15224
15225   
15226   
15227   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15228 echo "configure:15229: checking for powf declaration" >&5
15229   if test x${glibcpp_cv_func_powf_use+set} != xset; then
15230     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
15231   echo $ac_n "(cached) $ac_c" 1>&6
15232 else
15233   
15234       
15235       ac_ext=C
15236 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15237 ac_cpp='$CXXCPP $CPPFLAGS'
15238 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15239 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15240 cross_compiling=$ac_cv_prog_cxx_cross
15241
15242       cat > conftest.$ac_ext <<EOF
15243 #line 15244 "configure"
15244 #include "confdefs.h"
15245 #include <math.h>
15246 int main() {
15247  powf(0, 0);
15248 ; return 0; }
15249 EOF
15250 if { (eval echo configure:15251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15251   rm -rf conftest*
15252   glibcpp_cv_func_powf_use=yes
15253 else
15254   echo "configure: failed program was:" >&5
15255   cat conftest.$ac_ext >&5
15256   rm -rf conftest*
15257   glibcpp_cv_func_powf_use=no
15258 fi
15259 rm -f conftest*
15260       ac_ext=c
15261 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15262 ac_cpp='$CPP $CPPFLAGS'
15263 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15264 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15265 cross_compiling=$ac_cv_prog_cc_cross
15266
15267     
15268 fi
15269
15270   fi
15271   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
15272
15273   if test x$glibcpp_cv_func_powf_use = x"yes"; then
15274     for ac_func in powf
15275 do
15276 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15277 echo "configure:15278: checking for $ac_func" >&5
15278 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15279   echo $ac_n "(cached) $ac_c" 1>&6
15280 else
15281   cat > conftest.$ac_ext <<EOF
15282 #line 15283 "configure"
15283 #include "confdefs.h"
15284 /* System header to define __stub macros and hopefully few prototypes,
15285     which can conflict with char $ac_func(); below.  */
15286 #include <assert.h>
15287 /* Override any gcc2 internal prototype to avoid an error.  */
15288 /* We use char because int might match the return type of a gcc2
15289     builtin and then its argument prototype would still apply.  */
15290 char $ac_func();
15291
15292 int main() {
15293
15294 /* The GNU C library defines this for functions which it implements
15295     to always fail with ENOSYS.  Some functions are actually named
15296     something starting with __ and the normal name is an alias.  */
15297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15298 choke me
15299 #else
15300 $ac_func();
15301 #endif
15302
15303 ; return 0; }
15304 EOF
15305 if { (eval echo configure:15306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15306   rm -rf conftest*
15307   eval "ac_cv_func_$ac_func=yes"
15308 else
15309   echo "configure: failed program was:" >&5
15310   cat conftest.$ac_ext >&5
15311   rm -rf conftest*
15312   eval "ac_cv_func_$ac_func=no"
15313 fi
15314 rm -f conftest*
15315 fi
15316
15317 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15318   echo "$ac_t""yes" 1>&6
15319     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15320   cat >> confdefs.h <<EOF
15321 #define $ac_tr_func 1
15322 EOF
15323  
15324 else
15325   echo "$ac_t""no" 1>&6
15326 fi
15327 done
15328     
15329   else
15330     
15331   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15332 echo "configure:15333: checking for _powf declaration" >&5
15333   if test x${glibcpp_cv_func__powf_use+set} != xset; then
15334     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
15335   echo $ac_n "(cached) $ac_c" 1>&6
15336 else
15337   
15338       
15339       ac_ext=C
15340 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15341 ac_cpp='$CXXCPP $CPPFLAGS'
15342 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15343 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15344 cross_compiling=$ac_cv_prog_cxx_cross
15345
15346       cat > conftest.$ac_ext <<EOF
15347 #line 15348 "configure"
15348 #include "confdefs.h"
15349 #include <math.h>
15350 int main() {
15351  _powf(0, 0);
15352 ; return 0; }
15353 EOF
15354 if { (eval echo configure:15355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15355   rm -rf conftest*
15356   glibcpp_cv_func__powf_use=yes
15357 else
15358   echo "configure: failed program was:" >&5
15359   cat conftest.$ac_ext >&5
15360   rm -rf conftest*
15361   glibcpp_cv_func__powf_use=no
15362 fi
15363 rm -f conftest*
15364       ac_ext=c
15365 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15366 ac_cpp='$CPP $CPPFLAGS'
15367 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15368 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15369 cross_compiling=$ac_cv_prog_cc_cross
15370
15371     
15372 fi
15373
15374   fi
15375   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
15376
15377     if test x$glibcpp_cv_func__powf_use = x"yes"; then
15378       for ac_func in _powf
15379 do
15380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15381 echo "configure:15382: checking for $ac_func" >&5
15382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15383   echo $ac_n "(cached) $ac_c" 1>&6
15384 else
15385   cat > conftest.$ac_ext <<EOF
15386 #line 15387 "configure"
15387 #include "confdefs.h"
15388 /* System header to define __stub macros and hopefully few prototypes,
15389     which can conflict with char $ac_func(); below.  */
15390 #include <assert.h>
15391 /* Override any gcc2 internal prototype to avoid an error.  */
15392 /* We use char because int might match the return type of a gcc2
15393     builtin and then its argument prototype would still apply.  */
15394 char $ac_func();
15395
15396 int main() {
15397
15398 /* The GNU C library defines this for functions which it implements
15399     to always fail with ENOSYS.  Some functions are actually named
15400     something starting with __ and the normal name is an alias.  */
15401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15402 choke me
15403 #else
15404 $ac_func();
15405 #endif
15406
15407 ; return 0; }
15408 EOF
15409 if { (eval echo configure:15410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15410   rm -rf conftest*
15411   eval "ac_cv_func_$ac_func=yes"
15412 else
15413   echo "configure: failed program was:" >&5
15414   cat conftest.$ac_ext >&5
15415   rm -rf conftest*
15416   eval "ac_cv_func_$ac_func=no"
15417 fi
15418 rm -f conftest*
15419 fi
15420
15421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15422   echo "$ac_t""yes" 1>&6
15423     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15424   cat >> confdefs.h <<EOF
15425 #define $ac_tr_func 1
15426 EOF
15427  
15428 else
15429   echo "$ac_t""no" 1>&6
15430 fi
15431 done
15432     
15433     fi
15434   fi
15435
15436   
15437   
15438   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15439 echo "configure:15440: checking for sqrtf declaration" >&5
15440   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
15441     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
15442   echo $ac_n "(cached) $ac_c" 1>&6
15443 else
15444   
15445       
15446       ac_ext=C
15447 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15448 ac_cpp='$CXXCPP $CPPFLAGS'
15449 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15450 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15451 cross_compiling=$ac_cv_prog_cxx_cross
15452
15453       cat > conftest.$ac_ext <<EOF
15454 #line 15455 "configure"
15455 #include "confdefs.h"
15456 #include <math.h>
15457                       #ifdef HAVE_IEEEFP_H
15458                       #include <ieeefp.h>
15459                       #endif
15460                      
15461 int main() {
15462  sqrtf(0);
15463 ; return 0; }
15464 EOF
15465 if { (eval echo configure:15466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15466   rm -rf conftest*
15467   glibcpp_cv_func_sqrtf_use=yes
15468 else
15469   echo "configure: failed program was:" >&5
15470   cat conftest.$ac_ext >&5
15471   rm -rf conftest*
15472   glibcpp_cv_func_sqrtf_use=no
15473 fi
15474 rm -f conftest*
15475       ac_ext=c
15476 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15477 ac_cpp='$CPP $CPPFLAGS'
15478 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15479 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15480 cross_compiling=$ac_cv_prog_cc_cross
15481
15482     
15483 fi
15484
15485   fi
15486   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
15487
15488   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
15489     for ac_func in sqrtf
15490 do
15491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15492 echo "configure:15493: checking for $ac_func" >&5
15493 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15494   echo $ac_n "(cached) $ac_c" 1>&6
15495 else
15496   cat > conftest.$ac_ext <<EOF
15497 #line 15498 "configure"
15498 #include "confdefs.h"
15499 /* System header to define __stub macros and hopefully few prototypes,
15500     which can conflict with char $ac_func(); below.  */
15501 #include <assert.h>
15502 /* Override any gcc2 internal prototype to avoid an error.  */
15503 /* We use char because int might match the return type of a gcc2
15504     builtin and then its argument prototype would still apply.  */
15505 char $ac_func();
15506
15507 int main() {
15508
15509 /* The GNU C library defines this for functions which it implements
15510     to always fail with ENOSYS.  Some functions are actually named
15511     something starting with __ and the normal name is an alias.  */
15512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15513 choke me
15514 #else
15515 $ac_func();
15516 #endif
15517
15518 ; return 0; }
15519 EOF
15520 if { (eval echo configure:15521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15521   rm -rf conftest*
15522   eval "ac_cv_func_$ac_func=yes"
15523 else
15524   echo "configure: failed program was:" >&5
15525   cat conftest.$ac_ext >&5
15526   rm -rf conftest*
15527   eval "ac_cv_func_$ac_func=no"
15528 fi
15529 rm -f conftest*
15530 fi
15531
15532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15533   echo "$ac_t""yes" 1>&6
15534     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15535   cat >> confdefs.h <<EOF
15536 #define $ac_tr_func 1
15537 EOF
15538  
15539 else
15540   echo "$ac_t""no" 1>&6
15541 fi
15542 done
15543     
15544   else
15545     
15546   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15547 echo "configure:15548: checking for _sqrtf declaration" >&5
15548   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
15549     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
15550   echo $ac_n "(cached) $ac_c" 1>&6
15551 else
15552   
15553       
15554       ac_ext=C
15555 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15556 ac_cpp='$CXXCPP $CPPFLAGS'
15557 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15558 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15559 cross_compiling=$ac_cv_prog_cxx_cross
15560
15561       cat > conftest.$ac_ext <<EOF
15562 #line 15563 "configure"
15563 #include "confdefs.h"
15564 #include <math.h>
15565                       #ifdef HAVE_IEEEFP_H
15566                       #include <ieeefp.h>
15567                       #endif
15568                      
15569 int main() {
15570  _sqrtf(0);
15571 ; return 0; }
15572 EOF
15573 if { (eval echo configure:15574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15574   rm -rf conftest*
15575   glibcpp_cv_func__sqrtf_use=yes
15576 else
15577   echo "configure: failed program was:" >&5
15578   cat conftest.$ac_ext >&5
15579   rm -rf conftest*
15580   glibcpp_cv_func__sqrtf_use=no
15581 fi
15582 rm -f conftest*
15583       ac_ext=c
15584 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15585 ac_cpp='$CPP $CPPFLAGS'
15586 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15587 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15588 cross_compiling=$ac_cv_prog_cc_cross
15589
15590     
15591 fi
15592
15593   fi
15594   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
15595
15596     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
15597       for ac_func in _sqrtf
15598 do
15599 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15600 echo "configure:15601: checking for $ac_func" >&5
15601 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15602   echo $ac_n "(cached) $ac_c" 1>&6
15603 else
15604   cat > conftest.$ac_ext <<EOF
15605 #line 15606 "configure"
15606 #include "confdefs.h"
15607 /* System header to define __stub macros and hopefully few prototypes,
15608     which can conflict with char $ac_func(); below.  */
15609 #include <assert.h>
15610 /* Override any gcc2 internal prototype to avoid an error.  */
15611 /* We use char because int might match the return type of a gcc2
15612     builtin and then its argument prototype would still apply.  */
15613 char $ac_func();
15614
15615 int main() {
15616
15617 /* The GNU C library defines this for functions which it implements
15618     to always fail with ENOSYS.  Some functions are actually named
15619     something starting with __ and the normal name is an alias.  */
15620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15621 choke me
15622 #else
15623 $ac_func();
15624 #endif
15625
15626 ; return 0; }
15627 EOF
15628 if { (eval echo configure:15629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15629   rm -rf conftest*
15630   eval "ac_cv_func_$ac_func=yes"
15631 else
15632   echo "configure: failed program was:" >&5
15633   cat conftest.$ac_ext >&5
15634   rm -rf conftest*
15635   eval "ac_cv_func_$ac_func=no"
15636 fi
15637 rm -f conftest*
15638 fi
15639
15640 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15641   echo "$ac_t""yes" 1>&6
15642     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15643   cat >> confdefs.h <<EOF
15644 #define $ac_tr_func 1
15645 EOF
15646  
15647 else
15648   echo "$ac_t""no" 1>&6
15649 fi
15650 done
15651     
15652     fi
15653   fi
15654
15655   
15656   
15657   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15658 echo "configure:15659: checking for sincosf declaration" >&5
15659   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
15660     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
15661   echo $ac_n "(cached) $ac_c" 1>&6
15662 else
15663   
15664       
15665       ac_ext=C
15666 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15667 ac_cpp='$CXXCPP $CPPFLAGS'
15668 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15669 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15670 cross_compiling=$ac_cv_prog_cxx_cross
15671
15672       cat > conftest.$ac_ext <<EOF
15673 #line 15674 "configure"
15674 #include "confdefs.h"
15675 #include <math.h>
15676 int main() {
15677  sincosf(0, 0, 0);
15678 ; return 0; }
15679 EOF
15680 if { (eval echo configure:15681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15681   rm -rf conftest*
15682   glibcpp_cv_func_sincosf_use=yes
15683 else
15684   echo "configure: failed program was:" >&5
15685   cat conftest.$ac_ext >&5
15686   rm -rf conftest*
15687   glibcpp_cv_func_sincosf_use=no
15688 fi
15689 rm -f conftest*
15690       ac_ext=c
15691 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15692 ac_cpp='$CPP $CPPFLAGS'
15693 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15694 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15695 cross_compiling=$ac_cv_prog_cc_cross
15696
15697     
15698 fi
15699
15700   fi
15701   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
15702
15703   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
15704     for ac_func in sincosf
15705 do
15706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15707 echo "configure:15708: checking for $ac_func" >&5
15708 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15709   echo $ac_n "(cached) $ac_c" 1>&6
15710 else
15711   cat > conftest.$ac_ext <<EOF
15712 #line 15713 "configure"
15713 #include "confdefs.h"
15714 /* System header to define __stub macros and hopefully few prototypes,
15715     which can conflict with char $ac_func(); below.  */
15716 #include <assert.h>
15717 /* Override any gcc2 internal prototype to avoid an error.  */
15718 /* We use char because int might match the return type of a gcc2
15719     builtin and then its argument prototype would still apply.  */
15720 char $ac_func();
15721
15722 int main() {
15723
15724 /* The GNU C library defines this for functions which it implements
15725     to always fail with ENOSYS.  Some functions are actually named
15726     something starting with __ and the normal name is an alias.  */
15727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15728 choke me
15729 #else
15730 $ac_func();
15731 #endif
15732
15733 ; return 0; }
15734 EOF
15735 if { (eval echo configure:15736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15736   rm -rf conftest*
15737   eval "ac_cv_func_$ac_func=yes"
15738 else
15739   echo "configure: failed program was:" >&5
15740   cat conftest.$ac_ext >&5
15741   rm -rf conftest*
15742   eval "ac_cv_func_$ac_func=no"
15743 fi
15744 rm -f conftest*
15745 fi
15746
15747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15748   echo "$ac_t""yes" 1>&6
15749     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15750   cat >> confdefs.h <<EOF
15751 #define $ac_tr_func 1
15752 EOF
15753  
15754 else
15755   echo "$ac_t""no" 1>&6
15756 fi
15757 done
15758     
15759   else
15760     
15761   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15762 echo "configure:15763: checking for _sincosf declaration" >&5
15763   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
15764     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
15765   echo $ac_n "(cached) $ac_c" 1>&6
15766 else
15767   
15768       
15769       ac_ext=C
15770 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15771 ac_cpp='$CXXCPP $CPPFLAGS'
15772 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15773 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15774 cross_compiling=$ac_cv_prog_cxx_cross
15775
15776       cat > conftest.$ac_ext <<EOF
15777 #line 15778 "configure"
15778 #include "confdefs.h"
15779 #include <math.h>
15780 int main() {
15781  _sincosf(0, 0, 0);
15782 ; return 0; }
15783 EOF
15784 if { (eval echo configure:15785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15785   rm -rf conftest*
15786   glibcpp_cv_func__sincosf_use=yes
15787 else
15788   echo "configure: failed program was:" >&5
15789   cat conftest.$ac_ext >&5
15790   rm -rf conftest*
15791   glibcpp_cv_func__sincosf_use=no
15792 fi
15793 rm -f conftest*
15794       ac_ext=c
15795 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15796 ac_cpp='$CPP $CPPFLAGS'
15797 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15798 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15799 cross_compiling=$ac_cv_prog_cc_cross
15800
15801     
15802 fi
15803
15804   fi
15805   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
15806
15807     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
15808       for ac_func in _sincosf
15809 do
15810 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15811 echo "configure:15812: checking for $ac_func" >&5
15812 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15813   echo $ac_n "(cached) $ac_c" 1>&6
15814 else
15815   cat > conftest.$ac_ext <<EOF
15816 #line 15817 "configure"
15817 #include "confdefs.h"
15818 /* System header to define __stub macros and hopefully few prototypes,
15819     which can conflict with char $ac_func(); below.  */
15820 #include <assert.h>
15821 /* Override any gcc2 internal prototype to avoid an error.  */
15822 /* We use char because int might match the return type of a gcc2
15823     builtin and then its argument prototype would still apply.  */
15824 char $ac_func();
15825
15826 int main() {
15827
15828 /* The GNU C library defines this for functions which it implements
15829     to always fail with ENOSYS.  Some functions are actually named
15830     something starting with __ and the normal name is an alias.  */
15831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15832 choke me
15833 #else
15834 $ac_func();
15835 #endif
15836
15837 ; return 0; }
15838 EOF
15839 if { (eval echo configure:15840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15840   rm -rf conftest*
15841   eval "ac_cv_func_$ac_func=yes"
15842 else
15843   echo "configure: failed program was:" >&5
15844   cat conftest.$ac_ext >&5
15845   rm -rf conftest*
15846   eval "ac_cv_func_$ac_func=no"
15847 fi
15848 rm -f conftest*
15849 fi
15850
15851 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15852   echo "$ac_t""yes" 1>&6
15853     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15854   cat >> confdefs.h <<EOF
15855 #define $ac_tr_func 1
15856 EOF
15857  
15858 else
15859   echo "$ac_t""no" 1>&6
15860 fi
15861 done
15862     
15863     fi
15864   fi
15865
15866   
15867   
15868   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
15869 echo "configure:15870: checking for finitef declaration" >&5
15870   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
15871     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
15872   echo $ac_n "(cached) $ac_c" 1>&6
15873 else
15874   
15875       
15876       ac_ext=C
15877 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15878 ac_cpp='$CXXCPP $CPPFLAGS'
15879 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15880 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15881 cross_compiling=$ac_cv_prog_cxx_cross
15882
15883       cat > conftest.$ac_ext <<EOF
15884 #line 15885 "configure"
15885 #include "confdefs.h"
15886 #include <math.h>
15887                       #ifdef HAVE_IEEEFP_H
15888                       #include <ieeefp.h>
15889                       #endif
15890                      
15891 int main() {
15892  finitef(0);
15893 ; return 0; }
15894 EOF
15895 if { (eval echo configure:15896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15896   rm -rf conftest*
15897   glibcpp_cv_func_finitef_use=yes
15898 else
15899   echo "configure: failed program was:" >&5
15900   cat conftest.$ac_ext >&5
15901   rm -rf conftest*
15902   glibcpp_cv_func_finitef_use=no
15903 fi
15904 rm -f conftest*
15905       ac_ext=c
15906 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15907 ac_cpp='$CPP $CPPFLAGS'
15908 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15909 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15910 cross_compiling=$ac_cv_prog_cc_cross
15911
15912     
15913 fi
15914
15915   fi
15916   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
15917
15918   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
15919     for ac_func in finitef
15920 do
15921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15922 echo "configure:15923: checking for $ac_func" >&5
15923 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15924   echo $ac_n "(cached) $ac_c" 1>&6
15925 else
15926   cat > conftest.$ac_ext <<EOF
15927 #line 15928 "configure"
15928 #include "confdefs.h"
15929 /* System header to define __stub macros and hopefully few prototypes,
15930     which can conflict with char $ac_func(); below.  */
15931 #include <assert.h>
15932 /* Override any gcc2 internal prototype to avoid an error.  */
15933 /* We use char because int might match the return type of a gcc2
15934     builtin and then its argument prototype would still apply.  */
15935 char $ac_func();
15936
15937 int main() {
15938
15939 /* The GNU C library defines this for functions which it implements
15940     to always fail with ENOSYS.  Some functions are actually named
15941     something starting with __ and the normal name is an alias.  */
15942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15943 choke me
15944 #else
15945 $ac_func();
15946 #endif
15947
15948 ; return 0; }
15949 EOF
15950 if { (eval echo configure:15951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15951   rm -rf conftest*
15952   eval "ac_cv_func_$ac_func=yes"
15953 else
15954   echo "configure: failed program was:" >&5
15955   cat conftest.$ac_ext >&5
15956   rm -rf conftest*
15957   eval "ac_cv_func_$ac_func=no"
15958 fi
15959 rm -f conftest*
15960 fi
15961
15962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15963   echo "$ac_t""yes" 1>&6
15964     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15965   cat >> confdefs.h <<EOF
15966 #define $ac_tr_func 1
15967 EOF
15968  
15969 else
15970   echo "$ac_t""no" 1>&6
15971 fi
15972 done
15973     
15974   else
15975     
15976   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
15977 echo "configure:15978: checking for _finitef declaration" >&5
15978   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
15979     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
15980   echo $ac_n "(cached) $ac_c" 1>&6
15981 else
15982   
15983       
15984       ac_ext=C
15985 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15986 ac_cpp='$CXXCPP $CPPFLAGS'
15987 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15988 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15989 cross_compiling=$ac_cv_prog_cxx_cross
15990
15991       cat > conftest.$ac_ext <<EOF
15992 #line 15993 "configure"
15993 #include "confdefs.h"
15994 #include <math.h>
15995                       #ifdef HAVE_IEEEFP_H
15996                       #include <ieeefp.h>
15997                       #endif
15998                      
15999 int main() {
16000  _finitef(0);
16001 ; return 0; }
16002 EOF
16003 if { (eval echo configure:16004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16004   rm -rf conftest*
16005   glibcpp_cv_func__finitef_use=yes
16006 else
16007   echo "configure: failed program was:" >&5
16008   cat conftest.$ac_ext >&5
16009   rm -rf conftest*
16010   glibcpp_cv_func__finitef_use=no
16011 fi
16012 rm -f conftest*
16013       ac_ext=c
16014 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16015 ac_cpp='$CPP $CPPFLAGS'
16016 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16017 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16018 cross_compiling=$ac_cv_prog_cc_cross
16019
16020     
16021 fi
16022
16023   fi
16024   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
16025
16026     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
16027       for ac_func in _finitef
16028 do
16029 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16030 echo "configure:16031: checking for $ac_func" >&5
16031 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16032   echo $ac_n "(cached) $ac_c" 1>&6
16033 else
16034   cat > conftest.$ac_ext <<EOF
16035 #line 16036 "configure"
16036 #include "confdefs.h"
16037 /* System header to define __stub macros and hopefully few prototypes,
16038     which can conflict with char $ac_func(); below.  */
16039 #include <assert.h>
16040 /* Override any gcc2 internal prototype to avoid an error.  */
16041 /* We use char because int might match the return type of a gcc2
16042     builtin and then its argument prototype would still apply.  */
16043 char $ac_func();
16044
16045 int main() {
16046
16047 /* The GNU C library defines this for functions which it implements
16048     to always fail with ENOSYS.  Some functions are actually named
16049     something starting with __ and the normal name is an alias.  */
16050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16051 choke me
16052 #else
16053 $ac_func();
16054 #endif
16055
16056 ; return 0; }
16057 EOF
16058 if { (eval echo configure:16059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16059   rm -rf conftest*
16060   eval "ac_cv_func_$ac_func=yes"
16061 else
16062   echo "configure: failed program was:" >&5
16063   cat conftest.$ac_ext >&5
16064   rm -rf conftest*
16065   eval "ac_cv_func_$ac_func=no"
16066 fi
16067 rm -f conftest*
16068 fi
16069
16070 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16071   echo "$ac_t""yes" 1>&6
16072     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16073   cat >> confdefs.h <<EOF
16074 #define $ac_tr_func 1
16075 EOF
16076  
16077 else
16078   echo "$ac_t""no" 1>&6
16079 fi
16080 done
16081     
16082     fi
16083   fi
16084
16085
16086     
16087   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16088 echo "configure:16089: checking for long double trig functions" >&5
16089   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
16090   echo $ac_n "(cached) $ac_c" 1>&6
16091 else
16092   
16093     
16094     ac_ext=C
16095 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16096 ac_cpp='$CXXCPP $CPPFLAGS'
16097 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16098 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16099 cross_compiling=$ac_cv_prog_cxx_cross
16100
16101     cat > conftest.$ac_ext <<EOF
16102 #line 16103 "configure"
16103 #include "confdefs.h"
16104 #include <math.h>
16105 int main() {
16106  `for x in acosl asinl atanl \
16107                                           cosl sinl tanl \
16108                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
16109 ; return 0; }
16110 EOF
16111 if { (eval echo configure:16112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16112   rm -rf conftest*
16113   glibcpp_cv_func_long_double_trig_use=yes
16114 else
16115   echo "configure: failed program was:" >&5
16116   cat conftest.$ac_ext >&5
16117   rm -rf conftest*
16118   glibcpp_cv_func_long_double_trig_use=no
16119 fi
16120 rm -f conftest*
16121     ac_ext=c
16122 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16123 ac_cpp='$CPP $CPPFLAGS'
16124 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16125 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16126 cross_compiling=$ac_cv_prog_cc_cross
16127
16128 fi
16129
16130   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
16131   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
16132     for ac_func in acosl asinl atanl \
16133                                           cosl sinl tanl \
16134                                           coshl sinhl tanhl
16135 do
16136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16137 echo "configure:16138: checking for $ac_func" >&5
16138 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16139   echo $ac_n "(cached) $ac_c" 1>&6
16140 else
16141   cat > conftest.$ac_ext <<EOF
16142 #line 16143 "configure"
16143 #include "confdefs.h"
16144 /* System header to define __stub macros and hopefully few prototypes,
16145     which can conflict with char $ac_func(); below.  */
16146 #include <assert.h>
16147 /* Override any gcc2 internal prototype to avoid an error.  */
16148 /* We use char because int might match the return type of a gcc2
16149     builtin and then its argument prototype would still apply.  */
16150 char $ac_func();
16151
16152 int main() {
16153
16154 /* The GNU C library defines this for functions which it implements
16155     to always fail with ENOSYS.  Some functions are actually named
16156     something starting with __ and the normal name is an alias.  */
16157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16158 choke me
16159 #else
16160 $ac_func();
16161 #endif
16162
16163 ; return 0; }
16164 EOF
16165 if { (eval echo configure:16166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16166   rm -rf conftest*
16167   eval "ac_cv_func_$ac_func=yes"
16168 else
16169   echo "configure: failed program was:" >&5
16170   cat conftest.$ac_ext >&5
16171   rm -rf conftest*
16172   eval "ac_cv_func_$ac_func=no"
16173 fi
16174 rm -f conftest*
16175 fi
16176
16177 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16178   echo "$ac_t""yes" 1>&6
16179     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16180   cat >> confdefs.h <<EOF
16181 #define $ac_tr_func 1
16182 EOF
16183  
16184 else
16185   echo "$ac_t""no" 1>&6
16186 fi
16187 done
16188
16189   fi
16190
16191   
16192   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16193 echo "configure:16194: checking for long double round functions" >&5
16194   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
16195   echo $ac_n "(cached) $ac_c" 1>&6
16196 else
16197   
16198     
16199     ac_ext=C
16200 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16201 ac_cpp='$CXXCPP $CPPFLAGS'
16202 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16203 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16204 cross_compiling=$ac_cv_prog_cxx_cross
16205
16206     cat > conftest.$ac_ext <<EOF
16207 #line 16208 "configure"
16208 #include "confdefs.h"
16209 #include <math.h>
16210 int main() {
16211  `for x in ceill floorl; do echo "$x (0);"; done` 
16212 ; return 0; }
16213 EOF
16214 if { (eval echo configure:16215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16215   rm -rf conftest*
16216   glibcpp_cv_func_long_double_round_use=yes
16217 else
16218   echo "configure: failed program was:" >&5
16219   cat conftest.$ac_ext >&5
16220   rm -rf conftest*
16221   glibcpp_cv_func_long_double_round_use=no
16222 fi
16223 rm -f conftest*
16224     ac_ext=c
16225 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16226 ac_cpp='$CPP $CPPFLAGS'
16227 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16228 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16229 cross_compiling=$ac_cv_prog_cc_cross
16230
16231 fi
16232
16233   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
16234   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
16235     for ac_func in ceill floorl
16236 do
16237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16238 echo "configure:16239: checking for $ac_func" >&5
16239 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16240   echo $ac_n "(cached) $ac_c" 1>&6
16241 else
16242   cat > conftest.$ac_ext <<EOF
16243 #line 16244 "configure"
16244 #include "confdefs.h"
16245 /* System header to define __stub macros and hopefully few prototypes,
16246     which can conflict with char $ac_func(); below.  */
16247 #include <assert.h>
16248 /* Override any gcc2 internal prototype to avoid an error.  */
16249 /* We use char because int might match the return type of a gcc2
16250     builtin and then its argument prototype would still apply.  */
16251 char $ac_func();
16252
16253 int main() {
16254
16255 /* The GNU C library defines this for functions which it implements
16256     to always fail with ENOSYS.  Some functions are actually named
16257     something starting with __ and the normal name is an alias.  */
16258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16259 choke me
16260 #else
16261 $ac_func();
16262 #endif
16263
16264 ; return 0; }
16265 EOF
16266 if { (eval echo configure:16267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16267   rm -rf conftest*
16268   eval "ac_cv_func_$ac_func=yes"
16269 else
16270   echo "configure: failed program was:" >&5
16271   cat conftest.$ac_ext >&5
16272   rm -rf conftest*
16273   eval "ac_cv_func_$ac_func=no"
16274 fi
16275 rm -f conftest*
16276 fi
16277
16278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16279   echo "$ac_t""yes" 1>&6
16280     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16281   cat >> confdefs.h <<EOF
16282 #define $ac_tr_func 1
16283 EOF
16284  
16285 else
16286   echo "$ac_t""no" 1>&6
16287 fi
16288 done
16289
16290   fi
16291
16292   
16293   
16294   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16295 echo "configure:16296: checking for isnanl declaration" >&5
16296   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
16297     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
16298   echo $ac_n "(cached) $ac_c" 1>&6
16299 else
16300   
16301       
16302       ac_ext=C
16303 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16304 ac_cpp='$CXXCPP $CPPFLAGS'
16305 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16306 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16307 cross_compiling=$ac_cv_prog_cxx_cross
16308
16309       cat > conftest.$ac_ext <<EOF
16310 #line 16311 "configure"
16311 #include "confdefs.h"
16312 #include <math.h>
16313                       #ifdef HAVE_IEEEFP_H
16314                       #include <ieeefp.h>
16315                       #endif
16316                      
16317 int main() {
16318  isnanl(0);
16319 ; return 0; }
16320 EOF
16321 if { (eval echo configure:16322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16322   rm -rf conftest*
16323   glibcpp_cv_func_isnanl_use=yes
16324 else
16325   echo "configure: failed program was:" >&5
16326   cat conftest.$ac_ext >&5
16327   rm -rf conftest*
16328   glibcpp_cv_func_isnanl_use=no
16329 fi
16330 rm -f conftest*
16331       ac_ext=c
16332 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16333 ac_cpp='$CPP $CPPFLAGS'
16334 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16335 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16336 cross_compiling=$ac_cv_prog_cc_cross
16337
16338     
16339 fi
16340
16341   fi
16342   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
16343
16344   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
16345     for ac_func in isnanl
16346 do
16347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16348 echo "configure:16349: checking for $ac_func" >&5
16349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16350   echo $ac_n "(cached) $ac_c" 1>&6
16351 else
16352   cat > conftest.$ac_ext <<EOF
16353 #line 16354 "configure"
16354 #include "confdefs.h"
16355 /* System header to define __stub macros and hopefully few prototypes,
16356     which can conflict with char $ac_func(); below.  */
16357 #include <assert.h>
16358 /* Override any gcc2 internal prototype to avoid an error.  */
16359 /* We use char because int might match the return type of a gcc2
16360     builtin and then its argument prototype would still apply.  */
16361 char $ac_func();
16362
16363 int main() {
16364
16365 /* The GNU C library defines this for functions which it implements
16366     to always fail with ENOSYS.  Some functions are actually named
16367     something starting with __ and the normal name is an alias.  */
16368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16369 choke me
16370 #else
16371 $ac_func();
16372 #endif
16373
16374 ; return 0; }
16375 EOF
16376 if { (eval echo configure:16377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16377   rm -rf conftest*
16378   eval "ac_cv_func_$ac_func=yes"
16379 else
16380   echo "configure: failed program was:" >&5
16381   cat conftest.$ac_ext >&5
16382   rm -rf conftest*
16383   eval "ac_cv_func_$ac_func=no"
16384 fi
16385 rm -f conftest*
16386 fi
16387
16388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16389   echo "$ac_t""yes" 1>&6
16390     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16391   cat >> confdefs.h <<EOF
16392 #define $ac_tr_func 1
16393 EOF
16394  
16395 else
16396   echo "$ac_t""no" 1>&6
16397 fi
16398 done
16399     
16400   else
16401     
16402   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16403 echo "configure:16404: checking for _isnanl declaration" >&5
16404   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
16405     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
16406   echo $ac_n "(cached) $ac_c" 1>&6
16407 else
16408   
16409       
16410       ac_ext=C
16411 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16412 ac_cpp='$CXXCPP $CPPFLAGS'
16413 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16414 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16415 cross_compiling=$ac_cv_prog_cxx_cross
16416
16417       cat > conftest.$ac_ext <<EOF
16418 #line 16419 "configure"
16419 #include "confdefs.h"
16420 #include <math.h>
16421                       #ifdef HAVE_IEEEFP_H
16422                       #include <ieeefp.h>
16423                       #endif
16424                      
16425 int main() {
16426  _isnanl(0);
16427 ; return 0; }
16428 EOF
16429 if { (eval echo configure:16430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16430   rm -rf conftest*
16431   glibcpp_cv_func__isnanl_use=yes
16432 else
16433   echo "configure: failed program was:" >&5
16434   cat conftest.$ac_ext >&5
16435   rm -rf conftest*
16436   glibcpp_cv_func__isnanl_use=no
16437 fi
16438 rm -f conftest*
16439       ac_ext=c
16440 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16441 ac_cpp='$CPP $CPPFLAGS'
16442 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16443 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16444 cross_compiling=$ac_cv_prog_cc_cross
16445
16446     
16447 fi
16448
16449   fi
16450   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
16451
16452     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
16453       for ac_func in _isnanl
16454 do
16455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16456 echo "configure:16457: checking for $ac_func" >&5
16457 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16458   echo $ac_n "(cached) $ac_c" 1>&6
16459 else
16460   cat > conftest.$ac_ext <<EOF
16461 #line 16462 "configure"
16462 #include "confdefs.h"
16463 /* System header to define __stub macros and hopefully few prototypes,
16464     which can conflict with char $ac_func(); below.  */
16465 #include <assert.h>
16466 /* Override any gcc2 internal prototype to avoid an error.  */
16467 /* We use char because int might match the return type of a gcc2
16468     builtin and then its argument prototype would still apply.  */
16469 char $ac_func();
16470
16471 int main() {
16472
16473 /* The GNU C library defines this for functions which it implements
16474     to always fail with ENOSYS.  Some functions are actually named
16475     something starting with __ and the normal name is an alias.  */
16476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16477 choke me
16478 #else
16479 $ac_func();
16480 #endif
16481
16482 ; return 0; }
16483 EOF
16484 if { (eval echo configure:16485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16485   rm -rf conftest*
16486   eval "ac_cv_func_$ac_func=yes"
16487 else
16488   echo "configure: failed program was:" >&5
16489   cat conftest.$ac_ext >&5
16490   rm -rf conftest*
16491   eval "ac_cv_func_$ac_func=no"
16492 fi
16493 rm -f conftest*
16494 fi
16495
16496 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16497   echo "$ac_t""yes" 1>&6
16498     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16499   cat >> confdefs.h <<EOF
16500 #define $ac_tr_func 1
16501 EOF
16502  
16503 else
16504   echo "$ac_t""no" 1>&6
16505 fi
16506 done
16507     
16508     fi
16509   fi
16510
16511   
16512   
16513   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16514 echo "configure:16515: checking for isinfl declaration" >&5
16515   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
16516     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
16517   echo $ac_n "(cached) $ac_c" 1>&6
16518 else
16519   
16520       
16521       ac_ext=C
16522 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16523 ac_cpp='$CXXCPP $CPPFLAGS'
16524 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16525 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16526 cross_compiling=$ac_cv_prog_cxx_cross
16527
16528       cat > conftest.$ac_ext <<EOF
16529 #line 16530 "configure"
16530 #include "confdefs.h"
16531 #include <math.h>
16532                       #ifdef HAVE_IEEEFP_H
16533                       #include <ieeefp.h>
16534                       #endif
16535                      
16536 int main() {
16537  isinfl(0);
16538 ; return 0; }
16539 EOF
16540 if { (eval echo configure:16541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16541   rm -rf conftest*
16542   glibcpp_cv_func_isinfl_use=yes
16543 else
16544   echo "configure: failed program was:" >&5
16545   cat conftest.$ac_ext >&5
16546   rm -rf conftest*
16547   glibcpp_cv_func_isinfl_use=no
16548 fi
16549 rm -f conftest*
16550       ac_ext=c
16551 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16552 ac_cpp='$CPP $CPPFLAGS'
16553 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16554 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16555 cross_compiling=$ac_cv_prog_cc_cross
16556
16557     
16558 fi
16559
16560   fi
16561   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
16562
16563   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
16564     for ac_func in isinfl
16565 do
16566 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16567 echo "configure:16568: checking for $ac_func" >&5
16568 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16569   echo $ac_n "(cached) $ac_c" 1>&6
16570 else
16571   cat > conftest.$ac_ext <<EOF
16572 #line 16573 "configure"
16573 #include "confdefs.h"
16574 /* System header to define __stub macros and hopefully few prototypes,
16575     which can conflict with char $ac_func(); below.  */
16576 #include <assert.h>
16577 /* Override any gcc2 internal prototype to avoid an error.  */
16578 /* We use char because int might match the return type of a gcc2
16579     builtin and then its argument prototype would still apply.  */
16580 char $ac_func();
16581
16582 int main() {
16583
16584 /* The GNU C library defines this for functions which it implements
16585     to always fail with ENOSYS.  Some functions are actually named
16586     something starting with __ and the normal name is an alias.  */
16587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16588 choke me
16589 #else
16590 $ac_func();
16591 #endif
16592
16593 ; return 0; }
16594 EOF
16595 if { (eval echo configure:16596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16596   rm -rf conftest*
16597   eval "ac_cv_func_$ac_func=yes"
16598 else
16599   echo "configure: failed program was:" >&5
16600   cat conftest.$ac_ext >&5
16601   rm -rf conftest*
16602   eval "ac_cv_func_$ac_func=no"
16603 fi
16604 rm -f conftest*
16605 fi
16606
16607 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16608   echo "$ac_t""yes" 1>&6
16609     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16610   cat >> confdefs.h <<EOF
16611 #define $ac_tr_func 1
16612 EOF
16613  
16614 else
16615   echo "$ac_t""no" 1>&6
16616 fi
16617 done
16618     
16619   else
16620     
16621   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16622 echo "configure:16623: checking for _isinfl declaration" >&5
16623   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
16624     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
16625   echo $ac_n "(cached) $ac_c" 1>&6
16626 else
16627   
16628       
16629       ac_ext=C
16630 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16631 ac_cpp='$CXXCPP $CPPFLAGS'
16632 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16633 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16634 cross_compiling=$ac_cv_prog_cxx_cross
16635
16636       cat > conftest.$ac_ext <<EOF
16637 #line 16638 "configure"
16638 #include "confdefs.h"
16639 #include <math.h>
16640                       #ifdef HAVE_IEEEFP_H
16641                       #include <ieeefp.h>
16642                       #endif
16643                      
16644 int main() {
16645  _isinfl(0);
16646 ; return 0; }
16647 EOF
16648 if { (eval echo configure:16649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16649   rm -rf conftest*
16650   glibcpp_cv_func__isinfl_use=yes
16651 else
16652   echo "configure: failed program was:" >&5
16653   cat conftest.$ac_ext >&5
16654   rm -rf conftest*
16655   glibcpp_cv_func__isinfl_use=no
16656 fi
16657 rm -f conftest*
16658       ac_ext=c
16659 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16660 ac_cpp='$CPP $CPPFLAGS'
16661 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16662 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16663 cross_compiling=$ac_cv_prog_cc_cross
16664
16665     
16666 fi
16667
16668   fi
16669   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
16670
16671     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
16672       for ac_func in _isinfl
16673 do
16674 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16675 echo "configure:16676: checking for $ac_func" >&5
16676 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16677   echo $ac_n "(cached) $ac_c" 1>&6
16678 else
16679   cat > conftest.$ac_ext <<EOF
16680 #line 16681 "configure"
16681 #include "confdefs.h"
16682 /* System header to define __stub macros and hopefully few prototypes,
16683     which can conflict with char $ac_func(); below.  */
16684 #include <assert.h>
16685 /* Override any gcc2 internal prototype to avoid an error.  */
16686 /* We use char because int might match the return type of a gcc2
16687     builtin and then its argument prototype would still apply.  */
16688 char $ac_func();
16689
16690 int main() {
16691
16692 /* The GNU C library defines this for functions which it implements
16693     to always fail with ENOSYS.  Some functions are actually named
16694     something starting with __ and the normal name is an alias.  */
16695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16696 choke me
16697 #else
16698 $ac_func();
16699 #endif
16700
16701 ; return 0; }
16702 EOF
16703 if { (eval echo configure:16704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16704   rm -rf conftest*
16705   eval "ac_cv_func_$ac_func=yes"
16706 else
16707   echo "configure: failed program was:" >&5
16708   cat conftest.$ac_ext >&5
16709   rm -rf conftest*
16710   eval "ac_cv_func_$ac_func=no"
16711 fi
16712 rm -f conftest*
16713 fi
16714
16715 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16716   echo "$ac_t""yes" 1>&6
16717     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16718   cat >> confdefs.h <<EOF
16719 #define $ac_tr_func 1
16720 EOF
16721  
16722 else
16723   echo "$ac_t""no" 1>&6
16724 fi
16725 done
16726     
16727     fi
16728   fi
16729
16730   
16731   
16732   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16733 echo "configure:16734: checking for copysignl declaration" >&5
16734   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
16735     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
16736   echo $ac_n "(cached) $ac_c" 1>&6
16737 else
16738   
16739       
16740       ac_ext=C
16741 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16742 ac_cpp='$CXXCPP $CPPFLAGS'
16743 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16744 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16745 cross_compiling=$ac_cv_prog_cxx_cross
16746
16747       cat > conftest.$ac_ext <<EOF
16748 #line 16749 "configure"
16749 #include "confdefs.h"
16750 #include <math.h>
16751 int main() {
16752  copysignl(0, 0);
16753 ; return 0; }
16754 EOF
16755 if { (eval echo configure:16756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16756   rm -rf conftest*
16757   glibcpp_cv_func_copysignl_use=yes
16758 else
16759   echo "configure: failed program was:" >&5
16760   cat conftest.$ac_ext >&5
16761   rm -rf conftest*
16762   glibcpp_cv_func_copysignl_use=no
16763 fi
16764 rm -f conftest*
16765       ac_ext=c
16766 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16767 ac_cpp='$CPP $CPPFLAGS'
16768 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16769 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16770 cross_compiling=$ac_cv_prog_cc_cross
16771
16772     
16773 fi
16774
16775   fi
16776   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
16777
16778   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
16779     for ac_func in copysignl
16780 do
16781 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16782 echo "configure:16783: checking for $ac_func" >&5
16783 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16784   echo $ac_n "(cached) $ac_c" 1>&6
16785 else
16786   cat > conftest.$ac_ext <<EOF
16787 #line 16788 "configure"
16788 #include "confdefs.h"
16789 /* System header to define __stub macros and hopefully few prototypes,
16790     which can conflict with char $ac_func(); below.  */
16791 #include <assert.h>
16792 /* Override any gcc2 internal prototype to avoid an error.  */
16793 /* We use char because int might match the return type of a gcc2
16794     builtin and then its argument prototype would still apply.  */
16795 char $ac_func();
16796
16797 int main() {
16798
16799 /* The GNU C library defines this for functions which it implements
16800     to always fail with ENOSYS.  Some functions are actually named
16801     something starting with __ and the normal name is an alias.  */
16802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16803 choke me
16804 #else
16805 $ac_func();
16806 #endif
16807
16808 ; return 0; }
16809 EOF
16810 if { (eval echo configure:16811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16811   rm -rf conftest*
16812   eval "ac_cv_func_$ac_func=yes"
16813 else
16814   echo "configure: failed program was:" >&5
16815   cat conftest.$ac_ext >&5
16816   rm -rf conftest*
16817   eval "ac_cv_func_$ac_func=no"
16818 fi
16819 rm -f conftest*
16820 fi
16821
16822 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16823   echo "$ac_t""yes" 1>&6
16824     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16825   cat >> confdefs.h <<EOF
16826 #define $ac_tr_func 1
16827 EOF
16828  
16829 else
16830   echo "$ac_t""no" 1>&6
16831 fi
16832 done
16833     
16834   else
16835     
16836   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
16837 echo "configure:16838: checking for _copysignl declaration" >&5
16838   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
16839     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
16840   echo $ac_n "(cached) $ac_c" 1>&6
16841 else
16842   
16843       
16844       ac_ext=C
16845 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16846 ac_cpp='$CXXCPP $CPPFLAGS'
16847 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16848 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16849 cross_compiling=$ac_cv_prog_cxx_cross
16850
16851       cat > conftest.$ac_ext <<EOF
16852 #line 16853 "configure"
16853 #include "confdefs.h"
16854 #include <math.h>
16855 int main() {
16856  _copysignl(0, 0);
16857 ; return 0; }
16858 EOF
16859 if { (eval echo configure:16860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16860   rm -rf conftest*
16861   glibcpp_cv_func__copysignl_use=yes
16862 else
16863   echo "configure: failed program was:" >&5
16864   cat conftest.$ac_ext >&5
16865   rm -rf conftest*
16866   glibcpp_cv_func__copysignl_use=no
16867 fi
16868 rm -f conftest*
16869       ac_ext=c
16870 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16871 ac_cpp='$CPP $CPPFLAGS'
16872 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16873 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16874 cross_compiling=$ac_cv_prog_cc_cross
16875
16876     
16877 fi
16878
16879   fi
16880   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
16881
16882     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
16883       for ac_func in _copysignl
16884 do
16885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16886 echo "configure:16887: checking for $ac_func" >&5
16887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16888   echo $ac_n "(cached) $ac_c" 1>&6
16889 else
16890   cat > conftest.$ac_ext <<EOF
16891 #line 16892 "configure"
16892 #include "confdefs.h"
16893 /* System header to define __stub macros and hopefully few prototypes,
16894     which can conflict with char $ac_func(); below.  */
16895 #include <assert.h>
16896 /* Override any gcc2 internal prototype to avoid an error.  */
16897 /* We use char because int might match the return type of a gcc2
16898     builtin and then its argument prototype would still apply.  */
16899 char $ac_func();
16900
16901 int main() {
16902
16903 /* The GNU C library defines this for functions which it implements
16904     to always fail with ENOSYS.  Some functions are actually named
16905     something starting with __ and the normal name is an alias.  */
16906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16907 choke me
16908 #else
16909 $ac_func();
16910 #endif
16911
16912 ; return 0; }
16913 EOF
16914 if { (eval echo configure:16915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16915   rm -rf conftest*
16916   eval "ac_cv_func_$ac_func=yes"
16917 else
16918   echo "configure: failed program was:" >&5
16919   cat conftest.$ac_ext >&5
16920   rm -rf conftest*
16921   eval "ac_cv_func_$ac_func=no"
16922 fi
16923 rm -f conftest*
16924 fi
16925
16926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16927   echo "$ac_t""yes" 1>&6
16928     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16929   cat >> confdefs.h <<EOF
16930 #define $ac_tr_func 1
16931 EOF
16932  
16933 else
16934   echo "$ac_t""no" 1>&6
16935 fi
16936 done
16937     
16938     fi
16939   fi
16940
16941   
16942   
16943   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
16944 echo "configure:16945: checking for atan2l declaration" >&5
16945   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
16946     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
16947   echo $ac_n "(cached) $ac_c" 1>&6
16948 else
16949   
16950       
16951       ac_ext=C
16952 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16953 ac_cpp='$CXXCPP $CPPFLAGS'
16954 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16955 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16956 cross_compiling=$ac_cv_prog_cxx_cross
16957
16958       cat > conftest.$ac_ext <<EOF
16959 #line 16960 "configure"
16960 #include "confdefs.h"
16961 #include <math.h>
16962 int main() {
16963  atan2l(0, 0);
16964 ; return 0; }
16965 EOF
16966 if { (eval echo configure:16967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16967   rm -rf conftest*
16968   glibcpp_cv_func_atan2l_use=yes
16969 else
16970   echo "configure: failed program was:" >&5
16971   cat conftest.$ac_ext >&5
16972   rm -rf conftest*
16973   glibcpp_cv_func_atan2l_use=no
16974 fi
16975 rm -f conftest*
16976       ac_ext=c
16977 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16978 ac_cpp='$CPP $CPPFLAGS'
16979 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16980 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16981 cross_compiling=$ac_cv_prog_cc_cross
16982
16983     
16984 fi
16985
16986   fi
16987   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
16988
16989   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
16990     for ac_func in atan2l
16991 do
16992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16993 echo "configure:16994: checking for $ac_func" >&5
16994 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16995   echo $ac_n "(cached) $ac_c" 1>&6
16996 else
16997   cat > conftest.$ac_ext <<EOF
16998 #line 16999 "configure"
16999 #include "confdefs.h"
17000 /* System header to define __stub macros and hopefully few prototypes,
17001     which can conflict with char $ac_func(); below.  */
17002 #include <assert.h>
17003 /* Override any gcc2 internal prototype to avoid an error.  */
17004 /* We use char because int might match the return type of a gcc2
17005     builtin and then its argument prototype would still apply.  */
17006 char $ac_func();
17007
17008 int main() {
17009
17010 /* The GNU C library defines this for functions which it implements
17011     to always fail with ENOSYS.  Some functions are actually named
17012     something starting with __ and the normal name is an alias.  */
17013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17014 choke me
17015 #else
17016 $ac_func();
17017 #endif
17018
17019 ; return 0; }
17020 EOF
17021 if { (eval echo configure:17022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17022   rm -rf conftest*
17023   eval "ac_cv_func_$ac_func=yes"
17024 else
17025   echo "configure: failed program was:" >&5
17026   cat conftest.$ac_ext >&5
17027   rm -rf conftest*
17028   eval "ac_cv_func_$ac_func=no"
17029 fi
17030 rm -f conftest*
17031 fi
17032
17033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17034   echo "$ac_t""yes" 1>&6
17035     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17036   cat >> confdefs.h <<EOF
17037 #define $ac_tr_func 1
17038 EOF
17039  
17040 else
17041   echo "$ac_t""no" 1>&6
17042 fi
17043 done
17044     
17045   else
17046     
17047   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17048 echo "configure:17049: checking for _atan2l declaration" >&5
17049   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
17050     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
17051   echo $ac_n "(cached) $ac_c" 1>&6
17052 else
17053   
17054       
17055       ac_ext=C
17056 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17057 ac_cpp='$CXXCPP $CPPFLAGS'
17058 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17059 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17060 cross_compiling=$ac_cv_prog_cxx_cross
17061
17062       cat > conftest.$ac_ext <<EOF
17063 #line 17064 "configure"
17064 #include "confdefs.h"
17065 #include <math.h>
17066 int main() {
17067  _atan2l(0, 0);
17068 ; return 0; }
17069 EOF
17070 if { (eval echo configure:17071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17071   rm -rf conftest*
17072   glibcpp_cv_func__atan2l_use=yes
17073 else
17074   echo "configure: failed program was:" >&5
17075   cat conftest.$ac_ext >&5
17076   rm -rf conftest*
17077   glibcpp_cv_func__atan2l_use=no
17078 fi
17079 rm -f conftest*
17080       ac_ext=c
17081 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17082 ac_cpp='$CPP $CPPFLAGS'
17083 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17084 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17085 cross_compiling=$ac_cv_prog_cc_cross
17086
17087     
17088 fi
17089
17090   fi
17091   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
17092
17093     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
17094       for ac_func in _atan2l
17095 do
17096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17097 echo "configure:17098: checking for $ac_func" >&5
17098 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17099   echo $ac_n "(cached) $ac_c" 1>&6
17100 else
17101   cat > conftest.$ac_ext <<EOF
17102 #line 17103 "configure"
17103 #include "confdefs.h"
17104 /* System header to define __stub macros and hopefully few prototypes,
17105     which can conflict with char $ac_func(); below.  */
17106 #include <assert.h>
17107 /* Override any gcc2 internal prototype to avoid an error.  */
17108 /* We use char because int might match the return type of a gcc2
17109     builtin and then its argument prototype would still apply.  */
17110 char $ac_func();
17111
17112 int main() {
17113
17114 /* The GNU C library defines this for functions which it implements
17115     to always fail with ENOSYS.  Some functions are actually named
17116     something starting with __ and the normal name is an alias.  */
17117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17118 choke me
17119 #else
17120 $ac_func();
17121 #endif
17122
17123 ; return 0; }
17124 EOF
17125 if { (eval echo configure:17126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17126   rm -rf conftest*
17127   eval "ac_cv_func_$ac_func=yes"
17128 else
17129   echo "configure: failed program was:" >&5
17130   cat conftest.$ac_ext >&5
17131   rm -rf conftest*
17132   eval "ac_cv_func_$ac_func=no"
17133 fi
17134 rm -f conftest*
17135 fi
17136
17137 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17138   echo "$ac_t""yes" 1>&6
17139     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17140   cat >> confdefs.h <<EOF
17141 #define $ac_tr_func 1
17142 EOF
17143  
17144 else
17145   echo "$ac_t""no" 1>&6
17146 fi
17147 done
17148     
17149     fi
17150   fi
17151
17152   
17153   
17154   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17155 echo "configure:17156: checking for expl declaration" >&5
17156   if test x${glibcpp_cv_func_expl_use+set} != xset; then
17157     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
17158   echo $ac_n "(cached) $ac_c" 1>&6
17159 else
17160   
17161       
17162       ac_ext=C
17163 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17164 ac_cpp='$CXXCPP $CPPFLAGS'
17165 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17166 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17167 cross_compiling=$ac_cv_prog_cxx_cross
17168
17169       cat > conftest.$ac_ext <<EOF
17170 #line 17171 "configure"
17171 #include "confdefs.h"
17172 #include <math.h>
17173                       #ifdef HAVE_IEEEFP_H
17174                       #include <ieeefp.h>
17175                       #endif
17176                      
17177 int main() {
17178  expl(0);
17179 ; return 0; }
17180 EOF
17181 if { (eval echo configure:17182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17182   rm -rf conftest*
17183   glibcpp_cv_func_expl_use=yes
17184 else
17185   echo "configure: failed program was:" >&5
17186   cat conftest.$ac_ext >&5
17187   rm -rf conftest*
17188   glibcpp_cv_func_expl_use=no
17189 fi
17190 rm -f conftest*
17191       ac_ext=c
17192 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17193 ac_cpp='$CPP $CPPFLAGS'
17194 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17195 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17196 cross_compiling=$ac_cv_prog_cc_cross
17197
17198     
17199 fi
17200
17201   fi
17202   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
17203
17204   if test x$glibcpp_cv_func_expl_use = x"yes"; then
17205     for ac_func in expl
17206 do
17207 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17208 echo "configure:17209: checking for $ac_func" >&5
17209 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17210   echo $ac_n "(cached) $ac_c" 1>&6
17211 else
17212   cat > conftest.$ac_ext <<EOF
17213 #line 17214 "configure"
17214 #include "confdefs.h"
17215 /* System header to define __stub macros and hopefully few prototypes,
17216     which can conflict with char $ac_func(); below.  */
17217 #include <assert.h>
17218 /* Override any gcc2 internal prototype to avoid an error.  */
17219 /* We use char because int might match the return type of a gcc2
17220     builtin and then its argument prototype would still apply.  */
17221 char $ac_func();
17222
17223 int main() {
17224
17225 /* The GNU C library defines this for functions which it implements
17226     to always fail with ENOSYS.  Some functions are actually named
17227     something starting with __ and the normal name is an alias.  */
17228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17229 choke me
17230 #else
17231 $ac_func();
17232 #endif
17233
17234 ; return 0; }
17235 EOF
17236 if { (eval echo configure:17237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17237   rm -rf conftest*
17238   eval "ac_cv_func_$ac_func=yes"
17239 else
17240   echo "configure: failed program was:" >&5
17241   cat conftest.$ac_ext >&5
17242   rm -rf conftest*
17243   eval "ac_cv_func_$ac_func=no"
17244 fi
17245 rm -f conftest*
17246 fi
17247
17248 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17249   echo "$ac_t""yes" 1>&6
17250     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17251   cat >> confdefs.h <<EOF
17252 #define $ac_tr_func 1
17253 EOF
17254  
17255 else
17256   echo "$ac_t""no" 1>&6
17257 fi
17258 done
17259     
17260   else
17261     
17262   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17263 echo "configure:17264: checking for _expl declaration" >&5
17264   if test x${glibcpp_cv_func__expl_use+set} != xset; then
17265     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
17266   echo $ac_n "(cached) $ac_c" 1>&6
17267 else
17268   
17269       
17270       ac_ext=C
17271 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17272 ac_cpp='$CXXCPP $CPPFLAGS'
17273 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17274 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17275 cross_compiling=$ac_cv_prog_cxx_cross
17276
17277       cat > conftest.$ac_ext <<EOF
17278 #line 17279 "configure"
17279 #include "confdefs.h"
17280 #include <math.h>
17281                       #ifdef HAVE_IEEEFP_H
17282                       #include <ieeefp.h>
17283                       #endif
17284                      
17285 int main() {
17286  _expl(0);
17287 ; return 0; }
17288 EOF
17289 if { (eval echo configure:17290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17290   rm -rf conftest*
17291   glibcpp_cv_func__expl_use=yes
17292 else
17293   echo "configure: failed program was:" >&5
17294   cat conftest.$ac_ext >&5
17295   rm -rf conftest*
17296   glibcpp_cv_func__expl_use=no
17297 fi
17298 rm -f conftest*
17299       ac_ext=c
17300 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17301 ac_cpp='$CPP $CPPFLAGS'
17302 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17303 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17304 cross_compiling=$ac_cv_prog_cc_cross
17305
17306     
17307 fi
17308
17309   fi
17310   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
17311
17312     if test x$glibcpp_cv_func__expl_use = x"yes"; then
17313       for ac_func in _expl
17314 do
17315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17316 echo "configure:17317: checking for $ac_func" >&5
17317 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17318   echo $ac_n "(cached) $ac_c" 1>&6
17319 else
17320   cat > conftest.$ac_ext <<EOF
17321 #line 17322 "configure"
17322 #include "confdefs.h"
17323 /* System header to define __stub macros and hopefully few prototypes,
17324     which can conflict with char $ac_func(); below.  */
17325 #include <assert.h>
17326 /* Override any gcc2 internal prototype to avoid an error.  */
17327 /* We use char because int might match the return type of a gcc2
17328     builtin and then its argument prototype would still apply.  */
17329 char $ac_func();
17330
17331 int main() {
17332
17333 /* The GNU C library defines this for functions which it implements
17334     to always fail with ENOSYS.  Some functions are actually named
17335     something starting with __ and the normal name is an alias.  */
17336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17337 choke me
17338 #else
17339 $ac_func();
17340 #endif
17341
17342 ; return 0; }
17343 EOF
17344 if { (eval echo configure:17345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17345   rm -rf conftest*
17346   eval "ac_cv_func_$ac_func=yes"
17347 else
17348   echo "configure: failed program was:" >&5
17349   cat conftest.$ac_ext >&5
17350   rm -rf conftest*
17351   eval "ac_cv_func_$ac_func=no"
17352 fi
17353 rm -f conftest*
17354 fi
17355
17356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17357   echo "$ac_t""yes" 1>&6
17358     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17359   cat >> confdefs.h <<EOF
17360 #define $ac_tr_func 1
17361 EOF
17362  
17363 else
17364   echo "$ac_t""no" 1>&6
17365 fi
17366 done
17367     
17368     fi
17369   fi
17370
17371   
17372   
17373   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17374 echo "configure:17375: checking for fabsl declaration" >&5
17375   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
17376     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
17377   echo $ac_n "(cached) $ac_c" 1>&6
17378 else
17379   
17380       
17381       ac_ext=C
17382 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17383 ac_cpp='$CXXCPP $CPPFLAGS'
17384 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17385 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17386 cross_compiling=$ac_cv_prog_cxx_cross
17387
17388       cat > conftest.$ac_ext <<EOF
17389 #line 17390 "configure"
17390 #include "confdefs.h"
17391 #include <math.h>
17392                       #ifdef HAVE_IEEEFP_H
17393                       #include <ieeefp.h>
17394                       #endif
17395                      
17396 int main() {
17397  fabsl(0);
17398 ; return 0; }
17399 EOF
17400 if { (eval echo configure:17401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17401   rm -rf conftest*
17402   glibcpp_cv_func_fabsl_use=yes
17403 else
17404   echo "configure: failed program was:" >&5
17405   cat conftest.$ac_ext >&5
17406   rm -rf conftest*
17407   glibcpp_cv_func_fabsl_use=no
17408 fi
17409 rm -f conftest*
17410       ac_ext=c
17411 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17412 ac_cpp='$CPP $CPPFLAGS'
17413 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17414 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17415 cross_compiling=$ac_cv_prog_cc_cross
17416
17417     
17418 fi
17419
17420   fi
17421   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
17422
17423   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
17424     for ac_func in fabsl
17425 do
17426 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17427 echo "configure:17428: checking for $ac_func" >&5
17428 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17429   echo $ac_n "(cached) $ac_c" 1>&6
17430 else
17431   cat > conftest.$ac_ext <<EOF
17432 #line 17433 "configure"
17433 #include "confdefs.h"
17434 /* System header to define __stub macros and hopefully few prototypes,
17435     which can conflict with char $ac_func(); below.  */
17436 #include <assert.h>
17437 /* Override any gcc2 internal prototype to avoid an error.  */
17438 /* We use char because int might match the return type of a gcc2
17439     builtin and then its argument prototype would still apply.  */
17440 char $ac_func();
17441
17442 int main() {
17443
17444 /* The GNU C library defines this for functions which it implements
17445     to always fail with ENOSYS.  Some functions are actually named
17446     something starting with __ and the normal name is an alias.  */
17447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17448 choke me
17449 #else
17450 $ac_func();
17451 #endif
17452
17453 ; return 0; }
17454 EOF
17455 if { (eval echo configure:17456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17456   rm -rf conftest*
17457   eval "ac_cv_func_$ac_func=yes"
17458 else
17459   echo "configure: failed program was:" >&5
17460   cat conftest.$ac_ext >&5
17461   rm -rf conftest*
17462   eval "ac_cv_func_$ac_func=no"
17463 fi
17464 rm -f conftest*
17465 fi
17466
17467 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17468   echo "$ac_t""yes" 1>&6
17469     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17470   cat >> confdefs.h <<EOF
17471 #define $ac_tr_func 1
17472 EOF
17473  
17474 else
17475   echo "$ac_t""no" 1>&6
17476 fi
17477 done
17478     
17479   else
17480     
17481   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17482 echo "configure:17483: checking for _fabsl declaration" >&5
17483   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
17484     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
17485   echo $ac_n "(cached) $ac_c" 1>&6
17486 else
17487   
17488       
17489       ac_ext=C
17490 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17491 ac_cpp='$CXXCPP $CPPFLAGS'
17492 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17493 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17494 cross_compiling=$ac_cv_prog_cxx_cross
17495
17496       cat > conftest.$ac_ext <<EOF
17497 #line 17498 "configure"
17498 #include "confdefs.h"
17499 #include <math.h>
17500                       #ifdef HAVE_IEEEFP_H
17501                       #include <ieeefp.h>
17502                       #endif
17503                      
17504 int main() {
17505  _fabsl(0);
17506 ; return 0; }
17507 EOF
17508 if { (eval echo configure:17509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17509   rm -rf conftest*
17510   glibcpp_cv_func__fabsl_use=yes
17511 else
17512   echo "configure: failed program was:" >&5
17513   cat conftest.$ac_ext >&5
17514   rm -rf conftest*
17515   glibcpp_cv_func__fabsl_use=no
17516 fi
17517 rm -f conftest*
17518       ac_ext=c
17519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17520 ac_cpp='$CPP $CPPFLAGS'
17521 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17522 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17523 cross_compiling=$ac_cv_prog_cc_cross
17524
17525     
17526 fi
17527
17528   fi
17529   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
17530
17531     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
17532       for ac_func in _fabsl
17533 do
17534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17535 echo "configure:17536: checking for $ac_func" >&5
17536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17537   echo $ac_n "(cached) $ac_c" 1>&6
17538 else
17539   cat > conftest.$ac_ext <<EOF
17540 #line 17541 "configure"
17541 #include "confdefs.h"
17542 /* System header to define __stub macros and hopefully few prototypes,
17543     which can conflict with char $ac_func(); below.  */
17544 #include <assert.h>
17545 /* Override any gcc2 internal prototype to avoid an error.  */
17546 /* We use char because int might match the return type of a gcc2
17547     builtin and then its argument prototype would still apply.  */
17548 char $ac_func();
17549
17550 int main() {
17551
17552 /* The GNU C library defines this for functions which it implements
17553     to always fail with ENOSYS.  Some functions are actually named
17554     something starting with __ and the normal name is an alias.  */
17555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17556 choke me
17557 #else
17558 $ac_func();
17559 #endif
17560
17561 ; return 0; }
17562 EOF
17563 if { (eval echo configure:17564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17564   rm -rf conftest*
17565   eval "ac_cv_func_$ac_func=yes"
17566 else
17567   echo "configure: failed program was:" >&5
17568   cat conftest.$ac_ext >&5
17569   rm -rf conftest*
17570   eval "ac_cv_func_$ac_func=no"
17571 fi
17572 rm -f conftest*
17573 fi
17574
17575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17576   echo "$ac_t""yes" 1>&6
17577     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17578   cat >> confdefs.h <<EOF
17579 #define $ac_tr_func 1
17580 EOF
17581  
17582 else
17583   echo "$ac_t""no" 1>&6
17584 fi
17585 done
17586     
17587     fi
17588   fi
17589
17590   
17591   
17592   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17593 echo "configure:17594: checking for fmodl declaration" >&5
17594   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
17595     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
17596   echo $ac_n "(cached) $ac_c" 1>&6
17597 else
17598   
17599       
17600       ac_ext=C
17601 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17602 ac_cpp='$CXXCPP $CPPFLAGS'
17603 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17604 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17605 cross_compiling=$ac_cv_prog_cxx_cross
17606
17607       cat > conftest.$ac_ext <<EOF
17608 #line 17609 "configure"
17609 #include "confdefs.h"
17610 #include <math.h>
17611 int main() {
17612  fmodl(0, 0);
17613 ; return 0; }
17614 EOF
17615 if { (eval echo configure:17616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17616   rm -rf conftest*
17617   glibcpp_cv_func_fmodl_use=yes
17618 else
17619   echo "configure: failed program was:" >&5
17620   cat conftest.$ac_ext >&5
17621   rm -rf conftest*
17622   glibcpp_cv_func_fmodl_use=no
17623 fi
17624 rm -f conftest*
17625       ac_ext=c
17626 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17627 ac_cpp='$CPP $CPPFLAGS'
17628 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17629 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17630 cross_compiling=$ac_cv_prog_cc_cross
17631
17632     
17633 fi
17634
17635   fi
17636   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
17637
17638   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
17639     for ac_func in fmodl
17640 do
17641 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17642 echo "configure:17643: checking for $ac_func" >&5
17643 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17644   echo $ac_n "(cached) $ac_c" 1>&6
17645 else
17646   cat > conftest.$ac_ext <<EOF
17647 #line 17648 "configure"
17648 #include "confdefs.h"
17649 /* System header to define __stub macros and hopefully few prototypes,
17650     which can conflict with char $ac_func(); below.  */
17651 #include <assert.h>
17652 /* Override any gcc2 internal prototype to avoid an error.  */
17653 /* We use char because int might match the return type of a gcc2
17654     builtin and then its argument prototype would still apply.  */
17655 char $ac_func();
17656
17657 int main() {
17658
17659 /* The GNU C library defines this for functions which it implements
17660     to always fail with ENOSYS.  Some functions are actually named
17661     something starting with __ and the normal name is an alias.  */
17662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17663 choke me
17664 #else
17665 $ac_func();
17666 #endif
17667
17668 ; return 0; }
17669 EOF
17670 if { (eval echo configure:17671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17671   rm -rf conftest*
17672   eval "ac_cv_func_$ac_func=yes"
17673 else
17674   echo "configure: failed program was:" >&5
17675   cat conftest.$ac_ext >&5
17676   rm -rf conftest*
17677   eval "ac_cv_func_$ac_func=no"
17678 fi
17679 rm -f conftest*
17680 fi
17681
17682 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17683   echo "$ac_t""yes" 1>&6
17684     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17685   cat >> confdefs.h <<EOF
17686 #define $ac_tr_func 1
17687 EOF
17688  
17689 else
17690   echo "$ac_t""no" 1>&6
17691 fi
17692 done
17693     
17694   else
17695     
17696   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17697 echo "configure:17698: checking for _fmodl declaration" >&5
17698   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
17699     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
17700   echo $ac_n "(cached) $ac_c" 1>&6
17701 else
17702   
17703       
17704       ac_ext=C
17705 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17706 ac_cpp='$CXXCPP $CPPFLAGS'
17707 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17708 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17709 cross_compiling=$ac_cv_prog_cxx_cross
17710
17711       cat > conftest.$ac_ext <<EOF
17712 #line 17713 "configure"
17713 #include "confdefs.h"
17714 #include <math.h>
17715 int main() {
17716  _fmodl(0, 0);
17717 ; return 0; }
17718 EOF
17719 if { (eval echo configure:17720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17720   rm -rf conftest*
17721   glibcpp_cv_func__fmodl_use=yes
17722 else
17723   echo "configure: failed program was:" >&5
17724   cat conftest.$ac_ext >&5
17725   rm -rf conftest*
17726   glibcpp_cv_func__fmodl_use=no
17727 fi
17728 rm -f conftest*
17729       ac_ext=c
17730 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17731 ac_cpp='$CPP $CPPFLAGS'
17732 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17733 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17734 cross_compiling=$ac_cv_prog_cc_cross
17735
17736     
17737 fi
17738
17739   fi
17740   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
17741
17742     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
17743       for ac_func in _fmodl
17744 do
17745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17746 echo "configure:17747: checking for $ac_func" >&5
17747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17748   echo $ac_n "(cached) $ac_c" 1>&6
17749 else
17750   cat > conftest.$ac_ext <<EOF
17751 #line 17752 "configure"
17752 #include "confdefs.h"
17753 /* System header to define __stub macros and hopefully few prototypes,
17754     which can conflict with char $ac_func(); below.  */
17755 #include <assert.h>
17756 /* Override any gcc2 internal prototype to avoid an error.  */
17757 /* We use char because int might match the return type of a gcc2
17758     builtin and then its argument prototype would still apply.  */
17759 char $ac_func();
17760
17761 int main() {
17762
17763 /* The GNU C library defines this for functions which it implements
17764     to always fail with ENOSYS.  Some functions are actually named
17765     something starting with __ and the normal name is an alias.  */
17766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17767 choke me
17768 #else
17769 $ac_func();
17770 #endif
17771
17772 ; return 0; }
17773 EOF
17774 if { (eval echo configure:17775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17775   rm -rf conftest*
17776   eval "ac_cv_func_$ac_func=yes"
17777 else
17778   echo "configure: failed program was:" >&5
17779   cat conftest.$ac_ext >&5
17780   rm -rf conftest*
17781   eval "ac_cv_func_$ac_func=no"
17782 fi
17783 rm -f conftest*
17784 fi
17785
17786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17787   echo "$ac_t""yes" 1>&6
17788     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17789   cat >> confdefs.h <<EOF
17790 #define $ac_tr_func 1
17791 EOF
17792  
17793 else
17794   echo "$ac_t""no" 1>&6
17795 fi
17796 done
17797     
17798     fi
17799   fi
17800
17801   
17802   
17803   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
17804 echo "configure:17805: checking for frexpl declaration" >&5
17805   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
17806     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
17807   echo $ac_n "(cached) $ac_c" 1>&6
17808 else
17809   
17810       
17811       ac_ext=C
17812 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17813 ac_cpp='$CXXCPP $CPPFLAGS'
17814 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17815 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17816 cross_compiling=$ac_cv_prog_cxx_cross
17817
17818       cat > conftest.$ac_ext <<EOF
17819 #line 17820 "configure"
17820 #include "confdefs.h"
17821 #include <math.h>
17822 int main() {
17823  frexpl(0, 0);
17824 ; return 0; }
17825 EOF
17826 if { (eval echo configure:17827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17827   rm -rf conftest*
17828   glibcpp_cv_func_frexpl_use=yes
17829 else
17830   echo "configure: failed program was:" >&5
17831   cat conftest.$ac_ext >&5
17832   rm -rf conftest*
17833   glibcpp_cv_func_frexpl_use=no
17834 fi
17835 rm -f conftest*
17836       ac_ext=c
17837 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17838 ac_cpp='$CPP $CPPFLAGS'
17839 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17840 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17841 cross_compiling=$ac_cv_prog_cc_cross
17842
17843     
17844 fi
17845
17846   fi
17847   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
17848
17849   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
17850     for ac_func in frexpl
17851 do
17852 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17853 echo "configure:17854: checking for $ac_func" >&5
17854 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17855   echo $ac_n "(cached) $ac_c" 1>&6
17856 else
17857   cat > conftest.$ac_ext <<EOF
17858 #line 17859 "configure"
17859 #include "confdefs.h"
17860 /* System header to define __stub macros and hopefully few prototypes,
17861     which can conflict with char $ac_func(); below.  */
17862 #include <assert.h>
17863 /* Override any gcc2 internal prototype to avoid an error.  */
17864 /* We use char because int might match the return type of a gcc2
17865     builtin and then its argument prototype would still apply.  */
17866 char $ac_func();
17867
17868 int main() {
17869
17870 /* The GNU C library defines this for functions which it implements
17871     to always fail with ENOSYS.  Some functions are actually named
17872     something starting with __ and the normal name is an alias.  */
17873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17874 choke me
17875 #else
17876 $ac_func();
17877 #endif
17878
17879 ; return 0; }
17880 EOF
17881 if { (eval echo configure:17882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17882   rm -rf conftest*
17883   eval "ac_cv_func_$ac_func=yes"
17884 else
17885   echo "configure: failed program was:" >&5
17886   cat conftest.$ac_ext >&5
17887   rm -rf conftest*
17888   eval "ac_cv_func_$ac_func=no"
17889 fi
17890 rm -f conftest*
17891 fi
17892
17893 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17894   echo "$ac_t""yes" 1>&6
17895     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17896   cat >> confdefs.h <<EOF
17897 #define $ac_tr_func 1
17898 EOF
17899  
17900 else
17901   echo "$ac_t""no" 1>&6
17902 fi
17903 done
17904     
17905   else
17906     
17907   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
17908 echo "configure:17909: checking for _frexpl declaration" >&5
17909   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
17910     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
17911   echo $ac_n "(cached) $ac_c" 1>&6
17912 else
17913   
17914       
17915       ac_ext=C
17916 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17917 ac_cpp='$CXXCPP $CPPFLAGS'
17918 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17919 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17920 cross_compiling=$ac_cv_prog_cxx_cross
17921
17922       cat > conftest.$ac_ext <<EOF
17923 #line 17924 "configure"
17924 #include "confdefs.h"
17925 #include <math.h>
17926 int main() {
17927  _frexpl(0, 0);
17928 ; return 0; }
17929 EOF
17930 if { (eval echo configure:17931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17931   rm -rf conftest*
17932   glibcpp_cv_func__frexpl_use=yes
17933 else
17934   echo "configure: failed program was:" >&5
17935   cat conftest.$ac_ext >&5
17936   rm -rf conftest*
17937   glibcpp_cv_func__frexpl_use=no
17938 fi
17939 rm -f conftest*
17940       ac_ext=c
17941 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17942 ac_cpp='$CPP $CPPFLAGS'
17943 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17944 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17945 cross_compiling=$ac_cv_prog_cc_cross
17946
17947     
17948 fi
17949
17950   fi
17951   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
17952
17953     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
17954       for ac_func in _frexpl
17955 do
17956 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17957 echo "configure:17958: checking for $ac_func" >&5
17958 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17959   echo $ac_n "(cached) $ac_c" 1>&6
17960 else
17961   cat > conftest.$ac_ext <<EOF
17962 #line 17963 "configure"
17963 #include "confdefs.h"
17964 /* System header to define __stub macros and hopefully few prototypes,
17965     which can conflict with char $ac_func(); below.  */
17966 #include <assert.h>
17967 /* Override any gcc2 internal prototype to avoid an error.  */
17968 /* We use char because int might match the return type of a gcc2
17969     builtin and then its argument prototype would still apply.  */
17970 char $ac_func();
17971
17972 int main() {
17973
17974 /* The GNU C library defines this for functions which it implements
17975     to always fail with ENOSYS.  Some functions are actually named
17976     something starting with __ and the normal name is an alias.  */
17977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17978 choke me
17979 #else
17980 $ac_func();
17981 #endif
17982
17983 ; return 0; }
17984 EOF
17985 if { (eval echo configure:17986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17986   rm -rf conftest*
17987   eval "ac_cv_func_$ac_func=yes"
17988 else
17989   echo "configure: failed program was:" >&5
17990   cat conftest.$ac_ext >&5
17991   rm -rf conftest*
17992   eval "ac_cv_func_$ac_func=no"
17993 fi
17994 rm -f conftest*
17995 fi
17996
17997 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17998   echo "$ac_t""yes" 1>&6
17999     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18000   cat >> confdefs.h <<EOF
18001 #define $ac_tr_func 1
18002 EOF
18003  
18004 else
18005   echo "$ac_t""no" 1>&6
18006 fi
18007 done
18008     
18009     fi
18010   fi
18011
18012   
18013   
18014   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
18015 echo "configure:18016: checking for hypotl declaration" >&5
18016   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
18017     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
18018   echo $ac_n "(cached) $ac_c" 1>&6
18019 else
18020   
18021       
18022       ac_ext=C
18023 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18024 ac_cpp='$CXXCPP $CPPFLAGS'
18025 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18026 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18027 cross_compiling=$ac_cv_prog_cxx_cross
18028
18029       cat > conftest.$ac_ext <<EOF
18030 #line 18031 "configure"
18031 #include "confdefs.h"
18032 #include <math.h>
18033 int main() {
18034  hypotl(0, 0);
18035 ; return 0; }
18036 EOF
18037 if { (eval echo configure:18038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18038   rm -rf conftest*
18039   glibcpp_cv_func_hypotl_use=yes
18040 else
18041   echo "configure: failed program was:" >&5
18042   cat conftest.$ac_ext >&5
18043   rm -rf conftest*
18044   glibcpp_cv_func_hypotl_use=no
18045 fi
18046 rm -f conftest*
18047       ac_ext=c
18048 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18049 ac_cpp='$CPP $CPPFLAGS'
18050 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18051 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18052 cross_compiling=$ac_cv_prog_cc_cross
18053
18054     
18055 fi
18056
18057   fi
18058   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
18059
18060   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
18061     for ac_func in hypotl
18062 do
18063 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18064 echo "configure:18065: checking for $ac_func" >&5
18065 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18066   echo $ac_n "(cached) $ac_c" 1>&6
18067 else
18068   cat > conftest.$ac_ext <<EOF
18069 #line 18070 "configure"
18070 #include "confdefs.h"
18071 /* System header to define __stub macros and hopefully few prototypes,
18072     which can conflict with char $ac_func(); below.  */
18073 #include <assert.h>
18074 /* Override any gcc2 internal prototype to avoid an error.  */
18075 /* We use char because int might match the return type of a gcc2
18076     builtin and then its argument prototype would still apply.  */
18077 char $ac_func();
18078
18079 int main() {
18080
18081 /* The GNU C library defines this for functions which it implements
18082     to always fail with ENOSYS.  Some functions are actually named
18083     something starting with __ and the normal name is an alias.  */
18084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18085 choke me
18086 #else
18087 $ac_func();
18088 #endif
18089
18090 ; return 0; }
18091 EOF
18092 if { (eval echo configure:18093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18093   rm -rf conftest*
18094   eval "ac_cv_func_$ac_func=yes"
18095 else
18096   echo "configure: failed program was:" >&5
18097   cat conftest.$ac_ext >&5
18098   rm -rf conftest*
18099   eval "ac_cv_func_$ac_func=no"
18100 fi
18101 rm -f conftest*
18102 fi
18103
18104 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18105   echo "$ac_t""yes" 1>&6
18106     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18107   cat >> confdefs.h <<EOF
18108 #define $ac_tr_func 1
18109 EOF
18110  
18111 else
18112   echo "$ac_t""no" 1>&6
18113 fi
18114 done
18115     
18116   else
18117     
18118   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18119 echo "configure:18120: checking for _hypotl declaration" >&5
18120   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
18121     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
18122   echo $ac_n "(cached) $ac_c" 1>&6
18123 else
18124   
18125       
18126       ac_ext=C
18127 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18128 ac_cpp='$CXXCPP $CPPFLAGS'
18129 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18130 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18131 cross_compiling=$ac_cv_prog_cxx_cross
18132
18133       cat > conftest.$ac_ext <<EOF
18134 #line 18135 "configure"
18135 #include "confdefs.h"
18136 #include <math.h>
18137 int main() {
18138  _hypotl(0, 0);
18139 ; return 0; }
18140 EOF
18141 if { (eval echo configure:18142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18142   rm -rf conftest*
18143   glibcpp_cv_func__hypotl_use=yes
18144 else
18145   echo "configure: failed program was:" >&5
18146   cat conftest.$ac_ext >&5
18147   rm -rf conftest*
18148   glibcpp_cv_func__hypotl_use=no
18149 fi
18150 rm -f conftest*
18151       ac_ext=c
18152 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18153 ac_cpp='$CPP $CPPFLAGS'
18154 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18155 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18156 cross_compiling=$ac_cv_prog_cc_cross
18157
18158     
18159 fi
18160
18161   fi
18162   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
18163
18164     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
18165       for ac_func in _hypotl
18166 do
18167 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18168 echo "configure:18169: checking for $ac_func" >&5
18169 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18170   echo $ac_n "(cached) $ac_c" 1>&6
18171 else
18172   cat > conftest.$ac_ext <<EOF
18173 #line 18174 "configure"
18174 #include "confdefs.h"
18175 /* System header to define __stub macros and hopefully few prototypes,
18176     which can conflict with char $ac_func(); below.  */
18177 #include <assert.h>
18178 /* Override any gcc2 internal prototype to avoid an error.  */
18179 /* We use char because int might match the return type of a gcc2
18180     builtin and then its argument prototype would still apply.  */
18181 char $ac_func();
18182
18183 int main() {
18184
18185 /* The GNU C library defines this for functions which it implements
18186     to always fail with ENOSYS.  Some functions are actually named
18187     something starting with __ and the normal name is an alias.  */
18188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18189 choke me
18190 #else
18191 $ac_func();
18192 #endif
18193
18194 ; return 0; }
18195 EOF
18196 if { (eval echo configure:18197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18197   rm -rf conftest*
18198   eval "ac_cv_func_$ac_func=yes"
18199 else
18200   echo "configure: failed program was:" >&5
18201   cat conftest.$ac_ext >&5
18202   rm -rf conftest*
18203   eval "ac_cv_func_$ac_func=no"
18204 fi
18205 rm -f conftest*
18206 fi
18207
18208 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18209   echo "$ac_t""yes" 1>&6
18210     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18211   cat >> confdefs.h <<EOF
18212 #define $ac_tr_func 1
18213 EOF
18214  
18215 else
18216   echo "$ac_t""no" 1>&6
18217 fi
18218 done
18219     
18220     fi
18221   fi
18222
18223   
18224   
18225   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18226 echo "configure:18227: checking for ldexpl declaration" >&5
18227   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
18228     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
18229   echo $ac_n "(cached) $ac_c" 1>&6
18230 else
18231   
18232       
18233       ac_ext=C
18234 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18235 ac_cpp='$CXXCPP $CPPFLAGS'
18236 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18237 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18238 cross_compiling=$ac_cv_prog_cxx_cross
18239
18240       cat > conftest.$ac_ext <<EOF
18241 #line 18242 "configure"
18242 #include "confdefs.h"
18243 #include <math.h>
18244 int main() {
18245  ldexpl(0, 0);
18246 ; return 0; }
18247 EOF
18248 if { (eval echo configure:18249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18249   rm -rf conftest*
18250   glibcpp_cv_func_ldexpl_use=yes
18251 else
18252   echo "configure: failed program was:" >&5
18253   cat conftest.$ac_ext >&5
18254   rm -rf conftest*
18255   glibcpp_cv_func_ldexpl_use=no
18256 fi
18257 rm -f conftest*
18258       ac_ext=c
18259 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18260 ac_cpp='$CPP $CPPFLAGS'
18261 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18262 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18263 cross_compiling=$ac_cv_prog_cc_cross
18264
18265     
18266 fi
18267
18268   fi
18269   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
18270
18271   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
18272     for ac_func in ldexpl
18273 do
18274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18275 echo "configure:18276: checking for $ac_func" >&5
18276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18277   echo $ac_n "(cached) $ac_c" 1>&6
18278 else
18279   cat > conftest.$ac_ext <<EOF
18280 #line 18281 "configure"
18281 #include "confdefs.h"
18282 /* System header to define __stub macros and hopefully few prototypes,
18283     which can conflict with char $ac_func(); below.  */
18284 #include <assert.h>
18285 /* Override any gcc2 internal prototype to avoid an error.  */
18286 /* We use char because int might match the return type of a gcc2
18287     builtin and then its argument prototype would still apply.  */
18288 char $ac_func();
18289
18290 int main() {
18291
18292 /* The GNU C library defines this for functions which it implements
18293     to always fail with ENOSYS.  Some functions are actually named
18294     something starting with __ and the normal name is an alias.  */
18295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18296 choke me
18297 #else
18298 $ac_func();
18299 #endif
18300
18301 ; return 0; }
18302 EOF
18303 if { (eval echo configure:18304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18304   rm -rf conftest*
18305   eval "ac_cv_func_$ac_func=yes"
18306 else
18307   echo "configure: failed program was:" >&5
18308   cat conftest.$ac_ext >&5
18309   rm -rf conftest*
18310   eval "ac_cv_func_$ac_func=no"
18311 fi
18312 rm -f conftest*
18313 fi
18314
18315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18316   echo "$ac_t""yes" 1>&6
18317     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18318   cat >> confdefs.h <<EOF
18319 #define $ac_tr_func 1
18320 EOF
18321  
18322 else
18323   echo "$ac_t""no" 1>&6
18324 fi
18325 done
18326     
18327   else
18328     
18329   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18330 echo "configure:18331: checking for _ldexpl declaration" >&5
18331   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
18332     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
18333   echo $ac_n "(cached) $ac_c" 1>&6
18334 else
18335   
18336       
18337       ac_ext=C
18338 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18339 ac_cpp='$CXXCPP $CPPFLAGS'
18340 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18341 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18342 cross_compiling=$ac_cv_prog_cxx_cross
18343
18344       cat > conftest.$ac_ext <<EOF
18345 #line 18346 "configure"
18346 #include "confdefs.h"
18347 #include <math.h>
18348 int main() {
18349  _ldexpl(0, 0);
18350 ; return 0; }
18351 EOF
18352 if { (eval echo configure:18353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18353   rm -rf conftest*
18354   glibcpp_cv_func__ldexpl_use=yes
18355 else
18356   echo "configure: failed program was:" >&5
18357   cat conftest.$ac_ext >&5
18358   rm -rf conftest*
18359   glibcpp_cv_func__ldexpl_use=no
18360 fi
18361 rm -f conftest*
18362       ac_ext=c
18363 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18364 ac_cpp='$CPP $CPPFLAGS'
18365 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18366 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18367 cross_compiling=$ac_cv_prog_cc_cross
18368
18369     
18370 fi
18371
18372   fi
18373   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
18374
18375     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
18376       for ac_func in _ldexpl
18377 do
18378 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18379 echo "configure:18380: checking for $ac_func" >&5
18380 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18381   echo $ac_n "(cached) $ac_c" 1>&6
18382 else
18383   cat > conftest.$ac_ext <<EOF
18384 #line 18385 "configure"
18385 #include "confdefs.h"
18386 /* System header to define __stub macros and hopefully few prototypes,
18387     which can conflict with char $ac_func(); below.  */
18388 #include <assert.h>
18389 /* Override any gcc2 internal prototype to avoid an error.  */
18390 /* We use char because int might match the return type of a gcc2
18391     builtin and then its argument prototype would still apply.  */
18392 char $ac_func();
18393
18394 int main() {
18395
18396 /* The GNU C library defines this for functions which it implements
18397     to always fail with ENOSYS.  Some functions are actually named
18398     something starting with __ and the normal name is an alias.  */
18399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18400 choke me
18401 #else
18402 $ac_func();
18403 #endif
18404
18405 ; return 0; }
18406 EOF
18407 if { (eval echo configure:18408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18408   rm -rf conftest*
18409   eval "ac_cv_func_$ac_func=yes"
18410 else
18411   echo "configure: failed program was:" >&5
18412   cat conftest.$ac_ext >&5
18413   rm -rf conftest*
18414   eval "ac_cv_func_$ac_func=no"
18415 fi
18416 rm -f conftest*
18417 fi
18418
18419 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18420   echo "$ac_t""yes" 1>&6
18421     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18422   cat >> confdefs.h <<EOF
18423 #define $ac_tr_func 1
18424 EOF
18425  
18426 else
18427   echo "$ac_t""no" 1>&6
18428 fi
18429 done
18430     
18431     fi
18432   fi
18433
18434   
18435   
18436   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18437 echo "configure:18438: checking for logl declaration" >&5
18438   if test x${glibcpp_cv_func_logl_use+set} != xset; then
18439     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
18440   echo $ac_n "(cached) $ac_c" 1>&6
18441 else
18442   
18443       
18444       ac_ext=C
18445 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18446 ac_cpp='$CXXCPP $CPPFLAGS'
18447 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18448 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18449 cross_compiling=$ac_cv_prog_cxx_cross
18450
18451       cat > conftest.$ac_ext <<EOF
18452 #line 18453 "configure"
18453 #include "confdefs.h"
18454 #include <math.h>
18455                       #ifdef HAVE_IEEEFP_H
18456                       #include <ieeefp.h>
18457                       #endif
18458                      
18459 int main() {
18460  logl(0);
18461 ; return 0; }
18462 EOF
18463 if { (eval echo configure:18464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18464   rm -rf conftest*
18465   glibcpp_cv_func_logl_use=yes
18466 else
18467   echo "configure: failed program was:" >&5
18468   cat conftest.$ac_ext >&5
18469   rm -rf conftest*
18470   glibcpp_cv_func_logl_use=no
18471 fi
18472 rm -f conftest*
18473       ac_ext=c
18474 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18475 ac_cpp='$CPP $CPPFLAGS'
18476 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18477 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18478 cross_compiling=$ac_cv_prog_cc_cross
18479
18480     
18481 fi
18482
18483   fi
18484   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
18485
18486   if test x$glibcpp_cv_func_logl_use = x"yes"; then
18487     for ac_func in logl
18488 do
18489 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18490 echo "configure:18491: checking for $ac_func" >&5
18491 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18492   echo $ac_n "(cached) $ac_c" 1>&6
18493 else
18494   cat > conftest.$ac_ext <<EOF
18495 #line 18496 "configure"
18496 #include "confdefs.h"
18497 /* System header to define __stub macros and hopefully few prototypes,
18498     which can conflict with char $ac_func(); below.  */
18499 #include <assert.h>
18500 /* Override any gcc2 internal prototype to avoid an error.  */
18501 /* We use char because int might match the return type of a gcc2
18502     builtin and then its argument prototype would still apply.  */
18503 char $ac_func();
18504
18505 int main() {
18506
18507 /* The GNU C library defines this for functions which it implements
18508     to always fail with ENOSYS.  Some functions are actually named
18509     something starting with __ and the normal name is an alias.  */
18510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18511 choke me
18512 #else
18513 $ac_func();
18514 #endif
18515
18516 ; return 0; }
18517 EOF
18518 if { (eval echo configure:18519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18519   rm -rf conftest*
18520   eval "ac_cv_func_$ac_func=yes"
18521 else
18522   echo "configure: failed program was:" >&5
18523   cat conftest.$ac_ext >&5
18524   rm -rf conftest*
18525   eval "ac_cv_func_$ac_func=no"
18526 fi
18527 rm -f conftest*
18528 fi
18529
18530 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18531   echo "$ac_t""yes" 1>&6
18532     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18533   cat >> confdefs.h <<EOF
18534 #define $ac_tr_func 1
18535 EOF
18536  
18537 else
18538   echo "$ac_t""no" 1>&6
18539 fi
18540 done
18541     
18542   else
18543     
18544   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18545 echo "configure:18546: checking for _logl declaration" >&5
18546   if test x${glibcpp_cv_func__logl_use+set} != xset; then
18547     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
18548   echo $ac_n "(cached) $ac_c" 1>&6
18549 else
18550   
18551       
18552       ac_ext=C
18553 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18554 ac_cpp='$CXXCPP $CPPFLAGS'
18555 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18556 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18557 cross_compiling=$ac_cv_prog_cxx_cross
18558
18559       cat > conftest.$ac_ext <<EOF
18560 #line 18561 "configure"
18561 #include "confdefs.h"
18562 #include <math.h>
18563                       #ifdef HAVE_IEEEFP_H
18564                       #include <ieeefp.h>
18565                       #endif
18566                      
18567 int main() {
18568  _logl(0);
18569 ; return 0; }
18570 EOF
18571 if { (eval echo configure:18572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18572   rm -rf conftest*
18573   glibcpp_cv_func__logl_use=yes
18574 else
18575   echo "configure: failed program was:" >&5
18576   cat conftest.$ac_ext >&5
18577   rm -rf conftest*
18578   glibcpp_cv_func__logl_use=no
18579 fi
18580 rm -f conftest*
18581       ac_ext=c
18582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18583 ac_cpp='$CPP $CPPFLAGS'
18584 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18585 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18586 cross_compiling=$ac_cv_prog_cc_cross
18587
18588     
18589 fi
18590
18591   fi
18592   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
18593
18594     if test x$glibcpp_cv_func__logl_use = x"yes"; then
18595       for ac_func in _logl
18596 do
18597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18598 echo "configure:18599: checking for $ac_func" >&5
18599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18600   echo $ac_n "(cached) $ac_c" 1>&6
18601 else
18602   cat > conftest.$ac_ext <<EOF
18603 #line 18604 "configure"
18604 #include "confdefs.h"
18605 /* System header to define __stub macros and hopefully few prototypes,
18606     which can conflict with char $ac_func(); below.  */
18607 #include <assert.h>
18608 /* Override any gcc2 internal prototype to avoid an error.  */
18609 /* We use char because int might match the return type of a gcc2
18610     builtin and then its argument prototype would still apply.  */
18611 char $ac_func();
18612
18613 int main() {
18614
18615 /* The GNU C library defines this for functions which it implements
18616     to always fail with ENOSYS.  Some functions are actually named
18617     something starting with __ and the normal name is an alias.  */
18618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18619 choke me
18620 #else
18621 $ac_func();
18622 #endif
18623
18624 ; return 0; }
18625 EOF
18626 if { (eval echo configure:18627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18627   rm -rf conftest*
18628   eval "ac_cv_func_$ac_func=yes"
18629 else
18630   echo "configure: failed program was:" >&5
18631   cat conftest.$ac_ext >&5
18632   rm -rf conftest*
18633   eval "ac_cv_func_$ac_func=no"
18634 fi
18635 rm -f conftest*
18636 fi
18637
18638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18639   echo "$ac_t""yes" 1>&6
18640     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18641   cat >> confdefs.h <<EOF
18642 #define $ac_tr_func 1
18643 EOF
18644  
18645 else
18646   echo "$ac_t""no" 1>&6
18647 fi
18648 done
18649     
18650     fi
18651   fi
18652
18653   
18654   
18655   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18656 echo "configure:18657: checking for log10l declaration" >&5
18657   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
18658     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
18659   echo $ac_n "(cached) $ac_c" 1>&6
18660 else
18661   
18662       
18663       ac_ext=C
18664 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18665 ac_cpp='$CXXCPP $CPPFLAGS'
18666 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18667 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18668 cross_compiling=$ac_cv_prog_cxx_cross
18669
18670       cat > conftest.$ac_ext <<EOF
18671 #line 18672 "configure"
18672 #include "confdefs.h"
18673 #include <math.h>
18674                       #ifdef HAVE_IEEEFP_H
18675                       #include <ieeefp.h>
18676                       #endif
18677                      
18678 int main() {
18679  log10l(0);
18680 ; return 0; }
18681 EOF
18682 if { (eval echo configure:18683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18683   rm -rf conftest*
18684   glibcpp_cv_func_log10l_use=yes
18685 else
18686   echo "configure: failed program was:" >&5
18687   cat conftest.$ac_ext >&5
18688   rm -rf conftest*
18689   glibcpp_cv_func_log10l_use=no
18690 fi
18691 rm -f conftest*
18692       ac_ext=c
18693 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18694 ac_cpp='$CPP $CPPFLAGS'
18695 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18696 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18697 cross_compiling=$ac_cv_prog_cc_cross
18698
18699     
18700 fi
18701
18702   fi
18703   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
18704
18705   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
18706     for ac_func in log10l
18707 do
18708 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18709 echo "configure:18710: checking for $ac_func" >&5
18710 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18711   echo $ac_n "(cached) $ac_c" 1>&6
18712 else
18713   cat > conftest.$ac_ext <<EOF
18714 #line 18715 "configure"
18715 #include "confdefs.h"
18716 /* System header to define __stub macros and hopefully few prototypes,
18717     which can conflict with char $ac_func(); below.  */
18718 #include <assert.h>
18719 /* Override any gcc2 internal prototype to avoid an error.  */
18720 /* We use char because int might match the return type of a gcc2
18721     builtin and then its argument prototype would still apply.  */
18722 char $ac_func();
18723
18724 int main() {
18725
18726 /* The GNU C library defines this for functions which it implements
18727     to always fail with ENOSYS.  Some functions are actually named
18728     something starting with __ and the normal name is an alias.  */
18729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18730 choke me
18731 #else
18732 $ac_func();
18733 #endif
18734
18735 ; return 0; }
18736 EOF
18737 if { (eval echo configure:18738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18738   rm -rf conftest*
18739   eval "ac_cv_func_$ac_func=yes"
18740 else
18741   echo "configure: failed program was:" >&5
18742   cat conftest.$ac_ext >&5
18743   rm -rf conftest*
18744   eval "ac_cv_func_$ac_func=no"
18745 fi
18746 rm -f conftest*
18747 fi
18748
18749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18750   echo "$ac_t""yes" 1>&6
18751     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18752   cat >> confdefs.h <<EOF
18753 #define $ac_tr_func 1
18754 EOF
18755  
18756 else
18757   echo "$ac_t""no" 1>&6
18758 fi
18759 done
18760     
18761   else
18762     
18763   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18764 echo "configure:18765: checking for _log10l declaration" >&5
18765   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
18766     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
18767   echo $ac_n "(cached) $ac_c" 1>&6
18768 else
18769   
18770       
18771       ac_ext=C
18772 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18773 ac_cpp='$CXXCPP $CPPFLAGS'
18774 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18775 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18776 cross_compiling=$ac_cv_prog_cxx_cross
18777
18778       cat > conftest.$ac_ext <<EOF
18779 #line 18780 "configure"
18780 #include "confdefs.h"
18781 #include <math.h>
18782                       #ifdef HAVE_IEEEFP_H
18783                       #include <ieeefp.h>
18784                       #endif
18785                      
18786 int main() {
18787  _log10l(0);
18788 ; return 0; }
18789 EOF
18790 if { (eval echo configure:18791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18791   rm -rf conftest*
18792   glibcpp_cv_func__log10l_use=yes
18793 else
18794   echo "configure: failed program was:" >&5
18795   cat conftest.$ac_ext >&5
18796   rm -rf conftest*
18797   glibcpp_cv_func__log10l_use=no
18798 fi
18799 rm -f conftest*
18800       ac_ext=c
18801 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18802 ac_cpp='$CPP $CPPFLAGS'
18803 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18804 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18805 cross_compiling=$ac_cv_prog_cc_cross
18806
18807     
18808 fi
18809
18810   fi
18811   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
18812
18813     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
18814       for ac_func in _log10l
18815 do
18816 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18817 echo "configure:18818: checking for $ac_func" >&5
18818 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18819   echo $ac_n "(cached) $ac_c" 1>&6
18820 else
18821   cat > conftest.$ac_ext <<EOF
18822 #line 18823 "configure"
18823 #include "confdefs.h"
18824 /* System header to define __stub macros and hopefully few prototypes,
18825     which can conflict with char $ac_func(); below.  */
18826 #include <assert.h>
18827 /* Override any gcc2 internal prototype to avoid an error.  */
18828 /* We use char because int might match the return type of a gcc2
18829     builtin and then its argument prototype would still apply.  */
18830 char $ac_func();
18831
18832 int main() {
18833
18834 /* The GNU C library defines this for functions which it implements
18835     to always fail with ENOSYS.  Some functions are actually named
18836     something starting with __ and the normal name is an alias.  */
18837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18838 choke me
18839 #else
18840 $ac_func();
18841 #endif
18842
18843 ; return 0; }
18844 EOF
18845 if { (eval echo configure:18846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18846   rm -rf conftest*
18847   eval "ac_cv_func_$ac_func=yes"
18848 else
18849   echo "configure: failed program was:" >&5
18850   cat conftest.$ac_ext >&5
18851   rm -rf conftest*
18852   eval "ac_cv_func_$ac_func=no"
18853 fi
18854 rm -f conftest*
18855 fi
18856
18857 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18858   echo "$ac_t""yes" 1>&6
18859     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18860   cat >> confdefs.h <<EOF
18861 #define $ac_tr_func 1
18862 EOF
18863  
18864 else
18865   echo "$ac_t""no" 1>&6
18866 fi
18867 done
18868     
18869     fi
18870   fi
18871
18872   
18873   
18874   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
18875 echo "configure:18876: checking for modfl declaration" >&5
18876   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
18877     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
18878   echo $ac_n "(cached) $ac_c" 1>&6
18879 else
18880   
18881       
18882       ac_ext=C
18883 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18884 ac_cpp='$CXXCPP $CPPFLAGS'
18885 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18886 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18887 cross_compiling=$ac_cv_prog_cxx_cross
18888
18889       cat > conftest.$ac_ext <<EOF
18890 #line 18891 "configure"
18891 #include "confdefs.h"
18892 #include <math.h>
18893 int main() {
18894  modfl(0, 0);
18895 ; return 0; }
18896 EOF
18897 if { (eval echo configure:18898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18898   rm -rf conftest*
18899   glibcpp_cv_func_modfl_use=yes
18900 else
18901   echo "configure: failed program was:" >&5
18902   cat conftest.$ac_ext >&5
18903   rm -rf conftest*
18904   glibcpp_cv_func_modfl_use=no
18905 fi
18906 rm -f conftest*
18907       ac_ext=c
18908 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18909 ac_cpp='$CPP $CPPFLAGS'
18910 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18911 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18912 cross_compiling=$ac_cv_prog_cc_cross
18913
18914     
18915 fi
18916
18917   fi
18918   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
18919
18920   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
18921     for ac_func in modfl
18922 do
18923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18924 echo "configure:18925: checking for $ac_func" >&5
18925 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18926   echo $ac_n "(cached) $ac_c" 1>&6
18927 else
18928   cat > conftest.$ac_ext <<EOF
18929 #line 18930 "configure"
18930 #include "confdefs.h"
18931 /* System header to define __stub macros and hopefully few prototypes,
18932     which can conflict with char $ac_func(); below.  */
18933 #include <assert.h>
18934 /* Override any gcc2 internal prototype to avoid an error.  */
18935 /* We use char because int might match the return type of a gcc2
18936     builtin and then its argument prototype would still apply.  */
18937 char $ac_func();
18938
18939 int main() {
18940
18941 /* The GNU C library defines this for functions which it implements
18942     to always fail with ENOSYS.  Some functions are actually named
18943     something starting with __ and the normal name is an alias.  */
18944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18945 choke me
18946 #else
18947 $ac_func();
18948 #endif
18949
18950 ; return 0; }
18951 EOF
18952 if { (eval echo configure:18953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18953   rm -rf conftest*
18954   eval "ac_cv_func_$ac_func=yes"
18955 else
18956   echo "configure: failed program was:" >&5
18957   cat conftest.$ac_ext >&5
18958   rm -rf conftest*
18959   eval "ac_cv_func_$ac_func=no"
18960 fi
18961 rm -f conftest*
18962 fi
18963
18964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18965   echo "$ac_t""yes" 1>&6
18966     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18967   cat >> confdefs.h <<EOF
18968 #define $ac_tr_func 1
18969 EOF
18970  
18971 else
18972   echo "$ac_t""no" 1>&6
18973 fi
18974 done
18975     
18976   else
18977     
18978   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
18979 echo "configure:18980: checking for _modfl declaration" >&5
18980   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
18981     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
18982   echo $ac_n "(cached) $ac_c" 1>&6
18983 else
18984   
18985       
18986       ac_ext=C
18987 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18988 ac_cpp='$CXXCPP $CPPFLAGS'
18989 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18990 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18991 cross_compiling=$ac_cv_prog_cxx_cross
18992
18993       cat > conftest.$ac_ext <<EOF
18994 #line 18995 "configure"
18995 #include "confdefs.h"
18996 #include <math.h>
18997 int main() {
18998  _modfl(0, 0);
18999 ; return 0; }
19000 EOF
19001 if { (eval echo configure:19002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19002   rm -rf conftest*
19003   glibcpp_cv_func__modfl_use=yes
19004 else
19005   echo "configure: failed program was:" >&5
19006   cat conftest.$ac_ext >&5
19007   rm -rf conftest*
19008   glibcpp_cv_func__modfl_use=no
19009 fi
19010 rm -f conftest*
19011       ac_ext=c
19012 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19013 ac_cpp='$CPP $CPPFLAGS'
19014 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19015 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19016 cross_compiling=$ac_cv_prog_cc_cross
19017
19018     
19019 fi
19020
19021   fi
19022   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
19023
19024     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
19025       for ac_func in _modfl
19026 do
19027 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19028 echo "configure:19029: checking for $ac_func" >&5
19029 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19030   echo $ac_n "(cached) $ac_c" 1>&6
19031 else
19032   cat > conftest.$ac_ext <<EOF
19033 #line 19034 "configure"
19034 #include "confdefs.h"
19035 /* System header to define __stub macros and hopefully few prototypes,
19036     which can conflict with char $ac_func(); below.  */
19037 #include <assert.h>
19038 /* Override any gcc2 internal prototype to avoid an error.  */
19039 /* We use char because int might match the return type of a gcc2
19040     builtin and then its argument prototype would still apply.  */
19041 char $ac_func();
19042
19043 int main() {
19044
19045 /* The GNU C library defines this for functions which it implements
19046     to always fail with ENOSYS.  Some functions are actually named
19047     something starting with __ and the normal name is an alias.  */
19048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19049 choke me
19050 #else
19051 $ac_func();
19052 #endif
19053
19054 ; return 0; }
19055 EOF
19056 if { (eval echo configure:19057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19057   rm -rf conftest*
19058   eval "ac_cv_func_$ac_func=yes"
19059 else
19060   echo "configure: failed program was:" >&5
19061   cat conftest.$ac_ext >&5
19062   rm -rf conftest*
19063   eval "ac_cv_func_$ac_func=no"
19064 fi
19065 rm -f conftest*
19066 fi
19067
19068 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19069   echo "$ac_t""yes" 1>&6
19070     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19071   cat >> confdefs.h <<EOF
19072 #define $ac_tr_func 1
19073 EOF
19074  
19075 else
19076   echo "$ac_t""no" 1>&6
19077 fi
19078 done
19079     
19080     fi
19081   fi
19082
19083   
19084   
19085   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19086 echo "configure:19087: checking for powl declaration" >&5
19087   if test x${glibcpp_cv_func_powl_use+set} != xset; then
19088     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
19089   echo $ac_n "(cached) $ac_c" 1>&6
19090 else
19091   
19092       
19093       ac_ext=C
19094 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19095 ac_cpp='$CXXCPP $CPPFLAGS'
19096 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19097 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19098 cross_compiling=$ac_cv_prog_cxx_cross
19099
19100       cat > conftest.$ac_ext <<EOF
19101 #line 19102 "configure"
19102 #include "confdefs.h"
19103 #include <math.h>
19104 int main() {
19105  powl(0, 0);
19106 ; return 0; }
19107 EOF
19108 if { (eval echo configure:19109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19109   rm -rf conftest*
19110   glibcpp_cv_func_powl_use=yes
19111 else
19112   echo "configure: failed program was:" >&5
19113   cat conftest.$ac_ext >&5
19114   rm -rf conftest*
19115   glibcpp_cv_func_powl_use=no
19116 fi
19117 rm -f conftest*
19118       ac_ext=c
19119 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19120 ac_cpp='$CPP $CPPFLAGS'
19121 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19122 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19123 cross_compiling=$ac_cv_prog_cc_cross
19124
19125     
19126 fi
19127
19128   fi
19129   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
19130
19131   if test x$glibcpp_cv_func_powl_use = x"yes"; then
19132     for ac_func in powl
19133 do
19134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19135 echo "configure:19136: checking for $ac_func" >&5
19136 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19137   echo $ac_n "(cached) $ac_c" 1>&6
19138 else
19139   cat > conftest.$ac_ext <<EOF
19140 #line 19141 "configure"
19141 #include "confdefs.h"
19142 /* System header to define __stub macros and hopefully few prototypes,
19143     which can conflict with char $ac_func(); below.  */
19144 #include <assert.h>
19145 /* Override any gcc2 internal prototype to avoid an error.  */
19146 /* We use char because int might match the return type of a gcc2
19147     builtin and then its argument prototype would still apply.  */
19148 char $ac_func();
19149
19150 int main() {
19151
19152 /* The GNU C library defines this for functions which it implements
19153     to always fail with ENOSYS.  Some functions are actually named
19154     something starting with __ and the normal name is an alias.  */
19155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19156 choke me
19157 #else
19158 $ac_func();
19159 #endif
19160
19161 ; return 0; }
19162 EOF
19163 if { (eval echo configure:19164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19164   rm -rf conftest*
19165   eval "ac_cv_func_$ac_func=yes"
19166 else
19167   echo "configure: failed program was:" >&5
19168   cat conftest.$ac_ext >&5
19169   rm -rf conftest*
19170   eval "ac_cv_func_$ac_func=no"
19171 fi
19172 rm -f conftest*
19173 fi
19174
19175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19176   echo "$ac_t""yes" 1>&6
19177     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19178   cat >> confdefs.h <<EOF
19179 #define $ac_tr_func 1
19180 EOF
19181  
19182 else
19183   echo "$ac_t""no" 1>&6
19184 fi
19185 done
19186     
19187   else
19188     
19189   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19190 echo "configure:19191: checking for _powl declaration" >&5
19191   if test x${glibcpp_cv_func__powl_use+set} != xset; then
19192     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
19193   echo $ac_n "(cached) $ac_c" 1>&6
19194 else
19195   
19196       
19197       ac_ext=C
19198 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19199 ac_cpp='$CXXCPP $CPPFLAGS'
19200 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19201 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19202 cross_compiling=$ac_cv_prog_cxx_cross
19203
19204       cat > conftest.$ac_ext <<EOF
19205 #line 19206 "configure"
19206 #include "confdefs.h"
19207 #include <math.h>
19208 int main() {
19209  _powl(0, 0);
19210 ; return 0; }
19211 EOF
19212 if { (eval echo configure:19213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19213   rm -rf conftest*
19214   glibcpp_cv_func__powl_use=yes
19215 else
19216   echo "configure: failed program was:" >&5
19217   cat conftest.$ac_ext >&5
19218   rm -rf conftest*
19219   glibcpp_cv_func__powl_use=no
19220 fi
19221 rm -f conftest*
19222       ac_ext=c
19223 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19224 ac_cpp='$CPP $CPPFLAGS'
19225 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19226 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19227 cross_compiling=$ac_cv_prog_cc_cross
19228
19229     
19230 fi
19231
19232   fi
19233   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
19234
19235     if test x$glibcpp_cv_func__powl_use = x"yes"; then
19236       for ac_func in _powl
19237 do
19238 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19239 echo "configure:19240: checking for $ac_func" >&5
19240 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19241   echo $ac_n "(cached) $ac_c" 1>&6
19242 else
19243   cat > conftest.$ac_ext <<EOF
19244 #line 19245 "configure"
19245 #include "confdefs.h"
19246 /* System header to define __stub macros and hopefully few prototypes,
19247     which can conflict with char $ac_func(); below.  */
19248 #include <assert.h>
19249 /* Override any gcc2 internal prototype to avoid an error.  */
19250 /* We use char because int might match the return type of a gcc2
19251     builtin and then its argument prototype would still apply.  */
19252 char $ac_func();
19253
19254 int main() {
19255
19256 /* The GNU C library defines this for functions which it implements
19257     to always fail with ENOSYS.  Some functions are actually named
19258     something starting with __ and the normal name is an alias.  */
19259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19260 choke me
19261 #else
19262 $ac_func();
19263 #endif
19264
19265 ; return 0; }
19266 EOF
19267 if { (eval echo configure:19268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19268   rm -rf conftest*
19269   eval "ac_cv_func_$ac_func=yes"
19270 else
19271   echo "configure: failed program was:" >&5
19272   cat conftest.$ac_ext >&5
19273   rm -rf conftest*
19274   eval "ac_cv_func_$ac_func=no"
19275 fi
19276 rm -f conftest*
19277 fi
19278
19279 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19280   echo "$ac_t""yes" 1>&6
19281     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19282   cat >> confdefs.h <<EOF
19283 #define $ac_tr_func 1
19284 EOF
19285  
19286 else
19287   echo "$ac_t""no" 1>&6
19288 fi
19289 done
19290     
19291     fi
19292   fi
19293
19294   
19295   
19296   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19297 echo "configure:19298: checking for sqrtl declaration" >&5
19298   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
19299     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
19300   echo $ac_n "(cached) $ac_c" 1>&6
19301 else
19302   
19303       
19304       ac_ext=C
19305 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19306 ac_cpp='$CXXCPP $CPPFLAGS'
19307 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19308 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19309 cross_compiling=$ac_cv_prog_cxx_cross
19310
19311       cat > conftest.$ac_ext <<EOF
19312 #line 19313 "configure"
19313 #include "confdefs.h"
19314 #include <math.h>
19315                       #ifdef HAVE_IEEEFP_H
19316                       #include <ieeefp.h>
19317                       #endif
19318                      
19319 int main() {
19320  sqrtl(0);
19321 ; return 0; }
19322 EOF
19323 if { (eval echo configure:19324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19324   rm -rf conftest*
19325   glibcpp_cv_func_sqrtl_use=yes
19326 else
19327   echo "configure: failed program was:" >&5
19328   cat conftest.$ac_ext >&5
19329   rm -rf conftest*
19330   glibcpp_cv_func_sqrtl_use=no
19331 fi
19332 rm -f conftest*
19333       ac_ext=c
19334 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19335 ac_cpp='$CPP $CPPFLAGS'
19336 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19337 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19338 cross_compiling=$ac_cv_prog_cc_cross
19339
19340     
19341 fi
19342
19343   fi
19344   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
19345
19346   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
19347     for ac_func in sqrtl
19348 do
19349 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19350 echo "configure:19351: checking for $ac_func" >&5
19351 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19352   echo $ac_n "(cached) $ac_c" 1>&6
19353 else
19354   cat > conftest.$ac_ext <<EOF
19355 #line 19356 "configure"
19356 #include "confdefs.h"
19357 /* System header to define __stub macros and hopefully few prototypes,
19358     which can conflict with char $ac_func(); below.  */
19359 #include <assert.h>
19360 /* Override any gcc2 internal prototype to avoid an error.  */
19361 /* We use char because int might match the return type of a gcc2
19362     builtin and then its argument prototype would still apply.  */
19363 char $ac_func();
19364
19365 int main() {
19366
19367 /* The GNU C library defines this for functions which it implements
19368     to always fail with ENOSYS.  Some functions are actually named
19369     something starting with __ and the normal name is an alias.  */
19370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19371 choke me
19372 #else
19373 $ac_func();
19374 #endif
19375
19376 ; return 0; }
19377 EOF
19378 if { (eval echo configure:19379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19379   rm -rf conftest*
19380   eval "ac_cv_func_$ac_func=yes"
19381 else
19382   echo "configure: failed program was:" >&5
19383   cat conftest.$ac_ext >&5
19384   rm -rf conftest*
19385   eval "ac_cv_func_$ac_func=no"
19386 fi
19387 rm -f conftest*
19388 fi
19389
19390 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19391   echo "$ac_t""yes" 1>&6
19392     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19393   cat >> confdefs.h <<EOF
19394 #define $ac_tr_func 1
19395 EOF
19396  
19397 else
19398   echo "$ac_t""no" 1>&6
19399 fi
19400 done
19401     
19402   else
19403     
19404   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19405 echo "configure:19406: checking for _sqrtl declaration" >&5
19406   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
19407     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
19408   echo $ac_n "(cached) $ac_c" 1>&6
19409 else
19410   
19411       
19412       ac_ext=C
19413 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19414 ac_cpp='$CXXCPP $CPPFLAGS'
19415 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19416 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19417 cross_compiling=$ac_cv_prog_cxx_cross
19418
19419       cat > conftest.$ac_ext <<EOF
19420 #line 19421 "configure"
19421 #include "confdefs.h"
19422 #include <math.h>
19423                       #ifdef HAVE_IEEEFP_H
19424                       #include <ieeefp.h>
19425                       #endif
19426                      
19427 int main() {
19428  _sqrtl(0);
19429 ; return 0; }
19430 EOF
19431 if { (eval echo configure:19432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19432   rm -rf conftest*
19433   glibcpp_cv_func__sqrtl_use=yes
19434 else
19435   echo "configure: failed program was:" >&5
19436   cat conftest.$ac_ext >&5
19437   rm -rf conftest*
19438   glibcpp_cv_func__sqrtl_use=no
19439 fi
19440 rm -f conftest*
19441       ac_ext=c
19442 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19443 ac_cpp='$CPP $CPPFLAGS'
19444 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19445 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19446 cross_compiling=$ac_cv_prog_cc_cross
19447
19448     
19449 fi
19450
19451   fi
19452   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
19453
19454     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
19455       for ac_func in _sqrtl
19456 do
19457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19458 echo "configure:19459: checking for $ac_func" >&5
19459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19460   echo $ac_n "(cached) $ac_c" 1>&6
19461 else
19462   cat > conftest.$ac_ext <<EOF
19463 #line 19464 "configure"
19464 #include "confdefs.h"
19465 /* System header to define __stub macros and hopefully few prototypes,
19466     which can conflict with char $ac_func(); below.  */
19467 #include <assert.h>
19468 /* Override any gcc2 internal prototype to avoid an error.  */
19469 /* We use char because int might match the return type of a gcc2
19470     builtin and then its argument prototype would still apply.  */
19471 char $ac_func();
19472
19473 int main() {
19474
19475 /* The GNU C library defines this for functions which it implements
19476     to always fail with ENOSYS.  Some functions are actually named
19477     something starting with __ and the normal name is an alias.  */
19478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19479 choke me
19480 #else
19481 $ac_func();
19482 #endif
19483
19484 ; return 0; }
19485 EOF
19486 if { (eval echo configure:19487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19487   rm -rf conftest*
19488   eval "ac_cv_func_$ac_func=yes"
19489 else
19490   echo "configure: failed program was:" >&5
19491   cat conftest.$ac_ext >&5
19492   rm -rf conftest*
19493   eval "ac_cv_func_$ac_func=no"
19494 fi
19495 rm -f conftest*
19496 fi
19497
19498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19499   echo "$ac_t""yes" 1>&6
19500     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19501   cat >> confdefs.h <<EOF
19502 #define $ac_tr_func 1
19503 EOF
19504  
19505 else
19506   echo "$ac_t""no" 1>&6
19507 fi
19508 done
19509     
19510     fi
19511   fi
19512
19513   
19514   
19515   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19516 echo "configure:19517: checking for sincosl declaration" >&5
19517   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
19518     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
19519   echo $ac_n "(cached) $ac_c" 1>&6
19520 else
19521   
19522       
19523       ac_ext=C
19524 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19525 ac_cpp='$CXXCPP $CPPFLAGS'
19526 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19527 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19528 cross_compiling=$ac_cv_prog_cxx_cross
19529
19530       cat > conftest.$ac_ext <<EOF
19531 #line 19532 "configure"
19532 #include "confdefs.h"
19533 #include <math.h>
19534 int main() {
19535  sincosl(0, 0, 0);
19536 ; return 0; }
19537 EOF
19538 if { (eval echo configure:19539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19539   rm -rf conftest*
19540   glibcpp_cv_func_sincosl_use=yes
19541 else
19542   echo "configure: failed program was:" >&5
19543   cat conftest.$ac_ext >&5
19544   rm -rf conftest*
19545   glibcpp_cv_func_sincosl_use=no
19546 fi
19547 rm -f conftest*
19548       ac_ext=c
19549 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19550 ac_cpp='$CPP $CPPFLAGS'
19551 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19552 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19553 cross_compiling=$ac_cv_prog_cc_cross
19554
19555     
19556 fi
19557
19558   fi
19559   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
19560
19561   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
19562     for ac_func in sincosl
19563 do
19564 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19565 echo "configure:19566: checking for $ac_func" >&5
19566 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19567   echo $ac_n "(cached) $ac_c" 1>&6
19568 else
19569   cat > conftest.$ac_ext <<EOF
19570 #line 19571 "configure"
19571 #include "confdefs.h"
19572 /* System header to define __stub macros and hopefully few prototypes,
19573     which can conflict with char $ac_func(); below.  */
19574 #include <assert.h>
19575 /* Override any gcc2 internal prototype to avoid an error.  */
19576 /* We use char because int might match the return type of a gcc2
19577     builtin and then its argument prototype would still apply.  */
19578 char $ac_func();
19579
19580 int main() {
19581
19582 /* The GNU C library defines this for functions which it implements
19583     to always fail with ENOSYS.  Some functions are actually named
19584     something starting with __ and the normal name is an alias.  */
19585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19586 choke me
19587 #else
19588 $ac_func();
19589 #endif
19590
19591 ; return 0; }
19592 EOF
19593 if { (eval echo configure:19594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19594   rm -rf conftest*
19595   eval "ac_cv_func_$ac_func=yes"
19596 else
19597   echo "configure: failed program was:" >&5
19598   cat conftest.$ac_ext >&5
19599   rm -rf conftest*
19600   eval "ac_cv_func_$ac_func=no"
19601 fi
19602 rm -f conftest*
19603 fi
19604
19605 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19606   echo "$ac_t""yes" 1>&6
19607     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19608   cat >> confdefs.h <<EOF
19609 #define $ac_tr_func 1
19610 EOF
19611  
19612 else
19613   echo "$ac_t""no" 1>&6
19614 fi
19615 done
19616     
19617   else
19618     
19619   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19620 echo "configure:19621: checking for _sincosl declaration" >&5
19621   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
19622     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
19623   echo $ac_n "(cached) $ac_c" 1>&6
19624 else
19625   
19626       
19627       ac_ext=C
19628 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19629 ac_cpp='$CXXCPP $CPPFLAGS'
19630 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19631 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19632 cross_compiling=$ac_cv_prog_cxx_cross
19633
19634       cat > conftest.$ac_ext <<EOF
19635 #line 19636 "configure"
19636 #include "confdefs.h"
19637 #include <math.h>
19638 int main() {
19639  _sincosl(0, 0, 0);
19640 ; return 0; }
19641 EOF
19642 if { (eval echo configure:19643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19643   rm -rf conftest*
19644   glibcpp_cv_func__sincosl_use=yes
19645 else
19646   echo "configure: failed program was:" >&5
19647   cat conftest.$ac_ext >&5
19648   rm -rf conftest*
19649   glibcpp_cv_func__sincosl_use=no
19650 fi
19651 rm -f conftest*
19652       ac_ext=c
19653 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19654 ac_cpp='$CPP $CPPFLAGS'
19655 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19656 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19657 cross_compiling=$ac_cv_prog_cc_cross
19658
19659     
19660 fi
19661
19662   fi
19663   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
19664
19665     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
19666       for ac_func in _sincosl
19667 do
19668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19669 echo "configure:19670: checking for $ac_func" >&5
19670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19671   echo $ac_n "(cached) $ac_c" 1>&6
19672 else
19673   cat > conftest.$ac_ext <<EOF
19674 #line 19675 "configure"
19675 #include "confdefs.h"
19676 /* System header to define __stub macros and hopefully few prototypes,
19677     which can conflict with char $ac_func(); below.  */
19678 #include <assert.h>
19679 /* Override any gcc2 internal prototype to avoid an error.  */
19680 /* We use char because int might match the return type of a gcc2
19681     builtin and then its argument prototype would still apply.  */
19682 char $ac_func();
19683
19684 int main() {
19685
19686 /* The GNU C library defines this for functions which it implements
19687     to always fail with ENOSYS.  Some functions are actually named
19688     something starting with __ and the normal name is an alias.  */
19689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19690 choke me
19691 #else
19692 $ac_func();
19693 #endif
19694
19695 ; return 0; }
19696 EOF
19697 if { (eval echo configure:19698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19698   rm -rf conftest*
19699   eval "ac_cv_func_$ac_func=yes"
19700 else
19701   echo "configure: failed program was:" >&5
19702   cat conftest.$ac_ext >&5
19703   rm -rf conftest*
19704   eval "ac_cv_func_$ac_func=no"
19705 fi
19706 rm -f conftest*
19707 fi
19708
19709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19710   echo "$ac_t""yes" 1>&6
19711     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19712   cat >> confdefs.h <<EOF
19713 #define $ac_tr_func 1
19714 EOF
19715  
19716 else
19717   echo "$ac_t""no" 1>&6
19718 fi
19719 done
19720     
19721     fi
19722   fi
19723
19724   
19725   
19726   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19727 echo "configure:19728: checking for finitel declaration" >&5
19728   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
19729     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
19730   echo $ac_n "(cached) $ac_c" 1>&6
19731 else
19732   
19733       
19734       ac_ext=C
19735 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19736 ac_cpp='$CXXCPP $CPPFLAGS'
19737 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19738 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19739 cross_compiling=$ac_cv_prog_cxx_cross
19740
19741       cat > conftest.$ac_ext <<EOF
19742 #line 19743 "configure"
19743 #include "confdefs.h"
19744 #include <math.h>
19745                       #ifdef HAVE_IEEEFP_H
19746                       #include <ieeefp.h>
19747                       #endif
19748                      
19749 int main() {
19750  finitel(0);
19751 ; return 0; }
19752 EOF
19753 if { (eval echo configure:19754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19754   rm -rf conftest*
19755   glibcpp_cv_func_finitel_use=yes
19756 else
19757   echo "configure: failed program was:" >&5
19758   cat conftest.$ac_ext >&5
19759   rm -rf conftest*
19760   glibcpp_cv_func_finitel_use=no
19761 fi
19762 rm -f conftest*
19763       ac_ext=c
19764 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19765 ac_cpp='$CPP $CPPFLAGS'
19766 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19767 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19768 cross_compiling=$ac_cv_prog_cc_cross
19769
19770     
19771 fi
19772
19773   fi
19774   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
19775
19776   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
19777     for ac_func in finitel
19778 do
19779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19780 echo "configure:19781: checking for $ac_func" >&5
19781 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19782   echo $ac_n "(cached) $ac_c" 1>&6
19783 else
19784   cat > conftest.$ac_ext <<EOF
19785 #line 19786 "configure"
19786 #include "confdefs.h"
19787 /* System header to define __stub macros and hopefully few prototypes,
19788     which can conflict with char $ac_func(); below.  */
19789 #include <assert.h>
19790 /* Override any gcc2 internal prototype to avoid an error.  */
19791 /* We use char because int might match the return type of a gcc2
19792     builtin and then its argument prototype would still apply.  */
19793 char $ac_func();
19794
19795 int main() {
19796
19797 /* The GNU C library defines this for functions which it implements
19798     to always fail with ENOSYS.  Some functions are actually named
19799     something starting with __ and the normal name is an alias.  */
19800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19801 choke me
19802 #else
19803 $ac_func();
19804 #endif
19805
19806 ; return 0; }
19807 EOF
19808 if { (eval echo configure:19809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19809   rm -rf conftest*
19810   eval "ac_cv_func_$ac_func=yes"
19811 else
19812   echo "configure: failed program was:" >&5
19813   cat conftest.$ac_ext >&5
19814   rm -rf conftest*
19815   eval "ac_cv_func_$ac_func=no"
19816 fi
19817 rm -f conftest*
19818 fi
19819
19820 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19821   echo "$ac_t""yes" 1>&6
19822     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19823   cat >> confdefs.h <<EOF
19824 #define $ac_tr_func 1
19825 EOF
19826  
19827 else
19828   echo "$ac_t""no" 1>&6
19829 fi
19830 done
19831     
19832   else
19833     
19834   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
19835 echo "configure:19836: checking for _finitel declaration" >&5
19836   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
19837     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
19838   echo $ac_n "(cached) $ac_c" 1>&6
19839 else
19840   
19841       
19842       ac_ext=C
19843 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19844 ac_cpp='$CXXCPP $CPPFLAGS'
19845 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19846 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19847 cross_compiling=$ac_cv_prog_cxx_cross
19848
19849       cat > conftest.$ac_ext <<EOF
19850 #line 19851 "configure"
19851 #include "confdefs.h"
19852 #include <math.h>
19853                       #ifdef HAVE_IEEEFP_H
19854                       #include <ieeefp.h>
19855                       #endif
19856                      
19857 int main() {
19858  _finitel(0);
19859 ; return 0; }
19860 EOF
19861 if { (eval echo configure:19862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19862   rm -rf conftest*
19863   glibcpp_cv_func__finitel_use=yes
19864 else
19865   echo "configure: failed program was:" >&5
19866   cat conftest.$ac_ext >&5
19867   rm -rf conftest*
19868   glibcpp_cv_func__finitel_use=no
19869 fi
19870 rm -f conftest*
19871       ac_ext=c
19872 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19873 ac_cpp='$CPP $CPPFLAGS'
19874 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19875 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19876 cross_compiling=$ac_cv_prog_cc_cross
19877
19878     
19879 fi
19880
19881   fi
19882   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
19883
19884     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
19885       for ac_func in _finitel
19886 do
19887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19888 echo "configure:19889: checking for $ac_func" >&5
19889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19890   echo $ac_n "(cached) $ac_c" 1>&6
19891 else
19892   cat > conftest.$ac_ext <<EOF
19893 #line 19894 "configure"
19894 #include "confdefs.h"
19895 /* System header to define __stub macros and hopefully few prototypes,
19896     which can conflict with char $ac_func(); below.  */
19897 #include <assert.h>
19898 /* Override any gcc2 internal prototype to avoid an error.  */
19899 /* We use char because int might match the return type of a gcc2
19900     builtin and then its argument prototype would still apply.  */
19901 char $ac_func();
19902
19903 int main() {
19904
19905 /* The GNU C library defines this for functions which it implements
19906     to always fail with ENOSYS.  Some functions are actually named
19907     something starting with __ and the normal name is an alias.  */
19908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19909 choke me
19910 #else
19911 $ac_func();
19912 #endif
19913
19914 ; return 0; }
19915 EOF
19916 if { (eval echo configure:19917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19917   rm -rf conftest*
19918   eval "ac_cv_func_$ac_func=yes"
19919 else
19920   echo "configure: failed program was:" >&5
19921   cat conftest.$ac_ext >&5
19922   rm -rf conftest*
19923   eval "ac_cv_func_$ac_func=no"
19924 fi
19925 rm -f conftest*
19926 fi
19927
19928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19929   echo "$ac_t""yes" 1>&6
19930     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19931   cat >> confdefs.h <<EOF
19932 #define $ac_tr_func 1
19933 EOF
19934  
19935 else
19936   echo "$ac_t""no" 1>&6
19937 fi
19938 done
19939     
19940     fi
19941   fi
19942
19943
19944         
19945     
19946   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
19947 echo "configure:19948: checking for _float trig functions" >&5
19948   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
19949   echo $ac_n "(cached) $ac_c" 1>&6
19950 else
19951   
19952     
19953     ac_ext=C
19954 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19955 ac_cpp='$CXXCPP $CPPFLAGS'
19956 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19957 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19958 cross_compiling=$ac_cv_prog_cxx_cross
19959
19960     cat > conftest.$ac_ext <<EOF
19961 #line 19962 "configure"
19962 #include "confdefs.h"
19963 #include <math.h>
19964 int main() {
19965  `for x in _acosf _asinf _atanf \
19966                                           _cosf _sinf _tanf \
19967                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
19968 ; return 0; }
19969 EOF
19970 if { (eval echo configure:19971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19971   rm -rf conftest*
19972   glibcpp_cv_func__float_trig_use=yes
19973 else
19974   echo "configure: failed program was:" >&5
19975   cat conftest.$ac_ext >&5
19976   rm -rf conftest*
19977   glibcpp_cv_func__float_trig_use=no
19978 fi
19979 rm -f conftest*
19980     ac_ext=c
19981 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19982 ac_cpp='$CPP $CPPFLAGS'
19983 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19984 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19985 cross_compiling=$ac_cv_prog_cc_cross
19986
19987 fi
19988
19989   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
19990   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
19991     for ac_func in _acosf _asinf _atanf \
19992                                           _cosf _sinf _tanf \
19993                                           _coshf _sinhf _tanhf
19994 do
19995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19996 echo "configure:19997: checking for $ac_func" >&5
19997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19998   echo $ac_n "(cached) $ac_c" 1>&6
19999 else
20000   cat > conftest.$ac_ext <<EOF
20001 #line 20002 "configure"
20002 #include "confdefs.h"
20003 /* System header to define __stub macros and hopefully few prototypes,
20004     which can conflict with char $ac_func(); below.  */
20005 #include <assert.h>
20006 /* Override any gcc2 internal prototype to avoid an error.  */
20007 /* We use char because int might match the return type of a gcc2
20008     builtin and then its argument prototype would still apply.  */
20009 char $ac_func();
20010
20011 int main() {
20012
20013 /* The GNU C library defines this for functions which it implements
20014     to always fail with ENOSYS.  Some functions are actually named
20015     something starting with __ and the normal name is an alias.  */
20016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20017 choke me
20018 #else
20019 $ac_func();
20020 #endif
20021
20022 ; return 0; }
20023 EOF
20024 if { (eval echo configure:20025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20025   rm -rf conftest*
20026   eval "ac_cv_func_$ac_func=yes"
20027 else
20028   echo "configure: failed program was:" >&5
20029   cat conftest.$ac_ext >&5
20030   rm -rf conftest*
20031   eval "ac_cv_func_$ac_func=no"
20032 fi
20033 rm -f conftest*
20034 fi
20035
20036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20037   echo "$ac_t""yes" 1>&6
20038     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20039   cat >> confdefs.h <<EOF
20040 #define $ac_tr_func 1
20041 EOF
20042  
20043 else
20044   echo "$ac_t""no" 1>&6
20045 fi
20046 done
20047
20048   fi
20049
20050   
20051   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20052 echo "configure:20053: checking for _float round functions" >&5
20053   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
20054   echo $ac_n "(cached) $ac_c" 1>&6
20055 else
20056   
20057     
20058     ac_ext=C
20059 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20060 ac_cpp='$CXXCPP $CPPFLAGS'
20061 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20062 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20063 cross_compiling=$ac_cv_prog_cxx_cross
20064
20065     cat > conftest.$ac_ext <<EOF
20066 #line 20067 "configure"
20067 #include "confdefs.h"
20068 #include <math.h>
20069 int main() {
20070  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
20071 ; return 0; }
20072 EOF
20073 if { (eval echo configure:20074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20074   rm -rf conftest*
20075   glibcpp_cv_func__float_round_use=yes
20076 else
20077   echo "configure: failed program was:" >&5
20078   cat conftest.$ac_ext >&5
20079   rm -rf conftest*
20080   glibcpp_cv_func__float_round_use=no
20081 fi
20082 rm -f conftest*
20083     ac_ext=c
20084 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20085 ac_cpp='$CPP $CPPFLAGS'
20086 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20087 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20088 cross_compiling=$ac_cv_prog_cc_cross
20089
20090 fi
20091
20092   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
20093   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
20094     for ac_func in _ceilf _floorf
20095 do
20096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20097 echo "configure:20098: checking for $ac_func" >&5
20098 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20099   echo $ac_n "(cached) $ac_c" 1>&6
20100 else
20101   cat > conftest.$ac_ext <<EOF
20102 #line 20103 "configure"
20103 #include "confdefs.h"
20104 /* System header to define __stub macros and hopefully few prototypes,
20105     which can conflict with char $ac_func(); below.  */
20106 #include <assert.h>
20107 /* Override any gcc2 internal prototype to avoid an error.  */
20108 /* We use char because int might match the return type of a gcc2
20109     builtin and then its argument prototype would still apply.  */
20110 char $ac_func();
20111
20112 int main() {
20113
20114 /* The GNU C library defines this for functions which it implements
20115     to always fail with ENOSYS.  Some functions are actually named
20116     something starting with __ and the normal name is an alias.  */
20117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20118 choke me
20119 #else
20120 $ac_func();
20121 #endif
20122
20123 ; return 0; }
20124 EOF
20125 if { (eval echo configure:20126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20126   rm -rf conftest*
20127   eval "ac_cv_func_$ac_func=yes"
20128 else
20129   echo "configure: failed program was:" >&5
20130   cat conftest.$ac_ext >&5
20131   rm -rf conftest*
20132   eval "ac_cv_func_$ac_func=no"
20133 fi
20134 rm -f conftest*
20135 fi
20136
20137 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20138   echo "$ac_t""yes" 1>&6
20139     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20140   cat >> confdefs.h <<EOF
20141 #define $ac_tr_func 1
20142 EOF
20143  
20144 else
20145   echo "$ac_t""no" 1>&6
20146 fi
20147 done
20148
20149   fi
20150
20151
20152     
20153   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20154 echo "configure:20155: checking for _long double trig functions" >&5
20155   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
20156   echo $ac_n "(cached) $ac_c" 1>&6
20157 else
20158   
20159     
20160     ac_ext=C
20161 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20162 ac_cpp='$CXXCPP $CPPFLAGS'
20163 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20164 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20165 cross_compiling=$ac_cv_prog_cxx_cross
20166
20167     cat > conftest.$ac_ext <<EOF
20168 #line 20169 "configure"
20169 #include "confdefs.h"
20170 #include <math.h>
20171 int main() {
20172  `for x in _acosl _asinl _atanl \
20173                                           _cosl _sinl _tanl \
20174                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
20175 ; return 0; }
20176 EOF
20177 if { (eval echo configure:20178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20178   rm -rf conftest*
20179   glibcpp_cv_func__long_double_trig_use=yes
20180 else
20181   echo "configure: failed program was:" >&5
20182   cat conftest.$ac_ext >&5
20183   rm -rf conftest*
20184   glibcpp_cv_func__long_double_trig_use=no
20185 fi
20186 rm -f conftest*
20187     ac_ext=c
20188 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20189 ac_cpp='$CPP $CPPFLAGS'
20190 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20191 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20192 cross_compiling=$ac_cv_prog_cc_cross
20193
20194 fi
20195
20196   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
20197   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
20198     for ac_func in _acosl _asinl _atanl \
20199                                           _cosl _sinl _tanl \
20200                                           _coshl _sinhl _tanhl
20201 do
20202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20203 echo "configure:20204: checking for $ac_func" >&5
20204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20205   echo $ac_n "(cached) $ac_c" 1>&6
20206 else
20207   cat > conftest.$ac_ext <<EOF
20208 #line 20209 "configure"
20209 #include "confdefs.h"
20210 /* System header to define __stub macros and hopefully few prototypes,
20211     which can conflict with char $ac_func(); below.  */
20212 #include <assert.h>
20213 /* Override any gcc2 internal prototype to avoid an error.  */
20214 /* We use char because int might match the return type of a gcc2
20215     builtin and then its argument prototype would still apply.  */
20216 char $ac_func();
20217
20218 int main() {
20219
20220 /* The GNU C library defines this for functions which it implements
20221     to always fail with ENOSYS.  Some functions are actually named
20222     something starting with __ and the normal name is an alias.  */
20223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20224 choke me
20225 #else
20226 $ac_func();
20227 #endif
20228
20229 ; return 0; }
20230 EOF
20231 if { (eval echo configure:20232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20232   rm -rf conftest*
20233   eval "ac_cv_func_$ac_func=yes"
20234 else
20235   echo "configure: failed program was:" >&5
20236   cat conftest.$ac_ext >&5
20237   rm -rf conftest*
20238   eval "ac_cv_func_$ac_func=no"
20239 fi
20240 rm -f conftest*
20241 fi
20242
20243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20244   echo "$ac_t""yes" 1>&6
20245     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20246   cat >> confdefs.h <<EOF
20247 #define $ac_tr_func 1
20248 EOF
20249  
20250 else
20251   echo "$ac_t""no" 1>&6
20252 fi
20253 done
20254
20255   fi
20256
20257   
20258   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20259 echo "configure:20260: checking for _long double round functions" >&5
20260   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
20261   echo $ac_n "(cached) $ac_c" 1>&6
20262 else
20263   
20264     
20265     ac_ext=C
20266 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20267 ac_cpp='$CXXCPP $CPPFLAGS'
20268 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20269 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20270 cross_compiling=$ac_cv_prog_cxx_cross
20271
20272     cat > conftest.$ac_ext <<EOF
20273 #line 20274 "configure"
20274 #include "confdefs.h"
20275 #include <math.h>
20276 int main() {
20277  `for x in _ceill _floorl; do echo "$x (0);"; done` 
20278 ; return 0; }
20279 EOF
20280 if { (eval echo configure:20281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20281   rm -rf conftest*
20282   glibcpp_cv_func__long_double_round_use=yes
20283 else
20284   echo "configure: failed program was:" >&5
20285   cat conftest.$ac_ext >&5
20286   rm -rf conftest*
20287   glibcpp_cv_func__long_double_round_use=no
20288 fi
20289 rm -f conftest*
20290     ac_ext=c
20291 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20292 ac_cpp='$CPP $CPPFLAGS'
20293 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20294 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20295 cross_compiling=$ac_cv_prog_cc_cross
20296
20297 fi
20298
20299   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
20300   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
20301     for ac_func in _ceill _floorl
20302 do
20303 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20304 echo "configure:20305: checking for $ac_func" >&5
20305 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20306   echo $ac_n "(cached) $ac_c" 1>&6
20307 else
20308   cat > conftest.$ac_ext <<EOF
20309 #line 20310 "configure"
20310 #include "confdefs.h"
20311 /* System header to define __stub macros and hopefully few prototypes,
20312     which can conflict with char $ac_func(); below.  */
20313 #include <assert.h>
20314 /* Override any gcc2 internal prototype to avoid an error.  */
20315 /* We use char because int might match the return type of a gcc2
20316     builtin and then its argument prototype would still apply.  */
20317 char $ac_func();
20318
20319 int main() {
20320
20321 /* The GNU C library defines this for functions which it implements
20322     to always fail with ENOSYS.  Some functions are actually named
20323     something starting with __ and the normal name is an alias.  */
20324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20325 choke me
20326 #else
20327 $ac_func();
20328 #endif
20329
20330 ; return 0; }
20331 EOF
20332 if { (eval echo configure:20333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20333   rm -rf conftest*
20334   eval "ac_cv_func_$ac_func=yes"
20335 else
20336   echo "configure: failed program was:" >&5
20337   cat conftest.$ac_ext >&5
20338   rm -rf conftest*
20339   eval "ac_cv_func_$ac_func=no"
20340 fi
20341 rm -f conftest*
20342 fi
20343
20344 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20345   echo "$ac_t""yes" 1>&6
20346     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20347   cat >> confdefs.h <<EOF
20348 #define $ac_tr_func 1
20349 EOF
20350  
20351 else
20352   echo "$ac_t""no" 1>&6
20353 fi
20354 done
20355
20356   fi
20357
20358
20359   LIBS="$ac_save_LIBS"
20360   CXXFLAGS="$ac_save_CXXFLAGS"
20361
20362   
20363     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
20364 echo "configure:20365: checking for main in -lm" >&5
20365 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
20366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20367   echo $ac_n "(cached) $ac_c" 1>&6
20368 else
20369   ac_save_LIBS="$LIBS"
20370 LIBS="-lm  $LIBS"
20371 cat > conftest.$ac_ext <<EOF
20372 #line 20373 "configure"
20373 #include "confdefs.h"
20374
20375 int main() {
20376 main()
20377 ; return 0; }
20378 EOF
20379 if { (eval echo configure:20380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20380   rm -rf conftest*
20381   eval "ac_cv_lib_$ac_lib_var=yes"
20382 else
20383   echo "configure: failed program was:" >&5
20384   cat conftest.$ac_ext >&5
20385   rm -rf conftest*
20386   eval "ac_cv_lib_$ac_lib_var=no"
20387 fi
20388 rm -f conftest*
20389 LIBS="$ac_save_LIBS"
20390
20391 fi
20392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20393   echo "$ac_t""yes" 1>&6
20394     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
20395     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
20396   cat >> confdefs.h <<EOF
20397 #define $ac_tr_lib 1
20398 EOF
20399
20400   LIBS="-lm $LIBS"
20401
20402 else
20403   echo "$ac_t""no" 1>&6
20404 fi
20405
20406   for ac_func in nan copysignf
20407 do
20408 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20409 echo "configure:20410: checking for $ac_func" >&5
20410 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20411   echo $ac_n "(cached) $ac_c" 1>&6
20412 else
20413   cat > conftest.$ac_ext <<EOF
20414 #line 20415 "configure"
20415 #include "confdefs.h"
20416 /* System header to define __stub macros and hopefully few prototypes,
20417     which can conflict with char $ac_func(); below.  */
20418 #include <assert.h>
20419 /* Override any gcc2 internal prototype to avoid an error.  */
20420 /* We use char because int might match the return type of a gcc2
20421     builtin and then its argument prototype would still apply.  */
20422 char $ac_func();
20423
20424 int main() {
20425
20426 /* The GNU C library defines this for functions which it implements
20427     to always fail with ENOSYS.  Some functions are actually named
20428     something starting with __ and the normal name is an alias.  */
20429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20430 choke me
20431 #else
20432 $ac_func();
20433 #endif
20434
20435 ; return 0; }
20436 EOF
20437 if { (eval echo configure:20438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20438   rm -rf conftest*
20439   eval "ac_cv_func_$ac_func=yes"
20440 else
20441   echo "configure: failed program was:" >&5
20442   cat conftest.$ac_ext >&5
20443   rm -rf conftest*
20444   eval "ac_cv_func_$ac_func=no"
20445 fi
20446 rm -f conftest*
20447 fi
20448
20449 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20450   echo "$ac_t""yes" 1>&6
20451     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20452   cat >> confdefs.h <<EOF
20453 #define $ac_tr_func 1
20454 EOF
20455  
20456 else
20457   echo "$ac_t""no" 1>&6
20458 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
20459 fi
20460 done
20461
20462
20463     for ac_func in __signbit
20464 do
20465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20466 echo "configure:20467: checking for $ac_func" >&5
20467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20468   echo $ac_n "(cached) $ac_c" 1>&6
20469 else
20470   cat > conftest.$ac_ext <<EOF
20471 #line 20472 "configure"
20472 #include "confdefs.h"
20473 /* System header to define __stub macros and hopefully few prototypes,
20474     which can conflict with char $ac_func(); below.  */
20475 #include <assert.h>
20476 /* Override any gcc2 internal prototype to avoid an error.  */
20477 /* We use char because int might match the return type of a gcc2
20478     builtin and then its argument prototype would still apply.  */
20479 char $ac_func();
20480
20481 int main() {
20482
20483 /* The GNU C library defines this for functions which it implements
20484     to always fail with ENOSYS.  Some functions are actually named
20485     something starting with __ and the normal name is an alias.  */
20486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20487 choke me
20488 #else
20489 $ac_func();
20490 #endif
20491
20492 ; return 0; }
20493 EOF
20494 if { (eval echo configure:20495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20495   rm -rf conftest*
20496   eval "ac_cv_func_$ac_func=yes"
20497 else
20498   echo "configure: failed program was:" >&5
20499   cat conftest.$ac_ext >&5
20500   rm -rf conftest*
20501   eval "ac_cv_func_$ac_func=no"
20502 fi
20503 rm -f conftest*
20504 fi
20505
20506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20507   echo "$ac_t""yes" 1>&6
20508     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20509   cat >> confdefs.h <<EOF
20510 #define $ac_tr_func 1
20511 EOF
20512  
20513 else
20514   echo "$ac_t""no" 1>&6
20515 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
20516 fi
20517 done
20518
20519   for ac_func in __signbitf
20520 do
20521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20522 echo "configure:20523: checking for $ac_func" >&5
20523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20524   echo $ac_n "(cached) $ac_c" 1>&6
20525 else
20526   cat > conftest.$ac_ext <<EOF
20527 #line 20528 "configure"
20528 #include "confdefs.h"
20529 /* System header to define __stub macros and hopefully few prototypes,
20530     which can conflict with char $ac_func(); below.  */
20531 #include <assert.h>
20532 /* Override any gcc2 internal prototype to avoid an error.  */
20533 /* We use char because int might match the return type of a gcc2
20534     builtin and then its argument prototype would still apply.  */
20535 char $ac_func();
20536
20537 int main() {
20538
20539 /* The GNU C library defines this for functions which it implements
20540     to always fail with ENOSYS.  Some functions are actually named
20541     something starting with __ and the normal name is an alias.  */
20542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20543 choke me
20544 #else
20545 $ac_func();
20546 #endif
20547
20548 ; return 0; }
20549 EOF
20550 if { (eval echo configure:20551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20551   rm -rf conftest*
20552   eval "ac_cv_func_$ac_func=yes"
20553 else
20554   echo "configure: failed program was:" >&5
20555   cat conftest.$ac_ext >&5
20556   rm -rf conftest*
20557   eval "ac_cv_func_$ac_func=no"
20558 fi
20559 rm -f conftest*
20560 fi
20561
20562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20563   echo "$ac_t""yes" 1>&6
20564     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20565   cat >> confdefs.h <<EOF
20566 #define $ac_tr_func 1
20567 EOF
20568  
20569 else
20570   echo "$ac_t""no" 1>&6
20571 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
20572 fi
20573 done
20574
20575
20576           if test x$ac_cv_func_copysignl = x"yes"; then
20577     for ac_func in __signbitl
20578 do
20579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20580 echo "configure:20581: checking for $ac_func" >&5
20581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20582   echo $ac_n "(cached) $ac_c" 1>&6
20583 else
20584   cat > conftest.$ac_ext <<EOF
20585 #line 20586 "configure"
20586 #include "confdefs.h"
20587 /* System header to define __stub macros and hopefully few prototypes,
20588     which can conflict with char $ac_func(); below.  */
20589 #include <assert.h>
20590 /* Override any gcc2 internal prototype to avoid an error.  */
20591 /* We use char because int might match the return type of a gcc2
20592     builtin and then its argument prototype would still apply.  */
20593 char $ac_func();
20594
20595 int main() {
20596
20597 /* The GNU C library defines this for functions which it implements
20598     to always fail with ENOSYS.  Some functions are actually named
20599     something starting with __ and the normal name is an alias.  */
20600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20601 choke me
20602 #else
20603 $ac_func();
20604 #endif
20605
20606 ; return 0; }
20607 EOF
20608 if { (eval echo configure:20609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20609   rm -rf conftest*
20610   eval "ac_cv_func_$ac_func=yes"
20611 else
20612   echo "configure: failed program was:" >&5
20613   cat conftest.$ac_ext >&5
20614   rm -rf conftest*
20615   eval "ac_cv_func_$ac_func=no"
20616 fi
20617 rm -f conftest*
20618 fi
20619
20620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20621   echo "$ac_t""yes" 1>&6
20622     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20623   cat >> confdefs.h <<EOF
20624 #define $ac_tr_func 1
20625 EOF
20626  
20627 else
20628   echo "$ac_t""no" 1>&6
20629 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
20630 fi
20631 done
20632
20633   fi
20634
20635   
20636
20637   
20638
20639       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
20640 echo "configure:20641: checking for mbstate_t" >&5
20641   cat > conftest.$ac_ext <<EOF
20642 #line 20643 "configure"
20643 #include "confdefs.h"
20644 #include <wchar.h>
20645 int main() {
20646 mbstate_t teststate;
20647 ; return 0; }
20648 EOF
20649 if { (eval echo configure:20650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20650   rm -rf conftest*
20651   have_mbstate_t=yes
20652 else
20653   echo "configure: failed program was:" >&5
20654   cat conftest.$ac_ext >&5
20655   rm -rf conftest*
20656   have_mbstate_t=no
20657 fi
20658 rm -f conftest*
20659   echo "$ac_t""$have_mbstate_t" 1>&6
20660   if test x"$have_mbstate_t" = xyes; then
20661     cat >> confdefs.h <<\EOF
20662 #define HAVE_MBSTATE_T 1
20663 EOF
20664
20665   fi
20666
20667     for ac_hdr in wchar.h
20668 do
20669 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20670 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20671 echo "configure:20672: checking for $ac_hdr" >&5
20672 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20673   echo $ac_n "(cached) $ac_c" 1>&6
20674 else
20675   cat > conftest.$ac_ext <<EOF
20676 #line 20677 "configure"
20677 #include "confdefs.h"
20678 #include <$ac_hdr>
20679 EOF
20680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20681 { (eval echo configure:20682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20683 if test -z "$ac_err"; then
20684   rm -rf conftest*
20685   eval "ac_cv_header_$ac_safe=yes"
20686 else
20687   echo "$ac_err" >&5
20688   echo "configure: failed program was:" >&5
20689   cat conftest.$ac_ext >&5
20690   rm -rf conftest*
20691   eval "ac_cv_header_$ac_safe=no"
20692 fi
20693 rm -f conftest*
20694 fi
20695 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20696   echo "$ac_t""yes" 1>&6
20697     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20698   cat >> confdefs.h <<EOF
20699 #define $ac_tr_hdr 1
20700 EOF
20701  ac_has_wchar_h=yes
20702 else
20703   echo "$ac_t""no" 1>&6
20704 ac_has_wchar_h=no
20705 fi
20706 done
20707
20708   for ac_hdr in wctype.h
20709 do
20710 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20711 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20712 echo "configure:20713: checking for $ac_hdr" >&5
20713 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20714   echo $ac_n "(cached) $ac_c" 1>&6
20715 else
20716   cat > conftest.$ac_ext <<EOF
20717 #line 20718 "configure"
20718 #include "confdefs.h"
20719 #include <$ac_hdr>
20720 EOF
20721 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20722 { (eval echo configure:20723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20723 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20724 if test -z "$ac_err"; then
20725   rm -rf conftest*
20726   eval "ac_cv_header_$ac_safe=yes"
20727 else
20728   echo "$ac_err" >&5
20729   echo "configure: failed program was:" >&5
20730   cat conftest.$ac_ext >&5
20731   rm -rf conftest*
20732   eval "ac_cv_header_$ac_safe=no"
20733 fi
20734 rm -f conftest*
20735 fi
20736 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20737   echo "$ac_t""yes" 1>&6
20738     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20739   cat >> confdefs.h <<EOF
20740 #define $ac_tr_hdr 1
20741 EOF
20742  ac_has_wctype_h=yes
20743 else
20744   echo "$ac_t""no" 1>&6
20745 ac_has_wctype_h=no
20746 fi
20747 done
20748
20749   
20750     if test x"$ac_has_wchar_h" = xyes &&
20751      test x"$ac_has_wctype_h" = xyes &&
20752      test x"$enable_c_mbchar" != xno; then
20753       
20754             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
20755 echo "configure:20756: checking for WCHAR_MIN and WCHAR_MAX" >&5
20756     cat > conftest.$ac_ext <<EOF
20757 #line 20758 "configure"
20758 #include "confdefs.h"
20759 #include <wchar.h>
20760 int main() {
20761 int i = WCHAR_MIN; int j = WCHAR_MAX;
20762 ; return 0; }
20763 EOF
20764 if { (eval echo configure:20765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20765   rm -rf conftest*
20766   has_wchar_minmax=yes
20767 else
20768   echo "configure: failed program was:" >&5
20769   cat conftest.$ac_ext >&5
20770   rm -rf conftest*
20771   has_wchar_minmax=no
20772 fi
20773 rm -f conftest*
20774     echo "$ac_t""$has_wchar_minmax" 1>&6
20775     
20776             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
20777 echo "configure:20778: checking for WEOF" >&5
20778     cat > conftest.$ac_ext <<EOF
20779 #line 20780 "configure"
20780 #include "confdefs.h"
20781
20782       #include <wchar.h>
20783       #include <stddef.h>
20784 int main() {
20785 wint_t i = WEOF;
20786 ; return 0; }
20787 EOF
20788 if { (eval echo configure:20789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20789   rm -rf conftest*
20790   has_weof=yes
20791 else
20792   echo "configure: failed program was:" >&5
20793   cat conftest.$ac_ext >&5
20794   rm -rf conftest*
20795   has_weof=no
20796 fi
20797 rm -f conftest*
20798     echo "$ac_t""$has_weof" 1>&6
20799   
20800         ac_wfuncs=yes
20801     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
20802 do
20803 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20804 echo "configure:20805: checking for $ac_func" >&5
20805 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20806   echo $ac_n "(cached) $ac_c" 1>&6
20807 else
20808   cat > conftest.$ac_ext <<EOF
20809 #line 20810 "configure"
20810 #include "confdefs.h"
20811 /* System header to define __stub macros and hopefully few prototypes,
20812     which can conflict with char $ac_func(); below.  */
20813 #include <assert.h>
20814 /* Override any gcc2 internal prototype to avoid an error.  */
20815 /* We use char because int might match the return type of a gcc2
20816     builtin and then its argument prototype would still apply.  */
20817 char $ac_func();
20818
20819 int main() {
20820
20821 /* The GNU C library defines this for functions which it implements
20822     to always fail with ENOSYS.  Some functions are actually named
20823     something starting with __ and the normal name is an alias.  */
20824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20825 choke me
20826 #else
20827 $ac_func();
20828 #endif
20829
20830 ; return 0; }
20831 EOF
20832 if { (eval echo configure:20833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20833   rm -rf conftest*
20834   eval "ac_cv_func_$ac_func=yes"
20835 else
20836   echo "configure: failed program was:" >&5
20837   cat conftest.$ac_ext >&5
20838   rm -rf conftest*
20839   eval "ac_cv_func_$ac_func=no"
20840 fi
20841 rm -f conftest*
20842 fi
20843
20844 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20845   echo "$ac_t""yes" 1>&6
20846     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20847   cat >> confdefs.h <<EOF
20848 #define $ac_tr_func 1
20849 EOF
20850  
20851 else
20852   echo "$ac_t""no" 1>&6
20853 \
20854     ac_wfuncs=no
20855 fi
20856 done
20857
20858   
20859         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
20860     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
20861     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
20862     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
20863     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
20864     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
20865 do
20866 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20867 echo "configure:20868: checking for $ac_func" >&5
20868 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20869   echo $ac_n "(cached) $ac_c" 1>&6
20870 else
20871   cat > conftest.$ac_ext <<EOF
20872 #line 20873 "configure"
20873 #include "confdefs.h"
20874 /* System header to define __stub macros and hopefully few prototypes,
20875     which can conflict with char $ac_func(); below.  */
20876 #include <assert.h>
20877 /* Override any gcc2 internal prototype to avoid an error.  */
20878 /* We use char because int might match the return type of a gcc2
20879     builtin and then its argument prototype would still apply.  */
20880 char $ac_func();
20881
20882 int main() {
20883
20884 /* The GNU C library defines this for functions which it implements
20885     to always fail with ENOSYS.  Some functions are actually named
20886     something starting with __ and the normal name is an alias.  */
20887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20888 choke me
20889 #else
20890 $ac_func();
20891 #endif
20892
20893 ; return 0; }
20894 EOF
20895 if { (eval echo configure:20896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20896   rm -rf conftest*
20897   eval "ac_cv_func_$ac_func=yes"
20898 else
20899   echo "configure: failed program was:" >&5
20900   cat conftest.$ac_ext >&5
20901   rm -rf conftest*
20902   eval "ac_cv_func_$ac_func=no"
20903 fi
20904 rm -f conftest*
20905 fi
20906
20907 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20908   echo "$ac_t""yes" 1>&6
20909     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20910   cat >> confdefs.h <<EOF
20911 #define $ac_tr_func 1
20912 EOF
20913  
20914 else
20915   echo "$ac_t""no" 1>&6
20916 \
20917     ac_wfuncs=no
20918 fi
20919 done
20920
20921
20922     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
20923 echo "configure:20924: checking for ISO C99 wchar_t support" >&5
20924     if test x"$has_weof" = xyes &&
20925        test x"$has_wchar_minmax" = xyes &&
20926        test x"$ac_wfuncs" = xyes; then
20927       ac_isoC99_wchar_t=yes
20928     else
20929       ac_isoC99_wchar_t=no
20930     fi
20931     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
20932   
20933             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
20934 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
20935 echo "configure:20936: checking for iconv.h" >&5
20936 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20937   echo $ac_n "(cached) $ac_c" 1>&6
20938 else
20939   cat > conftest.$ac_ext <<EOF
20940 #line 20941 "configure"
20941 #include "confdefs.h"
20942 #include <iconv.h>
20943 EOF
20944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20945 { (eval echo configure:20946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20946 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20947 if test -z "$ac_err"; then
20948   rm -rf conftest*
20949   eval "ac_cv_header_$ac_safe=yes"
20950 else
20951   echo "$ac_err" >&5
20952   echo "configure: failed program was:" >&5
20953   cat conftest.$ac_ext >&5
20954   rm -rf conftest*
20955   eval "ac_cv_header_$ac_safe=no"
20956 fi
20957 rm -f conftest*
20958 fi
20959 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20960   echo "$ac_t""yes" 1>&6
20961   ac_has_iconv_h=yes
20962 else
20963   echo "$ac_t""no" 1>&6
20964 ac_has_iconv_h=no
20965 fi
20966
20967     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
20968 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
20969 echo "configure:20970: checking for langinfo.h" >&5
20970 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20971   echo $ac_n "(cached) $ac_c" 1>&6
20972 else
20973   cat > conftest.$ac_ext <<EOF
20974 #line 20975 "configure"
20975 #include "confdefs.h"
20976 #include <langinfo.h>
20977 EOF
20978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20979 { (eval echo configure:20980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20980 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20981 if test -z "$ac_err"; then
20982   rm -rf conftest*
20983   eval "ac_cv_header_$ac_safe=yes"
20984 else
20985   echo "$ac_err" >&5
20986   echo "configure: failed program was:" >&5
20987   cat conftest.$ac_ext >&5
20988   rm -rf conftest*
20989   eval "ac_cv_header_$ac_safe=no"
20990 fi
20991 rm -f conftest*
20992 fi
20993 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20994   echo "$ac_t""yes" 1>&6
20995   ac_has_langinfo_h=yes
20996 else
20997   echo "$ac_t""no" 1>&6
20998 ac_has_langinfo_h=no
20999 fi
21000
21001
21002         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
21003 echo "configure:21004: checking for iconv in -liconv" >&5
21004 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
21005 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21006   echo $ac_n "(cached) $ac_c" 1>&6
21007 else
21008   ac_save_LIBS="$LIBS"
21009 LIBS="-liconv  $LIBS"
21010 cat > conftest.$ac_ext <<EOF
21011 #line 21012 "configure"
21012 #include "confdefs.h"
21013 /* Override any gcc2 internal prototype to avoid an error.  */
21014 /* We use char because int might match the return type of a gcc2
21015     builtin and then its argument prototype would still apply.  */
21016 char iconv();
21017
21018 int main() {
21019 iconv()
21020 ; return 0; }
21021 EOF
21022 if { (eval echo configure:21023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21023   rm -rf conftest*
21024   eval "ac_cv_lib_$ac_lib_var=yes"
21025 else
21026   echo "configure: failed program was:" >&5
21027   cat conftest.$ac_ext >&5
21028   rm -rf conftest*
21029   eval "ac_cv_lib_$ac_lib_var=no"
21030 fi
21031 rm -f conftest*
21032 LIBS="$ac_save_LIBS"
21033
21034 fi
21035 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21036   echo "$ac_t""yes" 1>&6
21037   libiconv="-liconv"
21038 else
21039   echo "$ac_t""no" 1>&6
21040 fi
21041
21042     ac_save_LIBS="$LIBS"
21043     LIBS="$LIBS $libiconv"
21044
21045     for ac_func in iconv_open iconv_close iconv nl_langinfo
21046 do
21047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21048 echo "configure:21049: checking for $ac_func" >&5
21049 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21050   echo $ac_n "(cached) $ac_c" 1>&6
21051 else
21052   cat > conftest.$ac_ext <<EOF
21053 #line 21054 "configure"
21054 #include "confdefs.h"
21055 /* System header to define __stub macros and hopefully few prototypes,
21056     which can conflict with char $ac_func(); below.  */
21057 #include <assert.h>
21058 /* Override any gcc2 internal prototype to avoid an error.  */
21059 /* We use char because int might match the return type of a gcc2
21060     builtin and then its argument prototype would still apply.  */
21061 char $ac_func();
21062
21063 int main() {
21064
21065 /* The GNU C library defines this for functions which it implements
21066     to always fail with ENOSYS.  Some functions are actually named
21067     something starting with __ and the normal name is an alias.  */
21068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21069 choke me
21070 #else
21071 $ac_func();
21072 #endif
21073
21074 ; return 0; }
21075 EOF
21076 if { (eval echo configure:21077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21077   rm -rf conftest*
21078   eval "ac_cv_func_$ac_func=yes"
21079 else
21080   echo "configure: failed program was:" >&5
21081   cat conftest.$ac_ext >&5
21082   rm -rf conftest*
21083   eval "ac_cv_func_$ac_func=no"
21084 fi
21085 rm -f conftest*
21086 fi
21087
21088 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21089   echo "$ac_t""yes" 1>&6
21090     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21091   cat >> confdefs.h <<EOF
21092 #define $ac_tr_func 1
21093 EOF
21094  \
21095     ac_XPG2funcs=yes
21096 else
21097   echo "$ac_t""no" 1>&6
21098 ac_XPG2funcs=no
21099 fi
21100 done
21101
21102   
21103     LIBS="$ac_save_LIBS"
21104
21105     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
21106 echo "configure:21107: checking for XPG2 wchar_t support" >&5
21107     if test x"$ac_has_iconv_h" = xyes &&
21108        test x"$ac_has_langinfo_h" = xyes &&
21109        test x"$ac_XPG2funcs" = xyes; then
21110       ac_XPG2_wchar_t=yes
21111     else
21112       ac_XPG2_wchar_t=no
21113     fi
21114     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
21115   
21116             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
21117 echo "configure:21118: checking for enabled wchar_t specializations" >&5
21118     if test x"$ac_isoC99_wchar_t" = xyes &&
21119        test x"$ac_XPG2_wchar_t" = xyes; then
21120       cat >> confdefs.h <<\EOF
21121 #define _GLIBCPP_USE_WCHAR_T 1
21122 EOF
21123
21124       echo "$ac_t"""yes"" 1>&6
21125     else
21126       echo "$ac_t"""no"" 1>&6
21127     fi
21128   else
21129         echo "configure: warning: wchar_t support disabled." 1>&2
21130   fi
21131
21132   
21133   ac_test_CXXFLAGS="${CXXFLAGS+set}"
21134   ac_save_CXXFLAGS="$CXXFLAGS"
21135   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
21136
21137   
21138   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
21139 echo "configure:21140: checking for strtold declaration" >&5
21140   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
21141     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
21142   echo $ac_n "(cached) $ac_c" 1>&6
21143 else
21144   
21145       
21146       ac_ext=C
21147 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21148 ac_cpp='$CXXCPP $CPPFLAGS'
21149 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21150 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21151 cross_compiling=$ac_cv_prog_cxx_cross
21152
21153       cat > conftest.$ac_ext <<EOF
21154 #line 21155 "configure"
21155 #include "confdefs.h"
21156 #include <stdlib.h>
21157 int main() {
21158  strtold(0, 0);
21159 ; return 0; }
21160 EOF
21161 if { (eval echo configure:21162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21162   rm -rf conftest*
21163   glibcpp_cv_func_strtold_use=yes
21164 else
21165   echo "configure: failed program was:" >&5
21166   cat conftest.$ac_ext >&5
21167   rm -rf conftest*
21168   glibcpp_cv_func_strtold_use=no
21169 fi
21170 rm -f conftest*
21171       ac_ext=c
21172 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21173 ac_cpp='$CPP $CPPFLAGS'
21174 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21175 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21176 cross_compiling=$ac_cv_prog_cc_cross
21177
21178     
21179 fi
21180
21181   fi
21182   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
21183   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
21184     for ac_func in strtold
21185 do
21186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21187 echo "configure:21188: checking for $ac_func" >&5
21188 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21189   echo $ac_n "(cached) $ac_c" 1>&6
21190 else
21191   cat > conftest.$ac_ext <<EOF
21192 #line 21193 "configure"
21193 #include "confdefs.h"
21194 /* System header to define __stub macros and hopefully few prototypes,
21195     which can conflict with char $ac_func(); below.  */
21196 #include <assert.h>
21197 /* Override any gcc2 internal prototype to avoid an error.  */
21198 /* We use char because int might match the return type of a gcc2
21199     builtin and then its argument prototype would still apply.  */
21200 char $ac_func();
21201
21202 int main() {
21203
21204 /* The GNU C library defines this for functions which it implements
21205     to always fail with ENOSYS.  Some functions are actually named
21206     something starting with __ and the normal name is an alias.  */
21207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21208 choke me
21209 #else
21210 $ac_func();
21211 #endif
21212
21213 ; return 0; }
21214 EOF
21215 if { (eval echo configure:21216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21216   rm -rf conftest*
21217   eval "ac_cv_func_$ac_func=yes"
21218 else
21219   echo "configure: failed program was:" >&5
21220   cat conftest.$ac_ext >&5
21221   rm -rf conftest*
21222   eval "ac_cv_func_$ac_func=no"
21223 fi
21224 rm -f conftest*
21225 fi
21226
21227 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21228   echo "$ac_t""yes" 1>&6
21229     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21230   cat >> confdefs.h <<EOF
21231 #define $ac_tr_func 1
21232 EOF
21233  
21234 else
21235   echo "$ac_t""no" 1>&6
21236 fi
21237 done
21238     
21239   fi
21240
21241   
21242   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
21243 echo "configure:21244: checking for strtof declaration" >&5
21244   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
21245     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
21246   echo $ac_n "(cached) $ac_c" 1>&6
21247 else
21248   
21249       
21250       ac_ext=C
21251 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21252 ac_cpp='$CXXCPP $CPPFLAGS'
21253 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21254 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21255 cross_compiling=$ac_cv_prog_cxx_cross
21256
21257       cat > conftest.$ac_ext <<EOF
21258 #line 21259 "configure"
21259 #include "confdefs.h"
21260 #include <stdlib.h>
21261 int main() {
21262  strtof(0, 0);
21263 ; return 0; }
21264 EOF
21265 if { (eval echo configure:21266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21266   rm -rf conftest*
21267   glibcpp_cv_func_strtof_use=yes
21268 else
21269   echo "configure: failed program was:" >&5
21270   cat conftest.$ac_ext >&5
21271   rm -rf conftest*
21272   glibcpp_cv_func_strtof_use=no
21273 fi
21274 rm -f conftest*
21275       ac_ext=c
21276 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21277 ac_cpp='$CPP $CPPFLAGS'
21278 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21279 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21280 cross_compiling=$ac_cv_prog_cc_cross
21281
21282     
21283 fi
21284
21285   fi
21286   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
21287   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
21288     for ac_func in strtof
21289 do
21290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21291 echo "configure:21292: checking for $ac_func" >&5
21292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21293   echo $ac_n "(cached) $ac_c" 1>&6
21294 else
21295   cat > conftest.$ac_ext <<EOF
21296 #line 21297 "configure"
21297 #include "confdefs.h"
21298 /* System header to define __stub macros and hopefully few prototypes,
21299     which can conflict with char $ac_func(); below.  */
21300 #include <assert.h>
21301 /* Override any gcc2 internal prototype to avoid an error.  */
21302 /* We use char because int might match the return type of a gcc2
21303     builtin and then its argument prototype would still apply.  */
21304 char $ac_func();
21305
21306 int main() {
21307
21308 /* The GNU C library defines this for functions which it implements
21309     to always fail with ENOSYS.  Some functions are actually named
21310     something starting with __ and the normal name is an alias.  */
21311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21312 choke me
21313 #else
21314 $ac_func();
21315 #endif
21316
21317 ; return 0; }
21318 EOF
21319 if { (eval echo configure:21320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21320   rm -rf conftest*
21321   eval "ac_cv_func_$ac_func=yes"
21322 else
21323   echo "configure: failed program was:" >&5
21324   cat conftest.$ac_ext >&5
21325   rm -rf conftest*
21326   eval "ac_cv_func_$ac_func=no"
21327 fi
21328 rm -f conftest*
21329 fi
21330
21331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21332   echo "$ac_t""yes" 1>&6
21333     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21334   cat >> confdefs.h <<EOF
21335 #define $ac_tr_func 1
21336 EOF
21337  
21338 else
21339   echo "$ac_t""no" 1>&6
21340 fi
21341 done
21342     
21343   fi
21344
21345   for ac_func in drand48
21346 do
21347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21348 echo "configure:21349: checking for $ac_func" >&5
21349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21350   echo $ac_n "(cached) $ac_c" 1>&6
21351 else
21352   cat > conftest.$ac_ext <<EOF
21353 #line 21354 "configure"
21354 #include "confdefs.h"
21355 /* System header to define __stub macros and hopefully few prototypes,
21356     which can conflict with char $ac_func(); below.  */
21357 #include <assert.h>
21358 /* Override any gcc2 internal prototype to avoid an error.  */
21359 /* We use char because int might match the return type of a gcc2
21360     builtin and then its argument prototype would still apply.  */
21361 char $ac_func();
21362
21363 int main() {
21364
21365 /* The GNU C library defines this for functions which it implements
21366     to always fail with ENOSYS.  Some functions are actually named
21367     something starting with __ and the normal name is an alias.  */
21368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21369 choke me
21370 #else
21371 $ac_func();
21372 #endif
21373
21374 ; return 0; }
21375 EOF
21376 if { (eval echo configure:21377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21377   rm -rf conftest*
21378   eval "ac_cv_func_$ac_func=yes"
21379 else
21380   echo "configure: failed program was:" >&5
21381   cat conftest.$ac_ext >&5
21382   rm -rf conftest*
21383   eval "ac_cv_func_$ac_func=no"
21384 fi
21385 rm -f conftest*
21386 fi
21387
21388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21389   echo "$ac_t""yes" 1>&6
21390     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21391   cat >> confdefs.h <<EOF
21392 #define $ac_tr_func 1
21393 EOF
21394  
21395 else
21396   echo "$ac_t""no" 1>&6
21397 fi
21398 done
21399
21400
21401   CXXFLAGS="$ac_save_CXXFLAGS"
21402
21403   
21404   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
21405 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
21406 echo "configure:21407: checking for locale.h" >&5
21407 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21408   echo $ac_n "(cached) $ac_c" 1>&6
21409 else
21410   cat > conftest.$ac_ext <<EOF
21411 #line 21412 "configure"
21412 #include "confdefs.h"
21413 #include <locale.h>
21414 EOF
21415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21416 { (eval echo configure:21417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21418 if test -z "$ac_err"; then
21419   rm -rf conftest*
21420   eval "ac_cv_header_$ac_safe=yes"
21421 else
21422   echo "$ac_err" >&5
21423   echo "configure: failed program was:" >&5
21424   cat conftest.$ac_ext >&5
21425   rm -rf conftest*
21426   eval "ac_cv_header_$ac_safe=no"
21427 fi
21428 rm -f conftest*
21429 fi
21430 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21431   echo "$ac_t""yes" 1>&6
21432   
21433     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
21434 echo "configure:21435: checking for LC_MESSAGES" >&5
21435 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
21436   echo $ac_n "(cached) $ac_c" 1>&6
21437 else
21438   cat > conftest.$ac_ext <<EOF
21439 #line 21440 "configure"
21440 #include "confdefs.h"
21441 #include <locale.h>
21442 int main() {
21443 return LC_MESSAGES
21444 ; return 0; }
21445 EOF
21446 if { (eval echo configure:21447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21447   rm -rf conftest*
21448   ac_cv_val_LC_MESSAGES=yes
21449 else
21450   echo "configure: failed program was:" >&5
21451   cat conftest.$ac_ext >&5
21452   rm -rf conftest*
21453   ac_cv_val_LC_MESSAGES=no
21454 fi
21455 rm -f conftest*
21456 fi
21457
21458 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
21459     if test $ac_cv_val_LC_MESSAGES = yes; then
21460       cat >> confdefs.h <<\EOF
21461 #define HAVE_LC_MESSAGES 1
21462 EOF
21463
21464     fi
21465   
21466 else
21467   echo "$ac_t""no" 1>&6
21468 fi
21469
21470
21471
21472   cat > conftest.$ac_ext <<EOF
21473 #line 21474 "configure"
21474 #include "confdefs.h"
21475
21476   #include <setjmp.h>
21477   
21478 int main() {
21479 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
21480 ; return 0; }
21481 EOF
21482 if { (eval echo configure:21483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21483   rm -rf conftest*
21484   cat >> confdefs.h <<\EOF
21485 #define HAVE_SIGSETJMP 1
21486 EOF
21487
21488   
21489 else
21490   echo "configure: failed program was:" >&5
21491   cat conftest.$ac_ext >&5
21492 fi
21493 rm -f conftest*
21494
21495   for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
21496 do
21497 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21498 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21499 echo "configure:21500: checking for $ac_hdr" >&5
21500 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21501   echo $ac_n "(cached) $ac_c" 1>&6
21502 else
21503   cat > conftest.$ac_ext <<EOF
21504 #line 21505 "configure"
21505 #include "confdefs.h"
21506 #include <$ac_hdr>
21507 EOF
21508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21509 { (eval echo configure:21510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21510 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21511 if test -z "$ac_err"; then
21512   rm -rf conftest*
21513   eval "ac_cv_header_$ac_safe=yes"
21514 else
21515   echo "$ac_err" >&5
21516   echo "configure: failed program was:" >&5
21517   cat conftest.$ac_ext >&5
21518   rm -rf conftest*
21519   eval "ac_cv_header_$ac_safe=no"
21520 fi
21521 rm -f conftest*
21522 fi
21523 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21524   echo "$ac_t""yes" 1>&6
21525     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21526   cat >> confdefs.h <<EOF
21527 #define $ac_tr_hdr 1
21528 EOF
21529  
21530 else
21531   echo "$ac_t""no" 1>&6
21532 fi
21533 done
21534
21535 for ac_func in getpagesize
21536 do
21537 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21538 echo "configure:21539: checking for $ac_func" >&5
21539 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21540   echo $ac_n "(cached) $ac_c" 1>&6
21541 else
21542   cat > conftest.$ac_ext <<EOF
21543 #line 21544 "configure"
21544 #include "confdefs.h"
21545 /* System header to define __stub macros and hopefully few prototypes,
21546     which can conflict with char $ac_func(); below.  */
21547 #include <assert.h>
21548 /* Override any gcc2 internal prototype to avoid an error.  */
21549 /* We use char because int might match the return type of a gcc2
21550     builtin and then its argument prototype would still apply.  */
21551 char $ac_func();
21552
21553 int main() {
21554
21555 /* The GNU C library defines this for functions which it implements
21556     to always fail with ENOSYS.  Some functions are actually named
21557     something starting with __ and the normal name is an alias.  */
21558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21559 choke me
21560 #else
21561 $ac_func();
21562 #endif
21563
21564 ; return 0; }
21565 EOF
21566 if { (eval echo configure:21567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21567   rm -rf conftest*
21568   eval "ac_cv_func_$ac_func=yes"
21569 else
21570   echo "configure: failed program was:" >&5
21571   cat conftest.$ac_ext >&5
21572   rm -rf conftest*
21573   eval "ac_cv_func_$ac_func=no"
21574 fi
21575 rm -f conftest*
21576 fi
21577
21578 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21579   echo "$ac_t""yes" 1>&6
21580     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21581   cat >> confdefs.h <<EOF
21582 #define $ac_tr_func 1
21583 EOF
21584  
21585 else
21586   echo "$ac_t""no" 1>&6
21587 fi
21588 done
21589
21590 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
21591 echo "configure:21592: checking for working mmap" >&5
21592 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
21593   echo $ac_n "(cached) $ac_c" 1>&6
21594 else
21595   if test "$cross_compiling" = yes; then
21596   ac_cv_func_mmap_fixed_mapped=no
21597 else
21598   cat > conftest.$ac_ext <<EOF
21599 #line 21600 "configure"
21600 #include "confdefs.h"
21601
21602 /* Thanks to Mike Haertel and Jim Avera for this test.
21603    Here is a matrix of mmap possibilities:
21604         mmap private not fixed
21605         mmap private fixed at somewhere currently unmapped
21606         mmap private fixed at somewhere already mapped
21607         mmap shared not fixed
21608         mmap shared fixed at somewhere currently unmapped
21609         mmap shared fixed at somewhere already mapped
21610    For private mappings, we should verify that changes cannot be read()
21611    back from the file, nor mmap's back from the file at a different
21612    address.  (There have been systems where private was not correctly
21613    implemented like the infamous i386 svr4.0, and systems where the
21614    VM page cache was not coherent with the filesystem buffer cache
21615    like early versions of FreeBSD and possibly contemporary NetBSD.)
21616    For shared mappings, we should conversely verify that changes get
21617    propogated back to all the places they're supposed to be.
21618
21619    Grep wants private fixed already mapped.
21620    The main things grep needs to know about mmap are:
21621    * does it exist and is it safe to write into the mmap'd area
21622    * how to use it (BSD variants)  */
21623 #include <sys/types.h>
21624 #include <fcntl.h>
21625 #include <sys/mman.h>
21626
21627 #if HAVE_SYS_TYPES_H
21628 # include <sys/types.h>
21629 #endif
21630
21631 #if HAVE_STDLIB_H
21632 # include <stdlib.h>
21633 #endif
21634
21635 #if HAVE_SYS_STAT_H
21636 # include <sys/stat.h>
21637 #endif
21638
21639 #if HAVE_UNISTD_H
21640 # include <unistd.h>
21641 #endif
21642
21643 /* This mess was copied from the GNU getpagesize.h.  */
21644 #ifndef HAVE_GETPAGESIZE
21645
21646 /* Assume that all systems that can run configure have sys/param.h.  */
21647 # ifndef HAVE_SYS_PARAM_H
21648 #  define HAVE_SYS_PARAM_H 1
21649 # endif
21650
21651 # ifdef _SC_PAGESIZE
21652 #  define getpagesize() sysconf(_SC_PAGESIZE)
21653 # else /* no _SC_PAGESIZE */
21654 #  ifdef HAVE_SYS_PARAM_H
21655 #   include <sys/param.h>
21656 #   ifdef EXEC_PAGESIZE
21657 #    define getpagesize() EXEC_PAGESIZE
21658 #   else /* no EXEC_PAGESIZE */
21659 #    ifdef NBPG
21660 #     define getpagesize() NBPG * CLSIZE
21661 #     ifndef CLSIZE
21662 #      define CLSIZE 1
21663 #     endif /* no CLSIZE */
21664 #    else /* no NBPG */
21665 #     ifdef NBPC
21666 #      define getpagesize() NBPC
21667 #     else /* no NBPC */
21668 #      ifdef PAGESIZE
21669 #       define getpagesize() PAGESIZE
21670 #      endif /* PAGESIZE */
21671 #     endif /* no NBPC */
21672 #    endif /* no NBPG */
21673 #   endif /* no EXEC_PAGESIZE */
21674 #  else /* no HAVE_SYS_PARAM_H */
21675 #   define getpagesize() 8192   /* punt totally */
21676 #  endif /* no HAVE_SYS_PARAM_H */
21677 # endif /* no _SC_PAGESIZE */
21678
21679 #endif /* no HAVE_GETPAGESIZE */
21680
21681 #ifdef __cplusplus
21682 extern "C" { void *malloc(unsigned); }
21683 #else
21684 char *malloc();
21685 #endif
21686
21687 int
21688 main()
21689 {
21690         char *data, *data2, *data3;
21691         int i, pagesize;
21692         int fd;
21693
21694         pagesize = getpagesize();
21695
21696         /*
21697          * First, make a file with some known garbage in it.
21698          */
21699         data = malloc(pagesize);
21700         if (!data)
21701                 exit(1);
21702         for (i = 0; i < pagesize; ++i)
21703                 *(data + i) = rand();
21704         umask(0);
21705         fd = creat("conftestmmap", 0600);
21706         if (fd < 0)
21707                 exit(1);
21708         if (write(fd, data, pagesize) != pagesize)
21709                 exit(1);
21710         close(fd);
21711
21712         /*
21713          * Next, try to mmap the file at a fixed address which
21714          * already has something else allocated at it.  If we can,
21715          * also make sure that we see the same garbage.
21716          */
21717         fd = open("conftestmmap", O_RDWR);
21718         if (fd < 0)
21719                 exit(1);
21720         data2 = malloc(2 * pagesize);
21721         if (!data2)
21722                 exit(1);
21723         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21724         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
21725             MAP_PRIVATE | MAP_FIXED, fd, 0L))
21726                 exit(1);
21727         for (i = 0; i < pagesize; ++i)
21728                 if (*(data + i) != *(data2 + i))
21729                         exit(1);
21730
21731         /*
21732          * Finally, make sure that changes to the mapped area
21733          * do not percolate back to the file as seen by read().
21734          * (This is a bug on some variants of i386 svr4.0.)
21735          */
21736         for (i = 0; i < pagesize; ++i)
21737                 *(data2 + i) = *(data2 + i) + 1;
21738         data3 = malloc(pagesize);
21739         if (!data3)
21740                 exit(1);
21741         if (read(fd, data3, pagesize) != pagesize)
21742                 exit(1);
21743         for (i = 0; i < pagesize; ++i)
21744                 if (*(data + i) != *(data3 + i))
21745                         exit(1);
21746         close(fd);
21747         unlink("conftestmmap");
21748         exit(0);
21749 }
21750
21751 EOF
21752 if { (eval echo configure:21753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21753 then
21754   ac_cv_func_mmap_fixed_mapped=yes
21755 else
21756   echo "configure: failed program was:" >&5
21757   cat conftest.$ac_ext >&5
21758   rm -fr conftest*
21759   ac_cv_func_mmap_fixed_mapped=no
21760 fi
21761 rm -fr conftest*
21762 fi
21763
21764 fi
21765
21766 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
21767 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21768   cat >> confdefs.h <<\EOF
21769 #define HAVE_MMAP 1
21770 EOF
21771
21772 fi
21773
21774
21775   # Establish limits on memory usage during 'make check'
21776   
21777   
21778   setrlimit_have_headers=yes
21779   for ac_hdr in unistd.h sys/time.h sys/resource.h
21780 do
21781 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21782 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21783 echo "configure:21784: checking for $ac_hdr" >&5
21784 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21785   echo $ac_n "(cached) $ac_c" 1>&6
21786 else
21787   cat > conftest.$ac_ext <<EOF
21788 #line 21789 "configure"
21789 #include "confdefs.h"
21790 #include <$ac_hdr>
21791 EOF
21792 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21793 { (eval echo configure:21794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21794 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21795 if test -z "$ac_err"; then
21796   rm -rf conftest*
21797   eval "ac_cv_header_$ac_safe=yes"
21798 else
21799   echo "$ac_err" >&5
21800   echo "configure: failed program was:" >&5
21801   cat conftest.$ac_ext >&5
21802   rm -rf conftest*
21803   eval "ac_cv_header_$ac_safe=no"
21804 fi
21805 rm -f conftest*
21806 fi
21807 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21808   echo "$ac_t""yes" 1>&6
21809     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21810   cat >> confdefs.h <<EOF
21811 #define $ac_tr_hdr 1
21812 EOF
21813  
21814 else
21815   echo "$ac_t""no" 1>&6
21816 setrlimit_have_headers=no
21817 fi
21818 done
21819
21820   # If don't have the headers, then we can't run the tests now, and we
21821   # won't be seeing any of these during testsuite compilation.
21822   if test $setrlimit_have_headers = yes; then
21823     # Can't do these in a loop, else the resulting syntax is wrong.
21824     
21825   cat > conftest.$ac_ext <<EOF
21826 #line 21827 "configure"
21827 #include "confdefs.h"
21828 #include <unistd.h>
21829                   #include <sys/time.h>
21830                   #include <sys/resource.h>
21831                  
21832 int main() {
21833  int f = RLIMIT_DATA ; 
21834 ; return 0; }
21835 EOF
21836 if { (eval echo configure:21837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21837   rm -rf conftest*
21838   glibcpp_mresult=1
21839 else
21840   echo "configure: failed program was:" >&5
21841   cat conftest.$ac_ext >&5
21842   rm -rf conftest*
21843   glibcpp_mresult=0
21844 fi
21845 rm -f conftest*
21846   cat >> confdefs.h <<EOF
21847 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
21848 EOF
21849
21850
21851     
21852   cat > conftest.$ac_ext <<EOF
21853 #line 21854 "configure"
21854 #include "confdefs.h"
21855 #include <unistd.h>
21856                   #include <sys/time.h>
21857                   #include <sys/resource.h>
21858                  
21859 int main() {
21860  int f = RLIMIT_RSS ; 
21861 ; return 0; }
21862 EOF
21863 if { (eval echo configure:21864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21864   rm -rf conftest*
21865   glibcpp_mresult=1
21866 else
21867   echo "configure: failed program was:" >&5
21868   cat conftest.$ac_ext >&5
21869   rm -rf conftest*
21870   glibcpp_mresult=0
21871 fi
21872 rm -f conftest*
21873   cat >> confdefs.h <<EOF
21874 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
21875 EOF
21876
21877
21878     
21879   cat > conftest.$ac_ext <<EOF
21880 #line 21881 "configure"
21881 #include "confdefs.h"
21882 #include <unistd.h>
21883                   #include <sys/time.h>
21884                   #include <sys/resource.h>
21885                  
21886 int main() {
21887  int f = RLIMIT_VMEM ; 
21888 ; return 0; }
21889 EOF
21890 if { (eval echo configure:21891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21891   rm -rf conftest*
21892   glibcpp_mresult=1
21893 else
21894   echo "configure: failed program was:" >&5
21895   cat conftest.$ac_ext >&5
21896   rm -rf conftest*
21897   glibcpp_mresult=0
21898 fi
21899 rm -f conftest*
21900   cat >> confdefs.h <<EOF
21901 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
21902 EOF
21903
21904
21905     
21906   cat > conftest.$ac_ext <<EOF
21907 #line 21908 "configure"
21908 #include "confdefs.h"
21909 #include <unistd.h>
21910                   #include <sys/time.h>
21911                   #include <sys/resource.h>
21912                  
21913 int main() {
21914  int f = RLIMIT_AS ; 
21915 ; return 0; }
21916 EOF
21917 if { (eval echo configure:21918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21918   rm -rf conftest*
21919   glibcpp_mresult=1
21920 else
21921   echo "configure: failed program was:" >&5
21922   cat conftest.$ac_ext >&5
21923   rm -rf conftest*
21924   glibcpp_mresult=0
21925 fi
21926 rm -f conftest*
21927   cat >> confdefs.h <<EOF
21928 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
21929 EOF
21930
21931
21932
21933     # Check for rlimit, setrlimit.
21934     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
21935   echo $ac_n "(cached) $ac_c" 1>&6
21936 else
21937   
21938       cat > conftest.$ac_ext <<EOF
21939 #line 21940 "configure"
21940 #include "confdefs.h"
21941 #include <unistd.h>
21942                   #include <sys/time.h>
21943                   #include <sys/resource.h>
21944                      
21945 int main() {
21946  struct rlimit r; setrlimit(0, &r);
21947 ; return 0; }
21948 EOF
21949 if { (eval echo configure:21950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21950   rm -rf conftest*
21951   ac_setrlimit=yes
21952 else
21953   echo "configure: failed program was:" >&5
21954   cat conftest.$ac_ext >&5
21955   rm -rf conftest*
21956   ac_setrlimit=no
21957 fi
21958 rm -f conftest*
21959     
21960 fi
21961
21962   fi
21963
21964   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
21965 echo "configure:21966: checking for testsuite memory limit support" >&5
21966   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
21967     ac_mem_limits=yes
21968     cat >> confdefs.h <<\EOF
21969 #define _GLIBCPP_MEM_LIMITS 1
21970 EOF
21971
21972   else
21973     ac_mem_limits=no
21974   fi
21975   echo "$ac_t""$ac_mem_limits" 1>&6
21976
21977
21978   # Look for setenv, so that extended locale tests can be performed.
21979   
21980   echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
21981 echo "configure:21982: checking for setenv declaration" >&5
21982   if test x${glibcpp_cv_func_setenv_use+set} != xset; then
21983     if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
21984   echo $ac_n "(cached) $ac_c" 1>&6
21985 else
21986   
21987       
21988       ac_ext=C
21989 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21990 ac_cpp='$CXXCPP $CPPFLAGS'
21991 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21992 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21993 cross_compiling=$ac_cv_prog_cxx_cross
21994
21995       cat > conftest.$ac_ext <<EOF
21996 #line 21997 "configure"
21997 #include "confdefs.h"
21998 #include <stdlib.h>
21999 int main() {
22000  setenv(0, 0, 0);
22001 ; return 0; }
22002 EOF
22003 if { (eval echo configure:22004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22004   rm -rf conftest*
22005   glibcpp_cv_func_setenv_use=yes
22006 else
22007   echo "configure: failed program was:" >&5
22008   cat conftest.$ac_ext >&5
22009   rm -rf conftest*
22010   glibcpp_cv_func_setenv_use=no
22011 fi
22012 rm -f conftest*
22013       ac_ext=c
22014 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22015 ac_cpp='$CPP $CPPFLAGS'
22016 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22017 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22018 cross_compiling=$ac_cv_prog_cc_cross
22019
22020     
22021 fi
22022
22023   fi
22024   echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
22025   if test x$glibcpp_cv_func_setenv_use = x"yes"; then
22026     for ac_func in setenv
22027 do
22028 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22029 echo "configure:22030: checking for $ac_func" >&5
22030 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22031   echo $ac_n "(cached) $ac_c" 1>&6
22032 else
22033   cat > conftest.$ac_ext <<EOF
22034 #line 22035 "configure"
22035 #include "confdefs.h"
22036 /* System header to define __stub macros and hopefully few prototypes,
22037     which can conflict with char $ac_func(); below.  */
22038 #include <assert.h>
22039 /* Override any gcc2 internal prototype to avoid an error.  */
22040 /* We use char because int might match the return type of a gcc2
22041     builtin and then its argument prototype would still apply.  */
22042 char $ac_func();
22043
22044 int main() {
22045
22046 /* The GNU C library defines this for functions which it implements
22047     to always fail with ENOSYS.  Some functions are actually named
22048     something starting with __ and the normal name is an alias.  */
22049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22050 choke me
22051 #else
22052 $ac_func();
22053 #endif
22054
22055 ; return 0; }
22056 EOF
22057 if { (eval echo configure:22058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22058   rm -rf conftest*
22059   eval "ac_cv_func_$ac_func=yes"
22060 else
22061   echo "configure: failed program was:" >&5
22062   cat conftest.$ac_ext >&5
22063   rm -rf conftest*
22064   eval "ac_cv_func_$ac_func=no"
22065 fi
22066 rm -f conftest*
22067 fi
22068
22069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22070   echo "$ac_t""yes" 1>&6
22071     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22072   cat >> confdefs.h <<EOF
22073 #define $ac_tr_func 1
22074 EOF
22075  
22076 else
22077   echo "$ac_t""no" 1>&6
22078 fi
22079 done
22080     
22081   fi
22082
22083
22084 fi
22085
22086 # This depends on the possibly-skipped linker test above.
22087 # Check whether --enable-symvers or --disable-symvers was given.
22088 if test "${enable_symvers+set}" = set; then
22089   enableval="$enable_symvers"
22090   case "$enableval" in
22091  yes) enable_symvers=yes ;;
22092  no)  enable_symvers=no ;;
22093  # other names here, just as sanity checks
22094  #gnu|sun|etcetera) enable_symvers=$enableval ;;
22095  gnu) enable_symvers=$enableval ;;
22096  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
22097  esac
22098 else
22099   enable_symvers=yes
22100 fi
22101
22102 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
22103 # don't know enough about $LD to do tricks... 
22104 if test x$enable_shared = xno || 
22105         test "x$LD" = x || 
22106         test x$glibcpp_gnu_ld_version = x; then
22107   enable_symvers=no
22108 fi
22109
22110 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
22111 if test $enable_symvers != no; then
22112   echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
22113 echo "configure:22114: checking for shared libgcc" >&5
22114   ac_save_CFLAGS="$CFLAGS"
22115   CFLAGS=' -lgcc_s'
22116   cat > conftest.$ac_ext <<EOF
22117 #line 22118 "configure"
22118 #include "confdefs.h"
22119
22120 int main() {
22121 return 0
22122 ; return 0; }
22123 EOF
22124 if { (eval echo configure:22125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22125   rm -rf conftest*
22126   glibcpp_shared_libgcc=yes
22127 else
22128   echo "configure: failed program was:" >&5
22129   cat conftest.$ac_ext >&5
22130   rm -rf conftest*
22131   glibcpp_shared_libgcc=no
22132 fi
22133 rm -f conftest*
22134   CFLAGS="$ac_save_CFLAGS"
22135   echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
22136 fi
22137
22138 # For GNU ld, we need at least this version.  It's 2.12 in the same format
22139 # as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
22140 glibcpp_min_gnu_ld_version=21200
22141
22142 # Check to see if unspecified "yes" value can win, given results
22143 # above.  
22144 if test $enable_symvers = yes ; then
22145   if test $with_gnu_ld = yes &&
22146     test $glibcpp_shared_libgcc = yes ;
22147   then
22148     if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
22149         enable_symvers=gnu
22150     else
22151       ac_test_CFLAGS="${CFLAGS+set}"
22152       ac_save_CFLAGS="$CFLAGS"
22153       CFLAGS='-shared -Wl,--version-script,conftest.map'
22154       enable_symvers=no
22155       
22156       echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
22157       
22158       cat > conftest.$ac_ext <<EOF
22159 #line 22160 "configure"
22160 #include "confdefs.h"
22161 int foo;
22162 int main() {
22163
22164 ; return 0; }
22165 EOF
22166 if { (eval echo configure:22167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22167   rm -rf conftest*
22168   enable_symvers=gnu
22169 else
22170   echo "configure: failed program was:" >&5
22171   cat conftest.$ac_ext >&5
22172 fi
22173 rm -f conftest*
22174       if test "$ac_test_CFLAGS" = set; then
22175         CFLAGS="$ac_save_CFLAGS"
22176       else
22177         # this is the suspicious part
22178         CFLAGS=''
22179       fi
22180       rm -f conftest.map
22181     fi
22182   else
22183     # just fail for now
22184     enable_symvers=no
22185   fi
22186 fi
22187
22188 case $enable_symvers in
22189   no)
22190       LINKER_MAP=config/linker-map.dummy
22191       ;;
22192   gnu)
22193       LINKER_MAP=config/linker-map.gnu
22194       ;;
22195 esac
22196
22197
22198
22199
22200 if test $enable_symvers != no; then
22201   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
22202   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
22203 else
22204   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
22205   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
22206 fi
22207 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
22208 echo "configure:22209: checking versioning on shared library symbols" >&5
22209 echo "$ac_t""$enable_symvers" 1>&6
22210
22211
22212 # Propagate the target-specific source directories through the build chain.
22213 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH and
22214 # CPULIMITSH [might] use it, and they only get used here.)
22215 OS_INC_SRCDIR=config/${os_include_dir}/bits
22216 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}/bits
22217 CPU_LIMITS_INC_SRCDIR=config/${CPULIMITSH}/bits
22218
22219
22220
22221
22222 # Set up cross-compile flags
22223   
22224
22225 if test "$CANADIAN" = yes; then
22226   CANADIAN_TRUE=
22227   CANADIAN_FALSE='#'
22228 else
22229   CANADIAN_TRUE='#'
22230   CANADIAN_FALSE=
22231 fi
22232  
22233 cat > confcache <<\EOF
22234 # This file is a shell script that caches the results of configure
22235 # tests run on this system so they can be shared between configure
22236 # scripts and configure runs.  It is not useful on other systems.
22237 # If it contains results you don't want to keep, you may remove or edit it.
22238 #
22239 # By default, configure uses ./config.cache as the cache file,
22240 # creating it if it does not exist already.  You can give configure
22241 # the --cache-file=FILE option to use a different cache file; that is
22242 # what configure does when it calls configure scripts in
22243 # subdirectories, so they share the cache.
22244 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22245 # config.status only pays attention to the cache file if you give it the
22246 # --recheck option to rerun configure.
22247 #
22248 EOF
22249 # The following way of writing the cache mishandles newlines in values,
22250 # but we know of no workaround that is simple, portable, and efficient.
22251 # So, don't put newlines in cache variables' values.
22252 # Ultrix sh set writes to stderr and can't be redirected directly,
22253 # and sets the high bit in the cache file unless we assign to the vars.
22254 (set) 2>&1 |
22255   case `(ac_space=' '; set | grep ac_space) 2>&1` in
22256   *ac_space=\ *)
22257     # `set' does not quote correctly, so add quotes (double-quote substitution
22258     # turns \\\\ into \\, and sed turns \\ into \).
22259     sed -n \
22260       -e "s/'/'\\\\''/g" \
22261       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22262     ;;
22263   *)
22264     # `set' quotes correctly as required by POSIX, so do not add quotes.
22265     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22266     ;;
22267   esac >> confcache
22268 if cmp -s $cache_file confcache; then
22269   :
22270 else
22271   if test -w $cache_file; then
22272     echo "updating cache $cache_file"
22273     cat confcache > $cache_file
22274   else
22275     echo "not updating unwritable cache $cache_file"
22276   fi
22277 fi
22278 rm -f confcache
22279
22280
22281 if test "${multilib}" = "yes"; then
22282   multilib_arg="--enable-multilib"
22283 else
22284   multilib_arg=
22285 fi
22286
22287 # Needed so that g++ can find the correct include subdir automatically.
22288 INTERFACE=v3
22289
22290 # Export all the install information
22291
22292 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
22293 # exported correctly in GLIBCPP_CONFIGURE.
22294 glibcpp_toolexecdir=no
22295 glibcpp_toolexeclibdir=no
22296 glibcpp_prefixdir=${prefix}
22297
22298 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
22299 echo "configure:22300: checking for interface version number" >&5
22300 libstdcxx_interface=$INTERFACE
22301 echo "$ac_t""$libstdcxx_interface" 1>&6
22302
22303 # Process the option --with-gxx-include-dir=<path to include-files directory>
22304 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
22305 echo "configure:22306: checking for --with-gxx-include-dir" >&5
22306 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
22307 if test "${with_gxx_include_dir+set}" = set; then
22308   withval="$with_gxx_include_dir"
22309   case "${withval}" in
22310   yes)
22311     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
22312     gxx_include_dir=no
22313     ;;
22314   no)
22315     gxx_include_dir=no
22316     ;;
22317   *)
22318     gxx_include_dir=${withval}
22319     ;;
22320 esac
22321 else
22322   gxx_include_dir=no
22323 fi
22324
22325 echo "$ac_t""$gxx_include_dir" 1>&6
22326
22327 # Process the option "--enable-version-specific-runtime-libs"
22328 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
22329 echo "configure:22330: checking for --enable-version-specific-runtime-libs" >&5
22330 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
22331 if test "${enable_version_specific_runtime_libs+set}" = set; then
22332   enableval="$enable_version_specific_runtime_libs"
22333   case "$enableval" in
22334  yes) version_specific_libs=yes ;;
22335  no)  version_specific_libs=no ;;
22336  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
22337  esac
22338 else
22339   version_specific_libs=no
22340 fi
22341 # Option set, now we can test it.
22342 echo "$ac_t""$version_specific_libs" 1>&6
22343
22344 if test $version_specific_libs = yes; then
22345   # Need the gcc compiler version to know where to install libraries
22346   # and header files if --enable-version-specific-runtime-libs option
22347   # is selected.
22348     gcc_version_trigger=${srcdir}/../gcc/version.c
22349   gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
22350   gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
22351   if test x"$gxx_include_dir" = x"no"; then
22352     gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
22353   fi
22354   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22355   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
22356   fi
22357
22358 # Default case for install directory for include files.
22359 if test $version_specific_libs = no &&
22360    test $gxx_include_dir = no; then
22361   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
22362 fi
22363
22364 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
22365 # Install a library built with a cross compiler in tooldir, not libdir.
22366 if test x"$glibcpp_toolexecdir" = x"no"; then 
22367   if test -n "$with_cross_host" &&
22368      test x"$with_cross_host" != x"no"; then
22369     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
22370     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
22371   else
22372     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22373     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
22374   fi
22375 fi
22376
22377 echo $ac_n "checking for install location""... $ac_c" 1>&6
22378 echo "configure:22379: checking for install location" >&5
22379 echo "$ac_t""$gxx_include_dir" 1>&6
22380
22381
22382
22383
22384
22385
22386
22387 # Export all the include and flag information to makefiles.
22388
22389   # Root level of the build directory include sources.
22390   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
22391
22392   # Passed down for canadian crosses.
22393   if test x"$CANADIAN" = xyes; then
22394     TOPLEVEL_INCLUDES='-I$(includedir)'
22395   fi
22396
22397   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
22398
22399   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
22400
22401   if test x"$need_libio" = xyes; then
22402     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
22403     
22404   fi
22405
22406   # Now, export this to all the little Makefiles....
22407   
22408   
22409   
22410   
22411
22412
22413   # Optimization flags that are probably a good idea for thrill-seekers. Just
22414   # uncomment the lines below and make, everything else is ready to go... 
22415   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
22416   OPTIMIZE_CXXFLAGS=
22417   
22418
22419   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
22420   
22421
22422
22423 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
22424    grep "enable shared" > /dev/null; then
22425   LIBSUPCXX_PICFLAGS=-prefer-pic
22426 else
22427   LIBSUPCXX_PICFLAGS=
22428 fi
22429
22430
22431 # Generate the various Makefiles, include files, and scripts.
22432 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
22433 # and libsupc++/Makefile.am so that multilib installs will end up
22434 # installed in the correct place. To work around this not being passed
22435 # down from config-ml.in -> top_srcdir/Makefile.am ->
22436 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
22437 trap '' 1 2 15
22438 cat > confcache <<\EOF
22439 # This file is a shell script that caches the results of configure
22440 # tests run on this system so they can be shared between configure
22441 # scripts and configure runs.  It is not useful on other systems.
22442 # If it contains results you don't want to keep, you may remove or edit it.
22443 #
22444 # By default, configure uses ./config.cache as the cache file,
22445 # creating it if it does not exist already.  You can give configure
22446 # the --cache-file=FILE option to use a different cache file; that is
22447 # what configure does when it calls configure scripts in
22448 # subdirectories, so they share the cache.
22449 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22450 # config.status only pays attention to the cache file if you give it the
22451 # --recheck option to rerun configure.
22452 #
22453 EOF
22454 # The following way of writing the cache mishandles newlines in values,
22455 # but we know of no workaround that is simple, portable, and efficient.
22456 # So, don't put newlines in cache variables' values.
22457 # Ultrix sh set writes to stderr and can't be redirected directly,
22458 # and sets the high bit in the cache file unless we assign to the vars.
22459 (set) 2>&1 |
22460   case `(ac_space=' '; set | grep ac_space) 2>&1` in
22461   *ac_space=\ *)
22462     # `set' does not quote correctly, so add quotes (double-quote substitution
22463     # turns \\\\ into \\, and sed turns \\ into \).
22464     sed -n \
22465       -e "s/'/'\\\\''/g" \
22466       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22467     ;;
22468   *)
22469     # `set' quotes correctly as required by POSIX, so do not add quotes.
22470     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22471     ;;
22472   esac >> confcache
22473 if cmp -s $cache_file confcache; then
22474   :
22475 else
22476   if test -w $cache_file; then
22477     echo "updating cache $cache_file"
22478     cat confcache > $cache_file
22479   else
22480     echo "not updating unwritable cache $cache_file"
22481   fi
22482 fi
22483 rm -f confcache
22484
22485 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22486
22487 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22488 # Let make expand exec_prefix.
22489 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22490
22491 # Any assignment to VPATH causes Sun make to only execute
22492 # the first set of double-colon rules, so remove it if not needed.
22493 # If there is a colon in the path, we need to keep it.
22494 if test "x$srcdir" = x.; then
22495   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
22496 fi
22497
22498 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22499
22500 DEFS=-DHAVE_CONFIG_H
22501
22502 # Without the "./", some shells look in PATH for config.status.
22503 : ${CONFIG_STATUS=./config.status}
22504
22505 echo creating $CONFIG_STATUS
22506 rm -f $CONFIG_STATUS
22507 cat > $CONFIG_STATUS <<EOF
22508 #! /bin/sh
22509 # Generated automatically by configure.
22510 # Run this file to recreate the current configuration.
22511 # This directory was configured as follows,
22512 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22513 #
22514 # $0 $ac_configure_args
22515 #
22516 # Compiler output produced by configure, useful for debugging
22517 # configure, is in ./config.log if it exists.
22518
22519 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22520 for ac_option
22521 do
22522   case "\$ac_option" in
22523   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22524     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22525     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22526   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22527     echo "$CONFIG_STATUS generated by autoconf version 2.13"
22528     exit 0 ;;
22529   -help | --help | --hel | --he | --h)
22530     echo "\$ac_cs_usage"; exit 0 ;;
22531   *) echo "\$ac_cs_usage"; exit 1 ;;
22532   esac
22533 done
22534
22535 ac_given_srcdir=$srcdir
22536 ac_given_INSTALL="$INSTALL"
22537
22538 trap 'rm -fr `echo "Makefile \
22539     include/Makefile src/Makefile \
22540     libmath/Makefile libio/Makefile libsupc++/Makefile \
22541     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22542 EOF
22543 cat >> $CONFIG_STATUS <<EOF
22544
22545 # Protect against being on the right side of a sed subst in config.status.
22546 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22547  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22548 $ac_vpsub
22549 $extrasub
22550 s%@SHELL@%$SHELL%g
22551 s%@CFLAGS@%$CFLAGS%g
22552 s%@CPPFLAGS@%$CPPFLAGS%g
22553 s%@CXXFLAGS@%$CXXFLAGS%g
22554 s%@FFLAGS@%$FFLAGS%g
22555 s%@DEFS@%$DEFS%g
22556 s%@LDFLAGS@%$LDFLAGS%g
22557 s%@LIBS@%$LIBS%g
22558 s%@exec_prefix@%$exec_prefix%g
22559 s%@prefix@%$prefix%g
22560 s%@program_transform_name@%$program_transform_name%g
22561 s%@bindir@%$bindir%g
22562 s%@sbindir@%$sbindir%g
22563 s%@libexecdir@%$libexecdir%g
22564 s%@datadir@%$datadir%g
22565 s%@sysconfdir@%$sysconfdir%g
22566 s%@sharedstatedir@%$sharedstatedir%g
22567 s%@localstatedir@%$localstatedir%g
22568 s%@libdir@%$libdir%g
22569 s%@includedir@%$includedir%g
22570 s%@oldincludedir@%$oldincludedir%g
22571 s%@infodir@%$infodir%g
22572 s%@mandir@%$mandir%g
22573 s%@PACKAGE@%$PACKAGE%g
22574 s%@release_VERSION@%$release_VERSION%g
22575 s%@libtool_VERSION@%$libtool_VERSION%g
22576 s%@host@%$host%g
22577 s%@host_alias@%$host_alias%g
22578 s%@host_cpu@%$host_cpu%g
22579 s%@host_vendor@%$host_vendor%g
22580 s%@host_os@%$host_os%g
22581 s%@target@%$target%g
22582 s%@target_alias@%$target_alias%g
22583 s%@target_cpu@%$target_cpu%g
22584 s%@target_vendor@%$target_vendor%g
22585 s%@target_os@%$target_os%g
22586 s%@build@%$build%g
22587 s%@build_alias@%$build_alias%g
22588 s%@build_cpu@%$build_cpu%g
22589 s%@build_vendor@%$build_vendor%g
22590 s%@build_os@%$build_os%g
22591 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22592 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22593 s%@INSTALL_DATA@%$INSTALL_DATA%g
22594 s%@VERSION@%$VERSION%g
22595 s%@ACLOCAL@%$ACLOCAL%g
22596 s%@AUTOCONF@%$AUTOCONF%g
22597 s%@AUTOMAKE@%$AUTOMAKE%g
22598 s%@AUTOHEADER@%$AUTOHEADER%g
22599 s%@MAKEINFO@%$MAKEINFO%g
22600 s%@SET_MAKE@%$SET_MAKE%g
22601 s%@toplevel_srcdir@%$toplevel_srcdir%g
22602 s%@glibcpp_builddir@%$glibcpp_builddir%g
22603 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
22604 s%@AWK@%$AWK%g
22605 s%@LN_S@%$LN_S%g
22606 s%@glibcpp_basedir@%$glibcpp_basedir%g
22607 s%@CC@%$CC%g
22608 s%@glibcpp_CXX@%$glibcpp_CXX%g
22609 s%@AS@%$AS%g
22610 s%@AR@%$AR%g
22611 s%@RANLIB@%$RANLIB%g
22612 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
22613 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
22614 s%@MAINT@%$MAINT%g
22615 s%@EXEEXT@%$EXEEXT%g
22616 s%@OBJEXT@%$OBJEXT%g
22617 s%@STRIP@%$STRIP%g
22618 s%@LIBTOOL@%$LIBTOOL%g
22619 s%@CXXCPP@%$CXXCPP%g
22620 s%@enable_shared@%$enable_shared%g
22621 s%@enable_static@%$enable_static%g
22622 s%@ifGNUmake@%$ifGNUmake%g
22623 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
22624 s%@CPP@%$CPP%g
22625 s%@CSTDIO_H@%$CSTDIO_H%g
22626 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
22627 s%@CCODECVT_C@%$CCODECVT_C%g
22628 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
22629 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
22630 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
22631 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
22632 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
22633 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
22634 s%@libio_la@%$libio_la%g
22635 s%@check_msgfmt@%$check_msgfmt%g
22636 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
22637 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
22638 s%@glibcpp_localedir@%$glibcpp_localedir%g
22639 s%@USE_NLS@%$USE_NLS%g
22640 s%@CLOCALE_H@%$CLOCALE_H%g
22641 s%@CCODECVT_H@%$CCODECVT_H%g
22642 s%@CMESSAGES_H@%$CMESSAGES_H%g
22643 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
22644 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
22645 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
22646 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
22647 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
22648 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
22649 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
22650 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
22651 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
22652 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
22653 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
22654 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
22655 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
22656 s%@WERROR@%$WERROR%g
22657 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
22658 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
22659 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
22660 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
22661 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
22662 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
22663 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
22664 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
22665 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
22666 s%@gxx_include_dir@%$gxx_include_dir%g
22667 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
22668 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
22669 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
22670 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
22671 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
22672 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
22673 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
22674 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
22675 s%@WARN_FLAGS@%$WARN_FLAGS%g
22676 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
22677
22678 CEOF
22679 EOF
22680
22681 cat >> $CONFIG_STATUS <<\EOF
22682
22683 # Split the substitutions into bite-sized pieces for seds with
22684 # small command number limits, like on Digital OSF/1 and HP-UX.
22685 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22686 ac_file=1 # Number of current file.
22687 ac_beg=1 # First line for current file.
22688 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22689 ac_more_lines=:
22690 ac_sed_cmds=""
22691 while $ac_more_lines; do
22692   if test $ac_beg -gt 1; then
22693     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22694   else
22695     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22696   fi
22697   if test ! -s conftest.s$ac_file; then
22698     ac_more_lines=false
22699     rm -f conftest.s$ac_file
22700   else
22701     if test -z "$ac_sed_cmds"; then
22702       ac_sed_cmds="sed -f conftest.s$ac_file"
22703     else
22704       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22705     fi
22706     ac_file=`expr $ac_file + 1`
22707     ac_beg=$ac_end
22708     ac_end=`expr $ac_end + $ac_max_sed_cmds`
22709   fi
22710 done
22711 if test -z "$ac_sed_cmds"; then
22712   ac_sed_cmds=cat
22713 fi
22714 EOF
22715
22716 cat >> $CONFIG_STATUS <<EOF
22717
22718 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
22719     include/Makefile src/Makefile \
22720     libmath/Makefile libio/Makefile libsupc++/Makefile \
22721     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
22722 EOF
22723 cat >> $CONFIG_STATUS <<\EOF
22724 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22725   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22726   case "$ac_file" in
22727   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22728        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22729   *) ac_file_in="${ac_file}.in" ;;
22730   esac
22731
22732   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22733
22734   # Remove last slash and all that follows it.  Not all systems have dirname.
22735   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22736   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22737     # The file is in a subdirectory.
22738     test ! -d "$ac_dir" && mkdir "$ac_dir"
22739     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22740     # A "../" for each directory in $ac_dir_suffix.
22741     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22742   else
22743     ac_dir_suffix= ac_dots=
22744   fi
22745
22746   case "$ac_given_srcdir" in
22747   .)  srcdir=.
22748       if test -z "$ac_dots"; then top_srcdir=.
22749       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22750   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22751   *) # Relative path.
22752     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22753     top_srcdir="$ac_dots$ac_given_srcdir" ;;
22754   esac
22755
22756   case "$ac_given_INSTALL" in
22757   [/$]*) INSTALL="$ac_given_INSTALL" ;;
22758   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22759   esac
22760
22761   echo creating "$ac_file"
22762   rm -f "$ac_file"
22763   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22764   case "$ac_file" in
22765   *Makefile*) ac_comsub="1i\\
22766 # $configure_input" ;;
22767   *) ac_comsub= ;;
22768   esac
22769
22770   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22771   sed -e "$ac_comsub
22772 s%@configure_input@%$configure_input%g
22773 s%@srcdir@%$srcdir%g
22774 s%@top_srcdir@%$top_srcdir%g
22775 s%@INSTALL@%$INSTALL%g
22776 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22777 fi; done
22778 rm -f conftest.s*
22779
22780 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22781 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22782 #
22783 # ac_d sets the value in "#define NAME VALUE" lines.
22784 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
22785 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
22786 ac_dC='\3'
22787 ac_dD='%g'
22788 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22789 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22790 ac_uB='\([      ]\)%\1#\2define\3'
22791 ac_uC=' '
22792 ac_uD='\4%g'
22793 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22794 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22795 ac_eB='$%\1#\2define\3'
22796 ac_eC=' '
22797 ac_eD='%g'
22798
22799 if test "${CONFIG_HEADERS+set}" != set; then
22800 EOF
22801 cat >> $CONFIG_STATUS <<EOF
22802   CONFIG_HEADERS="config.h"
22803 EOF
22804 cat >> $CONFIG_STATUS <<\EOF
22805 fi
22806 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22807   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22808   case "$ac_file" in
22809   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22810        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22811   *) ac_file_in="${ac_file}.in" ;;
22812   esac
22813
22814   echo creating $ac_file
22815
22816   rm -f conftest.frag conftest.in conftest.out
22817   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22818   cat $ac_file_inputs > conftest.in
22819
22820 EOF
22821
22822 # Transform confdefs.h into a sed script conftest.vals that substitutes
22823 # the proper values into config.h.in to produce config.h.  And first:
22824 # Protect against being on the right side of a sed subst in config.status.
22825 # Protect against being in an unquoted here document in config.status.
22826 rm -f conftest.vals
22827 cat > conftest.hdr <<\EOF
22828 s/[\\&%]/\\&/g
22829 s%[\\$`]%\\&%g
22830 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22831 s%ac_d%ac_u%gp
22832 s%ac_u%ac_e%gp
22833 EOF
22834 sed -n -f conftest.hdr confdefs.h > conftest.vals
22835 rm -f conftest.hdr
22836
22837 # This sed command replaces #undef with comments.  This is necessary, for
22838 # example, in the case of _POSIX_SOURCE, which is predefined and required
22839 # on some systems where configure will not decide to define it.
22840 cat >> conftest.vals <<\EOF
22841 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22842 EOF
22843
22844 # Break up conftest.vals because some shells have a limit on
22845 # the size of here documents, and old seds have small limits too.
22846
22847 rm -f conftest.tail
22848 while :
22849 do
22850   ac_lines=`grep -c . conftest.vals`
22851   # grep -c gives empty output for an empty file on some AIX systems.
22852   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22853   # Write a limited-size here document to conftest.frag.
22854   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22855   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22856   echo 'CEOF
22857   sed -f conftest.frag conftest.in > conftest.out
22858   rm -f conftest.in
22859   mv conftest.out conftest.in
22860 ' >> $CONFIG_STATUS
22861   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22862   rm -f conftest.vals
22863   mv conftest.tail conftest.vals
22864 done
22865 rm -f conftest.vals
22866
22867 cat >> $CONFIG_STATUS <<\EOF
22868   rm -f conftest.frag conftest.h
22869   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
22870   cat conftest.in >> conftest.h
22871   rm -f conftest.in
22872   if cmp -s $ac_file conftest.h 2>/dev/null; then
22873     echo "$ac_file is unchanged"
22874     rm -f conftest.h
22875   else
22876     # Remove last slash and all that follows it.  Not all systems have dirname.
22877       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22878       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22879       # The file is in a subdirectory.
22880       test ! -d "$ac_dir" && mkdir "$ac_dir"
22881     fi
22882     rm -f $ac_file
22883     mv conftest.h $ac_file
22884   fi
22885 fi; done
22886
22887 EOF
22888
22889 cat >> $CONFIG_STATUS <<EOF
22890 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $LINKER_MAP"
22891 ac_dests="src/basic_file.cc src/c++locale.cc src/collate.cc src/ctype.cc src/messages.cc src/monetary.cc src/numeric.cc src/time.cc src/linker.map"
22892 EOF
22893
22894 cat >> $CONFIG_STATUS <<\EOF
22895 srcdir=$ac_given_srcdir
22896 while test -n "$ac_sources"; do
22897   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22898   set $ac_sources; ac_source=$1; shift; ac_sources=$*
22899
22900   echo "linking $srcdir/$ac_source to $ac_dest"
22901
22902   if test ! -r $srcdir/$ac_source; then
22903     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
22904   fi
22905   rm -f $ac_dest
22906
22907   # Make relative symlinks.
22908   # Remove last slash and all that follows it.  Not all systems have dirname.
22909   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
22910   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
22911     # The dest file is in a subdirectory.
22912     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
22913     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
22914     # A "../" for each directory in $ac_dest_dir_suffix.
22915     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
22916   else
22917     ac_dest_dir_suffix= ac_dots=
22918   fi
22919
22920   case "$srcdir" in
22921   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
22922   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
22923   esac
22924
22925   # Make a symlink if possible; otherwise try a hard link.
22926   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22927     ln $srcdir/$ac_source $ac_dest; then :
22928   else
22929     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
22930   fi
22931 done
22932 EOF
22933 cat >> $CONFIG_STATUS <<EOF
22934
22935 srcdir=${srcdir}
22936 host=${host}
22937 target=${target}
22938 with_multisubdir=${with_multisubdir}
22939 ac_configure_args="${multilib_arg} ${ac_configure_args}"
22940 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
22941 glibcpp_basedir=${glibcpp_basedir}
22942 CC="${CC}"
22943 CXX="${CXX}"
22944
22945 EOF
22946 cat >> $CONFIG_STATUS <<\EOF
22947 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
22948 if test -n "$CONFIG_FILES"; then
22949   LD="${ORIGINAL_LD_FOR_MULTILIBS}"
22950   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
22951   grep '^MULTISUBDIR =' Makefile >> src/Makefile
22952   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
22953 fi
22954 chmod +x mkcheck
22955 chmod +x testsuite_flags
22956
22957 exit 0
22958 EOF
22959 chmod +x $CONFIG_STATUS
22960 rm -fr confdefs* $ac_clean_files
22961 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
22962
22963
22964
22965 # Sanity checking & User-visible messages.
22966 # Checks down here, otherwise they get scrolled off before
22967 # the user will notice.
22968
22969 # Trying to get more people to read documentation.  Possibly remove
22970 # check and warn all the time. There is no "informational" AC_MSG_
22971 # macro, so these are going to be printed even when --quiet/--silent
22972 # is given.
22973 if test ! -f stamp-sanity-warned; then
22974   touch stamp-sanity-warned
22975   echo ""
22976   echo "Please make certain that you read the installation information here:"
22977   echo "  faster => ${srcdir}/docs/html/install.html"
22978   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
22979   echo ""
22980   echo "and the configuration information here:"
22981   echo "  faster => ${srcdir}/docs/html/configopts.html"
22982   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
22983   echo ""
22984   echo "before proceeding with ${_cv_gnu_make_command}."
22985   echo ""
22986 fi