OSDN Git Service

2002-07-24 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 sitefile=
89 srcdir=
90 target=NONE
91 verbose=
92 x_includes=NONE
93 x_libraries=NONE
94 bindir='${exec_prefix}/bin'
95 sbindir='${exec_prefix}/sbin'
96 libexecdir='${exec_prefix}/libexec'
97 datadir='${prefix}/share'
98 sysconfdir='${prefix}/etc'
99 sharedstatedir='${prefix}/com'
100 localstatedir='${prefix}/var'
101 libdir='${exec_prefix}/lib'
102 includedir='${prefix}/include'
103 oldincludedir='/usr/include'
104 infodir='${prefix}/info'
105 mandir='${prefix}/man'
106
107 # Initialize some other variables.
108 subdirs=
109 MFLAGS= MAKEFLAGS=
110 SHELL=${CONFIG_SHELL-/bin/sh}
111 # Maximum number of lines to put in a shell here document.
112 ac_max_here_lines=12
113
114 ac_prev=
115 for ac_option
116 do
117
118   # If the previous option needs an argument, assign it.
119   if test -n "$ac_prev"; then
120     eval "$ac_prev=\$ac_option"
121     ac_prev=
122     continue
123   fi
124
125   case "$ac_option" in
126   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
127   *) ac_optarg= ;;
128   esac
129
130   # Accept the important Cygnus configure options, so we can diagnose typos.
131
132   case "$ac_option" in
133
134   -bindir | --bindir | --bindi | --bind | --bin | --bi)
135     ac_prev=bindir ;;
136   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
137     bindir="$ac_optarg" ;;
138
139   -build | --build | --buil | --bui | --bu)
140     ac_prev=build ;;
141   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
142     build="$ac_optarg" ;;
143
144   -cache-file | --cache-file | --cache-fil | --cache-fi \
145   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
146     ac_prev=cache_file ;;
147   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
148   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
149     cache_file="$ac_optarg" ;;
150
151   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
152     ac_prev=datadir ;;
153   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
154   | --da=*)
155     datadir="$ac_optarg" ;;
156
157   -disable-* | --disable-*)
158     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
159     # Reject names that are not valid shell variable names.
160     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
161       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162     fi
163     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
164     eval "enable_${ac_feature}=no" ;;
165
166   -enable-* | --enable-*)
167     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
168     # Reject names that are not valid shell variable names.
169     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
170       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171     fi
172     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
173     case "$ac_option" in
174       *=*) ;;
175       *) ac_optarg=yes ;;
176     esac
177     eval "enable_${ac_feature}='$ac_optarg'" ;;
178
179   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
180   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
181   | --exec | --exe | --ex)
182     ac_prev=exec_prefix ;;
183   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
184   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
185   | --exec=* | --exe=* | --ex=*)
186     exec_prefix="$ac_optarg" ;;
187
188   -gas | --gas | --ga | --g)
189     # Obsolete; use --with-gas.
190     with_gas=yes ;;
191
192   -help | --help | --hel | --he)
193     # Omit some internal or obsolete options to make the list less imposing.
194     # This message is too long to be a string in the A/UX 3.1 sh.
195     cat << EOF
196 Usage: configure [options] [host]
197 Options: [defaults in brackets after descriptions]
198 Configuration:
199   --cache-file=FILE       cache test results in FILE
200   --help                  print this message
201   --no-create             do not create output files
202   --quiet, --silent       do not print \`checking...' messages
203   --site-file=FILE        use FILE as the site file
204   --version               print the version of autoconf that created configure
205 Directory and file names:
206   --prefix=PREFIX         install architecture-independent files in PREFIX
207                           [$ac_default_prefix]
208   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
209                           [same as prefix]
210   --bindir=DIR            user executables in DIR [EPREFIX/bin]
211   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
212   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
213   --datadir=DIR           read-only architecture-independent data in DIR
214                           [PREFIX/share]
215   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
216   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
217                           [PREFIX/com]
218   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
219   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
220   --includedir=DIR        C header files in DIR [PREFIX/include]
221   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
222   --infodir=DIR           info documentation in DIR [PREFIX/info]
223   --mandir=DIR            man documentation in DIR [PREFIX/man]
224   --srcdir=DIR            find the sources in DIR [configure dir or ..]
225   --program-prefix=PREFIX prepend PREFIX to installed program names
226   --program-suffix=SUFFIX append SUFFIX to installed program names
227   --program-transform-name=PROGRAM
228                           run sed PROGRAM on installed program names
229 EOF
230     cat << EOF
231 Host type:
232   --build=BUILD           configure for building on BUILD [BUILD=HOST]
233   --host=HOST             configure for HOST [guessed]
234   --target=TARGET         configure for TARGET [TARGET=HOST]
235 Features and packages:
236   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
237   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
238   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
239   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
240   --x-includes=DIR        X include files are in DIR
241   --x-libraries=DIR       X library files are in DIR
242 EOF
243     if test -n "$ac_help"; then
244       echo "--enable and --with options recognized:$ac_help"
245     fi
246     exit 0 ;;
247
248   -host | --host | --hos | --ho)
249     ac_prev=host ;;
250   -host=* | --host=* | --hos=* | --ho=*)
251     host="$ac_optarg" ;;
252
253   -includedir | --includedir | --includedi | --included | --include \
254   | --includ | --inclu | --incl | --inc)
255     ac_prev=includedir ;;
256   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
257   | --includ=* | --inclu=* | --incl=* | --inc=*)
258     includedir="$ac_optarg" ;;
259
260   -infodir | --infodir | --infodi | --infod | --info | --inf)
261     ac_prev=infodir ;;
262   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
263     infodir="$ac_optarg" ;;
264
265   -libdir | --libdir | --libdi | --libd)
266     ac_prev=libdir ;;
267   -libdir=* | --libdir=* | --libdi=* | --libd=*)
268     libdir="$ac_optarg" ;;
269
270   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
271   | --libexe | --libex | --libe)
272     ac_prev=libexecdir ;;
273   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
274   | --libexe=* | --libex=* | --libe=*)
275     libexecdir="$ac_optarg" ;;
276
277   -localstatedir | --localstatedir | --localstatedi | --localstated \
278   | --localstate | --localstat | --localsta | --localst \
279   | --locals | --local | --loca | --loc | --lo)
280     ac_prev=localstatedir ;;
281   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
282   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
283   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
284     localstatedir="$ac_optarg" ;;
285
286   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
287     ac_prev=mandir ;;
288   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
289     mandir="$ac_optarg" ;;
290
291   -nfp | --nfp | --nf)
292     # Obsolete; use --without-fp.
293     with_fp=no ;;
294
295   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
296   | --no-cr | --no-c)
297     no_create=yes ;;
298
299   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
300   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
301     no_recursion=yes ;;
302
303   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
304   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
305   | --oldin | --oldi | --old | --ol | --o)
306     ac_prev=oldincludedir ;;
307   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
308   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
309   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
310     oldincludedir="$ac_optarg" ;;
311
312   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
313     ac_prev=prefix ;;
314   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
315     prefix="$ac_optarg" ;;
316
317   -program-prefix | --program-prefix | --program-prefi | --program-pref \
318   | --program-pre | --program-pr | --program-p)
319     ac_prev=program_prefix ;;
320   -program-prefix=* | --program-prefix=* | --program-prefi=* \
321   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
322     program_prefix="$ac_optarg" ;;
323
324   -program-suffix | --program-suffix | --program-suffi | --program-suff \
325   | --program-suf | --program-su | --program-s)
326     ac_prev=program_suffix ;;
327   -program-suffix=* | --program-suffix=* | --program-suffi=* \
328   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
329     program_suffix="$ac_optarg" ;;
330
331   -program-transform-name | --program-transform-name \
332   | --program-transform-nam | --program-transform-na \
333   | --program-transform-n | --program-transform- \
334   | --program-transform | --program-transfor \
335   | --program-transfo | --program-transf \
336   | --program-trans | --program-tran \
337   | --progr-tra | --program-tr | --program-t)
338     ac_prev=program_transform_name ;;
339   -program-transform-name=* | --program-transform-name=* \
340   | --program-transform-nam=* | --program-transform-na=* \
341   | --program-transform-n=* | --program-transform-=* \
342   | --program-transform=* | --program-transfor=* \
343   | --program-transfo=* | --program-transf=* \
344   | --program-trans=* | --program-tran=* \
345   | --progr-tra=* | --program-tr=* | --program-t=*)
346     program_transform_name="$ac_optarg" ;;
347
348   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
349   | -silent | --silent | --silen | --sile | --sil)
350     silent=yes ;;
351
352   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
353     ac_prev=sbindir ;;
354   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
355   | --sbi=* | --sb=*)
356     sbindir="$ac_optarg" ;;
357
358   -sharedstatedir | --sharedstatedir | --sharedstatedi \
359   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
360   | --sharedst | --shareds | --shared | --share | --shar \
361   | --sha | --sh)
362     ac_prev=sharedstatedir ;;
363   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
364   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
365   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
366   | --sha=* | --sh=*)
367     sharedstatedir="$ac_optarg" ;;
368
369   -site | --site | --sit)
370     ac_prev=site ;;
371   -site=* | --site=* | --sit=*)
372     site="$ac_optarg" ;;
373
374   -site-file | --site-file | --site-fil | --site-fi | --site-f)
375     ac_prev=sitefile ;;
376   -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
377     sitefile="$ac_optarg" ;;
378
379   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
380     ac_prev=srcdir ;;
381   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
382     srcdir="$ac_optarg" ;;
383
384   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
385   | --syscon | --sysco | --sysc | --sys | --sy)
386     ac_prev=sysconfdir ;;
387   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
388   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
389     sysconfdir="$ac_optarg" ;;
390
391   -target | --target | --targe | --targ | --tar | --ta | --t)
392     ac_prev=target ;;
393   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
394     target="$ac_optarg" ;;
395
396   -v | -verbose | --verbose | --verbos | --verbo | --verb)
397     verbose=yes ;;
398
399   -version | --version | --versio | --versi | --vers)
400     echo "configure generated by autoconf version 2.13"
401     exit 0 ;;
402
403   -with-* | --with-*)
404     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
405     # Reject names that are not valid shell variable names.
406     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
407       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408     fi
409     ac_package=`echo $ac_package| sed 's/-/_/g'`
410     case "$ac_option" in
411       *=*) ;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "with_${ac_package}='$ac_optarg'" ;;
415
416   -without-* | --without-*)
417     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
418     # Reject names that are not valid shell variable names.
419     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
420       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
421     fi
422     ac_package=`echo $ac_package| sed 's/-/_/g'`
423     eval "with_${ac_package}=no" ;;
424
425   --x)
426     # Obsolete; use --with-x.
427     with_x=yes ;;
428
429   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
430   | --x-incl | --x-inc | --x-in | --x-i)
431     ac_prev=x_includes ;;
432   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
433   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
434     x_includes="$ac_optarg" ;;
435
436   -x-libraries | --x-libraries | --x-librarie | --x-librari \
437   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
438     ac_prev=x_libraries ;;
439   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
440   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
441     x_libraries="$ac_optarg" ;;
442
443   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
444     ;;
445
446   *)
447     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
448       echo "configure: warning: $ac_option: invalid host type" 1>&2
449     fi
450     if test "x$nonopt" != xNONE; then
451       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
452     fi
453     nonopt="$ac_option"
454     ;;
455
456   esac
457 done
458
459 if test -n "$ac_prev"; then
460   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
461 fi
462
463 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
464
465 # File descriptor usage:
466 # 0 standard input
467 # 1 file creation
468 # 2 errors and warnings
469 # 3 some systems may open it to /dev/tty
470 # 4 used on the Kubota Titan
471 # 6 checking for... messages and results
472 # 5 compiler messages saved in config.log
473 if test "$silent" = yes; then
474   exec 6>/dev/null
475 else
476   exec 6>&1
477 fi
478 exec 5>./config.log
479
480 echo "\
481 This file contains any messages produced by compilers while
482 running configure, to aid debugging if configure makes a mistake.
483 " 1>&5
484
485 # Strip out --no-create and --no-recursion so they do not pile up.
486 # Also quote any args containing shell metacharacters.
487 ac_configure_args=
488 for ac_arg
489 do
490   case "$ac_arg" in
491   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
492   | --no-cr | --no-c) ;;
493   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
495   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
496   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
497   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
498   esac
499 done
500
501 # NLS nuisances.
502 # Only set these to C if already set.  These must not be set unconditionally
503 # because not all systems understand e.g. LANG=C (notably SCO).
504 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
505 # Non-C LC_CTYPE values break the ctype check.
506 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
507 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
508 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
509 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
510
511 # confdefs.h avoids OS command line length limits that DEFS can exceed.
512 rm -rf conftest* confdefs.h
513 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
514 echo > confdefs.h
515
516 # A filename unique to this package, relative to the directory that
517 # configure is in, which we can look for to find out if srcdir is correct.
518 ac_unique_file=src/ios.cc
519
520 # Find the source files, if location was not specified.
521 if test -z "$srcdir"; then
522   ac_srcdir_defaulted=yes
523   # Try the directory containing this script, then its parent.
524   ac_prog=$0
525   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
526   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
527   srcdir=$ac_confdir
528   if test ! -r $srcdir/$ac_unique_file; then
529     srcdir=..
530   fi
531 else
532   ac_srcdir_defaulted=no
533 fi
534 if test ! -r $srcdir/$ac_unique_file; then
535   if test "$ac_srcdir_defaulted" = yes; then
536     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
537   else
538     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
539   fi
540 fi
541 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
542
543 # Prefer explicitly selected file to automatically selected ones.
544 if test -z "$sitefile"; then
545   if test -z "$CONFIG_SITE"; then
546     if test "x$prefix" != xNONE; then
547       CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
548     else
549       CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
550     fi
551   fi
552 else
553   CONFIG_SITE="$sitefile"
554 fi
555 for ac_site_file in $CONFIG_SITE; do
556   if test -r "$ac_site_file"; then
557     echo "loading site script $ac_site_file"
558     . "$ac_site_file"
559   fi
560 done
561
562 if test -r "$cache_file"; then
563   echo "loading cache $cache_file"
564   . $cache_file
565 else
566   echo "creating cache $cache_file"
567   > $cache_file
568 fi
569
570 ac_ext=c
571 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
572 ac_cpp='$CPP $CPPFLAGS'
573 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
574 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
575 cross_compiling=$ac_cv_prog_cc_cross
576
577 ac_exeext=
578 ac_objext=o
579 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
580   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
581   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
582     ac_n= ac_c='
583 ' ac_t='        '
584   else
585     ac_n=-n ac_c= ac_t=
586   fi
587 else
588   ac_n= ac_c='\c' ac_t=
589 fi
590
591
592
593 # This works around the fact that libtool configuration may change LD
594 # for this particular configuration, but some shells, instead of
595 # keeping the changes in LD private, export them just because LD is
596 # exported.  Only used at the end of this file.
597 ORIGINAL_LD_FOR_MULTILIBS=$LD
598
599 PACKAGE=libstdc++
600
601 # For libtool versioning info, format is CURRENT:REVISION:AGE
602 libtool_VERSION=5:0:0
603
604
605
606       # Check whether --enable-multilib or --disable-multilib was given.
607 if test "${enable_multilib+set}" = set; then
608   enableval="$enable_multilib"
609   case "${enableval}" in
610     yes) multilib=yes ;;
611     no)  multilib=no ;;
612     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
613    esac
614 else
615   multilib=yes
616 fi
617
618   # When building with srcdir == objdir, links to the source files will
619   # be created in directories within the target_subdir.  We have to
620   # adjust toplevel_srcdir accordingly, so that configure finds
621   # install-sh and other auxiliary files that live in the top-level
622   # source directory.
623   if test "${srcdir}" = "."; then
624     if test -z "${with_target_subdir}"; then
625       toprel=".."
626     else
627       if test "${with_target_subdir}" != "."; then
628         toprel="${with_multisrctop}../.."
629       else
630         toprel="${with_multisrctop}.."
631       fi
632     fi
633   else
634     toprel=".."
635   fi
636   ac_aux_dir=
637 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
638   if test -f $ac_dir/install-sh; then
639     ac_aux_dir=$ac_dir
640     ac_install_sh="$ac_aux_dir/install-sh -c"
641     break
642   elif test -f $ac_dir/install.sh; then
643     ac_aux_dir=$ac_dir
644     ac_install_sh="$ac_aux_dir/install.sh -c"
645     break
646   fi
647 done
648 if test -z "$ac_aux_dir"; then
649   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
650 fi
651 ac_config_guess=$ac_aux_dir/config.guess
652 ac_config_sub=$ac_aux_dir/config.sub
653 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
654
655   toplevel_srcdir=\${top_srcdir}/$toprel
656   
657
658
659 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
660 #
661 # You will slowly go insane if you do not grok the following fact:  when
662 # building v3 as part of the compiler, the top-level /target/ becomes the
663 # library's /host/.  `configure' then causes --target to default to --host,
664 # exactly like any other package using autoconf.  Therefore, 'target' and
665 # 'host' will always be the same.  This makes sense both for native and
666 # cross compilers, just think about it for a little while.  :-)
667 #
668 # Also, if v3 is being configured as part of a cross compiler, the top-level
669 # configure script will pass the "real" host as $with_cross_host.
670 #
671 # AC 2.5x sets target_alias iff the user specified --target, but we use it
672 # everywhere, so we set it here just to be sure.  In AC 2.13
673 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
674
675 # Do some error checking and defaulting for the host and target type.
676 # The inputs are:
677 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
678 #
679 # The rules are:
680 # 1. You are not allowed to specify --host, --target, and nonopt at the
681 #    same time.
682 # 2. Host defaults to nonopt.
683 # 3. If nonopt is not specified, then host defaults to the current host,
684 #    as determined by config.guess.
685 # 4. Target and build default to nonopt.
686 # 5. If nonopt is not specified, then target and build default to host.
687
688 # The aliases save the names the user supplied, while $host etc.
689 # will get canonicalized.
690 case $host---$target---$nonopt in
691 NONE---*---* | *---NONE---* | *---*---NONE) ;;
692 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
693 esac
694
695
696 # Make sure we can run config.sub.
697 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
698 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
699 fi
700
701 echo $ac_n "checking host system type""... $ac_c" 1>&6
702 echo "configure:703: checking host system type" >&5
703
704 host_alias=$host
705 case "$host_alias" in
706 NONE)
707   case $nonopt in
708   NONE)
709     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
710     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
711     fi ;;
712   *) host_alias=$nonopt ;;
713   esac ;;
714 esac
715
716 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
717 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
718 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
719 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
720 echo "$ac_t""$host" 1>&6
721
722 echo $ac_n "checking target system type""... $ac_c" 1>&6
723 echo "configure:724: checking target system type" >&5
724
725 target_alias=$target
726 case "$target_alias" in
727 NONE)
728   case $nonopt in
729   NONE) target_alias=$host_alias ;;
730   *) target_alias=$nonopt ;;
731   esac ;;
732 esac
733
734 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
735 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
736 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
737 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
738 echo "$ac_t""$target" 1>&6
739
740 echo $ac_n "checking build system type""... $ac_c" 1>&6
741 echo "configure:742: checking build system type" >&5
742
743 build_alias=$build
744 case "$build_alias" in
745 NONE)
746   case $nonopt in
747   NONE) build_alias=$host_alias ;;
748   *) build_alias=$nonopt ;;
749   esac ;;
750 esac
751
752 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
753 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
754 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
755 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
756 echo "$ac_t""$build" 1>&6
757
758 test "$host_alias" != "$target_alias" &&
759   test "$program_prefix$program_suffix$program_transform_name" = \
760     NONENONEs,x,x, &&
761   program_prefix=${target_alias}-
762
763 target_alias=${target_alias-$target}
764
765
766 # Runs configure.target, finds CC, CXX and assorted other critical bits.
767 # Must run this before the GLIBCPP_ENABLE_* macros below.
768 if test $host != $build; then
769   ac_tool_prefix=${host_alias}-
770 else
771   ac_tool_prefix=
772 fi
773
774 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
775 echo "configure:776: checking for Cygwin environment" >&5
776 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
777   echo $ac_n "(cached) $ac_c" 1>&6
778 else
779   cat > conftest.$ac_ext <<EOF
780 #line 781 "configure"
781 #include "confdefs.h"
782
783 int main() {
784
785 #ifndef __CYGWIN__
786 #define __CYGWIN__ __CYGWIN32__
787 #endif
788 return __CYGWIN__;
789 ; return 0; }
790 EOF
791 if { (eval echo configure:792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
792   rm -rf conftest*
793   ac_cv_cygwin=yes
794 else
795   echo "configure: failed program was:" >&5
796   cat conftest.$ac_ext >&5
797   rm -rf conftest*
798   ac_cv_cygwin=no
799 fi
800 rm -f conftest*
801 rm -f conftest*
802 fi
803
804 echo "$ac_t""$ac_cv_cygwin" 1>&6
805 CYGWIN=
806 test "$ac_cv_cygwin" = yes && CYGWIN=yes
807 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
808 echo "configure:809: checking for mingw32 environment" >&5
809 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
810   echo $ac_n "(cached) $ac_c" 1>&6
811 else
812   cat > conftest.$ac_ext <<EOF
813 #line 814 "configure"
814 #include "confdefs.h"
815
816 int main() {
817 return __MINGW32__;
818 ; return 0; }
819 EOF
820 if { (eval echo configure:821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
821   rm -rf conftest*
822   ac_cv_mingw32=yes
823 else
824   echo "configure: failed program was:" >&5
825   cat conftest.$ac_ext >&5
826   rm -rf conftest*
827   ac_cv_mingw32=no
828 fi
829 rm -f conftest*
830 rm -f conftest*
831 fi
832
833 echo "$ac_t""$ac_cv_mingw32" 1>&6
834 MINGW32=
835 test "$ac_cv_mingw32" = yes && MINGW32=yes
836
837
838 #possibly test for the presence of the compiler sources here?
839
840   # Export build and source directories.
841   # These need to be absolute paths, yet at the same time need to
842   # canonicalize only relative paths, because then amd will not unmount
843   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
844   glibcpp_builddir=`${PWDCMD-pwd}`
845   case $srcdir in
846   \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
847   *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
848   esac
849   
850   
851
852     
853
854   for ac_prog in mawk gawk nawk awk
855 do
856 # Extract the first word of "$ac_prog", so it can be a program name with args.
857 set dummy $ac_prog; ac_word=$2
858 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
859 echo "configure:860: checking for $ac_word" >&5
860 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
861   echo $ac_n "(cached) $ac_c" 1>&6
862 else
863   if test -n "$AWK"; then
864   ac_cv_prog_AWK="$AWK" # Let the user override the test.
865 else
866   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
867   ac_dummy="$PATH"
868   for ac_dir in $ac_dummy; do
869     test -z "$ac_dir" && ac_dir=.
870     if test -f $ac_dir/$ac_word; then
871       ac_cv_prog_AWK="$ac_prog"
872       break
873     fi
874   done
875   IFS="$ac_save_ifs"
876 fi
877 fi
878 AWK="$ac_cv_prog_AWK"
879 if test -n "$AWK"; then
880   echo "$ac_t""$AWK" 1>&6
881 else
882   echo "$ac_t""no" 1>&6
883 fi
884
885 test -n "$AWK" && break
886 done
887
888   # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.5x, can also
889   # be 'cp -p' if linking isn't available.  Uncomment the next line to
890   # force a particular method.
891   #ac_cv_prog_LN_S='cp -p'
892   echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
893 echo "configure:894: checking whether ln -s works" >&5
894 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
895   echo $ac_n "(cached) $ac_c" 1>&6
896 else
897   rm -f conftestdata
898 if ln -s X conftestdata 2>/dev/null
899 then
900   rm -f conftestdata
901   ac_cv_prog_LN_S="ln -s"
902 else
903   ac_cv_prog_LN_S=ln
904 fi
905 fi
906 LN_S="$ac_cv_prog_LN_S"
907 if test "$ac_cv_prog_LN_S" = "ln -s"; then
908   echo "$ac_t""yes" 1>&6
909 else
910   echo "$ac_t""no" 1>&6
911 fi
912
913
914   # We use these options to decide which functions to include.
915   # Check whether --with-target-subdir or --without-target-subdir was given.
916 if test "${with_target_subdir+set}" = set; then
917   withval="$with_target_subdir"
918   :
919 fi
920
921   # Check whether --with-cross-host or --without-cross-host was given.
922 if test "${with_cross_host+set}" = set; then
923   withval="$with_cross_host"
924   :
925 fi
926
927
928   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
929   
930
931   # Never versions of autoconf add an underscore to these functions.
932   # Prevent future problems ...
933   
934   
935   
936   
937
938   # AC_PROG_CC
939   # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
940   # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
941   # are probably using a cross compiler, which will not be able to fully
942   # link an executable.  This is addressed in later versions of autoconf.
943
944   
945
946       
947   # Extract the first word of "gcc", so it can be a program name with args.
948 set dummy gcc; ac_word=$2
949 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
950 echo "configure:951: checking for $ac_word" >&5
951 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
952   echo $ac_n "(cached) $ac_c" 1>&6
953 else
954   if test -n "$CC"; then
955   ac_cv_prog_CC="$CC" # Let the user override the test.
956 else
957   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
958   ac_dummy="$PATH"
959   for ac_dir in $ac_dummy; do
960     test -z "$ac_dir" && ac_dir=.
961     if test -f $ac_dir/$ac_word; then
962       ac_cv_prog_CC="gcc"
963       break
964     fi
965   done
966   IFS="$ac_save_ifs"
967 fi
968 fi
969 CC="$ac_cv_prog_CC"
970 if test -n "$CC"; then
971   echo "$ac_t""$CC" 1>&6
972 else
973   echo "$ac_t""no" 1>&6
974 fi
975
976   if test -z "$CC"; then
977     # Extract the first word of "cc", so it can be a program name with args.
978 set dummy cc; ac_word=$2
979 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
980 echo "configure:981: checking for $ac_word" >&5
981 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
982   echo $ac_n "(cached) $ac_c" 1>&6
983 else
984   if test -n "$CC"; then
985   ac_cv_prog_CC="$CC" # Let the user override the test.
986 else
987   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
988   ac_prog_rejected=no
989   ac_dummy="$PATH"
990   for ac_dir in $ac_dummy; do
991     test -z "$ac_dir" && ac_dir=.
992     if test -f $ac_dir/$ac_word; then
993       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
994         ac_prog_rejected=yes
995         continue
996       fi
997       ac_cv_prog_CC="cc"
998       break
999     fi
1000   done
1001   IFS="$ac_save_ifs"
1002 if test $ac_prog_rejected = yes; then
1003   # We found a bogon in the path, so make sure we never use it.
1004   set dummy $ac_cv_prog_CC
1005   shift
1006   if test $# -gt 0; then
1007     # We chose a different compiler from the bogus one.
1008     # However, it has the same basename, so the bogon will be chosen
1009     # first if we set CC to just the basename; use the full file name.
1010     shift
1011     set dummy "$ac_dir/$ac_word" "$@"
1012     shift
1013     ac_cv_prog_CC="$@"
1014   fi
1015 fi
1016 fi
1017 fi
1018 CC="$ac_cv_prog_CC"
1019 if test -n "$CC"; then
1020   echo "$ac_t""$CC" 1>&6
1021 else
1022   echo "$ac_t""no" 1>&6
1023 fi
1024
1025     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1026   fi
1027
1028   echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1029 echo "configure:1030: checking whether we are using GNU C" >&5
1030 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1031   echo $ac_n "(cached) $ac_c" 1>&6
1032 else
1033   cat > conftest.c <<EOF
1034 #ifdef __GNUC__
1035   yes;
1036 #endif
1037 EOF
1038 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1039   ac_cv_prog_gcc=yes
1040 else
1041   ac_cv_prog_gcc=no
1042 fi
1043 fi
1044
1045 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1046
1047   if test $ac_cv_prog_gcc = yes; then
1048     GCC=yes
1049           ac_test_CFLAGS="${CFLAGS+set}"
1050     ac_save_CFLAGS="$CFLAGS"
1051     CFLAGS=
1052     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1053 echo "configure:1054: checking whether ${CC-cc} accepts -g" >&5
1054 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1055   echo $ac_n "(cached) $ac_c" 1>&6
1056 else
1057   echo 'void f(){}' > conftest.c
1058 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1059   ac_cv_prog_cc_g=yes
1060 else
1061   ac_cv_prog_cc_g=no
1062 fi
1063 rm -f conftest*
1064
1065 fi
1066
1067 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1068     if test "$ac_test_CFLAGS" = set; then
1069       CFLAGS="$ac_save_CFLAGS"
1070     elif test $ac_cv_prog_cc_g = yes; then
1071       CFLAGS="-g -O2"
1072     else
1073       CFLAGS="-O2"
1074     fi
1075   else
1076     GCC=
1077     test "${CFLAGS+set}" = set || CFLAGS="-g"
1078   fi
1079   
1080
1081   # Likewise for AC_PROG_CXX.  We can't just call it directly because g++
1082   # will try to link in libstdc++.
1083   
1084
1085       
1086   # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1087   # flags that come in CXX while configuring libstdc++.  They're different
1088   # from those used for all other target libraries.  If CXX is set in
1089   # the environment, respect that here.
1090   glibcpp_CXX=$CXX
1091   for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1092 do
1093 # Extract the first word of "$ac_prog", so it can be a program name with args.
1094 set dummy $ac_prog; ac_word=$2
1095 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1096 echo "configure:1097: checking for $ac_word" >&5
1097 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1098   echo $ac_n "(cached) $ac_c" 1>&6
1099 else
1100   if test -n "$glibcpp_CXX"; then
1101   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1102 else
1103   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1104   ac_dummy="$PATH"
1105   for ac_dir in $ac_dummy; do
1106     test -z "$ac_dir" && ac_dir=.
1107     if test -f $ac_dir/$ac_word; then
1108       ac_cv_prog_glibcpp_CXX="$ac_prog"
1109       break
1110     fi
1111   done
1112   IFS="$ac_save_ifs"
1113 fi
1114 fi
1115 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1116 if test -n "$glibcpp_CXX"; then
1117   echo "$ac_t""$glibcpp_CXX" 1>&6
1118 else
1119   echo "$ac_t""no" 1>&6
1120 fi
1121
1122 test -n "$glibcpp_CXX" && break
1123 done
1124 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1125
1126   
1127   CXX=$glibcpp_CXX
1128   test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1129
1130   echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1131 echo "configure:1132: checking whether we are using GNU C++" >&5
1132 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1133   echo $ac_n "(cached) $ac_c" 1>&6
1134 else
1135   cat > conftest.C <<EOF
1136 #ifdef __GNUC__
1137   yes;
1138 #endif
1139 EOF
1140 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1141   ac_cv_prog_gxx=yes
1142 else
1143   ac_cv_prog_gxx=no
1144 fi
1145 fi
1146
1147 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1148
1149   if test $ac_cv_prog_gxx = yes; then
1150     GXX=yes
1151                 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1152     ac_save_CXXFLAGS="$CXXFLAGS"
1153     CXXFLAGS=
1154     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1155 echo "configure:1156: checking whether ${CXX-g++} accepts -g" >&5
1156 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1157   echo $ac_n "(cached) $ac_c" 1>&6
1158 else
1159   echo 'void f(){}' > conftest.cc
1160 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1161   ac_cv_prog_cxx_g=yes
1162 else
1163   ac_cv_prog_cxx_g=no
1164 fi
1165 rm -f conftest*
1166
1167 fi
1168
1169 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1170     if test "$ac_test_CXXFLAGS" = set; then
1171       CXXFLAGS="$ac_save_CXXFLAGS"
1172     elif test $ac_cv_prog_cxx_g = yes; then
1173       CXXFLAGS="-g -O2"
1174     else
1175       CXXFLAGS="-O2"
1176     fi
1177   else
1178     GXX=
1179     test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1180   fi
1181   
1182
1183   # For directory versioning (e.g., headers) and other variables.
1184   echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1185 echo "configure:1186: checking for GCC version number" >&5
1186   gcc_version=`$glibcpp_CXX -dumpversion`
1187   echo "$ac_t""$gcc_version" 1>&6
1188
1189   # For some reason, gettext needs this.
1190   echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1191 echo "configure:1192: checking for POSIXized ISC" >&5
1192 if test -d /etc/conf/kconfig.d &&
1193   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1194 then
1195   echo "$ac_t""yes" 1>&6
1196   ISC=yes # If later tests want to check for ISC.
1197   cat >> confdefs.h <<\EOF
1198 #define _POSIX_SOURCE 1
1199 EOF
1200
1201   if test "$GCC" = yes; then
1202     CC="$CC -posix"
1203   else
1204     CC="$CC -Xp"
1205   fi
1206 else
1207   echo "$ac_t""no" 1>&6
1208   ISC=
1209 fi
1210
1211
1212   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1213 set dummy ${ac_tool_prefix}as; ac_word=$2
1214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1215 echo "configure:1216: checking for $ac_word" >&5
1216 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1217   echo $ac_n "(cached) $ac_c" 1>&6
1218 else
1219   if test -n "$AS"; then
1220   ac_cv_prog_AS="$AS" # Let the user override the test.
1221 else
1222   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1223   ac_dummy="$PATH"
1224   for ac_dir in $ac_dummy; do
1225     test -z "$ac_dir" && ac_dir=.
1226     if test -f $ac_dir/$ac_word; then
1227       ac_cv_prog_AS="${ac_tool_prefix}as"
1228       break
1229     fi
1230   done
1231   IFS="$ac_save_ifs"
1232   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1233 fi
1234 fi
1235 AS="$ac_cv_prog_AS"
1236 if test -n "$AS"; then
1237   echo "$ac_t""$AS" 1>&6
1238 else
1239   echo "$ac_t""no" 1>&6
1240 fi
1241
1242
1243
1244   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1245 set dummy ${ac_tool_prefix}ar; ac_word=$2
1246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1247 echo "configure:1248: checking for $ac_word" >&5
1248 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1249   echo $ac_n "(cached) $ac_c" 1>&6
1250 else
1251   if test -n "$AR"; then
1252   ac_cv_prog_AR="$AR" # Let the user override the test.
1253 else
1254   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1255   ac_dummy="$PATH"
1256   for ac_dir in $ac_dummy; do
1257     test -z "$ac_dir" && ac_dir=.
1258     if test -f $ac_dir/$ac_word; then
1259       ac_cv_prog_AR="${ac_tool_prefix}ar"
1260       break
1261     fi
1262   done
1263   IFS="$ac_save_ifs"
1264   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1265 fi
1266 fi
1267 AR="$ac_cv_prog_AR"
1268 if test -n "$AR"; then
1269   echo "$ac_t""$AR" 1>&6
1270 else
1271   echo "$ac_t""no" 1>&6
1272 fi
1273
1274
1275
1276   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1277 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1278 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1279 echo "configure:1280: checking for $ac_word" >&5
1280 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1281   echo $ac_n "(cached) $ac_c" 1>&6
1282 else
1283   if test -n "$RANLIB"; then
1284   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1285 else
1286   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1287   ac_dummy="$PATH"
1288   for ac_dir in $ac_dummy; do
1289     test -z "$ac_dir" && ac_dir=.
1290     if test -f $ac_dir/$ac_word; then
1291       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1292       break
1293     fi
1294   done
1295   IFS="$ac_save_ifs"
1296 fi
1297 fi
1298 RANLIB="$ac_cv_prog_RANLIB"
1299 if test -n "$RANLIB"; then
1300   echo "$ac_t""$RANLIB" 1>&6
1301 else
1302   echo "$ac_t""no" 1>&6
1303 fi
1304
1305
1306 if test -z "$ac_cv_prog_RANLIB"; then
1307 if test -n "$ac_tool_prefix"; then
1308   # Extract the first word of "ranlib", so it can be a program name with args.
1309 set dummy ranlib; ac_word=$2
1310 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1311 echo "configure:1312: checking for $ac_word" >&5
1312 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1313   echo $ac_n "(cached) $ac_c" 1>&6
1314 else
1315   if test -n "$RANLIB"; then
1316   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1317 else
1318   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1319   ac_dummy="$PATH"
1320   for ac_dir in $ac_dummy; do
1321     test -z "$ac_dir" && ac_dir=.
1322     if test -f $ac_dir/$ac_word; then
1323       ac_cv_prog_RANLIB="ranlib"
1324       break
1325     fi
1326   done
1327   IFS="$ac_save_ifs"
1328   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1329 fi
1330 fi
1331 RANLIB="$ac_cv_prog_RANLIB"
1332 if test -n "$RANLIB"; then
1333   echo "$ac_t""$RANLIB" 1>&6
1334 else
1335   echo "$ac_t""no" 1>&6
1336 fi
1337
1338 else
1339   RANLIB="ranlib-not-found-in-path-error"
1340 fi
1341 fi
1342
1343   # Find a good install program.  We prefer a C program (faster),
1344 # so one script is as good as another.  But avoid the broken or
1345 # incompatible versions:
1346 # SysV /etc/install, /usr/sbin/install
1347 # SunOS /usr/etc/install
1348 # IRIX /sbin/install
1349 # AIX /bin/install
1350 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1351 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1352 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1353 # ./install, which can be erroneously created by make from ./install.sh.
1354 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1355 echo "configure:1356: checking for a BSD compatible install" >&5
1356 if test -z "$INSTALL"; then
1357 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1358   echo $ac_n "(cached) $ac_c" 1>&6
1359 else
1360     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1361   for ac_dir in $PATH; do
1362     # Account for people who put trailing slashes in PATH elements.
1363     case "$ac_dir/" in
1364     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1365     *)
1366       # OSF1 and SCO ODT 3.0 have their own names for install.
1367       # Don't use installbsd from OSF since it installs stuff as root
1368       # by default.
1369       for ac_prog in ginstall scoinst install; do
1370         if test -f $ac_dir/$ac_prog; then
1371           if test $ac_prog = install &&
1372             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1373             # AIX install.  It has an incompatible calling convention.
1374             :
1375           else
1376             ac_cv_path_install="$ac_dir/$ac_prog -c"
1377             break 2
1378           fi
1379         fi
1380       done
1381       ;;
1382     esac
1383   done
1384   IFS="$ac_save_IFS"
1385
1386 fi
1387   if test "${ac_cv_path_install+set}" = set; then
1388     INSTALL="$ac_cv_path_install"
1389   else
1390     # As a last resort, use the slow shell script.  We don't cache a
1391     # path for INSTALL within a source directory, because that will
1392     # break other packages using the cache if that directory is
1393     # removed, or if the path is relative.
1394     INSTALL="$ac_install_sh"
1395   fi
1396 fi
1397 echo "$ac_t""$INSTALL" 1>&6
1398
1399 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1400 # It thinks the first close brace ends the variable substitution.
1401 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1402
1403 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1404
1405 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1406
1407
1408   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1409 echo "configure:1410: checking whether to enable maintainer-specific portions of Makefiles" >&5
1410     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1411 if test "${enable_maintainer_mode+set}" = set; then
1412   enableval="$enable_maintainer_mode"
1413   USE_MAINTAINER_MODE=$enableval
1414 else
1415   USE_MAINTAINER_MODE=no
1416 fi
1417
1418   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1419   
1420
1421 if test $USE_MAINTAINER_MODE = yes; then
1422   MAINTAINER_MODE_TRUE=
1423   MAINTAINER_MODE_FALSE='#'
1424 else
1425   MAINTAINER_MODE_TRUE='#'
1426   MAINTAINER_MODE_FALSE=
1427 fi
1428   MAINT=$MAINTAINER_MODE_TRUE
1429   
1430
1431
1432   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1433   # at least currently, we never actually build a program, so we never
1434   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1435   # fails, because we are probably configuring with a cross compiler
1436   # which can't create executables.  So we include AC_EXEEXT to keep
1437   # automake happy, but we don't execute it, since we don't care about
1438   # the result.
1439   if false; then
1440     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1441     # to nothing, so nothing would remain between `then' and `fi' if it
1442     # were not for the `:' below.
1443     :
1444     
1445
1446 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1447 echo "configure:1448: checking for executable suffix" >&5
1448 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1449   echo $ac_n "(cached) $ac_c" 1>&6
1450 else
1451   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1452   ac_cv_exeext=.exe
1453 else
1454   rm -f conftest*
1455   echo 'int main () { return 0; }' > conftest.$ac_ext
1456   ac_cv_exeext=
1457   if { (eval echo configure:1458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1458     for file in conftest.*; do
1459       case $file in
1460       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1461       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1462       esac
1463     done
1464   else
1465     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1466   fi
1467   rm -f conftest*
1468   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1469 fi
1470 fi
1471
1472 EXEEXT=""
1473 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1474 echo "$ac_t""${ac_cv_exeext}" 1>&6
1475 ac_exeext=$EXEEXT
1476
1477   fi
1478
1479   case ${glibcpp_basedir} in
1480     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1481     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1482   esac
1483
1484   # Find platform-specific directories containing configuration info.  In
1485   # addition to possibly modifying the same flags, it also sets up symlinks.
1486   
1487     . ${glibcpp_basedir}/configure.target
1488     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1489     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1490
1491
1492
1493 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1494 echo "configure:1495: checking whether build environment is sane" >&5
1495 # Just in case
1496 sleep 1
1497 echo timestamp > conftestfile
1498 # Do `set' in a subshell so we don't clobber the current shell's
1499 # arguments.  Must try -L first in case configure is actually a
1500 # symlink; some systems play weird games with the mod time of symlinks
1501 # (eg FreeBSD returns the mod time of the symlink's containing
1502 # directory).
1503 if (
1504    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1505    if test "$*" = "X"; then
1506       # -L didn't work.
1507       set X `ls -t $srcdir/configure conftestfile`
1508    fi
1509    if test "$*" != "X $srcdir/configure conftestfile" \
1510       && test "$*" != "X conftestfile $srcdir/configure"; then
1511
1512       # If neither matched, then we have a broken ls.  This can happen
1513       # if, for instance, CONFIG_SHELL is bash and it inherits a
1514       # broken ls alias from the environment.  This has actually
1515       # happened.  Such a system could not be considered "sane".
1516       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
1517 alias in your environment" 1>&2; exit 1; }
1518    fi
1519
1520    test "$2" = conftestfile
1521    )
1522 then
1523    # Ok.
1524    :
1525 else
1526    { echo "configure: error: newly created file is older than distributed files!
1527 Check your system clock" 1>&2; exit 1; }
1528 fi
1529 rm -f conftest*
1530 echo "$ac_t""yes" 1>&6
1531 if test "$program_transform_name" = s,x,x,; then
1532   program_transform_name=
1533 else
1534   # Double any \ or $.  echo might interpret backslashes.
1535   cat <<\EOF_SED > conftestsed
1536 s,\\,\\\\,g; s,\$,$$,g
1537 EOF_SED
1538   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1539   rm -f conftestsed
1540 fi
1541 test "$program_prefix" != NONE &&
1542   program_transform_name="s,^,${program_prefix},; $program_transform_name"
1543 # Use a double $ so make ignores it.
1544 test "$program_suffix" != NONE &&
1545   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1546
1547 # sed with no file args requires a program.
1548 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1549
1550 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1551 echo "configure:1552: checking whether ${MAKE-make} sets \${MAKE}" >&5
1552 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1553 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1554   echo $ac_n "(cached) $ac_c" 1>&6
1555 else
1556   cat > conftestmake <<\EOF
1557 all:
1558         @echo 'ac_maketemp="${MAKE}"'
1559 EOF
1560 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1561 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1562 if test -n "$ac_maketemp"; then
1563   eval ac_cv_prog_make_${ac_make}_set=yes
1564 else
1565   eval ac_cv_prog_make_${ac_make}_set=no
1566 fi
1567 rm -f conftestmake
1568 fi
1569 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1570   echo "$ac_t""yes" 1>&6
1571   SET_MAKE=
1572 else
1573   echo "$ac_t""no" 1>&6
1574   SET_MAKE="MAKE=${MAKE-make}"
1575 fi
1576
1577
1578 PACKAGE=$PACKAGE
1579
1580 VERSION=$gcc_version
1581
1582 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1583   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1584 fi
1585 cat >> confdefs.h <<EOF
1586 #define PACKAGE "$PACKAGE"
1587 EOF
1588
1589 cat >> confdefs.h <<EOF
1590 #define VERSION "$VERSION"
1591 EOF
1592
1593
1594
1595 missing_dir=`cd $ac_aux_dir && pwd`
1596 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1597 echo "configure:1598: checking for working aclocal" >&5
1598 # Run test in a subshell; some versions of sh will print an error if
1599 # an executable is not found, even if stderr is redirected.
1600 # Redirect stdin to placate older versions of autoconf.  Sigh.
1601 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1602    ACLOCAL=aclocal
1603    echo "$ac_t""found" 1>&6
1604 else
1605    ACLOCAL="$missing_dir/missing aclocal"
1606    echo "$ac_t""missing" 1>&6
1607 fi
1608
1609 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1610 echo "configure:1611: checking for working autoconf" >&5
1611 # Run test in a subshell; some versions of sh will print an error if
1612 # an executable is not found, even if stderr is redirected.
1613 # Redirect stdin to placate older versions of autoconf.  Sigh.
1614 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1615    AUTOCONF=autoconf
1616    echo "$ac_t""found" 1>&6
1617 else
1618    AUTOCONF="$missing_dir/missing autoconf"
1619    echo "$ac_t""missing" 1>&6
1620 fi
1621
1622 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1623 echo "configure:1624: checking for working automake" >&5
1624 # Run test in a subshell; some versions of sh will print an error if
1625 # an executable is not found, even if stderr is redirected.
1626 # Redirect stdin to placate older versions of autoconf.  Sigh.
1627 if (automake --version) < /dev/null > /dev/null 2>&1; then
1628    AUTOMAKE=automake
1629    echo "$ac_t""found" 1>&6
1630 else
1631    AUTOMAKE="$missing_dir/missing automake"
1632    echo "$ac_t""missing" 1>&6
1633 fi
1634
1635 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1636 echo "configure:1637: checking for working autoheader" >&5
1637 # Run test in a subshell; some versions of sh will print an error if
1638 # an executable is not found, even if stderr is redirected.
1639 # Redirect stdin to placate older versions of autoconf.  Sigh.
1640 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1641    AUTOHEADER=autoheader
1642    echo "$ac_t""found" 1>&6
1643 else
1644    AUTOHEADER="$missing_dir/missing autoheader"
1645    echo "$ac_t""missing" 1>&6
1646 fi
1647
1648 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1649 echo "configure:1650: checking for working makeinfo" >&5
1650 # Run test in a subshell; some versions of sh will print an error if
1651 # an executable is not found, even if stderr is redirected.
1652 # Redirect stdin to placate older versions of autoconf.  Sigh.
1653 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1654    MAKEINFO=makeinfo
1655    echo "$ac_t""found" 1>&6
1656 else
1657    MAKEINFO="$missing_dir/missing makeinfo"
1658    echo "$ac_t""missing" 1>&6
1659 fi
1660
1661
1662
1663
1664
1665
1666
1667 # Check whether --enable-shared or --disable-shared was given.
1668 if test "${enable_shared+set}" = set; then
1669   enableval="$enable_shared"
1670   p=${PACKAGE-default}
1671 case $enableval in
1672 yes) enable_shared=yes ;;
1673 no) enable_shared=no ;;
1674 *)
1675   enable_shared=no
1676   # Look at the argument we got.  We use all the common list separators.
1677   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1678   for pkg in $enableval; do
1679     if test "X$pkg" = "X$p"; then
1680       enable_shared=yes
1681     fi
1682   done
1683   IFS="$ac_save_ifs"
1684   ;;
1685 esac
1686 else
1687   enable_shared=yes
1688 fi
1689
1690 # Check whether --enable-static or --disable-static was given.
1691 if test "${enable_static+set}" = set; then
1692   enableval="$enable_static"
1693   p=${PACKAGE-default}
1694 case $enableval in
1695 yes) enable_static=yes ;;
1696 no) enable_static=no ;;
1697 *)
1698   enable_static=no
1699   # Look at the argument we got.  We use all the common list separators.
1700   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1701   for pkg in $enableval; do
1702     if test "X$pkg" = "X$p"; then
1703       enable_static=yes
1704     fi
1705   done
1706   IFS="$ac_save_ifs"
1707   ;;
1708 esac
1709 else
1710   enable_static=yes
1711 fi
1712
1713 # Check whether --enable-fast-install or --disable-fast-install was given.
1714 if test "${enable_fast_install+set}" = set; then
1715   enableval="$enable_fast_install"
1716   p=${PACKAGE-default}
1717 case $enableval in
1718 yes) enable_fast_install=yes ;;
1719 no) enable_fast_install=no ;;
1720 *)
1721   enable_fast_install=no
1722   # Look at the argument we got.  We use all the common list separators.
1723   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1724   for pkg in $enableval; do
1725     if test "X$pkg" = "X$p"; then
1726       enable_fast_install=yes
1727     fi
1728   done
1729   IFS="$ac_save_ifs"
1730   ;;
1731 esac
1732 else
1733   enable_fast_install=yes
1734 fi
1735
1736 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1737 if test "${with_gnu_ld+set}" = set; then
1738   withval="$with_gnu_ld"
1739   test "$withval" = no || with_gnu_ld=yes
1740 else
1741   with_gnu_ld=no
1742 fi
1743
1744 ac_prog=ld
1745 if test "$GCC" = yes; then
1746   # Check if gcc -print-prog-name=ld gives a path.
1747   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1748 echo "configure:1749: checking for ld used by GCC" >&5
1749   case $host in
1750   *-*-mingw*)
1751     # gcc leaves a trailing carriage return which upsets mingw
1752     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1753   *)
1754     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1755   esac
1756   case $ac_prog in
1757     # Accept absolute paths.
1758     [\\/]* | [A-Za-z]:[\\/]*)
1759       re_direlt='/[^/][^/]*/\.\./'
1760       # Canonicalize the path of ld
1761       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1762       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1763         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1764       done
1765       test -z "$LD" && LD="$ac_prog"
1766       ;;
1767   "")
1768     # If it fails, then pretend we aren't using GCC.
1769     ac_prog=ld
1770     ;;
1771   *)
1772     # If it is relative, then search for the first ld in PATH.
1773     with_gnu_ld=unknown
1774     ;;
1775   esac
1776 elif test "$with_gnu_ld" = yes; then
1777   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1778 echo "configure:1779: checking for GNU ld" >&5
1779 else
1780   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1781 echo "configure:1782: checking for non-GNU ld" >&5
1782 fi
1783 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1784   echo $ac_n "(cached) $ac_c" 1>&6
1785 else
1786   if test -z "$LD"; then
1787   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1788   for ac_dir in $PATH; do
1789     test -z "$ac_dir" && ac_dir=.
1790     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1791       lt_cv_path_LD="$ac_dir/$ac_prog"
1792       # Check to see if the program is GNU ld.  I'd rather use --version,
1793       # but apparently some GNU ld's only accept -v.
1794       # Break only if it was the GNU/non-GNU ld that we prefer.
1795       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1796         test "$with_gnu_ld" != no && break
1797       else
1798         test "$with_gnu_ld" != yes && break
1799       fi
1800     fi
1801   done
1802   IFS="$ac_save_ifs"
1803 else
1804   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1805 fi
1806 fi
1807
1808 LD="$lt_cv_path_LD"
1809 if test -n "$LD"; then
1810   echo "$ac_t""$LD" 1>&6
1811 else
1812   echo "$ac_t""no" 1>&6
1813 fi
1814 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1815 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1816 echo "configure:1817: checking if the linker ($LD) is GNU ld" >&5
1817 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1818   echo $ac_n "(cached) $ac_c" 1>&6
1819 else
1820   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1821 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1822   lt_cv_prog_gnu_ld=yes
1823 else
1824   lt_cv_prog_gnu_ld=no
1825 fi
1826 fi
1827
1828 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1829 with_gnu_ld=$lt_cv_prog_gnu_ld
1830
1831
1832 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1833 echo "configure:1834: checking for $LD option to reload object files" >&5
1834 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1835   echo $ac_n "(cached) $ac_c" 1>&6
1836 else
1837   lt_cv_ld_reload_flag='-r'
1838 fi
1839
1840 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1841 reload_flag=$lt_cv_ld_reload_flag
1842 test -n "$reload_flag" && reload_flag=" $reload_flag"
1843
1844 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1845 echo "configure:1846: checking for BSD-compatible nm" >&5
1846 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1847   echo $ac_n "(cached) $ac_c" 1>&6
1848 else
1849   if test -n "$NM"; then
1850   # Let the user override the test.
1851   lt_cv_path_NM="$NM"
1852 else
1853   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1854   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1855     test -z "$ac_dir" && ac_dir=.
1856     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1857     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1858       # Check to see if the nm accepts a BSD-compat flag.
1859       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1860       #   nm: unknown option "B" ignored
1861       # Tru64's nm complains that /dev/null is an invalid object file
1862       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1863         lt_cv_path_NM="$tmp_nm -B"
1864         break
1865       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1866         lt_cv_path_NM="$tmp_nm -p"
1867         break
1868       else
1869         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1870         continue # so that we can try to find one that supports BSD flags
1871       fi
1872     fi
1873   done
1874   IFS="$ac_save_ifs"
1875   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1876 fi
1877 fi
1878
1879 NM="$lt_cv_path_NM"
1880 echo "$ac_t""$NM" 1>&6
1881
1882 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1883 echo "configure:1884: checking how to recognise dependant libraries" >&5
1884 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1885   echo $ac_n "(cached) $ac_c" 1>&6
1886 else
1887   lt_cv_file_magic_cmd='$MAGIC_CMD'
1888 lt_cv_file_magic_test_file=
1889 lt_cv_deplibs_check_method='unknown'
1890 # Need to set the preceding variable on all platforms that support
1891 # interlibrary dependencies.
1892 # 'none' -- dependencies not supported.
1893 # `unknown' -- same as none, but documents that we really don't know.
1894 # 'pass_all' -- all dependencies passed with no checks.
1895 # 'test_compile' -- check by making test program.
1896 # 'file_magic [regex]' -- check by looking for files in library path
1897 # which responds to the $file_magic_cmd with a given egrep regex.
1898 # If you have `file' or equivalent on your system and you're not sure
1899 # whether `pass_all' will *always* work, you probably want this one.
1900
1901 case $host_os in
1902 aix*)
1903   lt_cv_deplibs_check_method=pass_all
1904   ;;
1905
1906 beos*)
1907   lt_cv_deplibs_check_method=pass_all
1908   ;;
1909
1910 bsdi4*)
1911   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1912   lt_cv_file_magic_cmd='/usr/bin/file -L'
1913   lt_cv_file_magic_test_file=/shlib/libc.so
1914   ;;
1915
1916 cygwin* | mingw* |pw32*)
1917   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1918   lt_cv_file_magic_cmd='$OBJDUMP -f'
1919   ;;
1920
1921 darwin* | rhapsody*)
1922   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1923   lt_cv_file_magic_cmd='/usr/bin/file -L'
1924   case "$host_os" in
1925   rhapsody* | darwin1.012)
1926     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1927     ;;
1928   *) # Darwin 1.3 on
1929     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1930     ;;
1931   esac
1932   ;;
1933
1934 freebsd* )
1935   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1936     case $host_cpu in
1937     i*86 )
1938       # Not sure whether the presence of OpenBSD here was a mistake.
1939       # Let's accept both of them until this is cleared up.
1940       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1941       lt_cv_file_magic_cmd=/usr/bin/file
1942       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1943       ;;
1944     esac
1945   else
1946     lt_cv_deplibs_check_method=pass_all
1947   fi
1948   ;;
1949
1950 gnu*)
1951   lt_cv_deplibs_check_method=pass_all
1952   ;;
1953
1954 hpux10.20*|hpux11*)
1955   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1956   lt_cv_file_magic_cmd=/usr/bin/file
1957   lt_cv_file_magic_test_file=/usr/lib/libc.sl
1958   ;;
1959
1960 irix5* | irix6*)
1961   case $host_os in
1962   irix5*)
1963     # this will be overridden with pass_all, but let us keep it just in case
1964     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1965     ;;
1966   *)
1967     case $LD in
1968     *-32|*"-32 ") libmagic=32-bit;;
1969     *-n32|*"-n32 ") libmagic=N32;;
1970     *-64|*"-64 ") libmagic=64-bit;;
1971     *) libmagic=never-match;;
1972     esac
1973     # this will be overridden with pass_all, but let us keep it just in case
1974     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1975     ;;
1976   esac
1977   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1978   lt_cv_deplibs_check_method=pass_all
1979   ;;
1980
1981 # This must be Linux ELF.
1982 linux-gnu*)
1983   case $host_cpu in
1984   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1985     lt_cv_deplibs_check_method=pass_all ;;
1986   *)
1987     # glibc up to 2.1.1 does not perform some relocations on ARM
1988     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1989   esac
1990   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1991   ;;
1992
1993 netbsd*)
1994   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1995     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1996   else
1997     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1998   fi
1999   ;;
2000
2001 newsos6)
2002   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2003   lt_cv_file_magic_cmd=/usr/bin/file
2004   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2005   ;;
2006
2007 osf3* | osf4* | osf5*)
2008   # this will be overridden with pass_all, but let us keep it just in case
2009   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2010   lt_cv_file_magic_test_file=/shlib/libc.so
2011   lt_cv_deplibs_check_method=pass_all
2012   ;;
2013
2014 sco3.2v5*)
2015   lt_cv_deplibs_check_method=pass_all
2016   ;;
2017
2018 solaris*)
2019   lt_cv_deplibs_check_method=pass_all
2020   lt_cv_file_magic_test_file=/lib/libc.so
2021   ;;
2022
2023 sysv5uw[78]* | sysv4*uw2*)
2024   lt_cv_deplibs_check_method=pass_all
2025   ;;
2026
2027 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2028   case $host_vendor in
2029   ncr)
2030     lt_cv_deplibs_check_method=pass_all
2031     ;;
2032   motorola)
2033     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]'
2034     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2035     ;;
2036   esac
2037   ;;
2038 esac
2039
2040 fi
2041
2042 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2043 file_magic_cmd=$lt_cv_file_magic_cmd
2044 deplibs_check_method=$lt_cv_deplibs_check_method
2045
2046 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2047 echo "configure:2048: checking for object suffix" >&5
2048 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2049   echo $ac_n "(cached) $ac_c" 1>&6
2050 else
2051   rm -f conftest*
2052 echo 'int i = 1;' > conftest.$ac_ext
2053 if { (eval echo configure:2054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2054   for ac_file in conftest.*; do
2055     case $ac_file in
2056     *.c) ;;
2057     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2058     esac
2059   done
2060 else
2061   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2062 fi
2063 rm -f conftest*
2064 fi
2065
2066 echo "$ac_t""$ac_cv_objext" 1>&6
2067 OBJEXT=$ac_cv_objext
2068 ac_objext=$ac_cv_objext
2069
2070 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2071
2072 # Only perform the check for file, if the check method requires it
2073 case $deplibs_check_method in
2074 file_magic*)
2075   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2076     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2077 echo "configure:2078: checking for ${ac_tool_prefix}file" >&5
2078 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2079   echo $ac_n "(cached) $ac_c" 1>&6
2080 else
2081   case $MAGIC_CMD in
2082   /*)
2083   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2084   ;;
2085   ?:/*)
2086   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2087   ;;
2088   *)
2089   ac_save_MAGIC_CMD="$MAGIC_CMD"
2090   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2091   ac_dummy="/usr/bin:$PATH"
2092   for ac_dir in $ac_dummy; do
2093     test -z "$ac_dir" && ac_dir=.
2094     if test -f $ac_dir/${ac_tool_prefix}file; then
2095       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2096       if test -n "$file_magic_test_file"; then
2097         case $deplibs_check_method in
2098         "file_magic "*)
2099           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2100           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2101           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2102             egrep "$file_magic_regex" > /dev/null; then
2103             :
2104           else
2105             cat <<EOF 1>&2
2106
2107 *** Warning: the command libtool uses to detect shared libraries,
2108 *** $file_magic_cmd, produces output that libtool cannot recognize.
2109 *** The result is that libtool may fail to recognize shared libraries
2110 *** as such.  This will affect the creation of libtool libraries that
2111 *** depend on shared libraries, but programs linked with such libtool
2112 *** libraries will work regardless of this problem.  Nevertheless, you
2113 *** may want to report the problem to your system manager and/or to
2114 *** bug-libtool@gnu.org
2115
2116 EOF
2117           fi ;;
2118         esac
2119       fi
2120       break
2121     fi
2122   done
2123   IFS="$ac_save_ifs"
2124   MAGIC_CMD="$ac_save_MAGIC_CMD"
2125   ;;
2126 esac
2127 fi
2128
2129 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2130 if test -n "$MAGIC_CMD"; then
2131   echo "$ac_t""$MAGIC_CMD" 1>&6
2132 else
2133   echo "$ac_t""no" 1>&6
2134 fi
2135
2136 if test -z "$lt_cv_path_MAGIC_CMD"; then
2137   if test -n "$ac_tool_prefix"; then
2138     echo $ac_n "checking for file""... $ac_c" 1>&6
2139 echo "configure:2140: checking for file" >&5
2140 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2141   echo $ac_n "(cached) $ac_c" 1>&6
2142 else
2143   case $MAGIC_CMD in
2144   /*)
2145   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2146   ;;
2147   ?:/*)
2148   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2149   ;;
2150   *)
2151   ac_save_MAGIC_CMD="$MAGIC_CMD"
2152   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2153   ac_dummy="/usr/bin:$PATH"
2154   for ac_dir in $ac_dummy; do
2155     test -z "$ac_dir" && ac_dir=.
2156     if test -f $ac_dir/file; then
2157       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2158       if test -n "$file_magic_test_file"; then
2159         case $deplibs_check_method in
2160         "file_magic "*)
2161           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2162           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2163           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2164             egrep "$file_magic_regex" > /dev/null; then
2165             :
2166           else
2167             cat <<EOF 1>&2
2168
2169 *** Warning: the command libtool uses to detect shared libraries,
2170 *** $file_magic_cmd, produces output that libtool cannot recognize.
2171 *** The result is that libtool may fail to recognize shared libraries
2172 *** as such.  This will affect the creation of libtool libraries that
2173 *** depend on shared libraries, but programs linked with such libtool
2174 *** libraries will work regardless of this problem.  Nevertheless, you
2175 *** may want to report the problem to your system manager and/or to
2176 *** bug-libtool@gnu.org
2177
2178 EOF
2179           fi ;;
2180         esac
2181       fi
2182       break
2183     fi
2184   done
2185   IFS="$ac_save_ifs"
2186   MAGIC_CMD="$ac_save_MAGIC_CMD"
2187   ;;
2188 esac
2189 fi
2190
2191 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2192 if test -n "$MAGIC_CMD"; then
2193   echo "$ac_t""$MAGIC_CMD" 1>&6
2194 else
2195   echo "$ac_t""no" 1>&6
2196 fi
2197
2198   else
2199     MAGIC_CMD=:
2200   fi
2201 fi
2202
2203   fi
2204   ;;
2205 esac
2206
2207 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2208 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2209 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2210 echo "configure:2211: checking for $ac_word" >&5
2211 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2212   echo $ac_n "(cached) $ac_c" 1>&6
2213 else
2214   if test -n "$RANLIB"; then
2215   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2216 else
2217   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2218   ac_dummy="$PATH"
2219   for ac_dir in $ac_dummy; do
2220     test -z "$ac_dir" && ac_dir=.
2221     if test -f $ac_dir/$ac_word; then
2222       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2223       break
2224     fi
2225   done
2226   IFS="$ac_save_ifs"
2227 fi
2228 fi
2229 RANLIB="$ac_cv_prog_RANLIB"
2230 if test -n "$RANLIB"; then
2231   echo "$ac_t""$RANLIB" 1>&6
2232 else
2233   echo "$ac_t""no" 1>&6
2234 fi
2235
2236
2237 if test -z "$ac_cv_prog_RANLIB"; then
2238 if test -n "$ac_tool_prefix"; then
2239   # Extract the first word of "ranlib", so it can be a program name with args.
2240 set dummy ranlib; ac_word=$2
2241 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2242 echo "configure:2243: checking for $ac_word" >&5
2243 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2244   echo $ac_n "(cached) $ac_c" 1>&6
2245 else
2246   if test -n "$RANLIB"; then
2247   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2248 else
2249   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2250   ac_dummy="$PATH"
2251   for ac_dir in $ac_dummy; do
2252     test -z "$ac_dir" && ac_dir=.
2253     if test -f $ac_dir/$ac_word; then
2254       ac_cv_prog_RANLIB="ranlib"
2255       break
2256     fi
2257   done
2258   IFS="$ac_save_ifs"
2259   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2260 fi
2261 fi
2262 RANLIB="$ac_cv_prog_RANLIB"
2263 if test -n "$RANLIB"; then
2264   echo "$ac_t""$RANLIB" 1>&6
2265 else
2266   echo "$ac_t""no" 1>&6
2267 fi
2268
2269 else
2270   RANLIB=":"
2271 fi
2272 fi
2273
2274 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2275 set dummy ${ac_tool_prefix}strip; ac_word=$2
2276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2277 echo "configure:2278: checking for $ac_word" >&5
2278 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2279   echo $ac_n "(cached) $ac_c" 1>&6
2280 else
2281   if test -n "$STRIP"; then
2282   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2283 else
2284   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2285   ac_dummy="$PATH"
2286   for ac_dir in $ac_dummy; do
2287     test -z "$ac_dir" && ac_dir=.
2288     if test -f $ac_dir/$ac_word; then
2289       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2290       break
2291     fi
2292   done
2293   IFS="$ac_save_ifs"
2294 fi
2295 fi
2296 STRIP="$ac_cv_prog_STRIP"
2297 if test -n "$STRIP"; then
2298   echo "$ac_t""$STRIP" 1>&6
2299 else
2300   echo "$ac_t""no" 1>&6
2301 fi
2302
2303
2304 if test -z "$ac_cv_prog_STRIP"; then
2305 if test -n "$ac_tool_prefix"; then
2306   # Extract the first word of "strip", so it can be a program name with args.
2307 set dummy strip; ac_word=$2
2308 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2309 echo "configure:2310: checking for $ac_word" >&5
2310 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2311   echo $ac_n "(cached) $ac_c" 1>&6
2312 else
2313   if test -n "$STRIP"; then
2314   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2315 else
2316   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2317   ac_dummy="$PATH"
2318   for ac_dir in $ac_dummy; do
2319     test -z "$ac_dir" && ac_dir=.
2320     if test -f $ac_dir/$ac_word; then
2321       ac_cv_prog_STRIP="strip"
2322       break
2323     fi
2324   done
2325   IFS="$ac_save_ifs"
2326   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2327 fi
2328 fi
2329 STRIP="$ac_cv_prog_STRIP"
2330 if test -n "$STRIP"; then
2331   echo "$ac_t""$STRIP" 1>&6
2332 else
2333   echo "$ac_t""no" 1>&6
2334 fi
2335
2336 else
2337   STRIP=":"
2338 fi
2339 fi
2340
2341
2342 # Check for any special flags to pass to ltconfig.
2343 libtool_flags="--cache-file=$cache_file"
2344 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2345 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2346 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2347 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2348 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2349 libtool_flags="$libtool_flags --enable-dlopen"
2350
2351 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2352 if test "${enable_libtool_lock+set}" = set; then
2353   enableval="$enable_libtool_lock"
2354   :
2355 fi
2356
2357 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2358 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2359
2360 # Check whether --with-pic or --without-pic was given.
2361 if test "${with_pic+set}" = set; then
2362   withval="$with_pic"
2363   pic_mode="$withval"
2364 else
2365   pic_mode=default
2366 fi
2367
2368 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2369 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2370
2371 # Some flags need to be propagated to the compiler or linker for good
2372 # libtool support.
2373 case $host in
2374 *-*-irix6*)
2375   # Find out which ABI we are using.
2376   echo '#line 2377 "configure"' > conftest.$ac_ext
2377   if { (eval echo configure:2378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2378     case `/usr/bin/file conftest.$ac_objext` in
2379     *32-bit*)
2380       LD="${LD-ld} -32"
2381       ;;
2382     *N32*)
2383       LD="${LD-ld} -n32"
2384       ;;
2385     *64-bit*)
2386       LD="${LD-ld} -64"
2387       ;;
2388     esac
2389   fi
2390   rm -rf conftest*
2391   ;;
2392
2393 *-*-sco3.2v5*)
2394   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2395   SAVE_CFLAGS="$CFLAGS"
2396   CFLAGS="$CFLAGS -belf"
2397   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2398 echo "configure:2399: checking whether the C compiler needs -belf" >&5
2399 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2400   echo $ac_n "(cached) $ac_c" 1>&6
2401 else
2402   
2403      ac_ext=c
2404 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2405 ac_cpp='$CPP $CPPFLAGS'
2406 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2407 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2408 cross_compiling=$ac_cv_prog_cc_cross
2409
2410      cat > conftest.$ac_ext <<EOF
2411 #line 2412 "configure"
2412 #include "confdefs.h"
2413
2414 int main() {
2415
2416 ; return 0; }
2417 EOF
2418 if { (eval echo configure:2419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2419   rm -rf conftest*
2420   lt_cv_cc_needs_belf=yes
2421 else
2422   echo "configure: failed program was:" >&5
2423   cat conftest.$ac_ext >&5
2424   rm -rf conftest*
2425   lt_cv_cc_needs_belf=no
2426 fi
2427 rm -f conftest*
2428      ac_ext=c
2429 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2430 ac_cpp='$CPP $CPPFLAGS'
2431 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2432 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2433 cross_compiling=$ac_cv_prog_cc_cross
2434
2435 fi
2436
2437 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2438   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2439     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2440     CFLAGS="$SAVE_CFLAGS"
2441   fi
2442   ;;
2443
2444
2445 esac
2446
2447 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2448 echo "configure:2449: checking how to run the C++ preprocessor" >&5
2449 if test -z "$CXXCPP"; then
2450 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2451   echo $ac_n "(cached) $ac_c" 1>&6
2452 else
2453   ac_ext=C
2454 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2455 ac_cpp='$CXXCPP $CPPFLAGS'
2456 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2457 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2458 cross_compiling=$ac_cv_prog_cxx_cross
2459   CXXCPP="${CXX-g++} -E"
2460   cat > conftest.$ac_ext <<EOF
2461 #line 2462 "configure"
2462 #include "confdefs.h"
2463 #include <stdlib.h>
2464 EOF
2465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2466 { (eval echo configure:2467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2468 if test -z "$ac_err"; then
2469   :
2470 else
2471   echo "$ac_err" >&5
2472   echo "configure: failed program was:" >&5
2473   cat conftest.$ac_ext >&5
2474   rm -rf conftest*
2475   CXXCPP=/lib/cpp
2476 fi
2477 rm -f conftest*
2478   ac_cv_prog_CXXCPP="$CXXCPP"
2479 ac_ext=c
2480 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2481 ac_cpp='$CPP $CPPFLAGS'
2482 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2483 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2484 cross_compiling=$ac_cv_prog_cc_cross
2485 fi
2486 fi
2487 CXXCPP="$ac_cv_prog_CXXCPP"
2488 echo "$ac_t""$CXXCPP" 1>&6
2489
2490
2491 # Save cache, so that ltconfig can load it
2492 cat > confcache <<\EOF
2493 # This file is a shell script that caches the results of configure
2494 # tests run on this system so they can be shared between configure
2495 # scripts and configure runs.  It is not useful on other systems.
2496 # If it contains results you don't want to keep, you may remove or edit it.
2497 #
2498 # By default, configure uses ./config.cache as the cache file,
2499 # creating it if it does not exist already.  You can give configure
2500 # the --cache-file=FILE option to use a different cache file; that is
2501 # what configure does when it calls configure scripts in
2502 # subdirectories, so they share the cache.
2503 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2504 # config.status only pays attention to the cache file if you give it the
2505 # --recheck option to rerun configure.
2506 #
2507 EOF
2508 # The following way of writing the cache mishandles newlines in values,
2509 # but we know of no workaround that is simple, portable, and efficient.
2510 # So, don't put newlines in cache variables' values.
2511 # Ultrix sh set writes to stderr and can't be redirected directly,
2512 # and sets the high bit in the cache file unless we assign to the vars.
2513 (set) 2>&1 |
2514   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2515   *ac_space=\ *)
2516     # `set' does not quote correctly, so add quotes (double-quote substitution
2517     # turns \\\\ into \\, and sed turns \\ into \).
2518     sed -n \
2519       -e "s/'/'\\\\''/g" \
2520       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2521     ;;
2522   *)
2523     # `set' quotes correctly as required by POSIX, so do not add quotes.
2524     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2525     ;;
2526   esac >> confcache
2527 if cmp -s $cache_file confcache; then
2528   :
2529 else
2530   if test -w $cache_file; then
2531     echo "updating cache $cache_file"
2532     cat confcache > $cache_file
2533   else
2534     echo "not updating unwritable cache $cache_file"
2535   fi
2536 fi
2537 rm -f confcache
2538
2539
2540 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2541 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2542 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2543 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2544 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2545 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2546 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2547 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2548 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2549 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2550
2551 # Reload cache, that may have been modified by ltconfig
2552 if test -r "$cache_file"; then
2553   echo "loading cache $cache_file"
2554   . $cache_file
2555 else
2556   echo "creating cache $cache_file"
2557   > $cache_file
2558 fi
2559
2560
2561 # This can be used to rebuild libtool when needed
2562 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2563
2564 # Always use our own libtool.
2565 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2566
2567 # Redirect the config.log output again, so that the ltconfig log is not
2568 # clobbered by the next message.
2569 exec 5>>./config.log
2570
2571
2572
2573 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2574 lt_save_CC="$CC"
2575 lt_save_CFLAGS="$CFLAGS"
2576 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2577 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2578 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2579 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2580 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2581 deplibs_check_method="$deplibs_check_method" \
2582 file_magic_cmd="$file_magic_cmd" \
2583 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2584 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2585 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2586 CC="$lt_save_CC"
2587 CFLAGS="$lt_save_CFLAGS"
2588
2589 # Redirect the config.log output again, so that the ltconfig log is not
2590 # clobbered by the next message.
2591 exec 5>>./config.log
2592
2593   
2594
2595   
2596          
2597          
2598
2599
2600
2601 # Check for c++ or library specific bits that don't require linking.
2602 #GLIBCPP_CHECK_COMPILER_VERSION
2603 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2604 echo "configure:2605: checking for GNU make" >&5
2605 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2606   echo $ac_n "(cached) $ac_c" 1>&6
2607 else
2608   _cv_gnu_make_command='' ;
2609           for a in "${MAKE-make}" make gmake gnumake ; do
2610                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2611                   then
2612                           _cv_gnu_make_command=$a ;
2613                           break;
2614                   fi
2615           done ;
2616   
2617 fi
2618
2619 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2620   if test  "x$_cv_gnu_make_command" != "x"  ; then
2621           ifGNUmake='' ;
2622   else
2623           ifGNUmake='#' ;
2624   fi
2625   
2626
2627
2628 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2629 # Check whether --enable-debug or --disable-debug was given.
2630 if test "${enable_debug+set}" = set; then
2631   enableval="$enable_debug"
2632   case "${enableval}" in
2633  yes) enable_debug=yes ;;
2634  no)  enable_debug=no ;;
2635  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2636  esac
2637 else
2638   enable_debug=no
2639 fi
2640
2641 case "${enable_debug}" in
2642     yes) 
2643         DEBUG_FLAGS='-O0 -ggdb3'                        
2644         ;; 
2645     no)   
2646         DEBUG_FLAGS='-g'
2647         ;;
2648 esac
2649
2650
2651 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2652 echo "configure:2653: checking how to run the C preprocessor" >&5
2653 # On Suns, sometimes $CPP names a directory.
2654 if test -n "$CPP" && test -d "$CPP"; then
2655   CPP=
2656 fi
2657 if test -z "$CPP"; then
2658 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2659   echo $ac_n "(cached) $ac_c" 1>&6
2660 else
2661     # This must be in double quotes, not single quotes, because CPP may get
2662   # substituted into the Makefile and "${CC-cc}" will confuse make.
2663   CPP="${CC-cc} -E"
2664   # On the NeXT, cc -E runs the code through the compiler's parser,
2665   # not just through cpp.
2666   cat > conftest.$ac_ext <<EOF
2667 #line 2668 "configure"
2668 #include "confdefs.h"
2669 #include <assert.h>
2670 Syntax Error
2671 EOF
2672 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2673 { (eval echo configure:2674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2674 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2675 if test -z "$ac_err"; then
2676   :
2677 else
2678   echo "$ac_err" >&5
2679   echo "configure: failed program was:" >&5
2680   cat conftest.$ac_ext >&5
2681   rm -rf conftest*
2682   CPP="${CC-cc} -E -traditional-cpp"
2683   cat > conftest.$ac_ext <<EOF
2684 #line 2685 "configure"
2685 #include "confdefs.h"
2686 #include <assert.h>
2687 Syntax Error
2688 EOF
2689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2690 { (eval echo configure:2691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2692 if test -z "$ac_err"; then
2693   :
2694 else
2695   echo "$ac_err" >&5
2696   echo "configure: failed program was:" >&5
2697   cat conftest.$ac_ext >&5
2698   rm -rf conftest*
2699   CPP="${CC-cc} -nologo -E"
2700   cat > conftest.$ac_ext <<EOF
2701 #line 2702 "configure"
2702 #include "confdefs.h"
2703 #include <assert.h>
2704 Syntax Error
2705 EOF
2706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2707 { (eval echo configure:2708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2709 if test -z "$ac_err"; then
2710   :
2711 else
2712   echo "$ac_err" >&5
2713   echo "configure: failed program was:" >&5
2714   cat conftest.$ac_ext >&5
2715   rm -rf conftest*
2716   CPP=/lib/cpp
2717 fi
2718 rm -f conftest*
2719 fi
2720 rm -f conftest*
2721 fi
2722 rm -f conftest*
2723   ac_cv_prog_CPP="$CPP"
2724 fi
2725   CPP="$ac_cv_prog_CPP"
2726 else
2727   ac_cv_prog_CPP="$CPP"
2728 fi
2729 echo "$ac_t""$CPP" 1>&6
2730
2731
2732   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2733 echo "configure:2734: checking for cstdio to use" >&5
2734   # Check whether --enable-cstdio or --disable-cstdio was given.
2735 if test "${enable_cstdio+set}" = set; then
2736   enableval="$enable_cstdio"
2737   if test x$enable_cstdio = xno; then
2738      enable_cstdio=stdio
2739   fi
2740 else
2741   enable_cstdio=stdio
2742 fi
2743
2744
2745   enable_cstdio_flag=$enable_cstdio
2746
2747     case x${enable_cstdio_flag} in
2748     xlibio)
2749       CSTDIO_H=config/io/c_io_libio.h
2750       BASIC_FILE_H=config/io/basic_file_libio.h
2751       BASIC_FILE_CC=config/io/basic_file_libio.cc
2752       echo "$ac_t""libio" 1>&6
2753
2754       # see if we are on a system with libio native (ie, linux)
2755       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2756 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2757 echo "configure:2758: checking for libio.h" >&5
2758 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2759   echo $ac_n "(cached) $ac_c" 1>&6
2760 else
2761   cat > conftest.$ac_ext <<EOF
2762 #line 2763 "configure"
2763 #include "confdefs.h"
2764 #include <libio.h>
2765 EOF
2766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2767 { (eval echo configure:2768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2768 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2769 if test -z "$ac_err"; then
2770   rm -rf conftest*
2771   eval "ac_cv_header_$ac_safe=yes"
2772 else
2773   echo "$ac_err" >&5
2774   echo "configure: failed program was:" >&5
2775   cat conftest.$ac_ext >&5
2776   rm -rf conftest*
2777   eval "ac_cv_header_$ac_safe=no"
2778 fi
2779 rm -f conftest*
2780 fi
2781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2782   echo "$ac_t""yes" 1>&6
2783   has_libio=yes
2784 else
2785   echo "$ac_t""no" 1>&6
2786 has_libio=no
2787 fi
2788
2789
2790       # Need to check and see what version of glibc is being used. If
2791       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2792       # compile most of libio for linux systems.
2793       if test x$has_libio = x"yes"; then
2794         case "$target" in
2795           *-*-linux*)
2796               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2797 echo "configure:2798: checking for glibc version >= 2.2" >&5
2798               cat > conftest.$ac_ext <<EOF
2799 #line 2800 "configure"
2800 #include "confdefs.h"
2801
2802             #include <features.h>
2803               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2804                     ok
2805               #endif
2806               
2807 EOF
2808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2809   egrep "ok" >/dev/null 2>&1; then
2810   rm -rf conftest*
2811   glibc_satisfactory=yes
2812 else
2813   rm -rf conftest*
2814   glibc_satisfactory=no
2815 fi
2816 rm -f conftest*
2817
2818               echo "$ac_t""$glibc_satisfactory" 1>&6
2819             ;;
2820         esac
2821
2822         # XXX at the moment, admit defeat and force the recompilation
2823         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2824         glibc_satisfactory=no        
2825
2826         if test x$glibc_satisfactory = x"yes"; then
2827            need_libio=no
2828            need_wlibio=no        
2829         else
2830            need_libio=yes
2831            # bkoz XXX need to add checks to enable this
2832            # pme XXX here's a first pass at such a check
2833            if test x$enable_c_mbchar != xno; then
2834               need_wlibio=yes
2835            else
2836               need_wlibio=no
2837            fi
2838         fi
2839
2840       else
2841          # Using libio, but <libio.h> doesn't exist on the target system. . .
2842          need_libio=yes
2843          # bkoz XXX need to add checks to enable this
2844          # pme XXX here's a first pass at such a check
2845          if test x$enable_c_mbchar != xno; then
2846              need_wlibio=yes
2847          else
2848              need_wlibio=no
2849          fi
2850       fi
2851       ;;
2852     xstdio | x | xno | xnone | xyes)
2853       # default
2854       CSTDIO_H=config/io/c_io_stdio.h
2855       BASIC_FILE_H=config/io/basic_file_stdio.h
2856       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2857       echo "$ac_t""stdio" 1>&6
2858
2859       # We're not using stdio.
2860       need_libio=no
2861       need_wlibio=no
2862       ;;
2863     *)
2864       echo "$enable_cstdio is an unknown io package" 1>&2
2865       exit 1
2866       ;;
2867   esac
2868   
2869   
2870   
2871
2872   # 2000-08-04 bkoz hack
2873   CCODECVT_C=config/io/c_io_libio_codecvt.c
2874   
2875   # 2000-08-04 bkoz hack
2876
2877   
2878
2879 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2880   GLIBCPP_BUILD_LIBIO_TRUE=
2881   GLIBCPP_BUILD_LIBIO_FALSE='#'
2882 else
2883   GLIBCPP_BUILD_LIBIO_TRUE='#'
2884   GLIBCPP_BUILD_LIBIO_FALSE=
2885 fi
2886   
2887
2888 if test "$need_libio" = yes; then
2889   GLIBCPP_NEED_LIBIO_TRUE=
2890   GLIBCPP_NEED_LIBIO_FALSE='#'
2891 else
2892   GLIBCPP_NEED_LIBIO_TRUE='#'
2893   GLIBCPP_NEED_LIBIO_FALSE=
2894 fi
2895   
2896
2897 if test "$need_wlibio" = yes; then
2898   GLIBCPP_NEED_WLIBIO_TRUE=
2899   GLIBCPP_NEED_WLIBIO_FALSE='#'
2900 else
2901   GLIBCPP_NEED_WLIBIO_TRUE='#'
2902   GLIBCPP_NEED_WLIBIO_FALSE=
2903 fi
2904   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2905     libio_la=../libio/libio.la
2906   else
2907     libio_la=
2908   fi
2909   
2910
2911
2912   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2913 echo "configure:2914: checking for clocale to use" >&5
2914   # Check whether --enable-clocale or --disable-clocale was given.
2915 if test "${enable_clocale+set}" = set; then
2916   enableval="$enable_clocale"
2917   if test x$enable_clocale = xno; then
2918      enable_clocale=no
2919   fi
2920 else
2921   enable_clocale=no
2922 fi
2923
2924
2925   enable_clocale_flag=$enable_clocale
2926
2927       if test x$enable_clocale_flag = xno; then
2928     case x${target_os} in
2929       xlinux* | xgnu*)
2930         cat > conftest.$ac_ext <<EOF
2931 #line 2932 "configure"
2932 #include "confdefs.h"
2933
2934         #include <features.h>
2935         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2936           _GLIBCPP_ok
2937         #endif
2938         
2939 EOF
2940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2941   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
2942   rm -rf conftest*
2943   enable_clocale_flag=gnu
2944 else
2945   rm -rf conftest*
2946   enable_clocale_flag=generic
2947 fi
2948 rm -f conftest*
2949
2950
2951         # Test for bugs early in glibc-2.2.x series
2952         if test x$enable_clocale_flag = xgnu; then
2953           if test "$cross_compiling" = yes; then
2954   enable_clocale_flag=generic
2955 else
2956   cat > conftest.$ac_ext <<EOF
2957 #line 2958 "configure"
2958 #include "confdefs.h"
2959
2960           #define _GNU_SOURCE 1
2961           #include <locale.h>
2962           int main()
2963           {
2964             const char __one[] = "Äuglein Augmen";
2965             const char __two[] = "Äuglein";
2966             int i;
2967             int j;
2968             __locale_t  loc;
2969             __locale_t  loc_dup;
2970             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
2971             loc_dup = __duplocale(loc);
2972             i = __strcoll_l(__one, __two, loc);
2973             j = __strcoll_l(__one, __two, loc_dup);
2974             return 0;
2975           }
2976           
2977 EOF
2978 if { (eval echo configure:2979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2979 then
2980   enable_clocale_flag=gnu
2981 else
2982   echo "configure: failed program was:" >&5
2983   cat conftest.$ac_ext >&5
2984   rm -fr conftest*
2985   enable_clocale_flag=generic
2986 fi
2987 rm -fr conftest*
2988 fi
2989
2990         fi
2991
2992         # ... at some point put __strxfrm_l tests in as well.
2993         ;;
2994       *)
2995         enable_clocale_flag=generic
2996         ;;
2997     esac
2998   fi
2999
3000     # Check whether --enable-nls or --disable-nls was given.
3001 if test "${enable_nls+set}" = set; then
3002   enableval="$enable_nls"
3003   :
3004 else
3005   enable_nls=yes
3006 fi
3007
3008   USE_NLS=no
3009
3010     case x${enable_clocale_flag} in
3011     xgeneric)
3012       echo "$ac_t""generic" 1>&6
3013
3014       CLOCALE_H=config/locale/generic/c_locale.h
3015       CLOCALE_CC=config/locale/generic/c_locale.cc
3016       CCODECVT_H=config/locale/generic/codecvt_specializations.h
3017       CCOLLATE_CC=config/locale/generic/collate_members.cc
3018       CCTYPE_CC=config/locale/generic/ctype_members.cc
3019       CMESSAGES_H=config/locale/generic/messages_members.h
3020       CMESSAGES_CC=config/locale/generic/messages_members.cc
3021       CMONEY_CC=config/locale/generic/monetary_members.cc
3022       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3023       CTIME_CC=config/locale/generic/time_members.cc
3024       ;;
3025     xgnu)
3026       echo "$ac_t""gnu" 1>&6
3027
3028       # Declare intention to use gettext, and add support for specific
3029       # languages.
3030       # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3031       ALL_LINGUAS="de fr"
3032
3033       # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3034       # Extract the first word of "msgfmt", so it can be a program name with args.
3035 set dummy msgfmt; ac_word=$2
3036 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3037 echo "configure:3038: checking for $ac_word" >&5
3038 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3039   echo $ac_n "(cached) $ac_c" 1>&6
3040 else
3041   if test -n "$check_msgfmt"; then
3042   ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3043 else
3044   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3045   ac_dummy="$PATH"
3046   for ac_dir in $ac_dummy; do
3047     test -z "$ac_dir" && ac_dir=.
3048     if test -f $ac_dir/$ac_word; then
3049       ac_cv_prog_check_msgfmt="yes"
3050       break
3051     fi
3052   done
3053   IFS="$ac_save_ifs"
3054   test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3055 fi
3056 fi
3057 check_msgfmt="$ac_cv_prog_check_msgfmt"
3058 if test -n "$check_msgfmt"; then
3059   echo "$ac_t""$check_msgfmt" 1>&6
3060 else
3061   echo "$ac_t""no" 1>&6
3062 fi
3063
3064       if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3065         USE_NLS=yes
3066       fi
3067       # Export the build objects.
3068       for ling in $ALL_LINGUAS; do \
3069         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3070         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3071       done
3072       
3073       
3074
3075       CLOCALE_H=config/locale/gnu/c_locale.h
3076       CLOCALE_CC=config/locale/gnu/c_locale.cc
3077       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3078       CCOLLATE_CC=config/locale/gnu/collate_members.cc
3079       CCTYPE_CC=config/locale/gnu/ctype_members.cc
3080       CMESSAGES_H=config/locale/gnu/messages_members.h
3081       CMESSAGES_CC=config/locale/gnu/messages_members.cc
3082       CMONEY_CC=config/locale/gnu/monetary_members.cc
3083       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3084       CTIME_CC=config/locale/gnu/time_members.cc
3085       ;;
3086     xieee_1003.1-2001)
3087       echo "$ac_t""generic" 1>&6
3088
3089       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3090       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3091       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3092       CCOLLATE_CC=config/locale/generic/collate_members.cc
3093       CCTYPE_CC=config/locale/generic/ctype_members.cc
3094       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3095       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3096       CMONEY_CC=config/locale/generic/monetary_members.cc
3097       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3098       CTIME_CC=config/locale/generic/time_members.cc
3099       ;;
3100     *)
3101       echo "$enable_clocale is an unknown locale package" 1>&2
3102       exit 1
3103       ;;
3104   esac
3105
3106   # This is where the testsuite looks for locale catalogs, using the
3107   # -DLOCALEDIR define during testsuite compilation.
3108   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3109   
3110
3111   
3112   
3113   
3114   
3115   
3116   
3117   
3118   
3119   
3120   
3121   
3122
3123 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3124 if test "${enable_c_mbchar+set}" = set; then
3125   enableval="$enable_c_mbchar"
3126   case "$enableval" in
3127  yes) enable_c_mbchar=yes ;;
3128  no)  enable_c_mbchar=no ;;
3129  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3130  esac
3131 else
3132   enable_c_mbchar=yes
3133 fi
3134
3135   
3136   # Check whether --enable-c99 or --disable-c99 was given.
3137 if test "${enable_c99+set}" = set; then
3138   enableval="$enable_c99"
3139     case "$enableval" in
3140    yes) enable_c99=yes ;;
3141    no)  enable_c99=no ;;
3142    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3143    esac
3144 else
3145   enable_c99=yes
3146 fi
3147  
3148   
3149   ac_ext=C
3150 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3151 ac_cpp='$CXXCPP $CPPFLAGS'
3152 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3153 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3154 cross_compiling=$ac_cv_prog_cxx_cross
3155
3156
3157   # Check for the existence of <math.h> functions used if C99 is enabled.
3158   ac_c99_math=yes;
3159   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3160 echo "configure:3161: checking for ISO C99 support in <math.h>" >&5
3161   cat > conftest.$ac_ext <<EOF
3162 #line 3163 "configure"
3163 #include "confdefs.h"
3164 #include <math.h>
3165 int main() {
3166 fpclassify(0.0);
3167 ; return 0; }
3168 EOF
3169 if { (eval echo configure:3170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3170   :
3171 else
3172   echo "configure: failed program was:" >&5
3173   cat conftest.$ac_ext >&5
3174   rm -rf conftest*
3175   ac_c99_math=no
3176 fi
3177 rm -f conftest*
3178   cat > conftest.$ac_ext <<EOF
3179 #line 3180 "configure"
3180 #include "confdefs.h"
3181 #include <math.h>
3182 int main() {
3183 isfinite(0.0);
3184 ; return 0; }
3185 EOF
3186 if { (eval echo configure:3187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3187   :
3188 else
3189   echo "configure: failed program was:" >&5
3190   cat conftest.$ac_ext >&5
3191   rm -rf conftest*
3192   ac_c99_math=no
3193 fi
3194 rm -f conftest*
3195   cat > conftest.$ac_ext <<EOF
3196 #line 3197 "configure"
3197 #include "confdefs.h"
3198 #include <math.h>
3199 int main() {
3200 isinf(0.0);
3201 ; return 0; }
3202 EOF
3203 if { (eval echo configure:3204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3204   :
3205 else
3206   echo "configure: failed program was:" >&5
3207   cat conftest.$ac_ext >&5
3208   rm -rf conftest*
3209   ac_c99_math=no
3210 fi
3211 rm -f conftest*
3212   cat > conftest.$ac_ext <<EOF
3213 #line 3214 "configure"
3214 #include "confdefs.h"
3215 #include <math.h>
3216 int main() {
3217 isnan(0.0);
3218 ; return 0; }
3219 EOF
3220 if { (eval echo configure:3221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3221   :
3222 else
3223   echo "configure: failed program was:" >&5
3224   cat conftest.$ac_ext >&5
3225   rm -rf conftest*
3226   ac_c99_math=no
3227 fi
3228 rm -f conftest*
3229   cat > conftest.$ac_ext <<EOF
3230 #line 3231 "configure"
3231 #include "confdefs.h"
3232 #include <math.h>
3233 int main() {
3234 isnormal(0.0);
3235 ; return 0; }
3236 EOF
3237 if { (eval echo configure:3238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3238   :
3239 else
3240   echo "configure: failed program was:" >&5
3241   cat conftest.$ac_ext >&5
3242   rm -rf conftest*
3243   ac_c99_math=no
3244 fi
3245 rm -f conftest*
3246   cat > conftest.$ac_ext <<EOF
3247 #line 3248 "configure"
3248 #include "confdefs.h"
3249 #include <math.h>
3250 int main() {
3251 signbit(0.0);
3252 ; return 0; }
3253 EOF
3254 if { (eval echo configure:3255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3255   :
3256 else
3257   echo "configure: failed program was:" >&5
3258   cat conftest.$ac_ext >&5
3259   rm -rf conftest*
3260   ac_c99_math=no
3261 fi
3262 rm -f conftest*
3263   cat > conftest.$ac_ext <<EOF
3264 #line 3265 "configure"
3265 #include "confdefs.h"
3266 #include <math.h>
3267 int main() {
3268 isgreater(0.0,0.0);
3269 ; return 0; }
3270 EOF
3271 if { (eval echo configure:3272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3272   :
3273 else
3274   echo "configure: failed program was:" >&5
3275   cat conftest.$ac_ext >&5
3276   rm -rf conftest*
3277   ac_c99_math=no
3278 fi
3279 rm -f conftest*
3280   cat > conftest.$ac_ext <<EOF
3281 #line 3282 "configure"
3282 #include "confdefs.h"
3283 #include <math.h>
3284 int main() {
3285 isgreaterequal(0.0,0.0);
3286 ; return 0; }
3287 EOF
3288 if { (eval echo configure:3289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3289   :
3290 else
3291   echo "configure: failed program was:" >&5
3292   cat conftest.$ac_ext >&5
3293   rm -rf conftest*
3294   ac_c99_math=no
3295 fi
3296 rm -f conftest*
3297   cat > conftest.$ac_ext <<EOF
3298 #line 3299 "configure"
3299 #include "confdefs.h"
3300 #include <math.h>
3301 int main() {
3302 isless(0.0,0.0);
3303 ; return 0; }
3304 EOF
3305 if { (eval echo configure:3306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3306   :
3307 else
3308   echo "configure: failed program was:" >&5
3309   cat conftest.$ac_ext >&5
3310   rm -rf conftest*
3311   ac_c99_math=no
3312 fi
3313 rm -f conftest*
3314   cat > conftest.$ac_ext <<EOF
3315 #line 3316 "configure"
3316 #include "confdefs.h"
3317 #include <math.h>
3318 int main() {
3319 islessequal(0.0,0.0);
3320 ; return 0; }
3321 EOF
3322 if { (eval echo configure:3323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3323   :
3324 else
3325   echo "configure: failed program was:" >&5
3326   cat conftest.$ac_ext >&5
3327   rm -rf conftest*
3328   ac_c99_math=no
3329 fi
3330 rm -f conftest*
3331   cat > conftest.$ac_ext <<EOF
3332 #line 3333 "configure"
3333 #include "confdefs.h"
3334 #include <math.h>
3335 int main() {
3336 islessgreater(0.0,0.0);
3337 ; return 0; }
3338 EOF
3339 if { (eval echo configure:3340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3340   :
3341 else
3342   echo "configure: failed program was:" >&5
3343   cat conftest.$ac_ext >&5
3344   rm -rf conftest*
3345   ac_c99_math=no
3346 fi
3347 rm -f conftest*
3348   cat > conftest.$ac_ext <<EOF
3349 #line 3350 "configure"
3350 #include "confdefs.h"
3351 #include <math.h>
3352 int main() {
3353 isunordered(0.0,0.0);
3354 ; return 0; }
3355 EOF
3356 if { (eval echo configure:3357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3357   :
3358 else
3359   echo "configure: failed program was:" >&5
3360   cat conftest.$ac_ext >&5
3361   rm -rf conftest*
3362   ac_c99_math=no
3363 fi
3364 rm -f conftest*
3365   echo "$ac_t""$ac_c99_math" 1>&6
3366
3367   # Check for the existence in <stdio.h> of vscanf, et. al.
3368   ac_c99_stdio=yes;
3369   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3370 echo "configure:3371: checking for ISO C99 support in <stdio.h>" >&5
3371   cat > conftest.$ac_ext <<EOF
3372 #line 3373 "configure"
3373 #include "confdefs.h"
3374 #include <stdio.h>
3375 int main() {
3376 snprintf("12", 0, "%i");
3377 ; return 0; }
3378 EOF
3379 if { (eval echo configure:3380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3380   :
3381 else
3382   echo "configure: failed program was:" >&5
3383   cat conftest.$ac_ext >&5
3384   rm -rf conftest*
3385   ac_c99_stdio=no
3386 fi
3387 rm -f conftest*
3388   cat > conftest.$ac_ext <<EOF
3389 #line 3390 "configure"
3390 #include "confdefs.h"
3391 #include <stdio.h>
3392                   #include <stdarg.h>
3393                   void foo(char* fmt, ...)
3394                   {va_list args; va_start(args, fmt);
3395                   vfscanf(stderr, "%i", args);}
3396 int main() {
3397
3398 ; return 0; }
3399 EOF
3400 if { (eval echo configure:3401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3401   :
3402 else
3403   echo "configure: failed program was:" >&5
3404   cat conftest.$ac_ext >&5
3405   rm -rf conftest*
3406   ac_c99_stdio=no
3407 fi
3408 rm -f conftest*
3409   cat > conftest.$ac_ext <<EOF
3410 #line 3411 "configure"
3411 #include "confdefs.h"
3412 #include <stdio.h>
3413                   #include <stdarg.h>
3414                   void foo(char* fmt, ...)
3415                   {va_list args; va_start(args, fmt);
3416                   vscanf("%i", args);}
3417 int main() {
3418
3419 ; return 0; }
3420 EOF
3421 if { (eval echo configure:3422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3422   :
3423 else
3424   echo "configure: failed program was:" >&5
3425   cat conftest.$ac_ext >&5
3426   rm -rf conftest*
3427   ac_c99_stdio=no
3428 fi
3429 rm -f conftest*
3430   cat > conftest.$ac_ext <<EOF
3431 #line 3432 "configure"
3432 #include "confdefs.h"
3433 #include <stdio.h>
3434                   #include <stdarg.h>
3435                   void foo(char* fmt, ...)
3436                   {va_list args; va_start(args, fmt);
3437                   vsnprintf(fmt, 0, "%i", args);}
3438 int main() {
3439
3440 ; return 0; }
3441 EOF
3442 if { (eval echo configure:3443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3443   :
3444 else
3445   echo "configure: failed program was:" >&5
3446   cat conftest.$ac_ext >&5
3447   rm -rf conftest*
3448   ac_c99_stdio=no
3449 fi
3450 rm -f conftest*
3451   cat > conftest.$ac_ext <<EOF
3452 #line 3453 "configure"
3453 #include "confdefs.h"
3454 #include <stdio.h>
3455                   #include <stdarg.h>
3456                   void foo(char* fmt, ...)
3457                   {va_list args; va_start(args, fmt);
3458                   vsscanf(fmt, "%i", args);}
3459 int main() {
3460
3461 ; return 0; }
3462 EOF
3463 if { (eval echo configure:3464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3464   :
3465 else
3466   echo "configure: failed program was:" >&5
3467   cat conftest.$ac_ext >&5
3468   rm -rf conftest*
3469   ac_c99_stdio=no
3470 fi
3471 rm -f conftest*
3472   echo "$ac_t""$ac_c99_stdio" 1>&6
3473
3474   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3475   ac_c99_stdlib=yes;
3476   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3477 echo "configure:3478: checking for lldiv_t declaration" >&5
3478   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3479   echo $ac_n "(cached) $ac_c" 1>&6
3480 else
3481   
3482   cat > conftest.$ac_ext <<EOF
3483 #line 3484 "configure"
3484 #include "confdefs.h"
3485 #include <stdlib.h>
3486 int main() {
3487  lldiv_t mydivt;
3488 ; return 0; }
3489 EOF
3490 if { (eval echo configure:3491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3491   rm -rf conftest*
3492   ac_c99_lldiv_t=yes
3493 else
3494   echo "configure: failed program was:" >&5
3495   cat conftest.$ac_ext >&5
3496   rm -rf conftest*
3497   ac_c99_lldiv_t=no
3498 fi
3499 rm -f conftest*
3500   
3501 fi
3502
3503   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3504
3505   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3506 echo "configure:3507: checking for ISO C99 support in <stdlib.h>" >&5
3507   cat > conftest.$ac_ext <<EOF
3508 #line 3509 "configure"
3509 #include "confdefs.h"
3510 #include <stdlib.h>
3511 int main() {
3512 char* tmp; strtof("gnu", &tmp);
3513 ; return 0; }
3514 EOF
3515 if { (eval echo configure:3516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3516   :
3517 else
3518   echo "configure: failed program was:" >&5
3519   cat conftest.$ac_ext >&5
3520   rm -rf conftest*
3521   ac_c99_stdlib=no
3522 fi
3523 rm -f conftest*
3524   cat > conftest.$ac_ext <<EOF
3525 #line 3526 "configure"
3526 #include "confdefs.h"
3527 #include <stdlib.h>
3528 int main() {
3529 char* tmp; strtold("gnu", &tmp);
3530 ; return 0; }
3531 EOF
3532 if { (eval echo configure:3533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3533   :
3534 else
3535   echo "configure: failed program was:" >&5
3536   cat conftest.$ac_ext >&5
3537   rm -rf conftest*
3538   ac_c99_stdlib=no
3539 fi
3540 rm -f conftest*
3541   cat > conftest.$ac_ext <<EOF
3542 #line 3543 "configure"
3543 #include "confdefs.h"
3544 #include <stdlib.h>
3545 int main() {
3546 llabs(10);
3547 ; return 0; }
3548 EOF
3549 if { (eval echo configure:3550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3550   :
3551 else
3552   echo "configure: failed program was:" >&5
3553   cat conftest.$ac_ext >&5
3554   rm -rf conftest*
3555   ac_c99_stdlib=no
3556 fi
3557 rm -f conftest*
3558   cat > conftest.$ac_ext <<EOF
3559 #line 3560 "configure"
3560 #include "confdefs.h"
3561 #include <stdlib.h>
3562 int main() {
3563 lldiv(10,1);
3564 ; return 0; }
3565 EOF
3566 if { (eval echo configure:3567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3567   :
3568 else
3569   echo "configure: failed program was:" >&5
3570   cat conftest.$ac_ext >&5
3571   rm -rf conftest*
3572   ac_c99_stdlib=no
3573 fi
3574 rm -f conftest*
3575   cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3578 #include <stdlib.h>
3579 int main() {
3580 atoll("10");
3581 ; return 0; }
3582 EOF
3583 if { (eval echo configure:3584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3584   :
3585 else
3586   echo "configure: failed program was:" >&5
3587   cat conftest.$ac_ext >&5
3588   rm -rf conftest*
3589   ac_c99_stdlib=no
3590 fi
3591 rm -f conftest*
3592   cat > conftest.$ac_ext <<EOF
3593 #line 3594 "configure"
3594 #include "confdefs.h"
3595 #include <stdlib.h>
3596 int main() {
3597 _Exit(0);
3598 ; return 0; }
3599 EOF
3600 if { (eval echo configure:3601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3601   :
3602 else
3603   echo "configure: failed program was:" >&5
3604   cat conftest.$ac_ext >&5
3605   rm -rf conftest*
3606   ac_c99_stdlib=no
3607 fi
3608 rm -f conftest*
3609   if test x"$ac_c99_lldiv_t" = x"no"; then
3610     ac_c99_stdlib=no; 
3611   fi; 
3612   echo "$ac_t""$ac_c99_stdlib" 1>&6
3613
3614   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3615   # XXX the wchar.h checks should be rolled into the general C99 bits.
3616   ac_c99_wchar=yes;
3617   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3618 echo "configure:3619: checking for additional ISO C99 support in <wchar.h>" >&5
3619   cat > conftest.$ac_ext <<EOF
3620 #line 3621 "configure"
3621 #include "confdefs.h"
3622 #include <wchar.h>
3623 int main() {
3624 wcstold(L"10.0", NULL);
3625 ; return 0; }
3626 EOF
3627 if { (eval echo configure:3628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3628   :
3629 else
3630   echo "configure: failed program was:" >&5
3631   cat conftest.$ac_ext >&5
3632   rm -rf conftest*
3633   ac_c99_wchar=no
3634 fi
3635 rm -f conftest*
3636   cat > conftest.$ac_ext <<EOF
3637 #line 3638 "configure"
3638 #include "confdefs.h"
3639 #include <wchar.h>
3640 int main() {
3641 wcstoll(L"10", NULL, 10);
3642 ; return 0; }
3643 EOF
3644 if { (eval echo configure:3645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3645   :
3646 else
3647   echo "configure: failed program was:" >&5
3648   cat conftest.$ac_ext >&5
3649   rm -rf conftest*
3650   ac_c99_wchar=no
3651 fi
3652 rm -f conftest*
3653   cat > conftest.$ac_ext <<EOF
3654 #line 3655 "configure"
3655 #include "confdefs.h"
3656 #include <wchar.h>
3657 int main() {
3658 wcstoull(L"10", NULL, 10);
3659 ; return 0; }
3660 EOF
3661 if { (eval echo configure:3662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3662   :
3663 else
3664   echo "configure: failed program was:" >&5
3665   cat conftest.$ac_ext >&5
3666   rm -rf conftest*
3667   ac_c99_wchar=no
3668 fi
3669 rm -f conftest*
3670   echo "$ac_t""$ac_c99_wchar" 1>&6
3671
3672   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3673 echo "configure:3674: checking for enabled ISO C99 support" >&5
3674   if test x"$ac_c99_math" = x"no" ||
3675      test x"$ac_c99_stdio" = x"no" ||
3676      test x"$ac_c99_stdlib" = x"no" ||
3677      test x"$ac_c99_wchar" = x"no"; then
3678     enable_c99=no; 
3679   fi; 
3680   echo "$ac_t""$enable_c99" 1>&6
3681
3682   # Option parsed, now set things appropriately
3683   if test x"$enable_c99" = x"yes"; then
3684     cat >> confdefs.h <<\EOF
3685 #define _GLIBCPP_USE_C99 1
3686 EOF
3687
3688   fi
3689
3690   ac_ext=c
3691 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3692 ac_cpp='$CPP $CPPFLAGS'
3693 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3694 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3695 cross_compiling=$ac_cv_prog_cc_cross
3696
3697
3698   
3699   # Check whether --enable-long-long or --disable-long-long was given.
3700 if test "${enable_long_long+set}" = set; then
3701   enableval="$enable_long_long"
3702     case "$enableval" in
3703    yes) enable_long_long=yes ;;
3704    no)  enable_long_long=no ;;
3705    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3706    esac
3707 else
3708   enable_long_long=yes
3709 fi
3710
3711   
3712   ac_ext=C
3713 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3714 ac_cpp='$CXXCPP $CPPFLAGS'
3715 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3716 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3717 cross_compiling=$ac_cv_prog_cxx_cross
3718
3719
3720   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3721 echo "configure:3722: checking for enabled long long I/O support" >&5
3722   # iostreams require strtoll, strtoull to compile
3723   cat > conftest.$ac_ext <<EOF
3724 #line 3725 "configure"
3725 #include "confdefs.h"
3726 #include <stdlib.h>
3727 int main() {
3728 char* tmp; strtoll("gnu", &tmp, 10);
3729 ; return 0; }
3730 EOF
3731 if { (eval echo configure:3732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3732   :
3733 else
3734   echo "configure: failed program was:" >&5
3735   cat conftest.$ac_ext >&5
3736   rm -rf conftest*
3737   enable_long_long=no
3738 fi
3739 rm -f conftest*
3740   cat > conftest.$ac_ext <<EOF
3741 #line 3742 "configure"
3742 #include "confdefs.h"
3743 #include <stdlib.h>
3744 int main() {
3745 char* tmp; strtoull("gnu", &tmp, 10);
3746 ; return 0; }
3747 EOF
3748 if { (eval echo configure:3749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3749   :
3750 else
3751   echo "configure: failed program was:" >&5
3752   cat conftest.$ac_ext >&5
3753   rm -rf conftest*
3754   enable_long_long=no
3755 fi
3756 rm -f conftest*
3757
3758   # Option parsed, now set things appropriately
3759   if test x"$enable_long_long" = xyes; then
3760     cat >> confdefs.h <<\EOF
3761 #define _GLIBCPP_USE_LONG_LONG 1
3762 EOF
3763
3764   fi
3765   echo "$ac_t""$enable_long_long" 1>&6
3766
3767   ac_ext=c
3768 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3769 ac_cpp='$CPP $CPPFLAGS'
3770 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3771 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3772 cross_compiling=$ac_cv_prog_cc_cross
3773
3774
3775 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3776 echo "configure:3777: checking for c header strategy to use" >&5
3777 # Check whether --enable-cheaders or --disable-cheaders was given.
3778 if test "${enable_cheaders+set}" = set; then
3779   enableval="$enable_cheaders"
3780   
3781   case "$enableval" in
3782    c) 
3783         enable_cheaders=c 
3784         ;;
3785    c_std)  
3786         enable_cheaders=c_std 
3787         ;;
3788    c_shadow)  
3789         enable_cheaders=c_shadow 
3790         ;;
3791    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3792         ;;
3793   esac
3794 else
3795   enable_cheaders=c_std
3796 fi
3797
3798   echo "$ac_t""$enable_cheaders" 1>&6
3799
3800     case "$enable_cheaders" in
3801     c_shadow) 
3802         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3803         ;;
3804     c_std)   
3805         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3806         ;;
3807     c)   
3808         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3809         ;;
3810   esac
3811
3812   
3813   
3814
3815 if test "$enable_cheaders" = c; then
3816   GLIBCPP_C_HEADERS_C_TRUE=
3817   GLIBCPP_C_HEADERS_C_FALSE='#'
3818 else
3819   GLIBCPP_C_HEADERS_C_TRUE='#'
3820   GLIBCPP_C_HEADERS_C_FALSE=
3821 fi
3822   
3823
3824 if test "$enable_cheaders" = c_std; then
3825   GLIBCPP_C_HEADERS_C_STD_TRUE=
3826   GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3827 else
3828   GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3829   GLIBCPP_C_HEADERS_C_STD_FALSE=
3830 fi
3831   
3832
3833 if test "$c_compatibility" = yes; then
3834   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3835   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3836 else
3837   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3838   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3839 fi
3840
3841
3842   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3843 echo "configure:3844: checking for thread model used by GCC" >&5
3844   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3845   echo "$ac_t""$target_thread_file" 1>&6
3846
3847   if test $target_thread_file != single; then
3848     cat >> confdefs.h <<\EOF
3849 #define HAVE_GTHR_DEFAULT 1
3850 EOF
3851
3852     cat >> confdefs.h <<\EOF
3853 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3854 EOF
3855
3856   fi
3857
3858   glibcpp_thread_h=gthr-$target_thread_file.h
3859   
3860
3861 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3862 if test "${enable_cxx_flags+set}" = set; then
3863   enableval="$enable_cxx_flags"
3864   case "x$enableval" in
3865  xyes)   
3866         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3867  xno|x)  
3868         enable_cxx_flags='' ;;
3869  *)      
3870         enable_cxx_flags="$enableval" ;;
3871  esac
3872 else
3873   enable_cxx_flags='none'
3874 fi
3875
3876
3877 if test "$enable_cxx_flags" = "none"; then 
3878   enable_cxx_flags=''; 
3879 fi
3880
3881 if test -n "$enable_cxx_flags"; then
3882     for f in $enable_cxx_flags; do
3883         case "$f" in
3884             -fhonor-std)  ;;
3885             -*)  ;;
3886             *)   # and we're trying to pass /what/ exactly?
3887                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3888         esac
3889     done
3890 fi
3891 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3892
3893
3894
3895   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3896 echo "configure:3897: checking for exception model to use" >&5
3897   
3898   ac_ext=C
3899 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3900 ac_cpp='$CXXCPP $CPPFLAGS'
3901 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3902 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3903 cross_compiling=$ac_cv_prog_cxx_cross
3904
3905   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3906 if test "${enable_sjlj_exceptions+set}" = set; then
3907   enableval="$enable_sjlj_exceptions"
3908   :
3909 else
3910                        cat > conftest.$ac_ext << EOF
3911 #line 3912 "configure"
3912 struct S { ~S(); };
3913 void bar();
3914 void foo()
3915 {
3916   S s;
3917   bar();
3918 }
3919 EOF
3920    old_CXXFLAGS="$CXXFLAGS"  
3921    CXXFLAGS=-S
3922    if { (eval echo configure:3923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3923      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3924        enable_sjlj_exceptions=yes
3925      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3926        enable_sjlj_exceptions=no
3927      fi
3928    fi
3929    CXXFLAGS="$old_CXXFLAGS"
3930    rm -f conftest*
3931 fi
3932
3933    if test x$enable_sjlj_exceptions = xyes; then
3934      cat >> confdefs.h <<\EOF
3935 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3936 EOF
3937
3938      ac_exception_model_name=sjlj
3939    elif test x$enable_sjlj_exceptions = xno; then
3940      ac_exception_model_name="call frame"
3941    else
3942      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3943    fi
3944    ac_ext=c
3945 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3946 ac_cpp='$CPP $CPPFLAGS'
3947 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3948 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3949 cross_compiling=$ac_cv_prog_cc_cross
3950
3951    echo "$ac_t""$ac_exception_model_name" 1>&6
3952
3953
3954   echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
3955 echo "configure:3956: checking for use of libunwind" >&5
3956   # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
3957 if test "${enable_libunwind_exceptions+set}" = set; then
3958   enableval="$enable_libunwind_exceptions"
3959   use_libunwind_exceptions=$enableval
3960 else
3961   use_libunwind_exceptions=no
3962 fi
3963
3964   echo "$ac_t""$use_libunwind_exceptions" 1>&6
3965     if test x"$use_libunwind_exceptions" = xyes; then
3966     LIBUNWIND_FLAG="-lunwind"
3967   else
3968     LIBUNWIND_FLAG=""
3969   fi
3970   
3971
3972 # Check whether --enable-concept-checks or --disable-concept-checks was given.
3973 if test "${enable_concept_checks+set}" = set; then
3974   enableval="$enable_concept_checks"
3975   case "$enableval" in
3976  yes) enable_concept_checks=yes ;;
3977  no)  enable_concept_checks=no ;;
3978  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
3979  esac
3980 else
3981   enable_concept_checks=no
3982 fi
3983 if test x"$enable_concept_checks" = xyes; then
3984   cat >> confdefs.h <<\EOF
3985 #define _GLIBCPP_CONCEPT_CHECKS 1
3986 EOF
3987
3988 fi
3989
3990
3991 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
3992 for ac_hdr in string.h stdlib.h
3993 do
3994 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3995 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3996 echo "configure:3997: checking for $ac_hdr" >&5
3997 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3998   echo $ac_n "(cached) $ac_c" 1>&6
3999 else
4000   cat > conftest.$ac_ext <<EOF
4001 #line 4002 "configure"
4002 #include "confdefs.h"
4003 #include <$ac_hdr>
4004 EOF
4005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4006 { (eval echo configure:4007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4007 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4008 if test -z "$ac_err"; then
4009   rm -rf conftest*
4010   eval "ac_cv_header_$ac_safe=yes"
4011 else
4012   echo "$ac_err" >&5
4013   echo "configure: failed program was:" >&5
4014   cat conftest.$ac_ext >&5
4015   rm -rf conftest*
4016   eval "ac_cv_header_$ac_safe=no"
4017 fi
4018 rm -f conftest*
4019 fi
4020 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4021   echo "$ac_t""yes" 1>&6
4022     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4023   cat >> confdefs.h <<EOF
4024 #define $ac_tr_hdr 1
4025 EOF
4026  
4027 else
4028   echo "$ac_t""no" 1>&6
4029 fi
4030 done
4031
4032
4033 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4034
4035   # We are being configured with some form of cross compiler.
4036   GLIBCPP_IS_CROSS_COMPILING=1
4037
4038   # This lets us hard-code the functionality we know we'll have in the cross
4039   # target environment.  "Let" is a sugar-coated word placed on an especially
4040   # dull and tedious hack, actually.
4041   #
4042   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4043   # that involve linking, can't be used:
4044   #    "cannot open sim-crt0.o"
4045   #    "cannot open crt0.o"
4046   # etc.  All this is because there currently exists no unified, consistent
4047   # way for top level CC information to be passed down to target directories:
4048   # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4049   # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4050   # crosses can be removed.
4051
4052   # If Canadian cross, then don't pick up tools from the build directory.
4053   # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4054   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4055     CANADIAN=yes
4056   else
4057     CANADIAN=no
4058   fi
4059
4060   # Construct crosses by hand, eliminating bits that need ld...
4061   # GLIBCPP_CHECK_COMPILER_FEATURES
4062   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4063   # GLIBCPP_CHECK_MATH_SUPPORT
4064
4065   case "$target_alias" in
4066     *-linux*)
4067       os_include_dir="os/gnu-linux"
4068       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4069         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4070         fp.h locale.h float.h inttypes.h
4071 do
4072 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4073 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4074 echo "configure:4075: checking for $ac_hdr" >&5
4075 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4076   echo $ac_n "(cached) $ac_c" 1>&6
4077 else
4078   cat > conftest.$ac_ext <<EOF
4079 #line 4080 "configure"
4080 #include "confdefs.h"
4081 #include <$ac_hdr>
4082 EOF
4083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4084 { (eval echo configure:4085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4085 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4086 if test -z "$ac_err"; then
4087   rm -rf conftest*
4088   eval "ac_cv_header_$ac_safe=yes"
4089 else
4090   echo "$ac_err" >&5
4091   echo "configure: failed program was:" >&5
4092   cat conftest.$ac_ext >&5
4093   rm -rf conftest*
4094   eval "ac_cv_header_$ac_safe=no"
4095 fi
4096 rm -f conftest*
4097 fi
4098 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4099   echo "$ac_t""yes" 1>&6
4100     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4101   cat >> confdefs.h <<EOF
4102 #define $ac_tr_hdr 1
4103 EOF
4104  
4105 else
4106   echo "$ac_t""no" 1>&6
4107 fi
4108 done
4109
4110       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4111       
4112       
4113   # If we're not using GNU ld, then there's no point in even trying these
4114   # tests.  Check for that first.  We should have already tested for gld
4115   # by now (in libtool), but require it now just to be safe...
4116   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4117   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4118   
4119
4120   # The name set by libtool depends on the version of libtool.  Shame on us
4121   # for depending on an impl detail, but c'est la vie.  Older versions used
4122   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4123   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4124   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4125   # set (hence we're using an older libtool), then set it.
4126   if test x${with_gnu_ld+set} != xset; then
4127     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4128       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4129       with_gnu_ld=no
4130     else
4131       with_gnu_ld=$ac_cv_prog_gnu_ld
4132     fi
4133   fi
4134
4135   # Start by getting the version number.  I think the libtool test already
4136   # does some of this, but throws away the result.
4137   
4138   ldver=`$LD --version 2>/dev/null | head -1 | \
4139          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4140   
4141   glibcpp_gnu_ld_version=`echo $ldver | \
4142          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4143
4144   # Set --gc-sections.
4145   if test "$with_gnu_ld" = "notbroken"; then
4146     # GNU ld it is!  Joy and bunny rabbits!
4147
4148     # All these tests are for C++; save the language and the compiler flags.
4149     # Need to do this so that g++ won't try to link in libstdc++
4150     ac_test_CFLAGS="${CFLAGS+set}"
4151     ac_save_CFLAGS="$CFLAGS"
4152     CFLAGS='-x c++  -Wl,--gc-sections'
4153
4154     # Check for -Wl,--gc-sections
4155     # XXX This test is broken at the moment, as symbols required for
4156     # linking are now in libsupc++ (not built yet.....). In addition, 
4157     # this test has cored on solaris in the past. In addition,
4158     # --gc-sections doesn't really work at the moment (keeps on discarding
4159     # used sections, first .eh_frame and now some of the glibc sections for
4160     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4161     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4162 echo "configure:4163: checking for ld that supports -Wl,--gc-sections" >&5
4163     if test "$cross_compiling" = yes; then
4164   ac_sectionLDflags=yes
4165 else
4166   cat > conftest.$ac_ext <<EOF
4167 #line 4168 "configure"
4168 #include "confdefs.h"
4169
4170      int main(void) 
4171      {
4172        try { throw 1; }
4173        catch (...) { };
4174        return 0;
4175      }
4176     
4177 EOF
4178 if { (eval echo configure:4179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4179 then
4180   ac_sectionLDflags=yes
4181 else
4182   echo "configure: failed program was:" >&5
4183   cat conftest.$ac_ext >&5
4184   rm -fr conftest*
4185   ac_sectionLDflags=no
4186 fi
4187 rm -fr conftest*
4188 fi
4189
4190     if test "$ac_test_CFLAGS" = set; then
4191       CFLAGS="$ac_save_CFLAGS"
4192     else
4193       # this is the suspicious part
4194       CFLAGS=''
4195     fi
4196     if test "$ac_sectionLDflags" = "yes"; then
4197       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4198     fi
4199     echo "$ac_t""$ac_sectionLDflags" 1>&6
4200   fi
4201
4202   # Set linker optimization flags.
4203   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4204     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4205   fi
4206
4207   
4208   
4209
4210       
4211     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4212 echo "configure:4213: checking for main in -lm" >&5
4213 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4214 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4215   echo $ac_n "(cached) $ac_c" 1>&6
4216 else
4217   ac_save_LIBS="$LIBS"
4218 LIBS="-lm  $LIBS"
4219 cat > conftest.$ac_ext <<EOF
4220 #line 4221 "configure"
4221 #include "confdefs.h"
4222
4223 int main() {
4224 main()
4225 ; return 0; }
4226 EOF
4227 if { (eval echo configure:4228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4228   rm -rf conftest*
4229   eval "ac_cv_lib_$ac_lib_var=yes"
4230 else
4231   echo "configure: failed program was:" >&5
4232   cat conftest.$ac_ext >&5
4233   rm -rf conftest*
4234   eval "ac_cv_lib_$ac_lib_var=no"
4235 fi
4236 rm -f conftest*
4237 LIBS="$ac_save_LIBS"
4238
4239 fi
4240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4241   echo "$ac_t""yes" 1>&6
4242     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4243     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4244   cat >> confdefs.h <<EOF
4245 #define $ac_tr_lib 1
4246 EOF
4247
4248   LIBS="-lm $LIBS"
4249
4250 else
4251   echo "$ac_t""no" 1>&6
4252 fi
4253
4254   for ac_func in nan copysignf
4255 do
4256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4257 echo "configure:4258: checking for $ac_func" >&5
4258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4259   echo $ac_n "(cached) $ac_c" 1>&6
4260 else
4261   cat > conftest.$ac_ext <<EOF
4262 #line 4263 "configure"
4263 #include "confdefs.h"
4264 /* System header to define __stub macros and hopefully few prototypes,
4265     which can conflict with char $ac_func(); below.  */
4266 #include <assert.h>
4267 /* Override any gcc2 internal prototype to avoid an error.  */
4268 /* We use char because int might match the return type of a gcc2
4269     builtin and then its argument prototype would still apply.  */
4270 char $ac_func();
4271
4272 int main() {
4273
4274 /* The GNU C library defines this for functions which it implements
4275     to always fail with ENOSYS.  Some functions are actually named
4276     something starting with __ and the normal name is an alias.  */
4277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4278 choke me
4279 #else
4280 $ac_func();
4281 #endif
4282
4283 ; return 0; }
4284 EOF
4285 if { (eval echo configure:4286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4286   rm -rf conftest*
4287   eval "ac_cv_func_$ac_func=yes"
4288 else
4289   echo "configure: failed program was:" >&5
4290   cat conftest.$ac_ext >&5
4291   rm -rf conftest*
4292   eval "ac_cv_func_$ac_func=no"
4293 fi
4294 rm -f conftest*
4295 fi
4296
4297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4298   echo "$ac_t""yes" 1>&6
4299     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4300   cat >> confdefs.h <<EOF
4301 #define $ac_tr_func 1
4302 EOF
4303  
4304 else
4305   echo "$ac_t""no" 1>&6
4306 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4307 fi
4308 done
4309
4310
4311     for ac_func in __signbit
4312 do
4313 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4314 echo "configure:4315: checking for $ac_func" >&5
4315 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4316   echo $ac_n "(cached) $ac_c" 1>&6
4317 else
4318   cat > conftest.$ac_ext <<EOF
4319 #line 4320 "configure"
4320 #include "confdefs.h"
4321 /* System header to define __stub macros and hopefully few prototypes,
4322     which can conflict with char $ac_func(); below.  */
4323 #include <assert.h>
4324 /* Override any gcc2 internal prototype to avoid an error.  */
4325 /* We use char because int might match the return type of a gcc2
4326     builtin and then its argument prototype would still apply.  */
4327 char $ac_func();
4328
4329 int main() {
4330
4331 /* The GNU C library defines this for functions which it implements
4332     to always fail with ENOSYS.  Some functions are actually named
4333     something starting with __ and the normal name is an alias.  */
4334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4335 choke me
4336 #else
4337 $ac_func();
4338 #endif
4339
4340 ; return 0; }
4341 EOF
4342 if { (eval echo configure:4343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4343   rm -rf conftest*
4344   eval "ac_cv_func_$ac_func=yes"
4345 else
4346   echo "configure: failed program was:" >&5
4347   cat conftest.$ac_ext >&5
4348   rm -rf conftest*
4349   eval "ac_cv_func_$ac_func=no"
4350 fi
4351 rm -f conftest*
4352 fi
4353
4354 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4355   echo "$ac_t""yes" 1>&6
4356     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4357   cat >> confdefs.h <<EOF
4358 #define $ac_tr_func 1
4359 EOF
4360  
4361 else
4362   echo "$ac_t""no" 1>&6
4363 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4364 fi
4365 done
4366
4367   for ac_func in __signbitf
4368 do
4369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4370 echo "configure:4371: checking for $ac_func" >&5
4371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4372   echo $ac_n "(cached) $ac_c" 1>&6
4373 else
4374   cat > conftest.$ac_ext <<EOF
4375 #line 4376 "configure"
4376 #include "confdefs.h"
4377 /* System header to define __stub macros and hopefully few prototypes,
4378     which can conflict with char $ac_func(); below.  */
4379 #include <assert.h>
4380 /* Override any gcc2 internal prototype to avoid an error.  */
4381 /* We use char because int might match the return type of a gcc2
4382     builtin and then its argument prototype would still apply.  */
4383 char $ac_func();
4384
4385 int main() {
4386
4387 /* The GNU C library defines this for functions which it implements
4388     to always fail with ENOSYS.  Some functions are actually named
4389     something starting with __ and the normal name is an alias.  */
4390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4391 choke me
4392 #else
4393 $ac_func();
4394 #endif
4395
4396 ; return 0; }
4397 EOF
4398 if { (eval echo configure:4399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4399   rm -rf conftest*
4400   eval "ac_cv_func_$ac_func=yes"
4401 else
4402   echo "configure: failed program was:" >&5
4403   cat conftest.$ac_ext >&5
4404   rm -rf conftest*
4405   eval "ac_cv_func_$ac_func=no"
4406 fi
4407 rm -f conftest*
4408 fi
4409
4410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4411   echo "$ac_t""yes" 1>&6
4412     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4413   cat >> confdefs.h <<EOF
4414 #define $ac_tr_func 1
4415 EOF
4416  
4417 else
4418   echo "$ac_t""no" 1>&6
4419 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4420 fi
4421 done
4422
4423
4424           if test x$ac_cv_func_copysignl = x"yes"; then
4425     for ac_func in __signbitl
4426 do
4427 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4428 echo "configure:4429: checking for $ac_func" >&5
4429 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4430   echo $ac_n "(cached) $ac_c" 1>&6
4431 else
4432   cat > conftest.$ac_ext <<EOF
4433 #line 4434 "configure"
4434 #include "confdefs.h"
4435 /* System header to define __stub macros and hopefully few prototypes,
4436     which can conflict with char $ac_func(); below.  */
4437 #include <assert.h>
4438 /* Override any gcc2 internal prototype to avoid an error.  */
4439 /* We use char because int might match the return type of a gcc2
4440     builtin and then its argument prototype would still apply.  */
4441 char $ac_func();
4442
4443 int main() {
4444
4445 /* The GNU C library defines this for functions which it implements
4446     to always fail with ENOSYS.  Some functions are actually named
4447     something starting with __ and the normal name is an alias.  */
4448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4449 choke me
4450 #else
4451 $ac_func();
4452 #endif
4453
4454 ; return 0; }
4455 EOF
4456 if { (eval echo configure:4457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4457   rm -rf conftest*
4458   eval "ac_cv_func_$ac_func=yes"
4459 else
4460   echo "configure: failed program was:" >&5
4461   cat conftest.$ac_ext >&5
4462   rm -rf conftest*
4463   eval "ac_cv_func_$ac_func=no"
4464 fi
4465 rm -f conftest*
4466 fi
4467
4468 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4469   echo "$ac_t""yes" 1>&6
4470     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4471   cat >> confdefs.h <<EOF
4472 #define $ac_tr_func 1
4473 EOF
4474  
4475 else
4476   echo "$ac_t""no" 1>&6
4477 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4478 fi
4479 done
4480
4481   fi
4482
4483   
4484
4485       
4486
4487       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4488 echo "configure:4489: checking for mbstate_t" >&5
4489   cat > conftest.$ac_ext <<EOF
4490 #line 4491 "configure"
4491 #include "confdefs.h"
4492 #include <wchar.h>
4493 int main() {
4494 mbstate_t teststate;
4495 ; return 0; }
4496 EOF
4497 if { (eval echo configure:4498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4498   rm -rf conftest*
4499   have_mbstate_t=yes
4500 else
4501   echo "configure: failed program was:" >&5
4502   cat conftest.$ac_ext >&5
4503   rm -rf conftest*
4504   have_mbstate_t=no
4505 fi
4506 rm -f conftest*
4507   echo "$ac_t""$have_mbstate_t" 1>&6
4508   if test x"$have_mbstate_t" = xyes; then
4509     cat >> confdefs.h <<\EOF
4510 #define HAVE_MBSTATE_T 1
4511 EOF
4512
4513   fi
4514
4515     for ac_hdr in wchar.h
4516 do
4517 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4518 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4519 echo "configure:4520: checking for $ac_hdr" >&5
4520 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4521   echo $ac_n "(cached) $ac_c" 1>&6
4522 else
4523   cat > conftest.$ac_ext <<EOF
4524 #line 4525 "configure"
4525 #include "confdefs.h"
4526 #include <$ac_hdr>
4527 EOF
4528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4529 { (eval echo configure:4530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4531 if test -z "$ac_err"; then
4532   rm -rf conftest*
4533   eval "ac_cv_header_$ac_safe=yes"
4534 else
4535   echo "$ac_err" >&5
4536   echo "configure: failed program was:" >&5
4537   cat conftest.$ac_ext >&5
4538   rm -rf conftest*
4539   eval "ac_cv_header_$ac_safe=no"
4540 fi
4541 rm -f conftest*
4542 fi
4543 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4544   echo "$ac_t""yes" 1>&6
4545     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4546   cat >> confdefs.h <<EOF
4547 #define $ac_tr_hdr 1
4548 EOF
4549  ac_has_wchar_h=yes
4550 else
4551   echo "$ac_t""no" 1>&6
4552 ac_has_wchar_h=no
4553 fi
4554 done
4555
4556   for ac_hdr in wctype.h
4557 do
4558 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4559 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4560 echo "configure:4561: checking for $ac_hdr" >&5
4561 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4562   echo $ac_n "(cached) $ac_c" 1>&6
4563 else
4564   cat > conftest.$ac_ext <<EOF
4565 #line 4566 "configure"
4566 #include "confdefs.h"
4567 #include <$ac_hdr>
4568 EOF
4569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4570 { (eval echo configure:4571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4572 if test -z "$ac_err"; then
4573   rm -rf conftest*
4574   eval "ac_cv_header_$ac_safe=yes"
4575 else
4576   echo "$ac_err" >&5
4577   echo "configure: failed program was:" >&5
4578   cat conftest.$ac_ext >&5
4579   rm -rf conftest*
4580   eval "ac_cv_header_$ac_safe=no"
4581 fi
4582 rm -f conftest*
4583 fi
4584 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4585   echo "$ac_t""yes" 1>&6
4586     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4587   cat >> confdefs.h <<EOF
4588 #define $ac_tr_hdr 1
4589 EOF
4590  ac_has_wctype_h=yes
4591 else
4592   echo "$ac_t""no" 1>&6
4593 ac_has_wctype_h=no
4594 fi
4595 done
4596
4597   
4598     if test x"$ac_has_wchar_h" = xyes &&
4599      test x"$ac_has_wctype_h" = xyes &&
4600      test x"$enable_c_mbchar" != xno; then
4601       
4602             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4603 echo "configure:4604: checking for WCHAR_MIN and WCHAR_MAX" >&5
4604     cat > conftest.$ac_ext <<EOF
4605 #line 4606 "configure"
4606 #include "confdefs.h"
4607 #include <wchar.h>
4608 int main() {
4609 int i = WCHAR_MIN; int j = WCHAR_MAX;
4610 ; return 0; }
4611 EOF
4612 if { (eval echo configure:4613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4613   rm -rf conftest*
4614   has_wchar_minmax=yes
4615 else
4616   echo "configure: failed program was:" >&5
4617   cat conftest.$ac_ext >&5
4618   rm -rf conftest*
4619   has_wchar_minmax=no
4620 fi
4621 rm -f conftest*
4622     echo "$ac_t""$has_wchar_minmax" 1>&6
4623     
4624             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4625 echo "configure:4626: checking for WEOF" >&5
4626     cat > conftest.$ac_ext <<EOF
4627 #line 4628 "configure"
4628 #include "confdefs.h"
4629
4630       #include <wchar.h>
4631       #include <stddef.h>
4632 int main() {
4633 wint_t i = WEOF;
4634 ; return 0; }
4635 EOF
4636 if { (eval echo configure:4637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4637   rm -rf conftest*
4638   has_weof=yes
4639 else
4640   echo "configure: failed program was:" >&5
4641   cat conftest.$ac_ext >&5
4642   rm -rf conftest*
4643   has_weof=no
4644 fi
4645 rm -f conftest*
4646     echo "$ac_t""$has_weof" 1>&6
4647   
4648         ac_wfuncs=yes
4649     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4650 do
4651 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4652 echo "configure:4653: checking for $ac_func" >&5
4653 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4654   echo $ac_n "(cached) $ac_c" 1>&6
4655 else
4656   cat > conftest.$ac_ext <<EOF
4657 #line 4658 "configure"
4658 #include "confdefs.h"
4659 /* System header to define __stub macros and hopefully few prototypes,
4660     which can conflict with char $ac_func(); below.  */
4661 #include <assert.h>
4662 /* Override any gcc2 internal prototype to avoid an error.  */
4663 /* We use char because int might match the return type of a gcc2
4664     builtin and then its argument prototype would still apply.  */
4665 char $ac_func();
4666
4667 int main() {
4668
4669 /* The GNU C library defines this for functions which it implements
4670     to always fail with ENOSYS.  Some functions are actually named
4671     something starting with __ and the normal name is an alias.  */
4672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4673 choke me
4674 #else
4675 $ac_func();
4676 #endif
4677
4678 ; return 0; }
4679 EOF
4680 if { (eval echo configure:4681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4681   rm -rf conftest*
4682   eval "ac_cv_func_$ac_func=yes"
4683 else
4684   echo "configure: failed program was:" >&5
4685   cat conftest.$ac_ext >&5
4686   rm -rf conftest*
4687   eval "ac_cv_func_$ac_func=no"
4688 fi
4689 rm -f conftest*
4690 fi
4691
4692 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4693   echo "$ac_t""yes" 1>&6
4694     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4695   cat >> confdefs.h <<EOF
4696 #define $ac_tr_func 1
4697 EOF
4698  
4699 else
4700   echo "$ac_t""no" 1>&6
4701 \
4702     ac_wfuncs=no
4703 fi
4704 done
4705
4706   
4707         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4708     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4709     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4710     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4711     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4712     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4713 do
4714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4715 echo "configure:4716: checking for $ac_func" >&5
4716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4717   echo $ac_n "(cached) $ac_c" 1>&6
4718 else
4719   cat > conftest.$ac_ext <<EOF
4720 #line 4721 "configure"
4721 #include "confdefs.h"
4722 /* System header to define __stub macros and hopefully few prototypes,
4723     which can conflict with char $ac_func(); below.  */
4724 #include <assert.h>
4725 /* Override any gcc2 internal prototype to avoid an error.  */
4726 /* We use char because int might match the return type of a gcc2
4727     builtin and then its argument prototype would still apply.  */
4728 char $ac_func();
4729
4730 int main() {
4731
4732 /* The GNU C library defines this for functions which it implements
4733     to always fail with ENOSYS.  Some functions are actually named
4734     something starting with __ and the normal name is an alias.  */
4735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4736 choke me
4737 #else
4738 $ac_func();
4739 #endif
4740
4741 ; return 0; }
4742 EOF
4743 if { (eval echo configure:4744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4744   rm -rf conftest*
4745   eval "ac_cv_func_$ac_func=yes"
4746 else
4747   echo "configure: failed program was:" >&5
4748   cat conftest.$ac_ext >&5
4749   rm -rf conftest*
4750   eval "ac_cv_func_$ac_func=no"
4751 fi
4752 rm -f conftest*
4753 fi
4754
4755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4756   echo "$ac_t""yes" 1>&6
4757     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4758   cat >> confdefs.h <<EOF
4759 #define $ac_tr_func 1
4760 EOF
4761  
4762 else
4763   echo "$ac_t""no" 1>&6
4764 \
4765     ac_wfuncs=no
4766 fi
4767 done
4768
4769
4770     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4771 echo "configure:4772: checking for ISO C99 wchar_t support" >&5
4772     if test x"$has_weof" = xyes &&
4773        test x"$has_wchar_minmax" = xyes &&
4774        test x"$ac_wfuncs" = xyes; then
4775       ac_isoC99_wchar_t=yes
4776     else
4777       ac_isoC99_wchar_t=no
4778     fi
4779     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4780   
4781             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4782 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4783 echo "configure:4784: checking for iconv.h" >&5
4784 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4785   echo $ac_n "(cached) $ac_c" 1>&6
4786 else
4787   cat > conftest.$ac_ext <<EOF
4788 #line 4789 "configure"
4789 #include "confdefs.h"
4790 #include <iconv.h>
4791 EOF
4792 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4793 { (eval echo configure:4794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4794 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4795 if test -z "$ac_err"; then
4796   rm -rf conftest*
4797   eval "ac_cv_header_$ac_safe=yes"
4798 else
4799   echo "$ac_err" >&5
4800   echo "configure: failed program was:" >&5
4801   cat conftest.$ac_ext >&5
4802   rm -rf conftest*
4803   eval "ac_cv_header_$ac_safe=no"
4804 fi
4805 rm -f conftest*
4806 fi
4807 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4808   echo "$ac_t""yes" 1>&6
4809   ac_has_iconv_h=yes
4810 else
4811   echo "$ac_t""no" 1>&6
4812 ac_has_iconv_h=no
4813 fi
4814
4815     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4816 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4817 echo "configure:4818: checking for langinfo.h" >&5
4818 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4819   echo $ac_n "(cached) $ac_c" 1>&6
4820 else
4821   cat > conftest.$ac_ext <<EOF
4822 #line 4823 "configure"
4823 #include "confdefs.h"
4824 #include <langinfo.h>
4825 EOF
4826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4827 { (eval echo configure:4828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4829 if test -z "$ac_err"; then
4830   rm -rf conftest*
4831   eval "ac_cv_header_$ac_safe=yes"
4832 else
4833   echo "$ac_err" >&5
4834   echo "configure: failed program was:" >&5
4835   cat conftest.$ac_ext >&5
4836   rm -rf conftest*
4837   eval "ac_cv_header_$ac_safe=no"
4838 fi
4839 rm -f conftest*
4840 fi
4841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4842   echo "$ac_t""yes" 1>&6
4843   ac_has_langinfo_h=yes
4844 else
4845   echo "$ac_t""no" 1>&6
4846 ac_has_langinfo_h=no
4847 fi
4848
4849
4850         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4851 echo "configure:4852: checking for iconv in -liconv" >&5
4852 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4853 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4854   echo $ac_n "(cached) $ac_c" 1>&6
4855 else
4856   ac_save_LIBS="$LIBS"
4857 LIBS="-liconv  $LIBS"
4858 cat > conftest.$ac_ext <<EOF
4859 #line 4860 "configure"
4860 #include "confdefs.h"
4861 /* Override any gcc2 internal prototype to avoid an error.  */
4862 /* We use char because int might match the return type of a gcc2
4863     builtin and then its argument prototype would still apply.  */
4864 char iconv();
4865
4866 int main() {
4867 iconv()
4868 ; return 0; }
4869 EOF
4870 if { (eval echo configure:4871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4871   rm -rf conftest*
4872   eval "ac_cv_lib_$ac_lib_var=yes"
4873 else
4874   echo "configure: failed program was:" >&5
4875   cat conftest.$ac_ext >&5
4876   rm -rf conftest*
4877   eval "ac_cv_lib_$ac_lib_var=no"
4878 fi
4879 rm -f conftest*
4880 LIBS="$ac_save_LIBS"
4881
4882 fi
4883 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4884   echo "$ac_t""yes" 1>&6
4885   libiconv="-liconv"
4886 else
4887   echo "$ac_t""no" 1>&6
4888 fi
4889
4890     ac_save_LIBS="$LIBS"
4891     LIBS="$LIBS $libiconv"
4892
4893     for ac_func in iconv_open iconv_close iconv nl_langinfo
4894 do
4895 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4896 echo "configure:4897: checking for $ac_func" >&5
4897 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4898   echo $ac_n "(cached) $ac_c" 1>&6
4899 else
4900   cat > conftest.$ac_ext <<EOF
4901 #line 4902 "configure"
4902 #include "confdefs.h"
4903 /* System header to define __stub macros and hopefully few prototypes,
4904     which can conflict with char $ac_func(); below.  */
4905 #include <assert.h>
4906 /* Override any gcc2 internal prototype to avoid an error.  */
4907 /* We use char because int might match the return type of a gcc2
4908     builtin and then its argument prototype would still apply.  */
4909 char $ac_func();
4910
4911 int main() {
4912
4913 /* The GNU C library defines this for functions which it implements
4914     to always fail with ENOSYS.  Some functions are actually named
4915     something starting with __ and the normal name is an alias.  */
4916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4917 choke me
4918 #else
4919 $ac_func();
4920 #endif
4921
4922 ; return 0; }
4923 EOF
4924 if { (eval echo configure:4925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4925   rm -rf conftest*
4926   eval "ac_cv_func_$ac_func=yes"
4927 else
4928   echo "configure: failed program was:" >&5
4929   cat conftest.$ac_ext >&5
4930   rm -rf conftest*
4931   eval "ac_cv_func_$ac_func=no"
4932 fi
4933 rm -f conftest*
4934 fi
4935
4936 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4937   echo "$ac_t""yes" 1>&6
4938     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4939   cat >> confdefs.h <<EOF
4940 #define $ac_tr_func 1
4941 EOF
4942  \
4943     ac_XPG2funcs=yes
4944 else
4945   echo "$ac_t""no" 1>&6
4946 ac_XPG2funcs=no
4947 fi
4948 done
4949
4950   
4951     LIBS="$ac_save_LIBS"
4952
4953     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4954 echo "configure:4955: checking for XPG2 wchar_t support" >&5
4955     if test x"$ac_has_iconv_h" = xyes &&
4956        test x"$ac_has_langinfo_h" = xyes &&
4957        test x"$ac_XPG2funcs" = xyes; then
4958       ac_XPG2_wchar_t=yes
4959     else
4960       ac_XPG2_wchar_t=no
4961     fi
4962     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4963   
4964             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4965 echo "configure:4966: checking for enabled wchar_t specializations" >&5
4966     if test x"$ac_isoC99_wchar_t" = xyes &&
4967        test x"$ac_XPG2_wchar_t" = xyes; then
4968       cat >> confdefs.h <<\EOF
4969 #define _GLIBCPP_USE_WCHAR_T 1
4970 EOF
4971
4972       echo "$ac_t"""yes"" 1>&6
4973     else
4974       echo "$ac_t"""no"" 1>&6
4975     fi
4976   else
4977         echo "configure: warning: wchar_t support disabled." 1>&2
4978   fi
4979
4980       cat >> confdefs.h <<\EOF
4981 #define HAVE_COPYSIGN 1
4982 EOF
4983
4984       cat >> confdefs.h <<\EOF
4985 #define HAVE_COPYSIGNF 1
4986 EOF
4987
4988       cat >> confdefs.h <<\EOF
4989 #define HAVE_FINITE 1
4990 EOF
4991
4992       cat >> confdefs.h <<\EOF
4993 #define HAVE_FINITEF 1
4994 EOF
4995
4996       cat >> confdefs.h <<\EOF
4997 #define HAVE_FREXPF 1
4998 EOF
4999
5000       cat >> confdefs.h <<\EOF
5001 #define HAVE_HYPOTF 1
5002 EOF
5003
5004       cat >> confdefs.h <<\EOF
5005 #define HAVE_ISINF 1
5006 EOF
5007
5008       cat >> confdefs.h <<\EOF
5009 #define HAVE_ISINFF 1
5010 EOF
5011
5012       cat >> confdefs.h <<\EOF
5013 #define HAVE_ISNAN 1
5014 EOF
5015
5016       cat >> confdefs.h <<\EOF
5017 #define HAVE_ISNANF 1
5018 EOF
5019
5020       cat >> confdefs.h <<\EOF
5021 #define HAVE_SINCOS 1
5022 EOF
5023
5024       cat >> confdefs.h <<\EOF
5025 #define HAVE_SINCOSF 1
5026 EOF
5027
5028       if test x"long_double_math_on_this_cpu" = x"yes"; then
5029         cat >> confdefs.h <<\EOF
5030 #define HAVE_FINITEL 1
5031 EOF
5032
5033         cat >> confdefs.h <<\EOF
5034 #define HAVE_HYPOTL 1
5035 EOF
5036
5037         cat >> confdefs.h <<\EOF
5038 #define HAVE_ISINFL 1
5039 EOF
5040
5041         cat >> confdefs.h <<\EOF
5042 #define HAVE_ISNANL 1
5043 EOF
5044
5045       fi
5046       ;;
5047     *-hpux*)
5048       # Check for available headers.
5049       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5050         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5051         fp.h locale.h float.h inttypes.h
5052 do
5053 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5054 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5055 echo "configure:5056: checking for $ac_hdr" >&5
5056 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5057   echo $ac_n "(cached) $ac_c" 1>&6
5058 else
5059   cat > conftest.$ac_ext <<EOF
5060 #line 5061 "configure"
5061 #include "confdefs.h"
5062 #include <$ac_hdr>
5063 EOF
5064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5065 { (eval echo configure:5066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5066 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5067 if test -z "$ac_err"; then
5068   rm -rf conftest*
5069   eval "ac_cv_header_$ac_safe=yes"
5070 else
5071   echo "$ac_err" >&5
5072   echo "configure: failed program was:" >&5
5073   cat conftest.$ac_ext >&5
5074   rm -rf conftest*
5075   eval "ac_cv_header_$ac_safe=no"
5076 fi
5077 rm -f conftest*
5078 fi
5079 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5080   echo "$ac_t""yes" 1>&6
5081     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5082   cat >> confdefs.h <<EOF
5083 #define $ac_tr_hdr 1
5084 EOF
5085  
5086 else
5087   echo "$ac_t""no" 1>&6
5088 fi
5089 done
5090
5091       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5092       
5093       
5094   # If we're not using GNU ld, then there's no point in even trying these
5095   # tests.  Check for that first.  We should have already tested for gld
5096   # by now (in libtool), but require it now just to be safe...
5097   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5098   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5099   
5100
5101   # The name set by libtool depends on the version of libtool.  Shame on us
5102   # for depending on an impl detail, but c'est la vie.  Older versions used
5103   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5104   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5105   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5106   # set (hence we're using an older libtool), then set it.
5107   if test x${with_gnu_ld+set} != xset; then
5108     if test x${ac_cv_prog_gnu_ld+set} != xset; then
5109       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5110       with_gnu_ld=no
5111     else
5112       with_gnu_ld=$ac_cv_prog_gnu_ld
5113     fi
5114   fi
5115
5116   # Start by getting the version number.  I think the libtool test already
5117   # does some of this, but throws away the result.
5118   
5119   ldver=`$LD --version 2>/dev/null | head -1 | \
5120          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5121   
5122   glibcpp_gnu_ld_version=`echo $ldver | \
5123          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5124
5125   # Set --gc-sections.
5126   if test "$with_gnu_ld" = "notbroken"; then
5127     # GNU ld it is!  Joy and bunny rabbits!
5128
5129     # All these tests are for C++; save the language and the compiler flags.
5130     # Need to do this so that g++ won't try to link in libstdc++
5131     ac_test_CFLAGS="${CFLAGS+set}"
5132     ac_save_CFLAGS="$CFLAGS"
5133     CFLAGS='-x c++  -Wl,--gc-sections'
5134
5135     # Check for -Wl,--gc-sections
5136     # XXX This test is broken at the moment, as symbols required for
5137     # linking are now in libsupc++ (not built yet.....). In addition, 
5138     # this test has cored on solaris in the past. In addition,
5139     # --gc-sections doesn't really work at the moment (keeps on discarding
5140     # used sections, first .eh_frame and now some of the glibc sections for
5141     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5142     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5143 echo "configure:5144: checking for ld that supports -Wl,--gc-sections" >&5
5144     if test "$cross_compiling" = yes; then
5145   ac_sectionLDflags=yes
5146 else
5147   cat > conftest.$ac_ext <<EOF
5148 #line 5149 "configure"
5149 #include "confdefs.h"
5150
5151      int main(void) 
5152      {
5153        try { throw 1; }
5154        catch (...) { };
5155        return 0;
5156      }
5157     
5158 EOF
5159 if { (eval echo configure:5160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5160 then
5161   ac_sectionLDflags=yes
5162 else
5163   echo "configure: failed program was:" >&5
5164   cat conftest.$ac_ext >&5
5165   rm -fr conftest*
5166   ac_sectionLDflags=no
5167 fi
5168 rm -fr conftest*
5169 fi
5170
5171     if test "$ac_test_CFLAGS" = set; then
5172       CFLAGS="$ac_save_CFLAGS"
5173     else
5174       # this is the suspicious part
5175       CFLAGS=''
5176     fi
5177     if test "$ac_sectionLDflags" = "yes"; then
5178       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5179     fi
5180     echo "$ac_t""$ac_sectionLDflags" 1>&6
5181   fi
5182
5183   # Set linker optimization flags.
5184   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5185     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5186   fi
5187
5188   
5189   
5190
5191       
5192     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5193 echo "configure:5194: checking for main in -lm" >&5
5194 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5195 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5196   echo $ac_n "(cached) $ac_c" 1>&6
5197 else
5198   ac_save_LIBS="$LIBS"
5199 LIBS="-lm  $LIBS"
5200 cat > conftest.$ac_ext <<EOF
5201 #line 5202 "configure"
5202 #include "confdefs.h"
5203
5204 int main() {
5205 main()
5206 ; return 0; }
5207 EOF
5208 if { (eval echo configure:5209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5209   rm -rf conftest*
5210   eval "ac_cv_lib_$ac_lib_var=yes"
5211 else
5212   echo "configure: failed program was:" >&5
5213   cat conftest.$ac_ext >&5
5214   rm -rf conftest*
5215   eval "ac_cv_lib_$ac_lib_var=no"
5216 fi
5217 rm -f conftest*
5218 LIBS="$ac_save_LIBS"
5219
5220 fi
5221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5222   echo "$ac_t""yes" 1>&6
5223     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5224     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5225   cat >> confdefs.h <<EOF
5226 #define $ac_tr_lib 1
5227 EOF
5228
5229   LIBS="-lm $LIBS"
5230
5231 else
5232   echo "$ac_t""no" 1>&6
5233 fi
5234
5235   for ac_func in nan copysignf
5236 do
5237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5238 echo "configure:5239: checking for $ac_func" >&5
5239 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5240   echo $ac_n "(cached) $ac_c" 1>&6
5241 else
5242   cat > conftest.$ac_ext <<EOF
5243 #line 5244 "configure"
5244 #include "confdefs.h"
5245 /* System header to define __stub macros and hopefully few prototypes,
5246     which can conflict with char $ac_func(); below.  */
5247 #include <assert.h>
5248 /* Override any gcc2 internal prototype to avoid an error.  */
5249 /* We use char because int might match the return type of a gcc2
5250     builtin and then its argument prototype would still apply.  */
5251 char $ac_func();
5252
5253 int main() {
5254
5255 /* The GNU C library defines this for functions which it implements
5256     to always fail with ENOSYS.  Some functions are actually named
5257     something starting with __ and the normal name is an alias.  */
5258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5259 choke me
5260 #else
5261 $ac_func();
5262 #endif
5263
5264 ; return 0; }
5265 EOF
5266 if { (eval echo configure:5267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5267   rm -rf conftest*
5268   eval "ac_cv_func_$ac_func=yes"
5269 else
5270   echo "configure: failed program was:" >&5
5271   cat conftest.$ac_ext >&5
5272   rm -rf conftest*
5273   eval "ac_cv_func_$ac_func=no"
5274 fi
5275 rm -f conftest*
5276 fi
5277
5278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5279   echo "$ac_t""yes" 1>&6
5280     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5281   cat >> confdefs.h <<EOF
5282 #define $ac_tr_func 1
5283 EOF
5284  
5285 else
5286   echo "$ac_t""no" 1>&6
5287 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5288 fi
5289 done
5290
5291
5292     for ac_func in __signbit
5293 do
5294 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5295 echo "configure:5296: checking for $ac_func" >&5
5296 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5297   echo $ac_n "(cached) $ac_c" 1>&6
5298 else
5299   cat > conftest.$ac_ext <<EOF
5300 #line 5301 "configure"
5301 #include "confdefs.h"
5302 /* System header to define __stub macros and hopefully few prototypes,
5303     which can conflict with char $ac_func(); below.  */
5304 #include <assert.h>
5305 /* Override any gcc2 internal prototype to avoid an error.  */
5306 /* We use char because int might match the return type of a gcc2
5307     builtin and then its argument prototype would still apply.  */
5308 char $ac_func();
5309
5310 int main() {
5311
5312 /* The GNU C library defines this for functions which it implements
5313     to always fail with ENOSYS.  Some functions are actually named
5314     something starting with __ and the normal name is an alias.  */
5315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5316 choke me
5317 #else
5318 $ac_func();
5319 #endif
5320
5321 ; return 0; }
5322 EOF
5323 if { (eval echo configure:5324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5324   rm -rf conftest*
5325   eval "ac_cv_func_$ac_func=yes"
5326 else
5327   echo "configure: failed program was:" >&5
5328   cat conftest.$ac_ext >&5
5329   rm -rf conftest*
5330   eval "ac_cv_func_$ac_func=no"
5331 fi
5332 rm -f conftest*
5333 fi
5334
5335 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5336   echo "$ac_t""yes" 1>&6
5337     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5338   cat >> confdefs.h <<EOF
5339 #define $ac_tr_func 1
5340 EOF
5341  
5342 else
5343   echo "$ac_t""no" 1>&6
5344 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5345 fi
5346 done
5347
5348   for ac_func in __signbitf
5349 do
5350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5351 echo "configure:5352: checking for $ac_func" >&5
5352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5353   echo $ac_n "(cached) $ac_c" 1>&6
5354 else
5355   cat > conftest.$ac_ext <<EOF
5356 #line 5357 "configure"
5357 #include "confdefs.h"
5358 /* System header to define __stub macros and hopefully few prototypes,
5359     which can conflict with char $ac_func(); below.  */
5360 #include <assert.h>
5361 /* Override any gcc2 internal prototype to avoid an error.  */
5362 /* We use char because int might match the return type of a gcc2
5363     builtin and then its argument prototype would still apply.  */
5364 char $ac_func();
5365
5366 int main() {
5367
5368 /* The GNU C library defines this for functions which it implements
5369     to always fail with ENOSYS.  Some functions are actually named
5370     something starting with __ and the normal name is an alias.  */
5371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5372 choke me
5373 #else
5374 $ac_func();
5375 #endif
5376
5377 ; return 0; }
5378 EOF
5379 if { (eval echo configure:5380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5380   rm -rf conftest*
5381   eval "ac_cv_func_$ac_func=yes"
5382 else
5383   echo "configure: failed program was:" >&5
5384   cat conftest.$ac_ext >&5
5385   rm -rf conftest*
5386   eval "ac_cv_func_$ac_func=no"
5387 fi
5388 rm -f conftest*
5389 fi
5390
5391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5392   echo "$ac_t""yes" 1>&6
5393     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5394   cat >> confdefs.h <<EOF
5395 #define $ac_tr_func 1
5396 EOF
5397  
5398 else
5399   echo "$ac_t""no" 1>&6
5400 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5401 fi
5402 done
5403
5404
5405           if test x$ac_cv_func_copysignl = x"yes"; then
5406     for ac_func in __signbitl
5407 do
5408 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5409 echo "configure:5410: checking for $ac_func" >&5
5410 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5411   echo $ac_n "(cached) $ac_c" 1>&6
5412 else
5413   cat > conftest.$ac_ext <<EOF
5414 #line 5415 "configure"
5415 #include "confdefs.h"
5416 /* System header to define __stub macros and hopefully few prototypes,
5417     which can conflict with char $ac_func(); below.  */
5418 #include <assert.h>
5419 /* Override any gcc2 internal prototype to avoid an error.  */
5420 /* We use char because int might match the return type of a gcc2
5421     builtin and then its argument prototype would still apply.  */
5422 char $ac_func();
5423
5424 int main() {
5425
5426 /* The GNU C library defines this for functions which it implements
5427     to always fail with ENOSYS.  Some functions are actually named
5428     something starting with __ and the normal name is an alias.  */
5429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5430 choke me
5431 #else
5432 $ac_func();
5433 #endif
5434
5435 ; return 0; }
5436 EOF
5437 if { (eval echo configure:5438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5438   rm -rf conftest*
5439   eval "ac_cv_func_$ac_func=yes"
5440 else
5441   echo "configure: failed program was:" >&5
5442   cat conftest.$ac_ext >&5
5443   rm -rf conftest*
5444   eval "ac_cv_func_$ac_func=no"
5445 fi
5446 rm -f conftest*
5447 fi
5448
5449 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5450   echo "$ac_t""yes" 1>&6
5451     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5452   cat >> confdefs.h <<EOF
5453 #define $ac_tr_func 1
5454 EOF
5455  
5456 else
5457   echo "$ac_t""no" 1>&6
5458 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5459 fi
5460 done
5461
5462   fi
5463
5464   
5465
5466       
5467
5468       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5469 echo "configure:5470: checking for mbstate_t" >&5
5470   cat > conftest.$ac_ext <<EOF
5471 #line 5472 "configure"
5472 #include "confdefs.h"
5473 #include <wchar.h>
5474 int main() {
5475 mbstate_t teststate;
5476 ; return 0; }
5477 EOF
5478 if { (eval echo configure:5479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5479   rm -rf conftest*
5480   have_mbstate_t=yes
5481 else
5482   echo "configure: failed program was:" >&5
5483   cat conftest.$ac_ext >&5
5484   rm -rf conftest*
5485   have_mbstate_t=no
5486 fi
5487 rm -f conftest*
5488   echo "$ac_t""$have_mbstate_t" 1>&6
5489   if test x"$have_mbstate_t" = xyes; then
5490     cat >> confdefs.h <<\EOF
5491 #define HAVE_MBSTATE_T 1
5492 EOF
5493
5494   fi
5495
5496     for ac_hdr in wchar.h
5497 do
5498 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5499 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5500 echo "configure:5501: checking for $ac_hdr" >&5
5501 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5502   echo $ac_n "(cached) $ac_c" 1>&6
5503 else
5504   cat > conftest.$ac_ext <<EOF
5505 #line 5506 "configure"
5506 #include "confdefs.h"
5507 #include <$ac_hdr>
5508 EOF
5509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5510 { (eval echo configure:5511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5511 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5512 if test -z "$ac_err"; then
5513   rm -rf conftest*
5514   eval "ac_cv_header_$ac_safe=yes"
5515 else
5516   echo "$ac_err" >&5
5517   echo "configure: failed program was:" >&5
5518   cat conftest.$ac_ext >&5
5519   rm -rf conftest*
5520   eval "ac_cv_header_$ac_safe=no"
5521 fi
5522 rm -f conftest*
5523 fi
5524 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5525   echo "$ac_t""yes" 1>&6
5526     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5527   cat >> confdefs.h <<EOF
5528 #define $ac_tr_hdr 1
5529 EOF
5530  ac_has_wchar_h=yes
5531 else
5532   echo "$ac_t""no" 1>&6
5533 ac_has_wchar_h=no
5534 fi
5535 done
5536
5537   for ac_hdr in wctype.h
5538 do
5539 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5540 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5541 echo "configure:5542: checking for $ac_hdr" >&5
5542 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5543   echo $ac_n "(cached) $ac_c" 1>&6
5544 else
5545   cat > conftest.$ac_ext <<EOF
5546 #line 5547 "configure"
5547 #include "confdefs.h"
5548 #include <$ac_hdr>
5549 EOF
5550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5551 { (eval echo configure:5552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5552 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5553 if test -z "$ac_err"; then
5554   rm -rf conftest*
5555   eval "ac_cv_header_$ac_safe=yes"
5556 else
5557   echo "$ac_err" >&5
5558   echo "configure: failed program was:" >&5
5559   cat conftest.$ac_ext >&5
5560   rm -rf conftest*
5561   eval "ac_cv_header_$ac_safe=no"
5562 fi
5563 rm -f conftest*
5564 fi
5565 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5566   echo "$ac_t""yes" 1>&6
5567     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5568   cat >> confdefs.h <<EOF
5569 #define $ac_tr_hdr 1
5570 EOF
5571  ac_has_wctype_h=yes
5572 else
5573   echo "$ac_t""no" 1>&6
5574 ac_has_wctype_h=no
5575 fi
5576 done
5577
5578   
5579     if test x"$ac_has_wchar_h" = xyes &&
5580      test x"$ac_has_wctype_h" = xyes &&
5581      test x"$enable_c_mbchar" != xno; then
5582       
5583             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5584 echo "configure:5585: checking for WCHAR_MIN and WCHAR_MAX" >&5
5585     cat > conftest.$ac_ext <<EOF
5586 #line 5587 "configure"
5587 #include "confdefs.h"
5588 #include <wchar.h>
5589 int main() {
5590 int i = WCHAR_MIN; int j = WCHAR_MAX;
5591 ; return 0; }
5592 EOF
5593 if { (eval echo configure:5594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5594   rm -rf conftest*
5595   has_wchar_minmax=yes
5596 else
5597   echo "configure: failed program was:" >&5
5598   cat conftest.$ac_ext >&5
5599   rm -rf conftest*
5600   has_wchar_minmax=no
5601 fi
5602 rm -f conftest*
5603     echo "$ac_t""$has_wchar_minmax" 1>&6
5604     
5605             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5606 echo "configure:5607: checking for WEOF" >&5
5607     cat > conftest.$ac_ext <<EOF
5608 #line 5609 "configure"
5609 #include "confdefs.h"
5610
5611       #include <wchar.h>
5612       #include <stddef.h>
5613 int main() {
5614 wint_t i = WEOF;
5615 ; return 0; }
5616 EOF
5617 if { (eval echo configure:5618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5618   rm -rf conftest*
5619   has_weof=yes
5620 else
5621   echo "configure: failed program was:" >&5
5622   cat conftest.$ac_ext >&5
5623   rm -rf conftest*
5624   has_weof=no
5625 fi
5626 rm -f conftest*
5627     echo "$ac_t""$has_weof" 1>&6
5628   
5629         ac_wfuncs=yes
5630     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5631 do
5632 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5633 echo "configure:5634: checking for $ac_func" >&5
5634 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5635   echo $ac_n "(cached) $ac_c" 1>&6
5636 else
5637   cat > conftest.$ac_ext <<EOF
5638 #line 5639 "configure"
5639 #include "confdefs.h"
5640 /* System header to define __stub macros and hopefully few prototypes,
5641     which can conflict with char $ac_func(); below.  */
5642 #include <assert.h>
5643 /* Override any gcc2 internal prototype to avoid an error.  */
5644 /* We use char because int might match the return type of a gcc2
5645     builtin and then its argument prototype would still apply.  */
5646 char $ac_func();
5647
5648 int main() {
5649
5650 /* The GNU C library defines this for functions which it implements
5651     to always fail with ENOSYS.  Some functions are actually named
5652     something starting with __ and the normal name is an alias.  */
5653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5654 choke me
5655 #else
5656 $ac_func();
5657 #endif
5658
5659 ; return 0; }
5660 EOF
5661 if { (eval echo configure:5662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5662   rm -rf conftest*
5663   eval "ac_cv_func_$ac_func=yes"
5664 else
5665   echo "configure: failed program was:" >&5
5666   cat conftest.$ac_ext >&5
5667   rm -rf conftest*
5668   eval "ac_cv_func_$ac_func=no"
5669 fi
5670 rm -f conftest*
5671 fi
5672
5673 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5674   echo "$ac_t""yes" 1>&6
5675     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5676   cat >> confdefs.h <<EOF
5677 #define $ac_tr_func 1
5678 EOF
5679  
5680 else
5681   echo "$ac_t""no" 1>&6
5682 \
5683     ac_wfuncs=no
5684 fi
5685 done
5686
5687   
5688         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5689     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5690     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5691     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5692     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5693     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5694 do
5695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5696 echo "configure:5697: checking for $ac_func" >&5
5697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5698   echo $ac_n "(cached) $ac_c" 1>&6
5699 else
5700   cat > conftest.$ac_ext <<EOF
5701 #line 5702 "configure"
5702 #include "confdefs.h"
5703 /* System header to define __stub macros and hopefully few prototypes,
5704     which can conflict with char $ac_func(); below.  */
5705 #include <assert.h>
5706 /* Override any gcc2 internal prototype to avoid an error.  */
5707 /* We use char because int might match the return type of a gcc2
5708     builtin and then its argument prototype would still apply.  */
5709 char $ac_func();
5710
5711 int main() {
5712
5713 /* The GNU C library defines this for functions which it implements
5714     to always fail with ENOSYS.  Some functions are actually named
5715     something starting with __ and the normal name is an alias.  */
5716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5717 choke me
5718 #else
5719 $ac_func();
5720 #endif
5721
5722 ; return 0; }
5723 EOF
5724 if { (eval echo configure:5725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5725   rm -rf conftest*
5726   eval "ac_cv_func_$ac_func=yes"
5727 else
5728   echo "configure: failed program was:" >&5
5729   cat conftest.$ac_ext >&5
5730   rm -rf conftest*
5731   eval "ac_cv_func_$ac_func=no"
5732 fi
5733 rm -f conftest*
5734 fi
5735
5736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5737   echo "$ac_t""yes" 1>&6
5738     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5739   cat >> confdefs.h <<EOF
5740 #define $ac_tr_func 1
5741 EOF
5742  
5743 else
5744   echo "$ac_t""no" 1>&6
5745 \
5746     ac_wfuncs=no
5747 fi
5748 done
5749
5750
5751     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5752 echo "configure:5753: checking for ISO C99 wchar_t support" >&5
5753     if test x"$has_weof" = xyes &&
5754        test x"$has_wchar_minmax" = xyes &&
5755        test x"$ac_wfuncs" = xyes; then
5756       ac_isoC99_wchar_t=yes
5757     else
5758       ac_isoC99_wchar_t=no
5759     fi
5760     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5761   
5762             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5763 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5764 echo "configure:5765: checking for iconv.h" >&5
5765 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5766   echo $ac_n "(cached) $ac_c" 1>&6
5767 else
5768   cat > conftest.$ac_ext <<EOF
5769 #line 5770 "configure"
5770 #include "confdefs.h"
5771 #include <iconv.h>
5772 EOF
5773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5774 { (eval echo configure:5775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5776 if test -z "$ac_err"; then
5777   rm -rf conftest*
5778   eval "ac_cv_header_$ac_safe=yes"
5779 else
5780   echo "$ac_err" >&5
5781   echo "configure: failed program was:" >&5
5782   cat conftest.$ac_ext >&5
5783   rm -rf conftest*
5784   eval "ac_cv_header_$ac_safe=no"
5785 fi
5786 rm -f conftest*
5787 fi
5788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5789   echo "$ac_t""yes" 1>&6
5790   ac_has_iconv_h=yes
5791 else
5792   echo "$ac_t""no" 1>&6
5793 ac_has_iconv_h=no
5794 fi
5795
5796     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5797 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5798 echo "configure:5799: checking for langinfo.h" >&5
5799 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5800   echo $ac_n "(cached) $ac_c" 1>&6
5801 else
5802   cat > conftest.$ac_ext <<EOF
5803 #line 5804 "configure"
5804 #include "confdefs.h"
5805 #include <langinfo.h>
5806 EOF
5807 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5808 { (eval echo configure:5809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5809 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5810 if test -z "$ac_err"; then
5811   rm -rf conftest*
5812   eval "ac_cv_header_$ac_safe=yes"
5813 else
5814   echo "$ac_err" >&5
5815   echo "configure: failed program was:" >&5
5816   cat conftest.$ac_ext >&5
5817   rm -rf conftest*
5818   eval "ac_cv_header_$ac_safe=no"
5819 fi
5820 rm -f conftest*
5821 fi
5822 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5823   echo "$ac_t""yes" 1>&6
5824   ac_has_langinfo_h=yes
5825 else
5826   echo "$ac_t""no" 1>&6
5827 ac_has_langinfo_h=no
5828 fi
5829
5830
5831         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5832 echo "configure:5833: checking for iconv in -liconv" >&5
5833 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5834 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5835   echo $ac_n "(cached) $ac_c" 1>&6
5836 else
5837   ac_save_LIBS="$LIBS"
5838 LIBS="-liconv  $LIBS"
5839 cat > conftest.$ac_ext <<EOF
5840 #line 5841 "configure"
5841 #include "confdefs.h"
5842 /* Override any gcc2 internal prototype to avoid an error.  */
5843 /* We use char because int might match the return type of a gcc2
5844     builtin and then its argument prototype would still apply.  */
5845 char iconv();
5846
5847 int main() {
5848 iconv()
5849 ; return 0; }
5850 EOF
5851 if { (eval echo configure:5852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5852   rm -rf conftest*
5853   eval "ac_cv_lib_$ac_lib_var=yes"
5854 else
5855   echo "configure: failed program was:" >&5
5856   cat conftest.$ac_ext >&5
5857   rm -rf conftest*
5858   eval "ac_cv_lib_$ac_lib_var=no"
5859 fi
5860 rm -f conftest*
5861 LIBS="$ac_save_LIBS"
5862
5863 fi
5864 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5865   echo "$ac_t""yes" 1>&6
5866   libiconv="-liconv"
5867 else
5868   echo "$ac_t""no" 1>&6
5869 fi
5870
5871     ac_save_LIBS="$LIBS"
5872     LIBS="$LIBS $libiconv"
5873
5874     for ac_func in iconv_open iconv_close iconv nl_langinfo
5875 do
5876 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5877 echo "configure:5878: checking for $ac_func" >&5
5878 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5879   echo $ac_n "(cached) $ac_c" 1>&6
5880 else
5881   cat > conftest.$ac_ext <<EOF
5882 #line 5883 "configure"
5883 #include "confdefs.h"
5884 /* System header to define __stub macros and hopefully few prototypes,
5885     which can conflict with char $ac_func(); below.  */
5886 #include <assert.h>
5887 /* Override any gcc2 internal prototype to avoid an error.  */
5888 /* We use char because int might match the return type of a gcc2
5889     builtin and then its argument prototype would still apply.  */
5890 char $ac_func();
5891
5892 int main() {
5893
5894 /* The GNU C library defines this for functions which it implements
5895     to always fail with ENOSYS.  Some functions are actually named
5896     something starting with __ and the normal name is an alias.  */
5897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5898 choke me
5899 #else
5900 $ac_func();
5901 #endif
5902
5903 ; return 0; }
5904 EOF
5905 if { (eval echo configure:5906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5906   rm -rf conftest*
5907   eval "ac_cv_func_$ac_func=yes"
5908 else
5909   echo "configure: failed program was:" >&5
5910   cat conftest.$ac_ext >&5
5911   rm -rf conftest*
5912   eval "ac_cv_func_$ac_func=no"
5913 fi
5914 rm -f conftest*
5915 fi
5916
5917 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5918   echo "$ac_t""yes" 1>&6
5919     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5920   cat >> confdefs.h <<EOF
5921 #define $ac_tr_func 1
5922 EOF
5923  \
5924     ac_XPG2funcs=yes
5925 else
5926   echo "$ac_t""no" 1>&6
5927 ac_XPG2funcs=no
5928 fi
5929 done
5930
5931   
5932     LIBS="$ac_save_LIBS"
5933
5934     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5935 echo "configure:5936: checking for XPG2 wchar_t support" >&5
5936     if test x"$ac_has_iconv_h" = xyes &&
5937        test x"$ac_has_langinfo_h" = xyes &&
5938        test x"$ac_XPG2funcs" = xyes; then
5939       ac_XPG2_wchar_t=yes
5940     else
5941       ac_XPG2_wchar_t=no
5942     fi
5943     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5944   
5945             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5946 echo "configure:5947: checking for enabled wchar_t specializations" >&5
5947     if test x"$ac_isoC99_wchar_t" = xyes &&
5948        test x"$ac_XPG2_wchar_t" = xyes; then
5949       cat >> confdefs.h <<\EOF
5950 #define _GLIBCPP_USE_WCHAR_T 1
5951 EOF
5952
5953       echo "$ac_t"""yes"" 1>&6
5954     else
5955       echo "$ac_t"""no"" 1>&6
5956     fi
5957   else
5958         echo "configure: warning: wchar_t support disabled." 1>&2
5959   fi
5960
5961       os_include_dir="os/hpux"
5962       cat >> confdefs.h <<\EOF
5963 #define HAVE_COPYSIGN 1
5964 EOF
5965
5966       cat >> confdefs.h <<\EOF
5967 #define HAVE_COPYSIGNF 1
5968 EOF
5969
5970       cat >> confdefs.h <<\EOF
5971 #define HAVE_FREXPF 1
5972 EOF
5973
5974       cat >> confdefs.h <<\EOF
5975 #define HAVE_HYPOT 1
5976 EOF
5977
5978       case "$target_alias" in
5979         *-hpux10*)
5980           cat >> confdefs.h <<\EOF
5981 #define HAVE_FINITE 1
5982 EOF
5983
5984           cat >> confdefs.h <<\EOF
5985 #define HAVE_FINITEF 1
5986 EOF
5987
5988           cat >> confdefs.h <<\EOF
5989 #define HAVE_ISINF 1
5990 EOF
5991
5992           cat >> confdefs.h <<\EOF
5993 #define HAVE_ISINFF 1
5994 EOF
5995
5996           cat >> confdefs.h <<\EOF
5997 #define HAVE_ISNAN 1
5998 EOF
5999
6000           cat >> confdefs.h <<\EOF
6001 #define HAVE_ISNANF 1
6002 EOF
6003
6004           ;;
6005       esac
6006
6007       ;;
6008     *-netbsd*)
6009       # Check for available headers.
6010       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6011         machine/endian.h machine/param.h sys/machine.h sys/types.h \
6012         fp.h locale.h float.h inttypes.h
6013 do
6014 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6015 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6016 echo "configure:6017: checking for $ac_hdr" >&5
6017 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6018   echo $ac_n "(cached) $ac_c" 1>&6
6019 else
6020   cat > conftest.$ac_ext <<EOF
6021 #line 6022 "configure"
6022 #include "confdefs.h"
6023 #include <$ac_hdr>
6024 EOF
6025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6026 { (eval echo configure:6027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6028 if test -z "$ac_err"; then
6029   rm -rf conftest*
6030   eval "ac_cv_header_$ac_safe=yes"
6031 else
6032   echo "$ac_err" >&5
6033   echo "configure: failed program was:" >&5
6034   cat conftest.$ac_ext >&5
6035   rm -rf conftest*
6036   eval "ac_cv_header_$ac_safe=no"
6037 fi
6038 rm -f conftest*
6039 fi
6040 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6041   echo "$ac_t""yes" 1>&6
6042     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6043   cat >> confdefs.h <<EOF
6044 #define $ac_tr_hdr 1
6045 EOF
6046  
6047 else
6048   echo "$ac_t""no" 1>&6
6049 fi
6050 done
6051
6052       SECTION_FLAGS='-ffunction-sections -fdata-sections'
6053        
6054       
6055   # If we're not using GNU ld, then there's no point in even trying these
6056   # tests.  Check for that first.  We should have already tested for gld
6057   # by now (in libtool), but require it now just to be safe...
6058   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6059   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6060   
6061
6062   # The name set by libtool depends on the version of libtool.  Shame on us
6063   # for depending on an impl detail, but c'est la vie.  Older versions used
6064   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6065   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6066   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6067   # set (hence we're using an older libtool), then set it.
6068   if test x${with_gnu_ld+set} != xset; then
6069     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6070       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6071       with_gnu_ld=no
6072     else
6073       with_gnu_ld=$ac_cv_prog_gnu_ld
6074     fi
6075   fi
6076
6077   # Start by getting the version number.  I think the libtool test already
6078   # does some of this, but throws away the result.
6079   
6080   ldver=`$LD --version 2>/dev/null | head -1 | \
6081          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6082   
6083   glibcpp_gnu_ld_version=`echo $ldver | \
6084          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6085
6086   # Set --gc-sections.
6087   if test "$with_gnu_ld" = "notbroken"; then
6088     # GNU ld it is!  Joy and bunny rabbits!
6089
6090     # All these tests are for C++; save the language and the compiler flags.
6091     # Need to do this so that g++ won't try to link in libstdc++
6092     ac_test_CFLAGS="${CFLAGS+set}"
6093     ac_save_CFLAGS="$CFLAGS"
6094     CFLAGS='-x c++  -Wl,--gc-sections'
6095
6096     # Check for -Wl,--gc-sections
6097     # XXX This test is broken at the moment, as symbols required for
6098     # linking are now in libsupc++ (not built yet.....). In addition, 
6099     # this test has cored on solaris in the past. In addition,
6100     # --gc-sections doesn't really work at the moment (keeps on discarding
6101     # used sections, first .eh_frame and now some of the glibc sections for
6102     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6103     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6104 echo "configure:6105: checking for ld that supports -Wl,--gc-sections" >&5
6105     if test "$cross_compiling" = yes; then
6106   ac_sectionLDflags=yes
6107 else
6108   cat > conftest.$ac_ext <<EOF
6109 #line 6110 "configure"
6110 #include "confdefs.h"
6111
6112      int main(void) 
6113      {
6114        try { throw 1; }
6115        catch (...) { };
6116        return 0;
6117      }
6118     
6119 EOF
6120 if { (eval echo configure:6121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6121 then
6122   ac_sectionLDflags=yes
6123 else
6124   echo "configure: failed program was:" >&5
6125   cat conftest.$ac_ext >&5
6126   rm -fr conftest*
6127   ac_sectionLDflags=no
6128 fi
6129 rm -fr conftest*
6130 fi
6131
6132     if test "$ac_test_CFLAGS" = set; then
6133       CFLAGS="$ac_save_CFLAGS"
6134     else
6135       # this is the suspicious part
6136       CFLAGS=''
6137     fi
6138     if test "$ac_sectionLDflags" = "yes"; then
6139       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6140     fi
6141     echo "$ac_t""$ac_sectionLDflags" 1>&6
6142   fi
6143
6144   # Set linker optimization flags.
6145   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
6146     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6147   fi
6148
6149   
6150   
6151
6152       
6153     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6154 echo "configure:6155: checking for main in -lm" >&5
6155 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6156 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6157   echo $ac_n "(cached) $ac_c" 1>&6
6158 else
6159   ac_save_LIBS="$LIBS"
6160 LIBS="-lm  $LIBS"
6161 cat > conftest.$ac_ext <<EOF
6162 #line 6163 "configure"
6163 #include "confdefs.h"
6164
6165 int main() {
6166 main()
6167 ; return 0; }
6168 EOF
6169 if { (eval echo configure:6170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6170   rm -rf conftest*
6171   eval "ac_cv_lib_$ac_lib_var=yes"
6172 else
6173   echo "configure: failed program was:" >&5
6174   cat conftest.$ac_ext >&5
6175   rm -rf conftest*
6176   eval "ac_cv_lib_$ac_lib_var=no"
6177 fi
6178 rm -f conftest*
6179 LIBS="$ac_save_LIBS"
6180
6181 fi
6182 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6183   echo "$ac_t""yes" 1>&6
6184     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6185     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6186   cat >> confdefs.h <<EOF
6187 #define $ac_tr_lib 1
6188 EOF
6189
6190   LIBS="-lm $LIBS"
6191
6192 else
6193   echo "$ac_t""no" 1>&6
6194 fi
6195
6196   for ac_func in nan copysignf
6197 do
6198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6199 echo "configure:6200: checking for $ac_func" >&5
6200 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6201   echo $ac_n "(cached) $ac_c" 1>&6
6202 else
6203   cat > conftest.$ac_ext <<EOF
6204 #line 6205 "configure"
6205 #include "confdefs.h"
6206 /* System header to define __stub macros and hopefully few prototypes,
6207     which can conflict with char $ac_func(); below.  */
6208 #include <assert.h>
6209 /* Override any gcc2 internal prototype to avoid an error.  */
6210 /* We use char because int might match the return type of a gcc2
6211     builtin and then its argument prototype would still apply.  */
6212 char $ac_func();
6213
6214 int main() {
6215
6216 /* The GNU C library defines this for functions which it implements
6217     to always fail with ENOSYS.  Some functions are actually named
6218     something starting with __ and the normal name is an alias.  */
6219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6220 choke me
6221 #else
6222 $ac_func();
6223 #endif
6224
6225 ; return 0; }
6226 EOF
6227 if { (eval echo configure:6228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6228   rm -rf conftest*
6229   eval "ac_cv_func_$ac_func=yes"
6230 else
6231   echo "configure: failed program was:" >&5
6232   cat conftest.$ac_ext >&5
6233   rm -rf conftest*
6234   eval "ac_cv_func_$ac_func=no"
6235 fi
6236 rm -f conftest*
6237 fi
6238
6239 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6240   echo "$ac_t""yes" 1>&6
6241     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6242   cat >> confdefs.h <<EOF
6243 #define $ac_tr_func 1
6244 EOF
6245  
6246 else
6247   echo "$ac_t""no" 1>&6
6248 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6249 fi
6250 done
6251
6252
6253     for ac_func in __signbit
6254 do
6255 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6256 echo "configure:6257: checking for $ac_func" >&5
6257 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6258   echo $ac_n "(cached) $ac_c" 1>&6
6259 else
6260   cat > conftest.$ac_ext <<EOF
6261 #line 6262 "configure"
6262 #include "confdefs.h"
6263 /* System header to define __stub macros and hopefully few prototypes,
6264     which can conflict with char $ac_func(); below.  */
6265 #include <assert.h>
6266 /* Override any gcc2 internal prototype to avoid an error.  */
6267 /* We use char because int might match the return type of a gcc2
6268     builtin and then its argument prototype would still apply.  */
6269 char $ac_func();
6270
6271 int main() {
6272
6273 /* The GNU C library defines this for functions which it implements
6274     to always fail with ENOSYS.  Some functions are actually named
6275     something starting with __ and the normal name is an alias.  */
6276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6277 choke me
6278 #else
6279 $ac_func();
6280 #endif
6281
6282 ; return 0; }
6283 EOF
6284 if { (eval echo configure:6285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6285   rm -rf conftest*
6286   eval "ac_cv_func_$ac_func=yes"
6287 else
6288   echo "configure: failed program was:" >&5
6289   cat conftest.$ac_ext >&5
6290   rm -rf conftest*
6291   eval "ac_cv_func_$ac_func=no"
6292 fi
6293 rm -f conftest*
6294 fi
6295
6296 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6297   echo "$ac_t""yes" 1>&6
6298     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6299   cat >> confdefs.h <<EOF
6300 #define $ac_tr_func 1
6301 EOF
6302  
6303 else
6304   echo "$ac_t""no" 1>&6
6305 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6306 fi
6307 done
6308
6309   for ac_func in __signbitf
6310 do
6311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6312 echo "configure:6313: checking for $ac_func" >&5
6313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6314   echo $ac_n "(cached) $ac_c" 1>&6
6315 else
6316   cat > conftest.$ac_ext <<EOF
6317 #line 6318 "configure"
6318 #include "confdefs.h"
6319 /* System header to define __stub macros and hopefully few prototypes,
6320     which can conflict with char $ac_func(); below.  */
6321 #include <assert.h>
6322 /* Override any gcc2 internal prototype to avoid an error.  */
6323 /* We use char because int might match the return type of a gcc2
6324     builtin and then its argument prototype would still apply.  */
6325 char $ac_func();
6326
6327 int main() {
6328
6329 /* The GNU C library defines this for functions which it implements
6330     to always fail with ENOSYS.  Some functions are actually named
6331     something starting with __ and the normal name is an alias.  */
6332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6333 choke me
6334 #else
6335 $ac_func();
6336 #endif
6337
6338 ; return 0; }
6339 EOF
6340 if { (eval echo configure:6341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6341   rm -rf conftest*
6342   eval "ac_cv_func_$ac_func=yes"
6343 else
6344   echo "configure: failed program was:" >&5
6345   cat conftest.$ac_ext >&5
6346   rm -rf conftest*
6347   eval "ac_cv_func_$ac_func=no"
6348 fi
6349 rm -f conftest*
6350 fi
6351
6352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6353   echo "$ac_t""yes" 1>&6
6354     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6355   cat >> confdefs.h <<EOF
6356 #define $ac_tr_func 1
6357 EOF
6358  
6359 else
6360   echo "$ac_t""no" 1>&6
6361 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6362 fi
6363 done
6364
6365
6366           if test x$ac_cv_func_copysignl = x"yes"; then
6367     for ac_func in __signbitl
6368 do
6369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6370 echo "configure:6371: checking for $ac_func" >&5
6371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6372   echo $ac_n "(cached) $ac_c" 1>&6
6373 else
6374   cat > conftest.$ac_ext <<EOF
6375 #line 6376 "configure"
6376 #include "confdefs.h"
6377 /* System header to define __stub macros and hopefully few prototypes,
6378     which can conflict with char $ac_func(); below.  */
6379 #include <assert.h>
6380 /* Override any gcc2 internal prototype to avoid an error.  */
6381 /* We use char because int might match the return type of a gcc2
6382     builtin and then its argument prototype would still apply.  */
6383 char $ac_func();
6384
6385 int main() {
6386
6387 /* The GNU C library defines this for functions which it implements
6388     to always fail with ENOSYS.  Some functions are actually named
6389     something starting with __ and the normal name is an alias.  */
6390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6391 choke me
6392 #else
6393 $ac_func();
6394 #endif
6395
6396 ; return 0; }
6397 EOF
6398 if { (eval echo configure:6399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6399   rm -rf conftest*
6400   eval "ac_cv_func_$ac_func=yes"
6401 else
6402   echo "configure: failed program was:" >&5
6403   cat conftest.$ac_ext >&5
6404   rm -rf conftest*
6405   eval "ac_cv_func_$ac_func=no"
6406 fi
6407 rm -f conftest*
6408 fi
6409
6410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6411   echo "$ac_t""yes" 1>&6
6412     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6413   cat >> confdefs.h <<EOF
6414 #define $ac_tr_func 1
6415 EOF
6416  
6417 else
6418   echo "$ac_t""no" 1>&6
6419 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6420 fi
6421 done
6422
6423   fi
6424
6425   
6426
6427       
6428
6429       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6430 echo "configure:6431: checking for mbstate_t" >&5
6431   cat > conftest.$ac_ext <<EOF
6432 #line 6433 "configure"
6433 #include "confdefs.h"
6434 #include <wchar.h>
6435 int main() {
6436 mbstate_t teststate;
6437 ; return 0; }
6438 EOF
6439 if { (eval echo configure:6440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6440   rm -rf conftest*
6441   have_mbstate_t=yes
6442 else
6443   echo "configure: failed program was:" >&5
6444   cat conftest.$ac_ext >&5
6445   rm -rf conftest*
6446   have_mbstate_t=no
6447 fi
6448 rm -f conftest*
6449   echo "$ac_t""$have_mbstate_t" 1>&6
6450   if test x"$have_mbstate_t" = xyes; then
6451     cat >> confdefs.h <<\EOF
6452 #define HAVE_MBSTATE_T 1
6453 EOF
6454
6455   fi
6456
6457     for ac_hdr in wchar.h
6458 do
6459 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6460 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6461 echo "configure:6462: checking for $ac_hdr" >&5
6462 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6463   echo $ac_n "(cached) $ac_c" 1>&6
6464 else
6465   cat > conftest.$ac_ext <<EOF
6466 #line 6467 "configure"
6467 #include "confdefs.h"
6468 #include <$ac_hdr>
6469 EOF
6470 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6471 { (eval echo configure:6472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6472 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6473 if test -z "$ac_err"; then
6474   rm -rf conftest*
6475   eval "ac_cv_header_$ac_safe=yes"
6476 else
6477   echo "$ac_err" >&5
6478   echo "configure: failed program was:" >&5
6479   cat conftest.$ac_ext >&5
6480   rm -rf conftest*
6481   eval "ac_cv_header_$ac_safe=no"
6482 fi
6483 rm -f conftest*
6484 fi
6485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6486   echo "$ac_t""yes" 1>&6
6487     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6488   cat >> confdefs.h <<EOF
6489 #define $ac_tr_hdr 1
6490 EOF
6491  ac_has_wchar_h=yes
6492 else
6493   echo "$ac_t""no" 1>&6
6494 ac_has_wchar_h=no
6495 fi
6496 done
6497
6498   for ac_hdr in wctype.h
6499 do
6500 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6501 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6502 echo "configure:6503: checking for $ac_hdr" >&5
6503 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6504   echo $ac_n "(cached) $ac_c" 1>&6
6505 else
6506   cat > conftest.$ac_ext <<EOF
6507 #line 6508 "configure"
6508 #include "confdefs.h"
6509 #include <$ac_hdr>
6510 EOF
6511 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6512 { (eval echo configure:6513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6513 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6514 if test -z "$ac_err"; then
6515   rm -rf conftest*
6516   eval "ac_cv_header_$ac_safe=yes"
6517 else
6518   echo "$ac_err" >&5
6519   echo "configure: failed program was:" >&5
6520   cat conftest.$ac_ext >&5
6521   rm -rf conftest*
6522   eval "ac_cv_header_$ac_safe=no"
6523 fi
6524 rm -f conftest*
6525 fi
6526 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6527   echo "$ac_t""yes" 1>&6
6528     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6529   cat >> confdefs.h <<EOF
6530 #define $ac_tr_hdr 1
6531 EOF
6532  ac_has_wctype_h=yes
6533 else
6534   echo "$ac_t""no" 1>&6
6535 ac_has_wctype_h=no
6536 fi
6537 done
6538
6539   
6540     if test x"$ac_has_wchar_h" = xyes &&
6541      test x"$ac_has_wctype_h" = xyes &&
6542      test x"$enable_c_mbchar" != xno; then
6543       
6544             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6545 echo "configure:6546: checking for WCHAR_MIN and WCHAR_MAX" >&5
6546     cat > conftest.$ac_ext <<EOF
6547 #line 6548 "configure"
6548 #include "confdefs.h"
6549 #include <wchar.h>
6550 int main() {
6551 int i = WCHAR_MIN; int j = WCHAR_MAX;
6552 ; return 0; }
6553 EOF
6554 if { (eval echo configure:6555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6555   rm -rf conftest*
6556   has_wchar_minmax=yes
6557 else
6558   echo "configure: failed program was:" >&5
6559   cat conftest.$ac_ext >&5
6560   rm -rf conftest*
6561   has_wchar_minmax=no
6562 fi
6563 rm -f conftest*
6564     echo "$ac_t""$has_wchar_minmax" 1>&6
6565     
6566             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6567 echo "configure:6568: checking for WEOF" >&5
6568     cat > conftest.$ac_ext <<EOF
6569 #line 6570 "configure"
6570 #include "confdefs.h"
6571
6572       #include <wchar.h>
6573       #include <stddef.h>
6574 int main() {
6575 wint_t i = WEOF;
6576 ; return 0; }
6577 EOF
6578 if { (eval echo configure:6579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6579   rm -rf conftest*
6580   has_weof=yes
6581 else
6582   echo "configure: failed program was:" >&5
6583   cat conftest.$ac_ext >&5
6584   rm -rf conftest*
6585   has_weof=no
6586 fi
6587 rm -f conftest*
6588     echo "$ac_t""$has_weof" 1>&6
6589   
6590         ac_wfuncs=yes
6591     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6592 do
6593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6594 echo "configure:6595: checking for $ac_func" >&5
6595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6596   echo $ac_n "(cached) $ac_c" 1>&6
6597 else
6598   cat > conftest.$ac_ext <<EOF
6599 #line 6600 "configure"
6600 #include "confdefs.h"
6601 /* System header to define __stub macros and hopefully few prototypes,
6602     which can conflict with char $ac_func(); below.  */
6603 #include <assert.h>
6604 /* Override any gcc2 internal prototype to avoid an error.  */
6605 /* We use char because int might match the return type of a gcc2
6606     builtin and then its argument prototype would still apply.  */
6607 char $ac_func();
6608
6609 int main() {
6610
6611 /* The GNU C library defines this for functions which it implements
6612     to always fail with ENOSYS.  Some functions are actually named
6613     something starting with __ and the normal name is an alias.  */
6614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6615 choke me
6616 #else
6617 $ac_func();
6618 #endif
6619
6620 ; return 0; }
6621 EOF
6622 if { (eval echo configure:6623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6623   rm -rf conftest*
6624   eval "ac_cv_func_$ac_func=yes"
6625 else
6626   echo "configure: failed program was:" >&5
6627   cat conftest.$ac_ext >&5
6628   rm -rf conftest*
6629   eval "ac_cv_func_$ac_func=no"
6630 fi
6631 rm -f conftest*
6632 fi
6633
6634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6635   echo "$ac_t""yes" 1>&6
6636     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6637   cat >> confdefs.h <<EOF
6638 #define $ac_tr_func 1
6639 EOF
6640  
6641 else
6642   echo "$ac_t""no" 1>&6
6643 \
6644     ac_wfuncs=no
6645 fi
6646 done
6647
6648   
6649         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6650     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6651     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6652     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6653     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6654     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6655 do
6656 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6657 echo "configure:6658: checking for $ac_func" >&5
6658 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6659   echo $ac_n "(cached) $ac_c" 1>&6
6660 else
6661   cat > conftest.$ac_ext <<EOF
6662 #line 6663 "configure"
6663 #include "confdefs.h"
6664 /* System header to define __stub macros and hopefully few prototypes,
6665     which can conflict with char $ac_func(); below.  */
6666 #include <assert.h>
6667 /* Override any gcc2 internal prototype to avoid an error.  */
6668 /* We use char because int might match the return type of a gcc2
6669     builtin and then its argument prototype would still apply.  */
6670 char $ac_func();
6671
6672 int main() {
6673
6674 /* The GNU C library defines this for functions which it implements
6675     to always fail with ENOSYS.  Some functions are actually named
6676     something starting with __ and the normal name is an alias.  */
6677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6678 choke me
6679 #else
6680 $ac_func();
6681 #endif
6682
6683 ; return 0; }
6684 EOF
6685 if { (eval echo configure:6686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6686   rm -rf conftest*
6687   eval "ac_cv_func_$ac_func=yes"
6688 else
6689   echo "configure: failed program was:" >&5
6690   cat conftest.$ac_ext >&5
6691   rm -rf conftest*
6692   eval "ac_cv_func_$ac_func=no"
6693 fi
6694 rm -f conftest*
6695 fi
6696
6697 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6698   echo "$ac_t""yes" 1>&6
6699     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6700   cat >> confdefs.h <<EOF
6701 #define $ac_tr_func 1
6702 EOF
6703  
6704 else
6705   echo "$ac_t""no" 1>&6
6706 \
6707     ac_wfuncs=no
6708 fi
6709 done
6710
6711
6712     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6713 echo "configure:6714: checking for ISO C99 wchar_t support" >&5
6714     if test x"$has_weof" = xyes &&
6715        test x"$has_wchar_minmax" = xyes &&
6716        test x"$ac_wfuncs" = xyes; then
6717       ac_isoC99_wchar_t=yes
6718     else
6719       ac_isoC99_wchar_t=no
6720     fi
6721     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6722   
6723             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6724 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6725 echo "configure:6726: checking for iconv.h" >&5
6726 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6727   echo $ac_n "(cached) $ac_c" 1>&6
6728 else
6729   cat > conftest.$ac_ext <<EOF
6730 #line 6731 "configure"
6731 #include "confdefs.h"
6732 #include <iconv.h>
6733 EOF
6734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6735 { (eval echo configure:6736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6736 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6737 if test -z "$ac_err"; then
6738   rm -rf conftest*
6739   eval "ac_cv_header_$ac_safe=yes"
6740 else
6741   echo "$ac_err" >&5
6742   echo "configure: failed program was:" >&5
6743   cat conftest.$ac_ext >&5
6744   rm -rf conftest*
6745   eval "ac_cv_header_$ac_safe=no"
6746 fi
6747 rm -f conftest*
6748 fi
6749 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6750   echo "$ac_t""yes" 1>&6
6751   ac_has_iconv_h=yes
6752 else
6753   echo "$ac_t""no" 1>&6
6754 ac_has_iconv_h=no
6755 fi
6756
6757     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6758 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6759 echo "configure:6760: checking for langinfo.h" >&5
6760 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6761   echo $ac_n "(cached) $ac_c" 1>&6
6762 else
6763   cat > conftest.$ac_ext <<EOF
6764 #line 6765 "configure"
6765 #include "confdefs.h"
6766 #include <langinfo.h>
6767 EOF
6768 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6769 { (eval echo configure:6770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6770 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6771 if test -z "$ac_err"; then
6772   rm -rf conftest*
6773   eval "ac_cv_header_$ac_safe=yes"
6774 else
6775   echo "$ac_err" >&5
6776   echo "configure: failed program was:" >&5
6777   cat conftest.$ac_ext >&5
6778   rm -rf conftest*
6779   eval "ac_cv_header_$ac_safe=no"
6780 fi
6781 rm -f conftest*
6782 fi
6783 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6784   echo "$ac_t""yes" 1>&6
6785   ac_has_langinfo_h=yes
6786 else
6787   echo "$ac_t""no" 1>&6
6788 ac_has_langinfo_h=no
6789 fi
6790
6791
6792         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6793 echo "configure:6794: checking for iconv in -liconv" >&5
6794 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6795 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6796   echo $ac_n "(cached) $ac_c" 1>&6
6797 else
6798   ac_save_LIBS="$LIBS"
6799 LIBS="-liconv  $LIBS"
6800 cat > conftest.$ac_ext <<EOF
6801 #line 6802 "configure"
6802 #include "confdefs.h"
6803 /* Override any gcc2 internal prototype to avoid an error.  */
6804 /* We use char because int might match the return type of a gcc2
6805     builtin and then its argument prototype would still apply.  */
6806 char iconv();
6807
6808 int main() {
6809 iconv()
6810 ; return 0; }
6811 EOF
6812 if { (eval echo configure:6813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6813   rm -rf conftest*
6814   eval "ac_cv_lib_$ac_lib_var=yes"
6815 else
6816   echo "configure: failed program was:" >&5
6817   cat conftest.$ac_ext >&5
6818   rm -rf conftest*
6819   eval "ac_cv_lib_$ac_lib_var=no"
6820 fi
6821 rm -f conftest*
6822 LIBS="$ac_save_LIBS"
6823
6824 fi
6825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6826   echo "$ac_t""yes" 1>&6
6827   libiconv="-liconv"
6828 else
6829   echo "$ac_t""no" 1>&6
6830 fi
6831
6832     ac_save_LIBS="$LIBS"
6833     LIBS="$LIBS $libiconv"
6834
6835     for ac_func in iconv_open iconv_close iconv nl_langinfo
6836 do
6837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6838 echo "configure:6839: checking for $ac_func" >&5
6839 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6840   echo $ac_n "(cached) $ac_c" 1>&6
6841 else
6842   cat > conftest.$ac_ext <<EOF
6843 #line 6844 "configure"
6844 #include "confdefs.h"
6845 /* System header to define __stub macros and hopefully few prototypes,
6846     which can conflict with char $ac_func(); below.  */
6847 #include <assert.h>
6848 /* Override any gcc2 internal prototype to avoid an error.  */
6849 /* We use char because int might match the return type of a gcc2
6850     builtin and then its argument prototype would still apply.  */
6851 char $ac_func();
6852
6853 int main() {
6854
6855 /* The GNU C library defines this for functions which it implements
6856     to always fail with ENOSYS.  Some functions are actually named
6857     something starting with __ and the normal name is an alias.  */
6858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6859 choke me
6860 #else
6861 $ac_func();
6862 #endif
6863
6864 ; return 0; }
6865 EOF
6866 if { (eval echo configure:6867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6867   rm -rf conftest*
6868   eval "ac_cv_func_$ac_func=yes"
6869 else
6870   echo "configure: failed program was:" >&5
6871   cat conftest.$ac_ext >&5
6872   rm -rf conftest*
6873   eval "ac_cv_func_$ac_func=no"
6874 fi
6875 rm -f conftest*
6876 fi
6877
6878 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6879   echo "$ac_t""yes" 1>&6
6880     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6881   cat >> confdefs.h <<EOF
6882 #define $ac_tr_func 1
6883 EOF
6884  \
6885     ac_XPG2funcs=yes
6886 else
6887   echo "$ac_t""no" 1>&6
6888 ac_XPG2funcs=no
6889 fi
6890 done
6891
6892   
6893     LIBS="$ac_save_LIBS"
6894
6895     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6896 echo "configure:6897: checking for XPG2 wchar_t support" >&5
6897     if test x"$ac_has_iconv_h" = xyes &&
6898        test x"$ac_has_langinfo_h" = xyes &&
6899        test x"$ac_XPG2funcs" = xyes; then
6900       ac_XPG2_wchar_t=yes
6901     else
6902       ac_XPG2_wchar_t=no
6903     fi
6904     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6905   
6906             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6907 echo "configure:6908: checking for enabled wchar_t specializations" >&5
6908     if test x"$ac_isoC99_wchar_t" = xyes &&
6909        test x"$ac_XPG2_wchar_t" = xyes; then
6910       cat >> confdefs.h <<\EOF
6911 #define _GLIBCPP_USE_WCHAR_T 1
6912 EOF
6913
6914       echo "$ac_t"""yes"" 1>&6
6915     else
6916       echo "$ac_t"""no"" 1>&6
6917     fi
6918   else
6919         echo "configure: warning: wchar_t support disabled." 1>&2
6920   fi
6921
6922       os_include_dir="os/bsd/netbsd"
6923       cat >> confdefs.h <<\EOF
6924 #define HAVE_COPYSIGN 1
6925 EOF
6926
6927       cat >> confdefs.h <<\EOF
6928 #define HAVE_COPYSIGNF 1
6929 EOF
6930
6931       cat >> confdefs.h <<\EOF
6932 #define HAVE_FINITEF 1
6933 EOF
6934
6935       cat >> confdefs.h <<\EOF
6936 #define HAVE_FINITE 1
6937 EOF
6938
6939       cat >> confdefs.h <<\EOF
6940 #define HAVE_FREXPF 1
6941 EOF
6942
6943       cat >> confdefs.h <<\EOF
6944 #define HAVE_HYPOTF 1
6945 EOF
6946
6947       cat >> confdefs.h <<\EOF
6948 #define HAVE_ISINF 1
6949 EOF
6950
6951       cat >> confdefs.h <<\EOF
6952 #define HAVE_ISINFF 1
6953 EOF
6954
6955       cat >> confdefs.h <<\EOF
6956 #define HAVE_ISNAN 1
6957 EOF
6958
6959       cat >> confdefs.h <<\EOF
6960 #define HAVE_ISNANF 1
6961 EOF
6962
6963       if test x"long_double_math_on_this_cpu" = x"yes"; then
6964         cat >> confdefs.h <<\EOF
6965 #define HAVE_FINITEL 1
6966 EOF
6967
6968         cat >> confdefs.h <<\EOF
6969 #define HAVE_ISINFL 1
6970 EOF
6971
6972         cat >> confdefs.h <<\EOF
6973 #define HAVE_ISNANL 1
6974 EOF
6975
6976       fi
6977       ;;
6978     *-mingw32*)
6979       for ac_hdr in sys/types.h locale.h float.h
6980 do
6981 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6982 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6983 echo "configure:6984: checking for $ac_hdr" >&5
6984 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6985   echo $ac_n "(cached) $ac_c" 1>&6
6986 else
6987   cat > conftest.$ac_ext <<EOF
6988 #line 6989 "configure"
6989 #include "confdefs.h"
6990 #include <$ac_hdr>
6991 EOF
6992 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6993 { (eval echo configure:6994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6994 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6995 if test -z "$ac_err"; then
6996   rm -rf conftest*
6997   eval "ac_cv_header_$ac_safe=yes"
6998 else
6999   echo "$ac_err" >&5
7000   echo "configure: failed program was:" >&5
7001   cat conftest.$ac_ext >&5
7002   rm -rf conftest*
7003   eval "ac_cv_header_$ac_safe=no"
7004 fi
7005 rm -f conftest*
7006 fi
7007 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7008   echo "$ac_t""yes" 1>&6
7009     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7010   cat >> confdefs.h <<EOF
7011 #define $ac_tr_hdr 1
7012 EOF
7013  
7014 else
7015   echo "$ac_t""no" 1>&6
7016 fi
7017 done
7018
7019       
7020   # If we're not using GNU ld, then there's no point in even trying these
7021   # tests.  Check for that first.  We should have already tested for gld
7022   # by now (in libtool), but require it now just to be safe...
7023   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7024   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7025   
7026
7027   # The name set by libtool depends on the version of libtool.  Shame on us
7028   # for depending on an impl detail, but c'est la vie.  Older versions used
7029   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7030   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7031   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7032   # set (hence we're using an older libtool), then set it.
7033   if test x${with_gnu_ld+set} != xset; then
7034     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7035       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7036       with_gnu_ld=no
7037     else
7038       with_gnu_ld=$ac_cv_prog_gnu_ld
7039     fi
7040   fi
7041
7042   # Start by getting the version number.  I think the libtool test already
7043   # does some of this, but throws away the result.
7044   
7045   ldver=`$LD --version 2>/dev/null | head -1 | \
7046          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7047   
7048   glibcpp_gnu_ld_version=`echo $ldver | \
7049          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7050
7051   # Set --gc-sections.
7052   if test "$with_gnu_ld" = "notbroken"; then
7053     # GNU ld it is!  Joy and bunny rabbits!
7054
7055     # All these tests are for C++; save the language and the compiler flags.
7056     # Need to do this so that g++ won't try to link in libstdc++
7057     ac_test_CFLAGS="${CFLAGS+set}"
7058     ac_save_CFLAGS="$CFLAGS"
7059     CFLAGS='-x c++  -Wl,--gc-sections'
7060
7061     # Check for -Wl,--gc-sections
7062     # XXX This test is broken at the moment, as symbols required for
7063     # linking are now in libsupc++ (not built yet.....). In addition, 
7064     # this test has cored on solaris in the past. In addition,
7065     # --gc-sections doesn't really work at the moment (keeps on discarding
7066     # used sections, first .eh_frame and now some of the glibc sections for
7067     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7068     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7069 echo "configure:7070: checking for ld that supports -Wl,--gc-sections" >&5
7070     if test "$cross_compiling" = yes; then
7071   ac_sectionLDflags=yes
7072 else
7073   cat > conftest.$ac_ext <<EOF
7074 #line 7075 "configure"
7075 #include "confdefs.h"
7076
7077      int main(void) 
7078      {
7079        try { throw 1; }
7080        catch (...) { };
7081        return 0;
7082      }
7083     
7084 EOF
7085 if { (eval echo configure:7086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7086 then
7087   ac_sectionLDflags=yes
7088 else
7089   echo "configure: failed program was:" >&5
7090   cat conftest.$ac_ext >&5
7091   rm -fr conftest*
7092   ac_sectionLDflags=no
7093 fi
7094 rm -fr conftest*
7095 fi
7096
7097     if test "$ac_test_CFLAGS" = set; then
7098       CFLAGS="$ac_save_CFLAGS"
7099     else
7100       # this is the suspicious part
7101       CFLAGS=''
7102     fi
7103     if test "$ac_sectionLDflags" = "yes"; then
7104       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7105     fi
7106     echo "$ac_t""$ac_sectionLDflags" 1>&6
7107   fi
7108
7109   # Set linker optimization flags.
7110   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7111     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7112   fi
7113
7114   
7115   
7116
7117       
7118     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7119 echo "configure:7120: checking for main in -lm" >&5
7120 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7121 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7122   echo $ac_n "(cached) $ac_c" 1>&6
7123 else
7124   ac_save_LIBS="$LIBS"
7125 LIBS="-lm  $LIBS"
7126 cat > conftest.$ac_ext <<EOF
7127 #line 7128 "configure"
7128 #include "confdefs.h"
7129
7130 int main() {
7131 main()
7132 ; return 0; }
7133 EOF
7134 if { (eval echo configure:7135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7135   rm -rf conftest*
7136   eval "ac_cv_lib_$ac_lib_var=yes"
7137 else
7138   echo "configure: failed program was:" >&5
7139   cat conftest.$ac_ext >&5
7140   rm -rf conftest*
7141   eval "ac_cv_lib_$ac_lib_var=no"
7142 fi
7143 rm -f conftest*
7144 LIBS="$ac_save_LIBS"
7145
7146 fi
7147 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7148   echo "$ac_t""yes" 1>&6
7149     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7150     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7151   cat >> confdefs.h <<EOF
7152 #define $ac_tr_lib 1
7153 EOF
7154
7155   LIBS="-lm $LIBS"
7156
7157 else
7158   echo "$ac_t""no" 1>&6
7159 fi
7160
7161   for ac_func in nan copysignf
7162 do
7163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7164 echo "configure:7165: checking for $ac_func" >&5
7165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7166   echo $ac_n "(cached) $ac_c" 1>&6
7167 else
7168   cat > conftest.$ac_ext <<EOF
7169 #line 7170 "configure"
7170 #include "confdefs.h"
7171 /* System header to define __stub macros and hopefully few prototypes,
7172     which can conflict with char $ac_func(); below.  */
7173 #include <assert.h>
7174 /* Override any gcc2 internal prototype to avoid an error.  */
7175 /* We use char because int might match the return type of a gcc2
7176     builtin and then its argument prototype would still apply.  */
7177 char $ac_func();
7178
7179 int main() {
7180
7181 /* The GNU C library defines this for functions which it implements
7182     to always fail with ENOSYS.  Some functions are actually named
7183     something starting with __ and the normal name is an alias.  */
7184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7185 choke me
7186 #else
7187 $ac_func();
7188 #endif
7189
7190 ; return 0; }
7191 EOF
7192 if { (eval echo configure:7193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7193   rm -rf conftest*
7194   eval "ac_cv_func_$ac_func=yes"
7195 else
7196   echo "configure: failed program was:" >&5
7197   cat conftest.$ac_ext >&5
7198   rm -rf conftest*
7199   eval "ac_cv_func_$ac_func=no"
7200 fi
7201 rm -f conftest*
7202 fi
7203
7204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7205   echo "$ac_t""yes" 1>&6
7206     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7207   cat >> confdefs.h <<EOF
7208 #define $ac_tr_func 1
7209 EOF
7210  
7211 else
7212   echo "$ac_t""no" 1>&6
7213 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7214 fi
7215 done
7216
7217
7218     for ac_func in __signbit
7219 do
7220 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7221 echo "configure:7222: checking for $ac_func" >&5
7222 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7223   echo $ac_n "(cached) $ac_c" 1>&6
7224 else
7225   cat > conftest.$ac_ext <<EOF
7226 #line 7227 "configure"
7227 #include "confdefs.h"
7228 /* System header to define __stub macros and hopefully few prototypes,
7229     which can conflict with char $ac_func(); below.  */
7230 #include <assert.h>
7231 /* Override any gcc2 internal prototype to avoid an error.  */
7232 /* We use char because int might match the return type of a gcc2
7233     builtin and then its argument prototype would still apply.  */
7234 char $ac_func();
7235
7236 int main() {
7237
7238 /* The GNU C library defines this for functions which it implements
7239     to always fail with ENOSYS.  Some functions are actually named
7240     something starting with __ and the normal name is an alias.  */
7241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7242 choke me
7243 #else
7244 $ac_func();
7245 #endif
7246
7247 ; return 0; }
7248 EOF
7249 if { (eval echo configure:7250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7250   rm -rf conftest*
7251   eval "ac_cv_func_$ac_func=yes"
7252 else
7253   echo "configure: failed program was:" >&5
7254   cat conftest.$ac_ext >&5
7255   rm -rf conftest*
7256   eval "ac_cv_func_$ac_func=no"
7257 fi
7258 rm -f conftest*
7259 fi
7260
7261 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7262   echo "$ac_t""yes" 1>&6
7263     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7264   cat >> confdefs.h <<EOF
7265 #define $ac_tr_func 1
7266 EOF
7267  
7268 else
7269   echo "$ac_t""no" 1>&6
7270 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7271 fi
7272 done
7273
7274   for ac_func in __signbitf
7275 do
7276 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7277 echo "configure:7278: checking for $ac_func" >&5
7278 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7279   echo $ac_n "(cached) $ac_c" 1>&6
7280 else
7281   cat > conftest.$ac_ext <<EOF
7282 #line 7283 "configure"
7283 #include "confdefs.h"
7284 /* System header to define __stub macros and hopefully few prototypes,
7285     which can conflict with char $ac_func(); below.  */
7286 #include <assert.h>
7287 /* Override any gcc2 internal prototype to avoid an error.  */
7288 /* We use char because int might match the return type of a gcc2
7289     builtin and then its argument prototype would still apply.  */
7290 char $ac_func();
7291
7292 int main() {
7293
7294 /* The GNU C library defines this for functions which it implements
7295     to always fail with ENOSYS.  Some functions are actually named
7296     something starting with __ and the normal name is an alias.  */
7297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7298 choke me
7299 #else
7300 $ac_func();
7301 #endif
7302
7303 ; return 0; }
7304 EOF
7305 if { (eval echo configure:7306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7306   rm -rf conftest*
7307   eval "ac_cv_func_$ac_func=yes"
7308 else
7309   echo "configure: failed program was:" >&5
7310   cat conftest.$ac_ext >&5
7311   rm -rf conftest*
7312   eval "ac_cv_func_$ac_func=no"
7313 fi
7314 rm -f conftest*
7315 fi
7316
7317 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7318   echo "$ac_t""yes" 1>&6
7319     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7320   cat >> confdefs.h <<EOF
7321 #define $ac_tr_func 1
7322 EOF
7323  
7324 else
7325   echo "$ac_t""no" 1>&6
7326 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7327 fi
7328 done
7329
7330
7331           if test x$ac_cv_func_copysignl = x"yes"; then
7332     for ac_func in __signbitl
7333 do
7334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7335 echo "configure:7336: checking for $ac_func" >&5
7336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7337   echo $ac_n "(cached) $ac_c" 1>&6
7338 else
7339   cat > conftest.$ac_ext <<EOF
7340 #line 7341 "configure"
7341 #include "confdefs.h"
7342 /* System header to define __stub macros and hopefully few prototypes,
7343     which can conflict with char $ac_func(); below.  */
7344 #include <assert.h>
7345 /* Override any gcc2 internal prototype to avoid an error.  */
7346 /* We use char because int might match the return type of a gcc2
7347     builtin and then its argument prototype would still apply.  */
7348 char $ac_func();
7349
7350 int main() {
7351
7352 /* The GNU C library defines this for functions which it implements
7353     to always fail with ENOSYS.  Some functions are actually named
7354     something starting with __ and the normal name is an alias.  */
7355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7356 choke me
7357 #else
7358 $ac_func();
7359 #endif
7360
7361 ; return 0; }
7362 EOF
7363 if { (eval echo configure:7364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7364   rm -rf conftest*
7365   eval "ac_cv_func_$ac_func=yes"
7366 else
7367   echo "configure: failed program was:" >&5
7368   cat conftest.$ac_ext >&5
7369   rm -rf conftest*
7370   eval "ac_cv_func_$ac_func=no"
7371 fi
7372 rm -f conftest*
7373 fi
7374
7375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7376   echo "$ac_t""yes" 1>&6
7377     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7378   cat >> confdefs.h <<EOF
7379 #define $ac_tr_func 1
7380 EOF
7381  
7382 else
7383   echo "$ac_t""no" 1>&6
7384 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7385 fi
7386 done
7387
7388   fi
7389
7390   
7391
7392       
7393
7394       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7395 echo "configure:7396: checking for mbstate_t" >&5
7396   cat > conftest.$ac_ext <<EOF
7397 #line 7398 "configure"
7398 #include "confdefs.h"
7399 #include <wchar.h>
7400 int main() {
7401 mbstate_t teststate;
7402 ; return 0; }
7403 EOF
7404 if { (eval echo configure:7405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7405   rm -rf conftest*
7406   have_mbstate_t=yes
7407 else
7408   echo "configure: failed program was:" >&5
7409   cat conftest.$ac_ext >&5
7410   rm -rf conftest*
7411   have_mbstate_t=no
7412 fi
7413 rm -f conftest*
7414   echo "$ac_t""$have_mbstate_t" 1>&6
7415   if test x"$have_mbstate_t" = xyes; then
7416     cat >> confdefs.h <<\EOF
7417 #define HAVE_MBSTATE_T 1
7418 EOF
7419
7420   fi
7421
7422     for ac_hdr in wchar.h
7423 do
7424 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7425 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7426 echo "configure:7427: checking for $ac_hdr" >&5
7427 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7428   echo $ac_n "(cached) $ac_c" 1>&6
7429 else
7430   cat > conftest.$ac_ext <<EOF
7431 #line 7432 "configure"
7432 #include "confdefs.h"
7433 #include <$ac_hdr>
7434 EOF
7435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7436 { (eval echo configure:7437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7437 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7438 if test -z "$ac_err"; then
7439   rm -rf conftest*
7440   eval "ac_cv_header_$ac_safe=yes"
7441 else
7442   echo "$ac_err" >&5
7443   echo "configure: failed program was:" >&5
7444   cat conftest.$ac_ext >&5
7445   rm -rf conftest*
7446   eval "ac_cv_header_$ac_safe=no"
7447 fi
7448 rm -f conftest*
7449 fi
7450 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7451   echo "$ac_t""yes" 1>&6
7452     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7453   cat >> confdefs.h <<EOF
7454 #define $ac_tr_hdr 1
7455 EOF
7456  ac_has_wchar_h=yes
7457 else
7458   echo "$ac_t""no" 1>&6
7459 ac_has_wchar_h=no
7460 fi
7461 done
7462
7463   for ac_hdr in wctype.h
7464 do
7465 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7466 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7467 echo "configure:7468: checking for $ac_hdr" >&5
7468 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7469   echo $ac_n "(cached) $ac_c" 1>&6
7470 else
7471   cat > conftest.$ac_ext <<EOF
7472 #line 7473 "configure"
7473 #include "confdefs.h"
7474 #include <$ac_hdr>
7475 EOF
7476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7477 { (eval echo configure:7478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7479 if test -z "$ac_err"; then
7480   rm -rf conftest*
7481   eval "ac_cv_header_$ac_safe=yes"
7482 else
7483   echo "$ac_err" >&5
7484   echo "configure: failed program was:" >&5
7485   cat conftest.$ac_ext >&5
7486   rm -rf conftest*
7487   eval "ac_cv_header_$ac_safe=no"
7488 fi
7489 rm -f conftest*
7490 fi
7491 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7492   echo "$ac_t""yes" 1>&6
7493     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7494   cat >> confdefs.h <<EOF
7495 #define $ac_tr_hdr 1
7496 EOF
7497  ac_has_wctype_h=yes
7498 else
7499   echo "$ac_t""no" 1>&6
7500 ac_has_wctype_h=no
7501 fi
7502 done
7503
7504   
7505     if test x"$ac_has_wchar_h" = xyes &&
7506      test x"$ac_has_wctype_h" = xyes &&
7507      test x"$enable_c_mbchar" != xno; then
7508       
7509             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7510 echo "configure:7511: checking for WCHAR_MIN and WCHAR_MAX" >&5
7511     cat > conftest.$ac_ext <<EOF
7512 #line 7513 "configure"
7513 #include "confdefs.h"
7514 #include <wchar.h>
7515 int main() {
7516 int i = WCHAR_MIN; int j = WCHAR_MAX;
7517 ; return 0; }
7518 EOF
7519 if { (eval echo configure:7520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7520   rm -rf conftest*
7521   has_wchar_minmax=yes
7522 else
7523   echo "configure: failed program was:" >&5
7524   cat conftest.$ac_ext >&5
7525   rm -rf conftest*
7526   has_wchar_minmax=no
7527 fi
7528 rm -f conftest*
7529     echo "$ac_t""$has_wchar_minmax" 1>&6
7530     
7531             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7532 echo "configure:7533: checking for WEOF" >&5
7533     cat > conftest.$ac_ext <<EOF
7534 #line 7535 "configure"
7535 #include "confdefs.h"
7536
7537       #include <wchar.h>
7538       #include <stddef.h>
7539 int main() {
7540 wint_t i = WEOF;
7541 ; return 0; }
7542 EOF
7543 if { (eval echo configure:7544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7544   rm -rf conftest*
7545   has_weof=yes
7546 else
7547   echo "configure: failed program was:" >&5
7548   cat conftest.$ac_ext >&5
7549   rm -rf conftest*
7550   has_weof=no
7551 fi
7552 rm -f conftest*
7553     echo "$ac_t""$has_weof" 1>&6
7554   
7555         ac_wfuncs=yes
7556     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7557 do
7558 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7559 echo "configure:7560: checking for $ac_func" >&5
7560 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7561   echo $ac_n "(cached) $ac_c" 1>&6
7562 else
7563   cat > conftest.$ac_ext <<EOF
7564 #line 7565 "configure"
7565 #include "confdefs.h"
7566 /* System header to define __stub macros and hopefully few prototypes,
7567     which can conflict with char $ac_func(); below.  */
7568 #include <assert.h>
7569 /* Override any gcc2 internal prototype to avoid an error.  */
7570 /* We use char because int might match the return type of a gcc2
7571     builtin and then its argument prototype would still apply.  */
7572 char $ac_func();
7573
7574 int main() {
7575
7576 /* The GNU C library defines this for functions which it implements
7577     to always fail with ENOSYS.  Some functions are actually named
7578     something starting with __ and the normal name is an alias.  */
7579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7580 choke me
7581 #else
7582 $ac_func();
7583 #endif
7584
7585 ; return 0; }
7586 EOF
7587 if { (eval echo configure:7588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7588   rm -rf conftest*
7589   eval "ac_cv_func_$ac_func=yes"
7590 else
7591   echo "configure: failed program was:" >&5
7592   cat conftest.$ac_ext >&5
7593   rm -rf conftest*
7594   eval "ac_cv_func_$ac_func=no"
7595 fi
7596 rm -f conftest*
7597 fi
7598
7599 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7600   echo "$ac_t""yes" 1>&6
7601     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7602   cat >> confdefs.h <<EOF
7603 #define $ac_tr_func 1
7604 EOF
7605  
7606 else
7607   echo "$ac_t""no" 1>&6
7608 \
7609     ac_wfuncs=no
7610 fi
7611 done
7612
7613   
7614         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7615     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7616     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7617     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7618     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7619     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7620 do
7621 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7622 echo "configure:7623: checking for $ac_func" >&5
7623 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7624   echo $ac_n "(cached) $ac_c" 1>&6
7625 else
7626   cat > conftest.$ac_ext <<EOF
7627 #line 7628 "configure"
7628 #include "confdefs.h"
7629 /* System header to define __stub macros and hopefully few prototypes,
7630     which can conflict with char $ac_func(); below.  */
7631 #include <assert.h>
7632 /* Override any gcc2 internal prototype to avoid an error.  */
7633 /* We use char because int might match the return type of a gcc2
7634     builtin and then its argument prototype would still apply.  */
7635 char $ac_func();
7636
7637 int main() {
7638
7639 /* The GNU C library defines this for functions which it implements
7640     to always fail with ENOSYS.  Some functions are actually named
7641     something starting with __ and the normal name is an alias.  */
7642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7643 choke me
7644 #else
7645 $ac_func();
7646 #endif
7647
7648 ; return 0; }
7649 EOF
7650 if { (eval echo configure:7651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7651   rm -rf conftest*
7652   eval "ac_cv_func_$ac_func=yes"
7653 else
7654   echo "configure: failed program was:" >&5
7655   cat conftest.$ac_ext >&5
7656   rm -rf conftest*
7657   eval "ac_cv_func_$ac_func=no"
7658 fi
7659 rm -f conftest*
7660 fi
7661
7662 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7663   echo "$ac_t""yes" 1>&6
7664     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7665   cat >> confdefs.h <<EOF
7666 #define $ac_tr_func 1
7667 EOF
7668  
7669 else
7670   echo "$ac_t""no" 1>&6
7671 \
7672     ac_wfuncs=no
7673 fi
7674 done
7675
7676
7677     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7678 echo "configure:7679: checking for ISO C99 wchar_t support" >&5
7679     if test x"$has_weof" = xyes &&
7680        test x"$has_wchar_minmax" = xyes &&
7681        test x"$ac_wfuncs" = xyes; then
7682       ac_isoC99_wchar_t=yes
7683     else
7684       ac_isoC99_wchar_t=no
7685     fi
7686     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7687   
7688             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7689 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7690 echo "configure:7691: checking for iconv.h" >&5
7691 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7692   echo $ac_n "(cached) $ac_c" 1>&6
7693 else
7694   cat > conftest.$ac_ext <<EOF
7695 #line 7696 "configure"
7696 #include "confdefs.h"
7697 #include <iconv.h>
7698 EOF
7699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7700 { (eval echo configure:7701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7701 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7702 if test -z "$ac_err"; then
7703   rm -rf conftest*
7704   eval "ac_cv_header_$ac_safe=yes"
7705 else
7706   echo "$ac_err" >&5
7707   echo "configure: failed program was:" >&5
7708   cat conftest.$ac_ext >&5
7709   rm -rf conftest*
7710   eval "ac_cv_header_$ac_safe=no"
7711 fi
7712 rm -f conftest*
7713 fi
7714 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7715   echo "$ac_t""yes" 1>&6
7716   ac_has_iconv_h=yes
7717 else
7718   echo "$ac_t""no" 1>&6
7719 ac_has_iconv_h=no
7720 fi
7721
7722     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7723 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7724 echo "configure:7725: checking for langinfo.h" >&5
7725 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7726   echo $ac_n "(cached) $ac_c" 1>&6
7727 else
7728   cat > conftest.$ac_ext <<EOF
7729 #line 7730 "configure"
7730 #include "confdefs.h"
7731 #include <langinfo.h>
7732 EOF
7733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7734 { (eval echo configure:7735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7735 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7736 if test -z "$ac_err"; then
7737   rm -rf conftest*
7738   eval "ac_cv_header_$ac_safe=yes"
7739 else
7740   echo "$ac_err" >&5
7741   echo "configure: failed program was:" >&5
7742   cat conftest.$ac_ext >&5
7743   rm -rf conftest*
7744   eval "ac_cv_header_$ac_safe=no"
7745 fi
7746 rm -f conftest*
7747 fi
7748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7749   echo "$ac_t""yes" 1>&6
7750   ac_has_langinfo_h=yes
7751 else
7752   echo "$ac_t""no" 1>&6
7753 ac_has_langinfo_h=no
7754 fi
7755
7756
7757         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7758 echo "configure:7759: checking for iconv in -liconv" >&5
7759 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7760 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7761   echo $ac_n "(cached) $ac_c" 1>&6
7762 else
7763   ac_save_LIBS="$LIBS"
7764 LIBS="-liconv  $LIBS"
7765 cat > conftest.$ac_ext <<EOF
7766 #line 7767 "configure"
7767 #include "confdefs.h"
7768 /* Override any gcc2 internal prototype to avoid an error.  */
7769 /* We use char because int might match the return type of a gcc2
7770     builtin and then its argument prototype would still apply.  */
7771 char iconv();
7772
7773 int main() {
7774 iconv()
7775 ; return 0; }
7776 EOF
7777 if { (eval echo configure:7778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7778   rm -rf conftest*
7779   eval "ac_cv_lib_$ac_lib_var=yes"
7780 else
7781   echo "configure: failed program was:" >&5
7782   cat conftest.$ac_ext >&5
7783   rm -rf conftest*
7784   eval "ac_cv_lib_$ac_lib_var=no"
7785 fi
7786 rm -f conftest*
7787 LIBS="$ac_save_LIBS"
7788
7789 fi
7790 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7791   echo "$ac_t""yes" 1>&6
7792   libiconv="-liconv"
7793 else
7794   echo "$ac_t""no" 1>&6
7795 fi
7796
7797     ac_save_LIBS="$LIBS"
7798     LIBS="$LIBS $libiconv"
7799
7800     for ac_func in iconv_open iconv_close iconv nl_langinfo
7801 do
7802 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7803 echo "configure:7804: checking for $ac_func" >&5
7804 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7805   echo $ac_n "(cached) $ac_c" 1>&6
7806 else
7807   cat > conftest.$ac_ext <<EOF
7808 #line 7809 "configure"
7809 #include "confdefs.h"
7810 /* System header to define __stub macros and hopefully few prototypes,
7811     which can conflict with char $ac_func(); below.  */
7812 #include <assert.h>
7813 /* Override any gcc2 internal prototype to avoid an error.  */
7814 /* We use char because int might match the return type of a gcc2
7815     builtin and then its argument prototype would still apply.  */
7816 char $ac_func();
7817
7818 int main() {
7819
7820 /* The GNU C library defines this for functions which it implements
7821     to always fail with ENOSYS.  Some functions are actually named
7822     something starting with __ and the normal name is an alias.  */
7823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7824 choke me
7825 #else
7826 $ac_func();
7827 #endif
7828
7829 ; return 0; }
7830 EOF
7831 if { (eval echo configure:7832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7832   rm -rf conftest*
7833   eval "ac_cv_func_$ac_func=yes"
7834 else
7835   echo "configure: failed program was:" >&5
7836   cat conftest.$ac_ext >&5
7837   rm -rf conftest*
7838   eval "ac_cv_func_$ac_func=no"
7839 fi
7840 rm -f conftest*
7841 fi
7842
7843 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7844   echo "$ac_t""yes" 1>&6
7845     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7846   cat >> confdefs.h <<EOF
7847 #define $ac_tr_func 1
7848 EOF
7849  \
7850     ac_XPG2funcs=yes
7851 else
7852   echo "$ac_t""no" 1>&6
7853 ac_XPG2funcs=no
7854 fi
7855 done
7856
7857   
7858     LIBS="$ac_save_LIBS"
7859
7860     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7861 echo "configure:7862: checking for XPG2 wchar_t support" >&5
7862     if test x"$ac_has_iconv_h" = xyes &&
7863        test x"$ac_has_langinfo_h" = xyes &&
7864        test x"$ac_XPG2funcs" = xyes; then
7865       ac_XPG2_wchar_t=yes
7866     else
7867       ac_XPG2_wchar_t=no
7868     fi
7869     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7870   
7871             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7872 echo "configure:7873: checking for enabled wchar_t specializations" >&5
7873     if test x"$ac_isoC99_wchar_t" = xyes &&
7874        test x"$ac_XPG2_wchar_t" = xyes; then
7875       cat >> confdefs.h <<\EOF
7876 #define _GLIBCPP_USE_WCHAR_T 1
7877 EOF
7878
7879       echo "$ac_t"""yes"" 1>&6
7880     else
7881       echo "$ac_t"""no"" 1>&6
7882     fi
7883   else
7884         echo "configure: warning: wchar_t support disabled." 1>&2
7885   fi
7886
7887       os_include_dir="os/mingw32"
7888       ;;
7889     *-windiss*)
7890       os_include_dir="os/windiss"
7891       ;;
7892     *-qnx6.[12]*)
7893       SECTION_FLAGS='-ffunction-sections -fdata-sections'
7894        
7895       
7896   # If we're not using GNU ld, then there's no point in even trying these
7897   # tests.  Check for that first.  We should have already tested for gld
7898   # by now (in libtool), but require it now just to be safe...
7899   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7900   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7901   
7902
7903   # The name set by libtool depends on the version of libtool.  Shame on us
7904   # for depending on an impl detail, but c'est la vie.  Older versions used
7905   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7906   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7907   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7908   # set (hence we're using an older libtool), then set it.
7909   if test x${with_gnu_ld+set} != xset; then
7910     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7911       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7912       with_gnu_ld=no
7913     else
7914       with_gnu_ld=$ac_cv_prog_gnu_ld
7915     fi
7916   fi
7917
7918   # Start by getting the version number.  I think the libtool test already
7919   # does some of this, but throws away the result.
7920   
7921   ldver=`$LD --version 2>/dev/null | head -1 | \
7922          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7923   
7924   glibcpp_gnu_ld_version=`echo $ldver | \
7925          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7926
7927   # Set --gc-sections.
7928   if test "$with_gnu_ld" = "notbroken"; then
7929     # GNU ld it is!  Joy and bunny rabbits!
7930
7931     # All these tests are for C++; save the language and the compiler flags.
7932     # Need to do this so that g++ won't try to link in libstdc++
7933     ac_test_CFLAGS="${CFLAGS+set}"
7934     ac_save_CFLAGS="$CFLAGS"
7935     CFLAGS='-x c++  -Wl,--gc-sections'
7936
7937     # Check for -Wl,--gc-sections
7938     # XXX This test is broken at the moment, as symbols required for
7939     # linking are now in libsupc++ (not built yet.....). In addition, 
7940     # this test has cored on solaris in the past. In addition,
7941     # --gc-sections doesn't really work at the moment (keeps on discarding
7942     # used sections, first .eh_frame and now some of the glibc sections for
7943     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7944     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7945 echo "configure:7946: checking for ld that supports -Wl,--gc-sections" >&5
7946     if test "$cross_compiling" = yes; then
7947   ac_sectionLDflags=yes
7948 else
7949   cat > conftest.$ac_ext <<EOF
7950 #line 7951 "configure"
7951 #include "confdefs.h"
7952
7953      int main(void) 
7954      {
7955        try { throw 1; }
7956        catch (...) { };
7957        return 0;
7958      }
7959     
7960 EOF
7961 if { (eval echo configure:7962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7962 then
7963   ac_sectionLDflags=yes
7964 else
7965   echo "configure: failed program was:" >&5
7966   cat conftest.$ac_ext >&5
7967   rm -fr conftest*
7968   ac_sectionLDflags=no
7969 fi
7970 rm -fr conftest*
7971 fi
7972
7973     if test "$ac_test_CFLAGS" = set; then
7974       CFLAGS="$ac_save_CFLAGS"
7975     else
7976       # this is the suspicious part
7977       CFLAGS=''
7978     fi
7979     if test "$ac_sectionLDflags" = "yes"; then
7980       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7981     fi
7982     echo "$ac_t""$ac_sectionLDflags" 1>&6
7983   fi
7984
7985   # Set linker optimization flags.
7986   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7987     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7988   fi
7989
7990   
7991   
7992
7993       
7994     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7995 echo "configure:7996: checking for main in -lm" >&5
7996 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7997 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7998   echo $ac_n "(cached) $ac_c" 1>&6
7999 else
8000   ac_save_LIBS="$LIBS"
8001 LIBS="-lm  $LIBS"
8002 cat > conftest.$ac_ext <<EOF
8003 #line 8004 "configure"
8004 #include "confdefs.h"
8005
8006 int main() {
8007 main()
8008 ; return 0; }
8009 EOF
8010 if { (eval echo configure:8011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8011   rm -rf conftest*
8012   eval "ac_cv_lib_$ac_lib_var=yes"
8013 else
8014   echo "configure: failed program was:" >&5
8015   cat conftest.$ac_ext >&5
8016   rm -rf conftest*
8017   eval "ac_cv_lib_$ac_lib_var=no"
8018 fi
8019 rm -f conftest*
8020 LIBS="$ac_save_LIBS"
8021
8022 fi
8023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8024   echo "$ac_t""yes" 1>&6
8025     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8026     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8027   cat >> confdefs.h <<EOF
8028 #define $ac_tr_lib 1
8029 EOF
8030
8031   LIBS="-lm $LIBS"
8032
8033 else
8034   echo "$ac_t""no" 1>&6
8035 fi
8036
8037   for ac_func in nan copysignf
8038 do
8039 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8040 echo "configure:8041: checking for $ac_func" >&5
8041 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8042   echo $ac_n "(cached) $ac_c" 1>&6
8043 else
8044   cat > conftest.$ac_ext <<EOF
8045 #line 8046 "configure"
8046 #include "confdefs.h"
8047 /* System header to define __stub macros and hopefully few prototypes,
8048     which can conflict with char $ac_func(); below.  */
8049 #include <assert.h>
8050 /* Override any gcc2 internal prototype to avoid an error.  */
8051 /* We use char because int might match the return type of a gcc2
8052     builtin and then its argument prototype would still apply.  */
8053 char $ac_func();
8054
8055 int main() {
8056
8057 /* The GNU C library defines this for functions which it implements
8058     to always fail with ENOSYS.  Some functions are actually named
8059     something starting with __ and the normal name is an alias.  */
8060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8061 choke me
8062 #else
8063 $ac_func();
8064 #endif
8065
8066 ; return 0; }
8067 EOF
8068 if { (eval echo configure:8069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8069   rm -rf conftest*
8070   eval "ac_cv_func_$ac_func=yes"
8071 else
8072   echo "configure: failed program was:" >&5
8073   cat conftest.$ac_ext >&5
8074   rm -rf conftest*
8075   eval "ac_cv_func_$ac_func=no"
8076 fi
8077 rm -f conftest*
8078 fi
8079
8080 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8081   echo "$ac_t""yes" 1>&6
8082     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8083   cat >> confdefs.h <<EOF
8084 #define $ac_tr_func 1
8085 EOF
8086  
8087 else
8088   echo "$ac_t""no" 1>&6
8089 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8090 fi
8091 done
8092
8093
8094     for ac_func in __signbit
8095 do
8096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8097 echo "configure:8098: checking for $ac_func" >&5
8098 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8099   echo $ac_n "(cached) $ac_c" 1>&6
8100 else
8101   cat > conftest.$ac_ext <<EOF
8102 #line 8103 "configure"
8103 #include "confdefs.h"
8104 /* System header to define __stub macros and hopefully few prototypes,
8105     which can conflict with char $ac_func(); below.  */
8106 #include <assert.h>
8107 /* Override any gcc2 internal prototype to avoid an error.  */
8108 /* We use char because int might match the return type of a gcc2
8109     builtin and then its argument prototype would still apply.  */
8110 char $ac_func();
8111
8112 int main() {
8113
8114 /* The GNU C library defines this for functions which it implements
8115     to always fail with ENOSYS.  Some functions are actually named
8116     something starting with __ and the normal name is an alias.  */
8117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8118 choke me
8119 #else
8120 $ac_func();
8121 #endif
8122
8123 ; return 0; }
8124 EOF
8125 if { (eval echo configure:8126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8126   rm -rf conftest*
8127   eval "ac_cv_func_$ac_func=yes"
8128 else
8129   echo "configure: failed program was:" >&5
8130   cat conftest.$ac_ext >&5
8131   rm -rf conftest*
8132   eval "ac_cv_func_$ac_func=no"
8133 fi
8134 rm -f conftest*
8135 fi
8136
8137 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8138   echo "$ac_t""yes" 1>&6
8139     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8140   cat >> confdefs.h <<EOF
8141 #define $ac_tr_func 1
8142 EOF
8143  
8144 else
8145   echo "$ac_t""no" 1>&6
8146 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8147 fi
8148 done
8149
8150   for ac_func in __signbitf
8151 do
8152 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8153 echo "configure:8154: checking for $ac_func" >&5
8154 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8155   echo $ac_n "(cached) $ac_c" 1>&6
8156 else
8157   cat > conftest.$ac_ext <<EOF
8158 #line 8159 "configure"
8159 #include "confdefs.h"
8160 /* System header to define __stub macros and hopefully few prototypes,
8161     which can conflict with char $ac_func(); below.  */
8162 #include <assert.h>
8163 /* Override any gcc2 internal prototype to avoid an error.  */
8164 /* We use char because int might match the return type of a gcc2
8165     builtin and then its argument prototype would still apply.  */
8166 char $ac_func();
8167
8168 int main() {
8169
8170 /* The GNU C library defines this for functions which it implements
8171     to always fail with ENOSYS.  Some functions are actually named
8172     something starting with __ and the normal name is an alias.  */
8173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8174 choke me
8175 #else
8176 $ac_func();
8177 #endif
8178
8179 ; return 0; }
8180 EOF
8181 if { (eval echo configure:8182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8182   rm -rf conftest*
8183   eval "ac_cv_func_$ac_func=yes"
8184 else
8185   echo "configure: failed program was:" >&5
8186   cat conftest.$ac_ext >&5
8187   rm -rf conftest*
8188   eval "ac_cv_func_$ac_func=no"
8189 fi
8190 rm -f conftest*
8191 fi
8192
8193 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8194   echo "$ac_t""yes" 1>&6
8195     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8196   cat >> confdefs.h <<EOF
8197 #define $ac_tr_func 1
8198 EOF
8199  
8200 else
8201   echo "$ac_t""no" 1>&6
8202 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8203 fi
8204 done
8205
8206
8207           if test x$ac_cv_func_copysignl = x"yes"; then
8208     for ac_func in __signbitl
8209 do
8210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8211 echo "configure:8212: checking for $ac_func" >&5
8212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8213   echo $ac_n "(cached) $ac_c" 1>&6
8214 else
8215   cat > conftest.$ac_ext <<EOF
8216 #line 8217 "configure"
8217 #include "confdefs.h"
8218 /* System header to define __stub macros and hopefully few prototypes,
8219     which can conflict with char $ac_func(); below.  */
8220 #include <assert.h>
8221 /* Override any gcc2 internal prototype to avoid an error.  */
8222 /* We use char because int might match the return type of a gcc2
8223     builtin and then its argument prototype would still apply.  */
8224 char $ac_func();
8225
8226 int main() {
8227
8228 /* The GNU C library defines this for functions which it implements
8229     to always fail with ENOSYS.  Some functions are actually named
8230     something starting with __ and the normal name is an alias.  */
8231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8232 choke me
8233 #else
8234 $ac_func();
8235 #endif
8236
8237 ; return 0; }
8238 EOF
8239 if { (eval echo configure:8240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8240   rm -rf conftest*
8241   eval "ac_cv_func_$ac_func=yes"
8242 else
8243   echo "configure: failed program was:" >&5
8244   cat conftest.$ac_ext >&5
8245   rm -rf conftest*
8246   eval "ac_cv_func_$ac_func=no"
8247 fi
8248 rm -f conftest*
8249 fi
8250
8251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8252   echo "$ac_t""yes" 1>&6
8253     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8254   cat >> confdefs.h <<EOF
8255 #define $ac_tr_func 1
8256 EOF
8257  
8258 else
8259   echo "$ac_t""no" 1>&6
8260 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8261 fi
8262 done
8263
8264   fi
8265
8266   
8267
8268       
8269
8270       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8271 echo "configure:8272: checking for mbstate_t" >&5
8272   cat > conftest.$ac_ext <<EOF
8273 #line 8274 "configure"
8274 #include "confdefs.h"
8275 #include <wchar.h>
8276 int main() {
8277 mbstate_t teststate;
8278 ; return 0; }
8279 EOF
8280 if { (eval echo configure:8281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8281   rm -rf conftest*
8282   have_mbstate_t=yes
8283 else
8284   echo "configure: failed program was:" >&5
8285   cat conftest.$ac_ext >&5
8286   rm -rf conftest*
8287   have_mbstate_t=no
8288 fi
8289 rm -f conftest*
8290   echo "$ac_t""$have_mbstate_t" 1>&6
8291   if test x"$have_mbstate_t" = xyes; then
8292     cat >> confdefs.h <<\EOF
8293 #define HAVE_MBSTATE_T 1
8294 EOF
8295
8296   fi
8297
8298     for ac_hdr in wchar.h
8299 do
8300 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8301 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8302 echo "configure:8303: checking for $ac_hdr" >&5
8303 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8304   echo $ac_n "(cached) $ac_c" 1>&6
8305 else
8306   cat > conftest.$ac_ext <<EOF
8307 #line 8308 "configure"
8308 #include "confdefs.h"
8309 #include <$ac_hdr>
8310 EOF
8311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8312 { (eval echo configure:8313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8314 if test -z "$ac_err"; then
8315   rm -rf conftest*
8316   eval "ac_cv_header_$ac_safe=yes"
8317 else
8318   echo "$ac_err" >&5
8319   echo "configure: failed program was:" >&5
8320   cat conftest.$ac_ext >&5
8321   rm -rf conftest*
8322   eval "ac_cv_header_$ac_safe=no"
8323 fi
8324 rm -f conftest*
8325 fi
8326 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8327   echo "$ac_t""yes" 1>&6
8328     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8329   cat >> confdefs.h <<EOF
8330 #define $ac_tr_hdr 1
8331 EOF
8332  ac_has_wchar_h=yes
8333 else
8334   echo "$ac_t""no" 1>&6
8335 ac_has_wchar_h=no
8336 fi
8337 done
8338
8339   for ac_hdr in wctype.h
8340 do
8341 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8342 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8343 echo "configure:8344: checking for $ac_hdr" >&5
8344 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8345   echo $ac_n "(cached) $ac_c" 1>&6
8346 else
8347   cat > conftest.$ac_ext <<EOF
8348 #line 8349 "configure"
8349 #include "confdefs.h"
8350 #include <$ac_hdr>
8351 EOF
8352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8353 { (eval echo configure:8354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8355 if test -z "$ac_err"; then
8356   rm -rf conftest*
8357   eval "ac_cv_header_$ac_safe=yes"
8358 else
8359   echo "$ac_err" >&5
8360   echo "configure: failed program was:" >&5
8361   cat conftest.$ac_ext >&5
8362   rm -rf conftest*
8363   eval "ac_cv_header_$ac_safe=no"
8364 fi
8365 rm -f conftest*
8366 fi
8367 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8368   echo "$ac_t""yes" 1>&6
8369     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8370   cat >> confdefs.h <<EOF
8371 #define $ac_tr_hdr 1
8372 EOF
8373  ac_has_wctype_h=yes
8374 else
8375   echo "$ac_t""no" 1>&6
8376 ac_has_wctype_h=no
8377 fi
8378 done
8379
8380   
8381     if test x"$ac_has_wchar_h" = xyes &&
8382      test x"$ac_has_wctype_h" = xyes &&
8383      test x"$enable_c_mbchar" != xno; then
8384       
8385             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8386 echo "configure:8387: checking for WCHAR_MIN and WCHAR_MAX" >&5
8387     cat > conftest.$ac_ext <<EOF
8388 #line 8389 "configure"
8389 #include "confdefs.h"
8390 #include <wchar.h>
8391 int main() {
8392 int i = WCHAR_MIN; int j = WCHAR_MAX;
8393 ; return 0; }
8394 EOF
8395 if { (eval echo configure:8396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8396   rm -rf conftest*
8397   has_wchar_minmax=yes
8398 else
8399   echo "configure: failed program was:" >&5
8400   cat conftest.$ac_ext >&5
8401   rm -rf conftest*
8402   has_wchar_minmax=no
8403 fi
8404 rm -f conftest*
8405     echo "$ac_t""$has_wchar_minmax" 1>&6
8406     
8407             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8408 echo "configure:8409: checking for WEOF" >&5
8409     cat > conftest.$ac_ext <<EOF
8410 #line 8411 "configure"
8411 #include "confdefs.h"
8412
8413       #include <wchar.h>
8414       #include <stddef.h>
8415 int main() {
8416 wint_t i = WEOF;
8417 ; return 0; }
8418 EOF
8419 if { (eval echo configure:8420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8420   rm -rf conftest*
8421   has_weof=yes
8422 else
8423   echo "configure: failed program was:" >&5
8424   cat conftest.$ac_ext >&5
8425   rm -rf conftest*
8426   has_weof=no
8427 fi
8428 rm -f conftest*
8429     echo "$ac_t""$has_weof" 1>&6
8430   
8431         ac_wfuncs=yes
8432     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8433 do
8434 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8435 echo "configure:8436: checking for $ac_func" >&5
8436 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8437   echo $ac_n "(cached) $ac_c" 1>&6
8438 else
8439   cat > conftest.$ac_ext <<EOF
8440 #line 8441 "configure"
8441 #include "confdefs.h"
8442 /* System header to define __stub macros and hopefully few prototypes,
8443     which can conflict with char $ac_func(); below.  */
8444 #include <assert.h>
8445 /* Override any gcc2 internal prototype to avoid an error.  */
8446 /* We use char because int might match the return type of a gcc2
8447     builtin and then its argument prototype would still apply.  */
8448 char $ac_func();
8449
8450 int main() {
8451
8452 /* The GNU C library defines this for functions which it implements
8453     to always fail with ENOSYS.  Some functions are actually named
8454     something starting with __ and the normal name is an alias.  */
8455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8456 choke me
8457 #else
8458 $ac_func();
8459 #endif
8460
8461 ; return 0; }
8462 EOF
8463 if { (eval echo configure:8464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8464   rm -rf conftest*
8465   eval "ac_cv_func_$ac_func=yes"
8466 else
8467   echo "configure: failed program was:" >&5
8468   cat conftest.$ac_ext >&5
8469   rm -rf conftest*
8470   eval "ac_cv_func_$ac_func=no"
8471 fi
8472 rm -f conftest*
8473 fi
8474
8475 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8476   echo "$ac_t""yes" 1>&6
8477     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8478   cat >> confdefs.h <<EOF
8479 #define $ac_tr_func 1
8480 EOF
8481  
8482 else
8483   echo "$ac_t""no" 1>&6
8484 \
8485     ac_wfuncs=no
8486 fi
8487 done
8488
8489   
8490         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
8491     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8492     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8493     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8494     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8495     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8496 do
8497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8498 echo "configure:8499: checking for $ac_func" >&5
8499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8500   echo $ac_n "(cached) $ac_c" 1>&6
8501 else
8502   cat > conftest.$ac_ext <<EOF
8503 #line 8504 "configure"
8504 #include "confdefs.h"
8505 /* System header to define __stub macros and hopefully few prototypes,
8506     which can conflict with char $ac_func(); below.  */
8507 #include <assert.h>
8508 /* Override any gcc2 internal prototype to avoid an error.  */
8509 /* We use char because int might match the return type of a gcc2
8510     builtin and then its argument prototype would still apply.  */
8511 char $ac_func();
8512
8513 int main() {
8514
8515 /* The GNU C library defines this for functions which it implements
8516     to always fail with ENOSYS.  Some functions are actually named
8517     something starting with __ and the normal name is an alias.  */
8518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8519 choke me
8520 #else
8521 $ac_func();
8522 #endif
8523
8524 ; return 0; }
8525 EOF
8526 if { (eval echo configure:8527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8527   rm -rf conftest*
8528   eval "ac_cv_func_$ac_func=yes"
8529 else
8530   echo "configure: failed program was:" >&5
8531   cat conftest.$ac_ext >&5
8532   rm -rf conftest*
8533   eval "ac_cv_func_$ac_func=no"
8534 fi
8535 rm -f conftest*
8536 fi
8537
8538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8539   echo "$ac_t""yes" 1>&6
8540     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8541   cat >> confdefs.h <<EOF
8542 #define $ac_tr_func 1
8543 EOF
8544  
8545 else
8546   echo "$ac_t""no" 1>&6
8547 \
8548     ac_wfuncs=no
8549 fi
8550 done
8551
8552
8553     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8554 echo "configure:8555: checking for ISO C99 wchar_t support" >&5
8555     if test x"$has_weof" = xyes &&
8556        test x"$has_wchar_minmax" = xyes &&
8557        test x"$ac_wfuncs" = xyes; then
8558       ac_isoC99_wchar_t=yes
8559     else
8560       ac_isoC99_wchar_t=no
8561     fi
8562     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8563   
8564             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8565 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8566 echo "configure:8567: checking for iconv.h" >&5
8567 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8568   echo $ac_n "(cached) $ac_c" 1>&6
8569 else
8570   cat > conftest.$ac_ext <<EOF
8571 #line 8572 "configure"
8572 #include "confdefs.h"
8573 #include <iconv.h>
8574 EOF
8575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8576 { (eval echo configure:8577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8578 if test -z "$ac_err"; then
8579   rm -rf conftest*
8580   eval "ac_cv_header_$ac_safe=yes"
8581 else
8582   echo "$ac_err" >&5
8583   echo "configure: failed program was:" >&5
8584   cat conftest.$ac_ext >&5
8585   rm -rf conftest*
8586   eval "ac_cv_header_$ac_safe=no"
8587 fi
8588 rm -f conftest*
8589 fi
8590 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8591   echo "$ac_t""yes" 1>&6
8592   ac_has_iconv_h=yes
8593 else
8594   echo "$ac_t""no" 1>&6
8595 ac_has_iconv_h=no
8596 fi
8597
8598     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8599 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8600 echo "configure:8601: checking for langinfo.h" >&5
8601 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8602   echo $ac_n "(cached) $ac_c" 1>&6
8603 else
8604   cat > conftest.$ac_ext <<EOF
8605 #line 8606 "configure"
8606 #include "confdefs.h"
8607 #include <langinfo.h>
8608 EOF
8609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8610 { (eval echo configure:8611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8612 if test -z "$ac_err"; then
8613   rm -rf conftest*
8614   eval "ac_cv_header_$ac_safe=yes"
8615 else
8616   echo "$ac_err" >&5
8617   echo "configure: failed program was:" >&5
8618   cat conftest.$ac_ext >&5
8619   rm -rf conftest*
8620   eval "ac_cv_header_$ac_safe=no"
8621 fi
8622 rm -f conftest*
8623 fi
8624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8625   echo "$ac_t""yes" 1>&6
8626   ac_has_langinfo_h=yes
8627 else
8628   echo "$ac_t""no" 1>&6
8629 ac_has_langinfo_h=no
8630 fi
8631
8632
8633         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8634 echo "configure:8635: checking for iconv in -liconv" >&5
8635 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8636 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8637   echo $ac_n "(cached) $ac_c" 1>&6
8638 else
8639   ac_save_LIBS="$LIBS"
8640 LIBS="-liconv  $LIBS"
8641 cat > conftest.$ac_ext <<EOF
8642 #line 8643 "configure"
8643 #include "confdefs.h"
8644 /* Override any gcc2 internal prototype to avoid an error.  */
8645 /* We use char because int might match the return type of a gcc2
8646     builtin and then its argument prototype would still apply.  */
8647 char iconv();
8648
8649 int main() {
8650 iconv()
8651 ; return 0; }
8652 EOF
8653 if { (eval echo configure:8654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8654   rm -rf conftest*
8655   eval "ac_cv_lib_$ac_lib_var=yes"
8656 else
8657   echo "configure: failed program was:" >&5
8658   cat conftest.$ac_ext >&5
8659   rm -rf conftest*
8660   eval "ac_cv_lib_$ac_lib_var=no"
8661 fi
8662 rm -f conftest*
8663 LIBS="$ac_save_LIBS"
8664
8665 fi
8666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8667   echo "$ac_t""yes" 1>&6
8668   libiconv="-liconv"
8669 else
8670   echo "$ac_t""no" 1>&6
8671 fi
8672
8673     ac_save_LIBS="$LIBS"
8674     LIBS="$LIBS $libiconv"
8675
8676     for ac_func in iconv_open iconv_close iconv nl_langinfo
8677 do
8678 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8679 echo "configure:8680: checking for $ac_func" >&5
8680 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8681   echo $ac_n "(cached) $ac_c" 1>&6
8682 else
8683   cat > conftest.$ac_ext <<EOF
8684 #line 8685 "configure"
8685 #include "confdefs.h"
8686 /* System header to define __stub macros and hopefully few prototypes,
8687     which can conflict with char $ac_func(); below.  */
8688 #include <assert.h>
8689 /* Override any gcc2 internal prototype to avoid an error.  */
8690 /* We use char because int might match the return type of a gcc2
8691     builtin and then its argument prototype would still apply.  */
8692 char $ac_func();
8693
8694 int main() {
8695
8696 /* The GNU C library defines this for functions which it implements
8697     to always fail with ENOSYS.  Some functions are actually named
8698     something starting with __ and the normal name is an alias.  */
8699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8700 choke me
8701 #else
8702 $ac_func();
8703 #endif
8704
8705 ; return 0; }
8706 EOF
8707 if { (eval echo configure:8708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8708   rm -rf conftest*
8709   eval "ac_cv_func_$ac_func=yes"
8710 else
8711   echo "configure: failed program was:" >&5
8712   cat conftest.$ac_ext >&5
8713   rm -rf conftest*
8714   eval "ac_cv_func_$ac_func=no"
8715 fi
8716 rm -f conftest*
8717 fi
8718
8719 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8720   echo "$ac_t""yes" 1>&6
8721     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8722   cat >> confdefs.h <<EOF
8723 #define $ac_tr_func 1
8724 EOF
8725  \
8726     ac_XPG2funcs=yes
8727 else
8728   echo "$ac_t""no" 1>&6
8729 ac_XPG2funcs=no
8730 fi
8731 done
8732
8733   
8734     LIBS="$ac_save_LIBS"
8735
8736     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8737 echo "configure:8738: checking for XPG2 wchar_t support" >&5
8738     if test x"$ac_has_iconv_h" = xyes &&
8739        test x"$ac_has_langinfo_h" = xyes &&
8740        test x"$ac_XPG2funcs" = xyes; then
8741       ac_XPG2_wchar_t=yes
8742     else
8743       ac_XPG2_wchar_t=no
8744     fi
8745     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8746   
8747             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8748 echo "configure:8749: checking for enabled wchar_t specializations" >&5
8749     if test x"$ac_isoC99_wchar_t" = xyes &&
8750        test x"$ac_XPG2_wchar_t" = xyes; then
8751       cat >> confdefs.h <<\EOF
8752 #define _GLIBCPP_USE_WCHAR_T 1
8753 EOF
8754
8755       echo "$ac_t"""yes"" 1>&6
8756     else
8757       echo "$ac_t"""no"" 1>&6
8758     fi
8759   else
8760         echo "configure: warning: wchar_t support disabled." 1>&2
8761   fi
8762
8763       os_include_dir="os/qnx/qnx6.1"
8764       cat >> confdefs.h <<\EOF
8765 #define HAVE_COSF 1
8766 EOF
8767
8768       cat >> confdefs.h <<\EOF
8769 #define HAVE_COSL 1
8770 EOF
8771
8772       cat >> confdefs.h <<\EOF
8773 #define HAVE_COSHF 1
8774 EOF
8775
8776       cat >> confdefs.h <<\EOF
8777 #define HAVE_COSHL 1
8778 EOF
8779
8780       cat >> confdefs.h <<\EOF
8781 #define HAVE_LOGF 1
8782 EOF
8783
8784       cat >> confdefs.h <<\EOF
8785 #define HAVE_LOGL 1
8786 EOF
8787
8788       cat >> confdefs.h <<\EOF
8789 #define HAVE_LOG10F 1
8790 EOF
8791
8792       cat >> confdefs.h <<\EOF
8793 #define HAVE_LOG10L 1
8794 EOF
8795
8796       cat >> confdefs.h <<\EOF
8797 #define HAVE_SINF 1
8798 EOF
8799
8800       cat >> confdefs.h <<\EOF
8801 #define HAVE_SINL 1
8802 EOF
8803
8804       cat >> confdefs.h <<\EOF
8805 #define HAVE_SINHF 1
8806 EOF
8807
8808       cat >> confdefs.h <<\EOF
8809 #define HAVE_SINHL 1
8810 EOF
8811
8812       ;;
8813     *)
8814       os_include_dir="os/newlib"
8815       cat >> confdefs.h <<\EOF
8816 #define HAVE_HYPOT 1
8817 EOF
8818
8819       ;;
8820   esac
8821
8822   case "$target_alias" in
8823     *-mingw32*)
8824       ;;
8825     *-windiss*)
8826       cat >> confdefs.h <<\EOF
8827 #define HAVE_ACOSF 1
8828 EOF
8829
8830       cat >> confdefs.h <<\EOF
8831 #define HAVE_ASINF 1
8832 EOF
8833
8834       cat >> confdefs.h <<\EOF
8835 #define HAVE_ATAN2F 1
8836 EOF
8837
8838       cat >> confdefs.h <<\EOF
8839 #define HAVE_ATANF 1
8840 EOF
8841
8842       cat >> confdefs.h <<\EOF
8843 #define HAVE_CEILF 1
8844 EOF
8845
8846       cat >> confdefs.h <<\EOF
8847 #define HAVE_COPYSIGN 1
8848 EOF
8849
8850       cat >> confdefs.h <<\EOF
8851 #define HAVE_COPYSIGNF 1
8852 EOF
8853
8854       cat >> confdefs.h <<\EOF
8855 #define HAVE_COSF 1
8856 EOF
8857
8858       cat >> confdefs.h <<\EOF
8859 #define HAVE_COSHF 1
8860 EOF
8861
8862       cat >> confdefs.h <<\EOF
8863 #define HAVE_EXPF 1
8864 EOF
8865
8866       cat >> confdefs.h <<\EOF
8867 #define HAVE_FABSF 1
8868 EOF
8869
8870       cat >> confdefs.h <<\EOF
8871 #define HAVE_FLOORF 1
8872 EOF
8873
8874       cat >> confdefs.h <<\EOF
8875 #define HAVE_FMODF 1
8876 EOF
8877
8878       cat >> confdefs.h <<\EOF
8879 #define HAVE_FREXPF 1
8880 EOF
8881
8882       cat >> confdefs.h <<\EOF
8883 #define HAVE_LDEXPF 1
8884 EOF
8885
8886       cat >> confdefs.h <<\EOF
8887 #define HAVE_LOG10F 1
8888 EOF
8889
8890       cat >> confdefs.h <<\EOF
8891 #define HAVE_LOGF 1
8892 EOF
8893
8894       cat >> confdefs.h <<\EOF
8895 #define HAVE_MODFF 1
8896 EOF
8897
8898       cat >> confdefs.h <<\EOF
8899 #define HAVE_POWF 1
8900 EOF
8901
8902       cat >> confdefs.h <<\EOF
8903 #define HAVE_SINF 1
8904 EOF
8905
8906       cat >> confdefs.h <<\EOF
8907 #define HAVE_SINHF 1
8908 EOF
8909
8910       cat >> confdefs.h <<\EOF
8911 #define HAVE_SQRTF 1
8912 EOF
8913
8914       cat >> confdefs.h <<\EOF
8915 #define HAVE_TANF 1
8916 EOF
8917
8918       cat >> confdefs.h <<\EOF
8919 #define HAVE_TANHF 1
8920 EOF
8921
8922       ;;
8923     *)
8924       # GLIBCPP_CHECK_STDLIB_SUPPORT
8925       cat >> confdefs.h <<\EOF
8926 #define HAVE_STRTOF 1
8927 EOF
8928         
8929       cat >> confdefs.h <<\EOF
8930 #define HAVE_STRTOLD 1
8931 EOF
8932         
8933       # AC_FUNC_MMAP
8934       cat >> confdefs.h <<\EOF
8935 #define HAVE_MMAP 1
8936 EOF
8937
8938
8939       cat >> confdefs.h <<\EOF
8940 #define HAVE_ACOSF 1
8941 EOF
8942
8943       cat >> confdefs.h <<\EOF
8944 #define HAVE_ASINF 1
8945 EOF
8946
8947       cat >> confdefs.h <<\EOF
8948 #define HAVE_ATAN2F 1
8949 EOF
8950
8951       cat >> confdefs.h <<\EOF
8952 #define HAVE_ATANF 1
8953 EOF
8954
8955       cat >> confdefs.h <<\EOF
8956 #define HAVE_CEILF 1
8957 EOF
8958
8959       cat >> confdefs.h <<\EOF
8960 #define HAVE_COPYSIGN 1
8961 EOF
8962
8963       cat >> confdefs.h <<\EOF
8964 #define HAVE_COPYSIGNF 1
8965 EOF
8966
8967       cat >> confdefs.h <<\EOF
8968 #define HAVE_COSF 1
8969 EOF
8970
8971       cat >> confdefs.h <<\EOF
8972 #define HAVE_COSHF 1
8973 EOF
8974
8975       cat >> confdefs.h <<\EOF
8976 #define HAVE_EXPF 1
8977 EOF
8978
8979       cat >> confdefs.h <<\EOF
8980 #define HAVE_FABSF 1
8981 EOF
8982
8983       cat >> confdefs.h <<\EOF
8984 #define HAVE_FLOORF 1
8985 EOF
8986
8987       cat >> confdefs.h <<\EOF
8988 #define HAVE_FMODF 1
8989 EOF
8990
8991       cat >> confdefs.h <<\EOF
8992 #define HAVE_FREXPF 1
8993 EOF
8994
8995       cat >> confdefs.h <<\EOF
8996 #define HAVE_LDEXPF 1
8997 EOF
8998
8999       cat >> confdefs.h <<\EOF
9000 #define HAVE_LOG10F 1
9001 EOF
9002
9003       cat >> confdefs.h <<\EOF
9004 #define HAVE_LOGF 1
9005 EOF
9006
9007       cat >> confdefs.h <<\EOF
9008 #define HAVE_MODFF 1
9009 EOF
9010
9011       cat >> confdefs.h <<\EOF
9012 #define HAVE_POWF 1
9013 EOF
9014
9015       cat >> confdefs.h <<\EOF
9016 #define HAVE_SINF 1
9017 EOF
9018
9019       cat >> confdefs.h <<\EOF
9020 #define HAVE_SINHF 1
9021 EOF
9022
9023       cat >> confdefs.h <<\EOF
9024 #define HAVE_SQRTF 1
9025 EOF
9026
9027       cat >> confdefs.h <<\EOF
9028 #define HAVE_TANF 1
9029 EOF
9030
9031       cat >> confdefs.h <<\EOF
9032 #define HAVE_TANHF 1
9033 EOF
9034
9035       ;;
9036   esac
9037
9038   # At some point, we should differentiate between architectures
9039   # like x86, which have long double versions, and alpha/powerpc/etc.,
9040   # which don't. For the time being, punt.
9041   if test x"long_double_math_on_this_cpu" = x"yes"; then
9042     cat >> confdefs.h <<\EOF
9043 #define HAVE_ACOSL 1
9044 EOF
9045
9046     cat >> confdefs.h <<\EOF
9047 #define HAVE_ASINL 1
9048 EOF
9049
9050     cat >> confdefs.h <<\EOF
9051 #define HAVE_ATAN2L 1
9052 EOF
9053
9054     cat >> confdefs.h <<\EOF
9055 #define HAVE_ATANL 1
9056 EOF
9057
9058     cat >> confdefs.h <<\EOF
9059 #define HAVE_CEILL 1
9060 EOF
9061
9062     cat >> confdefs.h <<\EOF
9063 #define HAVE_COPYSIGNL 1
9064 EOF
9065
9066     cat >> confdefs.h <<\EOF
9067 #define HAVE_COSL 1
9068 EOF
9069
9070     cat >> confdefs.h <<\EOF
9071 #define HAVE_COSHL 1
9072 EOF
9073
9074     cat >> confdefs.h <<\EOF
9075 #define HAVE_EXPL 1
9076 EOF
9077
9078     cat >> confdefs.h <<\EOF
9079 #define HAVE_FABSL 1
9080 EOF
9081
9082     cat >> confdefs.h <<\EOF
9083 #define HAVE_FLOORL 1
9084 EOF
9085
9086     cat >> confdefs.h <<\EOF
9087 #define HAVE_FMODL 1
9088 EOF
9089
9090     cat >> confdefs.h <<\EOF
9091 #define HAVE_FREXPL 1
9092 EOF
9093
9094     cat >> confdefs.h <<\EOF
9095 #define HAVE_LDEXPL 1
9096 EOF
9097
9098     cat >> confdefs.h <<\EOF
9099 #define HAVE_LOG10L 1
9100 EOF
9101
9102     cat >> confdefs.h <<\EOF
9103 #define HAVE_LOGL 1
9104 EOF
9105
9106     cat >> confdefs.h <<\EOF
9107 #define HAVE_MODFL 1
9108 EOF
9109
9110     cat >> confdefs.h <<\EOF
9111 #define HAVE_POWL 1
9112 EOF
9113
9114     cat >> confdefs.h <<\EOF
9115 #define HAVE_SINCOSL 1
9116 EOF
9117
9118     cat >> confdefs.h <<\EOF
9119 #define HAVE_SINL 1
9120 EOF
9121
9122     cat >> confdefs.h <<\EOF
9123 #define HAVE_SINHL 1
9124 EOF
9125
9126     cat >> confdefs.h <<\EOF
9127 #define HAVE_SQRTL 1
9128 EOF
9129
9130     cat >> confdefs.h <<\EOF
9131 #define HAVE_TANL 1
9132 EOF
9133
9134     cat >> confdefs.h <<\EOF
9135 #define HAVE_TANHL 1
9136 EOF
9137
9138   fi
9139
9140 else
9141
9142   # We are being configured natively. We can do more elaborate tests
9143   # that include AC_TRY_COMPILE now, as the linker is assumed to be
9144   # working.
9145   GLIBCPP_IS_CROSS_COMPILING=0
9146   CANADIAN=no
9147
9148   # Check for available headers.
9149   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
9150   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h
9151 do
9152 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9153 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9154 echo "configure:9155: checking for $ac_hdr" >&5
9155 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9156   echo $ac_n "(cached) $ac_c" 1>&6
9157 else
9158   cat > conftest.$ac_ext <<EOF
9159 #line 9160 "configure"
9160 #include "confdefs.h"
9161 #include <$ac_hdr>
9162 EOF
9163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9164 { (eval echo configure:9165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9166 if test -z "$ac_err"; then
9167   rm -rf conftest*
9168   eval "ac_cv_header_$ac_safe=yes"
9169 else
9170   echo "$ac_err" >&5
9171   echo "configure: failed program was:" >&5
9172   cat conftest.$ac_ext >&5
9173   rm -rf conftest*
9174   eval "ac_cv_header_$ac_safe=no"
9175 fi
9176 rm -f conftest*
9177 fi
9178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9179   echo "$ac_t""yes" 1>&6
9180     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9181   cat >> confdefs.h <<EOF
9182 #define $ac_tr_hdr 1
9183 EOF
9184  
9185 else
9186   echo "$ac_t""no" 1>&6
9187 fi
9188 done
9189
9190
9191   
9192   # All these tests are for C++; save the language and the compiler flags.
9193   # The CXXFLAGS thing is suspicious, but based on similar bits previously
9194   # found in GLIBCPP_CONFIGURE.
9195   
9196   ac_ext=C
9197 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9198 ac_cpp='$CXXCPP $CPPFLAGS'
9199 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9200 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9201 cross_compiling=$ac_cv_prog_cxx_cross
9202
9203   ac_test_CXXFLAGS="${CXXFLAGS+set}"
9204   ac_save_CXXFLAGS="$CXXFLAGS"
9205
9206   # Check for maintainer-mode bits.
9207   if test x"$USE_MAINTAINER_MODE" = xno; then
9208     WERROR=''
9209   else
9210     WERROR='-Werror'
9211   fi
9212
9213   # Check for -ffunction-sections -fdata-sections
9214   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
9215 echo "configure:9216: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
9216   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
9217   cat > conftest.$ac_ext <<EOF
9218 #line 9219 "configure"
9219 #include "confdefs.h"
9220
9221 int main() {
9222 int foo;
9223   
9224 ; return 0; }
9225 EOF
9226 if { (eval echo configure:9227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9227   rm -rf conftest*
9228   ac_fdsections=yes
9229 else
9230   echo "configure: failed program was:" >&5
9231   cat conftest.$ac_ext >&5
9232   rm -rf conftest*
9233   ac_fdsections=no
9234 fi
9235 rm -f conftest*
9236   if test "$ac_test_CXXFLAGS" = set; then
9237     CXXFLAGS="$ac_save_CXXFLAGS"
9238   else
9239     # this is the suspicious part
9240     CXXFLAGS=''
9241   fi
9242   if test x"$ac_fdsections" = x"yes" &&
9243      test x"$enable_debug" = x"no"; then
9244     SECTION_FLAGS='-ffunction-sections -fdata-sections'
9245   fi
9246   echo "$ac_t""$ac_fdsections" 1>&6
9247
9248   ac_ext=c
9249 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9250 ac_cpp='$CPP $CPPFLAGS'
9251 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9252 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9253 cross_compiling=$ac_cv_prog_cc_cross
9254
9255   
9256   
9257
9258   
9259   # If we're not using GNU ld, then there's no point in even trying these
9260   # tests.  Check for that first.  We should have already tested for gld
9261   # by now (in libtool), but require it now just to be safe...
9262   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9263   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9264   
9265
9266   # The name set by libtool depends on the version of libtool.  Shame on us
9267   # for depending on an impl detail, but c'est la vie.  Older versions used
9268   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9269   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9270   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
9271   # set (hence we're using an older libtool), then set it.
9272   if test x${with_gnu_ld+set} != xset; then
9273     if test x${ac_cv_prog_gnu_ld+set} != xset; then
9274       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
9275       with_gnu_ld=no
9276     else
9277       with_gnu_ld=$ac_cv_prog_gnu_ld
9278     fi
9279   fi
9280
9281   # Start by getting the version number.  I think the libtool test already
9282   # does some of this, but throws away the result.
9283   
9284   ldver=`$LD --version 2>/dev/null | head -1 | \
9285          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9286   
9287   glibcpp_gnu_ld_version=`echo $ldver | \
9288          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9289
9290   # Set --gc-sections.
9291   if test "$with_gnu_ld" = "notbroken"; then
9292     # GNU ld it is!  Joy and bunny rabbits!
9293
9294     # All these tests are for C++; save the language and the compiler flags.
9295     # Need to do this so that g++ won't try to link in libstdc++
9296     ac_test_CFLAGS="${CFLAGS+set}"
9297     ac_save_CFLAGS="$CFLAGS"
9298     CFLAGS='-x c++  -Wl,--gc-sections'
9299
9300     # Check for -Wl,--gc-sections
9301     # XXX This test is broken at the moment, as symbols required for
9302     # linking are now in libsupc++ (not built yet.....). In addition, 
9303     # this test has cored on solaris in the past. In addition,
9304     # --gc-sections doesn't really work at the moment (keeps on discarding
9305     # used sections, first .eh_frame and now some of the glibc sections for
9306     # iconv). Bzzzzt. Thanks for playing, maybe next time.
9307     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9308 echo "configure:9309: checking for ld that supports -Wl,--gc-sections" >&5
9309     if test "$cross_compiling" = yes; then
9310   ac_sectionLDflags=yes
9311 else
9312   cat > conftest.$ac_ext <<EOF
9313 #line 9314 "configure"
9314 #include "confdefs.h"
9315
9316      int main(void) 
9317      {
9318        try { throw 1; }
9319        catch (...) { };
9320        return 0;
9321      }
9322     
9323 EOF
9324 if { (eval echo configure:9325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9325 then
9326   ac_sectionLDflags=yes
9327 else
9328   echo "configure: failed program was:" >&5
9329   cat conftest.$ac_ext >&5
9330   rm -fr conftest*
9331   ac_sectionLDflags=no
9332 fi
9333 rm -fr conftest*
9334 fi
9335
9336     if test "$ac_test_CFLAGS" = set; then
9337       CFLAGS="$ac_save_CFLAGS"
9338     else
9339       # this is the suspicious part
9340       CFLAGS=''
9341     fi
9342     if test "$ac_sectionLDflags" = "yes"; then
9343       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9344     fi
9345     echo "$ac_t""$ac_sectionLDflags" 1>&6
9346   fi
9347
9348   # Set linker optimization flags.
9349   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
9350     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9351   fi
9352
9353   
9354   
9355
9356   
9357       
9358   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
9359 echo "configure:9360: checking for __builtin_abs declaration" >&5
9360   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
9361     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
9362   echo $ac_n "(cached) $ac_c" 1>&6
9363 else
9364   
9365       
9366       ac_ext=C
9367 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9368 ac_cpp='$CXXCPP $CPPFLAGS'
9369 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9370 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9371 cross_compiling=$ac_cv_prog_cxx_cross
9372
9373       cat > conftest.$ac_ext <<EOF
9374 #line 9375 "configure"
9375 #include "confdefs.h"
9376 #include <math.h>
9377 int main() {
9378  __builtin_abs(0);
9379 ; return 0; }
9380 EOF
9381 if { (eval echo configure:9382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9382   rm -rf conftest*
9383   glibcpp_cv_func___builtin_abs_use=yes
9384 else
9385   echo "configure: failed program was:" >&5
9386   cat conftest.$ac_ext >&5
9387   rm -rf conftest*
9388   glibcpp_cv_func___builtin_abs_use=no
9389 fi
9390 rm -f conftest*
9391       ac_ext=c
9392 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9393 ac_cpp='$CPP $CPPFLAGS'
9394 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9395 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9396 cross_compiling=$ac_cv_prog_cc_cross
9397
9398     
9399 fi
9400
9401   fi
9402   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
9403   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
9404     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
9405 echo "configure:9406: checking for __builtin_abs linkage" >&5
9406     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
9407       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
9408   echo $ac_n "(cached) $ac_c" 1>&6
9409 else
9410   
9411         cat > conftest.$ac_ext <<EOF
9412 #line 9413 "configure"
9413 #include "confdefs.h"
9414 #include <math.h>
9415 int main() {
9416  __builtin_abs(0);
9417 ; return 0; }
9418 EOF
9419 if { (eval echo configure:9420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9420   rm -rf conftest*
9421   glibcpp_cv_func___builtin_abs_link=yes
9422 else
9423   echo "configure: failed program was:" >&5
9424   cat conftest.$ac_ext >&5
9425   rm -rf conftest*
9426   glibcpp_cv_func___builtin_abs_link=no
9427 fi
9428 rm -f conftest*
9429       
9430 fi
9431
9432     fi
9433     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
9434     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
9435       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9436       cat >> confdefs.h <<EOF
9437 #define ${ac_tr_func} 1
9438 EOF
9439
9440     fi
9441   fi
9442
9443   
9444   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
9445 echo "configure:9446: checking for __builtin_fabsf declaration" >&5
9446   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
9447     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
9448   echo $ac_n "(cached) $ac_c" 1>&6
9449 else
9450   
9451       
9452       ac_ext=C
9453 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9454 ac_cpp='$CXXCPP $CPPFLAGS'
9455 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9456 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9457 cross_compiling=$ac_cv_prog_cxx_cross
9458
9459       cat > conftest.$ac_ext <<EOF
9460 #line 9461 "configure"
9461 #include "confdefs.h"
9462 #include <math.h>
9463 int main() {
9464  __builtin_fabsf(0);
9465 ; return 0; }
9466 EOF
9467 if { (eval echo configure:9468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9468   rm -rf conftest*
9469   glibcpp_cv_func___builtin_fabsf_use=yes
9470 else
9471   echo "configure: failed program was:" >&5
9472   cat conftest.$ac_ext >&5
9473   rm -rf conftest*
9474   glibcpp_cv_func___builtin_fabsf_use=no
9475 fi
9476 rm -f conftest*
9477       ac_ext=c
9478 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9479 ac_cpp='$CPP $CPPFLAGS'
9480 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9481 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9482 cross_compiling=$ac_cv_prog_cc_cross
9483
9484     
9485 fi
9486
9487   fi
9488   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
9489   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
9490     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
9491 echo "configure:9492: checking for __builtin_fabsf linkage" >&5
9492     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
9493       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
9494   echo $ac_n "(cached) $ac_c" 1>&6
9495 else
9496   
9497         cat > conftest.$ac_ext <<EOF
9498 #line 9499 "configure"
9499 #include "confdefs.h"
9500 #include <math.h>
9501 int main() {
9502  __builtin_fabsf(0);
9503 ; return 0; }
9504 EOF
9505 if { (eval echo configure:9506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9506   rm -rf conftest*
9507   glibcpp_cv_func___builtin_fabsf_link=yes
9508 else
9509   echo "configure: failed program was:" >&5
9510   cat conftest.$ac_ext >&5
9511   rm -rf conftest*
9512   glibcpp_cv_func___builtin_fabsf_link=no
9513 fi
9514 rm -f conftest*
9515       
9516 fi
9517
9518     fi
9519     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
9520     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
9521       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9522       cat >> confdefs.h <<EOF
9523 #define ${ac_tr_func} 1
9524 EOF
9525
9526     fi
9527   fi
9528
9529   
9530   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
9531 echo "configure:9532: checking for __builtin_fabs declaration" >&5
9532   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
9533     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
9534   echo $ac_n "(cached) $ac_c" 1>&6
9535 else
9536   
9537       
9538       ac_ext=C
9539 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9540 ac_cpp='$CXXCPP $CPPFLAGS'
9541 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9542 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9543 cross_compiling=$ac_cv_prog_cxx_cross
9544
9545       cat > conftest.$ac_ext <<EOF
9546 #line 9547 "configure"
9547 #include "confdefs.h"
9548 #include <math.h>
9549 int main() {
9550  __builtin_fabs(0);
9551 ; return 0; }
9552 EOF
9553 if { (eval echo configure:9554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9554   rm -rf conftest*
9555   glibcpp_cv_func___builtin_fabs_use=yes
9556 else
9557   echo "configure: failed program was:" >&5
9558   cat conftest.$ac_ext >&5
9559   rm -rf conftest*
9560   glibcpp_cv_func___builtin_fabs_use=no
9561 fi
9562 rm -f conftest*
9563       ac_ext=c
9564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9565 ac_cpp='$CPP $CPPFLAGS'
9566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9568 cross_compiling=$ac_cv_prog_cc_cross
9569
9570     
9571 fi
9572
9573   fi
9574   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
9575   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
9576     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
9577 echo "configure:9578: checking for __builtin_fabs linkage" >&5
9578     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
9579       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
9580   echo $ac_n "(cached) $ac_c" 1>&6
9581 else
9582   
9583         cat > conftest.$ac_ext <<EOF
9584 #line 9585 "configure"
9585 #include "confdefs.h"
9586 #include <math.h>
9587 int main() {
9588  __builtin_fabs(0);
9589 ; return 0; }
9590 EOF
9591 if { (eval echo configure:9592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9592   rm -rf conftest*
9593   glibcpp_cv_func___builtin_fabs_link=yes
9594 else
9595   echo "configure: failed program was:" >&5
9596   cat conftest.$ac_ext >&5
9597   rm -rf conftest*
9598   glibcpp_cv_func___builtin_fabs_link=no
9599 fi
9600 rm -f conftest*
9601       
9602 fi
9603
9604     fi
9605     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
9606     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
9607       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9608       cat >> confdefs.h <<EOF
9609 #define ${ac_tr_func} 1
9610 EOF
9611
9612     fi
9613   fi
9614
9615   
9616   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
9617 echo "configure:9618: checking for __builtin_fabsl declaration" >&5
9618   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
9619     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
9620   echo $ac_n "(cached) $ac_c" 1>&6
9621 else
9622   
9623       
9624       ac_ext=C
9625 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9626 ac_cpp='$CXXCPP $CPPFLAGS'
9627 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9628 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9629 cross_compiling=$ac_cv_prog_cxx_cross
9630
9631       cat > conftest.$ac_ext <<EOF
9632 #line 9633 "configure"
9633 #include "confdefs.h"
9634 #include <math.h>
9635 int main() {
9636  __builtin_fabsl(0);
9637 ; return 0; }
9638 EOF
9639 if { (eval echo configure:9640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9640   rm -rf conftest*
9641   glibcpp_cv_func___builtin_fabsl_use=yes
9642 else
9643   echo "configure: failed program was:" >&5
9644   cat conftest.$ac_ext >&5
9645   rm -rf conftest*
9646   glibcpp_cv_func___builtin_fabsl_use=no
9647 fi
9648 rm -f conftest*
9649       ac_ext=c
9650 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9651 ac_cpp='$CPP $CPPFLAGS'
9652 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9653 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9654 cross_compiling=$ac_cv_prog_cc_cross
9655
9656     
9657 fi
9658
9659   fi
9660   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
9661   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
9662     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
9663 echo "configure:9664: checking for __builtin_fabsl linkage" >&5
9664     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
9665       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
9666   echo $ac_n "(cached) $ac_c" 1>&6
9667 else
9668   
9669         cat > conftest.$ac_ext <<EOF
9670 #line 9671 "configure"
9671 #include "confdefs.h"
9672 #include <math.h>
9673 int main() {
9674  __builtin_fabsl(0);
9675 ; return 0; }
9676 EOF
9677 if { (eval echo configure:9678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9678   rm -rf conftest*
9679   glibcpp_cv_func___builtin_fabsl_link=yes
9680 else
9681   echo "configure: failed program was:" >&5
9682   cat conftest.$ac_ext >&5
9683   rm -rf conftest*
9684   glibcpp_cv_func___builtin_fabsl_link=no
9685 fi
9686 rm -f conftest*
9687       
9688 fi
9689
9690     fi
9691     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
9692     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
9693       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9694       cat >> confdefs.h <<EOF
9695 #define ${ac_tr_func} 1
9696 EOF
9697
9698     fi
9699   fi
9700
9701   
9702   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
9703 echo "configure:9704: checking for __builtin_labs declaration" >&5
9704   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
9705     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
9706   echo $ac_n "(cached) $ac_c" 1>&6
9707 else
9708   
9709       
9710       ac_ext=C
9711 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9712 ac_cpp='$CXXCPP $CPPFLAGS'
9713 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9714 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9715 cross_compiling=$ac_cv_prog_cxx_cross
9716
9717       cat > conftest.$ac_ext <<EOF
9718 #line 9719 "configure"
9719 #include "confdefs.h"
9720 #include <math.h>
9721 int main() {
9722  __builtin_labs(0);
9723 ; return 0; }
9724 EOF
9725 if { (eval echo configure:9726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9726   rm -rf conftest*
9727   glibcpp_cv_func___builtin_labs_use=yes
9728 else
9729   echo "configure: failed program was:" >&5
9730   cat conftest.$ac_ext >&5
9731   rm -rf conftest*
9732   glibcpp_cv_func___builtin_labs_use=no
9733 fi
9734 rm -f conftest*
9735       ac_ext=c
9736 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9737 ac_cpp='$CPP $CPPFLAGS'
9738 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9739 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9740 cross_compiling=$ac_cv_prog_cc_cross
9741
9742     
9743 fi
9744
9745   fi
9746   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
9747   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
9748     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
9749 echo "configure:9750: checking for __builtin_labs linkage" >&5
9750     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
9751       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
9752   echo $ac_n "(cached) $ac_c" 1>&6
9753 else
9754   
9755         cat > conftest.$ac_ext <<EOF
9756 #line 9757 "configure"
9757 #include "confdefs.h"
9758 #include <math.h>
9759 int main() {
9760  __builtin_labs(0);
9761 ; return 0; }
9762 EOF
9763 if { (eval echo configure:9764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9764   rm -rf conftest*
9765   glibcpp_cv_func___builtin_labs_link=yes
9766 else
9767   echo "configure: failed program was:" >&5
9768   cat conftest.$ac_ext >&5
9769   rm -rf conftest*
9770   glibcpp_cv_func___builtin_labs_link=no
9771 fi
9772 rm -f conftest*
9773       
9774 fi
9775
9776     fi
9777     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
9778     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
9779       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9780       cat >> confdefs.h <<EOF
9781 #define ${ac_tr_func} 1
9782 EOF
9783
9784     fi
9785   fi
9786
9787
9788   
9789   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
9790 echo "configure:9791: checking for __builtin_sqrtf declaration" >&5
9791   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
9792     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
9793   echo $ac_n "(cached) $ac_c" 1>&6
9794 else
9795   
9796       
9797       ac_ext=C
9798 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9799 ac_cpp='$CXXCPP $CPPFLAGS'
9800 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9801 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9802 cross_compiling=$ac_cv_prog_cxx_cross
9803
9804       cat > conftest.$ac_ext <<EOF
9805 #line 9806 "configure"
9806 #include "confdefs.h"
9807 #include <math.h>
9808 int main() {
9809  __builtin_sqrtf(0);
9810 ; return 0; }
9811 EOF
9812 if { (eval echo configure:9813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9813   rm -rf conftest*
9814   glibcpp_cv_func___builtin_sqrtf_use=yes
9815 else
9816   echo "configure: failed program was:" >&5
9817   cat conftest.$ac_ext >&5
9818   rm -rf conftest*
9819   glibcpp_cv_func___builtin_sqrtf_use=no
9820 fi
9821 rm -f conftest*
9822       ac_ext=c
9823 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9824 ac_cpp='$CPP $CPPFLAGS'
9825 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9826 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9827 cross_compiling=$ac_cv_prog_cc_cross
9828
9829     
9830 fi
9831
9832   fi
9833   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
9834   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
9835     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
9836 echo "configure:9837: checking for __builtin_sqrtf linkage" >&5
9837     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
9838       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
9839   echo $ac_n "(cached) $ac_c" 1>&6
9840 else
9841   
9842         cat > conftest.$ac_ext <<EOF
9843 #line 9844 "configure"
9844 #include "confdefs.h"
9845 #include <math.h>
9846 int main() {
9847  __builtin_sqrtf(0);
9848 ; return 0; }
9849 EOF
9850 if { (eval echo configure:9851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9851   rm -rf conftest*
9852   glibcpp_cv_func___builtin_sqrtf_link=yes
9853 else
9854   echo "configure: failed program was:" >&5
9855   cat conftest.$ac_ext >&5
9856   rm -rf conftest*
9857   glibcpp_cv_func___builtin_sqrtf_link=no
9858 fi
9859 rm -f conftest*
9860       
9861 fi
9862
9863     fi
9864     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
9865     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
9866       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9867       cat >> confdefs.h <<EOF
9868 #define ${ac_tr_func} 1
9869 EOF
9870
9871     fi
9872   fi
9873
9874   
9875   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
9876 echo "configure:9877: checking for __builtin_sqrt declaration" >&5
9877   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
9878     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
9879   echo $ac_n "(cached) $ac_c" 1>&6
9880 else
9881   
9882       
9883       ac_ext=C
9884 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9885 ac_cpp='$CXXCPP $CPPFLAGS'
9886 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9887 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9888 cross_compiling=$ac_cv_prog_cxx_cross
9889
9890       cat > conftest.$ac_ext <<EOF
9891 #line 9892 "configure"
9892 #include "confdefs.h"
9893 #include <math.h>
9894 int main() {
9895  __builtin_sqrt(0);
9896 ; return 0; }
9897 EOF
9898 if { (eval echo configure:9899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9899   rm -rf conftest*
9900   glibcpp_cv_func___builtin_sqrt_use=yes
9901 else
9902   echo "configure: failed program was:" >&5
9903   cat conftest.$ac_ext >&5
9904   rm -rf conftest*
9905   glibcpp_cv_func___builtin_sqrt_use=no
9906 fi
9907 rm -f conftest*
9908       ac_ext=c
9909 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9910 ac_cpp='$CPP $CPPFLAGS'
9911 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9912 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9913 cross_compiling=$ac_cv_prog_cc_cross
9914
9915     
9916 fi
9917
9918   fi
9919   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
9920   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
9921     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
9922 echo "configure:9923: checking for __builtin_sqrt linkage" >&5
9923     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
9924       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
9925   echo $ac_n "(cached) $ac_c" 1>&6
9926 else
9927   
9928         cat > conftest.$ac_ext <<EOF
9929 #line 9930 "configure"
9930 #include "confdefs.h"
9931 #include <math.h>
9932 int main() {
9933  __builtin_sqrt(0);
9934 ; return 0; }
9935 EOF
9936 if { (eval echo configure:9937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9937   rm -rf conftest*
9938   glibcpp_cv_func___builtin_sqrt_link=yes
9939 else
9940   echo "configure: failed program was:" >&5
9941   cat conftest.$ac_ext >&5
9942   rm -rf conftest*
9943   glibcpp_cv_func___builtin_sqrt_link=no
9944 fi
9945 rm -f conftest*
9946       
9947 fi
9948
9949     fi
9950     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
9951     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
9952       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9953       cat >> confdefs.h <<EOF
9954 #define ${ac_tr_func} 1
9955 EOF
9956
9957     fi
9958   fi
9959
9960   
9961   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
9962 echo "configure:9963: checking for __builtin_sqrtl declaration" >&5
9963   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
9964     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
9965   echo $ac_n "(cached) $ac_c" 1>&6
9966 else
9967   
9968       
9969       ac_ext=C
9970 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9971 ac_cpp='$CXXCPP $CPPFLAGS'
9972 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9973 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9974 cross_compiling=$ac_cv_prog_cxx_cross
9975
9976       cat > conftest.$ac_ext <<EOF
9977 #line 9978 "configure"
9978 #include "confdefs.h"
9979 #include <math.h>
9980 int main() {
9981  __builtin_sqrtl(0);
9982 ; return 0; }
9983 EOF
9984 if { (eval echo configure:9985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9985   rm -rf conftest*
9986   glibcpp_cv_func___builtin_sqrtl_use=yes
9987 else
9988   echo "configure: failed program was:" >&5
9989   cat conftest.$ac_ext >&5
9990   rm -rf conftest*
9991   glibcpp_cv_func___builtin_sqrtl_use=no
9992 fi
9993 rm -f conftest*
9994       ac_ext=c
9995 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9996 ac_cpp='$CPP $CPPFLAGS'
9997 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9998 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9999 cross_compiling=$ac_cv_prog_cc_cross
10000
10001     
10002 fi
10003
10004   fi
10005   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
10006   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
10007     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
10008 echo "configure:10009: checking for __builtin_sqrtl linkage" >&5
10009     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
10010       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
10011   echo $ac_n "(cached) $ac_c" 1>&6
10012 else
10013   
10014         cat > conftest.$ac_ext <<EOF
10015 #line 10016 "configure"
10016 #include "confdefs.h"
10017 #include <math.h>
10018 int main() {
10019  __builtin_sqrtl(0);
10020 ; return 0; }
10021 EOF
10022 if { (eval echo configure:10023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10023   rm -rf conftest*
10024   glibcpp_cv_func___builtin_sqrtl_link=yes
10025 else
10026   echo "configure: failed program was:" >&5
10027   cat conftest.$ac_ext >&5
10028   rm -rf conftest*
10029   glibcpp_cv_func___builtin_sqrtl_link=no
10030 fi
10031 rm -f conftest*
10032       
10033 fi
10034
10035     fi
10036     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
10037     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
10038       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10039       cat >> confdefs.h <<EOF
10040 #define ${ac_tr_func} 1
10041 EOF
10042
10043     fi
10044   fi
10045
10046
10047   
10048   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
10049 echo "configure:10050: checking for __builtin_sinf declaration" >&5
10050   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
10051     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
10052   echo $ac_n "(cached) $ac_c" 1>&6
10053 else
10054   
10055       
10056       ac_ext=C
10057 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10058 ac_cpp='$CXXCPP $CPPFLAGS'
10059 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10060 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10061 cross_compiling=$ac_cv_prog_cxx_cross
10062
10063       cat > conftest.$ac_ext <<EOF
10064 #line 10065 "configure"
10065 #include "confdefs.h"
10066 #include <math.h>
10067 int main() {
10068  __builtin_sinf(0);
10069 ; return 0; }
10070 EOF
10071 if { (eval echo configure:10072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10072   rm -rf conftest*
10073   glibcpp_cv_func___builtin_sinf_use=yes
10074 else
10075   echo "configure: failed program was:" >&5
10076   cat conftest.$ac_ext >&5
10077   rm -rf conftest*
10078   glibcpp_cv_func___builtin_sinf_use=no
10079 fi
10080 rm -f conftest*
10081       ac_ext=c
10082 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10083 ac_cpp='$CPP $CPPFLAGS'
10084 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10085 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10086 cross_compiling=$ac_cv_prog_cc_cross
10087
10088     
10089 fi
10090
10091   fi
10092   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
10093   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
10094     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
10095 echo "configure:10096: checking for __builtin_sinf linkage" >&5
10096     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
10097       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
10098   echo $ac_n "(cached) $ac_c" 1>&6
10099 else
10100   
10101         cat > conftest.$ac_ext <<EOF
10102 #line 10103 "configure"
10103 #include "confdefs.h"
10104 #include <math.h>
10105 int main() {
10106  __builtin_sinf(0);
10107 ; return 0; }
10108 EOF
10109 if { (eval echo configure:10110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10110   rm -rf conftest*
10111   glibcpp_cv_func___builtin_sinf_link=yes
10112 else
10113   echo "configure: failed program was:" >&5
10114   cat conftest.$ac_ext >&5
10115   rm -rf conftest*
10116   glibcpp_cv_func___builtin_sinf_link=no
10117 fi
10118 rm -f conftest*
10119       
10120 fi
10121
10122     fi
10123     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
10124     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
10125       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10126       cat >> confdefs.h <<EOF
10127 #define ${ac_tr_func} 1
10128 EOF
10129
10130     fi
10131   fi
10132
10133   
10134   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
10135 echo "configure:10136: checking for __builtin_sin declaration" >&5
10136   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
10137     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
10138   echo $ac_n "(cached) $ac_c" 1>&6
10139 else
10140   
10141       
10142       ac_ext=C
10143 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10144 ac_cpp='$CXXCPP $CPPFLAGS'
10145 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10146 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10147 cross_compiling=$ac_cv_prog_cxx_cross
10148
10149       cat > conftest.$ac_ext <<EOF
10150 #line 10151 "configure"
10151 #include "confdefs.h"
10152 #include <math.h>
10153 int main() {
10154  __builtin_sin(0);
10155 ; return 0; }
10156 EOF
10157 if { (eval echo configure:10158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10158   rm -rf conftest*
10159   glibcpp_cv_func___builtin_sin_use=yes
10160 else
10161   echo "configure: failed program was:" >&5
10162   cat conftest.$ac_ext >&5
10163   rm -rf conftest*
10164   glibcpp_cv_func___builtin_sin_use=no
10165 fi
10166 rm -f conftest*
10167       ac_ext=c
10168 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10169 ac_cpp='$CPP $CPPFLAGS'
10170 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10171 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10172 cross_compiling=$ac_cv_prog_cc_cross
10173
10174     
10175 fi
10176
10177   fi
10178   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
10179   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
10180     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
10181 echo "configure:10182: checking for __builtin_sin linkage" >&5
10182     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
10183       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
10184   echo $ac_n "(cached) $ac_c" 1>&6
10185 else
10186   
10187         cat > conftest.$ac_ext <<EOF
10188 #line 10189 "configure"
10189 #include "confdefs.h"
10190 #include <math.h>
10191 int main() {
10192  __builtin_sin(0);
10193 ; return 0; }
10194 EOF
10195 if { (eval echo configure:10196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10196   rm -rf conftest*
10197   glibcpp_cv_func___builtin_sin_link=yes
10198 else
10199   echo "configure: failed program was:" >&5
10200   cat conftest.$ac_ext >&5
10201   rm -rf conftest*
10202   glibcpp_cv_func___builtin_sin_link=no
10203 fi
10204 rm -f conftest*
10205       
10206 fi
10207
10208     fi
10209     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
10210     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
10211       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10212       cat >> confdefs.h <<EOF
10213 #define ${ac_tr_func} 1
10214 EOF
10215
10216     fi
10217   fi
10218
10219   
10220   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
10221 echo "configure:10222: checking for __builtin_sinl declaration" >&5
10222   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
10223     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
10224   echo $ac_n "(cached) $ac_c" 1>&6
10225 else
10226   
10227       
10228       ac_ext=C
10229 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10230 ac_cpp='$CXXCPP $CPPFLAGS'
10231 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10232 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10233 cross_compiling=$ac_cv_prog_cxx_cross
10234
10235       cat > conftest.$ac_ext <<EOF
10236 #line 10237 "configure"
10237 #include "confdefs.h"
10238 #include <math.h>
10239 int main() {
10240  __builtin_sinl(0);
10241 ; return 0; }
10242 EOF
10243 if { (eval echo configure:10244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10244   rm -rf conftest*
10245   glibcpp_cv_func___builtin_sinl_use=yes
10246 else
10247   echo "configure: failed program was:" >&5
10248   cat conftest.$ac_ext >&5
10249   rm -rf conftest*
10250   glibcpp_cv_func___builtin_sinl_use=no
10251 fi
10252 rm -f conftest*
10253       ac_ext=c
10254 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10255 ac_cpp='$CPP $CPPFLAGS'
10256 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10257 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10258 cross_compiling=$ac_cv_prog_cc_cross
10259
10260     
10261 fi
10262
10263   fi
10264   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
10265   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
10266     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
10267 echo "configure:10268: checking for __builtin_sinl linkage" >&5
10268     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
10269       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
10270   echo $ac_n "(cached) $ac_c" 1>&6
10271 else
10272   
10273         cat > conftest.$ac_ext <<EOF
10274 #line 10275 "configure"
10275 #include "confdefs.h"
10276 #include <math.h>
10277 int main() {
10278  __builtin_sinl(0);
10279 ; return 0; }
10280 EOF
10281 if { (eval echo configure:10282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10282   rm -rf conftest*
10283   glibcpp_cv_func___builtin_sinl_link=yes
10284 else
10285   echo "configure: failed program was:" >&5
10286   cat conftest.$ac_ext >&5
10287   rm -rf conftest*
10288   glibcpp_cv_func___builtin_sinl_link=no
10289 fi
10290 rm -f conftest*
10291       
10292 fi
10293
10294     fi
10295     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
10296     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
10297       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10298       cat >> confdefs.h <<EOF
10299 #define ${ac_tr_func} 1
10300 EOF
10301
10302     fi
10303   fi
10304
10305
10306   
10307   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
10308 echo "configure:10309: checking for __builtin_cosf declaration" >&5
10309   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
10310     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
10311   echo $ac_n "(cached) $ac_c" 1>&6
10312 else
10313   
10314       
10315       ac_ext=C
10316 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10317 ac_cpp='$CXXCPP $CPPFLAGS'
10318 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10319 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10320 cross_compiling=$ac_cv_prog_cxx_cross
10321
10322       cat > conftest.$ac_ext <<EOF
10323 #line 10324 "configure"
10324 #include "confdefs.h"
10325 #include <math.h>
10326 int main() {
10327  __builtin_cosf(0);
10328 ; return 0; }
10329 EOF
10330 if { (eval echo configure:10331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10331   rm -rf conftest*
10332   glibcpp_cv_func___builtin_cosf_use=yes
10333 else
10334   echo "configure: failed program was:" >&5
10335   cat conftest.$ac_ext >&5
10336   rm -rf conftest*
10337   glibcpp_cv_func___builtin_cosf_use=no
10338 fi
10339 rm -f conftest*
10340       ac_ext=c
10341 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10342 ac_cpp='$CPP $CPPFLAGS'
10343 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10344 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10345 cross_compiling=$ac_cv_prog_cc_cross
10346
10347     
10348 fi
10349
10350   fi
10351   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
10352   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
10353     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
10354 echo "configure:10355: checking for __builtin_cosf linkage" >&5
10355     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
10356       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
10357   echo $ac_n "(cached) $ac_c" 1>&6
10358 else
10359   
10360         cat > conftest.$ac_ext <<EOF
10361 #line 10362 "configure"
10362 #include "confdefs.h"
10363 #include <math.h>
10364 int main() {
10365  __builtin_cosf(0);
10366 ; return 0; }
10367 EOF
10368 if { (eval echo configure:10369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10369   rm -rf conftest*
10370   glibcpp_cv_func___builtin_cosf_link=yes
10371 else
10372   echo "configure: failed program was:" >&5
10373   cat conftest.$ac_ext >&5
10374   rm -rf conftest*
10375   glibcpp_cv_func___builtin_cosf_link=no
10376 fi
10377 rm -f conftest*
10378       
10379 fi
10380
10381     fi
10382     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
10383     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
10384       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10385       cat >> confdefs.h <<EOF
10386 #define ${ac_tr_func} 1
10387 EOF
10388
10389     fi
10390   fi
10391
10392   
10393   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
10394 echo "configure:10395: checking for __builtin_cos declaration" >&5
10395   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
10396     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
10397   echo $ac_n "(cached) $ac_c" 1>&6
10398 else
10399   
10400       
10401       ac_ext=C
10402 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10403 ac_cpp='$CXXCPP $CPPFLAGS'
10404 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10405 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10406 cross_compiling=$ac_cv_prog_cxx_cross
10407
10408       cat > conftest.$ac_ext <<EOF
10409 #line 10410 "configure"
10410 #include "confdefs.h"
10411 #include <math.h>
10412 int main() {
10413  __builtin_cos(0);
10414 ; return 0; }
10415 EOF
10416 if { (eval echo configure:10417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10417   rm -rf conftest*
10418   glibcpp_cv_func___builtin_cos_use=yes
10419 else
10420   echo "configure: failed program was:" >&5
10421   cat conftest.$ac_ext >&5
10422   rm -rf conftest*
10423   glibcpp_cv_func___builtin_cos_use=no
10424 fi
10425 rm -f conftest*
10426       ac_ext=c
10427 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10428 ac_cpp='$CPP $CPPFLAGS'
10429 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10430 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10431 cross_compiling=$ac_cv_prog_cc_cross
10432
10433     
10434 fi
10435
10436   fi
10437   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
10438   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
10439     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
10440 echo "configure:10441: checking for __builtin_cos linkage" >&5
10441     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
10442       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
10443   echo $ac_n "(cached) $ac_c" 1>&6
10444 else
10445   
10446         cat > conftest.$ac_ext <<EOF
10447 #line 10448 "configure"
10448 #include "confdefs.h"
10449 #include <math.h>
10450 int main() {
10451  __builtin_cos(0);
10452 ; return 0; }
10453 EOF
10454 if { (eval echo configure:10455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10455   rm -rf conftest*
10456   glibcpp_cv_func___builtin_cos_link=yes
10457 else
10458   echo "configure: failed program was:" >&5
10459   cat conftest.$ac_ext >&5
10460   rm -rf conftest*
10461   glibcpp_cv_func___builtin_cos_link=no
10462 fi
10463 rm -f conftest*
10464       
10465 fi
10466
10467     fi
10468     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
10469     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
10470       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10471       cat >> confdefs.h <<EOF
10472 #define ${ac_tr_func} 1
10473 EOF
10474
10475     fi
10476   fi
10477
10478   
10479   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
10480 echo "configure:10481: checking for __builtin_cosl declaration" >&5
10481   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
10482     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
10483   echo $ac_n "(cached) $ac_c" 1>&6
10484 else
10485   
10486       
10487       ac_ext=C
10488 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10489 ac_cpp='$CXXCPP $CPPFLAGS'
10490 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10491 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10492 cross_compiling=$ac_cv_prog_cxx_cross
10493
10494       cat > conftest.$ac_ext <<EOF
10495 #line 10496 "configure"
10496 #include "confdefs.h"
10497 #include <math.h>
10498 int main() {
10499  __builtin_cosl(0);
10500 ; return 0; }
10501 EOF
10502 if { (eval echo configure:10503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10503   rm -rf conftest*
10504   glibcpp_cv_func___builtin_cosl_use=yes
10505 else
10506   echo "configure: failed program was:" >&5
10507   cat conftest.$ac_ext >&5
10508   rm -rf conftest*
10509   glibcpp_cv_func___builtin_cosl_use=no
10510 fi
10511 rm -f conftest*
10512       ac_ext=c
10513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10514 ac_cpp='$CPP $CPPFLAGS'
10515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10517 cross_compiling=$ac_cv_prog_cc_cross
10518
10519     
10520 fi
10521
10522   fi
10523   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
10524   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
10525     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
10526 echo "configure:10527: checking for __builtin_cosl linkage" >&5
10527     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
10528       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
10529   echo $ac_n "(cached) $ac_c" 1>&6
10530 else
10531   
10532         cat > conftest.$ac_ext <<EOF
10533 #line 10534 "configure"
10534 #include "confdefs.h"
10535 #include <math.h>
10536 int main() {
10537  __builtin_cosl(0);
10538 ; return 0; }
10539 EOF
10540 if { (eval echo configure:10541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10541   rm -rf conftest*
10542   glibcpp_cv_func___builtin_cosl_link=yes
10543 else
10544   echo "configure: failed program was:" >&5
10545   cat conftest.$ac_ext >&5
10546   rm -rf conftest*
10547   glibcpp_cv_func___builtin_cosl_link=no
10548 fi
10549 rm -f conftest*
10550       
10551 fi
10552
10553     fi
10554     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
10555     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
10556       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10557       cat >> confdefs.h <<EOF
10558 #define ${ac_tr_func} 1
10559 EOF
10560
10561     fi
10562   fi
10563
10564
10565               dummyvar=no
10566   if test x$dummyvar = x"yes"; then
10567     cat >> confdefs.h <<\EOF
10568 #define HAVE___BUILTIN_ABS 1
10569 EOF
10570
10571     cat >> confdefs.h <<\EOF
10572 #define HAVE___BUILTIN_LABS 1
10573 EOF
10574
10575     cat >> confdefs.h <<\EOF
10576 #define HAVE___BUILTIN_COS 1
10577 EOF
10578
10579     cat >> confdefs.h <<\EOF
10580 #define HAVE___BUILTIN_COSF 1
10581 EOF
10582
10583     cat >> confdefs.h <<\EOF
10584 #define HAVE___BUILTIN_COSL 1
10585 EOF
10586
10587     cat >> confdefs.h <<\EOF
10588 #define HAVE___BUILTIN_FABS 1
10589 EOF
10590
10591     cat >> confdefs.h <<\EOF
10592 #define HAVE___BUILTIN_FABSF 1
10593 EOF
10594
10595     cat >> confdefs.h <<\EOF
10596 #define HAVE___BUILTIN_FABSL 1
10597 EOF
10598
10599     cat >> confdefs.h <<\EOF
10600 #define HAVE___BUILTIN_SIN 1
10601 EOF
10602
10603     cat >> confdefs.h <<\EOF
10604 #define HAVE___BUILTIN_SINF 1
10605 EOF
10606
10607     cat >> confdefs.h <<\EOF
10608 #define HAVE___BUILTIN_SINL 1
10609 EOF
10610
10611     cat >> confdefs.h <<\EOF
10612 #define HAVE___BUILTIN_SQRT 1
10613 EOF
10614
10615     cat >> confdefs.h <<\EOF
10616 #define HAVE___BUILTIN_SQRTF 1
10617 EOF
10618
10619     cat >> confdefs.h <<\EOF
10620 #define HAVE___BUILTIN_SQRTL 1
10621 EOF
10622
10623   fi
10624
10625   
10626   ac_test_CXXFLAGS="${CXXFLAGS+set}"
10627   ac_save_CXXFLAGS="$CXXFLAGS"
10628   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
10629
10630     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10631 echo "configure:10632: checking for sin in -lm" >&5
10632 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10633 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10634   echo $ac_n "(cached) $ac_c" 1>&6
10635 else
10636   ac_save_LIBS="$LIBS"
10637 LIBS="-lm  $LIBS"
10638 cat > conftest.$ac_ext <<EOF
10639 #line 10640 "configure"
10640 #include "confdefs.h"
10641 /* Override any gcc2 internal prototype to avoid an error.  */
10642 /* We use char because int might match the return type of a gcc2
10643     builtin and then its argument prototype would still apply.  */
10644 char sin();
10645
10646 int main() {
10647 sin()
10648 ; return 0; }
10649 EOF
10650 if { (eval echo configure:10651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10651   rm -rf conftest*
10652   eval "ac_cv_lib_$ac_lib_var=yes"
10653 else
10654   echo "configure: failed program was:" >&5
10655   cat conftest.$ac_ext >&5
10656   rm -rf conftest*
10657   eval "ac_cv_lib_$ac_lib_var=no"
10658 fi
10659 rm -f conftest*
10660 LIBS="$ac_save_LIBS"
10661
10662 fi
10663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10664   echo "$ac_t""yes" 1>&6
10665   libm="-lm"
10666 else
10667   echo "$ac_t""no" 1>&6
10668 fi
10669
10670   ac_save_LIBS="$LIBS"
10671   LIBS="$LIBS $libm"
10672
10673     
10674   
10675   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10676 echo "configure:10677: checking for isinf declaration" >&5
10677   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
10678     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
10679   echo $ac_n "(cached) $ac_c" 1>&6
10680 else
10681   
10682       
10683       ac_ext=C
10684 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10685 ac_cpp='$CXXCPP $CPPFLAGS'
10686 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10687 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10688 cross_compiling=$ac_cv_prog_cxx_cross
10689
10690       cat > conftest.$ac_ext <<EOF
10691 #line 10692 "configure"
10692 #include "confdefs.h"
10693 #include <math.h>
10694                       #ifdef HAVE_IEEEFP_H
10695                       #include <ieeefp.h>
10696                       #endif
10697                      
10698 int main() {
10699  isinf(0);
10700 ; return 0; }
10701 EOF
10702 if { (eval echo configure:10703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10703   rm -rf conftest*
10704   glibcpp_cv_func_isinf_use=yes
10705 else
10706   echo "configure: failed program was:" >&5
10707   cat conftest.$ac_ext >&5
10708   rm -rf conftest*
10709   glibcpp_cv_func_isinf_use=no
10710 fi
10711 rm -f conftest*
10712       ac_ext=c
10713 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10714 ac_cpp='$CPP $CPPFLAGS'
10715 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10716 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10717 cross_compiling=$ac_cv_prog_cc_cross
10718
10719     
10720 fi
10721
10722   fi
10723   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
10724
10725   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
10726     for ac_func in isinf
10727 do
10728 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10729 echo "configure:10730: checking for $ac_func" >&5
10730 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10731   echo $ac_n "(cached) $ac_c" 1>&6
10732 else
10733   cat > conftest.$ac_ext <<EOF
10734 #line 10735 "configure"
10735 #include "confdefs.h"
10736 /* System header to define __stub macros and hopefully few prototypes,
10737     which can conflict with char $ac_func(); below.  */
10738 #include <assert.h>
10739 /* Override any gcc2 internal prototype to avoid an error.  */
10740 /* We use char because int might match the return type of a gcc2
10741     builtin and then its argument prototype would still apply.  */
10742 char $ac_func();
10743
10744 int main() {
10745
10746 /* The GNU C library defines this for functions which it implements
10747     to always fail with ENOSYS.  Some functions are actually named
10748     something starting with __ and the normal name is an alias.  */
10749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10750 choke me
10751 #else
10752 $ac_func();
10753 #endif
10754
10755 ; return 0; }
10756 EOF
10757 if { (eval echo configure:10758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10758   rm -rf conftest*
10759   eval "ac_cv_func_$ac_func=yes"
10760 else
10761   echo "configure: failed program was:" >&5
10762   cat conftest.$ac_ext >&5
10763   rm -rf conftest*
10764   eval "ac_cv_func_$ac_func=no"
10765 fi
10766 rm -f conftest*
10767 fi
10768
10769 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10770   echo "$ac_t""yes" 1>&6
10771     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10772   cat >> confdefs.h <<EOF
10773 #define $ac_tr_func 1
10774 EOF
10775  
10776 else
10777   echo "$ac_t""no" 1>&6
10778 fi
10779 done
10780     
10781   else
10782     
10783   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
10784 echo "configure:10785: checking for _isinf declaration" >&5
10785   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
10786     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
10787   echo $ac_n "(cached) $ac_c" 1>&6
10788 else
10789   
10790       
10791       ac_ext=C
10792 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10793 ac_cpp='$CXXCPP $CPPFLAGS'
10794 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10795 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10796 cross_compiling=$ac_cv_prog_cxx_cross
10797
10798       cat > conftest.$ac_ext <<EOF
10799 #line 10800 "configure"
10800 #include "confdefs.h"
10801 #include <math.h>
10802                       #ifdef HAVE_IEEEFP_H
10803                       #include <ieeefp.h>
10804                       #endif
10805                      
10806 int main() {
10807  _isinf(0);
10808 ; return 0; }
10809 EOF
10810 if { (eval echo configure:10811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10811   rm -rf conftest*
10812   glibcpp_cv_func__isinf_use=yes
10813 else
10814   echo "configure: failed program was:" >&5
10815   cat conftest.$ac_ext >&5
10816   rm -rf conftest*
10817   glibcpp_cv_func__isinf_use=no
10818 fi
10819 rm -f conftest*
10820       ac_ext=c
10821 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10822 ac_cpp='$CPP $CPPFLAGS'
10823 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10824 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10825 cross_compiling=$ac_cv_prog_cc_cross
10826
10827     
10828 fi
10829
10830   fi
10831   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
10832
10833     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
10834       for ac_func in _isinf
10835 do
10836 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10837 echo "configure:10838: checking for $ac_func" >&5
10838 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10839   echo $ac_n "(cached) $ac_c" 1>&6
10840 else
10841   cat > conftest.$ac_ext <<EOF
10842 #line 10843 "configure"
10843 #include "confdefs.h"
10844 /* System header to define __stub macros and hopefully few prototypes,
10845     which can conflict with char $ac_func(); below.  */
10846 #include <assert.h>
10847 /* Override any gcc2 internal prototype to avoid an error.  */
10848 /* We use char because int might match the return type of a gcc2
10849     builtin and then its argument prototype would still apply.  */
10850 char $ac_func();
10851
10852 int main() {
10853
10854 /* The GNU C library defines this for functions which it implements
10855     to always fail with ENOSYS.  Some functions are actually named
10856     something starting with __ and the normal name is an alias.  */
10857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10858 choke me
10859 #else
10860 $ac_func();
10861 #endif
10862
10863 ; return 0; }
10864 EOF
10865 if { (eval echo configure:10866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10866   rm -rf conftest*
10867   eval "ac_cv_func_$ac_func=yes"
10868 else
10869   echo "configure: failed program was:" >&5
10870   cat conftest.$ac_ext >&5
10871   rm -rf conftest*
10872   eval "ac_cv_func_$ac_func=no"
10873 fi
10874 rm -f conftest*
10875 fi
10876
10877 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10878   echo "$ac_t""yes" 1>&6
10879     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10880   cat >> confdefs.h <<EOF
10881 #define $ac_tr_func 1
10882 EOF
10883  
10884 else
10885   echo "$ac_t""no" 1>&6
10886 fi
10887 done
10888     
10889     fi
10890   fi
10891
10892   
10893   
10894   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
10895 echo "configure:10896: checking for isnan declaration" >&5
10896   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
10897     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
10898   echo $ac_n "(cached) $ac_c" 1>&6
10899 else
10900   
10901       
10902       ac_ext=C
10903 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10904 ac_cpp='$CXXCPP $CPPFLAGS'
10905 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10906 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10907 cross_compiling=$ac_cv_prog_cxx_cross
10908
10909       cat > conftest.$ac_ext <<EOF
10910 #line 10911 "configure"
10911 #include "confdefs.h"
10912 #include <math.h>
10913                       #ifdef HAVE_IEEEFP_H
10914                       #include <ieeefp.h>
10915                       #endif
10916                      
10917 int main() {
10918  isnan(0);
10919 ; return 0; }
10920 EOF
10921 if { (eval echo configure:10922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10922   rm -rf conftest*
10923   glibcpp_cv_func_isnan_use=yes
10924 else
10925   echo "configure: failed program was:" >&5
10926   cat conftest.$ac_ext >&5
10927   rm -rf conftest*
10928   glibcpp_cv_func_isnan_use=no
10929 fi
10930 rm -f conftest*
10931       ac_ext=c
10932 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10933 ac_cpp='$CPP $CPPFLAGS'
10934 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10935 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10936 cross_compiling=$ac_cv_prog_cc_cross
10937
10938     
10939 fi
10940
10941   fi
10942   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
10943
10944   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
10945     for ac_func in isnan
10946 do
10947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10948 echo "configure:10949: checking for $ac_func" >&5
10949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10950   echo $ac_n "(cached) $ac_c" 1>&6
10951 else
10952   cat > conftest.$ac_ext <<EOF
10953 #line 10954 "configure"
10954 #include "confdefs.h"
10955 /* System header to define __stub macros and hopefully few prototypes,
10956     which can conflict with char $ac_func(); below.  */
10957 #include <assert.h>
10958 /* Override any gcc2 internal prototype to avoid an error.  */
10959 /* We use char because int might match the return type of a gcc2
10960     builtin and then its argument prototype would still apply.  */
10961 char $ac_func();
10962
10963 int main() {
10964
10965 /* The GNU C library defines this for functions which it implements
10966     to always fail with ENOSYS.  Some functions are actually named
10967     something starting with __ and the normal name is an alias.  */
10968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10969 choke me
10970 #else
10971 $ac_func();
10972 #endif
10973
10974 ; return 0; }
10975 EOF
10976 if { (eval echo configure:10977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10977   rm -rf conftest*
10978   eval "ac_cv_func_$ac_func=yes"
10979 else
10980   echo "configure: failed program was:" >&5
10981   cat conftest.$ac_ext >&5
10982   rm -rf conftest*
10983   eval "ac_cv_func_$ac_func=no"
10984 fi
10985 rm -f conftest*
10986 fi
10987
10988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10989   echo "$ac_t""yes" 1>&6
10990     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10991   cat >> confdefs.h <<EOF
10992 #define $ac_tr_func 1
10993 EOF
10994  
10995 else
10996   echo "$ac_t""no" 1>&6
10997 fi
10998 done
10999     
11000   else
11001     
11002   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11003 echo "configure:11004: checking for _isnan declaration" >&5
11004   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
11005     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
11006   echo $ac_n "(cached) $ac_c" 1>&6
11007 else
11008   
11009       
11010       ac_ext=C
11011 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11012 ac_cpp='$CXXCPP $CPPFLAGS'
11013 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11014 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11015 cross_compiling=$ac_cv_prog_cxx_cross
11016
11017       cat > conftest.$ac_ext <<EOF
11018 #line 11019 "configure"
11019 #include "confdefs.h"
11020 #include <math.h>
11021                       #ifdef HAVE_IEEEFP_H
11022                       #include <ieeefp.h>
11023                       #endif
11024                      
11025 int main() {
11026  _isnan(0);
11027 ; return 0; }
11028 EOF
11029 if { (eval echo configure:11030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11030   rm -rf conftest*
11031   glibcpp_cv_func__isnan_use=yes
11032 else
11033   echo "configure: failed program was:" >&5
11034   cat conftest.$ac_ext >&5
11035   rm -rf conftest*
11036   glibcpp_cv_func__isnan_use=no
11037 fi
11038 rm -f conftest*
11039       ac_ext=c
11040 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11041 ac_cpp='$CPP $CPPFLAGS'
11042 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11043 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11044 cross_compiling=$ac_cv_prog_cc_cross
11045
11046     
11047 fi
11048
11049   fi
11050   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
11051
11052     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
11053       for ac_func in _isnan
11054 do
11055 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11056 echo "configure:11057: checking for $ac_func" >&5
11057 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11058   echo $ac_n "(cached) $ac_c" 1>&6
11059 else
11060   cat > conftest.$ac_ext <<EOF
11061 #line 11062 "configure"
11062 #include "confdefs.h"
11063 /* System header to define __stub macros and hopefully few prototypes,
11064     which can conflict with char $ac_func(); below.  */
11065 #include <assert.h>
11066 /* Override any gcc2 internal prototype to avoid an error.  */
11067 /* We use char because int might match the return type of a gcc2
11068     builtin and then its argument prototype would still apply.  */
11069 char $ac_func();
11070
11071 int main() {
11072
11073 /* The GNU C library defines this for functions which it implements
11074     to always fail with ENOSYS.  Some functions are actually named
11075     something starting with __ and the normal name is an alias.  */
11076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11077 choke me
11078 #else
11079 $ac_func();
11080 #endif
11081
11082 ; return 0; }
11083 EOF
11084 if { (eval echo configure:11085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11085   rm -rf conftest*
11086   eval "ac_cv_func_$ac_func=yes"
11087 else
11088   echo "configure: failed program was:" >&5
11089   cat conftest.$ac_ext >&5
11090   rm -rf conftest*
11091   eval "ac_cv_func_$ac_func=no"
11092 fi
11093 rm -f conftest*
11094 fi
11095
11096 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11097   echo "$ac_t""yes" 1>&6
11098     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11099   cat >> confdefs.h <<EOF
11100 #define $ac_tr_func 1
11101 EOF
11102  
11103 else
11104   echo "$ac_t""no" 1>&6
11105 fi
11106 done
11107     
11108     fi
11109   fi
11110
11111   
11112   
11113   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11114 echo "configure:11115: checking for finite declaration" >&5
11115   if test x${glibcpp_cv_func_finite_use+set} != xset; then
11116     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
11117   echo $ac_n "(cached) $ac_c" 1>&6
11118 else
11119   
11120       
11121       ac_ext=C
11122 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11123 ac_cpp='$CXXCPP $CPPFLAGS'
11124 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11125 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11126 cross_compiling=$ac_cv_prog_cxx_cross
11127
11128       cat > conftest.$ac_ext <<EOF
11129 #line 11130 "configure"
11130 #include "confdefs.h"
11131 #include <math.h>
11132                       #ifdef HAVE_IEEEFP_H
11133                       #include <ieeefp.h>
11134                       #endif
11135                      
11136 int main() {
11137  finite(0);
11138 ; return 0; }
11139 EOF
11140 if { (eval echo configure:11141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11141   rm -rf conftest*
11142   glibcpp_cv_func_finite_use=yes
11143 else
11144   echo "configure: failed program was:" >&5
11145   cat conftest.$ac_ext >&5
11146   rm -rf conftest*
11147   glibcpp_cv_func_finite_use=no
11148 fi
11149 rm -f conftest*
11150       ac_ext=c
11151 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11152 ac_cpp='$CPP $CPPFLAGS'
11153 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11154 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11155 cross_compiling=$ac_cv_prog_cc_cross
11156
11157     
11158 fi
11159
11160   fi
11161   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
11162
11163   if test x$glibcpp_cv_func_finite_use = x"yes"; then
11164     for ac_func in finite
11165 do
11166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11167 echo "configure:11168: checking for $ac_func" >&5
11168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11169   echo $ac_n "(cached) $ac_c" 1>&6
11170 else
11171   cat > conftest.$ac_ext <<EOF
11172 #line 11173 "configure"
11173 #include "confdefs.h"
11174 /* System header to define __stub macros and hopefully few prototypes,
11175     which can conflict with char $ac_func(); below.  */
11176 #include <assert.h>
11177 /* Override any gcc2 internal prototype to avoid an error.  */
11178 /* We use char because int might match the return type of a gcc2
11179     builtin and then its argument prototype would still apply.  */
11180 char $ac_func();
11181
11182 int main() {
11183
11184 /* The GNU C library defines this for functions which it implements
11185     to always fail with ENOSYS.  Some functions are actually named
11186     something starting with __ and the normal name is an alias.  */
11187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11188 choke me
11189 #else
11190 $ac_func();
11191 #endif
11192
11193 ; return 0; }
11194 EOF
11195 if { (eval echo configure:11196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11196   rm -rf conftest*
11197   eval "ac_cv_func_$ac_func=yes"
11198 else
11199   echo "configure: failed program was:" >&5
11200   cat conftest.$ac_ext >&5
11201   rm -rf conftest*
11202   eval "ac_cv_func_$ac_func=no"
11203 fi
11204 rm -f conftest*
11205 fi
11206
11207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11208   echo "$ac_t""yes" 1>&6
11209     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11210   cat >> confdefs.h <<EOF
11211 #define $ac_tr_func 1
11212 EOF
11213  
11214 else
11215   echo "$ac_t""no" 1>&6
11216 fi
11217 done
11218     
11219   else
11220     
11221   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11222 echo "configure:11223: checking for _finite declaration" >&5
11223   if test x${glibcpp_cv_func__finite_use+set} != xset; then
11224     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
11225   echo $ac_n "(cached) $ac_c" 1>&6
11226 else
11227   
11228       
11229       ac_ext=C
11230 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11231 ac_cpp='$CXXCPP $CPPFLAGS'
11232 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11233 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11234 cross_compiling=$ac_cv_prog_cxx_cross
11235
11236       cat > conftest.$ac_ext <<EOF
11237 #line 11238 "configure"
11238 #include "confdefs.h"
11239 #include <math.h>
11240                       #ifdef HAVE_IEEEFP_H
11241                       #include <ieeefp.h>
11242                       #endif
11243                      
11244 int main() {
11245  _finite(0);
11246 ; return 0; }
11247 EOF
11248 if { (eval echo configure:11249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11249   rm -rf conftest*
11250   glibcpp_cv_func__finite_use=yes
11251 else
11252   echo "configure: failed program was:" >&5
11253   cat conftest.$ac_ext >&5
11254   rm -rf conftest*
11255   glibcpp_cv_func__finite_use=no
11256 fi
11257 rm -f conftest*
11258       ac_ext=c
11259 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11260 ac_cpp='$CPP $CPPFLAGS'
11261 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11262 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11263 cross_compiling=$ac_cv_prog_cc_cross
11264
11265     
11266 fi
11267
11268   fi
11269   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
11270
11271     if test x$glibcpp_cv_func__finite_use = x"yes"; then
11272       for ac_func in _finite
11273 do
11274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11275 echo "configure:11276: checking for $ac_func" >&5
11276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11277   echo $ac_n "(cached) $ac_c" 1>&6
11278 else
11279   cat > conftest.$ac_ext <<EOF
11280 #line 11281 "configure"
11281 #include "confdefs.h"
11282 /* System header to define __stub macros and hopefully few prototypes,
11283     which can conflict with char $ac_func(); below.  */
11284 #include <assert.h>
11285 /* Override any gcc2 internal prototype to avoid an error.  */
11286 /* We use char because int might match the return type of a gcc2
11287     builtin and then its argument prototype would still apply.  */
11288 char $ac_func();
11289
11290 int main() {
11291
11292 /* The GNU C library defines this for functions which it implements
11293     to always fail with ENOSYS.  Some functions are actually named
11294     something starting with __ and the normal name is an alias.  */
11295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11296 choke me
11297 #else
11298 $ac_func();
11299 #endif
11300
11301 ; return 0; }
11302 EOF
11303 if { (eval echo configure:11304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11304   rm -rf conftest*
11305   eval "ac_cv_func_$ac_func=yes"
11306 else
11307   echo "configure: failed program was:" >&5
11308   cat conftest.$ac_ext >&5
11309   rm -rf conftest*
11310   eval "ac_cv_func_$ac_func=no"
11311 fi
11312 rm -f conftest*
11313 fi
11314
11315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11316   echo "$ac_t""yes" 1>&6
11317     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11318   cat >> confdefs.h <<EOF
11319 #define $ac_tr_func 1
11320 EOF
11321  
11322 else
11323   echo "$ac_t""no" 1>&6
11324 fi
11325 done
11326     
11327     fi
11328   fi
11329
11330   
11331   
11332   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11333 echo "configure:11334: checking for copysign declaration" >&5
11334   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
11335     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
11336   echo $ac_n "(cached) $ac_c" 1>&6
11337 else
11338   
11339       
11340       ac_ext=C
11341 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11342 ac_cpp='$CXXCPP $CPPFLAGS'
11343 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11344 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11345 cross_compiling=$ac_cv_prog_cxx_cross
11346
11347       cat > conftest.$ac_ext <<EOF
11348 #line 11349 "configure"
11349 #include "confdefs.h"
11350 #include <math.h>
11351 int main() {
11352  copysign(0, 0);
11353 ; return 0; }
11354 EOF
11355 if { (eval echo configure:11356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11356   rm -rf conftest*
11357   glibcpp_cv_func_copysign_use=yes
11358 else
11359   echo "configure: failed program was:" >&5
11360   cat conftest.$ac_ext >&5
11361   rm -rf conftest*
11362   glibcpp_cv_func_copysign_use=no
11363 fi
11364 rm -f conftest*
11365       ac_ext=c
11366 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11367 ac_cpp='$CPP $CPPFLAGS'
11368 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11369 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11370 cross_compiling=$ac_cv_prog_cc_cross
11371
11372     
11373 fi
11374
11375   fi
11376   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
11377
11378   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
11379     for ac_func in copysign
11380 do
11381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11382 echo "configure:11383: checking for $ac_func" >&5
11383 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11384   echo $ac_n "(cached) $ac_c" 1>&6
11385 else
11386   cat > conftest.$ac_ext <<EOF
11387 #line 11388 "configure"
11388 #include "confdefs.h"
11389 /* System header to define __stub macros and hopefully few prototypes,
11390     which can conflict with char $ac_func(); below.  */
11391 #include <assert.h>
11392 /* Override any gcc2 internal prototype to avoid an error.  */
11393 /* We use char because int might match the return type of a gcc2
11394     builtin and then its argument prototype would still apply.  */
11395 char $ac_func();
11396
11397 int main() {
11398
11399 /* The GNU C library defines this for functions which it implements
11400     to always fail with ENOSYS.  Some functions are actually named
11401     something starting with __ and the normal name is an alias.  */
11402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11403 choke me
11404 #else
11405 $ac_func();
11406 #endif
11407
11408 ; return 0; }
11409 EOF
11410 if { (eval echo configure:11411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11411   rm -rf conftest*
11412   eval "ac_cv_func_$ac_func=yes"
11413 else
11414   echo "configure: failed program was:" >&5
11415   cat conftest.$ac_ext >&5
11416   rm -rf conftest*
11417   eval "ac_cv_func_$ac_func=no"
11418 fi
11419 rm -f conftest*
11420 fi
11421
11422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11423   echo "$ac_t""yes" 1>&6
11424     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11425   cat >> confdefs.h <<EOF
11426 #define $ac_tr_func 1
11427 EOF
11428  
11429 else
11430   echo "$ac_t""no" 1>&6
11431 fi
11432 done
11433     
11434   else
11435     
11436   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11437 echo "configure:11438: checking for _copysign declaration" >&5
11438   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
11439     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
11440   echo $ac_n "(cached) $ac_c" 1>&6
11441 else
11442   
11443       
11444       ac_ext=C
11445 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11446 ac_cpp='$CXXCPP $CPPFLAGS'
11447 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11448 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11449 cross_compiling=$ac_cv_prog_cxx_cross
11450
11451       cat > conftest.$ac_ext <<EOF
11452 #line 11453 "configure"
11453 #include "confdefs.h"
11454 #include <math.h>
11455 int main() {
11456  _copysign(0, 0);
11457 ; return 0; }
11458 EOF
11459 if { (eval echo configure:11460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11460   rm -rf conftest*
11461   glibcpp_cv_func__copysign_use=yes
11462 else
11463   echo "configure: failed program was:" >&5
11464   cat conftest.$ac_ext >&5
11465   rm -rf conftest*
11466   glibcpp_cv_func__copysign_use=no
11467 fi
11468 rm -f conftest*
11469       ac_ext=c
11470 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11471 ac_cpp='$CPP $CPPFLAGS'
11472 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11473 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11474 cross_compiling=$ac_cv_prog_cc_cross
11475
11476     
11477 fi
11478
11479   fi
11480   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
11481
11482     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
11483       for ac_func in _copysign
11484 do
11485 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11486 echo "configure:11487: checking for $ac_func" >&5
11487 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11488   echo $ac_n "(cached) $ac_c" 1>&6
11489 else
11490   cat > conftest.$ac_ext <<EOF
11491 #line 11492 "configure"
11492 #include "confdefs.h"
11493 /* System header to define __stub macros and hopefully few prototypes,
11494     which can conflict with char $ac_func(); below.  */
11495 #include <assert.h>
11496 /* Override any gcc2 internal prototype to avoid an error.  */
11497 /* We use char because int might match the return type of a gcc2
11498     builtin and then its argument prototype would still apply.  */
11499 char $ac_func();
11500
11501 int main() {
11502
11503 /* The GNU C library defines this for functions which it implements
11504     to always fail with ENOSYS.  Some functions are actually named
11505     something starting with __ and the normal name is an alias.  */
11506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11507 choke me
11508 #else
11509 $ac_func();
11510 #endif
11511
11512 ; return 0; }
11513 EOF
11514 if { (eval echo configure:11515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11515   rm -rf conftest*
11516   eval "ac_cv_func_$ac_func=yes"
11517 else
11518   echo "configure: failed program was:" >&5
11519   cat conftest.$ac_ext >&5
11520   rm -rf conftest*
11521   eval "ac_cv_func_$ac_func=no"
11522 fi
11523 rm -f conftest*
11524 fi
11525
11526 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11527   echo "$ac_t""yes" 1>&6
11528     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11529   cat >> confdefs.h <<EOF
11530 #define $ac_tr_func 1
11531 EOF
11532  
11533 else
11534   echo "$ac_t""no" 1>&6
11535 fi
11536 done
11537     
11538     fi
11539   fi
11540
11541   
11542   
11543   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11544 echo "configure:11545: checking for sincos declaration" >&5
11545   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
11546     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
11547   echo $ac_n "(cached) $ac_c" 1>&6
11548 else
11549   
11550       
11551       ac_ext=C
11552 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11553 ac_cpp='$CXXCPP $CPPFLAGS'
11554 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11555 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11556 cross_compiling=$ac_cv_prog_cxx_cross
11557
11558       cat > conftest.$ac_ext <<EOF
11559 #line 11560 "configure"
11560 #include "confdefs.h"
11561 #include <math.h>
11562 int main() {
11563  sincos(0, 0, 0);
11564 ; return 0; }
11565 EOF
11566 if { (eval echo configure:11567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11567   rm -rf conftest*
11568   glibcpp_cv_func_sincos_use=yes
11569 else
11570   echo "configure: failed program was:" >&5
11571   cat conftest.$ac_ext >&5
11572   rm -rf conftest*
11573   glibcpp_cv_func_sincos_use=no
11574 fi
11575 rm -f conftest*
11576       ac_ext=c
11577 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11578 ac_cpp='$CPP $CPPFLAGS'
11579 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11580 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11581 cross_compiling=$ac_cv_prog_cc_cross
11582
11583     
11584 fi
11585
11586   fi
11587   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
11588
11589   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
11590     for ac_func in sincos
11591 do
11592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11593 echo "configure:11594: checking for $ac_func" >&5
11594 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11595   echo $ac_n "(cached) $ac_c" 1>&6
11596 else
11597   cat > conftest.$ac_ext <<EOF
11598 #line 11599 "configure"
11599 #include "confdefs.h"
11600 /* System header to define __stub macros and hopefully few prototypes,
11601     which can conflict with char $ac_func(); below.  */
11602 #include <assert.h>
11603 /* Override any gcc2 internal prototype to avoid an error.  */
11604 /* We use char because int might match the return type of a gcc2
11605     builtin and then its argument prototype would still apply.  */
11606 char $ac_func();
11607
11608 int main() {
11609
11610 /* The GNU C library defines this for functions which it implements
11611     to always fail with ENOSYS.  Some functions are actually named
11612     something starting with __ and the normal name is an alias.  */
11613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11614 choke me
11615 #else
11616 $ac_func();
11617 #endif
11618
11619 ; return 0; }
11620 EOF
11621 if { (eval echo configure:11622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11622   rm -rf conftest*
11623   eval "ac_cv_func_$ac_func=yes"
11624 else
11625   echo "configure: failed program was:" >&5
11626   cat conftest.$ac_ext >&5
11627   rm -rf conftest*
11628   eval "ac_cv_func_$ac_func=no"
11629 fi
11630 rm -f conftest*
11631 fi
11632
11633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11634   echo "$ac_t""yes" 1>&6
11635     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11636   cat >> confdefs.h <<EOF
11637 #define $ac_tr_func 1
11638 EOF
11639  
11640 else
11641   echo "$ac_t""no" 1>&6
11642 fi
11643 done
11644     
11645   else
11646     
11647   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11648 echo "configure:11649: checking for _sincos declaration" >&5
11649   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
11650     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
11651   echo $ac_n "(cached) $ac_c" 1>&6
11652 else
11653   
11654       
11655       ac_ext=C
11656 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11657 ac_cpp='$CXXCPP $CPPFLAGS'
11658 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11659 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11660 cross_compiling=$ac_cv_prog_cxx_cross
11661
11662       cat > conftest.$ac_ext <<EOF
11663 #line 11664 "configure"
11664 #include "confdefs.h"
11665 #include <math.h>
11666 int main() {
11667  _sincos(0, 0, 0);
11668 ; return 0; }
11669 EOF
11670 if { (eval echo configure:11671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11671   rm -rf conftest*
11672   glibcpp_cv_func__sincos_use=yes
11673 else
11674   echo "configure: failed program was:" >&5
11675   cat conftest.$ac_ext >&5
11676   rm -rf conftest*
11677   glibcpp_cv_func__sincos_use=no
11678 fi
11679 rm -f conftest*
11680       ac_ext=c
11681 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11682 ac_cpp='$CPP $CPPFLAGS'
11683 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11684 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11685 cross_compiling=$ac_cv_prog_cc_cross
11686
11687     
11688 fi
11689
11690   fi
11691   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
11692
11693     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
11694       for ac_func in _sincos
11695 do
11696 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11697 echo "configure:11698: checking for $ac_func" >&5
11698 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11699   echo $ac_n "(cached) $ac_c" 1>&6
11700 else
11701   cat > conftest.$ac_ext <<EOF
11702 #line 11703 "configure"
11703 #include "confdefs.h"
11704 /* System header to define __stub macros and hopefully few prototypes,
11705     which can conflict with char $ac_func(); below.  */
11706 #include <assert.h>
11707 /* Override any gcc2 internal prototype to avoid an error.  */
11708 /* We use char because int might match the return type of a gcc2
11709     builtin and then its argument prototype would still apply.  */
11710 char $ac_func();
11711
11712 int main() {
11713
11714 /* The GNU C library defines this for functions which it implements
11715     to always fail with ENOSYS.  Some functions are actually named
11716     something starting with __ and the normal name is an alias.  */
11717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11718 choke me
11719 #else
11720 $ac_func();
11721 #endif
11722
11723 ; return 0; }
11724 EOF
11725 if { (eval echo configure:11726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11726   rm -rf conftest*
11727   eval "ac_cv_func_$ac_func=yes"
11728 else
11729   echo "configure: failed program was:" >&5
11730   cat conftest.$ac_ext >&5
11731   rm -rf conftest*
11732   eval "ac_cv_func_$ac_func=no"
11733 fi
11734 rm -f conftest*
11735 fi
11736
11737 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11738   echo "$ac_t""yes" 1>&6
11739     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11740   cat >> confdefs.h <<EOF
11741 #define $ac_tr_func 1
11742 EOF
11743  
11744 else
11745   echo "$ac_t""no" 1>&6
11746 fi
11747 done
11748     
11749     fi
11750   fi
11751
11752   
11753   
11754   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
11755 echo "configure:11756: checking for fpclass declaration" >&5
11756   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
11757     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
11758   echo $ac_n "(cached) $ac_c" 1>&6
11759 else
11760   
11761       
11762       ac_ext=C
11763 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11764 ac_cpp='$CXXCPP $CPPFLAGS'
11765 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11766 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11767 cross_compiling=$ac_cv_prog_cxx_cross
11768
11769       cat > conftest.$ac_ext <<EOF
11770 #line 11771 "configure"
11771 #include "confdefs.h"
11772 #include <math.h>
11773                       #ifdef HAVE_IEEEFP_H
11774                       #include <ieeefp.h>
11775                       #endif
11776                      
11777 int main() {
11778  fpclass(0);
11779 ; return 0; }
11780 EOF
11781 if { (eval echo configure:11782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11782   rm -rf conftest*
11783   glibcpp_cv_func_fpclass_use=yes
11784 else
11785   echo "configure: failed program was:" >&5
11786   cat conftest.$ac_ext >&5
11787   rm -rf conftest*
11788   glibcpp_cv_func_fpclass_use=no
11789 fi
11790 rm -f conftest*
11791       ac_ext=c
11792 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11793 ac_cpp='$CPP $CPPFLAGS'
11794 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11795 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11796 cross_compiling=$ac_cv_prog_cc_cross
11797
11798     
11799 fi
11800
11801   fi
11802   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
11803
11804   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
11805     for ac_func in fpclass
11806 do
11807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11808 echo "configure:11809: checking for $ac_func" >&5
11809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11810   echo $ac_n "(cached) $ac_c" 1>&6
11811 else
11812   cat > conftest.$ac_ext <<EOF
11813 #line 11814 "configure"
11814 #include "confdefs.h"
11815 /* System header to define __stub macros and hopefully few prototypes,
11816     which can conflict with char $ac_func(); below.  */
11817 #include <assert.h>
11818 /* Override any gcc2 internal prototype to avoid an error.  */
11819 /* We use char because int might match the return type of a gcc2
11820     builtin and then its argument prototype would still apply.  */
11821 char $ac_func();
11822
11823 int main() {
11824
11825 /* The GNU C library defines this for functions which it implements
11826     to always fail with ENOSYS.  Some functions are actually named
11827     something starting with __ and the normal name is an alias.  */
11828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11829 choke me
11830 #else
11831 $ac_func();
11832 #endif
11833
11834 ; return 0; }
11835 EOF
11836 if { (eval echo configure:11837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11837   rm -rf conftest*
11838   eval "ac_cv_func_$ac_func=yes"
11839 else
11840   echo "configure: failed program was:" >&5
11841   cat conftest.$ac_ext >&5
11842   rm -rf conftest*
11843   eval "ac_cv_func_$ac_func=no"
11844 fi
11845 rm -f conftest*
11846 fi
11847
11848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11849   echo "$ac_t""yes" 1>&6
11850     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11851   cat >> confdefs.h <<EOF
11852 #define $ac_tr_func 1
11853 EOF
11854  
11855 else
11856   echo "$ac_t""no" 1>&6
11857 fi
11858 done
11859     
11860   else
11861     
11862   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
11863 echo "configure:11864: checking for _fpclass declaration" >&5
11864   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
11865     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
11866   echo $ac_n "(cached) $ac_c" 1>&6
11867 else
11868   
11869       
11870       ac_ext=C
11871 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11872 ac_cpp='$CXXCPP $CPPFLAGS'
11873 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11874 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11875 cross_compiling=$ac_cv_prog_cxx_cross
11876
11877       cat > conftest.$ac_ext <<EOF
11878 #line 11879 "configure"
11879 #include "confdefs.h"
11880 #include <math.h>
11881                       #ifdef HAVE_IEEEFP_H
11882                       #include <ieeefp.h>
11883                       #endif
11884                      
11885 int main() {
11886  _fpclass(0);
11887 ; return 0; }
11888 EOF
11889 if { (eval echo configure:11890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11890   rm -rf conftest*
11891   glibcpp_cv_func__fpclass_use=yes
11892 else
11893   echo "configure: failed program was:" >&5
11894   cat conftest.$ac_ext >&5
11895   rm -rf conftest*
11896   glibcpp_cv_func__fpclass_use=no
11897 fi
11898 rm -f conftest*
11899       ac_ext=c
11900 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11901 ac_cpp='$CPP $CPPFLAGS'
11902 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11903 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11904 cross_compiling=$ac_cv_prog_cc_cross
11905
11906     
11907 fi
11908
11909   fi
11910   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
11911
11912     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
11913       for ac_func in _fpclass
11914 do
11915 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11916 echo "configure:11917: checking for $ac_func" >&5
11917 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11918   echo $ac_n "(cached) $ac_c" 1>&6
11919 else
11920   cat > conftest.$ac_ext <<EOF
11921 #line 11922 "configure"
11922 #include "confdefs.h"
11923 /* System header to define __stub macros and hopefully few prototypes,
11924     which can conflict with char $ac_func(); below.  */
11925 #include <assert.h>
11926 /* Override any gcc2 internal prototype to avoid an error.  */
11927 /* We use char because int might match the return type of a gcc2
11928     builtin and then its argument prototype would still apply.  */
11929 char $ac_func();
11930
11931 int main() {
11932
11933 /* The GNU C library defines this for functions which it implements
11934     to always fail with ENOSYS.  Some functions are actually named
11935     something starting with __ and the normal name is an alias.  */
11936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11937 choke me
11938 #else
11939 $ac_func();
11940 #endif
11941
11942 ; return 0; }
11943 EOF
11944 if { (eval echo configure:11945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11945   rm -rf conftest*
11946   eval "ac_cv_func_$ac_func=yes"
11947 else
11948   echo "configure: failed program was:" >&5
11949   cat conftest.$ac_ext >&5
11950   rm -rf conftest*
11951   eval "ac_cv_func_$ac_func=no"
11952 fi
11953 rm -f conftest*
11954 fi
11955
11956 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11957   echo "$ac_t""yes" 1>&6
11958     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11959   cat >> confdefs.h <<EOF
11960 #define $ac_tr_func 1
11961 EOF
11962  
11963 else
11964   echo "$ac_t""no" 1>&6
11965 fi
11966 done
11967     
11968     fi
11969   fi
11970
11971   
11972   
11973   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
11974 echo "configure:11975: checking for qfpclass declaration" >&5
11975   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
11976     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
11977   echo $ac_n "(cached) $ac_c" 1>&6
11978 else
11979   
11980       
11981       ac_ext=C
11982 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11983 ac_cpp='$CXXCPP $CPPFLAGS'
11984 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11985 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11986 cross_compiling=$ac_cv_prog_cxx_cross
11987
11988       cat > conftest.$ac_ext <<EOF
11989 #line 11990 "configure"
11990 #include "confdefs.h"
11991 #include <math.h>
11992                       #ifdef HAVE_IEEEFP_H
11993                       #include <ieeefp.h>
11994                       #endif
11995                      
11996 int main() {
11997  qfpclass(0);
11998 ; return 0; }
11999 EOF
12000 if { (eval echo configure:12001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12001   rm -rf conftest*
12002   glibcpp_cv_func_qfpclass_use=yes
12003 else
12004   echo "configure: failed program was:" >&5
12005   cat conftest.$ac_ext >&5
12006   rm -rf conftest*
12007   glibcpp_cv_func_qfpclass_use=no
12008 fi
12009 rm -f conftest*
12010       ac_ext=c
12011 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12012 ac_cpp='$CPP $CPPFLAGS'
12013 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12014 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12015 cross_compiling=$ac_cv_prog_cc_cross
12016
12017     
12018 fi
12019
12020   fi
12021   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
12022
12023   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
12024     for ac_func in qfpclass
12025 do
12026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12027 echo "configure:12028: checking for $ac_func" >&5
12028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12029   echo $ac_n "(cached) $ac_c" 1>&6
12030 else
12031   cat > conftest.$ac_ext <<EOF
12032 #line 12033 "configure"
12033 #include "confdefs.h"
12034 /* System header to define __stub macros and hopefully few prototypes,
12035     which can conflict with char $ac_func(); below.  */
12036 #include <assert.h>
12037 /* Override any gcc2 internal prototype to avoid an error.  */
12038 /* We use char because int might match the return type of a gcc2
12039     builtin and then its argument prototype would still apply.  */
12040 char $ac_func();
12041
12042 int main() {
12043
12044 /* The GNU C library defines this for functions which it implements
12045     to always fail with ENOSYS.  Some functions are actually named
12046     something starting with __ and the normal name is an alias.  */
12047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12048 choke me
12049 #else
12050 $ac_func();
12051 #endif
12052
12053 ; return 0; }
12054 EOF
12055 if { (eval echo configure:12056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12056   rm -rf conftest*
12057   eval "ac_cv_func_$ac_func=yes"
12058 else
12059   echo "configure: failed program was:" >&5
12060   cat conftest.$ac_ext >&5
12061   rm -rf conftest*
12062   eval "ac_cv_func_$ac_func=no"
12063 fi
12064 rm -f conftest*
12065 fi
12066
12067 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12068   echo "$ac_t""yes" 1>&6
12069     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12070   cat >> confdefs.h <<EOF
12071 #define $ac_tr_func 1
12072 EOF
12073  
12074 else
12075   echo "$ac_t""no" 1>&6
12076 fi
12077 done
12078     
12079   else
12080     
12081   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12082 echo "configure:12083: checking for _qfpclass declaration" >&5
12083   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
12084     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
12085   echo $ac_n "(cached) $ac_c" 1>&6
12086 else
12087   
12088       
12089       ac_ext=C
12090 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12091 ac_cpp='$CXXCPP $CPPFLAGS'
12092 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12093 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12094 cross_compiling=$ac_cv_prog_cxx_cross
12095
12096       cat > conftest.$ac_ext <<EOF
12097 #line 12098 "configure"
12098 #include "confdefs.h"
12099 #include <math.h>
12100                       #ifdef HAVE_IEEEFP_H
12101                       #include <ieeefp.h>
12102                       #endif
12103                      
12104 int main() {
12105  _qfpclass(0);
12106 ; return 0; }
12107 EOF
12108 if { (eval echo configure:12109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12109   rm -rf conftest*
12110   glibcpp_cv_func__qfpclass_use=yes
12111 else
12112   echo "configure: failed program was:" >&5
12113   cat conftest.$ac_ext >&5
12114   rm -rf conftest*
12115   glibcpp_cv_func__qfpclass_use=no
12116 fi
12117 rm -f conftest*
12118       ac_ext=c
12119 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12120 ac_cpp='$CPP $CPPFLAGS'
12121 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12122 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12123 cross_compiling=$ac_cv_prog_cc_cross
12124
12125     
12126 fi
12127
12128   fi
12129   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
12130
12131     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
12132       for ac_func in _qfpclass
12133 do
12134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12135 echo "configure:12136: checking for $ac_func" >&5
12136 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12137   echo $ac_n "(cached) $ac_c" 1>&6
12138 else
12139   cat > conftest.$ac_ext <<EOF
12140 #line 12141 "configure"
12141 #include "confdefs.h"
12142 /* System header to define __stub macros and hopefully few prototypes,
12143     which can conflict with char $ac_func(); below.  */
12144 #include <assert.h>
12145 /* Override any gcc2 internal prototype to avoid an error.  */
12146 /* We use char because int might match the return type of a gcc2
12147     builtin and then its argument prototype would still apply.  */
12148 char $ac_func();
12149
12150 int main() {
12151
12152 /* The GNU C library defines this for functions which it implements
12153     to always fail with ENOSYS.  Some functions are actually named
12154     something starting with __ and the normal name is an alias.  */
12155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12156 choke me
12157 #else
12158 $ac_func();
12159 #endif
12160
12161 ; return 0; }
12162 EOF
12163 if { (eval echo configure:12164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12164   rm -rf conftest*
12165   eval "ac_cv_func_$ac_func=yes"
12166 else
12167   echo "configure: failed program was:" >&5
12168   cat conftest.$ac_ext >&5
12169   rm -rf conftest*
12170   eval "ac_cv_func_$ac_func=no"
12171 fi
12172 rm -f conftest*
12173 fi
12174
12175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12176   echo "$ac_t""yes" 1>&6
12177     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12178   cat >> confdefs.h <<EOF
12179 #define $ac_tr_func 1
12180 EOF
12181  
12182 else
12183   echo "$ac_t""no" 1>&6
12184 fi
12185 done
12186     
12187     fi
12188   fi
12189
12190   
12191   
12192   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12193 echo "configure:12194: checking for hypot declaration" >&5
12194   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
12195     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
12196   echo $ac_n "(cached) $ac_c" 1>&6
12197 else
12198   
12199       
12200       ac_ext=C
12201 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12202 ac_cpp='$CXXCPP $CPPFLAGS'
12203 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12204 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12205 cross_compiling=$ac_cv_prog_cxx_cross
12206
12207       cat > conftest.$ac_ext <<EOF
12208 #line 12209 "configure"
12209 #include "confdefs.h"
12210 #include <math.h>
12211 int main() {
12212  hypot(0, 0);
12213 ; return 0; }
12214 EOF
12215 if { (eval echo configure:12216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12216   rm -rf conftest*
12217   glibcpp_cv_func_hypot_use=yes
12218 else
12219   echo "configure: failed program was:" >&5
12220   cat conftest.$ac_ext >&5
12221   rm -rf conftest*
12222   glibcpp_cv_func_hypot_use=no
12223 fi
12224 rm -f conftest*
12225       ac_ext=c
12226 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12227 ac_cpp='$CPP $CPPFLAGS'
12228 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12229 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12230 cross_compiling=$ac_cv_prog_cc_cross
12231
12232     
12233 fi
12234
12235   fi
12236   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
12237
12238   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
12239     for ac_func in hypot
12240 do
12241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12242 echo "configure:12243: checking for $ac_func" >&5
12243 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12244   echo $ac_n "(cached) $ac_c" 1>&6
12245 else
12246   cat > conftest.$ac_ext <<EOF
12247 #line 12248 "configure"
12248 #include "confdefs.h"
12249 /* System header to define __stub macros and hopefully few prototypes,
12250     which can conflict with char $ac_func(); below.  */
12251 #include <assert.h>
12252 /* Override any gcc2 internal prototype to avoid an error.  */
12253 /* We use char because int might match the return type of a gcc2
12254     builtin and then its argument prototype would still apply.  */
12255 char $ac_func();
12256
12257 int main() {
12258
12259 /* The GNU C library defines this for functions which it implements
12260     to always fail with ENOSYS.  Some functions are actually named
12261     something starting with __ and the normal name is an alias.  */
12262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12263 choke me
12264 #else
12265 $ac_func();
12266 #endif
12267
12268 ; return 0; }
12269 EOF
12270 if { (eval echo configure:12271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12271   rm -rf conftest*
12272   eval "ac_cv_func_$ac_func=yes"
12273 else
12274   echo "configure: failed program was:" >&5
12275   cat conftest.$ac_ext >&5
12276   rm -rf conftest*
12277   eval "ac_cv_func_$ac_func=no"
12278 fi
12279 rm -f conftest*
12280 fi
12281
12282 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12283   echo "$ac_t""yes" 1>&6
12284     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12285   cat >> confdefs.h <<EOF
12286 #define $ac_tr_func 1
12287 EOF
12288  
12289 else
12290   echo "$ac_t""no" 1>&6
12291 fi
12292 done
12293     
12294   else
12295     
12296   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12297 echo "configure:12298: checking for _hypot declaration" >&5
12298   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
12299     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
12300   echo $ac_n "(cached) $ac_c" 1>&6
12301 else
12302   
12303       
12304       ac_ext=C
12305 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12306 ac_cpp='$CXXCPP $CPPFLAGS'
12307 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12308 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12309 cross_compiling=$ac_cv_prog_cxx_cross
12310
12311       cat > conftest.$ac_ext <<EOF
12312 #line 12313 "configure"
12313 #include "confdefs.h"
12314 #include <math.h>
12315 int main() {
12316  _hypot(0, 0);
12317 ; return 0; }
12318 EOF
12319 if { (eval echo configure:12320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12320   rm -rf conftest*
12321   glibcpp_cv_func__hypot_use=yes
12322 else
12323   echo "configure: failed program was:" >&5
12324   cat conftest.$ac_ext >&5
12325   rm -rf conftest*
12326   glibcpp_cv_func__hypot_use=no
12327 fi
12328 rm -f conftest*
12329       ac_ext=c
12330 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12331 ac_cpp='$CPP $CPPFLAGS'
12332 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12333 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12334 cross_compiling=$ac_cv_prog_cc_cross
12335
12336     
12337 fi
12338
12339   fi
12340   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
12341
12342     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
12343       for ac_func in _hypot
12344 do
12345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12346 echo "configure:12347: checking for $ac_func" >&5
12347 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12348   echo $ac_n "(cached) $ac_c" 1>&6
12349 else
12350   cat > conftest.$ac_ext <<EOF
12351 #line 12352 "configure"
12352 #include "confdefs.h"
12353 /* System header to define __stub macros and hopefully few prototypes,
12354     which can conflict with char $ac_func(); below.  */
12355 #include <assert.h>
12356 /* Override any gcc2 internal prototype to avoid an error.  */
12357 /* We use char because int might match the return type of a gcc2
12358     builtin and then its argument prototype would still apply.  */
12359 char $ac_func();
12360
12361 int main() {
12362
12363 /* The GNU C library defines this for functions which it implements
12364     to always fail with ENOSYS.  Some functions are actually named
12365     something starting with __ and the normal name is an alias.  */
12366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12367 choke me
12368 #else
12369 $ac_func();
12370 #endif
12371
12372 ; return 0; }
12373 EOF
12374 if { (eval echo configure:12375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12375   rm -rf conftest*
12376   eval "ac_cv_func_$ac_func=yes"
12377 else
12378   echo "configure: failed program was:" >&5
12379   cat conftest.$ac_ext >&5
12380   rm -rf conftest*
12381   eval "ac_cv_func_$ac_func=no"
12382 fi
12383 rm -f conftest*
12384 fi
12385
12386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12387   echo "$ac_t""yes" 1>&6
12388     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12389   cat >> confdefs.h <<EOF
12390 #define $ac_tr_func 1
12391 EOF
12392  
12393 else
12394   echo "$ac_t""no" 1>&6
12395 fi
12396 done
12397     
12398     fi
12399   fi
12400
12401
12402     
12403   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12404 echo "configure:12405: checking for float trig functions" >&5
12405   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
12406   echo $ac_n "(cached) $ac_c" 1>&6
12407 else
12408   
12409     
12410     ac_ext=C
12411 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12412 ac_cpp='$CXXCPP $CPPFLAGS'
12413 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12414 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12415 cross_compiling=$ac_cv_prog_cxx_cross
12416
12417     cat > conftest.$ac_ext <<EOF
12418 #line 12419 "configure"
12419 #include "confdefs.h"
12420 #include <math.h>
12421 int main() {
12422  `for x in acosf asinf atanf \
12423                                           cosf sinf tanf \
12424                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
12425 ; return 0; }
12426 EOF
12427 if { (eval echo configure:12428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12428   rm -rf conftest*
12429   glibcpp_cv_func_float_trig_use=yes
12430 else
12431   echo "configure: failed program was:" >&5
12432   cat conftest.$ac_ext >&5
12433   rm -rf conftest*
12434   glibcpp_cv_func_float_trig_use=no
12435 fi
12436 rm -f conftest*
12437     ac_ext=c
12438 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12439 ac_cpp='$CPP $CPPFLAGS'
12440 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12441 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12442 cross_compiling=$ac_cv_prog_cc_cross
12443
12444 fi
12445
12446   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
12447   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
12448     for ac_func in acosf asinf atanf \
12449                                           cosf sinf tanf \
12450                                           coshf sinhf tanhf
12451 do
12452 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12453 echo "configure:12454: checking for $ac_func" >&5
12454 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12455   echo $ac_n "(cached) $ac_c" 1>&6
12456 else
12457   cat > conftest.$ac_ext <<EOF
12458 #line 12459 "configure"
12459 #include "confdefs.h"
12460 /* System header to define __stub macros and hopefully few prototypes,
12461     which can conflict with char $ac_func(); below.  */
12462 #include <assert.h>
12463 /* Override any gcc2 internal prototype to avoid an error.  */
12464 /* We use char because int might match the return type of a gcc2
12465     builtin and then its argument prototype would still apply.  */
12466 char $ac_func();
12467
12468 int main() {
12469
12470 /* The GNU C library defines this for functions which it implements
12471     to always fail with ENOSYS.  Some functions are actually named
12472     something starting with __ and the normal name is an alias.  */
12473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12474 choke me
12475 #else
12476 $ac_func();
12477 #endif
12478
12479 ; return 0; }
12480 EOF
12481 if { (eval echo configure:12482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12482   rm -rf conftest*
12483   eval "ac_cv_func_$ac_func=yes"
12484 else
12485   echo "configure: failed program was:" >&5
12486   cat conftest.$ac_ext >&5
12487   rm -rf conftest*
12488   eval "ac_cv_func_$ac_func=no"
12489 fi
12490 rm -f conftest*
12491 fi
12492
12493 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12494   echo "$ac_t""yes" 1>&6
12495     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12496   cat >> confdefs.h <<EOF
12497 #define $ac_tr_func 1
12498 EOF
12499  
12500 else
12501   echo "$ac_t""no" 1>&6
12502 fi
12503 done
12504
12505   fi
12506
12507   
12508   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12509 echo "configure:12510: checking for float round functions" >&5
12510   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
12511   echo $ac_n "(cached) $ac_c" 1>&6
12512 else
12513   
12514     
12515     ac_ext=C
12516 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12517 ac_cpp='$CXXCPP $CPPFLAGS'
12518 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12519 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12520 cross_compiling=$ac_cv_prog_cxx_cross
12521
12522     cat > conftest.$ac_ext <<EOF
12523 #line 12524 "configure"
12524 #include "confdefs.h"
12525 #include <math.h>
12526 int main() {
12527  `for x in ceilf floorf; do echo "$x (0);"; done` 
12528 ; return 0; }
12529 EOF
12530 if { (eval echo configure:12531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12531   rm -rf conftest*
12532   glibcpp_cv_func_float_round_use=yes
12533 else
12534   echo "configure: failed program was:" >&5
12535   cat conftest.$ac_ext >&5
12536   rm -rf conftest*
12537   glibcpp_cv_func_float_round_use=no
12538 fi
12539 rm -f conftest*
12540     ac_ext=c
12541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12542 ac_cpp='$CPP $CPPFLAGS'
12543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12545 cross_compiling=$ac_cv_prog_cc_cross
12546
12547 fi
12548
12549   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
12550   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
12551     for ac_func in ceilf floorf
12552 do
12553 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12554 echo "configure:12555: checking for $ac_func" >&5
12555 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12556   echo $ac_n "(cached) $ac_c" 1>&6
12557 else
12558   cat > conftest.$ac_ext <<EOF
12559 #line 12560 "configure"
12560 #include "confdefs.h"
12561 /* System header to define __stub macros and hopefully few prototypes,
12562     which can conflict with char $ac_func(); below.  */
12563 #include <assert.h>
12564 /* Override any gcc2 internal prototype to avoid an error.  */
12565 /* We use char because int might match the return type of a gcc2
12566     builtin and then its argument prototype would still apply.  */
12567 char $ac_func();
12568
12569 int main() {
12570
12571 /* The GNU C library defines this for functions which it implements
12572     to always fail with ENOSYS.  Some functions are actually named
12573     something starting with __ and the normal name is an alias.  */
12574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12575 choke me
12576 #else
12577 $ac_func();
12578 #endif
12579
12580 ; return 0; }
12581 EOF
12582 if { (eval echo configure:12583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12583   rm -rf conftest*
12584   eval "ac_cv_func_$ac_func=yes"
12585 else
12586   echo "configure: failed program was:" >&5
12587   cat conftest.$ac_ext >&5
12588   rm -rf conftest*
12589   eval "ac_cv_func_$ac_func=no"
12590 fi
12591 rm -f conftest*
12592 fi
12593
12594 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12595   echo "$ac_t""yes" 1>&6
12596     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12597   cat >> confdefs.h <<EOF
12598 #define $ac_tr_func 1
12599 EOF
12600  
12601 else
12602   echo "$ac_t""no" 1>&6
12603 fi
12604 done
12605
12606   fi
12607
12608   
12609   
12610   echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12611 echo "configure:12612: checking for expf declaration" >&5
12612   if test x${glibcpp_cv_func_expf_use+set} != xset; then
12613     if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
12614   echo $ac_n "(cached) $ac_c" 1>&6
12615 else
12616   
12617       
12618       ac_ext=C
12619 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12620 ac_cpp='$CXXCPP $CPPFLAGS'
12621 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12622 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12623 cross_compiling=$ac_cv_prog_cxx_cross
12624
12625       cat > conftest.$ac_ext <<EOF
12626 #line 12627 "configure"
12627 #include "confdefs.h"
12628 #include <math.h>
12629                       #ifdef HAVE_IEEEFP_H
12630                       #include <ieeefp.h>
12631                       #endif
12632                      
12633 int main() {
12634  expf(0);
12635 ; return 0; }
12636 EOF
12637 if { (eval echo configure:12638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12638   rm -rf conftest*
12639   glibcpp_cv_func_expf_use=yes
12640 else
12641   echo "configure: failed program was:" >&5
12642   cat conftest.$ac_ext >&5
12643   rm -rf conftest*
12644   glibcpp_cv_func_expf_use=no
12645 fi
12646 rm -f conftest*
12647       ac_ext=c
12648 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12649 ac_cpp='$CPP $CPPFLAGS'
12650 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12651 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12652 cross_compiling=$ac_cv_prog_cc_cross
12653
12654     
12655 fi
12656
12657   fi
12658   echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
12659
12660   if test x$glibcpp_cv_func_expf_use = x"yes"; then
12661     for ac_func in expf
12662 do
12663 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12664 echo "configure:12665: checking for $ac_func" >&5
12665 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12666   echo $ac_n "(cached) $ac_c" 1>&6
12667 else
12668   cat > conftest.$ac_ext <<EOF
12669 #line 12670 "configure"
12670 #include "confdefs.h"
12671 /* System header to define __stub macros and hopefully few prototypes,
12672     which can conflict with char $ac_func(); below.  */
12673 #include <assert.h>
12674 /* Override any gcc2 internal prototype to avoid an error.  */
12675 /* We use char because int might match the return type of a gcc2
12676     builtin and then its argument prototype would still apply.  */
12677 char $ac_func();
12678
12679 int main() {
12680
12681 /* The GNU C library defines this for functions which it implements
12682     to always fail with ENOSYS.  Some functions are actually named
12683     something starting with __ and the normal name is an alias.  */
12684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12685 choke me
12686 #else
12687 $ac_func();
12688 #endif
12689
12690 ; return 0; }
12691 EOF
12692 if { (eval echo configure:12693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12693   rm -rf conftest*
12694   eval "ac_cv_func_$ac_func=yes"
12695 else
12696   echo "configure: failed program was:" >&5
12697   cat conftest.$ac_ext >&5
12698   rm -rf conftest*
12699   eval "ac_cv_func_$ac_func=no"
12700 fi
12701 rm -f conftest*
12702 fi
12703
12704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12705   echo "$ac_t""yes" 1>&6
12706     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12707   cat >> confdefs.h <<EOF
12708 #define $ac_tr_func 1
12709 EOF
12710  
12711 else
12712   echo "$ac_t""no" 1>&6
12713 fi
12714 done
12715     
12716   else
12717     
12718   echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12719 echo "configure:12720: checking for _expf declaration" >&5
12720   if test x${glibcpp_cv_func__expf_use+set} != xset; then
12721     if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12722   echo $ac_n "(cached) $ac_c" 1>&6
12723 else
12724   
12725       
12726       ac_ext=C
12727 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12728 ac_cpp='$CXXCPP $CPPFLAGS'
12729 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12730 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12731 cross_compiling=$ac_cv_prog_cxx_cross
12732
12733       cat > conftest.$ac_ext <<EOF
12734 #line 12735 "configure"
12735 #include "confdefs.h"
12736 #include <math.h>
12737                       #ifdef HAVE_IEEEFP_H
12738                       #include <ieeefp.h>
12739                       #endif
12740                      
12741 int main() {
12742  _expf(0);
12743 ; return 0; }
12744 EOF
12745 if { (eval echo configure:12746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12746   rm -rf conftest*
12747   glibcpp_cv_func__expf_use=yes
12748 else
12749   echo "configure: failed program was:" >&5
12750   cat conftest.$ac_ext >&5
12751   rm -rf conftest*
12752   glibcpp_cv_func__expf_use=no
12753 fi
12754 rm -f conftest*
12755       ac_ext=c
12756 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12757 ac_cpp='$CPP $CPPFLAGS'
12758 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12759 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12760 cross_compiling=$ac_cv_prog_cc_cross
12761
12762     
12763 fi
12764
12765   fi
12766   echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
12767
12768     if test x$glibcpp_cv_func__expf_use = x"yes"; then
12769       for ac_func in _expf
12770 do
12771 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12772 echo "configure:12773: checking for $ac_func" >&5
12773 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12774   echo $ac_n "(cached) $ac_c" 1>&6
12775 else
12776   cat > conftest.$ac_ext <<EOF
12777 #line 12778 "configure"
12778 #include "confdefs.h"
12779 /* System header to define __stub macros and hopefully few prototypes,
12780     which can conflict with char $ac_func(); below.  */
12781 #include <assert.h>
12782 /* Override any gcc2 internal prototype to avoid an error.  */
12783 /* We use char because int might match the return type of a gcc2
12784     builtin and then its argument prototype would still apply.  */
12785 char $ac_func();
12786
12787 int main() {
12788
12789 /* The GNU C library defines this for functions which it implements
12790     to always fail with ENOSYS.  Some functions are actually named
12791     something starting with __ and the normal name is an alias.  */
12792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12793 choke me
12794 #else
12795 $ac_func();
12796 #endif
12797
12798 ; return 0; }
12799 EOF
12800 if { (eval echo configure:12801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12801   rm -rf conftest*
12802   eval "ac_cv_func_$ac_func=yes"
12803 else
12804   echo "configure: failed program was:" >&5
12805   cat conftest.$ac_ext >&5
12806   rm -rf conftest*
12807   eval "ac_cv_func_$ac_func=no"
12808 fi
12809 rm -f conftest*
12810 fi
12811
12812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12813   echo "$ac_t""yes" 1>&6
12814     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12815   cat >> confdefs.h <<EOF
12816 #define $ac_tr_func 1
12817 EOF
12818  
12819 else
12820   echo "$ac_t""no" 1>&6
12821 fi
12822 done
12823     
12824     fi
12825   fi
12826
12827   
12828   
12829   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
12830 echo "configure:12831: checking for isnanf declaration" >&5
12831   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
12832     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
12833   echo $ac_n "(cached) $ac_c" 1>&6
12834 else
12835   
12836       
12837       ac_ext=C
12838 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12839 ac_cpp='$CXXCPP $CPPFLAGS'
12840 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12841 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12842 cross_compiling=$ac_cv_prog_cxx_cross
12843
12844       cat > conftest.$ac_ext <<EOF
12845 #line 12846 "configure"
12846 #include "confdefs.h"
12847 #include <math.h>
12848                       #ifdef HAVE_IEEEFP_H
12849                       #include <ieeefp.h>
12850                       #endif
12851                      
12852 int main() {
12853  isnanf(0);
12854 ; return 0; }
12855 EOF
12856 if { (eval echo configure:12857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12857   rm -rf conftest*
12858   glibcpp_cv_func_isnanf_use=yes
12859 else
12860   echo "configure: failed program was:" >&5
12861   cat conftest.$ac_ext >&5
12862   rm -rf conftest*
12863   glibcpp_cv_func_isnanf_use=no
12864 fi
12865 rm -f conftest*
12866       ac_ext=c
12867 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12868 ac_cpp='$CPP $CPPFLAGS'
12869 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12870 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12871 cross_compiling=$ac_cv_prog_cc_cross
12872
12873     
12874 fi
12875
12876   fi
12877   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
12878
12879   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
12880     for ac_func in isnanf
12881 do
12882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12883 echo "configure:12884: checking for $ac_func" >&5
12884 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12885   echo $ac_n "(cached) $ac_c" 1>&6
12886 else
12887   cat > conftest.$ac_ext <<EOF
12888 #line 12889 "configure"
12889 #include "confdefs.h"
12890 /* System header to define __stub macros and hopefully few prototypes,
12891     which can conflict with char $ac_func(); below.  */
12892 #include <assert.h>
12893 /* Override any gcc2 internal prototype to avoid an error.  */
12894 /* We use char because int might match the return type of a gcc2
12895     builtin and then its argument prototype would still apply.  */
12896 char $ac_func();
12897
12898 int main() {
12899
12900 /* The GNU C library defines this for functions which it implements
12901     to always fail with ENOSYS.  Some functions are actually named
12902     something starting with __ and the normal name is an alias.  */
12903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12904 choke me
12905 #else
12906 $ac_func();
12907 #endif
12908
12909 ; return 0; }
12910 EOF
12911 if { (eval echo configure:12912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12912   rm -rf conftest*
12913   eval "ac_cv_func_$ac_func=yes"
12914 else
12915   echo "configure: failed program was:" >&5
12916   cat conftest.$ac_ext >&5
12917   rm -rf conftest*
12918   eval "ac_cv_func_$ac_func=no"
12919 fi
12920 rm -f conftest*
12921 fi
12922
12923 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12924   echo "$ac_t""yes" 1>&6
12925     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12926   cat >> confdefs.h <<EOF
12927 #define $ac_tr_func 1
12928 EOF
12929  
12930 else
12931   echo "$ac_t""no" 1>&6
12932 fi
12933 done
12934     
12935   else
12936     
12937   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
12938 echo "configure:12939: checking for _isnanf declaration" >&5
12939   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
12940     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
12941   echo $ac_n "(cached) $ac_c" 1>&6
12942 else
12943   
12944       
12945       ac_ext=C
12946 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12947 ac_cpp='$CXXCPP $CPPFLAGS'
12948 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12949 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12950 cross_compiling=$ac_cv_prog_cxx_cross
12951
12952       cat > conftest.$ac_ext <<EOF
12953 #line 12954 "configure"
12954 #include "confdefs.h"
12955 #include <math.h>
12956                       #ifdef HAVE_IEEEFP_H
12957                       #include <ieeefp.h>
12958                       #endif
12959                      
12960 int main() {
12961  _isnanf(0);
12962 ; return 0; }
12963 EOF
12964 if { (eval echo configure:12965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12965   rm -rf conftest*
12966   glibcpp_cv_func__isnanf_use=yes
12967 else
12968   echo "configure: failed program was:" >&5
12969   cat conftest.$ac_ext >&5
12970   rm -rf conftest*
12971   glibcpp_cv_func__isnanf_use=no
12972 fi
12973 rm -f conftest*
12974       ac_ext=c
12975 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12976 ac_cpp='$CPP $CPPFLAGS'
12977 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12978 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12979 cross_compiling=$ac_cv_prog_cc_cross
12980
12981     
12982 fi
12983
12984   fi
12985   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
12986
12987     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
12988       for ac_func in _isnanf
12989 do
12990 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12991 echo "configure:12992: checking for $ac_func" >&5
12992 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12993   echo $ac_n "(cached) $ac_c" 1>&6
12994 else
12995   cat > conftest.$ac_ext <<EOF
12996 #line 12997 "configure"
12997 #include "confdefs.h"
12998 /* System header to define __stub macros and hopefully few prototypes,
12999     which can conflict with char $ac_func(); below.  */
13000 #include <assert.h>
13001 /* Override any gcc2 internal prototype to avoid an error.  */
13002 /* We use char because int might match the return type of a gcc2
13003     builtin and then its argument prototype would still apply.  */
13004 char $ac_func();
13005
13006 int main() {
13007
13008 /* The GNU C library defines this for functions which it implements
13009     to always fail with ENOSYS.  Some functions are actually named
13010     something starting with __ and the normal name is an alias.  */
13011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13012 choke me
13013 #else
13014 $ac_func();
13015 #endif
13016
13017 ; return 0; }
13018 EOF
13019 if { (eval echo configure:13020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13020   rm -rf conftest*
13021   eval "ac_cv_func_$ac_func=yes"
13022 else
13023   echo "configure: failed program was:" >&5
13024   cat conftest.$ac_ext >&5
13025   rm -rf conftest*
13026   eval "ac_cv_func_$ac_func=no"
13027 fi
13028 rm -f conftest*
13029 fi
13030
13031 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13032   echo "$ac_t""yes" 1>&6
13033     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13034   cat >> confdefs.h <<EOF
13035 #define $ac_tr_func 1
13036 EOF
13037  
13038 else
13039   echo "$ac_t""no" 1>&6
13040 fi
13041 done
13042     
13043     fi
13044   fi
13045
13046   
13047   
13048   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13049 echo "configure:13050: checking for isinff declaration" >&5
13050   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
13051     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
13052   echo $ac_n "(cached) $ac_c" 1>&6
13053 else
13054   
13055       
13056       ac_ext=C
13057 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13058 ac_cpp='$CXXCPP $CPPFLAGS'
13059 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13060 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13061 cross_compiling=$ac_cv_prog_cxx_cross
13062
13063       cat > conftest.$ac_ext <<EOF
13064 #line 13065 "configure"
13065 #include "confdefs.h"
13066 #include <math.h>
13067                       #ifdef HAVE_IEEEFP_H
13068                       #include <ieeefp.h>
13069                       #endif
13070                      
13071 int main() {
13072  isinff(0);
13073 ; return 0; }
13074 EOF
13075 if { (eval echo configure:13076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13076   rm -rf conftest*
13077   glibcpp_cv_func_isinff_use=yes
13078 else
13079   echo "configure: failed program was:" >&5
13080   cat conftest.$ac_ext >&5
13081   rm -rf conftest*
13082   glibcpp_cv_func_isinff_use=no
13083 fi
13084 rm -f conftest*
13085       ac_ext=c
13086 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13087 ac_cpp='$CPP $CPPFLAGS'
13088 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13089 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13090 cross_compiling=$ac_cv_prog_cc_cross
13091
13092     
13093 fi
13094
13095   fi
13096   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
13097
13098   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
13099     for ac_func in isinff
13100 do
13101 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13102 echo "configure:13103: checking for $ac_func" >&5
13103 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13104   echo $ac_n "(cached) $ac_c" 1>&6
13105 else
13106   cat > conftest.$ac_ext <<EOF
13107 #line 13108 "configure"
13108 #include "confdefs.h"
13109 /* System header to define __stub macros and hopefully few prototypes,
13110     which can conflict with char $ac_func(); below.  */
13111 #include <assert.h>
13112 /* Override any gcc2 internal prototype to avoid an error.  */
13113 /* We use char because int might match the return type of a gcc2
13114     builtin and then its argument prototype would still apply.  */
13115 char $ac_func();
13116
13117 int main() {
13118
13119 /* The GNU C library defines this for functions which it implements
13120     to always fail with ENOSYS.  Some functions are actually named
13121     something starting with __ and the normal name is an alias.  */
13122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13123 choke me
13124 #else
13125 $ac_func();
13126 #endif
13127
13128 ; return 0; }
13129 EOF
13130 if { (eval echo configure:13131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13131   rm -rf conftest*
13132   eval "ac_cv_func_$ac_func=yes"
13133 else
13134   echo "configure: failed program was:" >&5
13135   cat conftest.$ac_ext >&5
13136   rm -rf conftest*
13137   eval "ac_cv_func_$ac_func=no"
13138 fi
13139 rm -f conftest*
13140 fi
13141
13142 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13143   echo "$ac_t""yes" 1>&6
13144     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13145   cat >> confdefs.h <<EOF
13146 #define $ac_tr_func 1
13147 EOF
13148  
13149 else
13150   echo "$ac_t""no" 1>&6
13151 fi
13152 done
13153     
13154   else
13155     
13156   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13157 echo "configure:13158: checking for _isinff declaration" >&5
13158   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
13159     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
13160   echo $ac_n "(cached) $ac_c" 1>&6
13161 else
13162   
13163       
13164       ac_ext=C
13165 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13166 ac_cpp='$CXXCPP $CPPFLAGS'
13167 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13168 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13169 cross_compiling=$ac_cv_prog_cxx_cross
13170
13171       cat > conftest.$ac_ext <<EOF
13172 #line 13173 "configure"
13173 #include "confdefs.h"
13174 #include <math.h>
13175                       #ifdef HAVE_IEEEFP_H
13176                       #include <ieeefp.h>
13177                       #endif
13178                      
13179 int main() {
13180  _isinff(0);
13181 ; return 0; }
13182 EOF
13183 if { (eval echo configure:13184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13184   rm -rf conftest*
13185   glibcpp_cv_func__isinff_use=yes
13186 else
13187   echo "configure: failed program was:" >&5
13188   cat conftest.$ac_ext >&5
13189   rm -rf conftest*
13190   glibcpp_cv_func__isinff_use=no
13191 fi
13192 rm -f conftest*
13193       ac_ext=c
13194 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13195 ac_cpp='$CPP $CPPFLAGS'
13196 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13197 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13198 cross_compiling=$ac_cv_prog_cc_cross
13199
13200     
13201 fi
13202
13203   fi
13204   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
13205
13206     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
13207       for ac_func in _isinff
13208 do
13209 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13210 echo "configure:13211: checking for $ac_func" >&5
13211 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13212   echo $ac_n "(cached) $ac_c" 1>&6
13213 else
13214   cat > conftest.$ac_ext <<EOF
13215 #line 13216 "configure"
13216 #include "confdefs.h"
13217 /* System header to define __stub macros and hopefully few prototypes,
13218     which can conflict with char $ac_func(); below.  */
13219 #include <assert.h>
13220 /* Override any gcc2 internal prototype to avoid an error.  */
13221 /* We use char because int might match the return type of a gcc2
13222     builtin and then its argument prototype would still apply.  */
13223 char $ac_func();
13224
13225 int main() {
13226
13227 /* The GNU C library defines this for functions which it implements
13228     to always fail with ENOSYS.  Some functions are actually named
13229     something starting with __ and the normal name is an alias.  */
13230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13231 choke me
13232 #else
13233 $ac_func();
13234 #endif
13235
13236 ; return 0; }
13237 EOF
13238 if { (eval echo configure:13239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13239   rm -rf conftest*
13240   eval "ac_cv_func_$ac_func=yes"
13241 else
13242   echo "configure: failed program was:" >&5
13243   cat conftest.$ac_ext >&5
13244   rm -rf conftest*
13245   eval "ac_cv_func_$ac_func=no"
13246 fi
13247 rm -f conftest*
13248 fi
13249
13250 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13251   echo "$ac_t""yes" 1>&6
13252     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13253   cat >> confdefs.h <<EOF
13254 #define $ac_tr_func 1
13255 EOF
13256  
13257 else
13258   echo "$ac_t""no" 1>&6
13259 fi
13260 done
13261     
13262     fi
13263   fi
13264
13265   
13266   
13267   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13268 echo "configure:13269: checking for atan2f declaration" >&5
13269   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
13270     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
13271   echo $ac_n "(cached) $ac_c" 1>&6
13272 else
13273   
13274       
13275       ac_ext=C
13276 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13277 ac_cpp='$CXXCPP $CPPFLAGS'
13278 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13279 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13280 cross_compiling=$ac_cv_prog_cxx_cross
13281
13282       cat > conftest.$ac_ext <<EOF
13283 #line 13284 "configure"
13284 #include "confdefs.h"
13285 #include <math.h>
13286 int main() {
13287  atan2f(0, 0);
13288 ; return 0; }
13289 EOF
13290 if { (eval echo configure:13291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13291   rm -rf conftest*
13292   glibcpp_cv_func_atan2f_use=yes
13293 else
13294   echo "configure: failed program was:" >&5
13295   cat conftest.$ac_ext >&5
13296   rm -rf conftest*
13297   glibcpp_cv_func_atan2f_use=no
13298 fi
13299 rm -f conftest*
13300       ac_ext=c
13301 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13302 ac_cpp='$CPP $CPPFLAGS'
13303 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13304 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13305 cross_compiling=$ac_cv_prog_cc_cross
13306
13307     
13308 fi
13309
13310   fi
13311   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
13312
13313   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
13314     for ac_func in atan2f
13315 do
13316 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13317 echo "configure:13318: checking for $ac_func" >&5
13318 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13319   echo $ac_n "(cached) $ac_c" 1>&6
13320 else
13321   cat > conftest.$ac_ext <<EOF
13322 #line 13323 "configure"
13323 #include "confdefs.h"
13324 /* System header to define __stub macros and hopefully few prototypes,
13325     which can conflict with char $ac_func(); below.  */
13326 #include <assert.h>
13327 /* Override any gcc2 internal prototype to avoid an error.  */
13328 /* We use char because int might match the return type of a gcc2
13329     builtin and then its argument prototype would still apply.  */
13330 char $ac_func();
13331
13332 int main() {
13333
13334 /* The GNU C library defines this for functions which it implements
13335     to always fail with ENOSYS.  Some functions are actually named
13336     something starting with __ and the normal name is an alias.  */
13337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13338 choke me
13339 #else
13340 $ac_func();
13341 #endif
13342
13343 ; return 0; }
13344 EOF
13345 if { (eval echo configure:13346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13346   rm -rf conftest*
13347   eval "ac_cv_func_$ac_func=yes"
13348 else
13349   echo "configure: failed program was:" >&5
13350   cat conftest.$ac_ext >&5
13351   rm -rf conftest*
13352   eval "ac_cv_func_$ac_func=no"
13353 fi
13354 rm -f conftest*
13355 fi
13356
13357 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13358   echo "$ac_t""yes" 1>&6
13359     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13360   cat >> confdefs.h <<EOF
13361 #define $ac_tr_func 1
13362 EOF
13363  
13364 else
13365   echo "$ac_t""no" 1>&6
13366 fi
13367 done
13368     
13369   else
13370     
13371   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13372 echo "configure:13373: checking for _atan2f declaration" >&5
13373   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
13374     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
13375   echo $ac_n "(cached) $ac_c" 1>&6
13376 else
13377   
13378       
13379       ac_ext=C
13380 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13381 ac_cpp='$CXXCPP $CPPFLAGS'
13382 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13383 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13384 cross_compiling=$ac_cv_prog_cxx_cross
13385
13386       cat > conftest.$ac_ext <<EOF
13387 #line 13388 "configure"
13388 #include "confdefs.h"
13389 #include <math.h>
13390 int main() {
13391  _atan2f(0, 0);
13392 ; return 0; }
13393 EOF
13394 if { (eval echo configure:13395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13395   rm -rf conftest*
13396   glibcpp_cv_func__atan2f_use=yes
13397 else
13398   echo "configure: failed program was:" >&5
13399   cat conftest.$ac_ext >&5
13400   rm -rf conftest*
13401   glibcpp_cv_func__atan2f_use=no
13402 fi
13403 rm -f conftest*
13404       ac_ext=c
13405 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13406 ac_cpp='$CPP $CPPFLAGS'
13407 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13408 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13409 cross_compiling=$ac_cv_prog_cc_cross
13410
13411     
13412 fi
13413
13414   fi
13415   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
13416
13417     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
13418       for ac_func in _atan2f
13419 do
13420 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13421 echo "configure:13422: checking for $ac_func" >&5
13422 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13423   echo $ac_n "(cached) $ac_c" 1>&6
13424 else
13425   cat > conftest.$ac_ext <<EOF
13426 #line 13427 "configure"
13427 #include "confdefs.h"
13428 /* System header to define __stub macros and hopefully few prototypes,
13429     which can conflict with char $ac_func(); below.  */
13430 #include <assert.h>
13431 /* Override any gcc2 internal prototype to avoid an error.  */
13432 /* We use char because int might match the return type of a gcc2
13433     builtin and then its argument prototype would still apply.  */
13434 char $ac_func();
13435
13436 int main() {
13437
13438 /* The GNU C library defines this for functions which it implements
13439     to always fail with ENOSYS.  Some functions are actually named
13440     something starting with __ and the normal name is an alias.  */
13441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13442 choke me
13443 #else
13444 $ac_func();
13445 #endif
13446
13447 ; return 0; }
13448 EOF
13449 if { (eval echo configure:13450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13450   rm -rf conftest*
13451   eval "ac_cv_func_$ac_func=yes"
13452 else
13453   echo "configure: failed program was:" >&5
13454   cat conftest.$ac_ext >&5
13455   rm -rf conftest*
13456   eval "ac_cv_func_$ac_func=no"
13457 fi
13458 rm -f conftest*
13459 fi
13460
13461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13462   echo "$ac_t""yes" 1>&6
13463     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13464   cat >> confdefs.h <<EOF
13465 #define $ac_tr_func 1
13466 EOF
13467  
13468 else
13469   echo "$ac_t""no" 1>&6
13470 fi
13471 done
13472     
13473     fi
13474   fi
13475
13476   
13477   
13478   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13479 echo "configure:13480: checking for fabsf declaration" >&5
13480   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
13481     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
13482   echo $ac_n "(cached) $ac_c" 1>&6
13483 else
13484   
13485       
13486       ac_ext=C
13487 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13488 ac_cpp='$CXXCPP $CPPFLAGS'
13489 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13490 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13491 cross_compiling=$ac_cv_prog_cxx_cross
13492
13493       cat > conftest.$ac_ext <<EOF
13494 #line 13495 "configure"
13495 #include "confdefs.h"
13496 #include <math.h>
13497                       #ifdef HAVE_IEEEFP_H
13498                       #include <ieeefp.h>
13499                       #endif
13500                      
13501 int main() {
13502  fabsf(0);
13503 ; return 0; }
13504 EOF
13505 if { (eval echo configure:13506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13506   rm -rf conftest*
13507   glibcpp_cv_func_fabsf_use=yes
13508 else
13509   echo "configure: failed program was:" >&5
13510   cat conftest.$ac_ext >&5
13511   rm -rf conftest*
13512   glibcpp_cv_func_fabsf_use=no
13513 fi
13514 rm -f conftest*
13515       ac_ext=c
13516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13517 ac_cpp='$CPP $CPPFLAGS'
13518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13519 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13520 cross_compiling=$ac_cv_prog_cc_cross
13521
13522     
13523 fi
13524
13525   fi
13526   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
13527
13528   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
13529     for ac_func in fabsf
13530 do
13531 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13532 echo "configure:13533: checking for $ac_func" >&5
13533 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13534   echo $ac_n "(cached) $ac_c" 1>&6
13535 else
13536   cat > conftest.$ac_ext <<EOF
13537 #line 13538 "configure"
13538 #include "confdefs.h"
13539 /* System header to define __stub macros and hopefully few prototypes,
13540     which can conflict with char $ac_func(); below.  */
13541 #include <assert.h>
13542 /* Override any gcc2 internal prototype to avoid an error.  */
13543 /* We use char because int might match the return type of a gcc2
13544     builtin and then its argument prototype would still apply.  */
13545 char $ac_func();
13546
13547 int main() {
13548
13549 /* The GNU C library defines this for functions which it implements
13550     to always fail with ENOSYS.  Some functions are actually named
13551     something starting with __ and the normal name is an alias.  */
13552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13553 choke me
13554 #else
13555 $ac_func();
13556 #endif
13557
13558 ; return 0; }
13559 EOF
13560 if { (eval echo configure:13561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13561   rm -rf conftest*
13562   eval "ac_cv_func_$ac_func=yes"
13563 else
13564   echo "configure: failed program was:" >&5
13565   cat conftest.$ac_ext >&5
13566   rm -rf conftest*
13567   eval "ac_cv_func_$ac_func=no"
13568 fi
13569 rm -f conftest*
13570 fi
13571
13572 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13573   echo "$ac_t""yes" 1>&6
13574     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13575   cat >> confdefs.h <<EOF
13576 #define $ac_tr_func 1
13577 EOF
13578  
13579 else
13580   echo "$ac_t""no" 1>&6
13581 fi
13582 done
13583     
13584   else
13585     
13586   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13587 echo "configure:13588: checking for _fabsf declaration" >&5
13588   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
13589     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
13590   echo $ac_n "(cached) $ac_c" 1>&6
13591 else
13592   
13593       
13594       ac_ext=C
13595 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13596 ac_cpp='$CXXCPP $CPPFLAGS'
13597 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13598 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13599 cross_compiling=$ac_cv_prog_cxx_cross
13600
13601       cat > conftest.$ac_ext <<EOF
13602 #line 13603 "configure"
13603 #include "confdefs.h"
13604 #include <math.h>
13605                       #ifdef HAVE_IEEEFP_H
13606                       #include <ieeefp.h>
13607                       #endif
13608                      
13609 int main() {
13610  _fabsf(0);
13611 ; return 0; }
13612 EOF
13613 if { (eval echo configure:13614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13614   rm -rf conftest*
13615   glibcpp_cv_func__fabsf_use=yes
13616 else
13617   echo "configure: failed program was:" >&5
13618   cat conftest.$ac_ext >&5
13619   rm -rf conftest*
13620   glibcpp_cv_func__fabsf_use=no
13621 fi
13622 rm -f conftest*
13623       ac_ext=c
13624 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13625 ac_cpp='$CPP $CPPFLAGS'
13626 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13627 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13628 cross_compiling=$ac_cv_prog_cc_cross
13629
13630     
13631 fi
13632
13633   fi
13634   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
13635
13636     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
13637       for ac_func in _fabsf
13638 do
13639 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13640 echo "configure:13641: checking for $ac_func" >&5
13641 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13642   echo $ac_n "(cached) $ac_c" 1>&6
13643 else
13644   cat > conftest.$ac_ext <<EOF
13645 #line 13646 "configure"
13646 #include "confdefs.h"
13647 /* System header to define __stub macros and hopefully few prototypes,
13648     which can conflict with char $ac_func(); below.  */
13649 #include <assert.h>
13650 /* Override any gcc2 internal prototype to avoid an error.  */
13651 /* We use char because int might match the return type of a gcc2
13652     builtin and then its argument prototype would still apply.  */
13653 char $ac_func();
13654
13655 int main() {
13656
13657 /* The GNU C library defines this for functions which it implements
13658     to always fail with ENOSYS.  Some functions are actually named
13659     something starting with __ and the normal name is an alias.  */
13660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13661 choke me
13662 #else
13663 $ac_func();
13664 #endif
13665
13666 ; return 0; }
13667 EOF
13668 if { (eval echo configure:13669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13669   rm -rf conftest*
13670   eval "ac_cv_func_$ac_func=yes"
13671 else
13672   echo "configure: failed program was:" >&5
13673   cat conftest.$ac_ext >&5
13674   rm -rf conftest*
13675   eval "ac_cv_func_$ac_func=no"
13676 fi
13677 rm -f conftest*
13678 fi
13679
13680 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13681   echo "$ac_t""yes" 1>&6
13682     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13683   cat >> confdefs.h <<EOF
13684 #define $ac_tr_func 1
13685 EOF
13686  
13687 else
13688   echo "$ac_t""no" 1>&6
13689 fi
13690 done
13691     
13692     fi
13693   fi
13694
13695   
13696   
13697   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13698 echo "configure:13699: checking for fmodf declaration" >&5
13699   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
13700     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
13701   echo $ac_n "(cached) $ac_c" 1>&6
13702 else
13703   
13704       
13705       ac_ext=C
13706 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13707 ac_cpp='$CXXCPP $CPPFLAGS'
13708 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13709 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13710 cross_compiling=$ac_cv_prog_cxx_cross
13711
13712       cat > conftest.$ac_ext <<EOF
13713 #line 13714 "configure"
13714 #include "confdefs.h"
13715 #include <math.h>
13716 int main() {
13717  fmodf(0, 0);
13718 ; return 0; }
13719 EOF
13720 if { (eval echo configure:13721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13721   rm -rf conftest*
13722   glibcpp_cv_func_fmodf_use=yes
13723 else
13724   echo "configure: failed program was:" >&5
13725   cat conftest.$ac_ext >&5
13726   rm -rf conftest*
13727   glibcpp_cv_func_fmodf_use=no
13728 fi
13729 rm -f conftest*
13730       ac_ext=c
13731 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13732 ac_cpp='$CPP $CPPFLAGS'
13733 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13734 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13735 cross_compiling=$ac_cv_prog_cc_cross
13736
13737     
13738 fi
13739
13740   fi
13741   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
13742
13743   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
13744     for ac_func in fmodf
13745 do
13746 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13747 echo "configure:13748: checking for $ac_func" >&5
13748 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13749   echo $ac_n "(cached) $ac_c" 1>&6
13750 else
13751   cat > conftest.$ac_ext <<EOF
13752 #line 13753 "configure"
13753 #include "confdefs.h"
13754 /* System header to define __stub macros and hopefully few prototypes,
13755     which can conflict with char $ac_func(); below.  */
13756 #include <assert.h>
13757 /* Override any gcc2 internal prototype to avoid an error.  */
13758 /* We use char because int might match the return type of a gcc2
13759     builtin and then its argument prototype would still apply.  */
13760 char $ac_func();
13761
13762 int main() {
13763
13764 /* The GNU C library defines this for functions which it implements
13765     to always fail with ENOSYS.  Some functions are actually named
13766     something starting with __ and the normal name is an alias.  */
13767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13768 choke me
13769 #else
13770 $ac_func();
13771 #endif
13772
13773 ; return 0; }
13774 EOF
13775 if { (eval echo configure:13776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13776   rm -rf conftest*
13777   eval "ac_cv_func_$ac_func=yes"
13778 else
13779   echo "configure: failed program was:" >&5
13780   cat conftest.$ac_ext >&5
13781   rm -rf conftest*
13782   eval "ac_cv_func_$ac_func=no"
13783 fi
13784 rm -f conftest*
13785 fi
13786
13787 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13788   echo "$ac_t""yes" 1>&6
13789     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13790   cat >> confdefs.h <<EOF
13791 #define $ac_tr_func 1
13792 EOF
13793  
13794 else
13795   echo "$ac_t""no" 1>&6
13796 fi
13797 done
13798     
13799   else
13800     
13801   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
13802 echo "configure:13803: checking for _fmodf declaration" >&5
13803   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
13804     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
13805   echo $ac_n "(cached) $ac_c" 1>&6
13806 else
13807   
13808       
13809       ac_ext=C
13810 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13811 ac_cpp='$CXXCPP $CPPFLAGS'
13812 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13813 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13814 cross_compiling=$ac_cv_prog_cxx_cross
13815
13816       cat > conftest.$ac_ext <<EOF
13817 #line 13818 "configure"
13818 #include "confdefs.h"
13819 #include <math.h>
13820 int main() {
13821  _fmodf(0, 0);
13822 ; return 0; }
13823 EOF
13824 if { (eval echo configure:13825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13825   rm -rf conftest*
13826   glibcpp_cv_func__fmodf_use=yes
13827 else
13828   echo "configure: failed program was:" >&5
13829   cat conftest.$ac_ext >&5
13830   rm -rf conftest*
13831   glibcpp_cv_func__fmodf_use=no
13832 fi
13833 rm -f conftest*
13834       ac_ext=c
13835 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13836 ac_cpp='$CPP $CPPFLAGS'
13837 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13838 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13839 cross_compiling=$ac_cv_prog_cc_cross
13840
13841     
13842 fi
13843
13844   fi
13845   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
13846
13847     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
13848       for ac_func in _fmodf
13849 do
13850 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13851 echo "configure:13852: checking for $ac_func" >&5
13852 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13853   echo $ac_n "(cached) $ac_c" 1>&6
13854 else
13855   cat > conftest.$ac_ext <<EOF
13856 #line 13857 "configure"
13857 #include "confdefs.h"
13858 /* System header to define __stub macros and hopefully few prototypes,
13859     which can conflict with char $ac_func(); below.  */
13860 #include <assert.h>
13861 /* Override any gcc2 internal prototype to avoid an error.  */
13862 /* We use char because int might match the return type of a gcc2
13863     builtin and then its argument prototype would still apply.  */
13864 char $ac_func();
13865
13866 int main() {
13867
13868 /* The GNU C library defines this for functions which it implements
13869     to always fail with ENOSYS.  Some functions are actually named
13870     something starting with __ and the normal name is an alias.  */
13871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13872 choke me
13873 #else
13874 $ac_func();
13875 #endif
13876
13877 ; return 0; }
13878 EOF
13879 if { (eval echo configure:13880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13880   rm -rf conftest*
13881   eval "ac_cv_func_$ac_func=yes"
13882 else
13883   echo "configure: failed program was:" >&5
13884   cat conftest.$ac_ext >&5
13885   rm -rf conftest*
13886   eval "ac_cv_func_$ac_func=no"
13887 fi
13888 rm -f conftest*
13889 fi
13890
13891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13892   echo "$ac_t""yes" 1>&6
13893     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13894   cat >> confdefs.h <<EOF
13895 #define $ac_tr_func 1
13896 EOF
13897  
13898 else
13899   echo "$ac_t""no" 1>&6
13900 fi
13901 done
13902     
13903     fi
13904   fi
13905
13906   
13907   
13908   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
13909 echo "configure:13910: checking for frexpf declaration" >&5
13910   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
13911     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
13912   echo $ac_n "(cached) $ac_c" 1>&6
13913 else
13914   
13915       
13916       ac_ext=C
13917 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13918 ac_cpp='$CXXCPP $CPPFLAGS'
13919 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13920 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13921 cross_compiling=$ac_cv_prog_cxx_cross
13922
13923       cat > conftest.$ac_ext <<EOF
13924 #line 13925 "configure"
13925 #include "confdefs.h"
13926 #include <math.h>
13927 int main() {
13928  frexpf(0, 0);
13929 ; return 0; }
13930 EOF
13931 if { (eval echo configure:13932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13932   rm -rf conftest*
13933   glibcpp_cv_func_frexpf_use=yes
13934 else
13935   echo "configure: failed program was:" >&5
13936   cat conftest.$ac_ext >&5
13937   rm -rf conftest*
13938   glibcpp_cv_func_frexpf_use=no
13939 fi
13940 rm -f conftest*
13941       ac_ext=c
13942 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13943 ac_cpp='$CPP $CPPFLAGS'
13944 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13945 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13946 cross_compiling=$ac_cv_prog_cc_cross
13947
13948     
13949 fi
13950
13951   fi
13952   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
13953
13954   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
13955     for ac_func in frexpf
13956 do
13957 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13958 echo "configure:13959: checking for $ac_func" >&5
13959 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13960   echo $ac_n "(cached) $ac_c" 1>&6
13961 else
13962   cat > conftest.$ac_ext <<EOF
13963 #line 13964 "configure"
13964 #include "confdefs.h"
13965 /* System header to define __stub macros and hopefully few prototypes,
13966     which can conflict with char $ac_func(); below.  */
13967 #include <assert.h>
13968 /* Override any gcc2 internal prototype to avoid an error.  */
13969 /* We use char because int might match the return type of a gcc2
13970     builtin and then its argument prototype would still apply.  */
13971 char $ac_func();
13972
13973 int main() {
13974
13975 /* The GNU C library defines this for functions which it implements
13976     to always fail with ENOSYS.  Some functions are actually named
13977     something starting with __ and the normal name is an alias.  */
13978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13979 choke me
13980 #else
13981 $ac_func();
13982 #endif
13983
13984 ; return 0; }
13985 EOF
13986 if { (eval echo configure:13987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13987   rm -rf conftest*
13988   eval "ac_cv_func_$ac_func=yes"
13989 else
13990   echo "configure: failed program was:" >&5
13991   cat conftest.$ac_ext >&5
13992   rm -rf conftest*
13993   eval "ac_cv_func_$ac_func=no"
13994 fi
13995 rm -f conftest*
13996 fi
13997
13998 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13999   echo "$ac_t""yes" 1>&6
14000     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14001   cat >> confdefs.h <<EOF
14002 #define $ac_tr_func 1
14003 EOF
14004  
14005 else
14006   echo "$ac_t""no" 1>&6
14007 fi
14008 done
14009     
14010   else
14011     
14012   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14013 echo "configure:14014: checking for _frexpf declaration" >&5
14014   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
14015     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
14016   echo $ac_n "(cached) $ac_c" 1>&6
14017 else
14018   
14019       
14020       ac_ext=C
14021 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14022 ac_cpp='$CXXCPP $CPPFLAGS'
14023 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14024 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14025 cross_compiling=$ac_cv_prog_cxx_cross
14026
14027       cat > conftest.$ac_ext <<EOF
14028 #line 14029 "configure"
14029 #include "confdefs.h"
14030 #include <math.h>
14031 int main() {
14032  _frexpf(0, 0);
14033 ; return 0; }
14034 EOF
14035 if { (eval echo configure:14036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14036   rm -rf conftest*
14037   glibcpp_cv_func__frexpf_use=yes
14038 else
14039   echo "configure: failed program was:" >&5
14040   cat conftest.$ac_ext >&5
14041   rm -rf conftest*
14042   glibcpp_cv_func__frexpf_use=no
14043 fi
14044 rm -f conftest*
14045       ac_ext=c
14046 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14047 ac_cpp='$CPP $CPPFLAGS'
14048 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14049 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14050 cross_compiling=$ac_cv_prog_cc_cross
14051
14052     
14053 fi
14054
14055   fi
14056   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
14057
14058     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
14059       for ac_func in _frexpf
14060 do
14061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14062 echo "configure:14063: checking for $ac_func" >&5
14063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14064   echo $ac_n "(cached) $ac_c" 1>&6
14065 else
14066   cat > conftest.$ac_ext <<EOF
14067 #line 14068 "configure"
14068 #include "confdefs.h"
14069 /* System header to define __stub macros and hopefully few prototypes,
14070     which can conflict with char $ac_func(); below.  */
14071 #include <assert.h>
14072 /* Override any gcc2 internal prototype to avoid an error.  */
14073 /* We use char because int might match the return type of a gcc2
14074     builtin and then its argument prototype would still apply.  */
14075 char $ac_func();
14076
14077 int main() {
14078
14079 /* The GNU C library defines this for functions which it implements
14080     to always fail with ENOSYS.  Some functions are actually named
14081     something starting with __ and the normal name is an alias.  */
14082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14083 choke me
14084 #else
14085 $ac_func();
14086 #endif
14087
14088 ; return 0; }
14089 EOF
14090 if { (eval echo configure:14091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14091   rm -rf conftest*
14092   eval "ac_cv_func_$ac_func=yes"
14093 else
14094   echo "configure: failed program was:" >&5
14095   cat conftest.$ac_ext >&5
14096   rm -rf conftest*
14097   eval "ac_cv_func_$ac_func=no"
14098 fi
14099 rm -f conftest*
14100 fi
14101
14102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14103   echo "$ac_t""yes" 1>&6
14104     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14105   cat >> confdefs.h <<EOF
14106 #define $ac_tr_func 1
14107 EOF
14108  
14109 else
14110   echo "$ac_t""no" 1>&6
14111 fi
14112 done
14113     
14114     fi
14115   fi
14116
14117   
14118   
14119   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14120 echo "configure:14121: checking for hypotf declaration" >&5
14121   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
14122     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
14123   echo $ac_n "(cached) $ac_c" 1>&6
14124 else
14125   
14126       
14127       ac_ext=C
14128 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14129 ac_cpp='$CXXCPP $CPPFLAGS'
14130 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14131 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14132 cross_compiling=$ac_cv_prog_cxx_cross
14133
14134       cat > conftest.$ac_ext <<EOF
14135 #line 14136 "configure"
14136 #include "confdefs.h"
14137 #include <math.h>
14138 int main() {
14139  hypotf(0, 0);
14140 ; return 0; }
14141 EOF
14142 if { (eval echo configure:14143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14143   rm -rf conftest*
14144   glibcpp_cv_func_hypotf_use=yes
14145 else
14146   echo "configure: failed program was:" >&5
14147   cat conftest.$ac_ext >&5
14148   rm -rf conftest*
14149   glibcpp_cv_func_hypotf_use=no
14150 fi
14151 rm -f conftest*
14152       ac_ext=c
14153 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14154 ac_cpp='$CPP $CPPFLAGS'
14155 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14156 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14157 cross_compiling=$ac_cv_prog_cc_cross
14158
14159     
14160 fi
14161
14162   fi
14163   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
14164
14165   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
14166     for ac_func in hypotf
14167 do
14168 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14169 echo "configure:14170: checking for $ac_func" >&5
14170 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14171   echo $ac_n "(cached) $ac_c" 1>&6
14172 else
14173   cat > conftest.$ac_ext <<EOF
14174 #line 14175 "configure"
14175 #include "confdefs.h"
14176 /* System header to define __stub macros and hopefully few prototypes,
14177     which can conflict with char $ac_func(); below.  */
14178 #include <assert.h>
14179 /* Override any gcc2 internal prototype to avoid an error.  */
14180 /* We use char because int might match the return type of a gcc2
14181     builtin and then its argument prototype would still apply.  */
14182 char $ac_func();
14183
14184 int main() {
14185
14186 /* The GNU C library defines this for functions which it implements
14187     to always fail with ENOSYS.  Some functions are actually named
14188     something starting with __ and the normal name is an alias.  */
14189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14190 choke me
14191 #else
14192 $ac_func();
14193 #endif
14194
14195 ; return 0; }
14196 EOF
14197 if { (eval echo configure:14198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14198   rm -rf conftest*
14199   eval "ac_cv_func_$ac_func=yes"
14200 else
14201   echo "configure: failed program was:" >&5
14202   cat conftest.$ac_ext >&5
14203   rm -rf conftest*
14204   eval "ac_cv_func_$ac_func=no"
14205 fi
14206 rm -f conftest*
14207 fi
14208
14209 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14210   echo "$ac_t""yes" 1>&6
14211     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14212   cat >> confdefs.h <<EOF
14213 #define $ac_tr_func 1
14214 EOF
14215  
14216 else
14217   echo "$ac_t""no" 1>&6
14218 fi
14219 done
14220     
14221   else
14222     
14223   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14224 echo "configure:14225: checking for _hypotf declaration" >&5
14225   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
14226     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
14227   echo $ac_n "(cached) $ac_c" 1>&6
14228 else
14229   
14230       
14231       ac_ext=C
14232 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14233 ac_cpp='$CXXCPP $CPPFLAGS'
14234 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14235 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14236 cross_compiling=$ac_cv_prog_cxx_cross
14237
14238       cat > conftest.$ac_ext <<EOF
14239 #line 14240 "configure"
14240 #include "confdefs.h"
14241 #include <math.h>
14242 int main() {
14243  _hypotf(0, 0);
14244 ; return 0; }
14245 EOF
14246 if { (eval echo configure:14247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14247   rm -rf conftest*
14248   glibcpp_cv_func__hypotf_use=yes
14249 else
14250   echo "configure: failed program was:" >&5
14251   cat conftest.$ac_ext >&5
14252   rm -rf conftest*
14253   glibcpp_cv_func__hypotf_use=no
14254 fi
14255 rm -f conftest*
14256       ac_ext=c
14257 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14258 ac_cpp='$CPP $CPPFLAGS'
14259 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14260 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14261 cross_compiling=$ac_cv_prog_cc_cross
14262
14263     
14264 fi
14265
14266   fi
14267   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
14268
14269     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
14270       for ac_func in _hypotf
14271 do
14272 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14273 echo "configure:14274: checking for $ac_func" >&5
14274 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14275   echo $ac_n "(cached) $ac_c" 1>&6
14276 else
14277   cat > conftest.$ac_ext <<EOF
14278 #line 14279 "configure"
14279 #include "confdefs.h"
14280 /* System header to define __stub macros and hopefully few prototypes,
14281     which can conflict with char $ac_func(); below.  */
14282 #include <assert.h>
14283 /* Override any gcc2 internal prototype to avoid an error.  */
14284 /* We use char because int might match the return type of a gcc2
14285     builtin and then its argument prototype would still apply.  */
14286 char $ac_func();
14287
14288 int main() {
14289
14290 /* The GNU C library defines this for functions which it implements
14291     to always fail with ENOSYS.  Some functions are actually named
14292     something starting with __ and the normal name is an alias.  */
14293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14294 choke me
14295 #else
14296 $ac_func();
14297 #endif
14298
14299 ; return 0; }
14300 EOF
14301 if { (eval echo configure:14302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14302   rm -rf conftest*
14303   eval "ac_cv_func_$ac_func=yes"
14304 else
14305   echo "configure: failed program was:" >&5
14306   cat conftest.$ac_ext >&5
14307   rm -rf conftest*
14308   eval "ac_cv_func_$ac_func=no"
14309 fi
14310 rm -f conftest*
14311 fi
14312
14313 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14314   echo "$ac_t""yes" 1>&6
14315     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14316   cat >> confdefs.h <<EOF
14317 #define $ac_tr_func 1
14318 EOF
14319  
14320 else
14321   echo "$ac_t""no" 1>&6
14322 fi
14323 done
14324     
14325     fi
14326   fi
14327
14328   
14329   
14330   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14331 echo "configure:14332: checking for ldexpf declaration" >&5
14332   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
14333     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
14334   echo $ac_n "(cached) $ac_c" 1>&6
14335 else
14336   
14337       
14338       ac_ext=C
14339 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14340 ac_cpp='$CXXCPP $CPPFLAGS'
14341 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14342 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14343 cross_compiling=$ac_cv_prog_cxx_cross
14344
14345       cat > conftest.$ac_ext <<EOF
14346 #line 14347 "configure"
14347 #include "confdefs.h"
14348 #include <math.h>
14349 int main() {
14350  ldexpf(0, 0);
14351 ; return 0; }
14352 EOF
14353 if { (eval echo configure:14354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14354   rm -rf conftest*
14355   glibcpp_cv_func_ldexpf_use=yes
14356 else
14357   echo "configure: failed program was:" >&5
14358   cat conftest.$ac_ext >&5
14359   rm -rf conftest*
14360   glibcpp_cv_func_ldexpf_use=no
14361 fi
14362 rm -f conftest*
14363       ac_ext=c
14364 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14365 ac_cpp='$CPP $CPPFLAGS'
14366 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14367 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14368 cross_compiling=$ac_cv_prog_cc_cross
14369
14370     
14371 fi
14372
14373   fi
14374   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
14375
14376   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
14377     for ac_func in ldexpf
14378 do
14379 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14380 echo "configure:14381: checking for $ac_func" >&5
14381 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14382   echo $ac_n "(cached) $ac_c" 1>&6
14383 else
14384   cat > conftest.$ac_ext <<EOF
14385 #line 14386 "configure"
14386 #include "confdefs.h"
14387 /* System header to define __stub macros and hopefully few prototypes,
14388     which can conflict with char $ac_func(); below.  */
14389 #include <assert.h>
14390 /* Override any gcc2 internal prototype to avoid an error.  */
14391 /* We use char because int might match the return type of a gcc2
14392     builtin and then its argument prototype would still apply.  */
14393 char $ac_func();
14394
14395 int main() {
14396
14397 /* The GNU C library defines this for functions which it implements
14398     to always fail with ENOSYS.  Some functions are actually named
14399     something starting with __ and the normal name is an alias.  */
14400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14401 choke me
14402 #else
14403 $ac_func();
14404 #endif
14405
14406 ; return 0; }
14407 EOF
14408 if { (eval echo configure:14409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14409   rm -rf conftest*
14410   eval "ac_cv_func_$ac_func=yes"
14411 else
14412   echo "configure: failed program was:" >&5
14413   cat conftest.$ac_ext >&5
14414   rm -rf conftest*
14415   eval "ac_cv_func_$ac_func=no"
14416 fi
14417 rm -f conftest*
14418 fi
14419
14420 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14421   echo "$ac_t""yes" 1>&6
14422     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14423   cat >> confdefs.h <<EOF
14424 #define $ac_tr_func 1
14425 EOF
14426  
14427 else
14428   echo "$ac_t""no" 1>&6
14429 fi
14430 done
14431     
14432   else
14433     
14434   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14435 echo "configure:14436: checking for _ldexpf declaration" >&5
14436   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
14437     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
14438   echo $ac_n "(cached) $ac_c" 1>&6
14439 else
14440   
14441       
14442       ac_ext=C
14443 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14444 ac_cpp='$CXXCPP $CPPFLAGS'
14445 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14446 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14447 cross_compiling=$ac_cv_prog_cxx_cross
14448
14449       cat > conftest.$ac_ext <<EOF
14450 #line 14451 "configure"
14451 #include "confdefs.h"
14452 #include <math.h>
14453 int main() {
14454  _ldexpf(0, 0);
14455 ; return 0; }
14456 EOF
14457 if { (eval echo configure:14458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14458   rm -rf conftest*
14459   glibcpp_cv_func__ldexpf_use=yes
14460 else
14461   echo "configure: failed program was:" >&5
14462   cat conftest.$ac_ext >&5
14463   rm -rf conftest*
14464   glibcpp_cv_func__ldexpf_use=no
14465 fi
14466 rm -f conftest*
14467       ac_ext=c
14468 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14469 ac_cpp='$CPP $CPPFLAGS'
14470 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14471 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14472 cross_compiling=$ac_cv_prog_cc_cross
14473
14474     
14475 fi
14476
14477   fi
14478   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
14479
14480     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
14481       for ac_func in _ldexpf
14482 do
14483 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14484 echo "configure:14485: checking for $ac_func" >&5
14485 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14486   echo $ac_n "(cached) $ac_c" 1>&6
14487 else
14488   cat > conftest.$ac_ext <<EOF
14489 #line 14490 "configure"
14490 #include "confdefs.h"
14491 /* System header to define __stub macros and hopefully few prototypes,
14492     which can conflict with char $ac_func(); below.  */
14493 #include <assert.h>
14494 /* Override any gcc2 internal prototype to avoid an error.  */
14495 /* We use char because int might match the return type of a gcc2
14496     builtin and then its argument prototype would still apply.  */
14497 char $ac_func();
14498
14499 int main() {
14500
14501 /* The GNU C library defines this for functions which it implements
14502     to always fail with ENOSYS.  Some functions are actually named
14503     something starting with __ and the normal name is an alias.  */
14504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14505 choke me
14506 #else
14507 $ac_func();
14508 #endif
14509
14510 ; return 0; }
14511 EOF
14512 if { (eval echo configure:14513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14513   rm -rf conftest*
14514   eval "ac_cv_func_$ac_func=yes"
14515 else
14516   echo "configure: failed program was:" >&5
14517   cat conftest.$ac_ext >&5
14518   rm -rf conftest*
14519   eval "ac_cv_func_$ac_func=no"
14520 fi
14521 rm -f conftest*
14522 fi
14523
14524 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14525   echo "$ac_t""yes" 1>&6
14526     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14527   cat >> confdefs.h <<EOF
14528 #define $ac_tr_func 1
14529 EOF
14530  
14531 else
14532   echo "$ac_t""no" 1>&6
14533 fi
14534 done
14535     
14536     fi
14537   fi
14538
14539   
14540   
14541   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14542 echo "configure:14543: checking for logf declaration" >&5
14543   if test x${glibcpp_cv_func_logf_use+set} != xset; then
14544     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
14545   echo $ac_n "(cached) $ac_c" 1>&6
14546 else
14547   
14548       
14549       ac_ext=C
14550 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14551 ac_cpp='$CXXCPP $CPPFLAGS'
14552 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14553 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14554 cross_compiling=$ac_cv_prog_cxx_cross
14555
14556       cat > conftest.$ac_ext <<EOF
14557 #line 14558 "configure"
14558 #include "confdefs.h"
14559 #include <math.h>
14560                       #ifdef HAVE_IEEEFP_H
14561                       #include <ieeefp.h>
14562                       #endif
14563                      
14564 int main() {
14565  logf(0);
14566 ; return 0; }
14567 EOF
14568 if { (eval echo configure:14569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14569   rm -rf conftest*
14570   glibcpp_cv_func_logf_use=yes
14571 else
14572   echo "configure: failed program was:" >&5
14573   cat conftest.$ac_ext >&5
14574   rm -rf conftest*
14575   glibcpp_cv_func_logf_use=no
14576 fi
14577 rm -f conftest*
14578       ac_ext=c
14579 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14580 ac_cpp='$CPP $CPPFLAGS'
14581 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14582 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14583 cross_compiling=$ac_cv_prog_cc_cross
14584
14585     
14586 fi
14587
14588   fi
14589   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
14590
14591   if test x$glibcpp_cv_func_logf_use = x"yes"; then
14592     for ac_func in logf
14593 do
14594 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14595 echo "configure:14596: checking for $ac_func" >&5
14596 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14597   echo $ac_n "(cached) $ac_c" 1>&6
14598 else
14599   cat > conftest.$ac_ext <<EOF
14600 #line 14601 "configure"
14601 #include "confdefs.h"
14602 /* System header to define __stub macros and hopefully few prototypes,
14603     which can conflict with char $ac_func(); below.  */
14604 #include <assert.h>
14605 /* Override any gcc2 internal prototype to avoid an error.  */
14606 /* We use char because int might match the return type of a gcc2
14607     builtin and then its argument prototype would still apply.  */
14608 char $ac_func();
14609
14610 int main() {
14611
14612 /* The GNU C library defines this for functions which it implements
14613     to always fail with ENOSYS.  Some functions are actually named
14614     something starting with __ and the normal name is an alias.  */
14615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14616 choke me
14617 #else
14618 $ac_func();
14619 #endif
14620
14621 ; return 0; }
14622 EOF
14623 if { (eval echo configure:14624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14624   rm -rf conftest*
14625   eval "ac_cv_func_$ac_func=yes"
14626 else
14627   echo "configure: failed program was:" >&5
14628   cat conftest.$ac_ext >&5
14629   rm -rf conftest*
14630   eval "ac_cv_func_$ac_func=no"
14631 fi
14632 rm -f conftest*
14633 fi
14634
14635 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14636   echo "$ac_t""yes" 1>&6
14637     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14638   cat >> confdefs.h <<EOF
14639 #define $ac_tr_func 1
14640 EOF
14641  
14642 else
14643   echo "$ac_t""no" 1>&6
14644 fi
14645 done
14646     
14647   else
14648     
14649   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14650 echo "configure:14651: checking for _logf declaration" >&5
14651   if test x${glibcpp_cv_func__logf_use+set} != xset; then
14652     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
14653   echo $ac_n "(cached) $ac_c" 1>&6
14654 else
14655   
14656       
14657       ac_ext=C
14658 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14659 ac_cpp='$CXXCPP $CPPFLAGS'
14660 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14661 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14662 cross_compiling=$ac_cv_prog_cxx_cross
14663
14664       cat > conftest.$ac_ext <<EOF
14665 #line 14666 "configure"
14666 #include "confdefs.h"
14667 #include <math.h>
14668                       #ifdef HAVE_IEEEFP_H
14669                       #include <ieeefp.h>
14670                       #endif
14671                      
14672 int main() {
14673  _logf(0);
14674 ; return 0; }
14675 EOF
14676 if { (eval echo configure:14677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14677   rm -rf conftest*
14678   glibcpp_cv_func__logf_use=yes
14679 else
14680   echo "configure: failed program was:" >&5
14681   cat conftest.$ac_ext >&5
14682   rm -rf conftest*
14683   glibcpp_cv_func__logf_use=no
14684 fi
14685 rm -f conftest*
14686       ac_ext=c
14687 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14688 ac_cpp='$CPP $CPPFLAGS'
14689 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14690 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14691 cross_compiling=$ac_cv_prog_cc_cross
14692
14693     
14694 fi
14695
14696   fi
14697   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
14698
14699     if test x$glibcpp_cv_func__logf_use = x"yes"; then
14700       for ac_func in _logf
14701 do
14702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14703 echo "configure:14704: checking for $ac_func" >&5
14704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14705   echo $ac_n "(cached) $ac_c" 1>&6
14706 else
14707   cat > conftest.$ac_ext <<EOF
14708 #line 14709 "configure"
14709 #include "confdefs.h"
14710 /* System header to define __stub macros and hopefully few prototypes,
14711     which can conflict with char $ac_func(); below.  */
14712 #include <assert.h>
14713 /* Override any gcc2 internal prototype to avoid an error.  */
14714 /* We use char because int might match the return type of a gcc2
14715     builtin and then its argument prototype would still apply.  */
14716 char $ac_func();
14717
14718 int main() {
14719
14720 /* The GNU C library defines this for functions which it implements
14721     to always fail with ENOSYS.  Some functions are actually named
14722     something starting with __ and the normal name is an alias.  */
14723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14724 choke me
14725 #else
14726 $ac_func();
14727 #endif
14728
14729 ; return 0; }
14730 EOF
14731 if { (eval echo configure:14732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14732   rm -rf conftest*
14733   eval "ac_cv_func_$ac_func=yes"
14734 else
14735   echo "configure: failed program was:" >&5
14736   cat conftest.$ac_ext >&5
14737   rm -rf conftest*
14738   eval "ac_cv_func_$ac_func=no"
14739 fi
14740 rm -f conftest*
14741 fi
14742
14743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14744   echo "$ac_t""yes" 1>&6
14745     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14746   cat >> confdefs.h <<EOF
14747 #define $ac_tr_func 1
14748 EOF
14749  
14750 else
14751   echo "$ac_t""no" 1>&6
14752 fi
14753 done
14754     
14755     fi
14756   fi
14757
14758   
14759   
14760   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
14761 echo "configure:14762: checking for log10f declaration" >&5
14762   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
14763     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
14764   echo $ac_n "(cached) $ac_c" 1>&6
14765 else
14766   
14767       
14768       ac_ext=C
14769 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14770 ac_cpp='$CXXCPP $CPPFLAGS'
14771 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14772 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14773 cross_compiling=$ac_cv_prog_cxx_cross
14774
14775       cat > conftest.$ac_ext <<EOF
14776 #line 14777 "configure"
14777 #include "confdefs.h"
14778 #include <math.h>
14779                       #ifdef HAVE_IEEEFP_H
14780                       #include <ieeefp.h>
14781                       #endif
14782                      
14783 int main() {
14784  log10f(0);
14785 ; return 0; }
14786 EOF
14787 if { (eval echo configure:14788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14788   rm -rf conftest*
14789   glibcpp_cv_func_log10f_use=yes
14790 else
14791   echo "configure: failed program was:" >&5
14792   cat conftest.$ac_ext >&5
14793   rm -rf conftest*
14794   glibcpp_cv_func_log10f_use=no
14795 fi
14796 rm -f conftest*
14797       ac_ext=c
14798 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14799 ac_cpp='$CPP $CPPFLAGS'
14800 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14801 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14802 cross_compiling=$ac_cv_prog_cc_cross
14803
14804     
14805 fi
14806
14807   fi
14808   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
14809
14810   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
14811     for ac_func in log10f
14812 do
14813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14814 echo "configure:14815: checking for $ac_func" >&5
14815 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14816   echo $ac_n "(cached) $ac_c" 1>&6
14817 else
14818   cat > conftest.$ac_ext <<EOF
14819 #line 14820 "configure"
14820 #include "confdefs.h"
14821 /* System header to define __stub macros and hopefully few prototypes,
14822     which can conflict with char $ac_func(); below.  */
14823 #include <assert.h>
14824 /* Override any gcc2 internal prototype to avoid an error.  */
14825 /* We use char because int might match the return type of a gcc2
14826     builtin and then its argument prototype would still apply.  */
14827 char $ac_func();
14828
14829 int main() {
14830
14831 /* The GNU C library defines this for functions which it implements
14832     to always fail with ENOSYS.  Some functions are actually named
14833     something starting with __ and the normal name is an alias.  */
14834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14835 choke me
14836 #else
14837 $ac_func();
14838 #endif
14839
14840 ; return 0; }
14841 EOF
14842 if { (eval echo configure:14843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14843   rm -rf conftest*
14844   eval "ac_cv_func_$ac_func=yes"
14845 else
14846   echo "configure: failed program was:" >&5
14847   cat conftest.$ac_ext >&5
14848   rm -rf conftest*
14849   eval "ac_cv_func_$ac_func=no"
14850 fi
14851 rm -f conftest*
14852 fi
14853
14854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14855   echo "$ac_t""yes" 1>&6
14856     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14857   cat >> confdefs.h <<EOF
14858 #define $ac_tr_func 1
14859 EOF
14860  
14861 else
14862   echo "$ac_t""no" 1>&6
14863 fi
14864 done
14865     
14866   else
14867     
14868   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
14869 echo "configure:14870: checking for _log10f declaration" >&5
14870   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
14871     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
14872   echo $ac_n "(cached) $ac_c" 1>&6
14873 else
14874   
14875       
14876       ac_ext=C
14877 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14878 ac_cpp='$CXXCPP $CPPFLAGS'
14879 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14880 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14881 cross_compiling=$ac_cv_prog_cxx_cross
14882
14883       cat > conftest.$ac_ext <<EOF
14884 #line 14885 "configure"
14885 #include "confdefs.h"
14886 #include <math.h>
14887                       #ifdef HAVE_IEEEFP_H
14888                       #include <ieeefp.h>
14889                       #endif
14890                      
14891 int main() {
14892  _log10f(0);
14893 ; return 0; }
14894 EOF
14895 if { (eval echo configure:14896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14896   rm -rf conftest*
14897   glibcpp_cv_func__log10f_use=yes
14898 else
14899   echo "configure: failed program was:" >&5
14900   cat conftest.$ac_ext >&5
14901   rm -rf conftest*
14902   glibcpp_cv_func__log10f_use=no
14903 fi
14904 rm -f conftest*
14905       ac_ext=c
14906 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14907 ac_cpp='$CPP $CPPFLAGS'
14908 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14909 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14910 cross_compiling=$ac_cv_prog_cc_cross
14911
14912     
14913 fi
14914
14915   fi
14916   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
14917
14918     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
14919       for ac_func in _log10f
14920 do
14921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14922 echo "configure:14923: checking for $ac_func" >&5
14923 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14924   echo $ac_n "(cached) $ac_c" 1>&6
14925 else
14926   cat > conftest.$ac_ext <<EOF
14927 #line 14928 "configure"
14928 #include "confdefs.h"
14929 /* System header to define __stub macros and hopefully few prototypes,
14930     which can conflict with char $ac_func(); below.  */
14931 #include <assert.h>
14932 /* Override any gcc2 internal prototype to avoid an error.  */
14933 /* We use char because int might match the return type of a gcc2
14934     builtin and then its argument prototype would still apply.  */
14935 char $ac_func();
14936
14937 int main() {
14938
14939 /* The GNU C library defines this for functions which it implements
14940     to always fail with ENOSYS.  Some functions are actually named
14941     something starting with __ and the normal name is an alias.  */
14942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14943 choke me
14944 #else
14945 $ac_func();
14946 #endif
14947
14948 ; return 0; }
14949 EOF
14950 if { (eval echo configure:14951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14951   rm -rf conftest*
14952   eval "ac_cv_func_$ac_func=yes"
14953 else
14954   echo "configure: failed program was:" >&5
14955   cat conftest.$ac_ext >&5
14956   rm -rf conftest*
14957   eval "ac_cv_func_$ac_func=no"
14958 fi
14959 rm -f conftest*
14960 fi
14961
14962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14963   echo "$ac_t""yes" 1>&6
14964     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14965   cat >> confdefs.h <<EOF
14966 #define $ac_tr_func 1
14967 EOF
14968  
14969 else
14970   echo "$ac_t""no" 1>&6
14971 fi
14972 done
14973     
14974     fi
14975   fi
14976
14977   
14978   
14979   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
14980 echo "configure:14981: checking for modff declaration" >&5
14981   if test x${glibcpp_cv_func_modff_use+set} != xset; then
14982     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
14983   echo $ac_n "(cached) $ac_c" 1>&6
14984 else
14985   
14986       
14987       ac_ext=C
14988 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14989 ac_cpp='$CXXCPP $CPPFLAGS'
14990 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14991 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14992 cross_compiling=$ac_cv_prog_cxx_cross
14993
14994       cat > conftest.$ac_ext <<EOF
14995 #line 14996 "configure"
14996 #include "confdefs.h"
14997 #include <math.h>
14998 int main() {
14999  modff(0, 0);
15000 ; return 0; }
15001 EOF
15002 if { (eval echo configure:15003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15003   rm -rf conftest*
15004   glibcpp_cv_func_modff_use=yes
15005 else
15006   echo "configure: failed program was:" >&5
15007   cat conftest.$ac_ext >&5
15008   rm -rf conftest*
15009   glibcpp_cv_func_modff_use=no
15010 fi
15011 rm -f conftest*
15012       ac_ext=c
15013 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15014 ac_cpp='$CPP $CPPFLAGS'
15015 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15016 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15017 cross_compiling=$ac_cv_prog_cc_cross
15018
15019     
15020 fi
15021
15022   fi
15023   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
15024
15025   if test x$glibcpp_cv_func_modff_use = x"yes"; then
15026     for ac_func in modff
15027 do
15028 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15029 echo "configure:15030: checking for $ac_func" >&5
15030 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15031   echo $ac_n "(cached) $ac_c" 1>&6
15032 else
15033   cat > conftest.$ac_ext <<EOF
15034 #line 15035 "configure"
15035 #include "confdefs.h"
15036 /* System header to define __stub macros and hopefully few prototypes,
15037     which can conflict with char $ac_func(); below.  */
15038 #include <assert.h>
15039 /* Override any gcc2 internal prototype to avoid an error.  */
15040 /* We use char because int might match the return type of a gcc2
15041     builtin and then its argument prototype would still apply.  */
15042 char $ac_func();
15043
15044 int main() {
15045
15046 /* The GNU C library defines this for functions which it implements
15047     to always fail with ENOSYS.  Some functions are actually named
15048     something starting with __ and the normal name is an alias.  */
15049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15050 choke me
15051 #else
15052 $ac_func();
15053 #endif
15054
15055 ; return 0; }
15056 EOF
15057 if { (eval echo configure:15058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15058   rm -rf conftest*
15059   eval "ac_cv_func_$ac_func=yes"
15060 else
15061   echo "configure: failed program was:" >&5
15062   cat conftest.$ac_ext >&5
15063   rm -rf conftest*
15064   eval "ac_cv_func_$ac_func=no"
15065 fi
15066 rm -f conftest*
15067 fi
15068
15069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15070   echo "$ac_t""yes" 1>&6
15071     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15072   cat >> confdefs.h <<EOF
15073 #define $ac_tr_func 1
15074 EOF
15075  
15076 else
15077   echo "$ac_t""no" 1>&6
15078 fi
15079 done
15080     
15081   else
15082     
15083   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15084 echo "configure:15085: checking for _modff declaration" >&5
15085   if test x${glibcpp_cv_func__modff_use+set} != xset; then
15086     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
15087   echo $ac_n "(cached) $ac_c" 1>&6
15088 else
15089   
15090       
15091       ac_ext=C
15092 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15093 ac_cpp='$CXXCPP $CPPFLAGS'
15094 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15095 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15096 cross_compiling=$ac_cv_prog_cxx_cross
15097
15098       cat > conftest.$ac_ext <<EOF
15099 #line 15100 "configure"
15100 #include "confdefs.h"
15101 #include <math.h>
15102 int main() {
15103  _modff(0, 0);
15104 ; return 0; }
15105 EOF
15106 if { (eval echo configure:15107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15107   rm -rf conftest*
15108   glibcpp_cv_func__modff_use=yes
15109 else
15110   echo "configure: failed program was:" >&5
15111   cat conftest.$ac_ext >&5
15112   rm -rf conftest*
15113   glibcpp_cv_func__modff_use=no
15114 fi
15115 rm -f conftest*
15116       ac_ext=c
15117 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15118 ac_cpp='$CPP $CPPFLAGS'
15119 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15120 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15121 cross_compiling=$ac_cv_prog_cc_cross
15122
15123     
15124 fi
15125
15126   fi
15127   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
15128
15129     if test x$glibcpp_cv_func__modff_use = x"yes"; then
15130       for ac_func in _modff
15131 do
15132 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15133 echo "configure:15134: checking for $ac_func" >&5
15134 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15135   echo $ac_n "(cached) $ac_c" 1>&6
15136 else
15137   cat > conftest.$ac_ext <<EOF
15138 #line 15139 "configure"
15139 #include "confdefs.h"
15140 /* System header to define __stub macros and hopefully few prototypes,
15141     which can conflict with char $ac_func(); below.  */
15142 #include <assert.h>
15143 /* Override any gcc2 internal prototype to avoid an error.  */
15144 /* We use char because int might match the return type of a gcc2
15145     builtin and then its argument prototype would still apply.  */
15146 char $ac_func();
15147
15148 int main() {
15149
15150 /* The GNU C library defines this for functions which it implements
15151     to always fail with ENOSYS.  Some functions are actually named
15152     something starting with __ and the normal name is an alias.  */
15153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15154 choke me
15155 #else
15156 $ac_func();
15157 #endif
15158
15159 ; return 0; }
15160 EOF
15161 if { (eval echo configure:15162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15162   rm -rf conftest*
15163   eval "ac_cv_func_$ac_func=yes"
15164 else
15165   echo "configure: failed program was:" >&5
15166   cat conftest.$ac_ext >&5
15167   rm -rf conftest*
15168   eval "ac_cv_func_$ac_func=no"
15169 fi
15170 rm -f conftest*
15171 fi
15172
15173 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15174   echo "$ac_t""yes" 1>&6
15175     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15176   cat >> confdefs.h <<EOF
15177 #define $ac_tr_func 1
15178 EOF
15179  
15180 else
15181   echo "$ac_t""no" 1>&6
15182 fi
15183 done
15184     
15185     fi
15186   fi
15187
15188   
15189   
15190   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15191 echo "configure:15192: checking for powf declaration" >&5
15192   if test x${glibcpp_cv_func_powf_use+set} != xset; then
15193     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
15194   echo $ac_n "(cached) $ac_c" 1>&6
15195 else
15196   
15197       
15198       ac_ext=C
15199 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15200 ac_cpp='$CXXCPP $CPPFLAGS'
15201 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15202 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15203 cross_compiling=$ac_cv_prog_cxx_cross
15204
15205       cat > conftest.$ac_ext <<EOF
15206 #line 15207 "configure"
15207 #include "confdefs.h"
15208 #include <math.h>
15209 int main() {
15210  powf(0, 0);
15211 ; return 0; }
15212 EOF
15213 if { (eval echo configure:15214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15214   rm -rf conftest*
15215   glibcpp_cv_func_powf_use=yes
15216 else
15217   echo "configure: failed program was:" >&5
15218   cat conftest.$ac_ext >&5
15219   rm -rf conftest*
15220   glibcpp_cv_func_powf_use=no
15221 fi
15222 rm -f conftest*
15223       ac_ext=c
15224 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15225 ac_cpp='$CPP $CPPFLAGS'
15226 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15227 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15228 cross_compiling=$ac_cv_prog_cc_cross
15229
15230     
15231 fi
15232
15233   fi
15234   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
15235
15236   if test x$glibcpp_cv_func_powf_use = x"yes"; then
15237     for ac_func in powf
15238 do
15239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15240 echo "configure:15241: checking for $ac_func" >&5
15241 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15242   echo $ac_n "(cached) $ac_c" 1>&6
15243 else
15244   cat > conftest.$ac_ext <<EOF
15245 #line 15246 "configure"
15246 #include "confdefs.h"
15247 /* System header to define __stub macros and hopefully few prototypes,
15248     which can conflict with char $ac_func(); below.  */
15249 #include <assert.h>
15250 /* Override any gcc2 internal prototype to avoid an error.  */
15251 /* We use char because int might match the return type of a gcc2
15252     builtin and then its argument prototype would still apply.  */
15253 char $ac_func();
15254
15255 int main() {
15256
15257 /* The GNU C library defines this for functions which it implements
15258     to always fail with ENOSYS.  Some functions are actually named
15259     something starting with __ and the normal name is an alias.  */
15260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15261 choke me
15262 #else
15263 $ac_func();
15264 #endif
15265
15266 ; return 0; }
15267 EOF
15268 if { (eval echo configure:15269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15269   rm -rf conftest*
15270   eval "ac_cv_func_$ac_func=yes"
15271 else
15272   echo "configure: failed program was:" >&5
15273   cat conftest.$ac_ext >&5
15274   rm -rf conftest*
15275   eval "ac_cv_func_$ac_func=no"
15276 fi
15277 rm -f conftest*
15278 fi
15279
15280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15281   echo "$ac_t""yes" 1>&6
15282     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15283   cat >> confdefs.h <<EOF
15284 #define $ac_tr_func 1
15285 EOF
15286  
15287 else
15288   echo "$ac_t""no" 1>&6
15289 fi
15290 done
15291     
15292   else
15293     
15294   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15295 echo "configure:15296: checking for _powf declaration" >&5
15296   if test x${glibcpp_cv_func__powf_use+set} != xset; then
15297     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
15298   echo $ac_n "(cached) $ac_c" 1>&6
15299 else
15300   
15301       
15302       ac_ext=C
15303 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15304 ac_cpp='$CXXCPP $CPPFLAGS'
15305 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15306 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15307 cross_compiling=$ac_cv_prog_cxx_cross
15308
15309       cat > conftest.$ac_ext <<EOF
15310 #line 15311 "configure"
15311 #include "confdefs.h"
15312 #include <math.h>
15313 int main() {
15314  _powf(0, 0);
15315 ; return 0; }
15316 EOF
15317 if { (eval echo configure:15318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15318   rm -rf conftest*
15319   glibcpp_cv_func__powf_use=yes
15320 else
15321   echo "configure: failed program was:" >&5
15322   cat conftest.$ac_ext >&5
15323   rm -rf conftest*
15324   glibcpp_cv_func__powf_use=no
15325 fi
15326 rm -f conftest*
15327       ac_ext=c
15328 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15329 ac_cpp='$CPP $CPPFLAGS'
15330 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15331 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15332 cross_compiling=$ac_cv_prog_cc_cross
15333
15334     
15335 fi
15336
15337   fi
15338   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
15339
15340     if test x$glibcpp_cv_func__powf_use = x"yes"; then
15341       for ac_func in _powf
15342 do
15343 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15344 echo "configure:15345: checking for $ac_func" >&5
15345 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15346   echo $ac_n "(cached) $ac_c" 1>&6
15347 else
15348   cat > conftest.$ac_ext <<EOF
15349 #line 15350 "configure"
15350 #include "confdefs.h"
15351 /* System header to define __stub macros and hopefully few prototypes,
15352     which can conflict with char $ac_func(); below.  */
15353 #include <assert.h>
15354 /* Override any gcc2 internal prototype to avoid an error.  */
15355 /* We use char because int might match the return type of a gcc2
15356     builtin and then its argument prototype would still apply.  */
15357 char $ac_func();
15358
15359 int main() {
15360
15361 /* The GNU C library defines this for functions which it implements
15362     to always fail with ENOSYS.  Some functions are actually named
15363     something starting with __ and the normal name is an alias.  */
15364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15365 choke me
15366 #else
15367 $ac_func();
15368 #endif
15369
15370 ; return 0; }
15371 EOF
15372 if { (eval echo configure:15373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15373   rm -rf conftest*
15374   eval "ac_cv_func_$ac_func=yes"
15375 else
15376   echo "configure: failed program was:" >&5
15377   cat conftest.$ac_ext >&5
15378   rm -rf conftest*
15379   eval "ac_cv_func_$ac_func=no"
15380 fi
15381 rm -f conftest*
15382 fi
15383
15384 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15385   echo "$ac_t""yes" 1>&6
15386     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15387   cat >> confdefs.h <<EOF
15388 #define $ac_tr_func 1
15389 EOF
15390  
15391 else
15392   echo "$ac_t""no" 1>&6
15393 fi
15394 done
15395     
15396     fi
15397   fi
15398
15399   
15400   
15401   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15402 echo "configure:15403: checking for sqrtf declaration" >&5
15403   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
15404     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
15405   echo $ac_n "(cached) $ac_c" 1>&6
15406 else
15407   
15408       
15409       ac_ext=C
15410 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15411 ac_cpp='$CXXCPP $CPPFLAGS'
15412 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15413 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15414 cross_compiling=$ac_cv_prog_cxx_cross
15415
15416       cat > conftest.$ac_ext <<EOF
15417 #line 15418 "configure"
15418 #include "confdefs.h"
15419 #include <math.h>
15420                       #ifdef HAVE_IEEEFP_H
15421                       #include <ieeefp.h>
15422                       #endif
15423                      
15424 int main() {
15425  sqrtf(0);
15426 ; return 0; }
15427 EOF
15428 if { (eval echo configure:15429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15429   rm -rf conftest*
15430   glibcpp_cv_func_sqrtf_use=yes
15431 else
15432   echo "configure: failed program was:" >&5
15433   cat conftest.$ac_ext >&5
15434   rm -rf conftest*
15435   glibcpp_cv_func_sqrtf_use=no
15436 fi
15437 rm -f conftest*
15438       ac_ext=c
15439 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15440 ac_cpp='$CPP $CPPFLAGS'
15441 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15442 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15443 cross_compiling=$ac_cv_prog_cc_cross
15444
15445     
15446 fi
15447
15448   fi
15449   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
15450
15451   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
15452     for ac_func in sqrtf
15453 do
15454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15455 echo "configure:15456: checking for $ac_func" >&5
15456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15457   echo $ac_n "(cached) $ac_c" 1>&6
15458 else
15459   cat > conftest.$ac_ext <<EOF
15460 #line 15461 "configure"
15461 #include "confdefs.h"
15462 /* System header to define __stub macros and hopefully few prototypes,
15463     which can conflict with char $ac_func(); below.  */
15464 #include <assert.h>
15465 /* Override any gcc2 internal prototype to avoid an error.  */
15466 /* We use char because int might match the return type of a gcc2
15467     builtin and then its argument prototype would still apply.  */
15468 char $ac_func();
15469
15470 int main() {
15471
15472 /* The GNU C library defines this for functions which it implements
15473     to always fail with ENOSYS.  Some functions are actually named
15474     something starting with __ and the normal name is an alias.  */
15475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15476 choke me
15477 #else
15478 $ac_func();
15479 #endif
15480
15481 ; return 0; }
15482 EOF
15483 if { (eval echo configure:15484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15484   rm -rf conftest*
15485   eval "ac_cv_func_$ac_func=yes"
15486 else
15487   echo "configure: failed program was:" >&5
15488   cat conftest.$ac_ext >&5
15489   rm -rf conftest*
15490   eval "ac_cv_func_$ac_func=no"
15491 fi
15492 rm -f conftest*
15493 fi
15494
15495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15496   echo "$ac_t""yes" 1>&6
15497     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15498   cat >> confdefs.h <<EOF
15499 #define $ac_tr_func 1
15500 EOF
15501  
15502 else
15503   echo "$ac_t""no" 1>&6
15504 fi
15505 done
15506     
15507   else
15508     
15509   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15510 echo "configure:15511: checking for _sqrtf declaration" >&5
15511   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
15512     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
15513   echo $ac_n "(cached) $ac_c" 1>&6
15514 else
15515   
15516       
15517       ac_ext=C
15518 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15519 ac_cpp='$CXXCPP $CPPFLAGS'
15520 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15521 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15522 cross_compiling=$ac_cv_prog_cxx_cross
15523
15524       cat > conftest.$ac_ext <<EOF
15525 #line 15526 "configure"
15526 #include "confdefs.h"
15527 #include <math.h>
15528                       #ifdef HAVE_IEEEFP_H
15529                       #include <ieeefp.h>
15530                       #endif
15531                      
15532 int main() {
15533  _sqrtf(0);
15534 ; return 0; }
15535 EOF
15536 if { (eval echo configure:15537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15537   rm -rf conftest*
15538   glibcpp_cv_func__sqrtf_use=yes
15539 else
15540   echo "configure: failed program was:" >&5
15541   cat conftest.$ac_ext >&5
15542   rm -rf conftest*
15543   glibcpp_cv_func__sqrtf_use=no
15544 fi
15545 rm -f conftest*
15546       ac_ext=c
15547 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15548 ac_cpp='$CPP $CPPFLAGS'
15549 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15550 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15551 cross_compiling=$ac_cv_prog_cc_cross
15552
15553     
15554 fi
15555
15556   fi
15557   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
15558
15559     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
15560       for ac_func in _sqrtf
15561 do
15562 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15563 echo "configure:15564: checking for $ac_func" >&5
15564 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15565   echo $ac_n "(cached) $ac_c" 1>&6
15566 else
15567   cat > conftest.$ac_ext <<EOF
15568 #line 15569 "configure"
15569 #include "confdefs.h"
15570 /* System header to define __stub macros and hopefully few prototypes,
15571     which can conflict with char $ac_func(); below.  */
15572 #include <assert.h>
15573 /* Override any gcc2 internal prototype to avoid an error.  */
15574 /* We use char because int might match the return type of a gcc2
15575     builtin and then its argument prototype would still apply.  */
15576 char $ac_func();
15577
15578 int main() {
15579
15580 /* The GNU C library defines this for functions which it implements
15581     to always fail with ENOSYS.  Some functions are actually named
15582     something starting with __ and the normal name is an alias.  */
15583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15584 choke me
15585 #else
15586 $ac_func();
15587 #endif
15588
15589 ; return 0; }
15590 EOF
15591 if { (eval echo configure:15592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15592   rm -rf conftest*
15593   eval "ac_cv_func_$ac_func=yes"
15594 else
15595   echo "configure: failed program was:" >&5
15596   cat conftest.$ac_ext >&5
15597   rm -rf conftest*
15598   eval "ac_cv_func_$ac_func=no"
15599 fi
15600 rm -f conftest*
15601 fi
15602
15603 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15604   echo "$ac_t""yes" 1>&6
15605     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15606   cat >> confdefs.h <<EOF
15607 #define $ac_tr_func 1
15608 EOF
15609  
15610 else
15611   echo "$ac_t""no" 1>&6
15612 fi
15613 done
15614     
15615     fi
15616   fi
15617
15618   
15619   
15620   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15621 echo "configure:15622: checking for sincosf declaration" >&5
15622   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
15623     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
15624   echo $ac_n "(cached) $ac_c" 1>&6
15625 else
15626   
15627       
15628       ac_ext=C
15629 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15630 ac_cpp='$CXXCPP $CPPFLAGS'
15631 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15632 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15633 cross_compiling=$ac_cv_prog_cxx_cross
15634
15635       cat > conftest.$ac_ext <<EOF
15636 #line 15637 "configure"
15637 #include "confdefs.h"
15638 #include <math.h>
15639 int main() {
15640  sincosf(0, 0, 0);
15641 ; return 0; }
15642 EOF
15643 if { (eval echo configure:15644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15644   rm -rf conftest*
15645   glibcpp_cv_func_sincosf_use=yes
15646 else
15647   echo "configure: failed program was:" >&5
15648   cat conftest.$ac_ext >&5
15649   rm -rf conftest*
15650   glibcpp_cv_func_sincosf_use=no
15651 fi
15652 rm -f conftest*
15653       ac_ext=c
15654 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15655 ac_cpp='$CPP $CPPFLAGS'
15656 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15657 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15658 cross_compiling=$ac_cv_prog_cc_cross
15659
15660     
15661 fi
15662
15663   fi
15664   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
15665
15666   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
15667     for ac_func in sincosf
15668 do
15669 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15670 echo "configure:15671: checking for $ac_func" >&5
15671 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15672   echo $ac_n "(cached) $ac_c" 1>&6
15673 else
15674   cat > conftest.$ac_ext <<EOF
15675 #line 15676 "configure"
15676 #include "confdefs.h"
15677 /* System header to define __stub macros and hopefully few prototypes,
15678     which can conflict with char $ac_func(); below.  */
15679 #include <assert.h>
15680 /* Override any gcc2 internal prototype to avoid an error.  */
15681 /* We use char because int might match the return type of a gcc2
15682     builtin and then its argument prototype would still apply.  */
15683 char $ac_func();
15684
15685 int main() {
15686
15687 /* The GNU C library defines this for functions which it implements
15688     to always fail with ENOSYS.  Some functions are actually named
15689     something starting with __ and the normal name is an alias.  */
15690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15691 choke me
15692 #else
15693 $ac_func();
15694 #endif
15695
15696 ; return 0; }
15697 EOF
15698 if { (eval echo configure:15699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15699   rm -rf conftest*
15700   eval "ac_cv_func_$ac_func=yes"
15701 else
15702   echo "configure: failed program was:" >&5
15703   cat conftest.$ac_ext >&5
15704   rm -rf conftest*
15705   eval "ac_cv_func_$ac_func=no"
15706 fi
15707 rm -f conftest*
15708 fi
15709
15710 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15711   echo "$ac_t""yes" 1>&6
15712     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15713   cat >> confdefs.h <<EOF
15714 #define $ac_tr_func 1
15715 EOF
15716  
15717 else
15718   echo "$ac_t""no" 1>&6
15719 fi
15720 done
15721     
15722   else
15723     
15724   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15725 echo "configure:15726: checking for _sincosf declaration" >&5
15726   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
15727     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
15728   echo $ac_n "(cached) $ac_c" 1>&6
15729 else
15730   
15731       
15732       ac_ext=C
15733 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15734 ac_cpp='$CXXCPP $CPPFLAGS'
15735 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15736 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15737 cross_compiling=$ac_cv_prog_cxx_cross
15738
15739       cat > conftest.$ac_ext <<EOF
15740 #line 15741 "configure"
15741 #include "confdefs.h"
15742 #include <math.h>
15743 int main() {
15744  _sincosf(0, 0, 0);
15745 ; return 0; }
15746 EOF
15747 if { (eval echo configure:15748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15748   rm -rf conftest*
15749   glibcpp_cv_func__sincosf_use=yes
15750 else
15751   echo "configure: failed program was:" >&5
15752   cat conftest.$ac_ext >&5
15753   rm -rf conftest*
15754   glibcpp_cv_func__sincosf_use=no
15755 fi
15756 rm -f conftest*
15757       ac_ext=c
15758 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15759 ac_cpp='$CPP $CPPFLAGS'
15760 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15761 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15762 cross_compiling=$ac_cv_prog_cc_cross
15763
15764     
15765 fi
15766
15767   fi
15768   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
15769
15770     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
15771       for ac_func in _sincosf
15772 do
15773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15774 echo "configure:15775: checking for $ac_func" >&5
15775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15776   echo $ac_n "(cached) $ac_c" 1>&6
15777 else
15778   cat > conftest.$ac_ext <<EOF
15779 #line 15780 "configure"
15780 #include "confdefs.h"
15781 /* System header to define __stub macros and hopefully few prototypes,
15782     which can conflict with char $ac_func(); below.  */
15783 #include <assert.h>
15784 /* Override any gcc2 internal prototype to avoid an error.  */
15785 /* We use char because int might match the return type of a gcc2
15786     builtin and then its argument prototype would still apply.  */
15787 char $ac_func();
15788
15789 int main() {
15790
15791 /* The GNU C library defines this for functions which it implements
15792     to always fail with ENOSYS.  Some functions are actually named
15793     something starting with __ and the normal name is an alias.  */
15794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15795 choke me
15796 #else
15797 $ac_func();
15798 #endif
15799
15800 ; return 0; }
15801 EOF
15802 if { (eval echo configure:15803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15803   rm -rf conftest*
15804   eval "ac_cv_func_$ac_func=yes"
15805 else
15806   echo "configure: failed program was:" >&5
15807   cat conftest.$ac_ext >&5
15808   rm -rf conftest*
15809   eval "ac_cv_func_$ac_func=no"
15810 fi
15811 rm -f conftest*
15812 fi
15813
15814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15815   echo "$ac_t""yes" 1>&6
15816     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15817   cat >> confdefs.h <<EOF
15818 #define $ac_tr_func 1
15819 EOF
15820  
15821 else
15822   echo "$ac_t""no" 1>&6
15823 fi
15824 done
15825     
15826     fi
15827   fi
15828
15829   
15830   
15831   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
15832 echo "configure:15833: checking for finitef declaration" >&5
15833   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
15834     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
15835   echo $ac_n "(cached) $ac_c" 1>&6
15836 else
15837   
15838       
15839       ac_ext=C
15840 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15841 ac_cpp='$CXXCPP $CPPFLAGS'
15842 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15843 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15844 cross_compiling=$ac_cv_prog_cxx_cross
15845
15846       cat > conftest.$ac_ext <<EOF
15847 #line 15848 "configure"
15848 #include "confdefs.h"
15849 #include <math.h>
15850                       #ifdef HAVE_IEEEFP_H
15851                       #include <ieeefp.h>
15852                       #endif
15853                      
15854 int main() {
15855  finitef(0);
15856 ; return 0; }
15857 EOF
15858 if { (eval echo configure:15859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15859   rm -rf conftest*
15860   glibcpp_cv_func_finitef_use=yes
15861 else
15862   echo "configure: failed program was:" >&5
15863   cat conftest.$ac_ext >&5
15864   rm -rf conftest*
15865   glibcpp_cv_func_finitef_use=no
15866 fi
15867 rm -f conftest*
15868       ac_ext=c
15869 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15870 ac_cpp='$CPP $CPPFLAGS'
15871 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15872 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15873 cross_compiling=$ac_cv_prog_cc_cross
15874
15875     
15876 fi
15877
15878   fi
15879   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
15880
15881   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
15882     for ac_func in finitef
15883 do
15884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15885 echo "configure:15886: checking for $ac_func" >&5
15886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15887   echo $ac_n "(cached) $ac_c" 1>&6
15888 else
15889   cat > conftest.$ac_ext <<EOF
15890 #line 15891 "configure"
15891 #include "confdefs.h"
15892 /* System header to define __stub macros and hopefully few prototypes,
15893     which can conflict with char $ac_func(); below.  */
15894 #include <assert.h>
15895 /* Override any gcc2 internal prototype to avoid an error.  */
15896 /* We use char because int might match the return type of a gcc2
15897     builtin and then its argument prototype would still apply.  */
15898 char $ac_func();
15899
15900 int main() {
15901
15902 /* The GNU C library defines this for functions which it implements
15903     to always fail with ENOSYS.  Some functions are actually named
15904     something starting with __ and the normal name is an alias.  */
15905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15906 choke me
15907 #else
15908 $ac_func();
15909 #endif
15910
15911 ; return 0; }
15912 EOF
15913 if { (eval echo configure:15914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15914   rm -rf conftest*
15915   eval "ac_cv_func_$ac_func=yes"
15916 else
15917   echo "configure: failed program was:" >&5
15918   cat conftest.$ac_ext >&5
15919   rm -rf conftest*
15920   eval "ac_cv_func_$ac_func=no"
15921 fi
15922 rm -f conftest*
15923 fi
15924
15925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15926   echo "$ac_t""yes" 1>&6
15927     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15928   cat >> confdefs.h <<EOF
15929 #define $ac_tr_func 1
15930 EOF
15931  
15932 else
15933   echo "$ac_t""no" 1>&6
15934 fi
15935 done
15936     
15937   else
15938     
15939   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
15940 echo "configure:15941: checking for _finitef declaration" >&5
15941   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
15942     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
15943   echo $ac_n "(cached) $ac_c" 1>&6
15944 else
15945   
15946       
15947       ac_ext=C
15948 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15949 ac_cpp='$CXXCPP $CPPFLAGS'
15950 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15951 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15952 cross_compiling=$ac_cv_prog_cxx_cross
15953
15954       cat > conftest.$ac_ext <<EOF
15955 #line 15956 "configure"
15956 #include "confdefs.h"
15957 #include <math.h>
15958                       #ifdef HAVE_IEEEFP_H
15959                       #include <ieeefp.h>
15960                       #endif
15961                      
15962 int main() {
15963  _finitef(0);
15964 ; return 0; }
15965 EOF
15966 if { (eval echo configure:15967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15967   rm -rf conftest*
15968   glibcpp_cv_func__finitef_use=yes
15969 else
15970   echo "configure: failed program was:" >&5
15971   cat conftest.$ac_ext >&5
15972   rm -rf conftest*
15973   glibcpp_cv_func__finitef_use=no
15974 fi
15975 rm -f conftest*
15976       ac_ext=c
15977 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15978 ac_cpp='$CPP $CPPFLAGS'
15979 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15980 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15981 cross_compiling=$ac_cv_prog_cc_cross
15982
15983     
15984 fi
15985
15986   fi
15987   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
15988
15989     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
15990       for ac_func in _finitef
15991 do
15992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15993 echo "configure:15994: checking for $ac_func" >&5
15994 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15995   echo $ac_n "(cached) $ac_c" 1>&6
15996 else
15997   cat > conftest.$ac_ext <<EOF
15998 #line 15999 "configure"
15999 #include "confdefs.h"
16000 /* System header to define __stub macros and hopefully few prototypes,
16001     which can conflict with char $ac_func(); below.  */
16002 #include <assert.h>
16003 /* Override any gcc2 internal prototype to avoid an error.  */
16004 /* We use char because int might match the return type of a gcc2
16005     builtin and then its argument prototype would still apply.  */
16006 char $ac_func();
16007
16008 int main() {
16009
16010 /* The GNU C library defines this for functions which it implements
16011     to always fail with ENOSYS.  Some functions are actually named
16012     something starting with __ and the normal name is an alias.  */
16013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16014 choke me
16015 #else
16016 $ac_func();
16017 #endif
16018
16019 ; return 0; }
16020 EOF
16021 if { (eval echo configure:16022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16022   rm -rf conftest*
16023   eval "ac_cv_func_$ac_func=yes"
16024 else
16025   echo "configure: failed program was:" >&5
16026   cat conftest.$ac_ext >&5
16027   rm -rf conftest*
16028   eval "ac_cv_func_$ac_func=no"
16029 fi
16030 rm -f conftest*
16031 fi
16032
16033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16034   echo "$ac_t""yes" 1>&6
16035     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16036   cat >> confdefs.h <<EOF
16037 #define $ac_tr_func 1
16038 EOF
16039  
16040 else
16041   echo "$ac_t""no" 1>&6
16042 fi
16043 done
16044     
16045     fi
16046   fi
16047
16048
16049     
16050   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16051 echo "configure:16052: checking for long double trig functions" >&5
16052   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
16053   echo $ac_n "(cached) $ac_c" 1>&6
16054 else
16055   
16056     
16057     ac_ext=C
16058 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16059 ac_cpp='$CXXCPP $CPPFLAGS'
16060 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16061 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16062 cross_compiling=$ac_cv_prog_cxx_cross
16063
16064     cat > conftest.$ac_ext <<EOF
16065 #line 16066 "configure"
16066 #include "confdefs.h"
16067 #include <math.h>
16068 int main() {
16069  `for x in acosl asinl atanl \
16070                                           cosl sinl tanl \
16071                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
16072 ; return 0; }
16073 EOF
16074 if { (eval echo configure:16075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16075   rm -rf conftest*
16076   glibcpp_cv_func_long_double_trig_use=yes
16077 else
16078   echo "configure: failed program was:" >&5
16079   cat conftest.$ac_ext >&5
16080   rm -rf conftest*
16081   glibcpp_cv_func_long_double_trig_use=no
16082 fi
16083 rm -f conftest*
16084     ac_ext=c
16085 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16086 ac_cpp='$CPP $CPPFLAGS'
16087 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16088 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16089 cross_compiling=$ac_cv_prog_cc_cross
16090
16091 fi
16092
16093   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
16094   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
16095     for ac_func in acosl asinl atanl \
16096                                           cosl sinl tanl \
16097                                           coshl sinhl tanhl
16098 do
16099 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16100 echo "configure:16101: checking for $ac_func" >&5
16101 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16102   echo $ac_n "(cached) $ac_c" 1>&6
16103 else
16104   cat > conftest.$ac_ext <<EOF
16105 #line 16106 "configure"
16106 #include "confdefs.h"
16107 /* System header to define __stub macros and hopefully few prototypes,
16108     which can conflict with char $ac_func(); below.  */
16109 #include <assert.h>
16110 /* Override any gcc2 internal prototype to avoid an error.  */
16111 /* We use char because int might match the return type of a gcc2
16112     builtin and then its argument prototype would still apply.  */
16113 char $ac_func();
16114
16115 int main() {
16116
16117 /* The GNU C library defines this for functions which it implements
16118     to always fail with ENOSYS.  Some functions are actually named
16119     something starting with __ and the normal name is an alias.  */
16120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16121 choke me
16122 #else
16123 $ac_func();
16124 #endif
16125
16126 ; return 0; }
16127 EOF
16128 if { (eval echo configure:16129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16129   rm -rf conftest*
16130   eval "ac_cv_func_$ac_func=yes"
16131 else
16132   echo "configure: failed program was:" >&5
16133   cat conftest.$ac_ext >&5
16134   rm -rf conftest*
16135   eval "ac_cv_func_$ac_func=no"
16136 fi
16137 rm -f conftest*
16138 fi
16139
16140 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16141   echo "$ac_t""yes" 1>&6
16142     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16143   cat >> confdefs.h <<EOF
16144 #define $ac_tr_func 1
16145 EOF
16146  
16147 else
16148   echo "$ac_t""no" 1>&6
16149 fi
16150 done
16151
16152   fi
16153
16154   
16155   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16156 echo "configure:16157: checking for long double round functions" >&5
16157   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
16158   echo $ac_n "(cached) $ac_c" 1>&6
16159 else
16160   
16161     
16162     ac_ext=C
16163 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16164 ac_cpp='$CXXCPP $CPPFLAGS'
16165 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16166 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16167 cross_compiling=$ac_cv_prog_cxx_cross
16168
16169     cat > conftest.$ac_ext <<EOF
16170 #line 16171 "configure"
16171 #include "confdefs.h"
16172 #include <math.h>
16173 int main() {
16174  `for x in ceill floorl; do echo "$x (0);"; done` 
16175 ; return 0; }
16176 EOF
16177 if { (eval echo configure:16178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16178   rm -rf conftest*
16179   glibcpp_cv_func_long_double_round_use=yes
16180 else
16181   echo "configure: failed program was:" >&5
16182   cat conftest.$ac_ext >&5
16183   rm -rf conftest*
16184   glibcpp_cv_func_long_double_round_use=no
16185 fi
16186 rm -f conftest*
16187     ac_ext=c
16188 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16189 ac_cpp='$CPP $CPPFLAGS'
16190 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16191 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16192 cross_compiling=$ac_cv_prog_cc_cross
16193
16194 fi
16195
16196   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
16197   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
16198     for ac_func in ceill floorl
16199 do
16200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16201 echo "configure:16202: checking for $ac_func" >&5
16202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16203   echo $ac_n "(cached) $ac_c" 1>&6
16204 else
16205   cat > conftest.$ac_ext <<EOF
16206 #line 16207 "configure"
16207 #include "confdefs.h"
16208 /* System header to define __stub macros and hopefully few prototypes,
16209     which can conflict with char $ac_func(); below.  */
16210 #include <assert.h>
16211 /* Override any gcc2 internal prototype to avoid an error.  */
16212 /* We use char because int might match the return type of a gcc2
16213     builtin and then its argument prototype would still apply.  */
16214 char $ac_func();
16215
16216 int main() {
16217
16218 /* The GNU C library defines this for functions which it implements
16219     to always fail with ENOSYS.  Some functions are actually named
16220     something starting with __ and the normal name is an alias.  */
16221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16222 choke me
16223 #else
16224 $ac_func();
16225 #endif
16226
16227 ; return 0; }
16228 EOF
16229 if { (eval echo configure:16230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16230   rm -rf conftest*
16231   eval "ac_cv_func_$ac_func=yes"
16232 else
16233   echo "configure: failed program was:" >&5
16234   cat conftest.$ac_ext >&5
16235   rm -rf conftest*
16236   eval "ac_cv_func_$ac_func=no"
16237 fi
16238 rm -f conftest*
16239 fi
16240
16241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16242   echo "$ac_t""yes" 1>&6
16243     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16244   cat >> confdefs.h <<EOF
16245 #define $ac_tr_func 1
16246 EOF
16247  
16248 else
16249   echo "$ac_t""no" 1>&6
16250 fi
16251 done
16252
16253   fi
16254
16255   
16256   
16257   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16258 echo "configure:16259: checking for isnanl declaration" >&5
16259   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
16260     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
16261   echo $ac_n "(cached) $ac_c" 1>&6
16262 else
16263   
16264       
16265       ac_ext=C
16266 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16267 ac_cpp='$CXXCPP $CPPFLAGS'
16268 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16269 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16270 cross_compiling=$ac_cv_prog_cxx_cross
16271
16272       cat > conftest.$ac_ext <<EOF
16273 #line 16274 "configure"
16274 #include "confdefs.h"
16275 #include <math.h>
16276                       #ifdef HAVE_IEEEFP_H
16277                       #include <ieeefp.h>
16278                       #endif
16279                      
16280 int main() {
16281  isnanl(0);
16282 ; return 0; }
16283 EOF
16284 if { (eval echo configure:16285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16285   rm -rf conftest*
16286   glibcpp_cv_func_isnanl_use=yes
16287 else
16288   echo "configure: failed program was:" >&5
16289   cat conftest.$ac_ext >&5
16290   rm -rf conftest*
16291   glibcpp_cv_func_isnanl_use=no
16292 fi
16293 rm -f conftest*
16294       ac_ext=c
16295 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16296 ac_cpp='$CPP $CPPFLAGS'
16297 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16298 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16299 cross_compiling=$ac_cv_prog_cc_cross
16300
16301     
16302 fi
16303
16304   fi
16305   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
16306
16307   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
16308     for ac_func in isnanl
16309 do
16310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16311 echo "configure:16312: checking for $ac_func" >&5
16312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16313   echo $ac_n "(cached) $ac_c" 1>&6
16314 else
16315   cat > conftest.$ac_ext <<EOF
16316 #line 16317 "configure"
16317 #include "confdefs.h"
16318 /* System header to define __stub macros and hopefully few prototypes,
16319     which can conflict with char $ac_func(); below.  */
16320 #include <assert.h>
16321 /* Override any gcc2 internal prototype to avoid an error.  */
16322 /* We use char because int might match the return type of a gcc2
16323     builtin and then its argument prototype would still apply.  */
16324 char $ac_func();
16325
16326 int main() {
16327
16328 /* The GNU C library defines this for functions which it implements
16329     to always fail with ENOSYS.  Some functions are actually named
16330     something starting with __ and the normal name is an alias.  */
16331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16332 choke me
16333 #else
16334 $ac_func();
16335 #endif
16336
16337 ; return 0; }
16338 EOF
16339 if { (eval echo configure:16340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16340   rm -rf conftest*
16341   eval "ac_cv_func_$ac_func=yes"
16342 else
16343   echo "configure: failed program was:" >&5
16344   cat conftest.$ac_ext >&5
16345   rm -rf conftest*
16346   eval "ac_cv_func_$ac_func=no"
16347 fi
16348 rm -f conftest*
16349 fi
16350
16351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16352   echo "$ac_t""yes" 1>&6
16353     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16354   cat >> confdefs.h <<EOF
16355 #define $ac_tr_func 1
16356 EOF
16357  
16358 else
16359   echo "$ac_t""no" 1>&6
16360 fi
16361 done
16362     
16363   else
16364     
16365   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16366 echo "configure:16367: checking for _isnanl declaration" >&5
16367   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
16368     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
16369   echo $ac_n "(cached) $ac_c" 1>&6
16370 else
16371   
16372       
16373       ac_ext=C
16374 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16375 ac_cpp='$CXXCPP $CPPFLAGS'
16376 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16377 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16378 cross_compiling=$ac_cv_prog_cxx_cross
16379
16380       cat > conftest.$ac_ext <<EOF
16381 #line 16382 "configure"
16382 #include "confdefs.h"
16383 #include <math.h>
16384                       #ifdef HAVE_IEEEFP_H
16385                       #include <ieeefp.h>
16386                       #endif
16387                      
16388 int main() {
16389  _isnanl(0);
16390 ; return 0; }
16391 EOF
16392 if { (eval echo configure:16393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16393   rm -rf conftest*
16394   glibcpp_cv_func__isnanl_use=yes
16395 else
16396   echo "configure: failed program was:" >&5
16397   cat conftest.$ac_ext >&5
16398   rm -rf conftest*
16399   glibcpp_cv_func__isnanl_use=no
16400 fi
16401 rm -f conftest*
16402       ac_ext=c
16403 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16404 ac_cpp='$CPP $CPPFLAGS'
16405 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16406 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16407 cross_compiling=$ac_cv_prog_cc_cross
16408
16409     
16410 fi
16411
16412   fi
16413   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
16414
16415     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
16416       for ac_func in _isnanl
16417 do
16418 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16419 echo "configure:16420: checking for $ac_func" >&5
16420 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16421   echo $ac_n "(cached) $ac_c" 1>&6
16422 else
16423   cat > conftest.$ac_ext <<EOF
16424 #line 16425 "configure"
16425 #include "confdefs.h"
16426 /* System header to define __stub macros and hopefully few prototypes,
16427     which can conflict with char $ac_func(); below.  */
16428 #include <assert.h>
16429 /* Override any gcc2 internal prototype to avoid an error.  */
16430 /* We use char because int might match the return type of a gcc2
16431     builtin and then its argument prototype would still apply.  */
16432 char $ac_func();
16433
16434 int main() {
16435
16436 /* The GNU C library defines this for functions which it implements
16437     to always fail with ENOSYS.  Some functions are actually named
16438     something starting with __ and the normal name is an alias.  */
16439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16440 choke me
16441 #else
16442 $ac_func();
16443 #endif
16444
16445 ; return 0; }
16446 EOF
16447 if { (eval echo configure:16448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16448   rm -rf conftest*
16449   eval "ac_cv_func_$ac_func=yes"
16450 else
16451   echo "configure: failed program was:" >&5
16452   cat conftest.$ac_ext >&5
16453   rm -rf conftest*
16454   eval "ac_cv_func_$ac_func=no"
16455 fi
16456 rm -f conftest*
16457 fi
16458
16459 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16460   echo "$ac_t""yes" 1>&6
16461     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16462   cat >> confdefs.h <<EOF
16463 #define $ac_tr_func 1
16464 EOF
16465  
16466 else
16467   echo "$ac_t""no" 1>&6
16468 fi
16469 done
16470     
16471     fi
16472   fi
16473
16474   
16475   
16476   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16477 echo "configure:16478: checking for isinfl declaration" >&5
16478   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
16479     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
16480   echo $ac_n "(cached) $ac_c" 1>&6
16481 else
16482   
16483       
16484       ac_ext=C
16485 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16486 ac_cpp='$CXXCPP $CPPFLAGS'
16487 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16488 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16489 cross_compiling=$ac_cv_prog_cxx_cross
16490
16491       cat > conftest.$ac_ext <<EOF
16492 #line 16493 "configure"
16493 #include "confdefs.h"
16494 #include <math.h>
16495                       #ifdef HAVE_IEEEFP_H
16496                       #include <ieeefp.h>
16497                       #endif
16498                      
16499 int main() {
16500  isinfl(0);
16501 ; return 0; }
16502 EOF
16503 if { (eval echo configure:16504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16504   rm -rf conftest*
16505   glibcpp_cv_func_isinfl_use=yes
16506 else
16507   echo "configure: failed program was:" >&5
16508   cat conftest.$ac_ext >&5
16509   rm -rf conftest*
16510   glibcpp_cv_func_isinfl_use=no
16511 fi
16512 rm -f conftest*
16513       ac_ext=c
16514 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16515 ac_cpp='$CPP $CPPFLAGS'
16516 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16517 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16518 cross_compiling=$ac_cv_prog_cc_cross
16519
16520     
16521 fi
16522
16523   fi
16524   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
16525
16526   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
16527     for ac_func in isinfl
16528 do
16529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16530 echo "configure:16531: checking for $ac_func" >&5
16531 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16532   echo $ac_n "(cached) $ac_c" 1>&6
16533 else
16534   cat > conftest.$ac_ext <<EOF
16535 #line 16536 "configure"
16536 #include "confdefs.h"
16537 /* System header to define __stub macros and hopefully few prototypes,
16538     which can conflict with char $ac_func(); below.  */
16539 #include <assert.h>
16540 /* Override any gcc2 internal prototype to avoid an error.  */
16541 /* We use char because int might match the return type of a gcc2
16542     builtin and then its argument prototype would still apply.  */
16543 char $ac_func();
16544
16545 int main() {
16546
16547 /* The GNU C library defines this for functions which it implements
16548     to always fail with ENOSYS.  Some functions are actually named
16549     something starting with __ and the normal name is an alias.  */
16550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16551 choke me
16552 #else
16553 $ac_func();
16554 #endif
16555
16556 ; return 0; }
16557 EOF
16558 if { (eval echo configure:16559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16559   rm -rf conftest*
16560   eval "ac_cv_func_$ac_func=yes"
16561 else
16562   echo "configure: failed program was:" >&5
16563   cat conftest.$ac_ext >&5
16564   rm -rf conftest*
16565   eval "ac_cv_func_$ac_func=no"
16566 fi
16567 rm -f conftest*
16568 fi
16569
16570 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16571   echo "$ac_t""yes" 1>&6
16572     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16573   cat >> confdefs.h <<EOF
16574 #define $ac_tr_func 1
16575 EOF
16576  
16577 else
16578   echo "$ac_t""no" 1>&6
16579 fi
16580 done
16581     
16582   else
16583     
16584   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16585 echo "configure:16586: checking for _isinfl declaration" >&5
16586   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
16587     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
16588   echo $ac_n "(cached) $ac_c" 1>&6
16589 else
16590   
16591       
16592       ac_ext=C
16593 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16594 ac_cpp='$CXXCPP $CPPFLAGS'
16595 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16596 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16597 cross_compiling=$ac_cv_prog_cxx_cross
16598
16599       cat > conftest.$ac_ext <<EOF
16600 #line 16601 "configure"
16601 #include "confdefs.h"
16602 #include <math.h>
16603                       #ifdef HAVE_IEEEFP_H
16604                       #include <ieeefp.h>
16605                       #endif
16606                      
16607 int main() {
16608  _isinfl(0);
16609 ; return 0; }
16610 EOF
16611 if { (eval echo configure:16612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16612   rm -rf conftest*
16613   glibcpp_cv_func__isinfl_use=yes
16614 else
16615   echo "configure: failed program was:" >&5
16616   cat conftest.$ac_ext >&5
16617   rm -rf conftest*
16618   glibcpp_cv_func__isinfl_use=no
16619 fi
16620 rm -f conftest*
16621       ac_ext=c
16622 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16623 ac_cpp='$CPP $CPPFLAGS'
16624 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16625 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16626 cross_compiling=$ac_cv_prog_cc_cross
16627
16628     
16629 fi
16630
16631   fi
16632   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
16633
16634     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
16635       for ac_func in _isinfl
16636 do
16637 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16638 echo "configure:16639: checking for $ac_func" >&5
16639 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16640   echo $ac_n "(cached) $ac_c" 1>&6
16641 else
16642   cat > conftest.$ac_ext <<EOF
16643 #line 16644 "configure"
16644 #include "confdefs.h"
16645 /* System header to define __stub macros and hopefully few prototypes,
16646     which can conflict with char $ac_func(); below.  */
16647 #include <assert.h>
16648 /* Override any gcc2 internal prototype to avoid an error.  */
16649 /* We use char because int might match the return type of a gcc2
16650     builtin and then its argument prototype would still apply.  */
16651 char $ac_func();
16652
16653 int main() {
16654
16655 /* The GNU C library defines this for functions which it implements
16656     to always fail with ENOSYS.  Some functions are actually named
16657     something starting with __ and the normal name is an alias.  */
16658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16659 choke me
16660 #else
16661 $ac_func();
16662 #endif
16663
16664 ; return 0; }
16665 EOF
16666 if { (eval echo configure:16667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16667   rm -rf conftest*
16668   eval "ac_cv_func_$ac_func=yes"
16669 else
16670   echo "configure: failed program was:" >&5
16671   cat conftest.$ac_ext >&5
16672   rm -rf conftest*
16673   eval "ac_cv_func_$ac_func=no"
16674 fi
16675 rm -f conftest*
16676 fi
16677
16678 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16679   echo "$ac_t""yes" 1>&6
16680     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16681   cat >> confdefs.h <<EOF
16682 #define $ac_tr_func 1
16683 EOF
16684  
16685 else
16686   echo "$ac_t""no" 1>&6
16687 fi
16688 done
16689     
16690     fi
16691   fi
16692
16693   
16694   
16695   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16696 echo "configure:16697: checking for copysignl declaration" >&5
16697   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
16698     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
16699   echo $ac_n "(cached) $ac_c" 1>&6
16700 else
16701   
16702       
16703       ac_ext=C
16704 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16705 ac_cpp='$CXXCPP $CPPFLAGS'
16706 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16707 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16708 cross_compiling=$ac_cv_prog_cxx_cross
16709
16710       cat > conftest.$ac_ext <<EOF
16711 #line 16712 "configure"
16712 #include "confdefs.h"
16713 #include <math.h>
16714 int main() {
16715  copysignl(0, 0);
16716 ; return 0; }
16717 EOF
16718 if { (eval echo configure:16719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16719   rm -rf conftest*
16720   glibcpp_cv_func_copysignl_use=yes
16721 else
16722   echo "configure: failed program was:" >&5
16723   cat conftest.$ac_ext >&5
16724   rm -rf conftest*
16725   glibcpp_cv_func_copysignl_use=no
16726 fi
16727 rm -f conftest*
16728       ac_ext=c
16729 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16730 ac_cpp='$CPP $CPPFLAGS'
16731 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16732 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16733 cross_compiling=$ac_cv_prog_cc_cross
16734
16735     
16736 fi
16737
16738   fi
16739   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
16740
16741   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
16742     for ac_func in copysignl
16743 do
16744 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16745 echo "configure:16746: checking for $ac_func" >&5
16746 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16747   echo $ac_n "(cached) $ac_c" 1>&6
16748 else
16749   cat > conftest.$ac_ext <<EOF
16750 #line 16751 "configure"
16751 #include "confdefs.h"
16752 /* System header to define __stub macros and hopefully few prototypes,
16753     which can conflict with char $ac_func(); below.  */
16754 #include <assert.h>
16755 /* Override any gcc2 internal prototype to avoid an error.  */
16756 /* We use char because int might match the return type of a gcc2
16757     builtin and then its argument prototype would still apply.  */
16758 char $ac_func();
16759
16760 int main() {
16761
16762 /* The GNU C library defines this for functions which it implements
16763     to always fail with ENOSYS.  Some functions are actually named
16764     something starting with __ and the normal name is an alias.  */
16765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16766 choke me
16767 #else
16768 $ac_func();
16769 #endif
16770
16771 ; return 0; }
16772 EOF
16773 if { (eval echo configure:16774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16774   rm -rf conftest*
16775   eval "ac_cv_func_$ac_func=yes"
16776 else
16777   echo "configure: failed program was:" >&5
16778   cat conftest.$ac_ext >&5
16779   rm -rf conftest*
16780   eval "ac_cv_func_$ac_func=no"
16781 fi
16782 rm -f conftest*
16783 fi
16784
16785 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16786   echo "$ac_t""yes" 1>&6
16787     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16788   cat >> confdefs.h <<EOF
16789 #define $ac_tr_func 1
16790 EOF
16791  
16792 else
16793   echo "$ac_t""no" 1>&6
16794 fi
16795 done
16796     
16797   else
16798     
16799   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
16800 echo "configure:16801: checking for _copysignl declaration" >&5
16801   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
16802     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
16803   echo $ac_n "(cached) $ac_c" 1>&6
16804 else
16805   
16806       
16807       ac_ext=C
16808 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16809 ac_cpp='$CXXCPP $CPPFLAGS'
16810 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16811 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16812 cross_compiling=$ac_cv_prog_cxx_cross
16813
16814       cat > conftest.$ac_ext <<EOF
16815 #line 16816 "configure"
16816 #include "confdefs.h"
16817 #include <math.h>
16818 int main() {
16819  _copysignl(0, 0);
16820 ; return 0; }
16821 EOF
16822 if { (eval echo configure:16823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16823   rm -rf conftest*
16824   glibcpp_cv_func__copysignl_use=yes
16825 else
16826   echo "configure: failed program was:" >&5
16827   cat conftest.$ac_ext >&5
16828   rm -rf conftest*
16829   glibcpp_cv_func__copysignl_use=no
16830 fi
16831 rm -f conftest*
16832       ac_ext=c
16833 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16834 ac_cpp='$CPP $CPPFLAGS'
16835 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16836 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16837 cross_compiling=$ac_cv_prog_cc_cross
16838
16839     
16840 fi
16841
16842   fi
16843   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
16844
16845     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
16846       for ac_func in _copysignl
16847 do
16848 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16849 echo "configure:16850: checking for $ac_func" >&5
16850 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16851   echo $ac_n "(cached) $ac_c" 1>&6
16852 else
16853   cat > conftest.$ac_ext <<EOF
16854 #line 16855 "configure"
16855 #include "confdefs.h"
16856 /* System header to define __stub macros and hopefully few prototypes,
16857     which can conflict with char $ac_func(); below.  */
16858 #include <assert.h>
16859 /* Override any gcc2 internal prototype to avoid an error.  */
16860 /* We use char because int might match the return type of a gcc2
16861     builtin and then its argument prototype would still apply.  */
16862 char $ac_func();
16863
16864 int main() {
16865
16866 /* The GNU C library defines this for functions which it implements
16867     to always fail with ENOSYS.  Some functions are actually named
16868     something starting with __ and the normal name is an alias.  */
16869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16870 choke me
16871 #else
16872 $ac_func();
16873 #endif
16874
16875 ; return 0; }
16876 EOF
16877 if { (eval echo configure:16878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16878   rm -rf conftest*
16879   eval "ac_cv_func_$ac_func=yes"
16880 else
16881   echo "configure: failed program was:" >&5
16882   cat conftest.$ac_ext >&5
16883   rm -rf conftest*
16884   eval "ac_cv_func_$ac_func=no"
16885 fi
16886 rm -f conftest*
16887 fi
16888
16889 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16890   echo "$ac_t""yes" 1>&6
16891     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16892   cat >> confdefs.h <<EOF
16893 #define $ac_tr_func 1
16894 EOF
16895  
16896 else
16897   echo "$ac_t""no" 1>&6
16898 fi
16899 done
16900     
16901     fi
16902   fi
16903
16904   
16905   
16906   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
16907 echo "configure:16908: checking for atan2l declaration" >&5
16908   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
16909     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
16910   echo $ac_n "(cached) $ac_c" 1>&6
16911 else
16912   
16913       
16914       ac_ext=C
16915 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16916 ac_cpp='$CXXCPP $CPPFLAGS'
16917 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16918 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16919 cross_compiling=$ac_cv_prog_cxx_cross
16920
16921       cat > conftest.$ac_ext <<EOF
16922 #line 16923 "configure"
16923 #include "confdefs.h"
16924 #include <math.h>
16925 int main() {
16926  atan2l(0, 0);
16927 ; return 0; }
16928 EOF
16929 if { (eval echo configure:16930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16930   rm -rf conftest*
16931   glibcpp_cv_func_atan2l_use=yes
16932 else
16933   echo "configure: failed program was:" >&5
16934   cat conftest.$ac_ext >&5
16935   rm -rf conftest*
16936   glibcpp_cv_func_atan2l_use=no
16937 fi
16938 rm -f conftest*
16939       ac_ext=c
16940 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16941 ac_cpp='$CPP $CPPFLAGS'
16942 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16943 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16944 cross_compiling=$ac_cv_prog_cc_cross
16945
16946     
16947 fi
16948
16949   fi
16950   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
16951
16952   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
16953     for ac_func in atan2l
16954 do
16955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16956 echo "configure:16957: checking for $ac_func" >&5
16957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16958   echo $ac_n "(cached) $ac_c" 1>&6
16959 else
16960   cat > conftest.$ac_ext <<EOF
16961 #line 16962 "configure"
16962 #include "confdefs.h"
16963 /* System header to define __stub macros and hopefully few prototypes,
16964     which can conflict with char $ac_func(); below.  */
16965 #include <assert.h>
16966 /* Override any gcc2 internal prototype to avoid an error.  */
16967 /* We use char because int might match the return type of a gcc2
16968     builtin and then its argument prototype would still apply.  */
16969 char $ac_func();
16970
16971 int main() {
16972
16973 /* The GNU C library defines this for functions which it implements
16974     to always fail with ENOSYS.  Some functions are actually named
16975     something starting with __ and the normal name is an alias.  */
16976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16977 choke me
16978 #else
16979 $ac_func();
16980 #endif
16981
16982 ; return 0; }
16983 EOF
16984 if { (eval echo configure:16985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16985   rm -rf conftest*
16986   eval "ac_cv_func_$ac_func=yes"
16987 else
16988   echo "configure: failed program was:" >&5
16989   cat conftest.$ac_ext >&5
16990   rm -rf conftest*
16991   eval "ac_cv_func_$ac_func=no"
16992 fi
16993 rm -f conftest*
16994 fi
16995
16996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16997   echo "$ac_t""yes" 1>&6
16998     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16999   cat >> confdefs.h <<EOF
17000 #define $ac_tr_func 1
17001 EOF
17002  
17003 else
17004   echo "$ac_t""no" 1>&6
17005 fi
17006 done
17007     
17008   else
17009     
17010   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17011 echo "configure:17012: checking for _atan2l declaration" >&5
17012   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
17013     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
17014   echo $ac_n "(cached) $ac_c" 1>&6
17015 else
17016   
17017       
17018       ac_ext=C
17019 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17020 ac_cpp='$CXXCPP $CPPFLAGS'
17021 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17022 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17023 cross_compiling=$ac_cv_prog_cxx_cross
17024
17025       cat > conftest.$ac_ext <<EOF
17026 #line 17027 "configure"
17027 #include "confdefs.h"
17028 #include <math.h>
17029 int main() {
17030  _atan2l(0, 0);
17031 ; return 0; }
17032 EOF
17033 if { (eval echo configure:17034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17034   rm -rf conftest*
17035   glibcpp_cv_func__atan2l_use=yes
17036 else
17037   echo "configure: failed program was:" >&5
17038   cat conftest.$ac_ext >&5
17039   rm -rf conftest*
17040   glibcpp_cv_func__atan2l_use=no
17041 fi
17042 rm -f conftest*
17043       ac_ext=c
17044 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17045 ac_cpp='$CPP $CPPFLAGS'
17046 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17047 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17048 cross_compiling=$ac_cv_prog_cc_cross
17049
17050     
17051 fi
17052
17053   fi
17054   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
17055
17056     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
17057       for ac_func in _atan2l
17058 do
17059 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17060 echo "configure:17061: checking for $ac_func" >&5
17061 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17062   echo $ac_n "(cached) $ac_c" 1>&6
17063 else
17064   cat > conftest.$ac_ext <<EOF
17065 #line 17066 "configure"
17066 #include "confdefs.h"
17067 /* System header to define __stub macros and hopefully few prototypes,
17068     which can conflict with char $ac_func(); below.  */
17069 #include <assert.h>
17070 /* Override any gcc2 internal prototype to avoid an error.  */
17071 /* We use char because int might match the return type of a gcc2
17072     builtin and then its argument prototype would still apply.  */
17073 char $ac_func();
17074
17075 int main() {
17076
17077 /* The GNU C library defines this for functions which it implements
17078     to always fail with ENOSYS.  Some functions are actually named
17079     something starting with __ and the normal name is an alias.  */
17080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17081 choke me
17082 #else
17083 $ac_func();
17084 #endif
17085
17086 ; return 0; }
17087 EOF
17088 if { (eval echo configure:17089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17089   rm -rf conftest*
17090   eval "ac_cv_func_$ac_func=yes"
17091 else
17092   echo "configure: failed program was:" >&5
17093   cat conftest.$ac_ext >&5
17094   rm -rf conftest*
17095   eval "ac_cv_func_$ac_func=no"
17096 fi
17097 rm -f conftest*
17098 fi
17099
17100 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17101   echo "$ac_t""yes" 1>&6
17102     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17103   cat >> confdefs.h <<EOF
17104 #define $ac_tr_func 1
17105 EOF
17106  
17107 else
17108   echo "$ac_t""no" 1>&6
17109 fi
17110 done
17111     
17112     fi
17113   fi
17114
17115   
17116   
17117   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17118 echo "configure:17119: checking for expl declaration" >&5
17119   if test x${glibcpp_cv_func_expl_use+set} != xset; then
17120     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
17121   echo $ac_n "(cached) $ac_c" 1>&6
17122 else
17123   
17124       
17125       ac_ext=C
17126 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17127 ac_cpp='$CXXCPP $CPPFLAGS'
17128 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17129 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17130 cross_compiling=$ac_cv_prog_cxx_cross
17131
17132       cat > conftest.$ac_ext <<EOF
17133 #line 17134 "configure"
17134 #include "confdefs.h"
17135 #include <math.h>
17136                       #ifdef HAVE_IEEEFP_H
17137                       #include <ieeefp.h>
17138                       #endif
17139                      
17140 int main() {
17141  expl(0);
17142 ; return 0; }
17143 EOF
17144 if { (eval echo configure:17145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17145   rm -rf conftest*
17146   glibcpp_cv_func_expl_use=yes
17147 else
17148   echo "configure: failed program was:" >&5
17149   cat conftest.$ac_ext >&5
17150   rm -rf conftest*
17151   glibcpp_cv_func_expl_use=no
17152 fi
17153 rm -f conftest*
17154       ac_ext=c
17155 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17156 ac_cpp='$CPP $CPPFLAGS'
17157 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17158 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17159 cross_compiling=$ac_cv_prog_cc_cross
17160
17161     
17162 fi
17163
17164   fi
17165   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
17166
17167   if test x$glibcpp_cv_func_expl_use = x"yes"; then
17168     for ac_func in expl
17169 do
17170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17171 echo "configure:17172: checking for $ac_func" >&5
17172 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17173   echo $ac_n "(cached) $ac_c" 1>&6
17174 else
17175   cat > conftest.$ac_ext <<EOF
17176 #line 17177 "configure"
17177 #include "confdefs.h"
17178 /* System header to define __stub macros and hopefully few prototypes,
17179     which can conflict with char $ac_func(); below.  */
17180 #include <assert.h>
17181 /* Override any gcc2 internal prototype to avoid an error.  */
17182 /* We use char because int might match the return type of a gcc2
17183     builtin and then its argument prototype would still apply.  */
17184 char $ac_func();
17185
17186 int main() {
17187
17188 /* The GNU C library defines this for functions which it implements
17189     to always fail with ENOSYS.  Some functions are actually named
17190     something starting with __ and the normal name is an alias.  */
17191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17192 choke me
17193 #else
17194 $ac_func();
17195 #endif
17196
17197 ; return 0; }
17198 EOF
17199 if { (eval echo configure:17200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17200   rm -rf conftest*
17201   eval "ac_cv_func_$ac_func=yes"
17202 else
17203   echo "configure: failed program was:" >&5
17204   cat conftest.$ac_ext >&5
17205   rm -rf conftest*
17206   eval "ac_cv_func_$ac_func=no"
17207 fi
17208 rm -f conftest*
17209 fi
17210
17211 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17212   echo "$ac_t""yes" 1>&6
17213     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17214   cat >> confdefs.h <<EOF
17215 #define $ac_tr_func 1
17216 EOF
17217  
17218 else
17219   echo "$ac_t""no" 1>&6
17220 fi
17221 done
17222     
17223   else
17224     
17225   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17226 echo "configure:17227: checking for _expl declaration" >&5
17227   if test x${glibcpp_cv_func__expl_use+set} != xset; then
17228     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
17229   echo $ac_n "(cached) $ac_c" 1>&6
17230 else
17231   
17232       
17233       ac_ext=C
17234 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17235 ac_cpp='$CXXCPP $CPPFLAGS'
17236 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17237 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17238 cross_compiling=$ac_cv_prog_cxx_cross
17239
17240       cat > conftest.$ac_ext <<EOF
17241 #line 17242 "configure"
17242 #include "confdefs.h"
17243 #include <math.h>
17244                       #ifdef HAVE_IEEEFP_H
17245                       #include <ieeefp.h>
17246                       #endif
17247                      
17248 int main() {
17249  _expl(0);
17250 ; return 0; }
17251 EOF
17252 if { (eval echo configure:17253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17253   rm -rf conftest*
17254   glibcpp_cv_func__expl_use=yes
17255 else
17256   echo "configure: failed program was:" >&5
17257   cat conftest.$ac_ext >&5
17258   rm -rf conftest*
17259   glibcpp_cv_func__expl_use=no
17260 fi
17261 rm -f conftest*
17262       ac_ext=c
17263 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17264 ac_cpp='$CPP $CPPFLAGS'
17265 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17266 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17267 cross_compiling=$ac_cv_prog_cc_cross
17268
17269     
17270 fi
17271
17272   fi
17273   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
17274
17275     if test x$glibcpp_cv_func__expl_use = x"yes"; then
17276       for ac_func in _expl
17277 do
17278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17279 echo "configure:17280: checking for $ac_func" >&5
17280 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17281   echo $ac_n "(cached) $ac_c" 1>&6
17282 else
17283   cat > conftest.$ac_ext <<EOF
17284 #line 17285 "configure"
17285 #include "confdefs.h"
17286 /* System header to define __stub macros and hopefully few prototypes,
17287     which can conflict with char $ac_func(); below.  */
17288 #include <assert.h>
17289 /* Override any gcc2 internal prototype to avoid an error.  */
17290 /* We use char because int might match the return type of a gcc2
17291     builtin and then its argument prototype would still apply.  */
17292 char $ac_func();
17293
17294 int main() {
17295
17296 /* The GNU C library defines this for functions which it implements
17297     to always fail with ENOSYS.  Some functions are actually named
17298     something starting with __ and the normal name is an alias.  */
17299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17300 choke me
17301 #else
17302 $ac_func();
17303 #endif
17304
17305 ; return 0; }
17306 EOF
17307 if { (eval echo configure:17308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17308   rm -rf conftest*
17309   eval "ac_cv_func_$ac_func=yes"
17310 else
17311   echo "configure: failed program was:" >&5
17312   cat conftest.$ac_ext >&5
17313   rm -rf conftest*
17314   eval "ac_cv_func_$ac_func=no"
17315 fi
17316 rm -f conftest*
17317 fi
17318
17319 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17320   echo "$ac_t""yes" 1>&6
17321     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17322   cat >> confdefs.h <<EOF
17323 #define $ac_tr_func 1
17324 EOF
17325  
17326 else
17327   echo "$ac_t""no" 1>&6
17328 fi
17329 done
17330     
17331     fi
17332   fi
17333
17334   
17335   
17336   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17337 echo "configure:17338: checking for fabsl declaration" >&5
17338   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
17339     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
17340   echo $ac_n "(cached) $ac_c" 1>&6
17341 else
17342   
17343       
17344       ac_ext=C
17345 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17346 ac_cpp='$CXXCPP $CPPFLAGS'
17347 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17348 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17349 cross_compiling=$ac_cv_prog_cxx_cross
17350
17351       cat > conftest.$ac_ext <<EOF
17352 #line 17353 "configure"
17353 #include "confdefs.h"
17354 #include <math.h>
17355                       #ifdef HAVE_IEEEFP_H
17356                       #include <ieeefp.h>
17357                       #endif
17358                      
17359 int main() {
17360  fabsl(0);
17361 ; return 0; }
17362 EOF
17363 if { (eval echo configure:17364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17364   rm -rf conftest*
17365   glibcpp_cv_func_fabsl_use=yes
17366 else
17367   echo "configure: failed program was:" >&5
17368   cat conftest.$ac_ext >&5
17369   rm -rf conftest*
17370   glibcpp_cv_func_fabsl_use=no
17371 fi
17372 rm -f conftest*
17373       ac_ext=c
17374 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17375 ac_cpp='$CPP $CPPFLAGS'
17376 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17377 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17378 cross_compiling=$ac_cv_prog_cc_cross
17379
17380     
17381 fi
17382
17383   fi
17384   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
17385
17386   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
17387     for ac_func in fabsl
17388 do
17389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17390 echo "configure:17391: checking for $ac_func" >&5
17391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17392   echo $ac_n "(cached) $ac_c" 1>&6
17393 else
17394   cat > conftest.$ac_ext <<EOF
17395 #line 17396 "configure"
17396 #include "confdefs.h"
17397 /* System header to define __stub macros and hopefully few prototypes,
17398     which can conflict with char $ac_func(); below.  */
17399 #include <assert.h>
17400 /* Override any gcc2 internal prototype to avoid an error.  */
17401 /* We use char because int might match the return type of a gcc2
17402     builtin and then its argument prototype would still apply.  */
17403 char $ac_func();
17404
17405 int main() {
17406
17407 /* The GNU C library defines this for functions which it implements
17408     to always fail with ENOSYS.  Some functions are actually named
17409     something starting with __ and the normal name is an alias.  */
17410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17411 choke me
17412 #else
17413 $ac_func();
17414 #endif
17415
17416 ; return 0; }
17417 EOF
17418 if { (eval echo configure:17419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17419   rm -rf conftest*
17420   eval "ac_cv_func_$ac_func=yes"
17421 else
17422   echo "configure: failed program was:" >&5
17423   cat conftest.$ac_ext >&5
17424   rm -rf conftest*
17425   eval "ac_cv_func_$ac_func=no"
17426 fi
17427 rm -f conftest*
17428 fi
17429
17430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17431   echo "$ac_t""yes" 1>&6
17432     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17433   cat >> confdefs.h <<EOF
17434 #define $ac_tr_func 1
17435 EOF
17436  
17437 else
17438   echo "$ac_t""no" 1>&6
17439 fi
17440 done
17441     
17442   else
17443     
17444   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17445 echo "configure:17446: checking for _fabsl declaration" >&5
17446   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
17447     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
17448   echo $ac_n "(cached) $ac_c" 1>&6
17449 else
17450   
17451       
17452       ac_ext=C
17453 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17454 ac_cpp='$CXXCPP $CPPFLAGS'
17455 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17456 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17457 cross_compiling=$ac_cv_prog_cxx_cross
17458
17459       cat > conftest.$ac_ext <<EOF
17460 #line 17461 "configure"
17461 #include "confdefs.h"
17462 #include <math.h>
17463                       #ifdef HAVE_IEEEFP_H
17464                       #include <ieeefp.h>
17465                       #endif
17466                      
17467 int main() {
17468  _fabsl(0);
17469 ; return 0; }
17470 EOF
17471 if { (eval echo configure:17472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17472   rm -rf conftest*
17473   glibcpp_cv_func__fabsl_use=yes
17474 else
17475   echo "configure: failed program was:" >&5
17476   cat conftest.$ac_ext >&5
17477   rm -rf conftest*
17478   glibcpp_cv_func__fabsl_use=no
17479 fi
17480 rm -f conftest*
17481       ac_ext=c
17482 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17483 ac_cpp='$CPP $CPPFLAGS'
17484 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17485 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17486 cross_compiling=$ac_cv_prog_cc_cross
17487
17488     
17489 fi
17490
17491   fi
17492   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
17493
17494     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
17495       for ac_func in _fabsl
17496 do
17497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17498 echo "configure:17499: checking for $ac_func" >&5
17499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17500   echo $ac_n "(cached) $ac_c" 1>&6
17501 else
17502   cat > conftest.$ac_ext <<EOF
17503 #line 17504 "configure"
17504 #include "confdefs.h"
17505 /* System header to define __stub macros and hopefully few prototypes,
17506     which can conflict with char $ac_func(); below.  */
17507 #include <assert.h>
17508 /* Override any gcc2 internal prototype to avoid an error.  */
17509 /* We use char because int might match the return type of a gcc2
17510     builtin and then its argument prototype would still apply.  */
17511 char $ac_func();
17512
17513 int main() {
17514
17515 /* The GNU C library defines this for functions which it implements
17516     to always fail with ENOSYS.  Some functions are actually named
17517     something starting with __ and the normal name is an alias.  */
17518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17519 choke me
17520 #else
17521 $ac_func();
17522 #endif
17523
17524 ; return 0; }
17525 EOF
17526 if { (eval echo configure:17527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17527   rm -rf conftest*
17528   eval "ac_cv_func_$ac_func=yes"
17529 else
17530   echo "configure: failed program was:" >&5
17531   cat conftest.$ac_ext >&5
17532   rm -rf conftest*
17533   eval "ac_cv_func_$ac_func=no"
17534 fi
17535 rm -f conftest*
17536 fi
17537
17538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17539   echo "$ac_t""yes" 1>&6
17540     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17541   cat >> confdefs.h <<EOF
17542 #define $ac_tr_func 1
17543 EOF
17544  
17545 else
17546   echo "$ac_t""no" 1>&6
17547 fi
17548 done
17549     
17550     fi
17551   fi
17552
17553   
17554   
17555   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17556 echo "configure:17557: checking for fmodl declaration" >&5
17557   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
17558     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
17559   echo $ac_n "(cached) $ac_c" 1>&6
17560 else
17561   
17562       
17563       ac_ext=C
17564 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17565 ac_cpp='$CXXCPP $CPPFLAGS'
17566 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17567 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17568 cross_compiling=$ac_cv_prog_cxx_cross
17569
17570       cat > conftest.$ac_ext <<EOF
17571 #line 17572 "configure"
17572 #include "confdefs.h"
17573 #include <math.h>
17574 int main() {
17575  fmodl(0, 0);
17576 ; return 0; }
17577 EOF
17578 if { (eval echo configure:17579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17579   rm -rf conftest*
17580   glibcpp_cv_func_fmodl_use=yes
17581 else
17582   echo "configure: failed program was:" >&5
17583   cat conftest.$ac_ext >&5
17584   rm -rf conftest*
17585   glibcpp_cv_func_fmodl_use=no
17586 fi
17587 rm -f conftest*
17588       ac_ext=c
17589 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17590 ac_cpp='$CPP $CPPFLAGS'
17591 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17592 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17593 cross_compiling=$ac_cv_prog_cc_cross
17594
17595     
17596 fi
17597
17598   fi
17599   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
17600
17601   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
17602     for ac_func in fmodl
17603 do
17604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17605 echo "configure:17606: checking for $ac_func" >&5
17606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17607   echo $ac_n "(cached) $ac_c" 1>&6
17608 else
17609   cat > conftest.$ac_ext <<EOF
17610 #line 17611 "configure"
17611 #include "confdefs.h"
17612 /* System header to define __stub macros and hopefully few prototypes,
17613     which can conflict with char $ac_func(); below.  */
17614 #include <assert.h>
17615 /* Override any gcc2 internal prototype to avoid an error.  */
17616 /* We use char because int might match the return type of a gcc2
17617     builtin and then its argument prototype would still apply.  */
17618 char $ac_func();
17619
17620 int main() {
17621
17622 /* The GNU C library defines this for functions which it implements
17623     to always fail with ENOSYS.  Some functions are actually named
17624     something starting with __ and the normal name is an alias.  */
17625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17626 choke me
17627 #else
17628 $ac_func();
17629 #endif
17630
17631 ; return 0; }
17632 EOF
17633 if { (eval echo configure:17634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17634   rm -rf conftest*
17635   eval "ac_cv_func_$ac_func=yes"
17636 else
17637   echo "configure: failed program was:" >&5
17638   cat conftest.$ac_ext >&5
17639   rm -rf conftest*
17640   eval "ac_cv_func_$ac_func=no"
17641 fi
17642 rm -f conftest*
17643 fi
17644
17645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17646   echo "$ac_t""yes" 1>&6
17647     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17648   cat >> confdefs.h <<EOF
17649 #define $ac_tr_func 1
17650 EOF
17651  
17652 else
17653   echo "$ac_t""no" 1>&6
17654 fi
17655 done
17656     
17657   else
17658     
17659   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17660 echo "configure:17661: checking for _fmodl declaration" >&5
17661   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
17662     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
17663   echo $ac_n "(cached) $ac_c" 1>&6
17664 else
17665   
17666       
17667       ac_ext=C
17668 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17669 ac_cpp='$CXXCPP $CPPFLAGS'
17670 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17671 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17672 cross_compiling=$ac_cv_prog_cxx_cross
17673
17674       cat > conftest.$ac_ext <<EOF
17675 #line 17676 "configure"
17676 #include "confdefs.h"
17677 #include <math.h>
17678 int main() {
17679  _fmodl(0, 0);
17680 ; return 0; }
17681 EOF
17682 if { (eval echo configure:17683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17683   rm -rf conftest*
17684   glibcpp_cv_func__fmodl_use=yes
17685 else
17686   echo "configure: failed program was:" >&5
17687   cat conftest.$ac_ext >&5
17688   rm -rf conftest*
17689   glibcpp_cv_func__fmodl_use=no
17690 fi
17691 rm -f conftest*
17692       ac_ext=c
17693 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17694 ac_cpp='$CPP $CPPFLAGS'
17695 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17696 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17697 cross_compiling=$ac_cv_prog_cc_cross
17698
17699     
17700 fi
17701
17702   fi
17703   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
17704
17705     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
17706       for ac_func in _fmodl
17707 do
17708 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17709 echo "configure:17710: checking for $ac_func" >&5
17710 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17711   echo $ac_n "(cached) $ac_c" 1>&6
17712 else
17713   cat > conftest.$ac_ext <<EOF
17714 #line 17715 "configure"
17715 #include "confdefs.h"
17716 /* System header to define __stub macros and hopefully few prototypes,
17717     which can conflict with char $ac_func(); below.  */
17718 #include <assert.h>
17719 /* Override any gcc2 internal prototype to avoid an error.  */
17720 /* We use char because int might match the return type of a gcc2
17721     builtin and then its argument prototype would still apply.  */
17722 char $ac_func();
17723
17724 int main() {
17725
17726 /* The GNU C library defines this for functions which it implements
17727     to always fail with ENOSYS.  Some functions are actually named
17728     something starting with __ and the normal name is an alias.  */
17729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17730 choke me
17731 #else
17732 $ac_func();
17733 #endif
17734
17735 ; return 0; }
17736 EOF
17737 if { (eval echo configure:17738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17738   rm -rf conftest*
17739   eval "ac_cv_func_$ac_func=yes"
17740 else
17741   echo "configure: failed program was:" >&5
17742   cat conftest.$ac_ext >&5
17743   rm -rf conftest*
17744   eval "ac_cv_func_$ac_func=no"
17745 fi
17746 rm -f conftest*
17747 fi
17748
17749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17750   echo "$ac_t""yes" 1>&6
17751     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17752   cat >> confdefs.h <<EOF
17753 #define $ac_tr_func 1
17754 EOF
17755  
17756 else
17757   echo "$ac_t""no" 1>&6
17758 fi
17759 done
17760     
17761     fi
17762   fi
17763
17764   
17765   
17766   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
17767 echo "configure:17768: checking for frexpl declaration" >&5
17768   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
17769     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
17770   echo $ac_n "(cached) $ac_c" 1>&6
17771 else
17772   
17773       
17774       ac_ext=C
17775 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17776 ac_cpp='$CXXCPP $CPPFLAGS'
17777 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17778 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17779 cross_compiling=$ac_cv_prog_cxx_cross
17780
17781       cat > conftest.$ac_ext <<EOF
17782 #line 17783 "configure"
17783 #include "confdefs.h"
17784 #include <math.h>
17785 int main() {
17786  frexpl(0, 0);
17787 ; return 0; }
17788 EOF
17789 if { (eval echo configure:17790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17790   rm -rf conftest*
17791   glibcpp_cv_func_frexpl_use=yes
17792 else
17793   echo "configure: failed program was:" >&5
17794   cat conftest.$ac_ext >&5
17795   rm -rf conftest*
17796   glibcpp_cv_func_frexpl_use=no
17797 fi
17798 rm -f conftest*
17799       ac_ext=c
17800 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17801 ac_cpp='$CPP $CPPFLAGS'
17802 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17803 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17804 cross_compiling=$ac_cv_prog_cc_cross
17805
17806     
17807 fi
17808
17809   fi
17810   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
17811
17812   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
17813     for ac_func in frexpl
17814 do
17815 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17816 echo "configure:17817: checking for $ac_func" >&5
17817 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17818   echo $ac_n "(cached) $ac_c" 1>&6
17819 else
17820   cat > conftest.$ac_ext <<EOF
17821 #line 17822 "configure"
17822 #include "confdefs.h"
17823 /* System header to define __stub macros and hopefully few prototypes,
17824     which can conflict with char $ac_func(); below.  */
17825 #include <assert.h>
17826 /* Override any gcc2 internal prototype to avoid an error.  */
17827 /* We use char because int might match the return type of a gcc2
17828     builtin and then its argument prototype would still apply.  */
17829 char $ac_func();
17830
17831 int main() {
17832
17833 /* The GNU C library defines this for functions which it implements
17834     to always fail with ENOSYS.  Some functions are actually named
17835     something starting with __ and the normal name is an alias.  */
17836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17837 choke me
17838 #else
17839 $ac_func();
17840 #endif
17841
17842 ; return 0; }
17843 EOF
17844 if { (eval echo configure:17845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17845   rm -rf conftest*
17846   eval "ac_cv_func_$ac_func=yes"
17847 else
17848   echo "configure: failed program was:" >&5
17849   cat conftest.$ac_ext >&5
17850   rm -rf conftest*
17851   eval "ac_cv_func_$ac_func=no"
17852 fi
17853 rm -f conftest*
17854 fi
17855
17856 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17857   echo "$ac_t""yes" 1>&6
17858     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17859   cat >> confdefs.h <<EOF
17860 #define $ac_tr_func 1
17861 EOF
17862  
17863 else
17864   echo "$ac_t""no" 1>&6
17865 fi
17866 done
17867     
17868   else
17869     
17870   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
17871 echo "configure:17872: checking for _frexpl declaration" >&5
17872   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
17873     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
17874   echo $ac_n "(cached) $ac_c" 1>&6
17875 else
17876   
17877       
17878       ac_ext=C
17879 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17880 ac_cpp='$CXXCPP $CPPFLAGS'
17881 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17882 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17883 cross_compiling=$ac_cv_prog_cxx_cross
17884
17885       cat > conftest.$ac_ext <<EOF
17886 #line 17887 "configure"
17887 #include "confdefs.h"
17888 #include <math.h>
17889 int main() {
17890  _frexpl(0, 0);
17891 ; return 0; }
17892 EOF
17893 if { (eval echo configure:17894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17894   rm -rf conftest*
17895   glibcpp_cv_func__frexpl_use=yes
17896 else
17897   echo "configure: failed program was:" >&5
17898   cat conftest.$ac_ext >&5
17899   rm -rf conftest*
17900   glibcpp_cv_func__frexpl_use=no
17901 fi
17902 rm -f conftest*
17903       ac_ext=c
17904 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17905 ac_cpp='$CPP $CPPFLAGS'
17906 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17907 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17908 cross_compiling=$ac_cv_prog_cc_cross
17909
17910     
17911 fi
17912
17913   fi
17914   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
17915
17916     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
17917       for ac_func in _frexpl
17918 do
17919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17920 echo "configure:17921: checking for $ac_func" >&5
17921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17922   echo $ac_n "(cached) $ac_c" 1>&6
17923 else
17924   cat > conftest.$ac_ext <<EOF
17925 #line 17926 "configure"
17926 #include "confdefs.h"
17927 /* System header to define __stub macros and hopefully few prototypes,
17928     which can conflict with char $ac_func(); below.  */
17929 #include <assert.h>
17930 /* Override any gcc2 internal prototype to avoid an error.  */
17931 /* We use char because int might match the return type of a gcc2
17932     builtin and then its argument prototype would still apply.  */
17933 char $ac_func();
17934
17935 int main() {
17936
17937 /* The GNU C library defines this for functions which it implements
17938     to always fail with ENOSYS.  Some functions are actually named
17939     something starting with __ and the normal name is an alias.  */
17940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17941 choke me
17942 #else
17943 $ac_func();
17944 #endif
17945
17946 ; return 0; }
17947 EOF
17948 if { (eval echo configure:17949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17949   rm -rf conftest*
17950   eval "ac_cv_func_$ac_func=yes"
17951 else
17952   echo "configure: failed program was:" >&5
17953   cat conftest.$ac_ext >&5
17954   rm -rf conftest*
17955   eval "ac_cv_func_$ac_func=no"
17956 fi
17957 rm -f conftest*
17958 fi
17959
17960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17961   echo "$ac_t""yes" 1>&6
17962     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17963   cat >> confdefs.h <<EOF
17964 #define $ac_tr_func 1
17965 EOF
17966  
17967 else
17968   echo "$ac_t""no" 1>&6
17969 fi
17970 done
17971     
17972     fi
17973   fi
17974
17975   
17976   
17977   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
17978 echo "configure:17979: checking for hypotl declaration" >&5
17979   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
17980     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
17981   echo $ac_n "(cached) $ac_c" 1>&6
17982 else
17983   
17984       
17985       ac_ext=C
17986 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17987 ac_cpp='$CXXCPP $CPPFLAGS'
17988 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17989 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17990 cross_compiling=$ac_cv_prog_cxx_cross
17991
17992       cat > conftest.$ac_ext <<EOF
17993 #line 17994 "configure"
17994 #include "confdefs.h"
17995 #include <math.h>
17996 int main() {
17997  hypotl(0, 0);
17998 ; return 0; }
17999 EOF
18000 if { (eval echo configure:18001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18001   rm -rf conftest*
18002   glibcpp_cv_func_hypotl_use=yes
18003 else
18004   echo "configure: failed program was:" >&5
18005   cat conftest.$ac_ext >&5
18006   rm -rf conftest*
18007   glibcpp_cv_func_hypotl_use=no
18008 fi
18009 rm -f conftest*
18010       ac_ext=c
18011 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18012 ac_cpp='$CPP $CPPFLAGS'
18013 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18014 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18015 cross_compiling=$ac_cv_prog_cc_cross
18016
18017     
18018 fi
18019
18020   fi
18021   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
18022
18023   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
18024     for ac_func in hypotl
18025 do
18026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18027 echo "configure:18028: checking for $ac_func" >&5
18028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18029   echo $ac_n "(cached) $ac_c" 1>&6
18030 else
18031   cat > conftest.$ac_ext <<EOF
18032 #line 18033 "configure"
18033 #include "confdefs.h"
18034 /* System header to define __stub macros and hopefully few prototypes,
18035     which can conflict with char $ac_func(); below.  */
18036 #include <assert.h>
18037 /* Override any gcc2 internal prototype to avoid an error.  */
18038 /* We use char because int might match the return type of a gcc2
18039     builtin and then its argument prototype would still apply.  */
18040 char $ac_func();
18041
18042 int main() {
18043
18044 /* The GNU C library defines this for functions which it implements
18045     to always fail with ENOSYS.  Some functions are actually named
18046     something starting with __ and the normal name is an alias.  */
18047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18048 choke me
18049 #else
18050 $ac_func();
18051 #endif
18052
18053 ; return 0; }
18054 EOF
18055 if { (eval echo configure:18056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18056   rm -rf conftest*
18057   eval "ac_cv_func_$ac_func=yes"
18058 else
18059   echo "configure: failed program was:" >&5
18060   cat conftest.$ac_ext >&5
18061   rm -rf conftest*
18062   eval "ac_cv_func_$ac_func=no"
18063 fi
18064 rm -f conftest*
18065 fi
18066
18067 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18068   echo "$ac_t""yes" 1>&6
18069     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18070   cat >> confdefs.h <<EOF
18071 #define $ac_tr_func 1
18072 EOF
18073  
18074 else
18075   echo "$ac_t""no" 1>&6
18076 fi
18077 done
18078     
18079   else
18080     
18081   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18082 echo "configure:18083: checking for _hypotl declaration" >&5
18083   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
18084     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
18085   echo $ac_n "(cached) $ac_c" 1>&6
18086 else
18087   
18088       
18089       ac_ext=C
18090 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18091 ac_cpp='$CXXCPP $CPPFLAGS'
18092 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18093 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18094 cross_compiling=$ac_cv_prog_cxx_cross
18095
18096       cat > conftest.$ac_ext <<EOF
18097 #line 18098 "configure"
18098 #include "confdefs.h"
18099 #include <math.h>
18100 int main() {
18101  _hypotl(0, 0);
18102 ; return 0; }
18103 EOF
18104 if { (eval echo configure:18105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18105   rm -rf conftest*
18106   glibcpp_cv_func__hypotl_use=yes
18107 else
18108   echo "configure: failed program was:" >&5
18109   cat conftest.$ac_ext >&5
18110   rm -rf conftest*
18111   glibcpp_cv_func__hypotl_use=no
18112 fi
18113 rm -f conftest*
18114       ac_ext=c
18115 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18116 ac_cpp='$CPP $CPPFLAGS'
18117 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18118 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18119 cross_compiling=$ac_cv_prog_cc_cross
18120
18121     
18122 fi
18123
18124   fi
18125   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
18126
18127     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
18128       for ac_func in _hypotl
18129 do
18130 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18131 echo "configure:18132: checking for $ac_func" >&5
18132 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18133   echo $ac_n "(cached) $ac_c" 1>&6
18134 else
18135   cat > conftest.$ac_ext <<EOF
18136 #line 18137 "configure"
18137 #include "confdefs.h"
18138 /* System header to define __stub macros and hopefully few prototypes,
18139     which can conflict with char $ac_func(); below.  */
18140 #include <assert.h>
18141 /* Override any gcc2 internal prototype to avoid an error.  */
18142 /* We use char because int might match the return type of a gcc2
18143     builtin and then its argument prototype would still apply.  */
18144 char $ac_func();
18145
18146 int main() {
18147
18148 /* The GNU C library defines this for functions which it implements
18149     to always fail with ENOSYS.  Some functions are actually named
18150     something starting with __ and the normal name is an alias.  */
18151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18152 choke me
18153 #else
18154 $ac_func();
18155 #endif
18156
18157 ; return 0; }
18158 EOF
18159 if { (eval echo configure:18160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18160   rm -rf conftest*
18161   eval "ac_cv_func_$ac_func=yes"
18162 else
18163   echo "configure: failed program was:" >&5
18164   cat conftest.$ac_ext >&5
18165   rm -rf conftest*
18166   eval "ac_cv_func_$ac_func=no"
18167 fi
18168 rm -f conftest*
18169 fi
18170
18171 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18172   echo "$ac_t""yes" 1>&6
18173     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18174   cat >> confdefs.h <<EOF
18175 #define $ac_tr_func 1
18176 EOF
18177  
18178 else
18179   echo "$ac_t""no" 1>&6
18180 fi
18181 done
18182     
18183     fi
18184   fi
18185
18186   
18187   
18188   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18189 echo "configure:18190: checking for ldexpl declaration" >&5
18190   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
18191     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
18192   echo $ac_n "(cached) $ac_c" 1>&6
18193 else
18194   
18195       
18196       ac_ext=C
18197 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18198 ac_cpp='$CXXCPP $CPPFLAGS'
18199 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18200 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18201 cross_compiling=$ac_cv_prog_cxx_cross
18202
18203       cat > conftest.$ac_ext <<EOF
18204 #line 18205 "configure"
18205 #include "confdefs.h"
18206 #include <math.h>
18207 int main() {
18208  ldexpl(0, 0);
18209 ; return 0; }
18210 EOF
18211 if { (eval echo configure:18212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18212   rm -rf conftest*
18213   glibcpp_cv_func_ldexpl_use=yes
18214 else
18215   echo "configure: failed program was:" >&5
18216   cat conftest.$ac_ext >&5
18217   rm -rf conftest*
18218   glibcpp_cv_func_ldexpl_use=no
18219 fi
18220 rm -f conftest*
18221       ac_ext=c
18222 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18223 ac_cpp='$CPP $CPPFLAGS'
18224 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18225 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18226 cross_compiling=$ac_cv_prog_cc_cross
18227
18228     
18229 fi
18230
18231   fi
18232   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
18233
18234   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
18235     for ac_func in ldexpl
18236 do
18237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18238 echo "configure:18239: checking for $ac_func" >&5
18239 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18240   echo $ac_n "(cached) $ac_c" 1>&6
18241 else
18242   cat > conftest.$ac_ext <<EOF
18243 #line 18244 "configure"
18244 #include "confdefs.h"
18245 /* System header to define __stub macros and hopefully few prototypes,
18246     which can conflict with char $ac_func(); below.  */
18247 #include <assert.h>
18248 /* Override any gcc2 internal prototype to avoid an error.  */
18249 /* We use char because int might match the return type of a gcc2
18250     builtin and then its argument prototype would still apply.  */
18251 char $ac_func();
18252
18253 int main() {
18254
18255 /* The GNU C library defines this for functions which it implements
18256     to always fail with ENOSYS.  Some functions are actually named
18257     something starting with __ and the normal name is an alias.  */
18258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18259 choke me
18260 #else
18261 $ac_func();
18262 #endif
18263
18264 ; return 0; }
18265 EOF
18266 if { (eval echo configure:18267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18267   rm -rf conftest*
18268   eval "ac_cv_func_$ac_func=yes"
18269 else
18270   echo "configure: failed program was:" >&5
18271   cat conftest.$ac_ext >&5
18272   rm -rf conftest*
18273   eval "ac_cv_func_$ac_func=no"
18274 fi
18275 rm -f conftest*
18276 fi
18277
18278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18279   echo "$ac_t""yes" 1>&6
18280     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18281   cat >> confdefs.h <<EOF
18282 #define $ac_tr_func 1
18283 EOF
18284  
18285 else
18286   echo "$ac_t""no" 1>&6
18287 fi
18288 done
18289     
18290   else
18291     
18292   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18293 echo "configure:18294: checking for _ldexpl declaration" >&5
18294   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
18295     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
18296   echo $ac_n "(cached) $ac_c" 1>&6
18297 else
18298   
18299       
18300       ac_ext=C
18301 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18302 ac_cpp='$CXXCPP $CPPFLAGS'
18303 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18304 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18305 cross_compiling=$ac_cv_prog_cxx_cross
18306
18307       cat > conftest.$ac_ext <<EOF
18308 #line 18309 "configure"
18309 #include "confdefs.h"
18310 #include <math.h>
18311 int main() {
18312  _ldexpl(0, 0);
18313 ; return 0; }
18314 EOF
18315 if { (eval echo configure:18316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18316   rm -rf conftest*
18317   glibcpp_cv_func__ldexpl_use=yes
18318 else
18319   echo "configure: failed program was:" >&5
18320   cat conftest.$ac_ext >&5
18321   rm -rf conftest*
18322   glibcpp_cv_func__ldexpl_use=no
18323 fi
18324 rm -f conftest*
18325       ac_ext=c
18326 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18327 ac_cpp='$CPP $CPPFLAGS'
18328 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18329 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18330 cross_compiling=$ac_cv_prog_cc_cross
18331
18332     
18333 fi
18334
18335   fi
18336   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
18337
18338     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
18339       for ac_func in _ldexpl
18340 do
18341 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18342 echo "configure:18343: checking for $ac_func" >&5
18343 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18344   echo $ac_n "(cached) $ac_c" 1>&6
18345 else
18346   cat > conftest.$ac_ext <<EOF
18347 #line 18348 "configure"
18348 #include "confdefs.h"
18349 /* System header to define __stub macros and hopefully few prototypes,
18350     which can conflict with char $ac_func(); below.  */
18351 #include <assert.h>
18352 /* Override any gcc2 internal prototype to avoid an error.  */
18353 /* We use char because int might match the return type of a gcc2
18354     builtin and then its argument prototype would still apply.  */
18355 char $ac_func();
18356
18357 int main() {
18358
18359 /* The GNU C library defines this for functions which it implements
18360     to always fail with ENOSYS.  Some functions are actually named
18361     something starting with __ and the normal name is an alias.  */
18362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18363 choke me
18364 #else
18365 $ac_func();
18366 #endif
18367
18368 ; return 0; }
18369 EOF
18370 if { (eval echo configure:18371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18371   rm -rf conftest*
18372   eval "ac_cv_func_$ac_func=yes"
18373 else
18374   echo "configure: failed program was:" >&5
18375   cat conftest.$ac_ext >&5
18376   rm -rf conftest*
18377   eval "ac_cv_func_$ac_func=no"
18378 fi
18379 rm -f conftest*
18380 fi
18381
18382 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18383   echo "$ac_t""yes" 1>&6
18384     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18385   cat >> confdefs.h <<EOF
18386 #define $ac_tr_func 1
18387 EOF
18388  
18389 else
18390   echo "$ac_t""no" 1>&6
18391 fi
18392 done
18393     
18394     fi
18395   fi
18396
18397   
18398   
18399   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18400 echo "configure:18401: checking for logl declaration" >&5
18401   if test x${glibcpp_cv_func_logl_use+set} != xset; then
18402     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
18403   echo $ac_n "(cached) $ac_c" 1>&6
18404 else
18405   
18406       
18407       ac_ext=C
18408 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18409 ac_cpp='$CXXCPP $CPPFLAGS'
18410 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18411 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18412 cross_compiling=$ac_cv_prog_cxx_cross
18413
18414       cat > conftest.$ac_ext <<EOF
18415 #line 18416 "configure"
18416 #include "confdefs.h"
18417 #include <math.h>
18418                       #ifdef HAVE_IEEEFP_H
18419                       #include <ieeefp.h>
18420                       #endif
18421                      
18422 int main() {
18423  logl(0);
18424 ; return 0; }
18425 EOF
18426 if { (eval echo configure:18427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18427   rm -rf conftest*
18428   glibcpp_cv_func_logl_use=yes
18429 else
18430   echo "configure: failed program was:" >&5
18431   cat conftest.$ac_ext >&5
18432   rm -rf conftest*
18433   glibcpp_cv_func_logl_use=no
18434 fi
18435 rm -f conftest*
18436       ac_ext=c
18437 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18438 ac_cpp='$CPP $CPPFLAGS'
18439 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18440 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18441 cross_compiling=$ac_cv_prog_cc_cross
18442
18443     
18444 fi
18445
18446   fi
18447   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
18448
18449   if test x$glibcpp_cv_func_logl_use = x"yes"; then
18450     for ac_func in logl
18451 do
18452 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18453 echo "configure:18454: checking for $ac_func" >&5
18454 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18455   echo $ac_n "(cached) $ac_c" 1>&6
18456 else
18457   cat > conftest.$ac_ext <<EOF
18458 #line 18459 "configure"
18459 #include "confdefs.h"
18460 /* System header to define __stub macros and hopefully few prototypes,
18461     which can conflict with char $ac_func(); below.  */
18462 #include <assert.h>
18463 /* Override any gcc2 internal prototype to avoid an error.  */
18464 /* We use char because int might match the return type of a gcc2
18465     builtin and then its argument prototype would still apply.  */
18466 char $ac_func();
18467
18468 int main() {
18469
18470 /* The GNU C library defines this for functions which it implements
18471     to always fail with ENOSYS.  Some functions are actually named
18472     something starting with __ and the normal name is an alias.  */
18473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18474 choke me
18475 #else
18476 $ac_func();
18477 #endif
18478
18479 ; return 0; }
18480 EOF
18481 if { (eval echo configure:18482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18482   rm -rf conftest*
18483   eval "ac_cv_func_$ac_func=yes"
18484 else
18485   echo "configure: failed program was:" >&5
18486   cat conftest.$ac_ext >&5
18487   rm -rf conftest*
18488   eval "ac_cv_func_$ac_func=no"
18489 fi
18490 rm -f conftest*
18491 fi
18492
18493 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18494   echo "$ac_t""yes" 1>&6
18495     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18496   cat >> confdefs.h <<EOF
18497 #define $ac_tr_func 1
18498 EOF
18499  
18500 else
18501   echo "$ac_t""no" 1>&6
18502 fi
18503 done
18504     
18505   else
18506     
18507   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18508 echo "configure:18509: checking for _logl declaration" >&5
18509   if test x${glibcpp_cv_func__logl_use+set} != xset; then
18510     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
18511   echo $ac_n "(cached) $ac_c" 1>&6
18512 else
18513   
18514       
18515       ac_ext=C
18516 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18517 ac_cpp='$CXXCPP $CPPFLAGS'
18518 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18519 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18520 cross_compiling=$ac_cv_prog_cxx_cross
18521
18522       cat > conftest.$ac_ext <<EOF
18523 #line 18524 "configure"
18524 #include "confdefs.h"
18525 #include <math.h>
18526                       #ifdef HAVE_IEEEFP_H
18527                       #include <ieeefp.h>
18528                       #endif
18529                      
18530 int main() {
18531  _logl(0);
18532 ; return 0; }
18533 EOF
18534 if { (eval echo configure:18535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18535   rm -rf conftest*
18536   glibcpp_cv_func__logl_use=yes
18537 else
18538   echo "configure: failed program was:" >&5
18539   cat conftest.$ac_ext >&5
18540   rm -rf conftest*
18541   glibcpp_cv_func__logl_use=no
18542 fi
18543 rm -f conftest*
18544       ac_ext=c
18545 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18546 ac_cpp='$CPP $CPPFLAGS'
18547 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18548 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18549 cross_compiling=$ac_cv_prog_cc_cross
18550
18551     
18552 fi
18553
18554   fi
18555   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
18556
18557     if test x$glibcpp_cv_func__logl_use = x"yes"; then
18558       for ac_func in _logl
18559 do
18560 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18561 echo "configure:18562: checking for $ac_func" >&5
18562 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18563   echo $ac_n "(cached) $ac_c" 1>&6
18564 else
18565   cat > conftest.$ac_ext <<EOF
18566 #line 18567 "configure"
18567 #include "confdefs.h"
18568 /* System header to define __stub macros and hopefully few prototypes,
18569     which can conflict with char $ac_func(); below.  */
18570 #include <assert.h>
18571 /* Override any gcc2 internal prototype to avoid an error.  */
18572 /* We use char because int might match the return type of a gcc2
18573     builtin and then its argument prototype would still apply.  */
18574 char $ac_func();
18575
18576 int main() {
18577
18578 /* The GNU C library defines this for functions which it implements
18579     to always fail with ENOSYS.  Some functions are actually named
18580     something starting with __ and the normal name is an alias.  */
18581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18582 choke me
18583 #else
18584 $ac_func();
18585 #endif
18586
18587 ; return 0; }
18588 EOF
18589 if { (eval echo configure:18590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18590   rm -rf conftest*
18591   eval "ac_cv_func_$ac_func=yes"
18592 else
18593   echo "configure: failed program was:" >&5
18594   cat conftest.$ac_ext >&5
18595   rm -rf conftest*
18596   eval "ac_cv_func_$ac_func=no"
18597 fi
18598 rm -f conftest*
18599 fi
18600
18601 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18602   echo "$ac_t""yes" 1>&6
18603     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18604   cat >> confdefs.h <<EOF
18605 #define $ac_tr_func 1
18606 EOF
18607  
18608 else
18609   echo "$ac_t""no" 1>&6
18610 fi
18611 done
18612     
18613     fi
18614   fi
18615
18616   
18617   
18618   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18619 echo "configure:18620: checking for log10l declaration" >&5
18620   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
18621     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
18622   echo $ac_n "(cached) $ac_c" 1>&6
18623 else
18624   
18625       
18626       ac_ext=C
18627 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18628 ac_cpp='$CXXCPP $CPPFLAGS'
18629 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18630 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18631 cross_compiling=$ac_cv_prog_cxx_cross
18632
18633       cat > conftest.$ac_ext <<EOF
18634 #line 18635 "configure"
18635 #include "confdefs.h"
18636 #include <math.h>
18637                       #ifdef HAVE_IEEEFP_H
18638                       #include <ieeefp.h>
18639                       #endif
18640                      
18641 int main() {
18642  log10l(0);
18643 ; return 0; }
18644 EOF
18645 if { (eval echo configure:18646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18646   rm -rf conftest*
18647   glibcpp_cv_func_log10l_use=yes
18648 else
18649   echo "configure: failed program was:" >&5
18650   cat conftest.$ac_ext >&5
18651   rm -rf conftest*
18652   glibcpp_cv_func_log10l_use=no
18653 fi
18654 rm -f conftest*
18655       ac_ext=c
18656 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18657 ac_cpp='$CPP $CPPFLAGS'
18658 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18659 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18660 cross_compiling=$ac_cv_prog_cc_cross
18661
18662     
18663 fi
18664
18665   fi
18666   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
18667
18668   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
18669     for ac_func in log10l
18670 do
18671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18672 echo "configure:18673: checking for $ac_func" >&5
18673 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18674   echo $ac_n "(cached) $ac_c" 1>&6
18675 else
18676   cat > conftest.$ac_ext <<EOF
18677 #line 18678 "configure"
18678 #include "confdefs.h"
18679 /* System header to define __stub macros and hopefully few prototypes,
18680     which can conflict with char $ac_func(); below.  */
18681 #include <assert.h>
18682 /* Override any gcc2 internal prototype to avoid an error.  */
18683 /* We use char because int might match the return type of a gcc2
18684     builtin and then its argument prototype would still apply.  */
18685 char $ac_func();
18686
18687 int main() {
18688
18689 /* The GNU C library defines this for functions which it implements
18690     to always fail with ENOSYS.  Some functions are actually named
18691     something starting with __ and the normal name is an alias.  */
18692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18693 choke me
18694 #else
18695 $ac_func();
18696 #endif
18697
18698 ; return 0; }
18699 EOF
18700 if { (eval echo configure:18701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18701   rm -rf conftest*
18702   eval "ac_cv_func_$ac_func=yes"
18703 else
18704   echo "configure: failed program was:" >&5
18705   cat conftest.$ac_ext >&5
18706   rm -rf conftest*
18707   eval "ac_cv_func_$ac_func=no"
18708 fi
18709 rm -f conftest*
18710 fi
18711
18712 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18713   echo "$ac_t""yes" 1>&6
18714     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18715   cat >> confdefs.h <<EOF
18716 #define $ac_tr_func 1
18717 EOF
18718  
18719 else
18720   echo "$ac_t""no" 1>&6
18721 fi
18722 done
18723     
18724   else
18725     
18726   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18727 echo "configure:18728: checking for _log10l declaration" >&5
18728   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
18729     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
18730   echo $ac_n "(cached) $ac_c" 1>&6
18731 else
18732   
18733       
18734       ac_ext=C
18735 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18736 ac_cpp='$CXXCPP $CPPFLAGS'
18737 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18738 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18739 cross_compiling=$ac_cv_prog_cxx_cross
18740
18741       cat > conftest.$ac_ext <<EOF
18742 #line 18743 "configure"
18743 #include "confdefs.h"
18744 #include <math.h>
18745                       #ifdef HAVE_IEEEFP_H
18746                       #include <ieeefp.h>
18747                       #endif
18748                      
18749 int main() {
18750  _log10l(0);
18751 ; return 0; }
18752 EOF
18753 if { (eval echo configure:18754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18754   rm -rf conftest*
18755   glibcpp_cv_func__log10l_use=yes
18756 else
18757   echo "configure: failed program was:" >&5
18758   cat conftest.$ac_ext >&5
18759   rm -rf conftest*
18760   glibcpp_cv_func__log10l_use=no
18761 fi
18762 rm -f conftest*
18763       ac_ext=c
18764 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18765 ac_cpp='$CPP $CPPFLAGS'
18766 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18767 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18768 cross_compiling=$ac_cv_prog_cc_cross
18769
18770     
18771 fi
18772
18773   fi
18774   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
18775
18776     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
18777       for ac_func in _log10l
18778 do
18779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18780 echo "configure:18781: checking for $ac_func" >&5
18781 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18782   echo $ac_n "(cached) $ac_c" 1>&6
18783 else
18784   cat > conftest.$ac_ext <<EOF
18785 #line 18786 "configure"
18786 #include "confdefs.h"
18787 /* System header to define __stub macros and hopefully few prototypes,
18788     which can conflict with char $ac_func(); below.  */
18789 #include <assert.h>
18790 /* Override any gcc2 internal prototype to avoid an error.  */
18791 /* We use char because int might match the return type of a gcc2
18792     builtin and then its argument prototype would still apply.  */
18793 char $ac_func();
18794
18795 int main() {
18796
18797 /* The GNU C library defines this for functions which it implements
18798     to always fail with ENOSYS.  Some functions are actually named
18799     something starting with __ and the normal name is an alias.  */
18800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18801 choke me
18802 #else
18803 $ac_func();
18804 #endif
18805
18806 ; return 0; }
18807 EOF
18808 if { (eval echo configure:18809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18809   rm -rf conftest*
18810   eval "ac_cv_func_$ac_func=yes"
18811 else
18812   echo "configure: failed program was:" >&5
18813   cat conftest.$ac_ext >&5
18814   rm -rf conftest*
18815   eval "ac_cv_func_$ac_func=no"
18816 fi
18817 rm -f conftest*
18818 fi
18819
18820 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18821   echo "$ac_t""yes" 1>&6
18822     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18823   cat >> confdefs.h <<EOF
18824 #define $ac_tr_func 1
18825 EOF
18826  
18827 else
18828   echo "$ac_t""no" 1>&6
18829 fi
18830 done
18831     
18832     fi
18833   fi
18834
18835   
18836   
18837   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
18838 echo "configure:18839: checking for modfl declaration" >&5
18839   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
18840     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
18841   echo $ac_n "(cached) $ac_c" 1>&6
18842 else
18843   
18844       
18845       ac_ext=C
18846 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18847 ac_cpp='$CXXCPP $CPPFLAGS'
18848 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18849 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18850 cross_compiling=$ac_cv_prog_cxx_cross
18851
18852       cat > conftest.$ac_ext <<EOF
18853 #line 18854 "configure"
18854 #include "confdefs.h"
18855 #include <math.h>
18856 int main() {
18857  modfl(0, 0);
18858 ; return 0; }
18859 EOF
18860 if { (eval echo configure:18861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18861   rm -rf conftest*
18862   glibcpp_cv_func_modfl_use=yes
18863 else
18864   echo "configure: failed program was:" >&5
18865   cat conftest.$ac_ext >&5
18866   rm -rf conftest*
18867   glibcpp_cv_func_modfl_use=no
18868 fi
18869 rm -f conftest*
18870       ac_ext=c
18871 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18872 ac_cpp='$CPP $CPPFLAGS'
18873 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18874 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18875 cross_compiling=$ac_cv_prog_cc_cross
18876
18877     
18878 fi
18879
18880   fi
18881   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
18882
18883   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
18884     for ac_func in modfl
18885 do
18886 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18887 echo "configure:18888: checking for $ac_func" >&5
18888 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18889   echo $ac_n "(cached) $ac_c" 1>&6
18890 else
18891   cat > conftest.$ac_ext <<EOF
18892 #line 18893 "configure"
18893 #include "confdefs.h"
18894 /* System header to define __stub macros and hopefully few prototypes,
18895     which can conflict with char $ac_func(); below.  */
18896 #include <assert.h>
18897 /* Override any gcc2 internal prototype to avoid an error.  */
18898 /* We use char because int might match the return type of a gcc2
18899     builtin and then its argument prototype would still apply.  */
18900 char $ac_func();
18901
18902 int main() {
18903
18904 /* The GNU C library defines this for functions which it implements
18905     to always fail with ENOSYS.  Some functions are actually named
18906     something starting with __ and the normal name is an alias.  */
18907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18908 choke me
18909 #else
18910 $ac_func();
18911 #endif
18912
18913 ; return 0; }
18914 EOF
18915 if { (eval echo configure:18916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18916   rm -rf conftest*
18917   eval "ac_cv_func_$ac_func=yes"
18918 else
18919   echo "configure: failed program was:" >&5
18920   cat conftest.$ac_ext >&5
18921   rm -rf conftest*
18922   eval "ac_cv_func_$ac_func=no"
18923 fi
18924 rm -f conftest*
18925 fi
18926
18927 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18928   echo "$ac_t""yes" 1>&6
18929     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18930   cat >> confdefs.h <<EOF
18931 #define $ac_tr_func 1
18932 EOF
18933  
18934 else
18935   echo "$ac_t""no" 1>&6
18936 fi
18937 done
18938     
18939   else
18940     
18941   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
18942 echo "configure:18943: checking for _modfl declaration" >&5
18943   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
18944     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
18945   echo $ac_n "(cached) $ac_c" 1>&6
18946 else
18947   
18948       
18949       ac_ext=C
18950 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18951 ac_cpp='$CXXCPP $CPPFLAGS'
18952 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18953 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18954 cross_compiling=$ac_cv_prog_cxx_cross
18955
18956       cat > conftest.$ac_ext <<EOF
18957 #line 18958 "configure"
18958 #include "confdefs.h"
18959 #include <math.h>
18960 int main() {
18961  _modfl(0, 0);
18962 ; return 0; }
18963 EOF
18964 if { (eval echo configure:18965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18965   rm -rf conftest*
18966   glibcpp_cv_func__modfl_use=yes
18967 else
18968   echo "configure: failed program was:" >&5
18969   cat conftest.$ac_ext >&5
18970   rm -rf conftest*
18971   glibcpp_cv_func__modfl_use=no
18972 fi
18973 rm -f conftest*
18974       ac_ext=c
18975 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18976 ac_cpp='$CPP $CPPFLAGS'
18977 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18978 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18979 cross_compiling=$ac_cv_prog_cc_cross
18980
18981     
18982 fi
18983
18984   fi
18985   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
18986
18987     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
18988       for ac_func in _modfl
18989 do
18990 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18991 echo "configure:18992: checking for $ac_func" >&5
18992 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18993   echo $ac_n "(cached) $ac_c" 1>&6
18994 else
18995   cat > conftest.$ac_ext <<EOF
18996 #line 18997 "configure"
18997 #include "confdefs.h"
18998 /* System header to define __stub macros and hopefully few prototypes,
18999     which can conflict with char $ac_func(); below.  */
19000 #include <assert.h>
19001 /* Override any gcc2 internal prototype to avoid an error.  */
19002 /* We use char because int might match the return type of a gcc2
19003     builtin and then its argument prototype would still apply.  */
19004 char $ac_func();
19005
19006 int main() {
19007
19008 /* The GNU C library defines this for functions which it implements
19009     to always fail with ENOSYS.  Some functions are actually named
19010     something starting with __ and the normal name is an alias.  */
19011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19012 choke me
19013 #else
19014 $ac_func();
19015 #endif
19016
19017 ; return 0; }
19018 EOF
19019 if { (eval echo configure:19020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19020   rm -rf conftest*
19021   eval "ac_cv_func_$ac_func=yes"
19022 else
19023   echo "configure: failed program was:" >&5
19024   cat conftest.$ac_ext >&5
19025   rm -rf conftest*
19026   eval "ac_cv_func_$ac_func=no"
19027 fi
19028 rm -f conftest*
19029 fi
19030
19031 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19032   echo "$ac_t""yes" 1>&6
19033     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19034   cat >> confdefs.h <<EOF
19035 #define $ac_tr_func 1
19036 EOF
19037  
19038 else
19039   echo "$ac_t""no" 1>&6
19040 fi
19041 done
19042     
19043     fi
19044   fi
19045
19046   
19047   
19048   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19049 echo "configure:19050: checking for powl declaration" >&5
19050   if test x${glibcpp_cv_func_powl_use+set} != xset; then
19051     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
19052   echo $ac_n "(cached) $ac_c" 1>&6
19053 else
19054   
19055       
19056       ac_ext=C
19057 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19058 ac_cpp='$CXXCPP $CPPFLAGS'
19059 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19060 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19061 cross_compiling=$ac_cv_prog_cxx_cross
19062
19063       cat > conftest.$ac_ext <<EOF
19064 #line 19065 "configure"
19065 #include "confdefs.h"
19066 #include <math.h>
19067 int main() {
19068  powl(0, 0);
19069 ; return 0; }
19070 EOF
19071 if { (eval echo configure:19072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19072   rm -rf conftest*
19073   glibcpp_cv_func_powl_use=yes
19074 else
19075   echo "configure: failed program was:" >&5
19076   cat conftest.$ac_ext >&5
19077   rm -rf conftest*
19078   glibcpp_cv_func_powl_use=no
19079 fi
19080 rm -f conftest*
19081       ac_ext=c
19082 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19083 ac_cpp='$CPP $CPPFLAGS'
19084 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19085 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19086 cross_compiling=$ac_cv_prog_cc_cross
19087
19088     
19089 fi
19090
19091   fi
19092   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
19093
19094   if test x$glibcpp_cv_func_powl_use = x"yes"; then
19095     for ac_func in powl
19096 do
19097 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19098 echo "configure:19099: checking for $ac_func" >&5
19099 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19100   echo $ac_n "(cached) $ac_c" 1>&6
19101 else
19102   cat > conftest.$ac_ext <<EOF
19103 #line 19104 "configure"
19104 #include "confdefs.h"
19105 /* System header to define __stub macros and hopefully few prototypes,
19106     which can conflict with char $ac_func(); below.  */
19107 #include <assert.h>
19108 /* Override any gcc2 internal prototype to avoid an error.  */
19109 /* We use char because int might match the return type of a gcc2
19110     builtin and then its argument prototype would still apply.  */
19111 char $ac_func();
19112
19113 int main() {
19114
19115 /* The GNU C library defines this for functions which it implements
19116     to always fail with ENOSYS.  Some functions are actually named
19117     something starting with __ and the normal name is an alias.  */
19118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19119 choke me
19120 #else
19121 $ac_func();
19122 #endif
19123
19124 ; return 0; }
19125 EOF
19126 if { (eval echo configure:19127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19127   rm -rf conftest*
19128   eval "ac_cv_func_$ac_func=yes"
19129 else
19130   echo "configure: failed program was:" >&5
19131   cat conftest.$ac_ext >&5
19132   rm -rf conftest*
19133   eval "ac_cv_func_$ac_func=no"
19134 fi
19135 rm -f conftest*
19136 fi
19137
19138 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19139   echo "$ac_t""yes" 1>&6
19140     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19141   cat >> confdefs.h <<EOF
19142 #define $ac_tr_func 1
19143 EOF
19144  
19145 else
19146   echo "$ac_t""no" 1>&6
19147 fi
19148 done
19149     
19150   else
19151     
19152   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19153 echo "configure:19154: checking for _powl declaration" >&5
19154   if test x${glibcpp_cv_func__powl_use+set} != xset; then
19155     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
19156   echo $ac_n "(cached) $ac_c" 1>&6
19157 else
19158   
19159       
19160       ac_ext=C
19161 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19162 ac_cpp='$CXXCPP $CPPFLAGS'
19163 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19164 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19165 cross_compiling=$ac_cv_prog_cxx_cross
19166
19167       cat > conftest.$ac_ext <<EOF
19168 #line 19169 "configure"
19169 #include "confdefs.h"
19170 #include <math.h>
19171 int main() {
19172  _powl(0, 0);
19173 ; return 0; }
19174 EOF
19175 if { (eval echo configure:19176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19176   rm -rf conftest*
19177   glibcpp_cv_func__powl_use=yes
19178 else
19179   echo "configure: failed program was:" >&5
19180   cat conftest.$ac_ext >&5
19181   rm -rf conftest*
19182   glibcpp_cv_func__powl_use=no
19183 fi
19184 rm -f conftest*
19185       ac_ext=c
19186 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19187 ac_cpp='$CPP $CPPFLAGS'
19188 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19189 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19190 cross_compiling=$ac_cv_prog_cc_cross
19191
19192     
19193 fi
19194
19195   fi
19196   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
19197
19198     if test x$glibcpp_cv_func__powl_use = x"yes"; then
19199       for ac_func in _powl
19200 do
19201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19202 echo "configure:19203: checking for $ac_func" >&5
19203 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19204   echo $ac_n "(cached) $ac_c" 1>&6
19205 else
19206   cat > conftest.$ac_ext <<EOF
19207 #line 19208 "configure"
19208 #include "confdefs.h"
19209 /* System header to define __stub macros and hopefully few prototypes,
19210     which can conflict with char $ac_func(); below.  */
19211 #include <assert.h>
19212 /* Override any gcc2 internal prototype to avoid an error.  */
19213 /* We use char because int might match the return type of a gcc2
19214     builtin and then its argument prototype would still apply.  */
19215 char $ac_func();
19216
19217 int main() {
19218
19219 /* The GNU C library defines this for functions which it implements
19220     to always fail with ENOSYS.  Some functions are actually named
19221     something starting with __ and the normal name is an alias.  */
19222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19223 choke me
19224 #else
19225 $ac_func();
19226 #endif
19227
19228 ; return 0; }
19229 EOF
19230 if { (eval echo configure:19231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19231   rm -rf conftest*
19232   eval "ac_cv_func_$ac_func=yes"
19233 else
19234   echo "configure: failed program was:" >&5
19235   cat conftest.$ac_ext >&5
19236   rm -rf conftest*
19237   eval "ac_cv_func_$ac_func=no"
19238 fi
19239 rm -f conftest*
19240 fi
19241
19242 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19243   echo "$ac_t""yes" 1>&6
19244     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19245   cat >> confdefs.h <<EOF
19246 #define $ac_tr_func 1
19247 EOF
19248  
19249 else
19250   echo "$ac_t""no" 1>&6
19251 fi
19252 done
19253     
19254     fi
19255   fi
19256
19257   
19258   
19259   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19260 echo "configure:19261: checking for sqrtl declaration" >&5
19261   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
19262     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
19263   echo $ac_n "(cached) $ac_c" 1>&6
19264 else
19265   
19266       
19267       ac_ext=C
19268 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19269 ac_cpp='$CXXCPP $CPPFLAGS'
19270 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19271 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19272 cross_compiling=$ac_cv_prog_cxx_cross
19273
19274       cat > conftest.$ac_ext <<EOF
19275 #line 19276 "configure"
19276 #include "confdefs.h"
19277 #include <math.h>
19278                       #ifdef HAVE_IEEEFP_H
19279                       #include <ieeefp.h>
19280                       #endif
19281                      
19282 int main() {
19283  sqrtl(0);
19284 ; return 0; }
19285 EOF
19286 if { (eval echo configure:19287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19287   rm -rf conftest*
19288   glibcpp_cv_func_sqrtl_use=yes
19289 else
19290   echo "configure: failed program was:" >&5
19291   cat conftest.$ac_ext >&5
19292   rm -rf conftest*
19293   glibcpp_cv_func_sqrtl_use=no
19294 fi
19295 rm -f conftest*
19296       ac_ext=c
19297 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19298 ac_cpp='$CPP $CPPFLAGS'
19299 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19300 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19301 cross_compiling=$ac_cv_prog_cc_cross
19302
19303     
19304 fi
19305
19306   fi
19307   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
19308
19309   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
19310     for ac_func in sqrtl
19311 do
19312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19313 echo "configure:19314: checking for $ac_func" >&5
19314 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19315   echo $ac_n "(cached) $ac_c" 1>&6
19316 else
19317   cat > conftest.$ac_ext <<EOF
19318 #line 19319 "configure"
19319 #include "confdefs.h"
19320 /* System header to define __stub macros and hopefully few prototypes,
19321     which can conflict with char $ac_func(); below.  */
19322 #include <assert.h>
19323 /* Override any gcc2 internal prototype to avoid an error.  */
19324 /* We use char because int might match the return type of a gcc2
19325     builtin and then its argument prototype would still apply.  */
19326 char $ac_func();
19327
19328 int main() {
19329
19330 /* The GNU C library defines this for functions which it implements
19331     to always fail with ENOSYS.  Some functions are actually named
19332     something starting with __ and the normal name is an alias.  */
19333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19334 choke me
19335 #else
19336 $ac_func();
19337 #endif
19338
19339 ; return 0; }
19340 EOF
19341 if { (eval echo configure:19342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19342   rm -rf conftest*
19343   eval "ac_cv_func_$ac_func=yes"
19344 else
19345   echo "configure: failed program was:" >&5
19346   cat conftest.$ac_ext >&5
19347   rm -rf conftest*
19348   eval "ac_cv_func_$ac_func=no"
19349 fi
19350 rm -f conftest*
19351 fi
19352
19353 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19354   echo "$ac_t""yes" 1>&6
19355     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19356   cat >> confdefs.h <<EOF
19357 #define $ac_tr_func 1
19358 EOF
19359  
19360 else
19361   echo "$ac_t""no" 1>&6
19362 fi
19363 done
19364     
19365   else
19366     
19367   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19368 echo "configure:19369: checking for _sqrtl declaration" >&5
19369   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
19370     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
19371   echo $ac_n "(cached) $ac_c" 1>&6
19372 else
19373   
19374       
19375       ac_ext=C
19376 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19377 ac_cpp='$CXXCPP $CPPFLAGS'
19378 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19379 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19380 cross_compiling=$ac_cv_prog_cxx_cross
19381
19382       cat > conftest.$ac_ext <<EOF
19383 #line 19384 "configure"
19384 #include "confdefs.h"
19385 #include <math.h>
19386                       #ifdef HAVE_IEEEFP_H
19387                       #include <ieeefp.h>
19388                       #endif
19389                      
19390 int main() {
19391  _sqrtl(0);
19392 ; return 0; }
19393 EOF
19394 if { (eval echo configure:19395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19395   rm -rf conftest*
19396   glibcpp_cv_func__sqrtl_use=yes
19397 else
19398   echo "configure: failed program was:" >&5
19399   cat conftest.$ac_ext >&5
19400   rm -rf conftest*
19401   glibcpp_cv_func__sqrtl_use=no
19402 fi
19403 rm -f conftest*
19404       ac_ext=c
19405 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19406 ac_cpp='$CPP $CPPFLAGS'
19407 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19408 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19409 cross_compiling=$ac_cv_prog_cc_cross
19410
19411     
19412 fi
19413
19414   fi
19415   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
19416
19417     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
19418       for ac_func in _sqrtl
19419 do
19420 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19421 echo "configure:19422: checking for $ac_func" >&5
19422 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19423   echo $ac_n "(cached) $ac_c" 1>&6
19424 else
19425   cat > conftest.$ac_ext <<EOF
19426 #line 19427 "configure"
19427 #include "confdefs.h"
19428 /* System header to define __stub macros and hopefully few prototypes,
19429     which can conflict with char $ac_func(); below.  */
19430 #include <assert.h>
19431 /* Override any gcc2 internal prototype to avoid an error.  */
19432 /* We use char because int might match the return type of a gcc2
19433     builtin and then its argument prototype would still apply.  */
19434 char $ac_func();
19435
19436 int main() {
19437
19438 /* The GNU C library defines this for functions which it implements
19439     to always fail with ENOSYS.  Some functions are actually named
19440     something starting with __ and the normal name is an alias.  */
19441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19442 choke me
19443 #else
19444 $ac_func();
19445 #endif
19446
19447 ; return 0; }
19448 EOF
19449 if { (eval echo configure:19450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19450   rm -rf conftest*
19451   eval "ac_cv_func_$ac_func=yes"
19452 else
19453   echo "configure: failed program was:" >&5
19454   cat conftest.$ac_ext >&5
19455   rm -rf conftest*
19456   eval "ac_cv_func_$ac_func=no"
19457 fi
19458 rm -f conftest*
19459 fi
19460
19461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19462   echo "$ac_t""yes" 1>&6
19463     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19464   cat >> confdefs.h <<EOF
19465 #define $ac_tr_func 1
19466 EOF
19467  
19468 else
19469   echo "$ac_t""no" 1>&6
19470 fi
19471 done
19472     
19473     fi
19474   fi
19475
19476   
19477   
19478   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19479 echo "configure:19480: checking for sincosl declaration" >&5
19480   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
19481     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
19482   echo $ac_n "(cached) $ac_c" 1>&6
19483 else
19484   
19485       
19486       ac_ext=C
19487 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19488 ac_cpp='$CXXCPP $CPPFLAGS'
19489 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19490 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19491 cross_compiling=$ac_cv_prog_cxx_cross
19492
19493       cat > conftest.$ac_ext <<EOF
19494 #line 19495 "configure"
19495 #include "confdefs.h"
19496 #include <math.h>
19497 int main() {
19498  sincosl(0, 0, 0);
19499 ; return 0; }
19500 EOF
19501 if { (eval echo configure:19502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19502   rm -rf conftest*
19503   glibcpp_cv_func_sincosl_use=yes
19504 else
19505   echo "configure: failed program was:" >&5
19506   cat conftest.$ac_ext >&5
19507   rm -rf conftest*
19508   glibcpp_cv_func_sincosl_use=no
19509 fi
19510 rm -f conftest*
19511       ac_ext=c
19512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19513 ac_cpp='$CPP $CPPFLAGS'
19514 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19515 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19516 cross_compiling=$ac_cv_prog_cc_cross
19517
19518     
19519 fi
19520
19521   fi
19522   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
19523
19524   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
19525     for ac_func in sincosl
19526 do
19527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19528 echo "configure:19529: checking for $ac_func" >&5
19529 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19530   echo $ac_n "(cached) $ac_c" 1>&6
19531 else
19532   cat > conftest.$ac_ext <<EOF
19533 #line 19534 "configure"
19534 #include "confdefs.h"
19535 /* System header to define __stub macros and hopefully few prototypes,
19536     which can conflict with char $ac_func(); below.  */
19537 #include <assert.h>
19538 /* Override any gcc2 internal prototype to avoid an error.  */
19539 /* We use char because int might match the return type of a gcc2
19540     builtin and then its argument prototype would still apply.  */
19541 char $ac_func();
19542
19543 int main() {
19544
19545 /* The GNU C library defines this for functions which it implements
19546     to always fail with ENOSYS.  Some functions are actually named
19547     something starting with __ and the normal name is an alias.  */
19548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19549 choke me
19550 #else
19551 $ac_func();
19552 #endif
19553
19554 ; return 0; }
19555 EOF
19556 if { (eval echo configure:19557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19557   rm -rf conftest*
19558   eval "ac_cv_func_$ac_func=yes"
19559 else
19560   echo "configure: failed program was:" >&5
19561   cat conftest.$ac_ext >&5
19562   rm -rf conftest*
19563   eval "ac_cv_func_$ac_func=no"
19564 fi
19565 rm -f conftest*
19566 fi
19567
19568 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19569   echo "$ac_t""yes" 1>&6
19570     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19571   cat >> confdefs.h <<EOF
19572 #define $ac_tr_func 1
19573 EOF
19574  
19575 else
19576   echo "$ac_t""no" 1>&6
19577 fi
19578 done
19579     
19580   else
19581     
19582   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19583 echo "configure:19584: checking for _sincosl declaration" >&5
19584   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
19585     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
19586   echo $ac_n "(cached) $ac_c" 1>&6
19587 else
19588   
19589       
19590       ac_ext=C
19591 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19592 ac_cpp='$CXXCPP $CPPFLAGS'
19593 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19594 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19595 cross_compiling=$ac_cv_prog_cxx_cross
19596
19597       cat > conftest.$ac_ext <<EOF
19598 #line 19599 "configure"
19599 #include "confdefs.h"
19600 #include <math.h>
19601 int main() {
19602  _sincosl(0, 0, 0);
19603 ; return 0; }
19604 EOF
19605 if { (eval echo configure:19606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19606   rm -rf conftest*
19607   glibcpp_cv_func__sincosl_use=yes
19608 else
19609   echo "configure: failed program was:" >&5
19610   cat conftest.$ac_ext >&5
19611   rm -rf conftest*
19612   glibcpp_cv_func__sincosl_use=no
19613 fi
19614 rm -f conftest*
19615       ac_ext=c
19616 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19617 ac_cpp='$CPP $CPPFLAGS'
19618 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19619 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19620 cross_compiling=$ac_cv_prog_cc_cross
19621
19622     
19623 fi
19624
19625   fi
19626   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
19627
19628     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
19629       for ac_func in _sincosl
19630 do
19631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19632 echo "configure:19633: checking for $ac_func" >&5
19633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19634   echo $ac_n "(cached) $ac_c" 1>&6
19635 else
19636   cat > conftest.$ac_ext <<EOF
19637 #line 19638 "configure"
19638 #include "confdefs.h"
19639 /* System header to define __stub macros and hopefully few prototypes,
19640     which can conflict with char $ac_func(); below.  */
19641 #include <assert.h>
19642 /* Override any gcc2 internal prototype to avoid an error.  */
19643 /* We use char because int might match the return type of a gcc2
19644     builtin and then its argument prototype would still apply.  */
19645 char $ac_func();
19646
19647 int main() {
19648
19649 /* The GNU C library defines this for functions which it implements
19650     to always fail with ENOSYS.  Some functions are actually named
19651     something starting with __ and the normal name is an alias.  */
19652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19653 choke me
19654 #else
19655 $ac_func();
19656 #endif
19657
19658 ; return 0; }
19659 EOF
19660 if { (eval echo configure:19661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19661   rm -rf conftest*
19662   eval "ac_cv_func_$ac_func=yes"
19663 else
19664   echo "configure: failed program was:" >&5
19665   cat conftest.$ac_ext >&5
19666   rm -rf conftest*
19667   eval "ac_cv_func_$ac_func=no"
19668 fi
19669 rm -f conftest*
19670 fi
19671
19672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19673   echo "$ac_t""yes" 1>&6
19674     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19675   cat >> confdefs.h <<EOF
19676 #define $ac_tr_func 1
19677 EOF
19678  
19679 else
19680   echo "$ac_t""no" 1>&6
19681 fi
19682 done
19683     
19684     fi
19685   fi
19686
19687   
19688   
19689   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19690 echo "configure:19691: checking for finitel declaration" >&5
19691   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
19692     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
19693   echo $ac_n "(cached) $ac_c" 1>&6
19694 else
19695   
19696       
19697       ac_ext=C
19698 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19699 ac_cpp='$CXXCPP $CPPFLAGS'
19700 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19701 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19702 cross_compiling=$ac_cv_prog_cxx_cross
19703
19704       cat > conftest.$ac_ext <<EOF
19705 #line 19706 "configure"
19706 #include "confdefs.h"
19707 #include <math.h>
19708                       #ifdef HAVE_IEEEFP_H
19709                       #include <ieeefp.h>
19710                       #endif
19711                      
19712 int main() {
19713  finitel(0);
19714 ; return 0; }
19715 EOF
19716 if { (eval echo configure:19717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19717   rm -rf conftest*
19718   glibcpp_cv_func_finitel_use=yes
19719 else
19720   echo "configure: failed program was:" >&5
19721   cat conftest.$ac_ext >&5
19722   rm -rf conftest*
19723   glibcpp_cv_func_finitel_use=no
19724 fi
19725 rm -f conftest*
19726       ac_ext=c
19727 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19728 ac_cpp='$CPP $CPPFLAGS'
19729 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19730 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19731 cross_compiling=$ac_cv_prog_cc_cross
19732
19733     
19734 fi
19735
19736   fi
19737   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
19738
19739   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
19740     for ac_func in finitel
19741 do
19742 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19743 echo "configure:19744: checking for $ac_func" >&5
19744 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19745   echo $ac_n "(cached) $ac_c" 1>&6
19746 else
19747   cat > conftest.$ac_ext <<EOF
19748 #line 19749 "configure"
19749 #include "confdefs.h"
19750 /* System header to define __stub macros and hopefully few prototypes,
19751     which can conflict with char $ac_func(); below.  */
19752 #include <assert.h>
19753 /* Override any gcc2 internal prototype to avoid an error.  */
19754 /* We use char because int might match the return type of a gcc2
19755     builtin and then its argument prototype would still apply.  */
19756 char $ac_func();
19757
19758 int main() {
19759
19760 /* The GNU C library defines this for functions which it implements
19761     to always fail with ENOSYS.  Some functions are actually named
19762     something starting with __ and the normal name is an alias.  */
19763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19764 choke me
19765 #else
19766 $ac_func();
19767 #endif
19768
19769 ; return 0; }
19770 EOF
19771 if { (eval echo configure:19772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19772   rm -rf conftest*
19773   eval "ac_cv_func_$ac_func=yes"
19774 else
19775   echo "configure: failed program was:" >&5
19776   cat conftest.$ac_ext >&5
19777   rm -rf conftest*
19778   eval "ac_cv_func_$ac_func=no"
19779 fi
19780 rm -f conftest*
19781 fi
19782
19783 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19784   echo "$ac_t""yes" 1>&6
19785     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19786   cat >> confdefs.h <<EOF
19787 #define $ac_tr_func 1
19788 EOF
19789  
19790 else
19791   echo "$ac_t""no" 1>&6
19792 fi
19793 done
19794     
19795   else
19796     
19797   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
19798 echo "configure:19799: checking for _finitel declaration" >&5
19799   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
19800     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
19801   echo $ac_n "(cached) $ac_c" 1>&6
19802 else
19803   
19804       
19805       ac_ext=C
19806 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19807 ac_cpp='$CXXCPP $CPPFLAGS'
19808 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19809 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19810 cross_compiling=$ac_cv_prog_cxx_cross
19811
19812       cat > conftest.$ac_ext <<EOF
19813 #line 19814 "configure"
19814 #include "confdefs.h"
19815 #include <math.h>
19816                       #ifdef HAVE_IEEEFP_H
19817                       #include <ieeefp.h>
19818                       #endif
19819                      
19820 int main() {
19821  _finitel(0);
19822 ; return 0; }
19823 EOF
19824 if { (eval echo configure:19825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19825   rm -rf conftest*
19826   glibcpp_cv_func__finitel_use=yes
19827 else
19828   echo "configure: failed program was:" >&5
19829   cat conftest.$ac_ext >&5
19830   rm -rf conftest*
19831   glibcpp_cv_func__finitel_use=no
19832 fi
19833 rm -f conftest*
19834       ac_ext=c
19835 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19836 ac_cpp='$CPP $CPPFLAGS'
19837 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19838 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19839 cross_compiling=$ac_cv_prog_cc_cross
19840
19841     
19842 fi
19843
19844   fi
19845   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
19846
19847     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
19848       for ac_func in _finitel
19849 do
19850 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19851 echo "configure:19852: checking for $ac_func" >&5
19852 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19853   echo $ac_n "(cached) $ac_c" 1>&6
19854 else
19855   cat > conftest.$ac_ext <<EOF
19856 #line 19857 "configure"
19857 #include "confdefs.h"
19858 /* System header to define __stub macros and hopefully few prototypes,
19859     which can conflict with char $ac_func(); below.  */
19860 #include <assert.h>
19861 /* Override any gcc2 internal prototype to avoid an error.  */
19862 /* We use char because int might match the return type of a gcc2
19863     builtin and then its argument prototype would still apply.  */
19864 char $ac_func();
19865
19866 int main() {
19867
19868 /* The GNU C library defines this for functions which it implements
19869     to always fail with ENOSYS.  Some functions are actually named
19870     something starting with __ and the normal name is an alias.  */
19871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19872 choke me
19873 #else
19874 $ac_func();
19875 #endif
19876
19877 ; return 0; }
19878 EOF
19879 if { (eval echo configure:19880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19880   rm -rf conftest*
19881   eval "ac_cv_func_$ac_func=yes"
19882 else
19883   echo "configure: failed program was:" >&5
19884   cat conftest.$ac_ext >&5
19885   rm -rf conftest*
19886   eval "ac_cv_func_$ac_func=no"
19887 fi
19888 rm -f conftest*
19889 fi
19890
19891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19892   echo "$ac_t""yes" 1>&6
19893     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19894   cat >> confdefs.h <<EOF
19895 #define $ac_tr_func 1
19896 EOF
19897  
19898 else
19899   echo "$ac_t""no" 1>&6
19900 fi
19901 done
19902     
19903     fi
19904   fi
19905
19906
19907         
19908     
19909   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
19910 echo "configure:19911: checking for _float trig functions" >&5
19911   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
19912   echo $ac_n "(cached) $ac_c" 1>&6
19913 else
19914   
19915     
19916     ac_ext=C
19917 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19918 ac_cpp='$CXXCPP $CPPFLAGS'
19919 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19920 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19921 cross_compiling=$ac_cv_prog_cxx_cross
19922
19923     cat > conftest.$ac_ext <<EOF
19924 #line 19925 "configure"
19925 #include "confdefs.h"
19926 #include <math.h>
19927 int main() {
19928  `for x in _acosf _asinf _atanf \
19929                                           _cosf _sinf _tanf \
19930                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
19931 ; return 0; }
19932 EOF
19933 if { (eval echo configure:19934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19934   rm -rf conftest*
19935   glibcpp_cv_func__float_trig_use=yes
19936 else
19937   echo "configure: failed program was:" >&5
19938   cat conftest.$ac_ext >&5
19939   rm -rf conftest*
19940   glibcpp_cv_func__float_trig_use=no
19941 fi
19942 rm -f conftest*
19943     ac_ext=c
19944 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19945 ac_cpp='$CPP $CPPFLAGS'
19946 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19947 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19948 cross_compiling=$ac_cv_prog_cc_cross
19949
19950 fi
19951
19952   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
19953   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
19954     for ac_func in _acosf _asinf _atanf \
19955                                           _cosf _sinf _tanf \
19956                                           _coshf _sinhf _tanhf
19957 do
19958 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19959 echo "configure:19960: checking for $ac_func" >&5
19960 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19961   echo $ac_n "(cached) $ac_c" 1>&6
19962 else
19963   cat > conftest.$ac_ext <<EOF
19964 #line 19965 "configure"
19965 #include "confdefs.h"
19966 /* System header to define __stub macros and hopefully few prototypes,
19967     which can conflict with char $ac_func(); below.  */
19968 #include <assert.h>
19969 /* Override any gcc2 internal prototype to avoid an error.  */
19970 /* We use char because int might match the return type of a gcc2
19971     builtin and then its argument prototype would still apply.  */
19972 char $ac_func();
19973
19974 int main() {
19975
19976 /* The GNU C library defines this for functions which it implements
19977     to always fail with ENOSYS.  Some functions are actually named
19978     something starting with __ and the normal name is an alias.  */
19979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19980 choke me
19981 #else
19982 $ac_func();
19983 #endif
19984
19985 ; return 0; }
19986 EOF
19987 if { (eval echo configure:19988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19988   rm -rf conftest*
19989   eval "ac_cv_func_$ac_func=yes"
19990 else
19991   echo "configure: failed program was:" >&5
19992   cat conftest.$ac_ext >&5
19993   rm -rf conftest*
19994   eval "ac_cv_func_$ac_func=no"
19995 fi
19996 rm -f conftest*
19997 fi
19998
19999 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20000   echo "$ac_t""yes" 1>&6
20001     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20002   cat >> confdefs.h <<EOF
20003 #define $ac_tr_func 1
20004 EOF
20005  
20006 else
20007   echo "$ac_t""no" 1>&6
20008 fi
20009 done
20010
20011   fi
20012
20013   
20014   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20015 echo "configure:20016: checking for _float round functions" >&5
20016   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
20017   echo $ac_n "(cached) $ac_c" 1>&6
20018 else
20019   
20020     
20021     ac_ext=C
20022 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20023 ac_cpp='$CXXCPP $CPPFLAGS'
20024 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20025 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20026 cross_compiling=$ac_cv_prog_cxx_cross
20027
20028     cat > conftest.$ac_ext <<EOF
20029 #line 20030 "configure"
20030 #include "confdefs.h"
20031 #include <math.h>
20032 int main() {
20033  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
20034 ; return 0; }
20035 EOF
20036 if { (eval echo configure:20037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20037   rm -rf conftest*
20038   glibcpp_cv_func__float_round_use=yes
20039 else
20040   echo "configure: failed program was:" >&5
20041   cat conftest.$ac_ext >&5
20042   rm -rf conftest*
20043   glibcpp_cv_func__float_round_use=no
20044 fi
20045 rm -f conftest*
20046     ac_ext=c
20047 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20048 ac_cpp='$CPP $CPPFLAGS'
20049 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20050 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20051 cross_compiling=$ac_cv_prog_cc_cross
20052
20053 fi
20054
20055   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
20056   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
20057     for ac_func in _ceilf _floorf
20058 do
20059 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20060 echo "configure:20061: checking for $ac_func" >&5
20061 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20062   echo $ac_n "(cached) $ac_c" 1>&6
20063 else
20064   cat > conftest.$ac_ext <<EOF
20065 #line 20066 "configure"
20066 #include "confdefs.h"
20067 /* System header to define __stub macros and hopefully few prototypes,
20068     which can conflict with char $ac_func(); below.  */
20069 #include <assert.h>
20070 /* Override any gcc2 internal prototype to avoid an error.  */
20071 /* We use char because int might match the return type of a gcc2
20072     builtin and then its argument prototype would still apply.  */
20073 char $ac_func();
20074
20075 int main() {
20076
20077 /* The GNU C library defines this for functions which it implements
20078     to always fail with ENOSYS.  Some functions are actually named
20079     something starting with __ and the normal name is an alias.  */
20080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20081 choke me
20082 #else
20083 $ac_func();
20084 #endif
20085
20086 ; return 0; }
20087 EOF
20088 if { (eval echo configure:20089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20089   rm -rf conftest*
20090   eval "ac_cv_func_$ac_func=yes"
20091 else
20092   echo "configure: failed program was:" >&5
20093   cat conftest.$ac_ext >&5
20094   rm -rf conftest*
20095   eval "ac_cv_func_$ac_func=no"
20096 fi
20097 rm -f conftest*
20098 fi
20099
20100 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20101   echo "$ac_t""yes" 1>&6
20102     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20103   cat >> confdefs.h <<EOF
20104 #define $ac_tr_func 1
20105 EOF
20106  
20107 else
20108   echo "$ac_t""no" 1>&6
20109 fi
20110 done
20111
20112   fi
20113
20114
20115     
20116   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20117 echo "configure:20118: checking for _long double trig functions" >&5
20118   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
20119   echo $ac_n "(cached) $ac_c" 1>&6
20120 else
20121   
20122     
20123     ac_ext=C
20124 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20125 ac_cpp='$CXXCPP $CPPFLAGS'
20126 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20127 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20128 cross_compiling=$ac_cv_prog_cxx_cross
20129
20130     cat > conftest.$ac_ext <<EOF
20131 #line 20132 "configure"
20132 #include "confdefs.h"
20133 #include <math.h>
20134 int main() {
20135  `for x in _acosl _asinl _atanl \
20136                                           _cosl _sinl _tanl \
20137                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
20138 ; return 0; }
20139 EOF
20140 if { (eval echo configure:20141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20141   rm -rf conftest*
20142   glibcpp_cv_func__long_double_trig_use=yes
20143 else
20144   echo "configure: failed program was:" >&5
20145   cat conftest.$ac_ext >&5
20146   rm -rf conftest*
20147   glibcpp_cv_func__long_double_trig_use=no
20148 fi
20149 rm -f conftest*
20150     ac_ext=c
20151 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20152 ac_cpp='$CPP $CPPFLAGS'
20153 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20154 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20155 cross_compiling=$ac_cv_prog_cc_cross
20156
20157 fi
20158
20159   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
20160   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
20161     for ac_func in _acosl _asinl _atanl \
20162                                           _cosl _sinl _tanl \
20163                                           _coshl _sinhl _tanhl
20164 do
20165 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20166 echo "configure:20167: checking for $ac_func" >&5
20167 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20168   echo $ac_n "(cached) $ac_c" 1>&6
20169 else
20170   cat > conftest.$ac_ext <<EOF
20171 #line 20172 "configure"
20172 #include "confdefs.h"
20173 /* System header to define __stub macros and hopefully few prototypes,
20174     which can conflict with char $ac_func(); below.  */
20175 #include <assert.h>
20176 /* Override any gcc2 internal prototype to avoid an error.  */
20177 /* We use char because int might match the return type of a gcc2
20178     builtin and then its argument prototype would still apply.  */
20179 char $ac_func();
20180
20181 int main() {
20182
20183 /* The GNU C library defines this for functions which it implements
20184     to always fail with ENOSYS.  Some functions are actually named
20185     something starting with __ and the normal name is an alias.  */
20186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20187 choke me
20188 #else
20189 $ac_func();
20190 #endif
20191
20192 ; return 0; }
20193 EOF
20194 if { (eval echo configure:20195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20195   rm -rf conftest*
20196   eval "ac_cv_func_$ac_func=yes"
20197 else
20198   echo "configure: failed program was:" >&5
20199   cat conftest.$ac_ext >&5
20200   rm -rf conftest*
20201   eval "ac_cv_func_$ac_func=no"
20202 fi
20203 rm -f conftest*
20204 fi
20205
20206 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20207   echo "$ac_t""yes" 1>&6
20208     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20209   cat >> confdefs.h <<EOF
20210 #define $ac_tr_func 1
20211 EOF
20212  
20213 else
20214   echo "$ac_t""no" 1>&6
20215 fi
20216 done
20217
20218   fi
20219
20220   
20221   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20222 echo "configure:20223: checking for _long double round functions" >&5
20223   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
20224   echo $ac_n "(cached) $ac_c" 1>&6
20225 else
20226   
20227     
20228     ac_ext=C
20229 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20230 ac_cpp='$CXXCPP $CPPFLAGS'
20231 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20232 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20233 cross_compiling=$ac_cv_prog_cxx_cross
20234
20235     cat > conftest.$ac_ext <<EOF
20236 #line 20237 "configure"
20237 #include "confdefs.h"
20238 #include <math.h>
20239 int main() {
20240  `for x in _ceill _floorl; do echo "$x (0);"; done` 
20241 ; return 0; }
20242 EOF
20243 if { (eval echo configure:20244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20244   rm -rf conftest*
20245   glibcpp_cv_func__long_double_round_use=yes
20246 else
20247   echo "configure: failed program was:" >&5
20248   cat conftest.$ac_ext >&5
20249   rm -rf conftest*
20250   glibcpp_cv_func__long_double_round_use=no
20251 fi
20252 rm -f conftest*
20253     ac_ext=c
20254 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20255 ac_cpp='$CPP $CPPFLAGS'
20256 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20257 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20258 cross_compiling=$ac_cv_prog_cc_cross
20259
20260 fi
20261
20262   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
20263   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
20264     for ac_func in _ceill _floorl
20265 do
20266 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20267 echo "configure:20268: checking for $ac_func" >&5
20268 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20269   echo $ac_n "(cached) $ac_c" 1>&6
20270 else
20271   cat > conftest.$ac_ext <<EOF
20272 #line 20273 "configure"
20273 #include "confdefs.h"
20274 /* System header to define __stub macros and hopefully few prototypes,
20275     which can conflict with char $ac_func(); below.  */
20276 #include <assert.h>
20277 /* Override any gcc2 internal prototype to avoid an error.  */
20278 /* We use char because int might match the return type of a gcc2
20279     builtin and then its argument prototype would still apply.  */
20280 char $ac_func();
20281
20282 int main() {
20283
20284 /* The GNU C library defines this for functions which it implements
20285     to always fail with ENOSYS.  Some functions are actually named
20286     something starting with __ and the normal name is an alias.  */
20287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20288 choke me
20289 #else
20290 $ac_func();
20291 #endif
20292
20293 ; return 0; }
20294 EOF
20295 if { (eval echo configure:20296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20296   rm -rf conftest*
20297   eval "ac_cv_func_$ac_func=yes"
20298 else
20299   echo "configure: failed program was:" >&5
20300   cat conftest.$ac_ext >&5
20301   rm -rf conftest*
20302   eval "ac_cv_func_$ac_func=no"
20303 fi
20304 rm -f conftest*
20305 fi
20306
20307 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20308   echo "$ac_t""yes" 1>&6
20309     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20310   cat >> confdefs.h <<EOF
20311 #define $ac_tr_func 1
20312 EOF
20313  
20314 else
20315   echo "$ac_t""no" 1>&6
20316 fi
20317 done
20318
20319   fi
20320
20321
20322   LIBS="$ac_save_LIBS"
20323   CXXFLAGS="$ac_save_CXXFLAGS"
20324
20325   
20326     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
20327 echo "configure:20328: checking for main in -lm" >&5
20328 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
20329 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20330   echo $ac_n "(cached) $ac_c" 1>&6
20331 else
20332   ac_save_LIBS="$LIBS"
20333 LIBS="-lm  $LIBS"
20334 cat > conftest.$ac_ext <<EOF
20335 #line 20336 "configure"
20336 #include "confdefs.h"
20337
20338 int main() {
20339 main()
20340 ; return 0; }
20341 EOF
20342 if { (eval echo configure:20343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20343   rm -rf conftest*
20344   eval "ac_cv_lib_$ac_lib_var=yes"
20345 else
20346   echo "configure: failed program was:" >&5
20347   cat conftest.$ac_ext >&5
20348   rm -rf conftest*
20349   eval "ac_cv_lib_$ac_lib_var=no"
20350 fi
20351 rm -f conftest*
20352 LIBS="$ac_save_LIBS"
20353
20354 fi
20355 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20356   echo "$ac_t""yes" 1>&6
20357     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
20358     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
20359   cat >> confdefs.h <<EOF
20360 #define $ac_tr_lib 1
20361 EOF
20362
20363   LIBS="-lm $LIBS"
20364
20365 else
20366   echo "$ac_t""no" 1>&6
20367 fi
20368
20369   for ac_func in nan copysignf
20370 do
20371 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20372 echo "configure:20373: checking for $ac_func" >&5
20373 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20374   echo $ac_n "(cached) $ac_c" 1>&6
20375 else
20376   cat > conftest.$ac_ext <<EOF
20377 #line 20378 "configure"
20378 #include "confdefs.h"
20379 /* System header to define __stub macros and hopefully few prototypes,
20380     which can conflict with char $ac_func(); below.  */
20381 #include <assert.h>
20382 /* Override any gcc2 internal prototype to avoid an error.  */
20383 /* We use char because int might match the return type of a gcc2
20384     builtin and then its argument prototype would still apply.  */
20385 char $ac_func();
20386
20387 int main() {
20388
20389 /* The GNU C library defines this for functions which it implements
20390     to always fail with ENOSYS.  Some functions are actually named
20391     something starting with __ and the normal name is an alias.  */
20392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20393 choke me
20394 #else
20395 $ac_func();
20396 #endif
20397
20398 ; return 0; }
20399 EOF
20400 if { (eval echo configure:20401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20401   rm -rf conftest*
20402   eval "ac_cv_func_$ac_func=yes"
20403 else
20404   echo "configure: failed program was:" >&5
20405   cat conftest.$ac_ext >&5
20406   rm -rf conftest*
20407   eval "ac_cv_func_$ac_func=no"
20408 fi
20409 rm -f conftest*
20410 fi
20411
20412 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20413   echo "$ac_t""yes" 1>&6
20414     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20415   cat >> confdefs.h <<EOF
20416 #define $ac_tr_func 1
20417 EOF
20418  
20419 else
20420   echo "$ac_t""no" 1>&6
20421 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
20422 fi
20423 done
20424
20425
20426     for ac_func in __signbit
20427 do
20428 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20429 echo "configure:20430: checking for $ac_func" >&5
20430 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20431   echo $ac_n "(cached) $ac_c" 1>&6
20432 else
20433   cat > conftest.$ac_ext <<EOF
20434 #line 20435 "configure"
20435 #include "confdefs.h"
20436 /* System header to define __stub macros and hopefully few prototypes,
20437     which can conflict with char $ac_func(); below.  */
20438 #include <assert.h>
20439 /* Override any gcc2 internal prototype to avoid an error.  */
20440 /* We use char because int might match the return type of a gcc2
20441     builtin and then its argument prototype would still apply.  */
20442 char $ac_func();
20443
20444 int main() {
20445
20446 /* The GNU C library defines this for functions which it implements
20447     to always fail with ENOSYS.  Some functions are actually named
20448     something starting with __ and the normal name is an alias.  */
20449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20450 choke me
20451 #else
20452 $ac_func();
20453 #endif
20454
20455 ; return 0; }
20456 EOF
20457 if { (eval echo configure:20458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20458   rm -rf conftest*
20459   eval "ac_cv_func_$ac_func=yes"
20460 else
20461   echo "configure: failed program was:" >&5
20462   cat conftest.$ac_ext >&5
20463   rm -rf conftest*
20464   eval "ac_cv_func_$ac_func=no"
20465 fi
20466 rm -f conftest*
20467 fi
20468
20469 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20470   echo "$ac_t""yes" 1>&6
20471     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20472   cat >> confdefs.h <<EOF
20473 #define $ac_tr_func 1
20474 EOF
20475  
20476 else
20477   echo "$ac_t""no" 1>&6
20478 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
20479 fi
20480 done
20481
20482   for ac_func in __signbitf
20483 do
20484 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20485 echo "configure:20486: checking for $ac_func" >&5
20486 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20487   echo $ac_n "(cached) $ac_c" 1>&6
20488 else
20489   cat > conftest.$ac_ext <<EOF
20490 #line 20491 "configure"
20491 #include "confdefs.h"
20492 /* System header to define __stub macros and hopefully few prototypes,
20493     which can conflict with char $ac_func(); below.  */
20494 #include <assert.h>
20495 /* Override any gcc2 internal prototype to avoid an error.  */
20496 /* We use char because int might match the return type of a gcc2
20497     builtin and then its argument prototype would still apply.  */
20498 char $ac_func();
20499
20500 int main() {
20501
20502 /* The GNU C library defines this for functions which it implements
20503     to always fail with ENOSYS.  Some functions are actually named
20504     something starting with __ and the normal name is an alias.  */
20505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20506 choke me
20507 #else
20508 $ac_func();
20509 #endif
20510
20511 ; return 0; }
20512 EOF
20513 if { (eval echo configure:20514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20514   rm -rf conftest*
20515   eval "ac_cv_func_$ac_func=yes"
20516 else
20517   echo "configure: failed program was:" >&5
20518   cat conftest.$ac_ext >&5
20519   rm -rf conftest*
20520   eval "ac_cv_func_$ac_func=no"
20521 fi
20522 rm -f conftest*
20523 fi
20524
20525 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20526   echo "$ac_t""yes" 1>&6
20527     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20528   cat >> confdefs.h <<EOF
20529 #define $ac_tr_func 1
20530 EOF
20531  
20532 else
20533   echo "$ac_t""no" 1>&6
20534 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
20535 fi
20536 done
20537
20538
20539           if test x$ac_cv_func_copysignl = x"yes"; then
20540     for ac_func in __signbitl
20541 do
20542 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20543 echo "configure:20544: checking for $ac_func" >&5
20544 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20545   echo $ac_n "(cached) $ac_c" 1>&6
20546 else
20547   cat > conftest.$ac_ext <<EOF
20548 #line 20549 "configure"
20549 #include "confdefs.h"
20550 /* System header to define __stub macros and hopefully few prototypes,
20551     which can conflict with char $ac_func(); below.  */
20552 #include <assert.h>
20553 /* Override any gcc2 internal prototype to avoid an error.  */
20554 /* We use char because int might match the return type of a gcc2
20555     builtin and then its argument prototype would still apply.  */
20556 char $ac_func();
20557
20558 int main() {
20559
20560 /* The GNU C library defines this for functions which it implements
20561     to always fail with ENOSYS.  Some functions are actually named
20562     something starting with __ and the normal name is an alias.  */
20563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20564 choke me
20565 #else
20566 $ac_func();
20567 #endif
20568
20569 ; return 0; }
20570 EOF
20571 if { (eval echo configure:20572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20572   rm -rf conftest*
20573   eval "ac_cv_func_$ac_func=yes"
20574 else
20575   echo "configure: failed program was:" >&5
20576   cat conftest.$ac_ext >&5
20577   rm -rf conftest*
20578   eval "ac_cv_func_$ac_func=no"
20579 fi
20580 rm -f conftest*
20581 fi
20582
20583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20584   echo "$ac_t""yes" 1>&6
20585     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20586   cat >> confdefs.h <<EOF
20587 #define $ac_tr_func 1
20588 EOF
20589  
20590 else
20591   echo "$ac_t""no" 1>&6
20592 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
20593 fi
20594 done
20595
20596   fi
20597
20598   
20599
20600   
20601
20602       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
20603 echo "configure:20604: checking for mbstate_t" >&5
20604   cat > conftest.$ac_ext <<EOF
20605 #line 20606 "configure"
20606 #include "confdefs.h"
20607 #include <wchar.h>
20608 int main() {
20609 mbstate_t teststate;
20610 ; return 0; }
20611 EOF
20612 if { (eval echo configure:20613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20613   rm -rf conftest*
20614   have_mbstate_t=yes
20615 else
20616   echo "configure: failed program was:" >&5
20617   cat conftest.$ac_ext >&5
20618   rm -rf conftest*
20619   have_mbstate_t=no
20620 fi
20621 rm -f conftest*
20622   echo "$ac_t""$have_mbstate_t" 1>&6
20623   if test x"$have_mbstate_t" = xyes; then
20624     cat >> confdefs.h <<\EOF
20625 #define HAVE_MBSTATE_T 1
20626 EOF
20627
20628   fi
20629
20630     for ac_hdr in wchar.h
20631 do
20632 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20633 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20634 echo "configure:20635: checking for $ac_hdr" >&5
20635 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20636   echo $ac_n "(cached) $ac_c" 1>&6
20637 else
20638   cat > conftest.$ac_ext <<EOF
20639 #line 20640 "configure"
20640 #include "confdefs.h"
20641 #include <$ac_hdr>
20642 EOF
20643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20644 { (eval echo configure:20645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20645 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20646 if test -z "$ac_err"; then
20647   rm -rf conftest*
20648   eval "ac_cv_header_$ac_safe=yes"
20649 else
20650   echo "$ac_err" >&5
20651   echo "configure: failed program was:" >&5
20652   cat conftest.$ac_ext >&5
20653   rm -rf conftest*
20654   eval "ac_cv_header_$ac_safe=no"
20655 fi
20656 rm -f conftest*
20657 fi
20658 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20659   echo "$ac_t""yes" 1>&6
20660     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20661   cat >> confdefs.h <<EOF
20662 #define $ac_tr_hdr 1
20663 EOF
20664  ac_has_wchar_h=yes
20665 else
20666   echo "$ac_t""no" 1>&6
20667 ac_has_wchar_h=no
20668 fi
20669 done
20670
20671   for ac_hdr in wctype.h
20672 do
20673 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20674 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20675 echo "configure:20676: checking for $ac_hdr" >&5
20676 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20677   echo $ac_n "(cached) $ac_c" 1>&6
20678 else
20679   cat > conftest.$ac_ext <<EOF
20680 #line 20681 "configure"
20681 #include "confdefs.h"
20682 #include <$ac_hdr>
20683 EOF
20684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20685 { (eval echo configure:20686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20687 if test -z "$ac_err"; then
20688   rm -rf conftest*
20689   eval "ac_cv_header_$ac_safe=yes"
20690 else
20691   echo "$ac_err" >&5
20692   echo "configure: failed program was:" >&5
20693   cat conftest.$ac_ext >&5
20694   rm -rf conftest*
20695   eval "ac_cv_header_$ac_safe=no"
20696 fi
20697 rm -f conftest*
20698 fi
20699 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20700   echo "$ac_t""yes" 1>&6
20701     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20702   cat >> confdefs.h <<EOF
20703 #define $ac_tr_hdr 1
20704 EOF
20705  ac_has_wctype_h=yes
20706 else
20707   echo "$ac_t""no" 1>&6
20708 ac_has_wctype_h=no
20709 fi
20710 done
20711
20712   
20713     if test x"$ac_has_wchar_h" = xyes &&
20714      test x"$ac_has_wctype_h" = xyes &&
20715      test x"$enable_c_mbchar" != xno; then
20716       
20717             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
20718 echo "configure:20719: checking for WCHAR_MIN and WCHAR_MAX" >&5
20719     cat > conftest.$ac_ext <<EOF
20720 #line 20721 "configure"
20721 #include "confdefs.h"
20722 #include <wchar.h>
20723 int main() {
20724 int i = WCHAR_MIN; int j = WCHAR_MAX;
20725 ; return 0; }
20726 EOF
20727 if { (eval echo configure:20728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20728   rm -rf conftest*
20729   has_wchar_minmax=yes
20730 else
20731   echo "configure: failed program was:" >&5
20732   cat conftest.$ac_ext >&5
20733   rm -rf conftest*
20734   has_wchar_minmax=no
20735 fi
20736 rm -f conftest*
20737     echo "$ac_t""$has_wchar_minmax" 1>&6
20738     
20739             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
20740 echo "configure:20741: checking for WEOF" >&5
20741     cat > conftest.$ac_ext <<EOF
20742 #line 20743 "configure"
20743 #include "confdefs.h"
20744
20745       #include <wchar.h>
20746       #include <stddef.h>
20747 int main() {
20748 wint_t i = WEOF;
20749 ; return 0; }
20750 EOF
20751 if { (eval echo configure:20752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20752   rm -rf conftest*
20753   has_weof=yes
20754 else
20755   echo "configure: failed program was:" >&5
20756   cat conftest.$ac_ext >&5
20757   rm -rf conftest*
20758   has_weof=no
20759 fi
20760 rm -f conftest*
20761     echo "$ac_t""$has_weof" 1>&6
20762   
20763         ac_wfuncs=yes
20764     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
20765 do
20766 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20767 echo "configure:20768: checking for $ac_func" >&5
20768 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20769   echo $ac_n "(cached) $ac_c" 1>&6
20770 else
20771   cat > conftest.$ac_ext <<EOF
20772 #line 20773 "configure"
20773 #include "confdefs.h"
20774 /* System header to define __stub macros and hopefully few prototypes,
20775     which can conflict with char $ac_func(); below.  */
20776 #include <assert.h>
20777 /* Override any gcc2 internal prototype to avoid an error.  */
20778 /* We use char because int might match the return type of a gcc2
20779     builtin and then its argument prototype would still apply.  */
20780 char $ac_func();
20781
20782 int main() {
20783
20784 /* The GNU C library defines this for functions which it implements
20785     to always fail with ENOSYS.  Some functions are actually named
20786     something starting with __ and the normal name is an alias.  */
20787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20788 choke me
20789 #else
20790 $ac_func();
20791 #endif
20792
20793 ; return 0; }
20794 EOF
20795 if { (eval echo configure:20796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20796   rm -rf conftest*
20797   eval "ac_cv_func_$ac_func=yes"
20798 else
20799   echo "configure: failed program was:" >&5
20800   cat conftest.$ac_ext >&5
20801   rm -rf conftest*
20802   eval "ac_cv_func_$ac_func=no"
20803 fi
20804 rm -f conftest*
20805 fi
20806
20807 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20808   echo "$ac_t""yes" 1>&6
20809     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20810   cat >> confdefs.h <<EOF
20811 #define $ac_tr_func 1
20812 EOF
20813  
20814 else
20815   echo "$ac_t""no" 1>&6
20816 \
20817     ac_wfuncs=no
20818 fi
20819 done
20820
20821   
20822         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
20823     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
20824     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
20825     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
20826     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
20827     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
20828 do
20829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20830 echo "configure:20831: checking for $ac_func" >&5
20831 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20832   echo $ac_n "(cached) $ac_c" 1>&6
20833 else
20834   cat > conftest.$ac_ext <<EOF
20835 #line 20836 "configure"
20836 #include "confdefs.h"
20837 /* System header to define __stub macros and hopefully few prototypes,
20838     which can conflict with char $ac_func(); below.  */
20839 #include <assert.h>
20840 /* Override any gcc2 internal prototype to avoid an error.  */
20841 /* We use char because int might match the return type of a gcc2
20842     builtin and then its argument prototype would still apply.  */
20843 char $ac_func();
20844
20845 int main() {
20846
20847 /* The GNU C library defines this for functions which it implements
20848     to always fail with ENOSYS.  Some functions are actually named
20849     something starting with __ and the normal name is an alias.  */
20850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20851 choke me
20852 #else
20853 $ac_func();
20854 #endif
20855
20856 ; return 0; }
20857 EOF
20858 if { (eval echo configure:20859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20859   rm -rf conftest*
20860   eval "ac_cv_func_$ac_func=yes"
20861 else
20862   echo "configure: failed program was:" >&5
20863   cat conftest.$ac_ext >&5
20864   rm -rf conftest*
20865   eval "ac_cv_func_$ac_func=no"
20866 fi
20867 rm -f conftest*
20868 fi
20869
20870 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20871   echo "$ac_t""yes" 1>&6
20872     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20873   cat >> confdefs.h <<EOF
20874 #define $ac_tr_func 1
20875 EOF
20876  
20877 else
20878   echo "$ac_t""no" 1>&6
20879 \
20880     ac_wfuncs=no
20881 fi
20882 done
20883
20884
20885     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
20886 echo "configure:20887: checking for ISO C99 wchar_t support" >&5
20887     if test x"$has_weof" = xyes &&
20888        test x"$has_wchar_minmax" = xyes &&
20889        test x"$ac_wfuncs" = xyes; then
20890       ac_isoC99_wchar_t=yes
20891     else
20892       ac_isoC99_wchar_t=no
20893     fi
20894     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
20895   
20896             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
20897 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
20898 echo "configure:20899: checking for iconv.h" >&5
20899 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20900   echo $ac_n "(cached) $ac_c" 1>&6
20901 else
20902   cat > conftest.$ac_ext <<EOF
20903 #line 20904 "configure"
20904 #include "confdefs.h"
20905 #include <iconv.h>
20906 EOF
20907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20908 { (eval echo configure:20909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20910 if test -z "$ac_err"; then
20911   rm -rf conftest*
20912   eval "ac_cv_header_$ac_safe=yes"
20913 else
20914   echo "$ac_err" >&5
20915   echo "configure: failed program was:" >&5
20916   cat conftest.$ac_ext >&5
20917   rm -rf conftest*
20918   eval "ac_cv_header_$ac_safe=no"
20919 fi
20920 rm -f conftest*
20921 fi
20922 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20923   echo "$ac_t""yes" 1>&6
20924   ac_has_iconv_h=yes
20925 else
20926   echo "$ac_t""no" 1>&6
20927 ac_has_iconv_h=no
20928 fi
20929
20930     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
20931 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
20932 echo "configure:20933: checking for langinfo.h" >&5
20933 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20934   echo $ac_n "(cached) $ac_c" 1>&6
20935 else
20936   cat > conftest.$ac_ext <<EOF
20937 #line 20938 "configure"
20938 #include "confdefs.h"
20939 #include <langinfo.h>
20940 EOF
20941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20942 { (eval echo configure:20943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20943 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20944 if test -z "$ac_err"; then
20945   rm -rf conftest*
20946   eval "ac_cv_header_$ac_safe=yes"
20947 else
20948   echo "$ac_err" >&5
20949   echo "configure: failed program was:" >&5
20950   cat conftest.$ac_ext >&5
20951   rm -rf conftest*
20952   eval "ac_cv_header_$ac_safe=no"
20953 fi
20954 rm -f conftest*
20955 fi
20956 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20957   echo "$ac_t""yes" 1>&6
20958   ac_has_langinfo_h=yes
20959 else
20960   echo "$ac_t""no" 1>&6
20961 ac_has_langinfo_h=no
20962 fi
20963
20964
20965         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
20966 echo "configure:20967: checking for iconv in -liconv" >&5
20967 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
20968 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20969   echo $ac_n "(cached) $ac_c" 1>&6
20970 else
20971   ac_save_LIBS="$LIBS"
20972 LIBS="-liconv  $LIBS"
20973 cat > conftest.$ac_ext <<EOF
20974 #line 20975 "configure"
20975 #include "confdefs.h"
20976 /* Override any gcc2 internal prototype to avoid an error.  */
20977 /* We use char because int might match the return type of a gcc2
20978     builtin and then its argument prototype would still apply.  */
20979 char iconv();
20980
20981 int main() {
20982 iconv()
20983 ; return 0; }
20984 EOF
20985 if { (eval echo configure:20986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20986   rm -rf conftest*
20987   eval "ac_cv_lib_$ac_lib_var=yes"
20988 else
20989   echo "configure: failed program was:" >&5
20990   cat conftest.$ac_ext >&5
20991   rm -rf conftest*
20992   eval "ac_cv_lib_$ac_lib_var=no"
20993 fi
20994 rm -f conftest*
20995 LIBS="$ac_save_LIBS"
20996
20997 fi
20998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20999   echo "$ac_t""yes" 1>&6
21000   libiconv="-liconv"
21001 else
21002   echo "$ac_t""no" 1>&6
21003 fi
21004
21005     ac_save_LIBS="$LIBS"
21006     LIBS="$LIBS $libiconv"
21007
21008     for ac_func in iconv_open iconv_close iconv nl_langinfo
21009 do
21010 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21011 echo "configure:21012: checking for $ac_func" >&5
21012 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21013   echo $ac_n "(cached) $ac_c" 1>&6
21014 else
21015   cat > conftest.$ac_ext <<EOF
21016 #line 21017 "configure"
21017 #include "confdefs.h"
21018 /* System header to define __stub macros and hopefully few prototypes,
21019     which can conflict with char $ac_func(); below.  */
21020 #include <assert.h>
21021 /* Override any gcc2 internal prototype to avoid an error.  */
21022 /* We use char because int might match the return type of a gcc2
21023     builtin and then its argument prototype would still apply.  */
21024 char $ac_func();
21025
21026 int main() {
21027
21028 /* The GNU C library defines this for functions which it implements
21029     to always fail with ENOSYS.  Some functions are actually named
21030     something starting with __ and the normal name is an alias.  */
21031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21032 choke me
21033 #else
21034 $ac_func();
21035 #endif
21036
21037 ; return 0; }
21038 EOF
21039 if { (eval echo configure:21040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21040   rm -rf conftest*
21041   eval "ac_cv_func_$ac_func=yes"
21042 else
21043   echo "configure: failed program was:" >&5
21044   cat conftest.$ac_ext >&5
21045   rm -rf conftest*
21046   eval "ac_cv_func_$ac_func=no"
21047 fi
21048 rm -f conftest*
21049 fi
21050
21051 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21052   echo "$ac_t""yes" 1>&6
21053     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21054   cat >> confdefs.h <<EOF
21055 #define $ac_tr_func 1
21056 EOF
21057  \
21058     ac_XPG2funcs=yes
21059 else
21060   echo "$ac_t""no" 1>&6
21061 ac_XPG2funcs=no
21062 fi
21063 done
21064
21065   
21066     LIBS="$ac_save_LIBS"
21067
21068     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
21069 echo "configure:21070: checking for XPG2 wchar_t support" >&5
21070     if test x"$ac_has_iconv_h" = xyes &&
21071        test x"$ac_has_langinfo_h" = xyes &&
21072        test x"$ac_XPG2funcs" = xyes; then
21073       ac_XPG2_wchar_t=yes
21074     else
21075       ac_XPG2_wchar_t=no
21076     fi
21077     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
21078   
21079             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
21080 echo "configure:21081: checking for enabled wchar_t specializations" >&5
21081     if test x"$ac_isoC99_wchar_t" = xyes &&
21082        test x"$ac_XPG2_wchar_t" = xyes; then
21083       cat >> confdefs.h <<\EOF
21084 #define _GLIBCPP_USE_WCHAR_T 1
21085 EOF
21086
21087       echo "$ac_t"""yes"" 1>&6
21088     else
21089       echo "$ac_t"""no"" 1>&6
21090     fi
21091   else
21092         echo "configure: warning: wchar_t support disabled." 1>&2
21093   fi
21094
21095   
21096   ac_test_CXXFLAGS="${CXXFLAGS+set}"
21097   ac_save_CXXFLAGS="$CXXFLAGS"
21098   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
21099
21100   
21101   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
21102 echo "configure:21103: checking for strtold declaration" >&5
21103   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
21104     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
21105   echo $ac_n "(cached) $ac_c" 1>&6
21106 else
21107   
21108       
21109       ac_ext=C
21110 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21111 ac_cpp='$CXXCPP $CPPFLAGS'
21112 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21113 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21114 cross_compiling=$ac_cv_prog_cxx_cross
21115
21116       cat > conftest.$ac_ext <<EOF
21117 #line 21118 "configure"
21118 #include "confdefs.h"
21119 #include <stdlib.h>
21120 int main() {
21121  strtold(0, 0);
21122 ; return 0; }
21123 EOF
21124 if { (eval echo configure:21125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21125   rm -rf conftest*
21126   glibcpp_cv_func_strtold_use=yes
21127 else
21128   echo "configure: failed program was:" >&5
21129   cat conftest.$ac_ext >&5
21130   rm -rf conftest*
21131   glibcpp_cv_func_strtold_use=no
21132 fi
21133 rm -f conftest*
21134       ac_ext=c
21135 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21136 ac_cpp='$CPP $CPPFLAGS'
21137 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21138 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21139 cross_compiling=$ac_cv_prog_cc_cross
21140
21141     
21142 fi
21143
21144   fi
21145   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
21146   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
21147     for ac_func in strtold
21148 do
21149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21150 echo "configure:21151: checking for $ac_func" >&5
21151 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21152   echo $ac_n "(cached) $ac_c" 1>&6
21153 else
21154   cat > conftest.$ac_ext <<EOF
21155 #line 21156 "configure"
21156 #include "confdefs.h"
21157 /* System header to define __stub macros and hopefully few prototypes,
21158     which can conflict with char $ac_func(); below.  */
21159 #include <assert.h>
21160 /* Override any gcc2 internal prototype to avoid an error.  */
21161 /* We use char because int might match the return type of a gcc2
21162     builtin and then its argument prototype would still apply.  */
21163 char $ac_func();
21164
21165 int main() {
21166
21167 /* The GNU C library defines this for functions which it implements
21168     to always fail with ENOSYS.  Some functions are actually named
21169     something starting with __ and the normal name is an alias.  */
21170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21171 choke me
21172 #else
21173 $ac_func();
21174 #endif
21175
21176 ; return 0; }
21177 EOF
21178 if { (eval echo configure:21179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21179   rm -rf conftest*
21180   eval "ac_cv_func_$ac_func=yes"
21181 else
21182   echo "configure: failed program was:" >&5
21183   cat conftest.$ac_ext >&5
21184   rm -rf conftest*
21185   eval "ac_cv_func_$ac_func=no"
21186 fi
21187 rm -f conftest*
21188 fi
21189
21190 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21191   echo "$ac_t""yes" 1>&6
21192     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21193   cat >> confdefs.h <<EOF
21194 #define $ac_tr_func 1
21195 EOF
21196  
21197 else
21198   echo "$ac_t""no" 1>&6
21199 fi
21200 done
21201     
21202   fi
21203
21204   
21205   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
21206 echo "configure:21207: checking for strtof declaration" >&5
21207   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
21208     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
21209   echo $ac_n "(cached) $ac_c" 1>&6
21210 else
21211   
21212       
21213       ac_ext=C
21214 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21215 ac_cpp='$CXXCPP $CPPFLAGS'
21216 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21217 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21218 cross_compiling=$ac_cv_prog_cxx_cross
21219
21220       cat > conftest.$ac_ext <<EOF
21221 #line 21222 "configure"
21222 #include "confdefs.h"
21223 #include <stdlib.h>
21224 int main() {
21225  strtof(0, 0);
21226 ; return 0; }
21227 EOF
21228 if { (eval echo configure:21229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21229   rm -rf conftest*
21230   glibcpp_cv_func_strtof_use=yes
21231 else
21232   echo "configure: failed program was:" >&5
21233   cat conftest.$ac_ext >&5
21234   rm -rf conftest*
21235   glibcpp_cv_func_strtof_use=no
21236 fi
21237 rm -f conftest*
21238       ac_ext=c
21239 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21240 ac_cpp='$CPP $CPPFLAGS'
21241 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21242 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21243 cross_compiling=$ac_cv_prog_cc_cross
21244
21245     
21246 fi
21247
21248   fi
21249   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
21250   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
21251     for ac_func in strtof
21252 do
21253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21254 echo "configure:21255: checking for $ac_func" >&5
21255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21256   echo $ac_n "(cached) $ac_c" 1>&6
21257 else
21258   cat > conftest.$ac_ext <<EOF
21259 #line 21260 "configure"
21260 #include "confdefs.h"
21261 /* System header to define __stub macros and hopefully few prototypes,
21262     which can conflict with char $ac_func(); below.  */
21263 #include <assert.h>
21264 /* Override any gcc2 internal prototype to avoid an error.  */
21265 /* We use char because int might match the return type of a gcc2
21266     builtin and then its argument prototype would still apply.  */
21267 char $ac_func();
21268
21269 int main() {
21270
21271 /* The GNU C library defines this for functions which it implements
21272     to always fail with ENOSYS.  Some functions are actually named
21273     something starting with __ and the normal name is an alias.  */
21274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21275 choke me
21276 #else
21277 $ac_func();
21278 #endif
21279
21280 ; return 0; }
21281 EOF
21282 if { (eval echo configure:21283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21283   rm -rf conftest*
21284   eval "ac_cv_func_$ac_func=yes"
21285 else
21286   echo "configure: failed program was:" >&5
21287   cat conftest.$ac_ext >&5
21288   rm -rf conftest*
21289   eval "ac_cv_func_$ac_func=no"
21290 fi
21291 rm -f conftest*
21292 fi
21293
21294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21295   echo "$ac_t""yes" 1>&6
21296     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21297   cat >> confdefs.h <<EOF
21298 #define $ac_tr_func 1
21299 EOF
21300  
21301 else
21302   echo "$ac_t""no" 1>&6
21303 fi
21304 done
21305     
21306   fi
21307
21308   for ac_func in drand48
21309 do
21310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21311 echo "configure:21312: checking for $ac_func" >&5
21312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21313   echo $ac_n "(cached) $ac_c" 1>&6
21314 else
21315   cat > conftest.$ac_ext <<EOF
21316 #line 21317 "configure"
21317 #include "confdefs.h"
21318 /* System header to define __stub macros and hopefully few prototypes,
21319     which can conflict with char $ac_func(); below.  */
21320 #include <assert.h>
21321 /* Override any gcc2 internal prototype to avoid an error.  */
21322 /* We use char because int might match the return type of a gcc2
21323     builtin and then its argument prototype would still apply.  */
21324 char $ac_func();
21325
21326 int main() {
21327
21328 /* The GNU C library defines this for functions which it implements
21329     to always fail with ENOSYS.  Some functions are actually named
21330     something starting with __ and the normal name is an alias.  */
21331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21332 choke me
21333 #else
21334 $ac_func();
21335 #endif
21336
21337 ; return 0; }
21338 EOF
21339 if { (eval echo configure:21340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21340   rm -rf conftest*
21341   eval "ac_cv_func_$ac_func=yes"
21342 else
21343   echo "configure: failed program was:" >&5
21344   cat conftest.$ac_ext >&5
21345   rm -rf conftest*
21346   eval "ac_cv_func_$ac_func=no"
21347 fi
21348 rm -f conftest*
21349 fi
21350
21351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21352   echo "$ac_t""yes" 1>&6
21353     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21354   cat >> confdefs.h <<EOF
21355 #define $ac_tr_func 1
21356 EOF
21357  
21358 else
21359   echo "$ac_t""no" 1>&6
21360 fi
21361 done
21362
21363
21364   CXXFLAGS="$ac_save_CXXFLAGS"
21365
21366   
21367   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
21368 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
21369 echo "configure:21370: checking for locale.h" >&5
21370 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21371   echo $ac_n "(cached) $ac_c" 1>&6
21372 else
21373   cat > conftest.$ac_ext <<EOF
21374 #line 21375 "configure"
21375 #include "confdefs.h"
21376 #include <locale.h>
21377 EOF
21378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21379 { (eval echo configure:21380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21381 if test -z "$ac_err"; then
21382   rm -rf conftest*
21383   eval "ac_cv_header_$ac_safe=yes"
21384 else
21385   echo "$ac_err" >&5
21386   echo "configure: failed program was:" >&5
21387   cat conftest.$ac_ext >&5
21388   rm -rf conftest*
21389   eval "ac_cv_header_$ac_safe=no"
21390 fi
21391 rm -f conftest*
21392 fi
21393 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21394   echo "$ac_t""yes" 1>&6
21395   
21396     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
21397 echo "configure:21398: checking for LC_MESSAGES" >&5
21398 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
21399   echo $ac_n "(cached) $ac_c" 1>&6
21400 else
21401   cat > conftest.$ac_ext <<EOF
21402 #line 21403 "configure"
21403 #include "confdefs.h"
21404 #include <locale.h>
21405 int main() {
21406 return LC_MESSAGES
21407 ; return 0; }
21408 EOF
21409 if { (eval echo configure:21410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21410   rm -rf conftest*
21411   ac_cv_val_LC_MESSAGES=yes
21412 else
21413   echo "configure: failed program was:" >&5
21414   cat conftest.$ac_ext >&5
21415   rm -rf conftest*
21416   ac_cv_val_LC_MESSAGES=no
21417 fi
21418 rm -f conftest*
21419 fi
21420
21421 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
21422     if test $ac_cv_val_LC_MESSAGES = yes; then
21423       cat >> confdefs.h <<\EOF
21424 #define HAVE_LC_MESSAGES 1
21425 EOF
21426
21427     fi
21428   
21429 else
21430   echo "$ac_t""no" 1>&6
21431 fi
21432
21433
21434
21435   cat > conftest.$ac_ext <<EOF
21436 #line 21437 "configure"
21437 #include "confdefs.h"
21438
21439   #include <setjmp.h>
21440   
21441 int main() {
21442 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
21443 ; return 0; }
21444 EOF
21445 if { (eval echo configure:21446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21446   rm -rf conftest*
21447   cat >> confdefs.h <<\EOF
21448 #define HAVE_SIGSETJMP 1
21449 EOF
21450
21451   
21452 else
21453   echo "configure: failed program was:" >&5
21454   cat conftest.$ac_ext >&5
21455 fi
21456 rm -f conftest*
21457
21458   for ac_hdr in unistd.h
21459 do
21460 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21461 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21462 echo "configure:21463: checking for $ac_hdr" >&5
21463 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21464   echo $ac_n "(cached) $ac_c" 1>&6
21465 else
21466   cat > conftest.$ac_ext <<EOF
21467 #line 21468 "configure"
21468 #include "confdefs.h"
21469 #include <$ac_hdr>
21470 EOF
21471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21472 { (eval echo configure:21473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21474 if test -z "$ac_err"; then
21475   rm -rf conftest*
21476   eval "ac_cv_header_$ac_safe=yes"
21477 else
21478   echo "$ac_err" >&5
21479   echo "configure: failed program was:" >&5
21480   cat conftest.$ac_ext >&5
21481   rm -rf conftest*
21482   eval "ac_cv_header_$ac_safe=no"
21483 fi
21484 rm -f conftest*
21485 fi
21486 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21487   echo "$ac_t""yes" 1>&6
21488     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21489   cat >> confdefs.h <<EOF
21490 #define $ac_tr_hdr 1
21491 EOF
21492  
21493 else
21494   echo "$ac_t""no" 1>&6
21495 fi
21496 done
21497
21498 for ac_func in getpagesize
21499 do
21500 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21501 echo "configure:21502: checking for $ac_func" >&5
21502 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21503   echo $ac_n "(cached) $ac_c" 1>&6
21504 else
21505   cat > conftest.$ac_ext <<EOF
21506 #line 21507 "configure"
21507 #include "confdefs.h"
21508 /* System header to define __stub macros and hopefully few prototypes,
21509     which can conflict with char $ac_func(); below.  */
21510 #include <assert.h>
21511 /* Override any gcc2 internal prototype to avoid an error.  */
21512 /* We use char because int might match the return type of a gcc2
21513     builtin and then its argument prototype would still apply.  */
21514 char $ac_func();
21515
21516 int main() {
21517
21518 /* The GNU C library defines this for functions which it implements
21519     to always fail with ENOSYS.  Some functions are actually named
21520     something starting with __ and the normal name is an alias.  */
21521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21522 choke me
21523 #else
21524 $ac_func();
21525 #endif
21526
21527 ; return 0; }
21528 EOF
21529 if { (eval echo configure:21530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21530   rm -rf conftest*
21531   eval "ac_cv_func_$ac_func=yes"
21532 else
21533   echo "configure: failed program was:" >&5
21534   cat conftest.$ac_ext >&5
21535   rm -rf conftest*
21536   eval "ac_cv_func_$ac_func=no"
21537 fi
21538 rm -f conftest*
21539 fi
21540
21541 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21542   echo "$ac_t""yes" 1>&6
21543     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21544   cat >> confdefs.h <<EOF
21545 #define $ac_tr_func 1
21546 EOF
21547  
21548 else
21549   echo "$ac_t""no" 1>&6
21550 fi
21551 done
21552
21553 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
21554 echo "configure:21555: checking for working mmap" >&5
21555 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
21556   echo $ac_n "(cached) $ac_c" 1>&6
21557 else
21558   if test "$cross_compiling" = yes; then
21559   ac_cv_func_mmap_fixed_mapped=no
21560 else
21561   cat > conftest.$ac_ext <<EOF
21562 #line 21563 "configure"
21563 #include "confdefs.h"
21564
21565 /* Thanks to Mike Haertel and Jim Avera for this test.
21566    Here is a matrix of mmap possibilities:
21567         mmap private not fixed
21568         mmap private fixed at somewhere currently unmapped
21569         mmap private fixed at somewhere already mapped
21570         mmap shared not fixed
21571         mmap shared fixed at somewhere currently unmapped
21572         mmap shared fixed at somewhere already mapped
21573    For private mappings, we should verify that changes cannot be read()
21574    back from the file, nor mmap's back from the file at a different
21575    address.  (There have been systems where private was not correctly
21576    implemented like the infamous i386 svr4.0, and systems where the
21577    VM page cache was not coherent with the filesystem buffer cache
21578    like early versions of FreeBSD and possibly contemporary NetBSD.)
21579    For shared mappings, we should conversely verify that changes get
21580    propogated back to all the places they're supposed to be.
21581
21582    Grep wants private fixed already mapped.
21583    The main things grep needs to know about mmap are:
21584    * does it exist and is it safe to write into the mmap'd area
21585    * how to use it (BSD variants)  */
21586 #include <sys/types.h>
21587 #include <fcntl.h>
21588 #include <sys/mman.h>
21589
21590 /* This mess was copied from the GNU getpagesize.h.  */
21591 #ifndef HAVE_GETPAGESIZE
21592 # ifdef HAVE_UNISTD_H
21593 #  include <unistd.h>
21594 # endif
21595
21596 /* Assume that all systems that can run configure have sys/param.h.  */
21597 # ifndef HAVE_SYS_PARAM_H
21598 #  define HAVE_SYS_PARAM_H 1
21599 # endif
21600
21601 # ifdef _SC_PAGESIZE
21602 #  define getpagesize() sysconf(_SC_PAGESIZE)
21603 # else /* no _SC_PAGESIZE */
21604 #  ifdef HAVE_SYS_PARAM_H
21605 #   include <sys/param.h>
21606 #   ifdef EXEC_PAGESIZE
21607 #    define getpagesize() EXEC_PAGESIZE
21608 #   else /* no EXEC_PAGESIZE */
21609 #    ifdef NBPG
21610 #     define getpagesize() NBPG * CLSIZE
21611 #     ifndef CLSIZE
21612 #      define CLSIZE 1
21613 #     endif /* no CLSIZE */
21614 #    else /* no NBPG */
21615 #     ifdef NBPC
21616 #      define getpagesize() NBPC
21617 #     else /* no NBPC */
21618 #      ifdef PAGESIZE
21619 #       define getpagesize() PAGESIZE
21620 #      endif /* PAGESIZE */
21621 #     endif /* no NBPC */
21622 #    endif /* no NBPG */
21623 #   endif /* no EXEC_PAGESIZE */
21624 #  else /* no HAVE_SYS_PARAM_H */
21625 #   define getpagesize() 8192   /* punt totally */
21626 #  endif /* no HAVE_SYS_PARAM_H */
21627 # endif /* no _SC_PAGESIZE */
21628
21629 #endif /* no HAVE_GETPAGESIZE */
21630
21631 #ifdef __cplusplus
21632 extern "C" { void *malloc(unsigned); }
21633 #else
21634 char *malloc();
21635 #endif
21636
21637 int
21638 main()
21639 {
21640         char *data, *data2, *data3;
21641         int i, pagesize;
21642         int fd;
21643
21644         pagesize = getpagesize();
21645
21646         /*
21647          * First, make a file with some known garbage in it.
21648          */
21649         data = malloc(pagesize);
21650         if (!data)
21651                 exit(1);
21652         for (i = 0; i < pagesize; ++i)
21653                 *(data + i) = rand();
21654         umask(0);
21655         fd = creat("conftestmmap", 0600);
21656         if (fd < 0)
21657                 exit(1);
21658         if (write(fd, data, pagesize) != pagesize)
21659                 exit(1);
21660         close(fd);
21661
21662         /*
21663          * Next, try to mmap the file at a fixed address which
21664          * already has something else allocated at it.  If we can,
21665          * also make sure that we see the same garbage.
21666          */
21667         fd = open("conftestmmap", O_RDWR);
21668         if (fd < 0)
21669                 exit(1);
21670         data2 = malloc(2 * pagesize);
21671         if (!data2)
21672                 exit(1);
21673         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21674         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
21675             MAP_PRIVATE | MAP_FIXED, fd, 0L))
21676                 exit(1);
21677         for (i = 0; i < pagesize; ++i)
21678                 if (*(data + i) != *(data2 + i))
21679                         exit(1);
21680
21681         /*
21682          * Finally, make sure that changes to the mapped area
21683          * do not percolate back to the file as seen by read().
21684          * (This is a bug on some variants of i386 svr4.0.)
21685          */
21686         for (i = 0; i < pagesize; ++i)
21687                 *(data2 + i) = *(data2 + i) + 1;
21688         data3 = malloc(pagesize);
21689         if (!data3)
21690                 exit(1);
21691         if (read(fd, data3, pagesize) != pagesize)
21692                 exit(1);
21693         for (i = 0; i < pagesize; ++i)
21694                 if (*(data + i) != *(data3 + i))
21695                         exit(1);
21696         close(fd);
21697         unlink("conftestmmap");
21698         exit(0);
21699 }
21700
21701 EOF
21702 if { (eval echo configure:21703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21703 then
21704   ac_cv_func_mmap_fixed_mapped=yes
21705 else
21706   echo "configure: failed program was:" >&5
21707   cat conftest.$ac_ext >&5
21708   rm -fr conftest*
21709   ac_cv_func_mmap_fixed_mapped=no
21710 fi
21711 rm -fr conftest*
21712 fi
21713
21714 fi
21715
21716 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
21717 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21718   cat >> confdefs.h <<\EOF
21719 #define HAVE_MMAP 1
21720 EOF
21721
21722 fi
21723
21724
21725   # Establish limits on memory usage during 'make check'
21726   
21727   
21728   setrlimit_have_headers=yes
21729   for ac_hdr in unistd.h sys/time.h sys/resource.h
21730 do
21731 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21732 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21733 echo "configure:21734: checking for $ac_hdr" >&5
21734 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21735   echo $ac_n "(cached) $ac_c" 1>&6
21736 else
21737   cat > conftest.$ac_ext <<EOF
21738 #line 21739 "configure"
21739 #include "confdefs.h"
21740 #include <$ac_hdr>
21741 EOF
21742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21743 { (eval echo configure:21744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21745 if test -z "$ac_err"; then
21746   rm -rf conftest*
21747   eval "ac_cv_header_$ac_safe=yes"
21748 else
21749   echo "$ac_err" >&5
21750   echo "configure: failed program was:" >&5
21751   cat conftest.$ac_ext >&5
21752   rm -rf conftest*
21753   eval "ac_cv_header_$ac_safe=no"
21754 fi
21755 rm -f conftest*
21756 fi
21757 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21758   echo "$ac_t""yes" 1>&6
21759     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21760   cat >> confdefs.h <<EOF
21761 #define $ac_tr_hdr 1
21762 EOF
21763  
21764 else
21765   echo "$ac_t""no" 1>&6
21766 setrlimit_have_headers=no
21767 fi
21768 done
21769
21770   # If don't have the headers, then we can't run the tests now, and we
21771   # won't be seeing any of these during testsuite compilation.
21772   if test $setrlimit_have_headers = yes; then
21773     # Can't do these in a loop, else the resulting syntax is wrong.
21774     
21775   cat > conftest.$ac_ext <<EOF
21776 #line 21777 "configure"
21777 #include "confdefs.h"
21778 #include <unistd.h>
21779                   #include <sys/time.h>
21780                   #include <sys/resource.h>
21781                  
21782 int main() {
21783  int f = RLIMIT_DATA ; 
21784 ; return 0; }
21785 EOF
21786 if { (eval echo configure:21787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21787   rm -rf conftest*
21788   glibcpp_mresult=1
21789 else
21790   echo "configure: failed program was:" >&5
21791   cat conftest.$ac_ext >&5
21792   rm -rf conftest*
21793   glibcpp_mresult=0
21794 fi
21795 rm -f conftest*
21796   cat >> confdefs.h <<EOF
21797 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
21798 EOF
21799
21800
21801     
21802   cat > conftest.$ac_ext <<EOF
21803 #line 21804 "configure"
21804 #include "confdefs.h"
21805 #include <unistd.h>
21806                   #include <sys/time.h>
21807                   #include <sys/resource.h>
21808                  
21809 int main() {
21810  int f = RLIMIT_RSS ; 
21811 ; return 0; }
21812 EOF
21813 if { (eval echo configure:21814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21814   rm -rf conftest*
21815   glibcpp_mresult=1
21816 else
21817   echo "configure: failed program was:" >&5
21818   cat conftest.$ac_ext >&5
21819   rm -rf conftest*
21820   glibcpp_mresult=0
21821 fi
21822 rm -f conftest*
21823   cat >> confdefs.h <<EOF
21824 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
21825 EOF
21826
21827
21828     
21829   cat > conftest.$ac_ext <<EOF
21830 #line 21831 "configure"
21831 #include "confdefs.h"
21832 #include <unistd.h>
21833                   #include <sys/time.h>
21834                   #include <sys/resource.h>
21835                  
21836 int main() {
21837  int f = RLIMIT_VMEM ; 
21838 ; return 0; }
21839 EOF
21840 if { (eval echo configure:21841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21841   rm -rf conftest*
21842   glibcpp_mresult=1
21843 else
21844   echo "configure: failed program was:" >&5
21845   cat conftest.$ac_ext >&5
21846   rm -rf conftest*
21847   glibcpp_mresult=0
21848 fi
21849 rm -f conftest*
21850   cat >> confdefs.h <<EOF
21851 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
21852 EOF
21853
21854
21855     
21856   cat > conftest.$ac_ext <<EOF
21857 #line 21858 "configure"
21858 #include "confdefs.h"
21859 #include <unistd.h>
21860                   #include <sys/time.h>
21861                   #include <sys/resource.h>
21862                  
21863 int main() {
21864  int f = RLIMIT_AS ; 
21865 ; return 0; }
21866 EOF
21867 if { (eval echo configure:21868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21868   rm -rf conftest*
21869   glibcpp_mresult=1
21870 else
21871   echo "configure: failed program was:" >&5
21872   cat conftest.$ac_ext >&5
21873   rm -rf conftest*
21874   glibcpp_mresult=0
21875 fi
21876 rm -f conftest*
21877   cat >> confdefs.h <<EOF
21878 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
21879 EOF
21880
21881
21882
21883     # Check for rlimit, setrlimit.
21884     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
21885   echo $ac_n "(cached) $ac_c" 1>&6
21886 else
21887   
21888       cat > conftest.$ac_ext <<EOF
21889 #line 21890 "configure"
21890 #include "confdefs.h"
21891 #include <unistd.h>
21892                   #include <sys/time.h>
21893                   #include <sys/resource.h>
21894                      
21895 int main() {
21896  struct rlimit r; setrlimit(0, &r);
21897 ; return 0; }
21898 EOF
21899 if { (eval echo configure:21900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21900   rm -rf conftest*
21901   ac_setrlimit=yes
21902 else
21903   echo "configure: failed program was:" >&5
21904   cat conftest.$ac_ext >&5
21905   rm -rf conftest*
21906   ac_setrlimit=no
21907 fi
21908 rm -f conftest*
21909     
21910 fi
21911
21912   fi
21913
21914   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
21915 echo "configure:21916: checking for testsuite memory limit support" >&5
21916   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
21917     ac_mem_limits=yes
21918     cat >> confdefs.h <<\EOF
21919 #define _GLIBCPP_MEM_LIMITS 1
21920 EOF
21921
21922   else
21923     ac_mem_limits=no
21924   fi
21925   echo "$ac_t""$ac_mem_limits" 1>&6
21926
21927
21928   # Look for setenv, so that extended locale tests can be performed.
21929   
21930   echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
21931 echo "configure:21932: checking for setenv declaration" >&5
21932   if test x${glibcpp_cv_func_setenv_use+set} != xset; then
21933     if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
21934   echo $ac_n "(cached) $ac_c" 1>&6
21935 else
21936   
21937       
21938       ac_ext=C
21939 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21940 ac_cpp='$CXXCPP $CPPFLAGS'
21941 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21942 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21943 cross_compiling=$ac_cv_prog_cxx_cross
21944
21945       cat > conftest.$ac_ext <<EOF
21946 #line 21947 "configure"
21947 #include "confdefs.h"
21948 #include <stdlib.h>
21949 int main() {
21950  setenv(0, 0, 0);
21951 ; return 0; }
21952 EOF
21953 if { (eval echo configure:21954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21954   rm -rf conftest*
21955   glibcpp_cv_func_setenv_use=yes
21956 else
21957   echo "configure: failed program was:" >&5
21958   cat conftest.$ac_ext >&5
21959   rm -rf conftest*
21960   glibcpp_cv_func_setenv_use=no
21961 fi
21962 rm -f conftest*
21963       ac_ext=c
21964 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21965 ac_cpp='$CPP $CPPFLAGS'
21966 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21967 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21968 cross_compiling=$ac_cv_prog_cc_cross
21969
21970     
21971 fi
21972
21973   fi
21974   echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
21975   if test x$glibcpp_cv_func_setenv_use = x"yes"; then
21976     for ac_func in setenv
21977 do
21978 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21979 echo "configure:21980: checking for $ac_func" >&5
21980 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21981   echo $ac_n "(cached) $ac_c" 1>&6
21982 else
21983   cat > conftest.$ac_ext <<EOF
21984 #line 21985 "configure"
21985 #include "confdefs.h"
21986 /* System header to define __stub macros and hopefully few prototypes,
21987     which can conflict with char $ac_func(); below.  */
21988 #include <assert.h>
21989 /* Override any gcc2 internal prototype to avoid an error.  */
21990 /* We use char because int might match the return type of a gcc2
21991     builtin and then its argument prototype would still apply.  */
21992 char $ac_func();
21993
21994 int main() {
21995
21996 /* The GNU C library defines this for functions which it implements
21997     to always fail with ENOSYS.  Some functions are actually named
21998     something starting with __ and the normal name is an alias.  */
21999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22000 choke me
22001 #else
22002 $ac_func();
22003 #endif
22004
22005 ; return 0; }
22006 EOF
22007 if { (eval echo configure:22008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22008   rm -rf conftest*
22009   eval "ac_cv_func_$ac_func=yes"
22010 else
22011   echo "configure: failed program was:" >&5
22012   cat conftest.$ac_ext >&5
22013   rm -rf conftest*
22014   eval "ac_cv_func_$ac_func=no"
22015 fi
22016 rm -f conftest*
22017 fi
22018
22019 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22020   echo "$ac_t""yes" 1>&6
22021     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22022   cat >> confdefs.h <<EOF
22023 #define $ac_tr_func 1
22024 EOF
22025  
22026 else
22027   echo "$ac_t""no" 1>&6
22028 fi
22029 done
22030     
22031   fi
22032
22033
22034 fi
22035
22036 # This depends on the possibly-skipped linker test above.
22037 # Check whether --enable-symvers or --disable-symvers was given.
22038 if test "${enable_symvers+set}" = set; then
22039   enableval="$enable_symvers"
22040   case "$enableval" in
22041  yes) enable_symvers=yes ;;
22042  no)  enable_symvers=no ;;
22043  # other names here, just as sanity checks
22044  #gnu|sun|etcetera) enable_symvers=$enableval ;;
22045  gnu) enable_symvers=$enableval ;;
22046  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
22047  esac
22048 else
22049   enable_symvers=yes
22050 fi
22051
22052 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
22053 # don't know enough about $LD to do tricks... 
22054 if test x$enable_shared = xno || 
22055         test "x$LD" = x || 
22056         test x$glibcpp_gnu_ld_version = x; then
22057   enable_symvers=no
22058 fi
22059
22060 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
22061 if test $enable_symvers != no; then
22062   echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
22063 echo "configure:22064: checking for shared libgcc" >&5
22064   ac_save_CFLAGS="$CFLAGS"
22065   CFLAGS=' -lgcc_s'
22066   cat > conftest.$ac_ext <<EOF
22067 #line 22068 "configure"
22068 #include "confdefs.h"
22069
22070 int main() {
22071 return 0
22072 ; return 0; }
22073 EOF
22074 if { (eval echo configure:22075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22075   rm -rf conftest*
22076   glibcpp_shared_libgcc=yes
22077 else
22078   echo "configure: failed program was:" >&5
22079   cat conftest.$ac_ext >&5
22080   rm -rf conftest*
22081   glibcpp_shared_libgcc=no
22082 fi
22083 rm -f conftest*
22084   CFLAGS="$ac_save_CFLAGS"
22085   echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
22086 fi
22087
22088 # For GNU ld, we need at least this version.  It's 2.12 in the same format
22089 # as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
22090 glibcpp_min_gnu_ld_version=21200
22091
22092 # Check to see if unspecified "yes" value can win, given results
22093 # above.  
22094 if test $enable_symvers = yes ; then
22095   if test $with_gnu_ld = yes &&
22096     test $glibcpp_shared_libgcc = yes ;
22097   then
22098     if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
22099         enable_symvers=gnu
22100     else
22101       ac_test_CFLAGS="${CFLAGS+set}"
22102       ac_save_CFLAGS="$CFLAGS"
22103       CFLAGS='-shared -Wl,--version-script,conftest.map'
22104       enable_symvers=no
22105       
22106       echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
22107       
22108       cat > conftest.$ac_ext <<EOF
22109 #line 22110 "configure"
22110 #include "confdefs.h"
22111 int foo;
22112 int main() {
22113
22114 ; return 0; }
22115 EOF
22116 if { (eval echo configure:22117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22117   rm -rf conftest*
22118   enable_symvers=gnu
22119 else
22120   echo "configure: failed program was:" >&5
22121   cat conftest.$ac_ext >&5
22122 fi
22123 rm -f conftest*
22124       if test "$ac_test_CFLAGS" = set; then
22125         CFLAGS="$ac_save_CFLAGS"
22126       else
22127         # this is the suspicious part
22128         CFLAGS=''
22129       fi
22130       rm -f conftest.map
22131     fi
22132   else
22133     # just fail for now
22134     enable_symvers=no
22135   fi
22136 fi
22137
22138 case $enable_symvers in
22139   no)
22140       LINKER_MAP=config/linker-map.dummy
22141       ;;
22142   gnu)
22143       LINKER_MAP=config/linker-map.gnu
22144       ;;
22145 esac
22146
22147
22148
22149
22150 if test $enable_symvers != no; then
22151   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
22152   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
22153 else
22154   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
22155   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
22156 fi
22157 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
22158 echo "configure:22159: checking versioning on shared library symbols" >&5
22159 echo "$ac_t""$enable_symvers" 1>&6
22160
22161
22162 # Propagate the target-specific source directories through the build chain.
22163 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH and
22164 # CPULIMITSH [might] use it, and they only get used here.)
22165 OS_INC_SRCDIR=config/${os_include_dir}
22166 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
22167 CPU_LIMITS_INC_SRCDIR=config/${CPULIMITSH}
22168
22169
22170
22171
22172 # Set up cross-compile flags
22173   
22174
22175 if test "$CANADIAN" = yes; then
22176   CANADIAN_TRUE=
22177   CANADIAN_FALSE='#'
22178 else
22179   CANADIAN_TRUE='#'
22180   CANADIAN_FALSE=
22181 fi
22182  
22183 cat > confcache <<\EOF
22184 # This file is a shell script that caches the results of configure
22185 # tests run on this system so they can be shared between configure
22186 # scripts and configure runs.  It is not useful on other systems.
22187 # If it contains results you don't want to keep, you may remove or edit it.
22188 #
22189 # By default, configure uses ./config.cache as the cache file,
22190 # creating it if it does not exist already.  You can give configure
22191 # the --cache-file=FILE option to use a different cache file; that is
22192 # what configure does when it calls configure scripts in
22193 # subdirectories, so they share the cache.
22194 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22195 # config.status only pays attention to the cache file if you give it the
22196 # --recheck option to rerun configure.
22197 #
22198 EOF
22199 # The following way of writing the cache mishandles newlines in values,
22200 # but we know of no workaround that is simple, portable, and efficient.
22201 # So, don't put newlines in cache variables' values.
22202 # Ultrix sh set writes to stderr and can't be redirected directly,
22203 # and sets the high bit in the cache file unless we assign to the vars.
22204 (set) 2>&1 |
22205   case `(ac_space=' '; set | grep ac_space) 2>&1` in
22206   *ac_space=\ *)
22207     # `set' does not quote correctly, so add quotes (double-quote substitution
22208     # turns \\\\ into \\, and sed turns \\ into \).
22209     sed -n \
22210       -e "s/'/'\\\\''/g" \
22211       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22212     ;;
22213   *)
22214     # `set' quotes correctly as required by POSIX, so do not add quotes.
22215     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22216     ;;
22217   esac >> confcache
22218 if cmp -s $cache_file confcache; then
22219   :
22220 else
22221   if test -w $cache_file; then
22222     echo "updating cache $cache_file"
22223     cat confcache > $cache_file
22224   else
22225     echo "not updating unwritable cache $cache_file"
22226   fi
22227 fi
22228 rm -f confcache
22229
22230
22231 if test "${multilib}" = "yes"; then
22232   multilib_arg="--enable-multilib"
22233 else
22234   multilib_arg=
22235 fi
22236
22237 # Export all the install information
22238
22239 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
22240 # exported correctly in GLIBCPP_CONFIGURE.
22241 glibcpp_toolexecdir=no
22242 glibcpp_toolexeclibdir=no
22243 glibcpp_prefixdir=${prefix}
22244
22245 # Process the option --with-gxx-include-dir=<path to include-files directory>
22246 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
22247 echo "configure:22248: checking for --with-gxx-include-dir" >&5
22248 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
22249 if test "${with_gxx_include_dir+set}" = set; then
22250   withval="$with_gxx_include_dir"
22251   case "${withval}" in
22252   yes)
22253     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
22254     gxx_include_dir=no
22255     ;;
22256   no)
22257     gxx_include_dir=no
22258     ;;
22259   *)
22260     gxx_include_dir=${withval}
22261     ;;
22262 esac
22263 else
22264   gxx_include_dir=no
22265 fi
22266
22267 echo "$ac_t""$gxx_include_dir" 1>&6
22268
22269 # Process the option "--enable-version-specific-runtime-libs"
22270 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
22271 echo "configure:22272: checking for --enable-version-specific-runtime-libs" >&5
22272 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
22273 if test "${enable_version_specific_runtime_libs+set}" = set; then
22274   enableval="$enable_version_specific_runtime_libs"
22275   case "$enableval" in
22276  yes) version_specific_libs=yes ;;
22277  no)  version_specific_libs=no ;;
22278  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
22279  esac
22280 else
22281   version_specific_libs=no
22282 fi
22283 # Option set, now we can test it.
22284 echo "$ac_t""$version_specific_libs" 1>&6
22285
22286 # Default case for install directory for include files.
22287 if test $version_specific_libs = no && test $gxx_include_dir = no; then
22288   gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
22289 fi
22290
22291 # Version-specific runtime libs processing.
22292 if test $version_specific_libs = yes; then
22293   # Need the gcc compiler version to know where to install libraries
22294   # and header files if --enable-version-specific-runtime-libs option
22295   # is selected.
22296   if test x"$gxx_include_dir" = x"no"; then
22297     gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
22298   fi
22299   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22300   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
22301 fi
22302
22303 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
22304 # Install a library built with a cross compiler in tooldir, not libdir.
22305 if test x"$glibcpp_toolexecdir" = x"no"; then 
22306   if test -n "$with_cross_host" &&
22307      test x"$with_cross_host" != x"no"; then
22308     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
22309     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
22310   else
22311     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22312     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
22313   fi
22314 fi
22315
22316 echo $ac_n "checking for install location""... $ac_c" 1>&6
22317 echo "configure:22318: checking for install location" >&5
22318 echo "$ac_t""$gxx_include_dir" 1>&6
22319
22320
22321
22322
22323
22324
22325
22326 # Export all the include and flag information to makefiles.
22327
22328   # Root level of the build directory include sources.
22329   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
22330
22331   # Passed down for canadian crosses.
22332   if test x"$CANADIAN" = xyes; then
22333     TOPLEVEL_INCLUDES='-I$(includedir)'
22334   fi
22335
22336   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
22337
22338   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
22339
22340   if test x"$need_libio" = xyes; then
22341     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
22342     
22343   fi
22344
22345   # Now, export this to all the little Makefiles....
22346   
22347   
22348   
22349   
22350
22351
22352   # Optimization flags that are probably a good idea for thrill-seekers. Just
22353   # uncomment the lines below and make, everything else is ready to go... 
22354   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
22355   OPTIMIZE_CXXFLAGS=
22356   
22357
22358   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
22359   
22360
22361
22362 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
22363    grep "enable shared" > /dev/null; then
22364   LIBSUPCXX_PICFLAGS=-prefer-pic
22365 else
22366   LIBSUPCXX_PICFLAGS=
22367 fi
22368
22369
22370 # Generate the various Makefiles, include files, and scripts.
22371 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
22372 # and libsupc++/Makefile.am so that multilib installs will end up
22373 # installed in the correct place. To work around this not being passed
22374 # down from config-ml.in -> top_srcdir/Makefile.am ->
22375 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
22376 trap '' 1 2 15
22377 cat > confcache <<\EOF
22378 # This file is a shell script that caches the results of configure
22379 # tests run on this system so they can be shared between configure
22380 # scripts and configure runs.  It is not useful on other systems.
22381 # If it contains results you don't want to keep, you may remove or edit it.
22382 #
22383 # By default, configure uses ./config.cache as the cache file,
22384 # creating it if it does not exist already.  You can give configure
22385 # the --cache-file=FILE option to use a different cache file; that is
22386 # what configure does when it calls configure scripts in
22387 # subdirectories, so they share the cache.
22388 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22389 # config.status only pays attention to the cache file if you give it the
22390 # --recheck option to rerun configure.
22391 #
22392 EOF
22393 # The following way of writing the cache mishandles newlines in values,
22394 # but we know of no workaround that is simple, portable, and efficient.
22395 # So, don't put newlines in cache variables' values.
22396 # Ultrix sh set writes to stderr and can't be redirected directly,
22397 # and sets the high bit in the cache file unless we assign to the vars.
22398 (set) 2>&1 |
22399   case `(ac_space=' '; set | grep ac_space) 2>&1` in
22400   *ac_space=\ *)
22401     # `set' does not quote correctly, so add quotes (double-quote substitution
22402     # turns \\\\ into \\, and sed turns \\ into \).
22403     sed -n \
22404       -e "s/'/'\\\\''/g" \
22405       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22406     ;;
22407   *)
22408     # `set' quotes correctly as required by POSIX, so do not add quotes.
22409     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22410     ;;
22411   esac >> confcache
22412 if cmp -s $cache_file confcache; then
22413   :
22414 else
22415   if test -w $cache_file; then
22416     echo "updating cache $cache_file"
22417     cat confcache > $cache_file
22418   else
22419     echo "not updating unwritable cache $cache_file"
22420   fi
22421 fi
22422 rm -f confcache
22423
22424 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22425
22426 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22427 # Let make expand exec_prefix.
22428 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22429
22430 # Any assignment to VPATH causes Sun make to only execute
22431 # the first set of double-colon rules, so remove it if not needed.
22432 # If there is a colon in the path, we need to keep it.
22433 if test "x$srcdir" = x.; then
22434   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
22435 fi
22436
22437 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22438
22439 DEFS=-DHAVE_CONFIG_H
22440
22441 # Without the "./", some shells look in PATH for config.status.
22442 : ${CONFIG_STATUS=./config.status}
22443
22444 echo creating $CONFIG_STATUS
22445 rm -f $CONFIG_STATUS
22446 cat > $CONFIG_STATUS <<EOF
22447 #! /bin/sh
22448 # Generated automatically by configure.
22449 # Run this file to recreate the current configuration.
22450 # This directory was configured as follows,
22451 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22452 #
22453 # $0 $ac_configure_args
22454 #
22455 # Compiler output produced by configure, useful for debugging
22456 # configure, is in ./config.log if it exists.
22457
22458 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22459 for ac_option
22460 do
22461   case "\$ac_option" in
22462   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22463     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22464     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22465   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22466     echo "$CONFIG_STATUS generated by autoconf version 2.13"
22467     exit 0 ;;
22468   -help | --help | --hel | --he | --h)
22469     echo "\$ac_cs_usage"; exit 0 ;;
22470   *) echo "\$ac_cs_usage"; exit 1 ;;
22471   esac
22472 done
22473
22474 ac_given_srcdir=$srcdir
22475 ac_given_INSTALL="$INSTALL"
22476
22477 trap 'rm -fr `echo "Makefile \
22478     include/Makefile src/Makefile \
22479     libmath/Makefile libio/Makefile libsupc++/Makefile \
22480     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22481 EOF
22482 cat >> $CONFIG_STATUS <<EOF
22483
22484 # Protect against being on the right side of a sed subst in config.status.
22485 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22486  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22487 $ac_vpsub
22488 $extrasub
22489 s%@SHELL@%$SHELL%g
22490 s%@CFLAGS@%$CFLAGS%g
22491 s%@CPPFLAGS@%$CPPFLAGS%g
22492 s%@CXXFLAGS@%$CXXFLAGS%g
22493 s%@FFLAGS@%$FFLAGS%g
22494 s%@DEFS@%$DEFS%g
22495 s%@LDFLAGS@%$LDFLAGS%g
22496 s%@LIBS@%$LIBS%g
22497 s%@exec_prefix@%$exec_prefix%g
22498 s%@prefix@%$prefix%g
22499 s%@program_transform_name@%$program_transform_name%g
22500 s%@bindir@%$bindir%g
22501 s%@sbindir@%$sbindir%g
22502 s%@libexecdir@%$libexecdir%g
22503 s%@datadir@%$datadir%g
22504 s%@sysconfdir@%$sysconfdir%g
22505 s%@sharedstatedir@%$sharedstatedir%g
22506 s%@localstatedir@%$localstatedir%g
22507 s%@libdir@%$libdir%g
22508 s%@includedir@%$includedir%g
22509 s%@oldincludedir@%$oldincludedir%g
22510 s%@infodir@%$infodir%g
22511 s%@mandir@%$mandir%g
22512 s%@PACKAGE@%$PACKAGE%g
22513 s%@libtool_VERSION@%$libtool_VERSION%g
22514 s%@toplevel_srcdir@%$toplevel_srcdir%g
22515 s%@host@%$host%g
22516 s%@host_alias@%$host_alias%g
22517 s%@host_cpu@%$host_cpu%g
22518 s%@host_vendor@%$host_vendor%g
22519 s%@host_os@%$host_os%g
22520 s%@target@%$target%g
22521 s%@target_alias@%$target_alias%g
22522 s%@target_cpu@%$target_cpu%g
22523 s%@target_vendor@%$target_vendor%g
22524 s%@target_os@%$target_os%g
22525 s%@build@%$build%g
22526 s%@build_alias@%$build_alias%g
22527 s%@build_cpu@%$build_cpu%g
22528 s%@build_vendor@%$build_vendor%g
22529 s%@build_os@%$build_os%g
22530 s%@glibcpp_builddir@%$glibcpp_builddir%g
22531 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
22532 s%@AWK@%$AWK%g
22533 s%@LN_S@%$LN_S%g
22534 s%@glibcpp_basedir@%$glibcpp_basedir%g
22535 s%@CC@%$CC%g
22536 s%@glibcpp_CXX@%$glibcpp_CXX%g
22537 s%@AS@%$AS%g
22538 s%@AR@%$AR%g
22539 s%@RANLIB@%$RANLIB%g
22540 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22541 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22542 s%@INSTALL_DATA@%$INSTALL_DATA%g
22543 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
22544 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
22545 s%@MAINT@%$MAINT%g
22546 s%@EXEEXT@%$EXEEXT%g
22547 s%@VERSION@%$VERSION%g
22548 s%@ACLOCAL@%$ACLOCAL%g
22549 s%@AUTOCONF@%$AUTOCONF%g
22550 s%@AUTOMAKE@%$AUTOMAKE%g
22551 s%@AUTOHEADER@%$AUTOHEADER%g
22552 s%@MAKEINFO@%$MAKEINFO%g
22553 s%@SET_MAKE@%$SET_MAKE%g
22554 s%@OBJEXT@%$OBJEXT%g
22555 s%@STRIP@%$STRIP%g
22556 s%@LIBTOOL@%$LIBTOOL%g
22557 s%@CXXCPP@%$CXXCPP%g
22558 s%@enable_shared@%$enable_shared%g
22559 s%@enable_static@%$enable_static%g
22560 s%@ifGNUmake@%$ifGNUmake%g
22561 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
22562 s%@CPP@%$CPP%g
22563 s%@CSTDIO_H@%$CSTDIO_H%g
22564 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
22565 s%@CCODECVT_C@%$CCODECVT_C%g
22566 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
22567 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
22568 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
22569 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
22570 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
22571 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
22572 s%@libio_la@%$libio_la%g
22573 s%@check_msgfmt@%$check_msgfmt%g
22574 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
22575 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
22576 s%@glibcpp_localedir@%$glibcpp_localedir%g
22577 s%@USE_NLS@%$USE_NLS%g
22578 s%@CLOCALE_H@%$CLOCALE_H%g
22579 s%@CCODECVT_H@%$CCODECVT_H%g
22580 s%@CMESSAGES_H@%$CMESSAGES_H%g
22581 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
22582 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
22583 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
22584 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
22585 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
22586 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
22587 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
22588 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
22589 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
22590 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
22591 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
22592 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
22593 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
22594 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
22595 s%@WERROR@%$WERROR%g
22596 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
22597 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
22598 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
22599 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
22600 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
22601 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
22602 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
22603 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
22604 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
22605 s%@gxx_include_dir@%$gxx_include_dir%g
22606 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
22607 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
22608 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
22609 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
22610 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
22611 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
22612 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
22613 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
22614 s%@WARN_FLAGS@%$WARN_FLAGS%g
22615 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
22616
22617 CEOF
22618 EOF
22619
22620 cat >> $CONFIG_STATUS <<\EOF
22621
22622 # Split the substitutions into bite-sized pieces for seds with
22623 # small command number limits, like on Digital OSF/1 and HP-UX.
22624 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22625 ac_file=1 # Number of current file.
22626 ac_beg=1 # First line for current file.
22627 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22628 ac_more_lines=:
22629 ac_sed_cmds=""
22630 while $ac_more_lines; do
22631   if test $ac_beg -gt 1; then
22632     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22633   else
22634     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22635   fi
22636   if test ! -s conftest.s$ac_file; then
22637     ac_more_lines=false
22638     rm -f conftest.s$ac_file
22639   else
22640     if test -z "$ac_sed_cmds"; then
22641       ac_sed_cmds="sed -f conftest.s$ac_file"
22642     else
22643       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22644     fi
22645     ac_file=`expr $ac_file + 1`
22646     ac_beg=$ac_end
22647     ac_end=`expr $ac_end + $ac_max_sed_cmds`
22648   fi
22649 done
22650 if test -z "$ac_sed_cmds"; then
22651   ac_sed_cmds=cat
22652 fi
22653 EOF
22654
22655 cat >> $CONFIG_STATUS <<EOF
22656
22657 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
22658     include/Makefile src/Makefile \
22659     libmath/Makefile libio/Makefile libsupc++/Makefile \
22660     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
22661 EOF
22662 cat >> $CONFIG_STATUS <<\EOF
22663 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22664   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22665   case "$ac_file" in
22666   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22667        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22668   *) ac_file_in="${ac_file}.in" ;;
22669   esac
22670
22671   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22672
22673   # Remove last slash and all that follows it.  Not all systems have dirname.
22674   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22675   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22676     # The file is in a subdirectory.
22677     test ! -d "$ac_dir" && mkdir "$ac_dir"
22678     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22679     # A "../" for each directory in $ac_dir_suffix.
22680     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22681   else
22682     ac_dir_suffix= ac_dots=
22683   fi
22684
22685   case "$ac_given_srcdir" in
22686   .)  srcdir=.
22687       if test -z "$ac_dots"; then top_srcdir=.
22688       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22689   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22690   *) # Relative path.
22691     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22692     top_srcdir="$ac_dots$ac_given_srcdir" ;;
22693   esac
22694
22695   case "$ac_given_INSTALL" in
22696   [/$]*) INSTALL="$ac_given_INSTALL" ;;
22697   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22698   esac
22699
22700   echo creating "$ac_file"
22701   rm -f "$ac_file"
22702   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22703   case "$ac_file" in
22704   *Makefile*) ac_comsub="1i\\
22705 # $configure_input" ;;
22706   *) ac_comsub= ;;
22707   esac
22708
22709   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22710   sed -e "$ac_comsub
22711 s%@configure_input@%$configure_input%g
22712 s%@srcdir@%$srcdir%g
22713 s%@top_srcdir@%$top_srcdir%g
22714 s%@INSTALL@%$INSTALL%g
22715 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22716 fi; done
22717 rm -f conftest.s*
22718
22719 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22720 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22721 #
22722 # ac_d sets the value in "#define NAME VALUE" lines.
22723 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
22724 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
22725 ac_dC='\3'
22726 ac_dD='%g'
22727 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22728 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22729 ac_uB='\([      ]\)%\1#\2define\3'
22730 ac_uC=' '
22731 ac_uD='\4%g'
22732 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22733 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22734 ac_eB='$%\1#\2define\3'
22735 ac_eC=' '
22736 ac_eD='%g'
22737
22738 if test "${CONFIG_HEADERS+set}" != set; then
22739 EOF
22740 cat >> $CONFIG_STATUS <<EOF
22741   CONFIG_HEADERS="config.h"
22742 EOF
22743 cat >> $CONFIG_STATUS <<\EOF
22744 fi
22745 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22746   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22747   case "$ac_file" in
22748   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22749        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22750   *) ac_file_in="${ac_file}.in" ;;
22751   esac
22752
22753   echo creating $ac_file
22754
22755   rm -f conftest.frag conftest.in conftest.out
22756   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22757   cat $ac_file_inputs > conftest.in
22758
22759 EOF
22760
22761 # Transform confdefs.h into a sed script conftest.vals that substitutes
22762 # the proper values into config.h.in to produce config.h.  And first:
22763 # Protect against being on the right side of a sed subst in config.status.
22764 # Protect against being in an unquoted here document in config.status.
22765 rm -f conftest.vals
22766 cat > conftest.hdr <<\EOF
22767 s/[\\&%]/\\&/g
22768 s%[\\$`]%\\&%g
22769 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22770 s%ac_d%ac_u%gp
22771 s%ac_u%ac_e%gp
22772 EOF
22773 sed -n -f conftest.hdr confdefs.h > conftest.vals
22774 rm -f conftest.hdr
22775
22776 # This sed command replaces #undef with comments.  This is necessary, for
22777 # example, in the case of _POSIX_SOURCE, which is predefined and required
22778 # on some systems where configure will not decide to define it.
22779 cat >> conftest.vals <<\EOF
22780 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22781 EOF
22782
22783 # Break up conftest.vals because some shells have a limit on
22784 # the size of here documents, and old seds have small limits too.
22785
22786 rm -f conftest.tail
22787 while :
22788 do
22789   ac_lines=`grep -c . conftest.vals`
22790   # grep -c gives empty output for an empty file on some AIX systems.
22791   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22792   # Write a limited-size here document to conftest.frag.
22793   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22794   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22795   echo 'CEOF
22796   sed -f conftest.frag conftest.in > conftest.out
22797   rm -f conftest.in
22798   mv conftest.out conftest.in
22799 ' >> $CONFIG_STATUS
22800   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22801   rm -f conftest.vals
22802   mv conftest.tail conftest.vals
22803 done
22804 rm -f conftest.vals
22805
22806 cat >> $CONFIG_STATUS <<\EOF
22807   rm -f conftest.frag conftest.h
22808   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
22809   cat conftest.in >> conftest.h
22810   rm -f conftest.in
22811   if cmp -s $ac_file conftest.h 2>/dev/null; then
22812     echo "$ac_file is unchanged"
22813     rm -f conftest.h
22814   else
22815     # Remove last slash and all that follows it.  Not all systems have dirname.
22816       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22817       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22818       # The file is in a subdirectory.
22819       test ! -d "$ac_dir" && mkdir "$ac_dir"
22820     fi
22821     rm -f $ac_file
22822     mv conftest.h $ac_file
22823   fi
22824 fi; done
22825
22826 EOF
22827
22828 cat >> $CONFIG_STATUS <<EOF
22829 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $LINKER_MAP"
22830 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"
22831 EOF
22832
22833 cat >> $CONFIG_STATUS <<\EOF
22834 srcdir=$ac_given_srcdir
22835 while test -n "$ac_sources"; do
22836   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22837   set $ac_sources; ac_source=$1; shift; ac_sources=$*
22838
22839   echo "linking $srcdir/$ac_source to $ac_dest"
22840
22841   if test ! -r $srcdir/$ac_source; then
22842     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
22843   fi
22844   rm -f $ac_dest
22845
22846   # Make relative symlinks.
22847   # Remove last slash and all that follows it.  Not all systems have dirname.
22848   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
22849   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
22850     # The dest file is in a subdirectory.
22851     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
22852     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
22853     # A "../" for each directory in $ac_dest_dir_suffix.
22854     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
22855   else
22856     ac_dest_dir_suffix= ac_dots=
22857   fi
22858
22859   case "$srcdir" in
22860   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
22861   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
22862   esac
22863
22864   # Make a symlink if possible; otherwise try a hard link.
22865   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22866     ln $srcdir/$ac_source $ac_dest; then :
22867   else
22868     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
22869   fi
22870 done
22871 EOF
22872 cat >> $CONFIG_STATUS <<EOF
22873
22874 srcdir=${srcdir}
22875 host=${host}
22876 target=${target}
22877 with_multisubdir=${with_multisubdir}
22878 ac_configure_args="${multilib_arg} ${ac_configure_args}"
22879 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
22880 glibcpp_basedir=${glibcpp_basedir}
22881 CC="${CC}"
22882 CXX="${CXX}"
22883
22884 EOF
22885 cat >> $CONFIG_STATUS <<\EOF
22886 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
22887 if test -n "$CONFIG_FILES"; then
22888   LD="${ORIGINAL_LD_FOR_MULTILIBS}"
22889   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
22890   grep '^MULTISUBDIR =' Makefile >> src/Makefile
22891   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
22892 fi
22893 chmod +x mkcheck
22894 chmod +x testsuite_flags
22895
22896 exit 0
22897 EOF
22898 chmod +x $CONFIG_STATUS
22899 rm -fr confdefs* $ac_clean_files
22900 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
22901
22902
22903
22904 # Sanity checking & User-visible messages.
22905 # Checks down here, otherwise they get scrolled off before
22906 # the user will notice.
22907
22908 # Trying to get more people to read documentation.  Possibly remove
22909 # check and warn all the time. There is no "informational" AC_MSG_
22910 # macro, so these are going to be printed even when --quiet/--silent
22911 # is given.
22912 if test ! -f stamp-sanity-warned; then
22913   touch stamp-sanity-warned
22914   echo ""
22915   echo "Please make certain that you read the installation information here:"
22916   echo "  faster => ${srcdir}/docs/html/install.html"
22917   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
22918   echo ""
22919   echo "and the configuration information here:"
22920   echo "  faster => ${srcdir}/docs/html/configopts.html"
22921   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
22922   echo ""
22923   echo "before proceeding with ${_cv_gnu_make_command}."
22924   echo ""
22925 fi