OSDN Git Service

* configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
[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.
597 ORIGINAL_LD_FOR_MULTILIBS=$LD
598
599 PACKAGE=libstdc++
600
601 # For typical GNU versioning info, format is MAJOR.MINOR.MICRO
602 release_VERSION=3.1.0
603
604 # For libtool versioning info, format is CURRENT:REVISION:AGE
605 libtool_VERSION=4:0:0
606
607
608 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
609 # AC 2.5x sets target_alias iff the user specified --target, but we use it
610 # everywhere, so we set it here just to be sure.  In AC 2.13
611 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
612 ac_aux_dir=
613 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
614   if test -f $ac_dir/install-sh; then
615     ac_aux_dir=$ac_dir
616     ac_install_sh="$ac_aux_dir/install-sh -c"
617     break
618   elif test -f $ac_dir/install.sh; then
619     ac_aux_dir=$ac_dir
620     ac_install_sh="$ac_aux_dir/install.sh -c"
621     break
622   fi
623 done
624 if test -z "$ac_aux_dir"; then
625   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
626 fi
627 ac_config_guess=$ac_aux_dir/config.guess
628 ac_config_sub=$ac_aux_dir/config.sub
629 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
630
631
632 # Do some error checking and defaulting for the host and target type.
633 # The inputs are:
634 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
635 #
636 # The rules are:
637 # 1. You are not allowed to specify --host, --target, and nonopt at the
638 #    same time.
639 # 2. Host defaults to nonopt.
640 # 3. If nonopt is not specified, then host defaults to the current host,
641 #    as determined by config.guess.
642 # 4. Target and build default to nonopt.
643 # 5. If nonopt is not specified, then target and build default to host.
644
645 # The aliases save the names the user supplied, while $host etc.
646 # will get canonicalized.
647 case $host---$target---$nonopt in
648 NONE---*---* | *---NONE---* | *---*---NONE) ;;
649 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
650 esac
651
652
653 # Make sure we can run config.sub.
654 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
655 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
656 fi
657
658 echo $ac_n "checking host system type""... $ac_c" 1>&6
659 echo "configure:660: checking host system type" >&5
660
661 host_alias=$host
662 case "$host_alias" in
663 NONE)
664   case $nonopt in
665   NONE)
666     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
667     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
668     fi ;;
669   *) host_alias=$nonopt ;;
670   esac ;;
671 esac
672
673 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
674 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
675 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
676 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
677 echo "$ac_t""$host" 1>&6
678
679 echo $ac_n "checking target system type""... $ac_c" 1>&6
680 echo "configure:681: checking target system type" >&5
681
682 target_alias=$target
683 case "$target_alias" in
684 NONE)
685   case $nonopt in
686   NONE) target_alias=$host_alias ;;
687   *) target_alias=$nonopt ;;
688   esac ;;
689 esac
690
691 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
692 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
693 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
694 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
695 echo "$ac_t""$target" 1>&6
696
697 echo $ac_n "checking build system type""... $ac_c" 1>&6
698 echo "configure:699: checking build system type" >&5
699
700 build_alias=$build
701 case "$build_alias" in
702 NONE)
703   case $nonopt in
704   NONE) build_alias=$host_alias ;;
705   *) build_alias=$nonopt ;;
706   esac ;;
707 esac
708
709 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
710 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
711 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
712 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
713 echo "$ac_t""$build" 1>&6
714
715 test "$host_alias" != "$target_alias" &&
716   test "$program_prefix$program_suffix$program_transform_name" = \
717     NONENONEs,x,x, &&
718   program_prefix=${target_alias}-
719
720 target_alias=${target_alias-$target}
721
722
723 # Find a good install program.  We prefer a C program (faster),
724 # so one script is as good as another.  But avoid the broken or
725 # incompatible versions:
726 # SysV /etc/install, /usr/sbin/install
727 # SunOS /usr/etc/install
728 # IRIX /sbin/install
729 # AIX /bin/install
730 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
731 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
732 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
733 # ./install, which can be erroneously created by make from ./install.sh.
734 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
735 echo "configure:736: checking for a BSD compatible install" >&5
736 if test -z "$INSTALL"; then
737 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
738   echo $ac_n "(cached) $ac_c" 1>&6
739 else
740     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
741   for ac_dir in $PATH; do
742     # Account for people who put trailing slashes in PATH elements.
743     case "$ac_dir/" in
744     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
745     *)
746       # OSF1 and SCO ODT 3.0 have their own names for install.
747       # Don't use installbsd from OSF since it installs stuff as root
748       # by default.
749       for ac_prog in ginstall scoinst install; do
750         if test -f $ac_dir/$ac_prog; then
751           if test $ac_prog = install &&
752             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
753             # AIX install.  It has an incompatible calling convention.
754             :
755           else
756             ac_cv_path_install="$ac_dir/$ac_prog -c"
757             break 2
758           fi
759         fi
760       done
761       ;;
762     esac
763   done
764   IFS="$ac_save_IFS"
765
766 fi
767   if test "${ac_cv_path_install+set}" = set; then
768     INSTALL="$ac_cv_path_install"
769   else
770     # As a last resort, use the slow shell script.  We don't cache a
771     # path for INSTALL within a source directory, because that will
772     # break other packages using the cache if that directory is
773     # removed, or if the path is relative.
774     INSTALL="$ac_install_sh"
775   fi
776 fi
777 echo "$ac_t""$INSTALL" 1>&6
778
779 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
780 # It thinks the first close brace ends the variable substitution.
781 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
782
783 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
784
785 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
786
787 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
788 echo "configure:789: checking whether build environment is sane" >&5
789 # Just in case
790 sleep 1
791 echo timestamp > conftestfile
792 # Do `set' in a subshell so we don't clobber the current shell's
793 # arguments.  Must try -L first in case configure is actually a
794 # symlink; some systems play weird games with the mod time of symlinks
795 # (eg FreeBSD returns the mod time of the symlink's containing
796 # directory).
797 if (
798    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
799    if test "$*" = "X"; then
800       # -L didn't work.
801       set X `ls -t $srcdir/configure conftestfile`
802    fi
803    if test "$*" != "X $srcdir/configure conftestfile" \
804       && test "$*" != "X conftestfile $srcdir/configure"; then
805
806       # If neither matched, then we have a broken ls.  This can happen
807       # if, for instance, CONFIG_SHELL is bash and it inherits a
808       # broken ls alias from the environment.  This has actually
809       # happened.  Such a system could not be considered "sane".
810       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
811 alias in your environment" 1>&2; exit 1; }
812    fi
813
814    test "$2" = conftestfile
815    )
816 then
817    # Ok.
818    :
819 else
820    { echo "configure: error: newly created file is older than distributed files!
821 Check your system clock" 1>&2; exit 1; }
822 fi
823 rm -f conftest*
824 echo "$ac_t""yes" 1>&6
825 if test "$program_transform_name" = s,x,x,; then
826   program_transform_name=
827 else
828   # Double any \ or $.  echo might interpret backslashes.
829   cat <<\EOF_SED > conftestsed
830 s,\\,\\\\,g; s,\$,$$,g
831 EOF_SED
832   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
833   rm -f conftestsed
834 fi
835 test "$program_prefix" != NONE &&
836   program_transform_name="s,^,${program_prefix},; $program_transform_name"
837 # Use a double $ so make ignores it.
838 test "$program_suffix" != NONE &&
839   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
840
841 # sed with no file args requires a program.
842 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
843
844 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
845 echo "configure:846: checking whether ${MAKE-make} sets \${MAKE}" >&5
846 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
847 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
848   echo $ac_n "(cached) $ac_c" 1>&6
849 else
850   cat > conftestmake <<\EOF
851 all:
852         @echo 'ac_maketemp="${MAKE}"'
853 EOF
854 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
855 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
856 if test -n "$ac_maketemp"; then
857   eval ac_cv_prog_make_${ac_make}_set=yes
858 else
859   eval ac_cv_prog_make_${ac_make}_set=no
860 fi
861 rm -f conftestmake
862 fi
863 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
864   echo "$ac_t""yes" 1>&6
865   SET_MAKE=
866 else
867   echo "$ac_t""no" 1>&6
868   SET_MAKE="MAKE=${MAKE-make}"
869 fi
870
871
872 PACKAGE=$PACKAGE
873
874 VERSION=$release_VERSION
875
876 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
877   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
878 fi
879 cat >> confdefs.h <<EOF
880 #define PACKAGE "$PACKAGE"
881 EOF
882
883 cat >> confdefs.h <<EOF
884 #define VERSION "$VERSION"
885 EOF
886
887
888
889 missing_dir=`cd $ac_aux_dir && pwd`
890 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
891 echo "configure:892: checking for working aclocal" >&5
892 # Run test in a subshell; some versions of sh will print an error if
893 # an executable is not found, even if stderr is redirected.
894 # Redirect stdin to placate older versions of autoconf.  Sigh.
895 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
896    ACLOCAL=aclocal
897    echo "$ac_t""found" 1>&6
898 else
899    ACLOCAL="$missing_dir/missing aclocal"
900    echo "$ac_t""missing" 1>&6
901 fi
902
903 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
904 echo "configure:905: checking for working autoconf" >&5
905 # Run test in a subshell; some versions of sh will print an error if
906 # an executable is not found, even if stderr is redirected.
907 # Redirect stdin to placate older versions of autoconf.  Sigh.
908 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
909    AUTOCONF=autoconf
910    echo "$ac_t""found" 1>&6
911 else
912    AUTOCONF="$missing_dir/missing autoconf"
913    echo "$ac_t""missing" 1>&6
914 fi
915
916 echo $ac_n "checking for working automake""... $ac_c" 1>&6
917 echo "configure:918: checking for working automake" >&5
918 # Run test in a subshell; some versions of sh will print an error if
919 # an executable is not found, even if stderr is redirected.
920 # Redirect stdin to placate older versions of autoconf.  Sigh.
921 if (automake --version) < /dev/null > /dev/null 2>&1; then
922    AUTOMAKE=automake
923    echo "$ac_t""found" 1>&6
924 else
925    AUTOMAKE="$missing_dir/missing automake"
926    echo "$ac_t""missing" 1>&6
927 fi
928
929 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
930 echo "configure:931: checking for working autoheader" >&5
931 # Run test in a subshell; some versions of sh will print an error if
932 # an executable is not found, even if stderr is redirected.
933 # Redirect stdin to placate older versions of autoconf.  Sigh.
934 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
935    AUTOHEADER=autoheader
936    echo "$ac_t""found" 1>&6
937 else
938    AUTOHEADER="$missing_dir/missing autoheader"
939    echo "$ac_t""missing" 1>&6
940 fi
941
942 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
943 echo "configure:944: checking for working makeinfo" >&5
944 # Run test in a subshell; some versions of sh will print an error if
945 # an executable is not found, even if stderr is redirected.
946 # Redirect stdin to placate older versions of autoconf.  Sigh.
947 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
948    MAKEINFO=makeinfo
949    echo "$ac_t""found" 1>&6
950 else
951    MAKEINFO="$missing_dir/missing makeinfo"
952    echo "$ac_t""missing" 1>&6
953 fi
954
955
956
957
958
959
960 # Runs configure.host and configure.target, as well as finds CC, CXX
961 # and assorted other critical bits.  Have to run this before the
962 # GLIBCPP_ENABLE_* macros below.
963 if test $host != $build; then
964   ac_tool_prefix=${host_alias}-
965 else
966   ac_tool_prefix=
967 fi
968
969 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
970 echo "configure:971: checking for Cygwin environment" >&5
971 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
972   echo $ac_n "(cached) $ac_c" 1>&6
973 else
974   cat > conftest.$ac_ext <<EOF
975 #line 976 "configure"
976 #include "confdefs.h"
977
978 int main() {
979
980 #ifndef __CYGWIN__
981 #define __CYGWIN__ __CYGWIN32__
982 #endif
983 return __CYGWIN__;
984 ; return 0; }
985 EOF
986 if { (eval echo configure:987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
987   rm -rf conftest*
988   ac_cv_cygwin=yes
989 else
990   echo "configure: failed program was:" >&5
991   cat conftest.$ac_ext >&5
992   rm -rf conftest*
993   ac_cv_cygwin=no
994 fi
995 rm -f conftest*
996 rm -f conftest*
997 fi
998
999 echo "$ac_t""$ac_cv_cygwin" 1>&6
1000 CYGWIN=
1001 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1002 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1003 echo "configure:1004: checking for mingw32 environment" >&5
1004 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1005   echo $ac_n "(cached) $ac_c" 1>&6
1006 else
1007   cat > conftest.$ac_ext <<EOF
1008 #line 1009 "configure"
1009 #include "confdefs.h"
1010
1011 int main() {
1012 return __MINGW32__;
1013 ; return 0; }
1014 EOF
1015 if { (eval echo configure:1016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1016   rm -rf conftest*
1017   ac_cv_mingw32=yes
1018 else
1019   echo "configure: failed program was:" >&5
1020   cat conftest.$ac_ext >&5
1021   rm -rf conftest*
1022   ac_cv_mingw32=no
1023 fi
1024 rm -f conftest*
1025 rm -f conftest*
1026 fi
1027
1028 echo "$ac_t""$ac_cv_mingw32" 1>&6
1029 MINGW32=
1030 test "$ac_cv_mingw32" = yes && MINGW32=yes
1031
1032     # Check whether --enable-multilib or --disable-multilib was given.
1033 if test "${enable_multilib+set}" = set; then
1034   enableval="$enable_multilib"
1035   case "${enableval}" in
1036     yes) multilib=yes ;;
1037     no)  multilib=no ;;
1038     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1039    esac
1040 else
1041   multilib=yes
1042 fi
1043
1044   # When building with srcdir == objdir, links to the source files will
1045   # be created in directories within the target_subdir.  We have to
1046   # adjust toplevel_srcdir accordingly, so that configure finds
1047   # install-sh and other auxiliary files that live in the top-level
1048   # source directory.
1049   if test "${srcdir}" = "."; then
1050     if test -z "${with_target_subdir}"; then
1051       toprel=".."
1052     else
1053       if test "${with_target_subdir}" != "."; then
1054         toprel="${with_multisrctop}../.."
1055       else
1056         toprel="${with_multisrctop}.."
1057       fi
1058     fi
1059   else
1060     toprel=".."
1061   fi
1062   ac_aux_dir=
1063 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1064   if test -f $ac_dir/install-sh; then
1065     ac_aux_dir=$ac_dir
1066     ac_install_sh="$ac_aux_dir/install-sh -c"
1067     break
1068   elif test -f $ac_dir/install.sh; then
1069     ac_aux_dir=$ac_dir
1070     ac_install_sh="$ac_aux_dir/install.sh -c"
1071     break
1072   fi
1073 done
1074 if test -z "$ac_aux_dir"; then
1075   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
1076 fi
1077 ac_config_guess=$ac_aux_dir/config.guess
1078 ac_config_sub=$ac_aux_dir/config.sub
1079 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1080
1081   toplevel_srcdir=\${top_srcdir}/$toprel
1082   
1083
1084   # Export build and source directories.
1085   # These need to be absolute paths, yet at the same time need to
1086   # canonicalize only relative paths, because then amd will not unmount
1087   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1088   glibcpp_builddir=`pwd`
1089   case $srcdir in
1090   \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1091   *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1092   esac
1093   
1094   
1095
1096     
1097
1098   for ac_prog in mawk gawk nawk awk
1099 do
1100 # Extract the first word of "$ac_prog", so it can be a program name with args.
1101 set dummy $ac_prog; ac_word=$2
1102 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1103 echo "configure:1104: checking for $ac_word" >&5
1104 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1105   echo $ac_n "(cached) $ac_c" 1>&6
1106 else
1107   if test -n "$AWK"; then
1108   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1109 else
1110   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1111   ac_dummy="$PATH"
1112   for ac_dir in $ac_dummy; do
1113     test -z "$ac_dir" && ac_dir=.
1114     if test -f $ac_dir/$ac_word; then
1115       ac_cv_prog_AWK="$ac_prog"
1116       break
1117     fi
1118   done
1119   IFS="$ac_save_ifs"
1120 fi
1121 fi
1122 AWK="$ac_cv_prog_AWK"
1123 if test -n "$AWK"; then
1124   echo "$ac_t""$AWK" 1>&6
1125 else
1126   echo "$ac_t""no" 1>&6
1127 fi
1128
1129 test -n "$AWK" && break
1130 done
1131
1132   # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.5x, can also
1133   # be 'cp -p' if linking isn't available.
1134   #ac_cv_prog_LN_S='cp -p'
1135   echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1136 echo "configure:1137: checking whether ln -s works" >&5
1137 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1138   echo $ac_n "(cached) $ac_c" 1>&6
1139 else
1140   rm -f conftestdata
1141 if ln -s X conftestdata 2>/dev/null
1142 then
1143   rm -f conftestdata
1144   ac_cv_prog_LN_S="ln -s"
1145 else
1146   ac_cv_prog_LN_S=ln
1147 fi
1148 fi
1149 LN_S="$ac_cv_prog_LN_S"
1150 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1151   echo "$ac_t""yes" 1>&6
1152 else
1153   echo "$ac_t""no" 1>&6
1154 fi
1155
1156
1157   # We use these options to decide which functions to include.
1158   # Check whether --with-target-subdir or --without-target-subdir was given.
1159 if test "${with_target_subdir+set}" = set; then
1160   withval="$with_target_subdir"
1161   :
1162 fi
1163
1164   # Check whether --with-cross-host or --without-cross-host was given.
1165 if test "${with_cross_host+set}" = set; then
1166   withval="$with_cross_host"
1167   :
1168 fi
1169
1170
1171   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
1172   
1173
1174   # Never versions of autoconf add an underscore to these functions.
1175   # Prevent future problems ...
1176   
1177   
1178   
1179   
1180
1181   # AC_PROG_CC
1182   # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1183   # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1184   # are probably using a cross compiler, which will not be able to fully
1185   # link an executable.  This is addressed in later versions of autoconf.
1186
1187   
1188
1189       
1190   # Extract the first word of "gcc", so it can be a program name with args.
1191 set dummy gcc; ac_word=$2
1192 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1193 echo "configure:1194: checking for $ac_word" >&5
1194 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1195   echo $ac_n "(cached) $ac_c" 1>&6
1196 else
1197   if test -n "$CC"; then
1198   ac_cv_prog_CC="$CC" # Let the user override the test.
1199 else
1200   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1201   ac_dummy="$PATH"
1202   for ac_dir in $ac_dummy; do
1203     test -z "$ac_dir" && ac_dir=.
1204     if test -f $ac_dir/$ac_word; then
1205       ac_cv_prog_CC="gcc"
1206       break
1207     fi
1208   done
1209   IFS="$ac_save_ifs"
1210 fi
1211 fi
1212 CC="$ac_cv_prog_CC"
1213 if test -n "$CC"; then
1214   echo "$ac_t""$CC" 1>&6
1215 else
1216   echo "$ac_t""no" 1>&6
1217 fi
1218
1219   if test -z "$CC"; then
1220     # Extract the first word of "cc", so it can be a program name with args.
1221 set dummy cc; ac_word=$2
1222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1223 echo "configure:1224: checking for $ac_word" >&5
1224 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1225   echo $ac_n "(cached) $ac_c" 1>&6
1226 else
1227   if test -n "$CC"; then
1228   ac_cv_prog_CC="$CC" # Let the user override the test.
1229 else
1230   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1231   ac_prog_rejected=no
1232   ac_dummy="$PATH"
1233   for ac_dir in $ac_dummy; do
1234     test -z "$ac_dir" && ac_dir=.
1235     if test -f $ac_dir/$ac_word; then
1236       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1237         ac_prog_rejected=yes
1238         continue
1239       fi
1240       ac_cv_prog_CC="cc"
1241       break
1242     fi
1243   done
1244   IFS="$ac_save_ifs"
1245 if test $ac_prog_rejected = yes; then
1246   # We found a bogon in the path, so make sure we never use it.
1247   set dummy $ac_cv_prog_CC
1248   shift
1249   if test $# -gt 0; then
1250     # We chose a different compiler from the bogus one.
1251     # However, it has the same basename, so the bogon will be chosen
1252     # first if we set CC to just the basename; use the full file name.
1253     shift
1254     set dummy "$ac_dir/$ac_word" "$@"
1255     shift
1256     ac_cv_prog_CC="$@"
1257   fi
1258 fi
1259 fi
1260 fi
1261 CC="$ac_cv_prog_CC"
1262 if test -n "$CC"; then
1263   echo "$ac_t""$CC" 1>&6
1264 else
1265   echo "$ac_t""no" 1>&6
1266 fi
1267
1268     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1269   fi
1270
1271   echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1272 echo "configure:1273: checking whether we are using GNU C" >&5
1273 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1274   echo $ac_n "(cached) $ac_c" 1>&6
1275 else
1276   cat > conftest.c <<EOF
1277 #ifdef __GNUC__
1278   yes;
1279 #endif
1280 EOF
1281 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1282   ac_cv_prog_gcc=yes
1283 else
1284   ac_cv_prog_gcc=no
1285 fi
1286 fi
1287
1288 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1289
1290   if test $ac_cv_prog_gcc = yes; then
1291     GCC=yes
1292           ac_test_CFLAGS="${CFLAGS+set}"
1293     ac_save_CFLAGS="$CFLAGS"
1294     CFLAGS=
1295     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1296 echo "configure:1297: checking whether ${CC-cc} accepts -g" >&5
1297 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1298   echo $ac_n "(cached) $ac_c" 1>&6
1299 else
1300   echo 'void f(){}' > conftest.c
1301 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1302   ac_cv_prog_cc_g=yes
1303 else
1304   ac_cv_prog_cc_g=no
1305 fi
1306 rm -f conftest*
1307
1308 fi
1309
1310 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1311     if test "$ac_test_CFLAGS" = set; then
1312       CFLAGS="$ac_save_CFLAGS"
1313     elif test $ac_cv_prog_cc_g = yes; then
1314       CFLAGS="-g -O2"
1315     else
1316       CFLAGS="-O2"
1317     fi
1318   else
1319     GCC=
1320     test "${CFLAGS+set}" = set || CFLAGS="-g"
1321   fi
1322   
1323
1324   # Likewise for AC_PROG_CXX.  We can't just call it directly because g++
1325   # will try to link in libstdc++.
1326   
1327
1328       
1329   # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1330   # flags that come in CXX while configuring libstdc++.  They're different
1331   # from those used for all other target libraries.  If CXX is set in
1332   # the environment, respect that here.
1333   glibcpp_CXX=$CXX
1334   for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1335 do
1336 # Extract the first word of "$ac_prog", so it can be a program name with args.
1337 set dummy $ac_prog; ac_word=$2
1338 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1339 echo "configure:1340: checking for $ac_word" >&5
1340 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1341   echo $ac_n "(cached) $ac_c" 1>&6
1342 else
1343   if test -n "$glibcpp_CXX"; then
1344   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1345 else
1346   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1347   ac_dummy="$PATH"
1348   for ac_dir in $ac_dummy; do
1349     test -z "$ac_dir" && ac_dir=.
1350     if test -f $ac_dir/$ac_word; then
1351       ac_cv_prog_glibcpp_CXX="$ac_prog"
1352       break
1353     fi
1354   done
1355   IFS="$ac_save_ifs"
1356 fi
1357 fi
1358 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1359 if test -n "$glibcpp_CXX"; then
1360   echo "$ac_t""$glibcpp_CXX" 1>&6
1361 else
1362   echo "$ac_t""no" 1>&6
1363 fi
1364
1365 test -n "$glibcpp_CXX" && break
1366 done
1367 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1368
1369   
1370   CXX=$glibcpp_CXX
1371   test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1372
1373   echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1374 echo "configure:1375: checking whether we are using GNU C++" >&5
1375 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1376   echo $ac_n "(cached) $ac_c" 1>&6
1377 else
1378   cat > conftest.C <<EOF
1379 #ifdef __GNUC__
1380   yes;
1381 #endif
1382 EOF
1383 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1384   ac_cv_prog_gxx=yes
1385 else
1386   ac_cv_prog_gxx=no
1387 fi
1388 fi
1389
1390 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1391
1392   if test $ac_cv_prog_gxx = yes; then
1393     GXX=yes
1394                 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1395     ac_save_CXXFLAGS="$CXXFLAGS"
1396     CXXFLAGS=
1397     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1398 echo "configure:1399: checking whether ${CXX-g++} accepts -g" >&5
1399 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1400   echo $ac_n "(cached) $ac_c" 1>&6
1401 else
1402   echo 'void f(){}' > conftest.cc
1403 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1404   ac_cv_prog_cxx_g=yes
1405 else
1406   ac_cv_prog_cxx_g=no
1407 fi
1408 rm -f conftest*
1409
1410 fi
1411
1412 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1413     if test "$ac_test_CXXFLAGS" = set; then
1414       CXXFLAGS="$ac_save_CXXFLAGS"
1415     elif test $ac_cv_prog_cxx_g = yes; then
1416       CXXFLAGS="-g -O2"
1417     else
1418       CXXFLAGS="-O2"
1419     fi
1420   else
1421     GXX=
1422     test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1423   fi
1424   
1425
1426   # For some reason, gettext needs this.
1427   
1428         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1429 echo "configure:1430: checking for strerror in -lcposix" >&5
1430 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1431 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1432   echo $ac_n "(cached) $ac_c" 1>&6
1433 else
1434   ac_save_LIBS="$LIBS"
1435 LIBS="-lcposix  $LIBS"
1436 cat > conftest.$ac_ext <<EOF
1437 #line 1438 "configure"
1438 #include "confdefs.h"
1439 /* Override any gcc2 internal prototype to avoid an error.  */
1440 /* We use char because int might match the return type of a gcc2
1441     builtin and then its argument prototype would still apply.  */
1442 char strerror();
1443
1444 int main() {
1445 strerror()
1446 ; return 0; }
1447 EOF
1448 if { (eval echo configure:1449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1449   rm -rf conftest*
1450   eval "ac_cv_lib_$ac_lib_var=yes"
1451 else
1452   echo "configure: failed program was:" >&5
1453   cat conftest.$ac_ext >&5
1454   rm -rf conftest*
1455   eval "ac_cv_lib_$ac_lib_var=no"
1456 fi
1457 rm -f conftest*
1458 LIBS="$ac_save_LIBS"
1459
1460 fi
1461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1462   echo "$ac_t""yes" 1>&6
1463   LIBS="$LIBS -lcposix"
1464 else
1465   echo "$ac_t""no" 1>&6
1466 fi
1467
1468   
1469
1470
1471   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1472 set dummy ${ac_tool_prefix}as; ac_word=$2
1473 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1474 echo "configure:1475: checking for $ac_word" >&5
1475 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1476   echo $ac_n "(cached) $ac_c" 1>&6
1477 else
1478   if test -n "$AS"; then
1479   ac_cv_prog_AS="$AS" # Let the user override the test.
1480 else
1481   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1482   ac_dummy="$PATH"
1483   for ac_dir in $ac_dummy; do
1484     test -z "$ac_dir" && ac_dir=.
1485     if test -f $ac_dir/$ac_word; then
1486       ac_cv_prog_AS="${ac_tool_prefix}as"
1487       break
1488     fi
1489   done
1490   IFS="$ac_save_ifs"
1491   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1492 fi
1493 fi
1494 AS="$ac_cv_prog_AS"
1495 if test -n "$AS"; then
1496   echo "$ac_t""$AS" 1>&6
1497 else
1498   echo "$ac_t""no" 1>&6
1499 fi
1500
1501
1502
1503   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1504 set dummy ${ac_tool_prefix}ar; ac_word=$2
1505 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1506 echo "configure:1507: checking for $ac_word" >&5
1507 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1508   echo $ac_n "(cached) $ac_c" 1>&6
1509 else
1510   if test -n "$AR"; then
1511   ac_cv_prog_AR="$AR" # Let the user override the test.
1512 else
1513   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1514   ac_dummy="$PATH"
1515   for ac_dir in $ac_dummy; do
1516     test -z "$ac_dir" && ac_dir=.
1517     if test -f $ac_dir/$ac_word; then
1518       ac_cv_prog_AR="${ac_tool_prefix}ar"
1519       break
1520     fi
1521   done
1522   IFS="$ac_save_ifs"
1523   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1524 fi
1525 fi
1526 AR="$ac_cv_prog_AR"
1527 if test -n "$AR"; then
1528   echo "$ac_t""$AR" 1>&6
1529 else
1530   echo "$ac_t""no" 1>&6
1531 fi
1532
1533
1534
1535   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1536 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1537 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1538 echo "configure:1539: checking for $ac_word" >&5
1539 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1540   echo $ac_n "(cached) $ac_c" 1>&6
1541 else
1542   if test -n "$RANLIB"; then
1543   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1544 else
1545   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1546   ac_dummy="$PATH"
1547   for ac_dir in $ac_dummy; do
1548     test -z "$ac_dir" && ac_dir=.
1549     if test -f $ac_dir/$ac_word; then
1550       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1551       break
1552     fi
1553   done
1554   IFS="$ac_save_ifs"
1555 fi
1556 fi
1557 RANLIB="$ac_cv_prog_RANLIB"
1558 if test -n "$RANLIB"; then
1559   echo "$ac_t""$RANLIB" 1>&6
1560 else
1561   echo "$ac_t""no" 1>&6
1562 fi
1563
1564
1565 if test -z "$ac_cv_prog_RANLIB"; then
1566 if test -n "$ac_tool_prefix"; then
1567   # Extract the first word of "ranlib", so it can be a program name with args.
1568 set dummy ranlib; ac_word=$2
1569 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1570 echo "configure:1571: checking for $ac_word" >&5
1571 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1572   echo $ac_n "(cached) $ac_c" 1>&6
1573 else
1574   if test -n "$RANLIB"; then
1575   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1576 else
1577   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1578   ac_dummy="$PATH"
1579   for ac_dir in $ac_dummy; do
1580     test -z "$ac_dir" && ac_dir=.
1581     if test -f $ac_dir/$ac_word; then
1582       ac_cv_prog_RANLIB="ranlib"
1583       break
1584     fi
1585   done
1586   IFS="$ac_save_ifs"
1587   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1588 fi
1589 fi
1590 RANLIB="$ac_cv_prog_RANLIB"
1591 if test -n "$RANLIB"; then
1592   echo "$ac_t""$RANLIB" 1>&6
1593 else
1594   echo "$ac_t""no" 1>&6
1595 fi
1596
1597 else
1598   RANLIB="ranlib-not-found-in-path-error"
1599 fi
1600 fi
1601
1602   # Find a good install program.  We prefer a C program (faster),
1603 # so one script is as good as another.  But avoid the broken or
1604 # incompatible versions:
1605 # SysV /etc/install, /usr/sbin/install
1606 # SunOS /usr/etc/install
1607 # IRIX /sbin/install
1608 # AIX /bin/install
1609 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1610 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1611 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1612 # ./install, which can be erroneously created by make from ./install.sh.
1613 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1614 echo "configure:1615: checking for a BSD compatible install" >&5
1615 if test -z "$INSTALL"; then
1616 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1617   echo $ac_n "(cached) $ac_c" 1>&6
1618 else
1619     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1620   for ac_dir in $PATH; do
1621     # Account for people who put trailing slashes in PATH elements.
1622     case "$ac_dir/" in
1623     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1624     *)
1625       # OSF1 and SCO ODT 3.0 have their own names for install.
1626       # Don't use installbsd from OSF since it installs stuff as root
1627       # by default.
1628       for ac_prog in ginstall scoinst install; do
1629         if test -f $ac_dir/$ac_prog; then
1630           if test $ac_prog = install &&
1631             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1632             # AIX install.  It has an incompatible calling convention.
1633             :
1634           else
1635             ac_cv_path_install="$ac_dir/$ac_prog -c"
1636             break 2
1637           fi
1638         fi
1639       done
1640       ;;
1641     esac
1642   done
1643   IFS="$ac_save_IFS"
1644
1645 fi
1646   if test "${ac_cv_path_install+set}" = set; then
1647     INSTALL="$ac_cv_path_install"
1648   else
1649     # As a last resort, use the slow shell script.  We don't cache a
1650     # path for INSTALL within a source directory, because that will
1651     # break other packages using the cache if that directory is
1652     # removed, or if the path is relative.
1653     INSTALL="$ac_install_sh"
1654   fi
1655 fi
1656 echo "$ac_t""$INSTALL" 1>&6
1657
1658 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1659 # It thinks the first close brace ends the variable substitution.
1660 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1661
1662 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1663
1664 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1665
1666
1667   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1668 echo "configure:1669: checking whether to enable maintainer-specific portions of Makefiles" >&5
1669     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1670 if test "${enable_maintainer_mode+set}" = set; then
1671   enableval="$enable_maintainer_mode"
1672   USE_MAINTAINER_MODE=$enableval
1673 else
1674   USE_MAINTAINER_MODE=no
1675 fi
1676
1677   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1678   
1679
1680 if test $USE_MAINTAINER_MODE = yes; then
1681   MAINTAINER_MODE_TRUE=
1682   MAINTAINER_MODE_FALSE='#'
1683 else
1684   MAINTAINER_MODE_TRUE='#'
1685   MAINTAINER_MODE_FALSE=
1686 fi
1687   MAINT=$MAINTAINER_MODE_TRUE
1688   
1689
1690
1691   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1692   # at least currently, we never actually build a program, so we never
1693   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1694   # fails, because we are probably configuring with a cross compiler
1695   # which can't create executables.  So we include AC_EXEEXT to keep
1696   # automake happy, but we don't execute it, since we don't care about
1697   # the result.
1698   if false; then
1699     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1700     # to nothing, so nothing would remain between `then' and `fi' if it
1701     # were not for the `:' below.
1702     :
1703     
1704
1705 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1706 echo "configure:1707: checking for executable suffix" >&5
1707 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1708   echo $ac_n "(cached) $ac_c" 1>&6
1709 else
1710   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1711   ac_cv_exeext=.exe
1712 else
1713   rm -f conftest*
1714   echo 'int main () { return 0; }' > conftest.$ac_ext
1715   ac_cv_exeext=
1716   if { (eval echo configure:1717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1717     for file in conftest.*; do
1718       case $file in
1719       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1720       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1721       esac
1722     done
1723   else
1724     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1725   fi
1726   rm -f conftest*
1727   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1728 fi
1729 fi
1730
1731 EXEEXT=""
1732 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1733 echo "$ac_t""${ac_cv_exeext}" 1>&6
1734 ac_exeext=$EXEEXT
1735
1736   fi
1737
1738   . ${glibcpp_basedir}/configure.host
1739
1740   case ${glibcpp_basedir} in
1741     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1742     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1743   esac
1744
1745   # This does for the target what configure.host does for the host.  In
1746   # addition to possibly modifying the same flags, it also sets up symlinks.
1747   
1748     . ${glibcpp_basedir}/configure.target
1749     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1750     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1751
1752
1753
1754
1755
1756 # Check whether --enable-shared or --disable-shared was given.
1757 if test "${enable_shared+set}" = set; then
1758   enableval="$enable_shared"
1759   p=${PACKAGE-default}
1760 case $enableval in
1761 yes) enable_shared=yes ;;
1762 no) enable_shared=no ;;
1763 *)
1764   enable_shared=no
1765   # Look at the argument we got.  We use all the common list separators.
1766   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1767   for pkg in $enableval; do
1768     if test "X$pkg" = "X$p"; then
1769       enable_shared=yes
1770     fi
1771   done
1772   IFS="$ac_save_ifs"
1773   ;;
1774 esac
1775 else
1776   enable_shared=yes
1777 fi
1778
1779 # Check whether --enable-static or --disable-static was given.
1780 if test "${enable_static+set}" = set; then
1781   enableval="$enable_static"
1782   p=${PACKAGE-default}
1783 case $enableval in
1784 yes) enable_static=yes ;;
1785 no) enable_static=no ;;
1786 *)
1787   enable_static=no
1788   # Look at the argument we got.  We use all the common list separators.
1789   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1790   for pkg in $enableval; do
1791     if test "X$pkg" = "X$p"; then
1792       enable_static=yes
1793     fi
1794   done
1795   IFS="$ac_save_ifs"
1796   ;;
1797 esac
1798 else
1799   enable_static=yes
1800 fi
1801
1802 # Check whether --enable-fast-install or --disable-fast-install was given.
1803 if test "${enable_fast_install+set}" = set; then
1804   enableval="$enable_fast_install"
1805   p=${PACKAGE-default}
1806 case $enableval in
1807 yes) enable_fast_install=yes ;;
1808 no) enable_fast_install=no ;;
1809 *)
1810   enable_fast_install=no
1811   # Look at the argument we got.  We use all the common list separators.
1812   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1813   for pkg in $enableval; do
1814     if test "X$pkg" = "X$p"; then
1815       enable_fast_install=yes
1816     fi
1817   done
1818   IFS="$ac_save_ifs"
1819   ;;
1820 esac
1821 else
1822   enable_fast_install=yes
1823 fi
1824
1825 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1826 if test "${with_gnu_ld+set}" = set; then
1827   withval="$with_gnu_ld"
1828   test "$withval" = no || with_gnu_ld=yes
1829 else
1830   with_gnu_ld=no
1831 fi
1832
1833 ac_prog=ld
1834 if test "$GCC" = yes; then
1835   # Check if gcc -print-prog-name=ld gives a path.
1836   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1837 echo "configure:1838: checking for ld used by GCC" >&5
1838   case $host in
1839   *-*-mingw*)
1840     # gcc leaves a trailing carriage return which upsets mingw
1841     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1842   *)
1843     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1844   esac
1845   case $ac_prog in
1846     # Accept absolute paths.
1847     [\\/]* | [A-Za-z]:[\\/]*)
1848       re_direlt='/[^/][^/]*/\.\./'
1849       # Canonicalize the path of ld
1850       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1851       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1852         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1853       done
1854       test -z "$LD" && LD="$ac_prog"
1855       ;;
1856   "")
1857     # If it fails, then pretend we aren't using GCC.
1858     ac_prog=ld
1859     ;;
1860   *)
1861     # If it is relative, then search for the first ld in PATH.
1862     with_gnu_ld=unknown
1863     ;;
1864   esac
1865 elif test "$with_gnu_ld" = yes; then
1866   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1867 echo "configure:1868: checking for GNU ld" >&5
1868 else
1869   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1870 echo "configure:1871: checking for non-GNU ld" >&5
1871 fi
1872 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1873   echo $ac_n "(cached) $ac_c" 1>&6
1874 else
1875   if test -z "$LD"; then
1876   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1877   for ac_dir in $PATH; do
1878     test -z "$ac_dir" && ac_dir=.
1879     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1880       lt_cv_path_LD="$ac_dir/$ac_prog"
1881       # Check to see if the program is GNU ld.  I'd rather use --version,
1882       # but apparently some GNU ld's only accept -v.
1883       # Break only if it was the GNU/non-GNU ld that we prefer.
1884       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1885         test "$with_gnu_ld" != no && break
1886       else
1887         test "$with_gnu_ld" != yes && break
1888       fi
1889     fi
1890   done
1891   IFS="$ac_save_ifs"
1892 else
1893   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1894 fi
1895 fi
1896
1897 LD="$lt_cv_path_LD"
1898 if test -n "$LD"; then
1899   echo "$ac_t""$LD" 1>&6
1900 else
1901   echo "$ac_t""no" 1>&6
1902 fi
1903 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1904 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1905 echo "configure:1906: checking if the linker ($LD) is GNU ld" >&5
1906 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1907   echo $ac_n "(cached) $ac_c" 1>&6
1908 else
1909   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1910 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1911   lt_cv_prog_gnu_ld=yes
1912 else
1913   lt_cv_prog_gnu_ld=no
1914 fi
1915 fi
1916
1917 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1918 with_gnu_ld=$lt_cv_prog_gnu_ld
1919
1920
1921 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1922 echo "configure:1923: checking for $LD option to reload object files" >&5
1923 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1924   echo $ac_n "(cached) $ac_c" 1>&6
1925 else
1926   lt_cv_ld_reload_flag='-r'
1927 fi
1928
1929 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1930 reload_flag=$lt_cv_ld_reload_flag
1931 test -n "$reload_flag" && reload_flag=" $reload_flag"
1932
1933 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1934 echo "configure:1935: checking for BSD-compatible nm" >&5
1935 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1936   echo $ac_n "(cached) $ac_c" 1>&6
1937 else
1938   if test -n "$NM"; then
1939   # Let the user override the test.
1940   lt_cv_path_NM="$NM"
1941 else
1942   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1943   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1944     test -z "$ac_dir" && ac_dir=.
1945     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1946     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1947       # Check to see if the nm accepts a BSD-compat flag.
1948       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1949       #   nm: unknown option "B" ignored
1950       # Tru64's nm complains that /dev/null is an invalid object file
1951       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1952         lt_cv_path_NM="$tmp_nm -B"
1953         break
1954       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1955         lt_cv_path_NM="$tmp_nm -p"
1956         break
1957       else
1958         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1959         continue # so that we can try to find one that supports BSD flags
1960       fi
1961     fi
1962   done
1963   IFS="$ac_save_ifs"
1964   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1965 fi
1966 fi
1967
1968 NM="$lt_cv_path_NM"
1969 echo "$ac_t""$NM" 1>&6
1970
1971 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1972 echo "configure:1973: checking how to recognise dependant libraries" >&5
1973 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1974   echo $ac_n "(cached) $ac_c" 1>&6
1975 else
1976   lt_cv_file_magic_cmd='$MAGIC_CMD'
1977 lt_cv_file_magic_test_file=
1978 lt_cv_deplibs_check_method='unknown'
1979 # Need to set the preceding variable on all platforms that support
1980 # interlibrary dependencies.
1981 # 'none' -- dependencies not supported.
1982 # `unknown' -- same as none, but documents that we really don't know.
1983 # 'pass_all' -- all dependencies passed with no checks.
1984 # 'test_compile' -- check by making test program.
1985 # 'file_magic [regex]' -- check by looking for files in library path
1986 # which responds to the $file_magic_cmd with a given egrep regex.
1987 # If you have `file' or equivalent on your system and you're not sure
1988 # whether `pass_all' will *always* work, you probably want this one.
1989
1990 case $host_os in
1991 aix*)
1992   lt_cv_deplibs_check_method=pass_all
1993   ;;
1994
1995 beos*)
1996   lt_cv_deplibs_check_method=pass_all
1997   ;;
1998
1999 bsdi4*)
2000   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2001   lt_cv_file_magic_cmd='/usr/bin/file -L'
2002   lt_cv_file_magic_test_file=/shlib/libc.so
2003   ;;
2004
2005 cygwin* | mingw* |pw32*)
2006   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2007   lt_cv_file_magic_cmd='$OBJDUMP -f'
2008   ;;
2009
2010 darwin* | rhapsody*)
2011   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2012   lt_cv_file_magic_cmd='/usr/bin/file -L'
2013   case "$host_os" in
2014   rhapsody* | darwin1.012)
2015     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2016     ;;
2017   *) # Darwin 1.3 on
2018     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2019     ;;
2020   esac
2021   ;;
2022
2023 freebsd* )
2024   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2025     case $host_cpu in
2026     i*86 )
2027       # Not sure whether the presence of OpenBSD here was a mistake.
2028       # Let's accept both of them until this is cleared up.
2029       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2030       lt_cv_file_magic_cmd=/usr/bin/file
2031       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2032       ;;
2033     esac
2034   else
2035     lt_cv_deplibs_check_method=pass_all
2036   fi
2037   ;;
2038
2039 gnu*)
2040   lt_cv_deplibs_check_method=pass_all
2041   ;;
2042
2043 hpux10.20*|hpux11*)
2044   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2045   lt_cv_file_magic_cmd=/usr/bin/file
2046   lt_cv_file_magic_test_file=/usr/lib/libc.sl
2047   ;;
2048
2049 irix5* | irix6*)
2050   case $host_os in
2051   irix5*)
2052     # this will be overridden with pass_all, but let us keep it just in case
2053     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2054     ;;
2055   *)
2056     case $LD in
2057     *-32|*"-32 ") libmagic=32-bit;;
2058     *-n32|*"-n32 ") libmagic=N32;;
2059     *-64|*"-64 ") libmagic=64-bit;;
2060     *) libmagic=never-match;;
2061     esac
2062     # this will be overridden with pass_all, but let us keep it just in case
2063     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2064     ;;
2065   esac
2066   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2067   lt_cv_deplibs_check_method=pass_all
2068   ;;
2069
2070 # This must be Linux ELF.
2071 linux-gnu*)
2072   case $host_cpu in
2073   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2074     lt_cv_deplibs_check_method=pass_all ;;
2075   *)
2076     # glibc up to 2.1.1 does not perform some relocations on ARM
2077     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2078   esac
2079   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2080   ;;
2081
2082 netbsd*)
2083   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2084     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2085   else
2086     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2087   fi
2088   ;;
2089
2090 newsos6)
2091   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2092   lt_cv_file_magic_cmd=/usr/bin/file
2093   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2094   ;;
2095
2096 osf3* | osf4* | osf5*)
2097   # this will be overridden with pass_all, but let us keep it just in case
2098   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2099   lt_cv_file_magic_test_file=/shlib/libc.so
2100   lt_cv_deplibs_check_method=pass_all
2101   ;;
2102
2103 sco3.2v5*)
2104   lt_cv_deplibs_check_method=pass_all
2105   ;;
2106
2107 solaris*)
2108   lt_cv_deplibs_check_method=pass_all
2109   lt_cv_file_magic_test_file=/lib/libc.so
2110   ;;
2111
2112 sysv5uw[78]* | sysv4*uw2*)
2113   lt_cv_deplibs_check_method=pass_all
2114   ;;
2115
2116 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2117   case $host_vendor in
2118   ncr)
2119     lt_cv_deplibs_check_method=pass_all
2120     ;;
2121   motorola)
2122     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2123     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2124     ;;
2125   esac
2126   ;;
2127 esac
2128
2129 fi
2130
2131 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2132 file_magic_cmd=$lt_cv_file_magic_cmd
2133 deplibs_check_method=$lt_cv_deplibs_check_method
2134
2135 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2136 echo "configure:2137: checking for object suffix" >&5
2137 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2138   echo $ac_n "(cached) $ac_c" 1>&6
2139 else
2140   rm -f conftest*
2141 echo 'int i = 1;' > conftest.$ac_ext
2142 if { (eval echo configure:2143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2143   for ac_file in conftest.*; do
2144     case $ac_file in
2145     *.c) ;;
2146     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2147     esac
2148   done
2149 else
2150   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2151 fi
2152 rm -f conftest*
2153 fi
2154
2155 echo "$ac_t""$ac_cv_objext" 1>&6
2156 OBJEXT=$ac_cv_objext
2157 ac_objext=$ac_cv_objext
2158
2159 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2160
2161 # Only perform the check for file, if the check method requires it
2162 case $deplibs_check_method in
2163 file_magic*)
2164   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2165     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2166 echo "configure:2167: checking for ${ac_tool_prefix}file" >&5
2167 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2168   echo $ac_n "(cached) $ac_c" 1>&6
2169 else
2170   case $MAGIC_CMD in
2171   /*)
2172   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2173   ;;
2174   ?:/*)
2175   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2176   ;;
2177   *)
2178   ac_save_MAGIC_CMD="$MAGIC_CMD"
2179   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2180   ac_dummy="/usr/bin:$PATH"
2181   for ac_dir in $ac_dummy; do
2182     test -z "$ac_dir" && ac_dir=.
2183     if test -f $ac_dir/${ac_tool_prefix}file; then
2184       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2185       if test -n "$file_magic_test_file"; then
2186         case $deplibs_check_method in
2187         "file_magic "*)
2188           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2189           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2190           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2191             egrep "$file_magic_regex" > /dev/null; then
2192             :
2193           else
2194             cat <<EOF 1>&2
2195
2196 *** Warning: the command libtool uses to detect shared libraries,
2197 *** $file_magic_cmd, produces output that libtool cannot recognize.
2198 *** The result is that libtool may fail to recognize shared libraries
2199 *** as such.  This will affect the creation of libtool libraries that
2200 *** depend on shared libraries, but programs linked with such libtool
2201 *** libraries will work regardless of this problem.  Nevertheless, you
2202 *** may want to report the problem to your system manager and/or to
2203 *** bug-libtool@gnu.org
2204
2205 EOF
2206           fi ;;
2207         esac
2208       fi
2209       break
2210     fi
2211   done
2212   IFS="$ac_save_ifs"
2213   MAGIC_CMD="$ac_save_MAGIC_CMD"
2214   ;;
2215 esac
2216 fi
2217
2218 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2219 if test -n "$MAGIC_CMD"; then
2220   echo "$ac_t""$MAGIC_CMD" 1>&6
2221 else
2222   echo "$ac_t""no" 1>&6
2223 fi
2224
2225 if test -z "$lt_cv_path_MAGIC_CMD"; then
2226   if test -n "$ac_tool_prefix"; then
2227     echo $ac_n "checking for file""... $ac_c" 1>&6
2228 echo "configure:2229: checking for file" >&5
2229 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2230   echo $ac_n "(cached) $ac_c" 1>&6
2231 else
2232   case $MAGIC_CMD in
2233   /*)
2234   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2235   ;;
2236   ?:/*)
2237   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2238   ;;
2239   *)
2240   ac_save_MAGIC_CMD="$MAGIC_CMD"
2241   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2242   ac_dummy="/usr/bin:$PATH"
2243   for ac_dir in $ac_dummy; do
2244     test -z "$ac_dir" && ac_dir=.
2245     if test -f $ac_dir/file; then
2246       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2247       if test -n "$file_magic_test_file"; then
2248         case $deplibs_check_method in
2249         "file_magic "*)
2250           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2251           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2252           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2253             egrep "$file_magic_regex" > /dev/null; then
2254             :
2255           else
2256             cat <<EOF 1>&2
2257
2258 *** Warning: the command libtool uses to detect shared libraries,
2259 *** $file_magic_cmd, produces output that libtool cannot recognize.
2260 *** The result is that libtool may fail to recognize shared libraries
2261 *** as such.  This will affect the creation of libtool libraries that
2262 *** depend on shared libraries, but programs linked with such libtool
2263 *** libraries will work regardless of this problem.  Nevertheless, you
2264 *** may want to report the problem to your system manager and/or to
2265 *** bug-libtool@gnu.org
2266
2267 EOF
2268           fi ;;
2269         esac
2270       fi
2271       break
2272     fi
2273   done
2274   IFS="$ac_save_ifs"
2275   MAGIC_CMD="$ac_save_MAGIC_CMD"
2276   ;;
2277 esac
2278 fi
2279
2280 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2281 if test -n "$MAGIC_CMD"; then
2282   echo "$ac_t""$MAGIC_CMD" 1>&6
2283 else
2284   echo "$ac_t""no" 1>&6
2285 fi
2286
2287   else
2288     MAGIC_CMD=:
2289   fi
2290 fi
2291
2292   fi
2293   ;;
2294 esac
2295
2296 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2297 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2298 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2299 echo "configure:2300: checking for $ac_word" >&5
2300 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2301   echo $ac_n "(cached) $ac_c" 1>&6
2302 else
2303   if test -n "$RANLIB"; then
2304   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2305 else
2306   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2307   ac_dummy="$PATH"
2308   for ac_dir in $ac_dummy; do
2309     test -z "$ac_dir" && ac_dir=.
2310     if test -f $ac_dir/$ac_word; then
2311       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2312       break
2313     fi
2314   done
2315   IFS="$ac_save_ifs"
2316 fi
2317 fi
2318 RANLIB="$ac_cv_prog_RANLIB"
2319 if test -n "$RANLIB"; then
2320   echo "$ac_t""$RANLIB" 1>&6
2321 else
2322   echo "$ac_t""no" 1>&6
2323 fi
2324
2325
2326 if test -z "$ac_cv_prog_RANLIB"; then
2327 if test -n "$ac_tool_prefix"; then
2328   # Extract the first word of "ranlib", so it can be a program name with args.
2329 set dummy ranlib; ac_word=$2
2330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2331 echo "configure:2332: checking for $ac_word" >&5
2332 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2333   echo $ac_n "(cached) $ac_c" 1>&6
2334 else
2335   if test -n "$RANLIB"; then
2336   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2337 else
2338   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2339   ac_dummy="$PATH"
2340   for ac_dir in $ac_dummy; do
2341     test -z "$ac_dir" && ac_dir=.
2342     if test -f $ac_dir/$ac_word; then
2343       ac_cv_prog_RANLIB="ranlib"
2344       break
2345     fi
2346   done
2347   IFS="$ac_save_ifs"
2348   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2349 fi
2350 fi
2351 RANLIB="$ac_cv_prog_RANLIB"
2352 if test -n "$RANLIB"; then
2353   echo "$ac_t""$RANLIB" 1>&6
2354 else
2355   echo "$ac_t""no" 1>&6
2356 fi
2357
2358 else
2359   RANLIB=":"
2360 fi
2361 fi
2362
2363 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2364 set dummy ${ac_tool_prefix}strip; ac_word=$2
2365 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2366 echo "configure:2367: checking for $ac_word" >&5
2367 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2368   echo $ac_n "(cached) $ac_c" 1>&6
2369 else
2370   if test -n "$STRIP"; then
2371   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2372 else
2373   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2374   ac_dummy="$PATH"
2375   for ac_dir in $ac_dummy; do
2376     test -z "$ac_dir" && ac_dir=.
2377     if test -f $ac_dir/$ac_word; then
2378       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2379       break
2380     fi
2381   done
2382   IFS="$ac_save_ifs"
2383 fi
2384 fi
2385 STRIP="$ac_cv_prog_STRIP"
2386 if test -n "$STRIP"; then
2387   echo "$ac_t""$STRIP" 1>&6
2388 else
2389   echo "$ac_t""no" 1>&6
2390 fi
2391
2392
2393 if test -z "$ac_cv_prog_STRIP"; then
2394 if test -n "$ac_tool_prefix"; then
2395   # Extract the first word of "strip", so it can be a program name with args.
2396 set dummy strip; ac_word=$2
2397 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2398 echo "configure:2399: checking for $ac_word" >&5
2399 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2400   echo $ac_n "(cached) $ac_c" 1>&6
2401 else
2402   if test -n "$STRIP"; then
2403   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2404 else
2405   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2406   ac_dummy="$PATH"
2407   for ac_dir in $ac_dummy; do
2408     test -z "$ac_dir" && ac_dir=.
2409     if test -f $ac_dir/$ac_word; then
2410       ac_cv_prog_STRIP="strip"
2411       break
2412     fi
2413   done
2414   IFS="$ac_save_ifs"
2415   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2416 fi
2417 fi
2418 STRIP="$ac_cv_prog_STRIP"
2419 if test -n "$STRIP"; then
2420   echo "$ac_t""$STRIP" 1>&6
2421 else
2422   echo "$ac_t""no" 1>&6
2423 fi
2424
2425 else
2426   STRIP=":"
2427 fi
2428 fi
2429
2430
2431 # Check for any special flags to pass to ltconfig.
2432 libtool_flags="--cache-file=$cache_file"
2433 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2434 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2435 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2436 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2437 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2438 libtool_flags="$libtool_flags --enable-dlopen"
2439
2440 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2441 if test "${enable_libtool_lock+set}" = set; then
2442   enableval="$enable_libtool_lock"
2443   :
2444 fi
2445
2446 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2447 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2448
2449 # Check whether --with-pic or --without-pic was given.
2450 if test "${with_pic+set}" = set; then
2451   withval="$with_pic"
2452   pic_mode="$withval"
2453 else
2454   pic_mode=default
2455 fi
2456
2457 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2458 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2459
2460 # Some flags need to be propagated to the compiler or linker for good
2461 # libtool support.
2462 case $host in
2463 *-*-irix6*)
2464   # Find out which ABI we are using.
2465   echo '#line 2466 "configure"' > conftest.$ac_ext
2466   if { (eval echo configure:2467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2467     case `/usr/bin/file conftest.$ac_objext` in
2468     *32-bit*)
2469       LD="${LD-ld} -32"
2470       ;;
2471     *N32*)
2472       LD="${LD-ld} -n32"
2473       ;;
2474     *64-bit*)
2475       LD="${LD-ld} -64"
2476       ;;
2477     esac
2478   fi
2479   rm -rf conftest*
2480   ;;
2481
2482 *-*-sco3.2v5*)
2483   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2484   SAVE_CFLAGS="$CFLAGS"
2485   CFLAGS="$CFLAGS -belf"
2486   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2487 echo "configure:2488: checking whether the C compiler needs -belf" >&5
2488 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2489   echo $ac_n "(cached) $ac_c" 1>&6
2490 else
2491   
2492      ac_ext=c
2493 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2494 ac_cpp='$CPP $CPPFLAGS'
2495 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2496 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2497 cross_compiling=$ac_cv_prog_cc_cross
2498
2499      cat > conftest.$ac_ext <<EOF
2500 #line 2501 "configure"
2501 #include "confdefs.h"
2502
2503 int main() {
2504
2505 ; return 0; }
2506 EOF
2507 if { (eval echo configure:2508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2508   rm -rf conftest*
2509   lt_cv_cc_needs_belf=yes
2510 else
2511   echo "configure: failed program was:" >&5
2512   cat conftest.$ac_ext >&5
2513   rm -rf conftest*
2514   lt_cv_cc_needs_belf=no
2515 fi
2516 rm -f conftest*
2517      ac_ext=c
2518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2519 ac_cpp='$CPP $CPPFLAGS'
2520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2521 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2522 cross_compiling=$ac_cv_prog_cc_cross
2523
2524 fi
2525
2526 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2527   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2528     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2529     CFLAGS="$SAVE_CFLAGS"
2530   fi
2531   ;;
2532
2533
2534 esac
2535
2536 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2537 echo "configure:2538: checking how to run the C++ preprocessor" >&5
2538 if test -z "$CXXCPP"; then
2539 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2540   echo $ac_n "(cached) $ac_c" 1>&6
2541 else
2542   ac_ext=C
2543 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2544 ac_cpp='$CXXCPP $CPPFLAGS'
2545 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2546 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2547 cross_compiling=$ac_cv_prog_cxx_cross
2548   CXXCPP="${CXX-g++} -E"
2549   cat > conftest.$ac_ext <<EOF
2550 #line 2551 "configure"
2551 #include "confdefs.h"
2552 #include <stdlib.h>
2553 EOF
2554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2555 { (eval echo configure:2556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2556 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2557 if test -z "$ac_err"; then
2558   :
2559 else
2560   echo "$ac_err" >&5
2561   echo "configure: failed program was:" >&5
2562   cat conftest.$ac_ext >&5
2563   rm -rf conftest*
2564   CXXCPP=/lib/cpp
2565 fi
2566 rm -f conftest*
2567   ac_cv_prog_CXXCPP="$CXXCPP"
2568 ac_ext=c
2569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2570 ac_cpp='$CPP $CPPFLAGS'
2571 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2572 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2573 cross_compiling=$ac_cv_prog_cc_cross
2574 fi
2575 fi
2576 CXXCPP="$ac_cv_prog_CXXCPP"
2577 echo "$ac_t""$CXXCPP" 1>&6
2578
2579
2580 # Save cache, so that ltconfig can load it
2581 cat > confcache <<\EOF
2582 # This file is a shell script that caches the results of configure
2583 # tests run on this system so they can be shared between configure
2584 # scripts and configure runs.  It is not useful on other systems.
2585 # If it contains results you don't want to keep, you may remove or edit it.
2586 #
2587 # By default, configure uses ./config.cache as the cache file,
2588 # creating it if it does not exist already.  You can give configure
2589 # the --cache-file=FILE option to use a different cache file; that is
2590 # what configure does when it calls configure scripts in
2591 # subdirectories, so they share the cache.
2592 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2593 # config.status only pays attention to the cache file if you give it the
2594 # --recheck option to rerun configure.
2595 #
2596 EOF
2597 # The following way of writing the cache mishandles newlines in values,
2598 # but we know of no workaround that is simple, portable, and efficient.
2599 # So, don't put newlines in cache variables' values.
2600 # Ultrix sh set writes to stderr and can't be redirected directly,
2601 # and sets the high bit in the cache file unless we assign to the vars.
2602 (set) 2>&1 |
2603   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2604   *ac_space=\ *)
2605     # `set' does not quote correctly, so add quotes (double-quote substitution
2606     # turns \\\\ into \\, and sed turns \\ into \).
2607     sed -n \
2608       -e "s/'/'\\\\''/g" \
2609       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2610     ;;
2611   *)
2612     # `set' quotes correctly as required by POSIX, so do not add quotes.
2613     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2614     ;;
2615   esac >> confcache
2616 if cmp -s $cache_file confcache; then
2617   :
2618 else
2619   if test -w $cache_file; then
2620     echo "updating cache $cache_file"
2621     cat confcache > $cache_file
2622   else
2623     echo "not updating unwritable cache $cache_file"
2624   fi
2625 fi
2626 rm -f confcache
2627
2628
2629 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2630 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2631 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2632 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2633 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2634 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2635 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2636 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2637 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2638 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2639
2640 # Reload cache, that may have been modified by ltconfig
2641 if test -r "$cache_file"; then
2642   echo "loading cache $cache_file"
2643   . $cache_file
2644 else
2645   echo "creating cache $cache_file"
2646   > $cache_file
2647 fi
2648
2649
2650 # This can be used to rebuild libtool when needed
2651 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2652
2653 # Always use our own libtool.
2654 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2655
2656 # Redirect the config.log output again, so that the ltconfig log is not
2657 # clobbered by the next message.
2658 exec 5>>./config.log
2659
2660
2661
2662 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2663 lt_save_CC="$CC"
2664 lt_save_CFLAGS="$CFLAGS"
2665 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2666 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2667 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2668 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2669 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2670 deplibs_check_method="$deplibs_check_method" \
2671 file_magic_cmd="$file_magic_cmd" \
2672 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2673 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2674 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2675 CC="$lt_save_CC"
2676 CFLAGS="$lt_save_CFLAGS"
2677
2678 # Redirect the config.log output again, so that the ltconfig log is not
2679 # clobbered by the next message.
2680 exec 5>>./config.log
2681
2682   
2683
2684   
2685          
2686          
2687
2688
2689
2690 # Check for c++ or library specific bits that don't require linking.
2691 #GLIBCPP_CHECK_COMPILER_VERSION
2692 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2693 echo "configure:2694: checking for GNU make" >&5
2694 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2695   echo $ac_n "(cached) $ac_c" 1>&6
2696 else
2697   _cv_gnu_make_command='' ;
2698           for a in "${MAKE-make}" make gmake gnumake ; do
2699                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2700                   then
2701                           _cv_gnu_make_command=$a ;
2702                           break;
2703                   fi
2704           done ;
2705   
2706 fi
2707
2708 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2709   if test  "x$_cv_gnu_make_command" != "x"  ; then
2710           ifGNUmake='' ;
2711   else
2712           ifGNUmake='#' ;
2713   fi
2714   
2715
2716
2717 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2718 # Check whether --enable-debug or --disable-debug was given.
2719 if test "${enable_debug+set}" = set; then
2720   enableval="$enable_debug"
2721   case "${enableval}" in
2722  yes) enable_debug=yes ;;
2723  no)  enable_debug=no ;;
2724  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2725  esac
2726 else
2727   enable_debug=no
2728 fi
2729
2730 case "${enable_debug}" in
2731     yes) 
2732         DEBUG_FLAGS='-O0 -ggdb3'                        
2733         ;; 
2734     no)   
2735         DEBUG_FLAGS='-g'
2736         ;;
2737 esac
2738
2739
2740 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2741 echo "configure:2742: checking how to run the C preprocessor" >&5
2742 # On Suns, sometimes $CPP names a directory.
2743 if test -n "$CPP" && test -d "$CPP"; then
2744   CPP=
2745 fi
2746 if test -z "$CPP"; then
2747 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2748   echo $ac_n "(cached) $ac_c" 1>&6
2749 else
2750     # This must be in double quotes, not single quotes, because CPP may get
2751   # substituted into the Makefile and "${CC-cc}" will confuse make.
2752   CPP="${CC-cc} -E"
2753   # On the NeXT, cc -E runs the code through the compiler's parser,
2754   # not just through cpp.
2755   cat > conftest.$ac_ext <<EOF
2756 #line 2757 "configure"
2757 #include "confdefs.h"
2758 #include <assert.h>
2759 Syntax Error
2760 EOF
2761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2762 { (eval echo configure:2763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2764 if test -z "$ac_err"; then
2765   :
2766 else
2767   echo "$ac_err" >&5
2768   echo "configure: failed program was:" >&5
2769   cat conftest.$ac_ext >&5
2770   rm -rf conftest*
2771   CPP="${CC-cc} -E -traditional-cpp"
2772   cat > conftest.$ac_ext <<EOF
2773 #line 2774 "configure"
2774 #include "confdefs.h"
2775 #include <assert.h>
2776 Syntax Error
2777 EOF
2778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2779 { (eval echo configure:2780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2781 if test -z "$ac_err"; then
2782   :
2783 else
2784   echo "$ac_err" >&5
2785   echo "configure: failed program was:" >&5
2786   cat conftest.$ac_ext >&5
2787   rm -rf conftest*
2788   CPP="${CC-cc} -nologo -E"
2789   cat > conftest.$ac_ext <<EOF
2790 #line 2791 "configure"
2791 #include "confdefs.h"
2792 #include <assert.h>
2793 Syntax Error
2794 EOF
2795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2796 { (eval echo configure:2797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2798 if test -z "$ac_err"; then
2799   :
2800 else
2801   echo "$ac_err" >&5
2802   echo "configure: failed program was:" >&5
2803   cat conftest.$ac_ext >&5
2804   rm -rf conftest*
2805   CPP=/lib/cpp
2806 fi
2807 rm -f conftest*
2808 fi
2809 rm -f conftest*
2810 fi
2811 rm -f conftest*
2812   ac_cv_prog_CPP="$CPP"
2813 fi
2814   CPP="$ac_cv_prog_CPP"
2815 else
2816   ac_cv_prog_CPP="$CPP"
2817 fi
2818 echo "$ac_t""$CPP" 1>&6
2819
2820
2821   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2822 echo "configure:2823: checking for cstdio to use" >&5
2823   # Check whether --enable-cstdio or --disable-cstdio was given.
2824 if test "${enable_cstdio+set}" = set; then
2825   enableval="$enable_cstdio"
2826   if test x$enable_cstdio = xno; then
2827      enable_cstdio=stdio
2828   fi
2829 else
2830   enable_cstdio=stdio
2831 fi
2832
2833
2834   enable_cstdio_flag=$enable_cstdio
2835
2836     case x${enable_cstdio_flag} in
2837     xlibio)
2838       CSTDIO_H=config/io/c_io_libio.h
2839       BASIC_FILE_H=config/io/basic_file_libio.h
2840       BASIC_FILE_CC=config/io/basic_file_libio.cc
2841       echo "$ac_t""libio" 1>&6
2842
2843       # see if we are on a system with libio native (ie, linux)
2844       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2845 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2846 echo "configure:2847: checking for libio.h" >&5
2847 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2848   echo $ac_n "(cached) $ac_c" 1>&6
2849 else
2850   cat > conftest.$ac_ext <<EOF
2851 #line 2852 "configure"
2852 #include "confdefs.h"
2853 #include <libio.h>
2854 EOF
2855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2856 { (eval echo configure:2857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2857 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2858 if test -z "$ac_err"; then
2859   rm -rf conftest*
2860   eval "ac_cv_header_$ac_safe=yes"
2861 else
2862   echo "$ac_err" >&5
2863   echo "configure: failed program was:" >&5
2864   cat conftest.$ac_ext >&5
2865   rm -rf conftest*
2866   eval "ac_cv_header_$ac_safe=no"
2867 fi
2868 rm -f conftest*
2869 fi
2870 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2871   echo "$ac_t""yes" 1>&6
2872   has_libio=yes
2873 else
2874   echo "$ac_t""no" 1>&6
2875 has_libio=no
2876 fi
2877
2878
2879       # Need to check and see what version of glibc is being used. If
2880       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2881       # compile most of libio for linux systems.
2882       if test x$has_libio = x"yes"; then
2883         case "$target" in
2884           *-*-linux*)
2885               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2886 echo "configure:2887: checking for glibc version >= 2.2" >&5
2887               cat > conftest.$ac_ext <<EOF
2888 #line 2889 "configure"
2889 #include "confdefs.h"
2890
2891             #include <features.h>
2892               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2893                     ok
2894               #endif
2895               
2896 EOF
2897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2898   egrep "ok" >/dev/null 2>&1; then
2899   rm -rf conftest*
2900   glibc_satisfactory=yes
2901 else
2902   rm -rf conftest*
2903   glibc_satisfactory=no
2904 fi
2905 rm -f conftest*
2906
2907               echo "$ac_t""$glibc_satisfactory" 1>&6
2908             ;;
2909         esac
2910
2911         # XXX at the moment, admit defeat and force the recompilation
2912         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2913         glibc_satisfactory=no        
2914
2915         if test x$glibc_satisfactory = x"yes"; then
2916            need_libio=no
2917            need_wlibio=no        
2918         else
2919            need_libio=yes
2920            # bkoz XXX need to add checks to enable this
2921            # pme XXX here's a first pass at such a check
2922            if test x$enable_c_mbchar != xno; then
2923               need_wlibio=yes
2924            else
2925               need_wlibio=no
2926            fi
2927         fi
2928
2929       else
2930          # Using libio, but <libio.h> doesn't exist on the target system. . .
2931          need_libio=yes
2932          # bkoz XXX need to add checks to enable this
2933          # pme XXX here's a first pass at such a check
2934          if test x$enable_c_mbchar != xno; then
2935              need_wlibio=yes
2936          else
2937              need_wlibio=no
2938          fi
2939       fi
2940       ;;
2941     xstdio | x | xno | xnone | xyes)
2942       # default
2943       CSTDIO_H=config/io/c_io_stdio.h
2944       BASIC_FILE_H=config/io/basic_file_stdio.h
2945       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2946       echo "$ac_t""stdio" 1>&6
2947
2948       # We're not using stdio.
2949       need_libio=no
2950       need_wlibio=no
2951       ;;
2952     *)
2953       echo "$enable_cstdio is an unknown io package" 1>&2
2954       exit 1
2955       ;;
2956   esac
2957   
2958   
2959   
2960
2961   # 2000-08-04 bkoz hack
2962   CCODECVT_C=config/io/c_io_libio_codecvt.c
2963   
2964   # 2000-08-04 bkoz hack
2965
2966   
2967
2968 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2969   GLIBCPP_BUILD_LIBIO_TRUE=
2970   GLIBCPP_BUILD_LIBIO_FALSE='#'
2971 else
2972   GLIBCPP_BUILD_LIBIO_TRUE='#'
2973   GLIBCPP_BUILD_LIBIO_FALSE=
2974 fi
2975   
2976
2977 if test "$need_libio" = yes; then
2978   GLIBCPP_NEED_LIBIO_TRUE=
2979   GLIBCPP_NEED_LIBIO_FALSE='#'
2980 else
2981   GLIBCPP_NEED_LIBIO_TRUE='#'
2982   GLIBCPP_NEED_LIBIO_FALSE=
2983 fi
2984   
2985
2986 if test "$need_wlibio" = yes; then
2987   GLIBCPP_NEED_WLIBIO_TRUE=
2988   GLIBCPP_NEED_WLIBIO_FALSE='#'
2989 else
2990   GLIBCPP_NEED_WLIBIO_TRUE='#'
2991   GLIBCPP_NEED_WLIBIO_FALSE=
2992 fi
2993   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2994     libio_la=../libio/libio.la
2995   else
2996     libio_la=
2997   fi
2998   
2999
3000
3001   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
3002 echo "configure:3003: checking for clocale to use" >&5
3003   # Check whether --enable-clocale or --disable-clocale was given.
3004 if test "${enable_clocale+set}" = set; then
3005   enableval="$enable_clocale"
3006   if test x$enable_clocale = xno; then
3007      enable_clocale=no
3008   fi
3009 else
3010   enable_clocale=no
3011 fi
3012
3013
3014   enable_clocale_flag=$enable_clocale
3015
3016       if test x$enable_clocale_flag = xno; then
3017     case x${target_os} in
3018       xlinux* | xgnu*)
3019         cat > conftest.$ac_ext <<EOF
3020 #line 3021 "configure"
3021 #include "confdefs.h"
3022
3023         #include <features.h>
3024         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
3025           _GLIBCPP_ok
3026         #endif
3027         
3028 EOF
3029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3030   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3031   rm -rf conftest*
3032   enable_clocale_flag=gnu
3033 else
3034   rm -rf conftest*
3035   enable_clocale_flag=generic
3036 fi
3037 rm -f conftest*
3038
3039
3040         # Test for bugs early in glibc-2.2.x series
3041         if test x$enable_clocale_flag = xgnu; then
3042           if test "$cross_compiling" = yes; then
3043   enable_clocale_flag=generic
3044 else
3045   cat > conftest.$ac_ext <<EOF
3046 #line 3047 "configure"
3047 #include "confdefs.h"
3048
3049           #define _GNU_SOURCE 1
3050           #include <locale.h>
3051           int main()
3052           {
3053             const char __one[] = "Äuglein Augmen";
3054             const char __two[] = "Äuglein";
3055             int i;
3056             int j;
3057             __locale_t  loc;
3058             __locale_t  loc_dup;
3059             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3060             loc_dup = __duplocale(loc);
3061             i = __strcoll_l(__one, __two, loc);
3062             j = __strcoll_l(__one, __two, loc_dup);
3063             return 0;
3064           }
3065           
3066 EOF
3067 if { (eval echo configure:3068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3068 then
3069   enable_clocale_flag=gnu
3070 else
3071   echo "configure: failed program was:" >&5
3072   cat conftest.$ac_ext >&5
3073   rm -fr conftest*
3074   enable_clocale_flag=generic
3075 fi
3076 rm -fr conftest*
3077 fi
3078
3079         fi
3080
3081         # ... at some point put __strxfrm_l tests in as well.
3082         ;;
3083       *)
3084         enable_clocale_flag=generic
3085         ;;
3086     esac
3087   fi
3088
3089     # Check whether --enable-nls or --disable-nls was given.
3090 if test "${enable_nls+set}" = set; then
3091   enableval="$enable_nls"
3092   :
3093 else
3094   enable_nls=yes
3095 fi
3096
3097   USE_NLS=no
3098
3099     case x${enable_clocale_flag} in
3100     xgeneric)
3101       echo "$ac_t""generic" 1>&6
3102
3103       CLOCALE_H=config/locale/generic/c_locale.h
3104       CLOCALE_CC=config/locale/generic/c_locale.cc
3105       CCODECVT_H=config/locale/generic/codecvt_specializations.h
3106       CCOLLATE_CC=config/locale/generic/collate_members.cc
3107       CCTYPE_CC=config/locale/generic/ctype_members.cc
3108       CMESSAGES_H=config/locale/generic/messages_members.h
3109       CMESSAGES_CC=config/locale/generic/messages_members.cc
3110       CMONEY_CC=config/locale/generic/monetary_members.cc
3111       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3112       CTIME_CC=config/locale/generic/time_members.cc
3113       ;;
3114     xgnu)
3115       echo "$ac_t""gnu" 1>&6
3116
3117       # Declare intention to use gettext, and add support for specific
3118       # languages.
3119       # For some reason, ALL_LINGUAS has to be before AM_GNU_GETTEXT
3120       ALL_LINGUAS="de fr"
3121
3122       # Don't call AM_GNU_GETTEXT here. Instead, assume glibc.
3123       # Extract the first word of "msgfmt", so it can be a program name with args.
3124 set dummy msgfmt; ac_word=$2
3125 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3126 echo "configure:3127: checking for $ac_word" >&5
3127 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3128   echo $ac_n "(cached) $ac_c" 1>&6
3129 else
3130   if test -n "$check_msgfmt"; then
3131   ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3132 else
3133   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3134   ac_dummy="$PATH"
3135   for ac_dir in $ac_dummy; do
3136     test -z "$ac_dir" && ac_dir=.
3137     if test -f $ac_dir/$ac_word; then
3138       ac_cv_prog_check_msgfmt="yes"
3139       break
3140     fi
3141   done
3142   IFS="$ac_save_ifs"
3143   test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3144 fi
3145 fi
3146 check_msgfmt="$ac_cv_prog_check_msgfmt"
3147 if test -n "$check_msgfmt"; then
3148   echo "$ac_t""$check_msgfmt" 1>&6
3149 else
3150   echo "$ac_t""no" 1>&6
3151 fi
3152
3153       if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3154         USE_NLS=yes
3155       fi
3156
3157       # Export the build objects.
3158       for ling in $ALL_LINGUAS; do \
3159         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3160         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3161       done
3162       
3163       
3164
3165       CLOCALE_H=config/locale/gnu/c_locale.h
3166       CLOCALE_CC=config/locale/gnu/c_locale.cc
3167       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3168       CCOLLATE_CC=config/locale/gnu/collate_members.cc
3169       CCTYPE_CC=config/locale/gnu/ctype_members.cc
3170       CMESSAGES_H=config/locale/gnu/messages_members.h
3171       CMESSAGES_CC=config/locale/gnu/messages_members.cc
3172       CMONEY_CC=config/locale/gnu/monetary_members.cc
3173       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3174       CTIME_CC=config/locale/gnu/time_members.cc
3175       ;;
3176     xieee_1003.1-2001)
3177       echo "$ac_t""generic" 1>&6
3178
3179       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3180       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3181       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3182       CCOLLATE_CC=config/locale/generic/collate_members.cc
3183       CCTYPE_CC=config/locale/generic/ctype_members.cc
3184       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3185       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3186       CMONEY_CC=config/locale/generic/monetary_members.cc
3187       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3188       CTIME_CC=config/locale/generic/time_members.cc
3189       ;;
3190     *)
3191       echo "$enable_clocale is an unknown locale package" 1>&2
3192       exit 1
3193       ;;
3194   esac
3195
3196   # This is where the testsuite looks for locale catalogs, using the
3197   # -DLOCALEDIR define during testsuite compilation.
3198   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3199   
3200
3201   
3202   
3203   
3204   
3205   
3206   
3207   
3208   
3209   
3210   
3211   
3212
3213 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3214 if test "${enable_c_mbchar+set}" = set; then
3215   enableval="$enable_c_mbchar"
3216   case "$enableval" in
3217  yes) enable_c_mbchar=yes ;;
3218  no)  enable_c_mbchar=no ;;
3219  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3220  esac
3221 else
3222   enable_c_mbchar=yes
3223 fi
3224
3225   
3226   # Check whether --enable-c99 or --disable-c99 was given.
3227 if test "${enable_c99+set}" = set; then
3228   enableval="$enable_c99"
3229     case "$enableval" in
3230    yes) enable_c99=yes ;;
3231    no)  enable_c99=no ;;
3232    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3233    esac
3234 else
3235   enable_c99=yes
3236 fi
3237  
3238   
3239   ac_ext=C
3240 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3241 ac_cpp='$CXXCPP $CPPFLAGS'
3242 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3243 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3244 cross_compiling=$ac_cv_prog_cxx_cross
3245
3246
3247   # Check for the existence of <math.h> functions used if C99 is enabled.
3248   ac_c99_math=yes;
3249   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3250 echo "configure:3251: checking for ISO C99 support in <math.h>" >&5
3251   cat > conftest.$ac_ext <<EOF
3252 #line 3253 "configure"
3253 #include "confdefs.h"
3254 #include <math.h>
3255 int main() {
3256 fpclassify(0.0);
3257 ; return 0; }
3258 EOF
3259 if { (eval echo configure:3260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3260   :
3261 else
3262   echo "configure: failed program was:" >&5
3263   cat conftest.$ac_ext >&5
3264   rm -rf conftest*
3265   ac_c99_math=no
3266 fi
3267 rm -f conftest*
3268   cat > conftest.$ac_ext <<EOF
3269 #line 3270 "configure"
3270 #include "confdefs.h"
3271 #include <math.h>
3272 int main() {
3273 isfinite(0.0);
3274 ; return 0; }
3275 EOF
3276 if { (eval echo configure:3277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3277   :
3278 else
3279   echo "configure: failed program was:" >&5
3280   cat conftest.$ac_ext >&5
3281   rm -rf conftest*
3282   ac_c99_math=no
3283 fi
3284 rm -f conftest*
3285   cat > conftest.$ac_ext <<EOF
3286 #line 3287 "configure"
3287 #include "confdefs.h"
3288 #include <math.h>
3289 int main() {
3290 isinf(0.0);
3291 ; return 0; }
3292 EOF
3293 if { (eval echo configure:3294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3294   :
3295 else
3296   echo "configure: failed program was:" >&5
3297   cat conftest.$ac_ext >&5
3298   rm -rf conftest*
3299   ac_c99_math=no
3300 fi
3301 rm -f conftest*
3302   cat > conftest.$ac_ext <<EOF
3303 #line 3304 "configure"
3304 #include "confdefs.h"
3305 #include <math.h>
3306 int main() {
3307 isnan(0.0);
3308 ; return 0; }
3309 EOF
3310 if { (eval echo configure:3311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3311   :
3312 else
3313   echo "configure: failed program was:" >&5
3314   cat conftest.$ac_ext >&5
3315   rm -rf conftest*
3316   ac_c99_math=no
3317 fi
3318 rm -f conftest*
3319   cat > conftest.$ac_ext <<EOF
3320 #line 3321 "configure"
3321 #include "confdefs.h"
3322 #include <math.h>
3323 int main() {
3324 isnormal(0.0);
3325 ; return 0; }
3326 EOF
3327 if { (eval echo configure:3328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3328   :
3329 else
3330   echo "configure: failed program was:" >&5
3331   cat conftest.$ac_ext >&5
3332   rm -rf conftest*
3333   ac_c99_math=no
3334 fi
3335 rm -f conftest*
3336   cat > conftest.$ac_ext <<EOF
3337 #line 3338 "configure"
3338 #include "confdefs.h"
3339 #include <math.h>
3340 int main() {
3341 signbit(0.0);
3342 ; return 0; }
3343 EOF
3344 if { (eval echo configure:3345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3345   :
3346 else
3347   echo "configure: failed program was:" >&5
3348   cat conftest.$ac_ext >&5
3349   rm -rf conftest*
3350   ac_c99_math=no
3351 fi
3352 rm -f conftest*
3353   cat > conftest.$ac_ext <<EOF
3354 #line 3355 "configure"
3355 #include "confdefs.h"
3356 #include <math.h>
3357 int main() {
3358 isgreater(0.0,0.0);
3359 ; return 0; }
3360 EOF
3361 if { (eval echo configure:3362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3362   :
3363 else
3364   echo "configure: failed program was:" >&5
3365   cat conftest.$ac_ext >&5
3366   rm -rf conftest*
3367   ac_c99_math=no
3368 fi
3369 rm -f conftest*
3370   cat > conftest.$ac_ext <<EOF
3371 #line 3372 "configure"
3372 #include "confdefs.h"
3373 #include <math.h>
3374 int main() {
3375 isgreaterequal(0.0,0.0);
3376 ; return 0; }
3377 EOF
3378 if { (eval echo configure:3379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3379   :
3380 else
3381   echo "configure: failed program was:" >&5
3382   cat conftest.$ac_ext >&5
3383   rm -rf conftest*
3384   ac_c99_math=no
3385 fi
3386 rm -f conftest*
3387   cat > conftest.$ac_ext <<EOF
3388 #line 3389 "configure"
3389 #include "confdefs.h"
3390 #include <math.h>
3391 int main() {
3392 isless(0.0,0.0);
3393 ; return 0; }
3394 EOF
3395 if { (eval echo configure:3396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3396   :
3397 else
3398   echo "configure: failed program was:" >&5
3399   cat conftest.$ac_ext >&5
3400   rm -rf conftest*
3401   ac_c99_math=no
3402 fi
3403 rm -f conftest*
3404   cat > conftest.$ac_ext <<EOF
3405 #line 3406 "configure"
3406 #include "confdefs.h"
3407 #include <math.h>
3408 int main() {
3409 islessequal(0.0,0.0);
3410 ; return 0; }
3411 EOF
3412 if { (eval echo configure:3413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3413   :
3414 else
3415   echo "configure: failed program was:" >&5
3416   cat conftest.$ac_ext >&5
3417   rm -rf conftest*
3418   ac_c99_math=no
3419 fi
3420 rm -f conftest*
3421   cat > conftest.$ac_ext <<EOF
3422 #line 3423 "configure"
3423 #include "confdefs.h"
3424 #include <math.h>
3425 int main() {
3426 islessgreater(0.0,0.0);
3427 ; return 0; }
3428 EOF
3429 if { (eval echo configure:3430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3430   :
3431 else
3432   echo "configure: failed program was:" >&5
3433   cat conftest.$ac_ext >&5
3434   rm -rf conftest*
3435   ac_c99_math=no
3436 fi
3437 rm -f conftest*
3438   cat > conftest.$ac_ext <<EOF
3439 #line 3440 "configure"
3440 #include "confdefs.h"
3441 #include <math.h>
3442 int main() {
3443 isunordered(0.0,0.0);
3444 ; return 0; }
3445 EOF
3446 if { (eval echo configure:3447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3447   :
3448 else
3449   echo "configure: failed program was:" >&5
3450   cat conftest.$ac_ext >&5
3451   rm -rf conftest*
3452   ac_c99_math=no
3453 fi
3454 rm -f conftest*
3455   echo "$ac_t""$ac_c99_math" 1>&6
3456
3457   # Check for the existence in <stdio.h> of vscanf, et. al.
3458   ac_c99_stdio=yes;
3459   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3460 echo "configure:3461: checking for ISO C99 support in <stdio.h>" >&5
3461   cat > conftest.$ac_ext <<EOF
3462 #line 3463 "configure"
3463 #include "confdefs.h"
3464 #include <stdio.h>
3465 int main() {
3466 snprintf("12", 0, "%i");
3467 ; return 0; }
3468 EOF
3469 if { (eval echo configure:3470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3470   :
3471 else
3472   echo "configure: failed program was:" >&5
3473   cat conftest.$ac_ext >&5
3474   rm -rf conftest*
3475   ac_c99_stdio=no
3476 fi
3477 rm -f conftest*
3478   cat > conftest.$ac_ext <<EOF
3479 #line 3480 "configure"
3480 #include "confdefs.h"
3481 #include <stdio.h>
3482                   #include <stdarg.h>
3483                   void foo(char* fmt, ...)
3484                   {va_list args; va_start(args, fmt);
3485                   vfscanf(stderr, "%i", args);}
3486 int main() {
3487
3488 ; return 0; }
3489 EOF
3490 if { (eval echo configure:3491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3491   :
3492 else
3493   echo "configure: failed program was:" >&5
3494   cat conftest.$ac_ext >&5
3495   rm -rf conftest*
3496   ac_c99_stdio=no
3497 fi
3498 rm -f conftest*
3499   cat > conftest.$ac_ext <<EOF
3500 #line 3501 "configure"
3501 #include "confdefs.h"
3502 #include <stdio.h>
3503                   #include <stdarg.h>
3504                   void foo(char* fmt, ...)
3505                   {va_list args; va_start(args, fmt);
3506                   vscanf("%i", args);}
3507 int main() {
3508
3509 ; return 0; }
3510 EOF
3511 if { (eval echo configure:3512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3512   :
3513 else
3514   echo "configure: failed program was:" >&5
3515   cat conftest.$ac_ext >&5
3516   rm -rf conftest*
3517   ac_c99_stdio=no
3518 fi
3519 rm -f conftest*
3520   cat > conftest.$ac_ext <<EOF
3521 #line 3522 "configure"
3522 #include "confdefs.h"
3523 #include <stdio.h>
3524                   #include <stdarg.h>
3525                   void foo(char* fmt, ...)
3526                   {va_list args; va_start(args, fmt);
3527                   vsnprintf(fmt, 0, "%i", args);}
3528 int main() {
3529
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_stdio=no
3539 fi
3540 rm -f conftest*
3541   cat > conftest.$ac_ext <<EOF
3542 #line 3543 "configure"
3543 #include "confdefs.h"
3544 #include <stdio.h>
3545                   #include <stdarg.h>
3546                   void foo(char* fmt, ...)
3547                   {va_list args; va_start(args, fmt);
3548                   vsscanf(fmt, "%i", args);}
3549 int main() {
3550
3551 ; return 0; }
3552 EOF
3553 if { (eval echo configure:3554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3554   :
3555 else
3556   echo "configure: failed program was:" >&5
3557   cat conftest.$ac_ext >&5
3558   rm -rf conftest*
3559   ac_c99_stdio=no
3560 fi
3561 rm -f conftest*
3562   echo "$ac_t""$ac_c99_stdio" 1>&6
3563
3564   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3565   ac_c99_stdlib=yes;
3566   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3567 echo "configure:3568: checking for lldiv_t declaration" >&5
3568   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3569   echo $ac_n "(cached) $ac_c" 1>&6
3570 else
3571   
3572   cat > conftest.$ac_ext <<EOF
3573 #line 3574 "configure"
3574 #include "confdefs.h"
3575 #include <stdlib.h>
3576 int main() {
3577  lldiv_t mydivt;
3578 ; return 0; }
3579 EOF
3580 if { (eval echo configure:3581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3581   rm -rf conftest*
3582   ac_c99_lldiv_t=yes
3583 else
3584   echo "configure: failed program was:" >&5
3585   cat conftest.$ac_ext >&5
3586   rm -rf conftest*
3587   ac_c99_lldiv_t=no
3588 fi
3589 rm -f conftest*
3590   
3591 fi
3592
3593   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3594
3595   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3596 echo "configure:3597: checking for ISO C99 support in <stdlib.h>" >&5
3597   cat > conftest.$ac_ext <<EOF
3598 #line 3599 "configure"
3599 #include "confdefs.h"
3600 #include <stdlib.h>
3601 int main() {
3602 char* tmp; strtof("gnu", &tmp);
3603 ; return 0; }
3604 EOF
3605 if { (eval echo configure:3606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3606   :
3607 else
3608   echo "configure: failed program was:" >&5
3609   cat conftest.$ac_ext >&5
3610   rm -rf conftest*
3611   ac_c99_stdlib=no
3612 fi
3613 rm -f conftest*
3614   cat > conftest.$ac_ext <<EOF
3615 #line 3616 "configure"
3616 #include "confdefs.h"
3617 #include <stdlib.h>
3618 int main() {
3619 char* tmp; strtold("gnu", &tmp);
3620 ; return 0; }
3621 EOF
3622 if { (eval echo configure:3623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3623   :
3624 else
3625   echo "configure: failed program was:" >&5
3626   cat conftest.$ac_ext >&5
3627   rm -rf conftest*
3628   ac_c99_stdlib=no
3629 fi
3630 rm -f conftest*
3631   cat > conftest.$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3634 #include <stdlib.h>
3635 int main() {
3636 llabs(10);
3637 ; return 0; }
3638 EOF
3639 if { (eval echo configure:3640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3640   :
3641 else
3642   echo "configure: failed program was:" >&5
3643   cat conftest.$ac_ext >&5
3644   rm -rf conftest*
3645   ac_c99_stdlib=no
3646 fi
3647 rm -f conftest*
3648   cat > conftest.$ac_ext <<EOF
3649 #line 3650 "configure"
3650 #include "confdefs.h"
3651 #include <stdlib.h>
3652 int main() {
3653 lldiv(10,1);
3654 ; return 0; }
3655 EOF
3656 if { (eval echo configure:3657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3657   :
3658 else
3659   echo "configure: failed program was:" >&5
3660   cat conftest.$ac_ext >&5
3661   rm -rf conftest*
3662   ac_c99_stdlib=no
3663 fi
3664 rm -f conftest*
3665   cat > conftest.$ac_ext <<EOF
3666 #line 3667 "configure"
3667 #include "confdefs.h"
3668 #include <stdlib.h>
3669 int main() {
3670 atoll("10");
3671 ; return 0; }
3672 EOF
3673 if { (eval echo configure:3674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3674   :
3675 else
3676   echo "configure: failed program was:" >&5
3677   cat conftest.$ac_ext >&5
3678   rm -rf conftest*
3679   ac_c99_stdlib=no
3680 fi
3681 rm -f conftest*
3682   cat > conftest.$ac_ext <<EOF
3683 #line 3684 "configure"
3684 #include "confdefs.h"
3685 #include <stdlib.h>
3686 int main() {
3687 _Exit(0);
3688 ; return 0; }
3689 EOF
3690 if { (eval echo configure:3691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3691   :
3692 else
3693   echo "configure: failed program was:" >&5
3694   cat conftest.$ac_ext >&5
3695   rm -rf conftest*
3696   ac_c99_stdlib=no
3697 fi
3698 rm -f conftest*
3699   if test x"$ac_c99_lldiv_t" = x"no"; then
3700     ac_c99_stdlib=no; 
3701   fi; 
3702   echo "$ac_t""$ac_c99_stdlib" 1>&6
3703
3704   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3705   # XXX the wchar.h checks should be rolled into the general C99 bits.
3706   ac_c99_wchar=yes;
3707   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3708 echo "configure:3709: checking for additional ISO C99 support in <wchar.h>" >&5
3709   cat > conftest.$ac_ext <<EOF
3710 #line 3711 "configure"
3711 #include "confdefs.h"
3712 #include <wchar.h>
3713 int main() {
3714 wcstold(L"10.0", NULL);
3715 ; return 0; }
3716 EOF
3717 if { (eval echo configure:3718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3718   :
3719 else
3720   echo "configure: failed program was:" >&5
3721   cat conftest.$ac_ext >&5
3722   rm -rf conftest*
3723   ac_c99_wchar=no
3724 fi
3725 rm -f conftest*
3726   cat > conftest.$ac_ext <<EOF
3727 #line 3728 "configure"
3728 #include "confdefs.h"
3729 #include <wchar.h>
3730 int main() {
3731 wcstoll(L"10", NULL, 10);
3732 ; return 0; }
3733 EOF
3734 if { (eval echo configure:3735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3735   :
3736 else
3737   echo "configure: failed program was:" >&5
3738   cat conftest.$ac_ext >&5
3739   rm -rf conftest*
3740   ac_c99_wchar=no
3741 fi
3742 rm -f conftest*
3743   cat > conftest.$ac_ext <<EOF
3744 #line 3745 "configure"
3745 #include "confdefs.h"
3746 #include <wchar.h>
3747 int main() {
3748 wcstoull(L"10", NULL, 10);
3749 ; return 0; }
3750 EOF
3751 if { (eval echo configure:3752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3752   :
3753 else
3754   echo "configure: failed program was:" >&5
3755   cat conftest.$ac_ext >&5
3756   rm -rf conftest*
3757   ac_c99_wchar=no
3758 fi
3759 rm -f conftest*
3760   echo "$ac_t""$ac_c99_wchar" 1>&6
3761
3762   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3763 echo "configure:3764: checking for enabled ISO C99 support" >&5
3764   if test x"$ac_c99_math" = x"no" ||
3765      test x"$ac_c99_stdio" = x"no" ||
3766      test x"$ac_c99_stdlib" = x"no" ||
3767      test x"$ac_c99_wchar" = x"no"; then
3768     enable_c99=no; 
3769   fi; 
3770   echo "$ac_t""$enable_c99" 1>&6
3771
3772   # Option parsed, now set things appropriately
3773   if test x"$enable_c99" = x"yes"; then
3774     cat >> confdefs.h <<\EOF
3775 #define _GLIBCPP_USE_C99 1
3776 EOF
3777
3778   fi
3779
3780   ac_ext=c
3781 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3782 ac_cpp='$CPP $CPPFLAGS'
3783 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3784 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3785 cross_compiling=$ac_cv_prog_cc_cross
3786
3787
3788   
3789   # Check whether --enable-long-long or --disable-long-long was given.
3790 if test "${enable_long_long+set}" = set; then
3791   enableval="$enable_long_long"
3792     case "$enableval" in
3793    yes) enable_long_long=yes ;;
3794    no)  enable_long_long=no ;;
3795    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3796    esac
3797 else
3798   enable_long_long=yes
3799 fi
3800
3801   
3802   ac_ext=C
3803 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3804 ac_cpp='$CXXCPP $CPPFLAGS'
3805 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3806 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3807 cross_compiling=$ac_cv_prog_cxx_cross
3808
3809
3810   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3811 echo "configure:3812: checking for enabled long long I/O support" >&5
3812   # iostreams require strtoll, strtoull to compile
3813   cat > conftest.$ac_ext <<EOF
3814 #line 3815 "configure"
3815 #include "confdefs.h"
3816 #include <stdlib.h>
3817 int main() {
3818 char* tmp; strtoll("gnu", &tmp, 10);
3819 ; return 0; }
3820 EOF
3821 if { (eval echo configure:3822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3822   :
3823 else
3824   echo "configure: failed program was:" >&5
3825   cat conftest.$ac_ext >&5
3826   rm -rf conftest*
3827   enable_long_long=no
3828 fi
3829 rm -f conftest*
3830   cat > conftest.$ac_ext <<EOF
3831 #line 3832 "configure"
3832 #include "confdefs.h"
3833 #include <stdlib.h>
3834 int main() {
3835 char* tmp; strtoull("gnu", &tmp, 10);
3836 ; return 0; }
3837 EOF
3838 if { (eval echo configure:3839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3839   :
3840 else
3841   echo "configure: failed program was:" >&5
3842   cat conftest.$ac_ext >&5
3843   rm -rf conftest*
3844   enable_long_long=no
3845 fi
3846 rm -f conftest*
3847
3848   # Option parsed, now set things appropriately
3849   if test x"$enable_long_long" = xyes; then
3850     cat >> confdefs.h <<\EOF
3851 #define _GLIBCPP_USE_LONG_LONG 1
3852 EOF
3853
3854   fi
3855   echo "$ac_t""$enable_long_long" 1>&6
3856
3857   ac_ext=c
3858 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3859 ac_cpp='$CPP $CPPFLAGS'
3860 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3861 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3862 cross_compiling=$ac_cv_prog_cc_cross
3863
3864
3865 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3866 echo "configure:3867: checking for c header strategy to use" >&5
3867 # Check whether --enable-cheaders or --disable-cheaders was given.
3868 if test "${enable_cheaders+set}" = set; then
3869   enableval="$enable_cheaders"
3870   
3871   case "$enableval" in
3872    c) 
3873         enable_cheaders=c 
3874         ;;
3875    c_std)  
3876         enable_cheaders=c_std 
3877         ;;
3878    c_shadow)  
3879         enable_cheaders=c_shadow 
3880         ;;
3881    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3882         ;;
3883   esac
3884 else
3885   enable_cheaders=c_std
3886 fi
3887
3888   echo "$ac_t""$enable_cheaders" 1>&6
3889
3890     case "$enable_cheaders" in
3891     c_shadow) 
3892         CSHADOW_FLAGS="-fno-builtin"
3893         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3894         ;;
3895     c_std)   
3896         CSHADOW_FLAGS=""
3897         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3898         ;;
3899     c)   
3900         CSHADOW_FLAGS=""
3901         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3902         ;;
3903   esac
3904
3905   
3906   
3907   
3908
3909 if test "$enable_cheaders" = c; then
3910   GLIBCPP_C_HEADERS_C_TRUE=
3911   GLIBCPP_C_HEADERS_C_FALSE='#'
3912 else
3913   GLIBCPP_C_HEADERS_C_TRUE='#'
3914   GLIBCPP_C_HEADERS_C_FALSE=
3915 fi
3916   
3917
3918 if test "$enable_cheaders" = c_std; then
3919   GLIBCPP_C_HEADERS_C_STD_TRUE=
3920   GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3921 else
3922   GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3923   GLIBCPP_C_HEADERS_C_STD_FALSE=
3924 fi
3925
3926
3927   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3928 echo "configure:3929: checking for thread model used by GCC" >&5
3929   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3930   echo "$ac_t""$target_thread_file" 1>&6
3931
3932   if test $target_thread_file != single; then
3933     cat >> confdefs.h <<\EOF
3934 #define HAVE_GTHR_DEFAULT 1
3935 EOF
3936
3937     cat >> confdefs.h <<\EOF
3938 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3939 EOF
3940
3941   fi
3942
3943   glibcpp_thread_h=gthr-$target_thread_file.h
3944   
3945
3946 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3947 if test "${enable_cxx_flags+set}" = set; then
3948   enableval="$enable_cxx_flags"
3949   case "x$enableval" in
3950  xyes)   
3951         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3952  xno|x)  
3953         enable_cxx_flags='' ;;
3954  *)      
3955         enable_cxx_flags="$enableval" ;;
3956  esac
3957 else
3958   enable_cxx_flags='none'
3959 fi
3960
3961
3962 if test "$enable_cxx_flags" = "none"; then 
3963   enable_cxx_flags=''; 
3964 fi
3965
3966 if test -n "$enable_cxx_flags"; then
3967     for f in $enable_cxx_flags; do
3968         case "$f" in
3969             -fhonor-std)  ;;
3970             -*)  ;;
3971             *)   # and we're trying to pass /what/ exactly?
3972                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3973         esac
3974     done
3975 fi
3976 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3977
3978
3979
3980   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3981 echo "configure:3982: checking for exception model to use" >&5
3982   
3983   ac_ext=C
3984 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3985 ac_cpp='$CXXCPP $CPPFLAGS'
3986 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3987 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3988 cross_compiling=$ac_cv_prog_cxx_cross
3989
3990   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3991 if test "${enable_sjlj_exceptions+set}" = set; then
3992   enableval="$enable_sjlj_exceptions"
3993   :
3994 else
3995                        cat > conftest.$ac_ext << EOF
3996 #line 3997 "configure"
3997 struct S { ~S(); };
3998 void bar();
3999 void foo()
4000 {
4001   S s;
4002   bar();
4003 }
4004 EOF
4005    old_CXXFLAGS="$CXXFLAGS"  
4006    CXXFLAGS=-S
4007    if { (eval echo configure:4008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4008      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
4009        enable_sjlj_exceptions=yes
4010      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
4011        enable_sjlj_exceptions=no
4012      fi
4013    fi
4014    CXXFLAGS="$old_CXXFLAGS"
4015    rm -f conftest*
4016 fi
4017
4018    if test x$enable_sjlj_exceptions = xyes; then
4019      cat >> confdefs.h <<\EOF
4020 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
4021 EOF
4022
4023      ac_exception_model_name=sjlj
4024    elif test x$enable_sjlj_exceptions = xno; then
4025      ac_exception_model_name="call frame"
4026    else
4027      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
4028    fi
4029    ac_ext=c
4030 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4031 ac_cpp='$CPP $CPPFLAGS'
4032 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4033 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4034 cross_compiling=$ac_cv_prog_cc_cross
4035
4036    echo "$ac_t""$ac_exception_model_name" 1>&6
4037
4038
4039   echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4040 echo "configure:4041: checking for use of libunwind" >&5
4041   # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4042 if test "${enable_libunwind_exceptions+set}" = set; then
4043   enableval="$enable_libunwind_exceptions"
4044   use_libunwind_exceptions=$enableval
4045 else
4046   use_libunwind_exceptions=no
4047 fi
4048
4049   echo "$ac_t""$use_libunwind_exceptions" 1>&6
4050     if test x"$use_libunwind_exceptions" = xyes; then
4051     LIBUNWIND_FLAG="-lunwind"
4052   else
4053     LIBUNWIND_FLAG=""
4054   fi
4055   
4056
4057 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4058 if test "${enable_concept_checks+set}" = set; then
4059   enableval="$enable_concept_checks"
4060   case "$enableval" in
4061  yes) enable_concept_checks=yes ;;
4062  no)  enable_concept_checks=no ;;
4063  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4064  esac
4065 else
4066   enable_concept_checks=no
4067 fi
4068 if test x"$enable_concept_checks" = xyes; then
4069   cat >> confdefs.h <<\EOF
4070 #define _GLIBCPP_CONCEPT_CHECKS 1
4071 EOF
4072
4073 fi
4074
4075
4076 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
4077 for ac_hdr in string.h stdlib.h
4078 do
4079 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4080 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4081 echo "configure:4082: checking for $ac_hdr" >&5
4082 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4083   echo $ac_n "(cached) $ac_c" 1>&6
4084 else
4085   cat > conftest.$ac_ext <<EOF
4086 #line 4087 "configure"
4087 #include "confdefs.h"
4088 #include <$ac_hdr>
4089 EOF
4090 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4091 { (eval echo configure:4092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4092 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4093 if test -z "$ac_err"; then
4094   rm -rf conftest*
4095   eval "ac_cv_header_$ac_safe=yes"
4096 else
4097   echo "$ac_err" >&5
4098   echo "configure: failed program was:" >&5
4099   cat conftest.$ac_ext >&5
4100   rm -rf conftest*
4101   eval "ac_cv_header_$ac_safe=no"
4102 fi
4103 rm -f conftest*
4104 fi
4105 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4106   echo "$ac_t""yes" 1>&6
4107     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4108   cat >> confdefs.h <<EOF
4109 #define $ac_tr_hdr 1
4110 EOF
4111  
4112 else
4113   echo "$ac_t""no" 1>&6
4114 fi
4115 done
4116
4117
4118 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4119
4120   # This lets us hard-code the functionality we know
4121   # we'll have in the cross target environment. "Let" is a
4122   # sugar-coated word placed on an especially dull and tedious hack, actually.
4123   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4124   # that involve linking can't be used:
4125   # "cannot open sim-crt0.o"
4126   # "cannot open crt0.o"
4127   # etc. All this is because there currently exists no unified,
4128   # consistent way for top level CC information to be passed down
4129   # to target directories: newlib includes, newlib linking info,
4130   # libgloss versus newlib crt0.o, etc. When all of this is done, all
4131   # of this hokey, excessive AC_DEFINE junk for crosses can be removed.
4132
4133   # We are being configured with some form of cross compiler.
4134   GLIBCPP_IS_CROSS_COMPILING=1
4135
4136   # If Canadian cross, then don't pick up tools from the build
4137   # directory.
4138   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4139     CANADIAN=yes
4140   else
4141     CANADIAN=no
4142   fi
4143
4144   # Construct crosses by hand, eliminating bits that need ld...
4145   # GLIBCPP_CHECK_COMPILER_FEATURES
4146   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4147   # GLIBCPP_CHECK_MATH_SUPPORT
4148
4149   case "$target_alias" in
4150     *-linux*)
4151       # Check for available headers.
4152       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4153         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4154         fp.h locale.h float.h inttypes.h
4155 do
4156 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4157 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4158 echo "configure:4159: checking for $ac_hdr" >&5
4159 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4160   echo $ac_n "(cached) $ac_c" 1>&6
4161 else
4162   cat > conftest.$ac_ext <<EOF
4163 #line 4164 "configure"
4164 #include "confdefs.h"
4165 #include <$ac_hdr>
4166 EOF
4167 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4168 { (eval echo configure:4169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4169 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4170 if test -z "$ac_err"; then
4171   rm -rf conftest*
4172   eval "ac_cv_header_$ac_safe=yes"
4173 else
4174   echo "$ac_err" >&5
4175   echo "configure: failed program was:" >&5
4176   cat conftest.$ac_ext >&5
4177   rm -rf conftest*
4178   eval "ac_cv_header_$ac_safe=no"
4179 fi
4180 rm -f conftest*
4181 fi
4182 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4183   echo "$ac_t""yes" 1>&6
4184     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4185   cat >> confdefs.h <<EOF
4186 #define $ac_tr_hdr 1
4187 EOF
4188  
4189 else
4190   echo "$ac_t""no" 1>&6
4191 fi
4192 done
4193
4194       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4195       
4196       
4197   # If we're not using GNU ld, then there's no point in even trying these
4198   # tests.  Check for that first.  We should have already tested for gld
4199   # by now (in libtool), but require it now just to be safe...
4200   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4201   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4202   
4203
4204   # The name set by libtool depends on the version of libtool.  Shame on us
4205   # for depending on an impl detail, but c'est la vie.  Older versions used
4206   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4207   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4208   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4209   # set (hence we're using an older libtool), then set it.
4210   if test x${with_gnu_ld+set} != xset; then
4211     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4212       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4213       with_gnu_ld=no
4214     else
4215       with_gnu_ld=$ac_cv_prog_gnu_ld
4216     fi
4217   fi
4218
4219   # Start by getting the version number.  I think the libtool test already
4220   # does some of this, but throws away the result.
4221   
4222   ldver=`$LD --version 2>/dev/null | head -1 | \
4223          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4224   
4225   glibcpp_gnu_ld_version=`echo $ldver | \
4226          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4227
4228   # Set --gc-sections.
4229   if test "$with_gnu_ld" = "notbroken"; then
4230     # GNU ld it is!  Joy and bunny rabbits!
4231
4232     # All these tests are for C++; save the language and the compiler flags.
4233     # Need to do this so that g++ won't try to link in libstdc++
4234     ac_test_CFLAGS="${CFLAGS+set}"
4235     ac_save_CFLAGS="$CFLAGS"
4236     CFLAGS='-x c++  -Wl,--gc-sections'
4237
4238     # Check for -Wl,--gc-sections
4239     # XXX This test is broken at the moment, as symbols required for
4240     # linking are now in libsupc++ (not built yet.....). In addition, 
4241     # this test has cored on solaris in the past. In addition,
4242     # --gc-sections doesn't really work at the moment (keeps on discarding
4243     # used sections, first .eh_frame and now some of the glibc sections for
4244     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4245     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4246 echo "configure:4247: checking for ld that supports -Wl,--gc-sections" >&5
4247     if test "$cross_compiling" = yes; then
4248   ac_sectionLDflags=yes
4249 else
4250   cat > conftest.$ac_ext <<EOF
4251 #line 4252 "configure"
4252 #include "confdefs.h"
4253
4254      int main(void) 
4255      {
4256        try { throw 1; }
4257        catch (...) { };
4258        return 0;
4259      }
4260     
4261 EOF
4262 if { (eval echo configure:4263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4263 then
4264   ac_sectionLDflags=yes
4265 else
4266   echo "configure: failed program was:" >&5
4267   cat conftest.$ac_ext >&5
4268   rm -fr conftest*
4269   ac_sectionLDflags=no
4270 fi
4271 rm -fr conftest*
4272 fi
4273
4274     if test "$ac_test_CFLAGS" = set; then
4275       CFLAGS="$ac_save_CFLAGS"
4276     else
4277       # this is the suspicious part
4278       CFLAGS=''
4279     fi
4280     if test "$ac_sectionLDflags" = "yes"; then
4281       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4282     fi
4283     echo "$ac_t""$ac_sectionLDflags" 1>&6
4284   fi
4285
4286   # Set linker optimization flags.
4287   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4288     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4289   fi
4290
4291   
4292   
4293
4294       
4295     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4296 echo "configure:4297: checking for main in -lm" >&5
4297 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4298 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4299   echo $ac_n "(cached) $ac_c" 1>&6
4300 else
4301   ac_save_LIBS="$LIBS"
4302 LIBS="-lm  $LIBS"
4303 cat > conftest.$ac_ext <<EOF
4304 #line 4305 "configure"
4305 #include "confdefs.h"
4306
4307 int main() {
4308 main()
4309 ; return 0; }
4310 EOF
4311 if { (eval echo configure:4312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4312   rm -rf conftest*
4313   eval "ac_cv_lib_$ac_lib_var=yes"
4314 else
4315   echo "configure: failed program was:" >&5
4316   cat conftest.$ac_ext >&5
4317   rm -rf conftest*
4318   eval "ac_cv_lib_$ac_lib_var=no"
4319 fi
4320 rm -f conftest*
4321 LIBS="$ac_save_LIBS"
4322
4323 fi
4324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4325   echo "$ac_t""yes" 1>&6
4326     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4327     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4328   cat >> confdefs.h <<EOF
4329 #define $ac_tr_lib 1
4330 EOF
4331
4332   LIBS="-lm $LIBS"
4333
4334 else
4335   echo "$ac_t""no" 1>&6
4336 fi
4337
4338   for ac_func in nan copysignf
4339 do
4340 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4341 echo "configure:4342: checking for $ac_func" >&5
4342 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4343   echo $ac_n "(cached) $ac_c" 1>&6
4344 else
4345   cat > conftest.$ac_ext <<EOF
4346 #line 4347 "configure"
4347 #include "confdefs.h"
4348 /* System header to define __stub macros and hopefully few prototypes,
4349     which can conflict with char $ac_func(); below.  */
4350 #include <assert.h>
4351 /* Override any gcc2 internal prototype to avoid an error.  */
4352 /* We use char because int might match the return type of a gcc2
4353     builtin and then its argument prototype would still apply.  */
4354 char $ac_func();
4355
4356 int main() {
4357
4358 /* The GNU C library defines this for functions which it implements
4359     to always fail with ENOSYS.  Some functions are actually named
4360     something starting with __ and the normal name is an alias.  */
4361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4362 choke me
4363 #else
4364 $ac_func();
4365 #endif
4366
4367 ; return 0; }
4368 EOF
4369 if { (eval echo configure:4370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4370   rm -rf conftest*
4371   eval "ac_cv_func_$ac_func=yes"
4372 else
4373   echo "configure: failed program was:" >&5
4374   cat conftest.$ac_ext >&5
4375   rm -rf conftest*
4376   eval "ac_cv_func_$ac_func=no"
4377 fi
4378 rm -f conftest*
4379 fi
4380
4381 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4382   echo "$ac_t""yes" 1>&6
4383     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4384   cat >> confdefs.h <<EOF
4385 #define $ac_tr_func 1
4386 EOF
4387  
4388 else
4389   echo "$ac_t""no" 1>&6
4390 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4391 fi
4392 done
4393
4394
4395     for ac_func in __signbit
4396 do
4397 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4398 echo "configure:4399: checking for $ac_func" >&5
4399 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4400   echo $ac_n "(cached) $ac_c" 1>&6
4401 else
4402   cat > conftest.$ac_ext <<EOF
4403 #line 4404 "configure"
4404 #include "confdefs.h"
4405 /* System header to define __stub macros and hopefully few prototypes,
4406     which can conflict with char $ac_func(); below.  */
4407 #include <assert.h>
4408 /* Override any gcc2 internal prototype to avoid an error.  */
4409 /* We use char because int might match the return type of a gcc2
4410     builtin and then its argument prototype would still apply.  */
4411 char $ac_func();
4412
4413 int main() {
4414
4415 /* The GNU C library defines this for functions which it implements
4416     to always fail with ENOSYS.  Some functions are actually named
4417     something starting with __ and the normal name is an alias.  */
4418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4419 choke me
4420 #else
4421 $ac_func();
4422 #endif
4423
4424 ; return 0; }
4425 EOF
4426 if { (eval echo configure:4427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4427   rm -rf conftest*
4428   eval "ac_cv_func_$ac_func=yes"
4429 else
4430   echo "configure: failed program was:" >&5
4431   cat conftest.$ac_ext >&5
4432   rm -rf conftest*
4433   eval "ac_cv_func_$ac_func=no"
4434 fi
4435 rm -f conftest*
4436 fi
4437
4438 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4439   echo "$ac_t""yes" 1>&6
4440     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4441   cat >> confdefs.h <<EOF
4442 #define $ac_tr_func 1
4443 EOF
4444  
4445 else
4446   echo "$ac_t""no" 1>&6
4447 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4448 fi
4449 done
4450
4451   for ac_func in __signbitf
4452 do
4453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4454 echo "configure:4455: checking for $ac_func" >&5
4455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4456   echo $ac_n "(cached) $ac_c" 1>&6
4457 else
4458   cat > conftest.$ac_ext <<EOF
4459 #line 4460 "configure"
4460 #include "confdefs.h"
4461 /* System header to define __stub macros and hopefully few prototypes,
4462     which can conflict with char $ac_func(); below.  */
4463 #include <assert.h>
4464 /* Override any gcc2 internal prototype to avoid an error.  */
4465 /* We use char because int might match the return type of a gcc2
4466     builtin and then its argument prototype would still apply.  */
4467 char $ac_func();
4468
4469 int main() {
4470
4471 /* The GNU C library defines this for functions which it implements
4472     to always fail with ENOSYS.  Some functions are actually named
4473     something starting with __ and the normal name is an alias.  */
4474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4475 choke me
4476 #else
4477 $ac_func();
4478 #endif
4479
4480 ; return 0; }
4481 EOF
4482 if { (eval echo configure:4483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4483   rm -rf conftest*
4484   eval "ac_cv_func_$ac_func=yes"
4485 else
4486   echo "configure: failed program was:" >&5
4487   cat conftest.$ac_ext >&5
4488   rm -rf conftest*
4489   eval "ac_cv_func_$ac_func=no"
4490 fi
4491 rm -f conftest*
4492 fi
4493
4494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4495   echo "$ac_t""yes" 1>&6
4496     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4497   cat >> confdefs.h <<EOF
4498 #define $ac_tr_func 1
4499 EOF
4500  
4501 else
4502   echo "$ac_t""no" 1>&6
4503 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4504 fi
4505 done
4506
4507
4508           if test x$ac_cv_func_copysignl = x"yes"; then
4509     for ac_func in __signbitl
4510 do
4511 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4512 echo "configure:4513: checking for $ac_func" >&5
4513 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4514   echo $ac_n "(cached) $ac_c" 1>&6
4515 else
4516   cat > conftest.$ac_ext <<EOF
4517 #line 4518 "configure"
4518 #include "confdefs.h"
4519 /* System header to define __stub macros and hopefully few prototypes,
4520     which can conflict with char $ac_func(); below.  */
4521 #include <assert.h>
4522 /* Override any gcc2 internal prototype to avoid an error.  */
4523 /* We use char because int might match the return type of a gcc2
4524     builtin and then its argument prototype would still apply.  */
4525 char $ac_func();
4526
4527 int main() {
4528
4529 /* The GNU C library defines this for functions which it implements
4530     to always fail with ENOSYS.  Some functions are actually named
4531     something starting with __ and the normal name is an alias.  */
4532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4533 choke me
4534 #else
4535 $ac_func();
4536 #endif
4537
4538 ; return 0; }
4539 EOF
4540 if { (eval echo configure:4541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4541   rm -rf conftest*
4542   eval "ac_cv_func_$ac_func=yes"
4543 else
4544   echo "configure: failed program was:" >&5
4545   cat conftest.$ac_ext >&5
4546   rm -rf conftest*
4547   eval "ac_cv_func_$ac_func=no"
4548 fi
4549 rm -f conftest*
4550 fi
4551
4552 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4553   echo "$ac_t""yes" 1>&6
4554     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4555   cat >> confdefs.h <<EOF
4556 #define $ac_tr_func 1
4557 EOF
4558  
4559 else
4560   echo "$ac_t""no" 1>&6
4561 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4562 fi
4563 done
4564
4565   fi
4566
4567   
4568
4569       
4570
4571       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4572 echo "configure:4573: checking for mbstate_t" >&5
4573   cat > conftest.$ac_ext <<EOF
4574 #line 4575 "configure"
4575 #include "confdefs.h"
4576 #include <wchar.h>
4577 int main() {
4578 mbstate_t teststate;
4579 ; return 0; }
4580 EOF
4581 if { (eval echo configure:4582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4582   rm -rf conftest*
4583   have_mbstate_t=yes
4584 else
4585   echo "configure: failed program was:" >&5
4586   cat conftest.$ac_ext >&5
4587   rm -rf conftest*
4588   have_mbstate_t=no
4589 fi
4590 rm -f conftest*
4591   echo "$ac_t""$have_mbstate_t" 1>&6
4592   if test x"$have_mbstate_t" = xyes; then
4593     cat >> confdefs.h <<\EOF
4594 #define HAVE_MBSTATE_T 1
4595 EOF
4596
4597   fi
4598
4599     for ac_hdr in wchar.h
4600 do
4601 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4602 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4603 echo "configure:4604: checking for $ac_hdr" >&5
4604 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4605   echo $ac_n "(cached) $ac_c" 1>&6
4606 else
4607   cat > conftest.$ac_ext <<EOF
4608 #line 4609 "configure"
4609 #include "confdefs.h"
4610 #include <$ac_hdr>
4611 EOF
4612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4613 { (eval echo configure:4614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4615 if test -z "$ac_err"; then
4616   rm -rf conftest*
4617   eval "ac_cv_header_$ac_safe=yes"
4618 else
4619   echo "$ac_err" >&5
4620   echo "configure: failed program was:" >&5
4621   cat conftest.$ac_ext >&5
4622   rm -rf conftest*
4623   eval "ac_cv_header_$ac_safe=no"
4624 fi
4625 rm -f conftest*
4626 fi
4627 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4628   echo "$ac_t""yes" 1>&6
4629     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4630   cat >> confdefs.h <<EOF
4631 #define $ac_tr_hdr 1
4632 EOF
4633  ac_has_wchar_h=yes
4634 else
4635   echo "$ac_t""no" 1>&6
4636 ac_has_wchar_h=no
4637 fi
4638 done
4639
4640   for ac_hdr in wctype.h
4641 do
4642 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4643 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4644 echo "configure:4645: checking for $ac_hdr" >&5
4645 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4646   echo $ac_n "(cached) $ac_c" 1>&6
4647 else
4648   cat > conftest.$ac_ext <<EOF
4649 #line 4650 "configure"
4650 #include "confdefs.h"
4651 #include <$ac_hdr>
4652 EOF
4653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4654 { (eval echo configure:4655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4655 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4656 if test -z "$ac_err"; then
4657   rm -rf conftest*
4658   eval "ac_cv_header_$ac_safe=yes"
4659 else
4660   echo "$ac_err" >&5
4661   echo "configure: failed program was:" >&5
4662   cat conftest.$ac_ext >&5
4663   rm -rf conftest*
4664   eval "ac_cv_header_$ac_safe=no"
4665 fi
4666 rm -f conftest*
4667 fi
4668 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4669   echo "$ac_t""yes" 1>&6
4670     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4671   cat >> confdefs.h <<EOF
4672 #define $ac_tr_hdr 1
4673 EOF
4674  ac_has_wctype_h=yes
4675 else
4676   echo "$ac_t""no" 1>&6
4677 ac_has_wctype_h=no
4678 fi
4679 done
4680
4681   
4682     if test x"$ac_has_wchar_h" = xyes &&
4683      test x"$ac_has_wctype_h" = xyes &&
4684      test x"$enable_c_mbchar" != xno; then
4685       
4686             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4687 echo "configure:4688: checking for WCHAR_MIN and WCHAR_MAX" >&5
4688     cat > conftest.$ac_ext <<EOF
4689 #line 4690 "configure"
4690 #include "confdefs.h"
4691 #include <wchar.h>
4692 int main() {
4693 int i = WCHAR_MIN; int j = WCHAR_MAX;
4694 ; return 0; }
4695 EOF
4696 if { (eval echo configure:4697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4697   rm -rf conftest*
4698   has_wchar_minmax=yes
4699 else
4700   echo "configure: failed program was:" >&5
4701   cat conftest.$ac_ext >&5
4702   rm -rf conftest*
4703   has_wchar_minmax=no
4704 fi
4705 rm -f conftest*
4706     echo "$ac_t""$has_wchar_minmax" 1>&6
4707     
4708             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4709 echo "configure:4710: checking for WEOF" >&5
4710     cat > conftest.$ac_ext <<EOF
4711 #line 4712 "configure"
4712 #include "confdefs.h"
4713
4714       #include <wchar.h>
4715       #include <stddef.h>
4716 int main() {
4717 wint_t i = WEOF;
4718 ; return 0; }
4719 EOF
4720 if { (eval echo configure:4721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4721   rm -rf conftest*
4722   has_weof=yes
4723 else
4724   echo "configure: failed program was:" >&5
4725   cat conftest.$ac_ext >&5
4726   rm -rf conftest*
4727   has_weof=no
4728 fi
4729 rm -f conftest*
4730     echo "$ac_t""$has_weof" 1>&6
4731   
4732         ac_wfuncs=yes
4733     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4734 do
4735 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4736 echo "configure:4737: checking for $ac_func" >&5
4737 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4738   echo $ac_n "(cached) $ac_c" 1>&6
4739 else
4740   cat > conftest.$ac_ext <<EOF
4741 #line 4742 "configure"
4742 #include "confdefs.h"
4743 /* System header to define __stub macros and hopefully few prototypes,
4744     which can conflict with char $ac_func(); below.  */
4745 #include <assert.h>
4746 /* Override any gcc2 internal prototype to avoid an error.  */
4747 /* We use char because int might match the return type of a gcc2
4748     builtin and then its argument prototype would still apply.  */
4749 char $ac_func();
4750
4751 int main() {
4752
4753 /* The GNU C library defines this for functions which it implements
4754     to always fail with ENOSYS.  Some functions are actually named
4755     something starting with __ and the normal name is an alias.  */
4756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4757 choke me
4758 #else
4759 $ac_func();
4760 #endif
4761
4762 ; return 0; }
4763 EOF
4764 if { (eval echo configure:4765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4765   rm -rf conftest*
4766   eval "ac_cv_func_$ac_func=yes"
4767 else
4768   echo "configure: failed program was:" >&5
4769   cat conftest.$ac_ext >&5
4770   rm -rf conftest*
4771   eval "ac_cv_func_$ac_func=no"
4772 fi
4773 rm -f conftest*
4774 fi
4775
4776 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4777   echo "$ac_t""yes" 1>&6
4778     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4779   cat >> confdefs.h <<EOF
4780 #define $ac_tr_func 1
4781 EOF
4782  
4783 else
4784   echo "$ac_t""no" 1>&6
4785 \
4786     ac_wfuncs=no
4787 fi
4788 done
4789
4790   
4791         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4792     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4793     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4794     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4795     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4796     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4797 do
4798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4799 echo "configure:4800: checking for $ac_func" >&5
4800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4801   echo $ac_n "(cached) $ac_c" 1>&6
4802 else
4803   cat > conftest.$ac_ext <<EOF
4804 #line 4805 "configure"
4805 #include "confdefs.h"
4806 /* System header to define __stub macros and hopefully few prototypes,
4807     which can conflict with char $ac_func(); below.  */
4808 #include <assert.h>
4809 /* Override any gcc2 internal prototype to avoid an error.  */
4810 /* We use char because int might match the return type of a gcc2
4811     builtin and then its argument prototype would still apply.  */
4812 char $ac_func();
4813
4814 int main() {
4815
4816 /* The GNU C library defines this for functions which it implements
4817     to always fail with ENOSYS.  Some functions are actually named
4818     something starting with __ and the normal name is an alias.  */
4819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4820 choke me
4821 #else
4822 $ac_func();
4823 #endif
4824
4825 ; return 0; }
4826 EOF
4827 if { (eval echo configure:4828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4828   rm -rf conftest*
4829   eval "ac_cv_func_$ac_func=yes"
4830 else
4831   echo "configure: failed program was:" >&5
4832   cat conftest.$ac_ext >&5
4833   rm -rf conftest*
4834   eval "ac_cv_func_$ac_func=no"
4835 fi
4836 rm -f conftest*
4837 fi
4838
4839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4840   echo "$ac_t""yes" 1>&6
4841     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4842   cat >> confdefs.h <<EOF
4843 #define $ac_tr_func 1
4844 EOF
4845  
4846 else
4847   echo "$ac_t""no" 1>&6
4848 \
4849     ac_wfuncs=no
4850 fi
4851 done
4852
4853
4854     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4855 echo "configure:4856: checking for ISO C99 wchar_t support" >&5
4856     if test x"$has_weof" = xyes &&
4857        test x"$has_wchar_minmax" = xyes &&
4858        test x"$ac_wfuncs" = xyes; then
4859       ac_isoC99_wchar_t=yes
4860     else
4861       ac_isoC99_wchar_t=no
4862     fi
4863     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4864   
4865             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4866 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4867 echo "configure:4868: checking for iconv.h" >&5
4868 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4869   echo $ac_n "(cached) $ac_c" 1>&6
4870 else
4871   cat > conftest.$ac_ext <<EOF
4872 #line 4873 "configure"
4873 #include "confdefs.h"
4874 #include <iconv.h>
4875 EOF
4876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4877 { (eval echo configure:4878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4879 if test -z "$ac_err"; then
4880   rm -rf conftest*
4881   eval "ac_cv_header_$ac_safe=yes"
4882 else
4883   echo "$ac_err" >&5
4884   echo "configure: failed program was:" >&5
4885   cat conftest.$ac_ext >&5
4886   rm -rf conftest*
4887   eval "ac_cv_header_$ac_safe=no"
4888 fi
4889 rm -f conftest*
4890 fi
4891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4892   echo "$ac_t""yes" 1>&6
4893   ac_has_iconv_h=yes
4894 else
4895   echo "$ac_t""no" 1>&6
4896 ac_has_iconv_h=no
4897 fi
4898
4899     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4900 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4901 echo "configure:4902: checking for langinfo.h" >&5
4902 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4903   echo $ac_n "(cached) $ac_c" 1>&6
4904 else
4905   cat > conftest.$ac_ext <<EOF
4906 #line 4907 "configure"
4907 #include "confdefs.h"
4908 #include <langinfo.h>
4909 EOF
4910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4911 { (eval echo configure:4912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4913 if test -z "$ac_err"; then
4914   rm -rf conftest*
4915   eval "ac_cv_header_$ac_safe=yes"
4916 else
4917   echo "$ac_err" >&5
4918   echo "configure: failed program was:" >&5
4919   cat conftest.$ac_ext >&5
4920   rm -rf conftest*
4921   eval "ac_cv_header_$ac_safe=no"
4922 fi
4923 rm -f conftest*
4924 fi
4925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4926   echo "$ac_t""yes" 1>&6
4927   ac_has_langinfo_h=yes
4928 else
4929   echo "$ac_t""no" 1>&6
4930 ac_has_langinfo_h=no
4931 fi
4932
4933
4934         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4935 echo "configure:4936: checking for iconv in -liconv" >&5
4936 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4937 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4938   echo $ac_n "(cached) $ac_c" 1>&6
4939 else
4940   ac_save_LIBS="$LIBS"
4941 LIBS="-liconv  $LIBS"
4942 cat > conftest.$ac_ext <<EOF
4943 #line 4944 "configure"
4944 #include "confdefs.h"
4945 /* Override any gcc2 internal prototype to avoid an error.  */
4946 /* We use char because int might match the return type of a gcc2
4947     builtin and then its argument prototype would still apply.  */
4948 char iconv();
4949
4950 int main() {
4951 iconv()
4952 ; return 0; }
4953 EOF
4954 if { (eval echo configure:4955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4955   rm -rf conftest*
4956   eval "ac_cv_lib_$ac_lib_var=yes"
4957 else
4958   echo "configure: failed program was:" >&5
4959   cat conftest.$ac_ext >&5
4960   rm -rf conftest*
4961   eval "ac_cv_lib_$ac_lib_var=no"
4962 fi
4963 rm -f conftest*
4964 LIBS="$ac_save_LIBS"
4965
4966 fi
4967 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4968   echo "$ac_t""yes" 1>&6
4969   libiconv="-liconv"
4970 else
4971   echo "$ac_t""no" 1>&6
4972 fi
4973
4974     ac_save_LIBS="$LIBS"
4975     LIBS="$LIBS $libiconv"
4976
4977     for ac_func in iconv_open iconv_close iconv nl_langinfo
4978 do
4979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4980 echo "configure:4981: checking for $ac_func" >&5
4981 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4982   echo $ac_n "(cached) $ac_c" 1>&6
4983 else
4984   cat > conftest.$ac_ext <<EOF
4985 #line 4986 "configure"
4986 #include "confdefs.h"
4987 /* System header to define __stub macros and hopefully few prototypes,
4988     which can conflict with char $ac_func(); below.  */
4989 #include <assert.h>
4990 /* Override any gcc2 internal prototype to avoid an error.  */
4991 /* We use char because int might match the return type of a gcc2
4992     builtin and then its argument prototype would still apply.  */
4993 char $ac_func();
4994
4995 int main() {
4996
4997 /* The GNU C library defines this for functions which it implements
4998     to always fail with ENOSYS.  Some functions are actually named
4999     something starting with __ and the normal name is an alias.  */
5000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5001 choke me
5002 #else
5003 $ac_func();
5004 #endif
5005
5006 ; return 0; }
5007 EOF
5008 if { (eval echo configure:5009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5009   rm -rf conftest*
5010   eval "ac_cv_func_$ac_func=yes"
5011 else
5012   echo "configure: failed program was:" >&5
5013   cat conftest.$ac_ext >&5
5014   rm -rf conftest*
5015   eval "ac_cv_func_$ac_func=no"
5016 fi
5017 rm -f conftest*
5018 fi
5019
5020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5021   echo "$ac_t""yes" 1>&6
5022     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5023   cat >> confdefs.h <<EOF
5024 #define $ac_tr_func 1
5025 EOF
5026  \
5027     ac_XPG2funcs=yes
5028 else
5029   echo "$ac_t""no" 1>&6
5030 ac_XPG2funcs=no
5031 fi
5032 done
5033
5034   
5035     LIBS="$ac_save_LIBS"
5036
5037     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5038 echo "configure:5039: checking for XPG2 wchar_t support" >&5
5039     if test x"$ac_has_iconv_h" = xyes &&
5040        test x"$ac_has_langinfo_h" = xyes &&
5041        test x"$ac_XPG2funcs" = xyes; then
5042       ac_XPG2_wchar_t=yes
5043     else
5044       ac_XPG2_wchar_t=no
5045     fi
5046     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5047   
5048             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5049 echo "configure:5050: checking for enabled wchar_t specializations" >&5
5050     if test x"$ac_isoC99_wchar_t" = xyes &&
5051        test x"$ac_XPG2_wchar_t" = xyes; then
5052       cat >> confdefs.h <<\EOF
5053 #define _GLIBCPP_USE_WCHAR_T 1
5054 EOF
5055
5056       echo "$ac_t"""yes"" 1>&6
5057     else
5058       echo "$ac_t"""no"" 1>&6
5059     fi
5060   else
5061         echo "configure: warning: wchar_t support disabled." 1>&2
5062   fi
5063
5064       os_include_dir="config/os/gnu-linux"
5065       cat >> confdefs.h <<\EOF
5066 #define HAVE_COPYSIGN 1
5067 EOF
5068
5069       cat >> confdefs.h <<\EOF
5070 #define HAVE_COPYSIGNF 1
5071 EOF
5072
5073       cat >> confdefs.h <<\EOF
5074 #define HAVE_FINITEF 1
5075 EOF
5076
5077       cat >> confdefs.h <<\EOF
5078 #define HAVE_FREXPF 1
5079 EOF
5080
5081       cat >> confdefs.h <<\EOF
5082 #define HAVE_HYPOTF 1
5083 EOF
5084
5085       cat >> confdefs.h <<\EOF
5086 #define HAVE_SINCOS 1
5087 EOF
5088
5089       cat >> confdefs.h <<\EOF
5090 #define HAVE_SINCOSF 1
5091 EOF
5092
5093       if test x"long_double_math_on_this_cpu" = x"yes"; then
5094         cat >> confdefs.h <<\EOF
5095 #define HAVE_HYPOTL 1
5096 EOF
5097
5098       fi
5099       ;;
5100     *-hpux*)
5101       # Check for available headers.
5102       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5103         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5104         fp.h locale.h float.h inttypes.h
5105 do
5106 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5107 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5108 echo "configure:5109: checking for $ac_hdr" >&5
5109 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5110   echo $ac_n "(cached) $ac_c" 1>&6
5111 else
5112   cat > conftest.$ac_ext <<EOF
5113 #line 5114 "configure"
5114 #include "confdefs.h"
5115 #include <$ac_hdr>
5116 EOF
5117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5118 { (eval echo configure:5119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5119 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5120 if test -z "$ac_err"; then
5121   rm -rf conftest*
5122   eval "ac_cv_header_$ac_safe=yes"
5123 else
5124   echo "$ac_err" >&5
5125   echo "configure: failed program was:" >&5
5126   cat conftest.$ac_ext >&5
5127   rm -rf conftest*
5128   eval "ac_cv_header_$ac_safe=no"
5129 fi
5130 rm -f conftest*
5131 fi
5132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5133   echo "$ac_t""yes" 1>&6
5134     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5135   cat >> confdefs.h <<EOF
5136 #define $ac_tr_hdr 1
5137 EOF
5138  
5139 else
5140   echo "$ac_t""no" 1>&6
5141 fi
5142 done
5143
5144       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5145       
5146       
5147   # If we're not using GNU ld, then there's no point in even trying these
5148   # tests.  Check for that first.  We should have already tested for gld
5149   # by now (in libtool), but require it now just to be safe...
5150   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5151   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5152   
5153
5154   # The name set by libtool depends on the version of libtool.  Shame on us
5155   # for depending on an impl detail, but c'est la vie.  Older versions used
5156   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5157   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5158   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5159   # set (hence we're using an older libtool), then set it.
5160   if test x${with_gnu_ld+set} != xset; then
5161     if test x${ac_cv_prog_gnu_ld+set} != xset; then
5162       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5163       with_gnu_ld=no
5164     else
5165       with_gnu_ld=$ac_cv_prog_gnu_ld
5166     fi
5167   fi
5168
5169   # Start by getting the version number.  I think the libtool test already
5170   # does some of this, but throws away the result.
5171   
5172   ldver=`$LD --version 2>/dev/null | head -1 | \
5173          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5174   
5175   glibcpp_gnu_ld_version=`echo $ldver | \
5176          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5177
5178   # Set --gc-sections.
5179   if test "$with_gnu_ld" = "notbroken"; then
5180     # GNU ld it is!  Joy and bunny rabbits!
5181
5182     # All these tests are for C++; save the language and the compiler flags.
5183     # Need to do this so that g++ won't try to link in libstdc++
5184     ac_test_CFLAGS="${CFLAGS+set}"
5185     ac_save_CFLAGS="$CFLAGS"
5186     CFLAGS='-x c++  -Wl,--gc-sections'
5187
5188     # Check for -Wl,--gc-sections
5189     # XXX This test is broken at the moment, as symbols required for
5190     # linking are now in libsupc++ (not built yet.....). In addition, 
5191     # this test has cored on solaris in the past. In addition,
5192     # --gc-sections doesn't really work at the moment (keeps on discarding
5193     # used sections, first .eh_frame and now some of the glibc sections for
5194     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5195     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5196 echo "configure:5197: checking for ld that supports -Wl,--gc-sections" >&5
5197     if test "$cross_compiling" = yes; then
5198   ac_sectionLDflags=yes
5199 else
5200   cat > conftest.$ac_ext <<EOF
5201 #line 5202 "configure"
5202 #include "confdefs.h"
5203
5204      int main(void) 
5205      {
5206        try { throw 1; }
5207        catch (...) { };
5208        return 0;
5209      }
5210     
5211 EOF
5212 if { (eval echo configure:5213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5213 then
5214   ac_sectionLDflags=yes
5215 else
5216   echo "configure: failed program was:" >&5
5217   cat conftest.$ac_ext >&5
5218   rm -fr conftest*
5219   ac_sectionLDflags=no
5220 fi
5221 rm -fr conftest*
5222 fi
5223
5224     if test "$ac_test_CFLAGS" = set; then
5225       CFLAGS="$ac_save_CFLAGS"
5226     else
5227       # this is the suspicious part
5228       CFLAGS=''
5229     fi
5230     if test "$ac_sectionLDflags" = "yes"; then
5231       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5232     fi
5233     echo "$ac_t""$ac_sectionLDflags" 1>&6
5234   fi
5235
5236   # Set linker optimization flags.
5237   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5238     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5239   fi
5240
5241   
5242   
5243
5244       
5245     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5246 echo "configure:5247: checking for main in -lm" >&5
5247 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5248 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5249   echo $ac_n "(cached) $ac_c" 1>&6
5250 else
5251   ac_save_LIBS="$LIBS"
5252 LIBS="-lm  $LIBS"
5253 cat > conftest.$ac_ext <<EOF
5254 #line 5255 "configure"
5255 #include "confdefs.h"
5256
5257 int main() {
5258 main()
5259 ; return 0; }
5260 EOF
5261 if { (eval echo configure:5262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5262   rm -rf conftest*
5263   eval "ac_cv_lib_$ac_lib_var=yes"
5264 else
5265   echo "configure: failed program was:" >&5
5266   cat conftest.$ac_ext >&5
5267   rm -rf conftest*
5268   eval "ac_cv_lib_$ac_lib_var=no"
5269 fi
5270 rm -f conftest*
5271 LIBS="$ac_save_LIBS"
5272
5273 fi
5274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5275   echo "$ac_t""yes" 1>&6
5276     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5277     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5278   cat >> confdefs.h <<EOF
5279 #define $ac_tr_lib 1
5280 EOF
5281
5282   LIBS="-lm $LIBS"
5283
5284 else
5285   echo "$ac_t""no" 1>&6
5286 fi
5287
5288   for ac_func in nan copysignf
5289 do
5290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5291 echo "configure:5292: checking for $ac_func" >&5
5292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5293   echo $ac_n "(cached) $ac_c" 1>&6
5294 else
5295   cat > conftest.$ac_ext <<EOF
5296 #line 5297 "configure"
5297 #include "confdefs.h"
5298 /* System header to define __stub macros and hopefully few prototypes,
5299     which can conflict with char $ac_func(); below.  */
5300 #include <assert.h>
5301 /* Override any gcc2 internal prototype to avoid an error.  */
5302 /* We use char because int might match the return type of a gcc2
5303     builtin and then its argument prototype would still apply.  */
5304 char $ac_func();
5305
5306 int main() {
5307
5308 /* The GNU C library defines this for functions which it implements
5309     to always fail with ENOSYS.  Some functions are actually named
5310     something starting with __ and the normal name is an alias.  */
5311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5312 choke me
5313 #else
5314 $ac_func();
5315 #endif
5316
5317 ; return 0; }
5318 EOF
5319 if { (eval echo configure:5320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5320   rm -rf conftest*
5321   eval "ac_cv_func_$ac_func=yes"
5322 else
5323   echo "configure: failed program was:" >&5
5324   cat conftest.$ac_ext >&5
5325   rm -rf conftest*
5326   eval "ac_cv_func_$ac_func=no"
5327 fi
5328 rm -f conftest*
5329 fi
5330
5331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5332   echo "$ac_t""yes" 1>&6
5333     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5334   cat >> confdefs.h <<EOF
5335 #define $ac_tr_func 1
5336 EOF
5337  
5338 else
5339   echo "$ac_t""no" 1>&6
5340 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5341 fi
5342 done
5343
5344
5345     for ac_func in __signbit
5346 do
5347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5348 echo "configure:5349: checking for $ac_func" >&5
5349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5350   echo $ac_n "(cached) $ac_c" 1>&6
5351 else
5352   cat > conftest.$ac_ext <<EOF
5353 #line 5354 "configure"
5354 #include "confdefs.h"
5355 /* System header to define __stub macros and hopefully few prototypes,
5356     which can conflict with char $ac_func(); below.  */
5357 #include <assert.h>
5358 /* Override any gcc2 internal prototype to avoid an error.  */
5359 /* We use char because int might match the return type of a gcc2
5360     builtin and then its argument prototype would still apply.  */
5361 char $ac_func();
5362
5363 int main() {
5364
5365 /* The GNU C library defines this for functions which it implements
5366     to always fail with ENOSYS.  Some functions are actually named
5367     something starting with __ and the normal name is an alias.  */
5368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5369 choke me
5370 #else
5371 $ac_func();
5372 #endif
5373
5374 ; return 0; }
5375 EOF
5376 if { (eval echo configure:5377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5377   rm -rf conftest*
5378   eval "ac_cv_func_$ac_func=yes"
5379 else
5380   echo "configure: failed program was:" >&5
5381   cat conftest.$ac_ext >&5
5382   rm -rf conftest*
5383   eval "ac_cv_func_$ac_func=no"
5384 fi
5385 rm -f conftest*
5386 fi
5387
5388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5389   echo "$ac_t""yes" 1>&6
5390     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5391   cat >> confdefs.h <<EOF
5392 #define $ac_tr_func 1
5393 EOF
5394  
5395 else
5396   echo "$ac_t""no" 1>&6
5397 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5398 fi
5399 done
5400
5401   for ac_func in __signbitf
5402 do
5403 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5404 echo "configure:5405: checking for $ac_func" >&5
5405 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5406   echo $ac_n "(cached) $ac_c" 1>&6
5407 else
5408   cat > conftest.$ac_ext <<EOF
5409 #line 5410 "configure"
5410 #include "confdefs.h"
5411 /* System header to define __stub macros and hopefully few prototypes,
5412     which can conflict with char $ac_func(); below.  */
5413 #include <assert.h>
5414 /* Override any gcc2 internal prototype to avoid an error.  */
5415 /* We use char because int might match the return type of a gcc2
5416     builtin and then its argument prototype would still apply.  */
5417 char $ac_func();
5418
5419 int main() {
5420
5421 /* The GNU C library defines this for functions which it implements
5422     to always fail with ENOSYS.  Some functions are actually named
5423     something starting with __ and the normal name is an alias.  */
5424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5425 choke me
5426 #else
5427 $ac_func();
5428 #endif
5429
5430 ; return 0; }
5431 EOF
5432 if { (eval echo configure:5433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5433   rm -rf conftest*
5434   eval "ac_cv_func_$ac_func=yes"
5435 else
5436   echo "configure: failed program was:" >&5
5437   cat conftest.$ac_ext >&5
5438   rm -rf conftest*
5439   eval "ac_cv_func_$ac_func=no"
5440 fi
5441 rm -f conftest*
5442 fi
5443
5444 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5445   echo "$ac_t""yes" 1>&6
5446     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5447   cat >> confdefs.h <<EOF
5448 #define $ac_tr_func 1
5449 EOF
5450  
5451 else
5452   echo "$ac_t""no" 1>&6
5453 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5454 fi
5455 done
5456
5457
5458           if test x$ac_cv_func_copysignl = x"yes"; then
5459     for ac_func in __signbitl
5460 do
5461 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5462 echo "configure:5463: checking for $ac_func" >&5
5463 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5464   echo $ac_n "(cached) $ac_c" 1>&6
5465 else
5466   cat > conftest.$ac_ext <<EOF
5467 #line 5468 "configure"
5468 #include "confdefs.h"
5469 /* System header to define __stub macros and hopefully few prototypes,
5470     which can conflict with char $ac_func(); below.  */
5471 #include <assert.h>
5472 /* Override any gcc2 internal prototype to avoid an error.  */
5473 /* We use char because int might match the return type of a gcc2
5474     builtin and then its argument prototype would still apply.  */
5475 char $ac_func();
5476
5477 int main() {
5478
5479 /* The GNU C library defines this for functions which it implements
5480     to always fail with ENOSYS.  Some functions are actually named
5481     something starting with __ and the normal name is an alias.  */
5482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5483 choke me
5484 #else
5485 $ac_func();
5486 #endif
5487
5488 ; return 0; }
5489 EOF
5490 if { (eval echo configure:5491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5491   rm -rf conftest*
5492   eval "ac_cv_func_$ac_func=yes"
5493 else
5494   echo "configure: failed program was:" >&5
5495   cat conftest.$ac_ext >&5
5496   rm -rf conftest*
5497   eval "ac_cv_func_$ac_func=no"
5498 fi
5499 rm -f conftest*
5500 fi
5501
5502 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5503   echo "$ac_t""yes" 1>&6
5504     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5505   cat >> confdefs.h <<EOF
5506 #define $ac_tr_func 1
5507 EOF
5508  
5509 else
5510   echo "$ac_t""no" 1>&6
5511 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5512 fi
5513 done
5514
5515   fi
5516
5517   
5518
5519       
5520
5521       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5522 echo "configure:5523: checking for mbstate_t" >&5
5523   cat > conftest.$ac_ext <<EOF
5524 #line 5525 "configure"
5525 #include "confdefs.h"
5526 #include <wchar.h>
5527 int main() {
5528 mbstate_t teststate;
5529 ; return 0; }
5530 EOF
5531 if { (eval echo configure:5532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5532   rm -rf conftest*
5533   have_mbstate_t=yes
5534 else
5535   echo "configure: failed program was:" >&5
5536   cat conftest.$ac_ext >&5
5537   rm -rf conftest*
5538   have_mbstate_t=no
5539 fi
5540 rm -f conftest*
5541   echo "$ac_t""$have_mbstate_t" 1>&6
5542   if test x"$have_mbstate_t" = xyes; then
5543     cat >> confdefs.h <<\EOF
5544 #define HAVE_MBSTATE_T 1
5545 EOF
5546
5547   fi
5548
5549     for ac_hdr in wchar.h
5550 do
5551 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5552 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5553 echo "configure:5554: checking for $ac_hdr" >&5
5554 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5555   echo $ac_n "(cached) $ac_c" 1>&6
5556 else
5557   cat > conftest.$ac_ext <<EOF
5558 #line 5559 "configure"
5559 #include "confdefs.h"
5560 #include <$ac_hdr>
5561 EOF
5562 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5563 { (eval echo configure:5564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5564 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5565 if test -z "$ac_err"; then
5566   rm -rf conftest*
5567   eval "ac_cv_header_$ac_safe=yes"
5568 else
5569   echo "$ac_err" >&5
5570   echo "configure: failed program was:" >&5
5571   cat conftest.$ac_ext >&5
5572   rm -rf conftest*
5573   eval "ac_cv_header_$ac_safe=no"
5574 fi
5575 rm -f conftest*
5576 fi
5577 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5578   echo "$ac_t""yes" 1>&6
5579     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5580   cat >> confdefs.h <<EOF
5581 #define $ac_tr_hdr 1
5582 EOF
5583  ac_has_wchar_h=yes
5584 else
5585   echo "$ac_t""no" 1>&6
5586 ac_has_wchar_h=no
5587 fi
5588 done
5589
5590   for ac_hdr in wctype.h
5591 do
5592 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5593 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5594 echo "configure:5595: checking for $ac_hdr" >&5
5595 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5596   echo $ac_n "(cached) $ac_c" 1>&6
5597 else
5598   cat > conftest.$ac_ext <<EOF
5599 #line 5600 "configure"
5600 #include "confdefs.h"
5601 #include <$ac_hdr>
5602 EOF
5603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5604 { (eval echo configure:5605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5605 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5606 if test -z "$ac_err"; then
5607   rm -rf conftest*
5608   eval "ac_cv_header_$ac_safe=yes"
5609 else
5610   echo "$ac_err" >&5
5611   echo "configure: failed program was:" >&5
5612   cat conftest.$ac_ext >&5
5613   rm -rf conftest*
5614   eval "ac_cv_header_$ac_safe=no"
5615 fi
5616 rm -f conftest*
5617 fi
5618 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5619   echo "$ac_t""yes" 1>&6
5620     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5621   cat >> confdefs.h <<EOF
5622 #define $ac_tr_hdr 1
5623 EOF
5624  ac_has_wctype_h=yes
5625 else
5626   echo "$ac_t""no" 1>&6
5627 ac_has_wctype_h=no
5628 fi
5629 done
5630
5631   
5632     if test x"$ac_has_wchar_h" = xyes &&
5633      test x"$ac_has_wctype_h" = xyes &&
5634      test x"$enable_c_mbchar" != xno; then
5635       
5636             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5637 echo "configure:5638: checking for WCHAR_MIN and WCHAR_MAX" >&5
5638     cat > conftest.$ac_ext <<EOF
5639 #line 5640 "configure"
5640 #include "confdefs.h"
5641 #include <wchar.h>
5642 int main() {
5643 int i = WCHAR_MIN; int j = WCHAR_MAX;
5644 ; return 0; }
5645 EOF
5646 if { (eval echo configure:5647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5647   rm -rf conftest*
5648   has_wchar_minmax=yes
5649 else
5650   echo "configure: failed program was:" >&5
5651   cat conftest.$ac_ext >&5
5652   rm -rf conftest*
5653   has_wchar_minmax=no
5654 fi
5655 rm -f conftest*
5656     echo "$ac_t""$has_wchar_minmax" 1>&6
5657     
5658             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5659 echo "configure:5660: checking for WEOF" >&5
5660     cat > conftest.$ac_ext <<EOF
5661 #line 5662 "configure"
5662 #include "confdefs.h"
5663
5664       #include <wchar.h>
5665       #include <stddef.h>
5666 int main() {
5667 wint_t i = WEOF;
5668 ; return 0; }
5669 EOF
5670 if { (eval echo configure:5671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5671   rm -rf conftest*
5672   has_weof=yes
5673 else
5674   echo "configure: failed program was:" >&5
5675   cat conftest.$ac_ext >&5
5676   rm -rf conftest*
5677   has_weof=no
5678 fi
5679 rm -f conftest*
5680     echo "$ac_t""$has_weof" 1>&6
5681   
5682         ac_wfuncs=yes
5683     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5684 do
5685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5686 echo "configure:5687: checking for $ac_func" >&5
5687 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5688   echo $ac_n "(cached) $ac_c" 1>&6
5689 else
5690   cat > conftest.$ac_ext <<EOF
5691 #line 5692 "configure"
5692 #include "confdefs.h"
5693 /* System header to define __stub macros and hopefully few prototypes,
5694     which can conflict with char $ac_func(); below.  */
5695 #include <assert.h>
5696 /* Override any gcc2 internal prototype to avoid an error.  */
5697 /* We use char because int might match the return type of a gcc2
5698     builtin and then its argument prototype would still apply.  */
5699 char $ac_func();
5700
5701 int main() {
5702
5703 /* The GNU C library defines this for functions which it implements
5704     to always fail with ENOSYS.  Some functions are actually named
5705     something starting with __ and the normal name is an alias.  */
5706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5707 choke me
5708 #else
5709 $ac_func();
5710 #endif
5711
5712 ; return 0; }
5713 EOF
5714 if { (eval echo configure:5715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5715   rm -rf conftest*
5716   eval "ac_cv_func_$ac_func=yes"
5717 else
5718   echo "configure: failed program was:" >&5
5719   cat conftest.$ac_ext >&5
5720   rm -rf conftest*
5721   eval "ac_cv_func_$ac_func=no"
5722 fi
5723 rm -f conftest*
5724 fi
5725
5726 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5727   echo "$ac_t""yes" 1>&6
5728     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5729   cat >> confdefs.h <<EOF
5730 #define $ac_tr_func 1
5731 EOF
5732  
5733 else
5734   echo "$ac_t""no" 1>&6
5735 \
5736     ac_wfuncs=no
5737 fi
5738 done
5739
5740   
5741         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5742     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5743     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5744     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5745     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5746     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5747 do
5748 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5749 echo "configure:5750: checking for $ac_func" >&5
5750 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5751   echo $ac_n "(cached) $ac_c" 1>&6
5752 else
5753   cat > conftest.$ac_ext <<EOF
5754 #line 5755 "configure"
5755 #include "confdefs.h"
5756 /* System header to define __stub macros and hopefully few prototypes,
5757     which can conflict with char $ac_func(); below.  */
5758 #include <assert.h>
5759 /* Override any gcc2 internal prototype to avoid an error.  */
5760 /* We use char because int might match the return type of a gcc2
5761     builtin and then its argument prototype would still apply.  */
5762 char $ac_func();
5763
5764 int main() {
5765
5766 /* The GNU C library defines this for functions which it implements
5767     to always fail with ENOSYS.  Some functions are actually named
5768     something starting with __ and the normal name is an alias.  */
5769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5770 choke me
5771 #else
5772 $ac_func();
5773 #endif
5774
5775 ; return 0; }
5776 EOF
5777 if { (eval echo configure:5778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5778   rm -rf conftest*
5779   eval "ac_cv_func_$ac_func=yes"
5780 else
5781   echo "configure: failed program was:" >&5
5782   cat conftest.$ac_ext >&5
5783   rm -rf conftest*
5784   eval "ac_cv_func_$ac_func=no"
5785 fi
5786 rm -f conftest*
5787 fi
5788
5789 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5790   echo "$ac_t""yes" 1>&6
5791     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5792   cat >> confdefs.h <<EOF
5793 #define $ac_tr_func 1
5794 EOF
5795  
5796 else
5797   echo "$ac_t""no" 1>&6
5798 \
5799     ac_wfuncs=no
5800 fi
5801 done
5802
5803
5804     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5805 echo "configure:5806: checking for ISO C99 wchar_t support" >&5
5806     if test x"$has_weof" = xyes &&
5807        test x"$has_wchar_minmax" = xyes &&
5808        test x"$ac_wfuncs" = xyes; then
5809       ac_isoC99_wchar_t=yes
5810     else
5811       ac_isoC99_wchar_t=no
5812     fi
5813     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5814   
5815             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5816 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5817 echo "configure:5818: checking for iconv.h" >&5
5818 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5819   echo $ac_n "(cached) $ac_c" 1>&6
5820 else
5821   cat > conftest.$ac_ext <<EOF
5822 #line 5823 "configure"
5823 #include "confdefs.h"
5824 #include <iconv.h>
5825 EOF
5826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5827 { (eval echo configure:5828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5829 if test -z "$ac_err"; then
5830   rm -rf conftest*
5831   eval "ac_cv_header_$ac_safe=yes"
5832 else
5833   echo "$ac_err" >&5
5834   echo "configure: failed program was:" >&5
5835   cat conftest.$ac_ext >&5
5836   rm -rf conftest*
5837   eval "ac_cv_header_$ac_safe=no"
5838 fi
5839 rm -f conftest*
5840 fi
5841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5842   echo "$ac_t""yes" 1>&6
5843   ac_has_iconv_h=yes
5844 else
5845   echo "$ac_t""no" 1>&6
5846 ac_has_iconv_h=no
5847 fi
5848
5849     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5850 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5851 echo "configure:5852: checking for langinfo.h" >&5
5852 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5853   echo $ac_n "(cached) $ac_c" 1>&6
5854 else
5855   cat > conftest.$ac_ext <<EOF
5856 #line 5857 "configure"
5857 #include "confdefs.h"
5858 #include <langinfo.h>
5859 EOF
5860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5861 { (eval echo configure:5862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5863 if test -z "$ac_err"; then
5864   rm -rf conftest*
5865   eval "ac_cv_header_$ac_safe=yes"
5866 else
5867   echo "$ac_err" >&5
5868   echo "configure: failed program was:" >&5
5869   cat conftest.$ac_ext >&5
5870   rm -rf conftest*
5871   eval "ac_cv_header_$ac_safe=no"
5872 fi
5873 rm -f conftest*
5874 fi
5875 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5876   echo "$ac_t""yes" 1>&6
5877   ac_has_langinfo_h=yes
5878 else
5879   echo "$ac_t""no" 1>&6
5880 ac_has_langinfo_h=no
5881 fi
5882
5883
5884         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5885 echo "configure:5886: checking for iconv in -liconv" >&5
5886 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5887 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5888   echo $ac_n "(cached) $ac_c" 1>&6
5889 else
5890   ac_save_LIBS="$LIBS"
5891 LIBS="-liconv  $LIBS"
5892 cat > conftest.$ac_ext <<EOF
5893 #line 5894 "configure"
5894 #include "confdefs.h"
5895 /* Override any gcc2 internal prototype to avoid an error.  */
5896 /* We use char because int might match the return type of a gcc2
5897     builtin and then its argument prototype would still apply.  */
5898 char iconv();
5899
5900 int main() {
5901 iconv()
5902 ; return 0; }
5903 EOF
5904 if { (eval echo configure:5905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5905   rm -rf conftest*
5906   eval "ac_cv_lib_$ac_lib_var=yes"
5907 else
5908   echo "configure: failed program was:" >&5
5909   cat conftest.$ac_ext >&5
5910   rm -rf conftest*
5911   eval "ac_cv_lib_$ac_lib_var=no"
5912 fi
5913 rm -f conftest*
5914 LIBS="$ac_save_LIBS"
5915
5916 fi
5917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5918   echo "$ac_t""yes" 1>&6
5919   libiconv="-liconv"
5920 else
5921   echo "$ac_t""no" 1>&6
5922 fi
5923
5924     ac_save_LIBS="$LIBS"
5925     LIBS="$LIBS $libiconv"
5926
5927     for ac_func in iconv_open iconv_close iconv nl_langinfo
5928 do
5929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5930 echo "configure:5931: checking for $ac_func" >&5
5931 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5932   echo $ac_n "(cached) $ac_c" 1>&6
5933 else
5934   cat > conftest.$ac_ext <<EOF
5935 #line 5936 "configure"
5936 #include "confdefs.h"
5937 /* System header to define __stub macros and hopefully few prototypes,
5938     which can conflict with char $ac_func(); below.  */
5939 #include <assert.h>
5940 /* Override any gcc2 internal prototype to avoid an error.  */
5941 /* We use char because int might match the return type of a gcc2
5942     builtin and then its argument prototype would still apply.  */
5943 char $ac_func();
5944
5945 int main() {
5946
5947 /* The GNU C library defines this for functions which it implements
5948     to always fail with ENOSYS.  Some functions are actually named
5949     something starting with __ and the normal name is an alias.  */
5950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5951 choke me
5952 #else
5953 $ac_func();
5954 #endif
5955
5956 ; return 0; }
5957 EOF
5958 if { (eval echo configure:5959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5959   rm -rf conftest*
5960   eval "ac_cv_func_$ac_func=yes"
5961 else
5962   echo "configure: failed program was:" >&5
5963   cat conftest.$ac_ext >&5
5964   rm -rf conftest*
5965   eval "ac_cv_func_$ac_func=no"
5966 fi
5967 rm -f conftest*
5968 fi
5969
5970 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5971   echo "$ac_t""yes" 1>&6
5972     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5973   cat >> confdefs.h <<EOF
5974 #define $ac_tr_func 1
5975 EOF
5976  \
5977     ac_XPG2funcs=yes
5978 else
5979   echo "$ac_t""no" 1>&6
5980 ac_XPG2funcs=no
5981 fi
5982 done
5983
5984   
5985     LIBS="$ac_save_LIBS"
5986
5987     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5988 echo "configure:5989: checking for XPG2 wchar_t support" >&5
5989     if test x"$ac_has_iconv_h" = xyes &&
5990        test x"$ac_has_langinfo_h" = xyes &&
5991        test x"$ac_XPG2funcs" = xyes; then
5992       ac_XPG2_wchar_t=yes
5993     else
5994       ac_XPG2_wchar_t=no
5995     fi
5996     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5997   
5998             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5999 echo "configure:6000: checking for enabled wchar_t specializations" >&5
6000     if test x"$ac_isoC99_wchar_t" = xyes &&
6001        test x"$ac_XPG2_wchar_t" = xyes; then
6002       cat >> confdefs.h <<\EOF
6003 #define _GLIBCPP_USE_WCHAR_T 1
6004 EOF
6005
6006       echo "$ac_t"""yes"" 1>&6
6007     else
6008       echo "$ac_t"""no"" 1>&6
6009     fi
6010   else
6011         echo "configure: warning: wchar_t support disabled." 1>&2
6012   fi
6013
6014       os_include_dir="config/os/hpux"
6015       cat >> confdefs.h <<\EOF
6016 #define HAVE_COPYSIGN 1
6017 EOF
6018
6019       cat >> confdefs.h <<\EOF
6020 #define HAVE_COPYSIGNF 1
6021 EOF
6022
6023       cat >> confdefs.h <<\EOF
6024 #define HAVE_FINITEF 1
6025 EOF
6026
6027       cat >> confdefs.h <<\EOF
6028 #define HAVE_FREXPF 1
6029 EOF
6030
6031       cat >> confdefs.h <<\EOF
6032 #define HAVE_HYPOT 1
6033 EOF
6034
6035       cat >> confdefs.h <<\EOF
6036 #define HAVE_SINCOS 1
6037 EOF
6038
6039       cat >> confdefs.h <<\EOF
6040 #define HAVE_SINCOSF 1
6041 EOF
6042
6043       ;;
6044     *-netbsd*)
6045       # Check for available headers.
6046       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6047         machine/endian.h machine/param.h sys/machine.h sys/types.h \
6048         fp.h locale.h float.h inttypes.h
6049 do
6050 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6051 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6052 echo "configure:6053: checking for $ac_hdr" >&5
6053 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6054   echo $ac_n "(cached) $ac_c" 1>&6
6055 else
6056   cat > conftest.$ac_ext <<EOF
6057 #line 6058 "configure"
6058 #include "confdefs.h"
6059 #include <$ac_hdr>
6060 EOF
6061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6062 { (eval echo configure:6063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6063 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6064 if test -z "$ac_err"; then
6065   rm -rf conftest*
6066   eval "ac_cv_header_$ac_safe=yes"
6067 else
6068   echo "$ac_err" >&5
6069   echo "configure: failed program was:" >&5
6070   cat conftest.$ac_ext >&5
6071   rm -rf conftest*
6072   eval "ac_cv_header_$ac_safe=no"
6073 fi
6074 rm -f conftest*
6075 fi
6076 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6077   echo "$ac_t""yes" 1>&6
6078     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6079   cat >> confdefs.h <<EOF
6080 #define $ac_tr_hdr 1
6081 EOF
6082  
6083 else
6084   echo "$ac_t""no" 1>&6
6085 fi
6086 done
6087
6088       SECTION_FLAGS='-ffunction-sections -fdata-sections'
6089        
6090       
6091   # If we're not using GNU ld, then there's no point in even trying these
6092   # tests.  Check for that first.  We should have already tested for gld
6093   # by now (in libtool), but require it now just to be safe...
6094   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6095   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6096   
6097
6098   # The name set by libtool depends on the version of libtool.  Shame on us
6099   # for depending on an impl detail, but c'est la vie.  Older versions used
6100   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6101   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6102   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6103   # set (hence we're using an older libtool), then set it.
6104   if test x${with_gnu_ld+set} != xset; then
6105     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6106       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6107       with_gnu_ld=no
6108     else
6109       with_gnu_ld=$ac_cv_prog_gnu_ld
6110     fi
6111   fi
6112
6113   # Start by getting the version number.  I think the libtool test already
6114   # does some of this, but throws away the result.
6115   
6116   ldver=`$LD --version 2>/dev/null | head -1 | \
6117          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6118   
6119   glibcpp_gnu_ld_version=`echo $ldver | \
6120          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6121
6122   # Set --gc-sections.
6123   if test "$with_gnu_ld" = "notbroken"; then
6124     # GNU ld it is!  Joy and bunny rabbits!
6125
6126     # All these tests are for C++; save the language and the compiler flags.
6127     # Need to do this so that g++ won't try to link in libstdc++
6128     ac_test_CFLAGS="${CFLAGS+set}"
6129     ac_save_CFLAGS="$CFLAGS"
6130     CFLAGS='-x c++  -Wl,--gc-sections'
6131
6132     # Check for -Wl,--gc-sections
6133     # XXX This test is broken at the moment, as symbols required for
6134     # linking are now in libsupc++ (not built yet.....). In addition, 
6135     # this test has cored on solaris in the past. In addition,
6136     # --gc-sections doesn't really work at the moment (keeps on discarding
6137     # used sections, first .eh_frame and now some of the glibc sections for
6138     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6139     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6140 echo "configure:6141: checking for ld that supports -Wl,--gc-sections" >&5
6141     if test "$cross_compiling" = yes; then
6142   ac_sectionLDflags=yes
6143 else
6144   cat > conftest.$ac_ext <<EOF
6145 #line 6146 "configure"
6146 #include "confdefs.h"
6147
6148      int main(void) 
6149      {
6150        try { throw 1; }
6151        catch (...) { };
6152        return 0;
6153      }
6154     
6155 EOF
6156 if { (eval echo configure:6157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6157 then
6158   ac_sectionLDflags=yes
6159 else
6160   echo "configure: failed program was:" >&5
6161   cat conftest.$ac_ext >&5
6162   rm -fr conftest*
6163   ac_sectionLDflags=no
6164 fi
6165 rm -fr conftest*
6166 fi
6167
6168     if test "$ac_test_CFLAGS" = set; then
6169       CFLAGS="$ac_save_CFLAGS"
6170     else
6171       # this is the suspicious part
6172       CFLAGS=''
6173     fi
6174     if test "$ac_sectionLDflags" = "yes"; then
6175       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6176     fi
6177     echo "$ac_t""$ac_sectionLDflags" 1>&6
6178   fi
6179
6180   # Set linker optimization flags.
6181   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
6182     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6183   fi
6184
6185   
6186   
6187
6188       
6189     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6190 echo "configure:6191: checking for main in -lm" >&5
6191 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6192 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6193   echo $ac_n "(cached) $ac_c" 1>&6
6194 else
6195   ac_save_LIBS="$LIBS"
6196 LIBS="-lm  $LIBS"
6197 cat > conftest.$ac_ext <<EOF
6198 #line 6199 "configure"
6199 #include "confdefs.h"
6200
6201 int main() {
6202 main()
6203 ; return 0; }
6204 EOF
6205 if { (eval echo configure:6206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6206   rm -rf conftest*
6207   eval "ac_cv_lib_$ac_lib_var=yes"
6208 else
6209   echo "configure: failed program was:" >&5
6210   cat conftest.$ac_ext >&5
6211   rm -rf conftest*
6212   eval "ac_cv_lib_$ac_lib_var=no"
6213 fi
6214 rm -f conftest*
6215 LIBS="$ac_save_LIBS"
6216
6217 fi
6218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6219   echo "$ac_t""yes" 1>&6
6220     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6221     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6222   cat >> confdefs.h <<EOF
6223 #define $ac_tr_lib 1
6224 EOF
6225
6226   LIBS="-lm $LIBS"
6227
6228 else
6229   echo "$ac_t""no" 1>&6
6230 fi
6231
6232   for ac_func in nan copysignf
6233 do
6234 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6235 echo "configure:6236: checking for $ac_func" >&5
6236 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6237   echo $ac_n "(cached) $ac_c" 1>&6
6238 else
6239   cat > conftest.$ac_ext <<EOF
6240 #line 6241 "configure"
6241 #include "confdefs.h"
6242 /* System header to define __stub macros and hopefully few prototypes,
6243     which can conflict with char $ac_func(); below.  */
6244 #include <assert.h>
6245 /* Override any gcc2 internal prototype to avoid an error.  */
6246 /* We use char because int might match the return type of a gcc2
6247     builtin and then its argument prototype would still apply.  */
6248 char $ac_func();
6249
6250 int main() {
6251
6252 /* The GNU C library defines this for functions which it implements
6253     to always fail with ENOSYS.  Some functions are actually named
6254     something starting with __ and the normal name is an alias.  */
6255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6256 choke me
6257 #else
6258 $ac_func();
6259 #endif
6260
6261 ; return 0; }
6262 EOF
6263 if { (eval echo configure:6264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6264   rm -rf conftest*
6265   eval "ac_cv_func_$ac_func=yes"
6266 else
6267   echo "configure: failed program was:" >&5
6268   cat conftest.$ac_ext >&5
6269   rm -rf conftest*
6270   eval "ac_cv_func_$ac_func=no"
6271 fi
6272 rm -f conftest*
6273 fi
6274
6275 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6276   echo "$ac_t""yes" 1>&6
6277     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6278   cat >> confdefs.h <<EOF
6279 #define $ac_tr_func 1
6280 EOF
6281  
6282 else
6283   echo "$ac_t""no" 1>&6
6284 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6285 fi
6286 done
6287
6288
6289     for ac_func in __signbit
6290 do
6291 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6292 echo "configure:6293: checking for $ac_func" >&5
6293 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6294   echo $ac_n "(cached) $ac_c" 1>&6
6295 else
6296   cat > conftest.$ac_ext <<EOF
6297 #line 6298 "configure"
6298 #include "confdefs.h"
6299 /* System header to define __stub macros and hopefully few prototypes,
6300     which can conflict with char $ac_func(); below.  */
6301 #include <assert.h>
6302 /* Override any gcc2 internal prototype to avoid an error.  */
6303 /* We use char because int might match the return type of a gcc2
6304     builtin and then its argument prototype would still apply.  */
6305 char $ac_func();
6306
6307 int main() {
6308
6309 /* The GNU C library defines this for functions which it implements
6310     to always fail with ENOSYS.  Some functions are actually named
6311     something starting with __ and the normal name is an alias.  */
6312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6313 choke me
6314 #else
6315 $ac_func();
6316 #endif
6317
6318 ; return 0; }
6319 EOF
6320 if { (eval echo configure:6321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6321   rm -rf conftest*
6322   eval "ac_cv_func_$ac_func=yes"
6323 else
6324   echo "configure: failed program was:" >&5
6325   cat conftest.$ac_ext >&5
6326   rm -rf conftest*
6327   eval "ac_cv_func_$ac_func=no"
6328 fi
6329 rm -f conftest*
6330 fi
6331
6332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6333   echo "$ac_t""yes" 1>&6
6334     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6335   cat >> confdefs.h <<EOF
6336 #define $ac_tr_func 1
6337 EOF
6338  
6339 else
6340   echo "$ac_t""no" 1>&6
6341 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6342 fi
6343 done
6344
6345   for ac_func in __signbitf
6346 do
6347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6348 echo "configure:6349: checking for $ac_func" >&5
6349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6350   echo $ac_n "(cached) $ac_c" 1>&6
6351 else
6352   cat > conftest.$ac_ext <<EOF
6353 #line 6354 "configure"
6354 #include "confdefs.h"
6355 /* System header to define __stub macros and hopefully few prototypes,
6356     which can conflict with char $ac_func(); below.  */
6357 #include <assert.h>
6358 /* Override any gcc2 internal prototype to avoid an error.  */
6359 /* We use char because int might match the return type of a gcc2
6360     builtin and then its argument prototype would still apply.  */
6361 char $ac_func();
6362
6363 int main() {
6364
6365 /* The GNU C library defines this for functions which it implements
6366     to always fail with ENOSYS.  Some functions are actually named
6367     something starting with __ and the normal name is an alias.  */
6368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6369 choke me
6370 #else
6371 $ac_func();
6372 #endif
6373
6374 ; return 0; }
6375 EOF
6376 if { (eval echo configure:6377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6377   rm -rf conftest*
6378   eval "ac_cv_func_$ac_func=yes"
6379 else
6380   echo "configure: failed program was:" >&5
6381   cat conftest.$ac_ext >&5
6382   rm -rf conftest*
6383   eval "ac_cv_func_$ac_func=no"
6384 fi
6385 rm -f conftest*
6386 fi
6387
6388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6389   echo "$ac_t""yes" 1>&6
6390     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6391   cat >> confdefs.h <<EOF
6392 #define $ac_tr_func 1
6393 EOF
6394  
6395 else
6396   echo "$ac_t""no" 1>&6
6397 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6398 fi
6399 done
6400
6401
6402           if test x$ac_cv_func_copysignl = x"yes"; then
6403     for ac_func in __signbitl
6404 do
6405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6406 echo "configure:6407: checking for $ac_func" >&5
6407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6408   echo $ac_n "(cached) $ac_c" 1>&6
6409 else
6410   cat > conftest.$ac_ext <<EOF
6411 #line 6412 "configure"
6412 #include "confdefs.h"
6413 /* System header to define __stub macros and hopefully few prototypes,
6414     which can conflict with char $ac_func(); below.  */
6415 #include <assert.h>
6416 /* Override any gcc2 internal prototype to avoid an error.  */
6417 /* We use char because int might match the return type of a gcc2
6418     builtin and then its argument prototype would still apply.  */
6419 char $ac_func();
6420
6421 int main() {
6422
6423 /* The GNU C library defines this for functions which it implements
6424     to always fail with ENOSYS.  Some functions are actually named
6425     something starting with __ and the normal name is an alias.  */
6426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6427 choke me
6428 #else
6429 $ac_func();
6430 #endif
6431
6432 ; return 0; }
6433 EOF
6434 if { (eval echo configure:6435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6435   rm -rf conftest*
6436   eval "ac_cv_func_$ac_func=yes"
6437 else
6438   echo "configure: failed program was:" >&5
6439   cat conftest.$ac_ext >&5
6440   rm -rf conftest*
6441   eval "ac_cv_func_$ac_func=no"
6442 fi
6443 rm -f conftest*
6444 fi
6445
6446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6447   echo "$ac_t""yes" 1>&6
6448     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6449   cat >> confdefs.h <<EOF
6450 #define $ac_tr_func 1
6451 EOF
6452  
6453 else
6454   echo "$ac_t""no" 1>&6
6455 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6456 fi
6457 done
6458
6459   fi
6460
6461   
6462
6463       
6464
6465       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6466 echo "configure:6467: checking for mbstate_t" >&5
6467   cat > conftest.$ac_ext <<EOF
6468 #line 6469 "configure"
6469 #include "confdefs.h"
6470 #include <wchar.h>
6471 int main() {
6472 mbstate_t teststate;
6473 ; return 0; }
6474 EOF
6475 if { (eval echo configure:6476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6476   rm -rf conftest*
6477   have_mbstate_t=yes
6478 else
6479   echo "configure: failed program was:" >&5
6480   cat conftest.$ac_ext >&5
6481   rm -rf conftest*
6482   have_mbstate_t=no
6483 fi
6484 rm -f conftest*
6485   echo "$ac_t""$have_mbstate_t" 1>&6
6486   if test x"$have_mbstate_t" = xyes; then
6487     cat >> confdefs.h <<\EOF
6488 #define HAVE_MBSTATE_T 1
6489 EOF
6490
6491   fi
6492
6493     for ac_hdr in wchar.h
6494 do
6495 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6497 echo "configure:6498: checking for $ac_hdr" >&5
6498 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6499   echo $ac_n "(cached) $ac_c" 1>&6
6500 else
6501   cat > conftest.$ac_ext <<EOF
6502 #line 6503 "configure"
6503 #include "confdefs.h"
6504 #include <$ac_hdr>
6505 EOF
6506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6507 { (eval echo configure:6508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6509 if test -z "$ac_err"; then
6510   rm -rf conftest*
6511   eval "ac_cv_header_$ac_safe=yes"
6512 else
6513   echo "$ac_err" >&5
6514   echo "configure: failed program was:" >&5
6515   cat conftest.$ac_ext >&5
6516   rm -rf conftest*
6517   eval "ac_cv_header_$ac_safe=no"
6518 fi
6519 rm -f conftest*
6520 fi
6521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6522   echo "$ac_t""yes" 1>&6
6523     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6524   cat >> confdefs.h <<EOF
6525 #define $ac_tr_hdr 1
6526 EOF
6527  ac_has_wchar_h=yes
6528 else
6529   echo "$ac_t""no" 1>&6
6530 ac_has_wchar_h=no
6531 fi
6532 done
6533
6534   for ac_hdr in wctype.h
6535 do
6536 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6537 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6538 echo "configure:6539: checking for $ac_hdr" >&5
6539 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6540   echo $ac_n "(cached) $ac_c" 1>&6
6541 else
6542   cat > conftest.$ac_ext <<EOF
6543 #line 6544 "configure"
6544 #include "confdefs.h"
6545 #include <$ac_hdr>
6546 EOF
6547 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6548 { (eval echo configure:6549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6549 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6550 if test -z "$ac_err"; then
6551   rm -rf conftest*
6552   eval "ac_cv_header_$ac_safe=yes"
6553 else
6554   echo "$ac_err" >&5
6555   echo "configure: failed program was:" >&5
6556   cat conftest.$ac_ext >&5
6557   rm -rf conftest*
6558   eval "ac_cv_header_$ac_safe=no"
6559 fi
6560 rm -f conftest*
6561 fi
6562 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6563   echo "$ac_t""yes" 1>&6
6564     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6565   cat >> confdefs.h <<EOF
6566 #define $ac_tr_hdr 1
6567 EOF
6568  ac_has_wctype_h=yes
6569 else
6570   echo "$ac_t""no" 1>&6
6571 ac_has_wctype_h=no
6572 fi
6573 done
6574
6575   
6576     if test x"$ac_has_wchar_h" = xyes &&
6577      test x"$ac_has_wctype_h" = xyes &&
6578      test x"$enable_c_mbchar" != xno; then
6579       
6580             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6581 echo "configure:6582: checking for WCHAR_MIN and WCHAR_MAX" >&5
6582     cat > conftest.$ac_ext <<EOF
6583 #line 6584 "configure"
6584 #include "confdefs.h"
6585 #include <wchar.h>
6586 int main() {
6587 int i = WCHAR_MIN; int j = WCHAR_MAX;
6588 ; return 0; }
6589 EOF
6590 if { (eval echo configure:6591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6591   rm -rf conftest*
6592   has_wchar_minmax=yes
6593 else
6594   echo "configure: failed program was:" >&5
6595   cat conftest.$ac_ext >&5
6596   rm -rf conftest*
6597   has_wchar_minmax=no
6598 fi
6599 rm -f conftest*
6600     echo "$ac_t""$has_wchar_minmax" 1>&6
6601     
6602             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6603 echo "configure:6604: checking for WEOF" >&5
6604     cat > conftest.$ac_ext <<EOF
6605 #line 6606 "configure"
6606 #include "confdefs.h"
6607
6608       #include <wchar.h>
6609       #include <stddef.h>
6610 int main() {
6611 wint_t i = WEOF;
6612 ; return 0; }
6613 EOF
6614 if { (eval echo configure:6615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6615   rm -rf conftest*
6616   has_weof=yes
6617 else
6618   echo "configure: failed program was:" >&5
6619   cat conftest.$ac_ext >&5
6620   rm -rf conftest*
6621   has_weof=no
6622 fi
6623 rm -f conftest*
6624     echo "$ac_t""$has_weof" 1>&6
6625   
6626         ac_wfuncs=yes
6627     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6628 do
6629 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6630 echo "configure:6631: checking for $ac_func" >&5
6631 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6632   echo $ac_n "(cached) $ac_c" 1>&6
6633 else
6634   cat > conftest.$ac_ext <<EOF
6635 #line 6636 "configure"
6636 #include "confdefs.h"
6637 /* System header to define __stub macros and hopefully few prototypes,
6638     which can conflict with char $ac_func(); below.  */
6639 #include <assert.h>
6640 /* Override any gcc2 internal prototype to avoid an error.  */
6641 /* We use char because int might match the return type of a gcc2
6642     builtin and then its argument prototype would still apply.  */
6643 char $ac_func();
6644
6645 int main() {
6646
6647 /* The GNU C library defines this for functions which it implements
6648     to always fail with ENOSYS.  Some functions are actually named
6649     something starting with __ and the normal name is an alias.  */
6650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6651 choke me
6652 #else
6653 $ac_func();
6654 #endif
6655
6656 ; return 0; }
6657 EOF
6658 if { (eval echo configure:6659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6659   rm -rf conftest*
6660   eval "ac_cv_func_$ac_func=yes"
6661 else
6662   echo "configure: failed program was:" >&5
6663   cat conftest.$ac_ext >&5
6664   rm -rf conftest*
6665   eval "ac_cv_func_$ac_func=no"
6666 fi
6667 rm -f conftest*
6668 fi
6669
6670 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6671   echo "$ac_t""yes" 1>&6
6672     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6673   cat >> confdefs.h <<EOF
6674 #define $ac_tr_func 1
6675 EOF
6676  
6677 else
6678   echo "$ac_t""no" 1>&6
6679 \
6680     ac_wfuncs=no
6681 fi
6682 done
6683
6684   
6685         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6686     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6687     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6688     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6689     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6690     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6691 do
6692 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6693 echo "configure:6694: checking for $ac_func" >&5
6694 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6695   echo $ac_n "(cached) $ac_c" 1>&6
6696 else
6697   cat > conftest.$ac_ext <<EOF
6698 #line 6699 "configure"
6699 #include "confdefs.h"
6700 /* System header to define __stub macros and hopefully few prototypes,
6701     which can conflict with char $ac_func(); below.  */
6702 #include <assert.h>
6703 /* Override any gcc2 internal prototype to avoid an error.  */
6704 /* We use char because int might match the return type of a gcc2
6705     builtin and then its argument prototype would still apply.  */
6706 char $ac_func();
6707
6708 int main() {
6709
6710 /* The GNU C library defines this for functions which it implements
6711     to always fail with ENOSYS.  Some functions are actually named
6712     something starting with __ and the normal name is an alias.  */
6713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6714 choke me
6715 #else
6716 $ac_func();
6717 #endif
6718
6719 ; return 0; }
6720 EOF
6721 if { (eval echo configure:6722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6722   rm -rf conftest*
6723   eval "ac_cv_func_$ac_func=yes"
6724 else
6725   echo "configure: failed program was:" >&5
6726   cat conftest.$ac_ext >&5
6727   rm -rf conftest*
6728   eval "ac_cv_func_$ac_func=no"
6729 fi
6730 rm -f conftest*
6731 fi
6732
6733 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6734   echo "$ac_t""yes" 1>&6
6735     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6736   cat >> confdefs.h <<EOF
6737 #define $ac_tr_func 1
6738 EOF
6739  
6740 else
6741   echo "$ac_t""no" 1>&6
6742 \
6743     ac_wfuncs=no
6744 fi
6745 done
6746
6747
6748     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6749 echo "configure:6750: checking for ISO C99 wchar_t support" >&5
6750     if test x"$has_weof" = xyes &&
6751        test x"$has_wchar_minmax" = xyes &&
6752        test x"$ac_wfuncs" = xyes; then
6753       ac_isoC99_wchar_t=yes
6754     else
6755       ac_isoC99_wchar_t=no
6756     fi
6757     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6758   
6759             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6760 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6761 echo "configure:6762: checking for iconv.h" >&5
6762 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6763   echo $ac_n "(cached) $ac_c" 1>&6
6764 else
6765   cat > conftest.$ac_ext <<EOF
6766 #line 6767 "configure"
6767 #include "confdefs.h"
6768 #include <iconv.h>
6769 EOF
6770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6771 { (eval echo configure:6772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6772 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6773 if test -z "$ac_err"; then
6774   rm -rf conftest*
6775   eval "ac_cv_header_$ac_safe=yes"
6776 else
6777   echo "$ac_err" >&5
6778   echo "configure: failed program was:" >&5
6779   cat conftest.$ac_ext >&5
6780   rm -rf conftest*
6781   eval "ac_cv_header_$ac_safe=no"
6782 fi
6783 rm -f conftest*
6784 fi
6785 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6786   echo "$ac_t""yes" 1>&6
6787   ac_has_iconv_h=yes
6788 else
6789   echo "$ac_t""no" 1>&6
6790 ac_has_iconv_h=no
6791 fi
6792
6793     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6794 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6795 echo "configure:6796: checking for langinfo.h" >&5
6796 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6797   echo $ac_n "(cached) $ac_c" 1>&6
6798 else
6799   cat > conftest.$ac_ext <<EOF
6800 #line 6801 "configure"
6801 #include "confdefs.h"
6802 #include <langinfo.h>
6803 EOF
6804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6805 { (eval echo configure:6806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6807 if test -z "$ac_err"; then
6808   rm -rf conftest*
6809   eval "ac_cv_header_$ac_safe=yes"
6810 else
6811   echo "$ac_err" >&5
6812   echo "configure: failed program was:" >&5
6813   cat conftest.$ac_ext >&5
6814   rm -rf conftest*
6815   eval "ac_cv_header_$ac_safe=no"
6816 fi
6817 rm -f conftest*
6818 fi
6819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6820   echo "$ac_t""yes" 1>&6
6821   ac_has_langinfo_h=yes
6822 else
6823   echo "$ac_t""no" 1>&6
6824 ac_has_langinfo_h=no
6825 fi
6826
6827
6828         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6829 echo "configure:6830: checking for iconv in -liconv" >&5
6830 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6832   echo $ac_n "(cached) $ac_c" 1>&6
6833 else
6834   ac_save_LIBS="$LIBS"
6835 LIBS="-liconv  $LIBS"
6836 cat > conftest.$ac_ext <<EOF
6837 #line 6838 "configure"
6838 #include "confdefs.h"
6839 /* Override any gcc2 internal prototype to avoid an error.  */
6840 /* We use char because int might match the return type of a gcc2
6841     builtin and then its argument prototype would still apply.  */
6842 char iconv();
6843
6844 int main() {
6845 iconv()
6846 ; return 0; }
6847 EOF
6848 if { (eval echo configure:6849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6849   rm -rf conftest*
6850   eval "ac_cv_lib_$ac_lib_var=yes"
6851 else
6852   echo "configure: failed program was:" >&5
6853   cat conftest.$ac_ext >&5
6854   rm -rf conftest*
6855   eval "ac_cv_lib_$ac_lib_var=no"
6856 fi
6857 rm -f conftest*
6858 LIBS="$ac_save_LIBS"
6859
6860 fi
6861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6862   echo "$ac_t""yes" 1>&6
6863   libiconv="-liconv"
6864 else
6865   echo "$ac_t""no" 1>&6
6866 fi
6867
6868     ac_save_LIBS="$LIBS"
6869     LIBS="$LIBS $libiconv"
6870
6871     for ac_func in iconv_open iconv_close iconv nl_langinfo
6872 do
6873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6874 echo "configure:6875: checking for $ac_func" >&5
6875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6876   echo $ac_n "(cached) $ac_c" 1>&6
6877 else
6878   cat > conftest.$ac_ext <<EOF
6879 #line 6880 "configure"
6880 #include "confdefs.h"
6881 /* System header to define __stub macros and hopefully few prototypes,
6882     which can conflict with char $ac_func(); below.  */
6883 #include <assert.h>
6884 /* Override any gcc2 internal prototype to avoid an error.  */
6885 /* We use char because int might match the return type of a gcc2
6886     builtin and then its argument prototype would still apply.  */
6887 char $ac_func();
6888
6889 int main() {
6890
6891 /* The GNU C library defines this for functions which it implements
6892     to always fail with ENOSYS.  Some functions are actually named
6893     something starting with __ and the normal name is an alias.  */
6894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6895 choke me
6896 #else
6897 $ac_func();
6898 #endif
6899
6900 ; return 0; }
6901 EOF
6902 if { (eval echo configure:6903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6903   rm -rf conftest*
6904   eval "ac_cv_func_$ac_func=yes"
6905 else
6906   echo "configure: failed program was:" >&5
6907   cat conftest.$ac_ext >&5
6908   rm -rf conftest*
6909   eval "ac_cv_func_$ac_func=no"
6910 fi
6911 rm -f conftest*
6912 fi
6913
6914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6915   echo "$ac_t""yes" 1>&6
6916     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6917   cat >> confdefs.h <<EOF
6918 #define $ac_tr_func 1
6919 EOF
6920  \
6921     ac_XPG2funcs=yes
6922 else
6923   echo "$ac_t""no" 1>&6
6924 ac_XPG2funcs=no
6925 fi
6926 done
6927
6928   
6929     LIBS="$ac_save_LIBS"
6930
6931     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6932 echo "configure:6933: checking for XPG2 wchar_t support" >&5
6933     if test x"$ac_has_iconv_h" = xyes &&
6934        test x"$ac_has_langinfo_h" = xyes &&
6935        test x"$ac_XPG2funcs" = xyes; then
6936       ac_XPG2_wchar_t=yes
6937     else
6938       ac_XPG2_wchar_t=no
6939     fi
6940     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6941   
6942             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6943 echo "configure:6944: checking for enabled wchar_t specializations" >&5
6944     if test x"$ac_isoC99_wchar_t" = xyes &&
6945        test x"$ac_XPG2_wchar_t" = xyes; then
6946       cat >> confdefs.h <<\EOF
6947 #define _GLIBCPP_USE_WCHAR_T 1
6948 EOF
6949
6950       echo "$ac_t"""yes"" 1>&6
6951     else
6952       echo "$ac_t"""no"" 1>&6
6953     fi
6954   else
6955         echo "configure: warning: wchar_t support disabled." 1>&2
6956   fi
6957
6958       os_include_dir="config/os/bsd/netbsd"
6959       cat >> confdefs.h <<\EOF
6960 #define HAVE_COPYSIGN 1
6961 EOF
6962
6963       cat >> confdefs.h <<\EOF
6964 #define HAVE_COPYSIGNF 1
6965 EOF
6966
6967       cat >> confdefs.h <<\EOF
6968 #define HAVE_FINITEF 1
6969 EOF
6970
6971       cat >> confdefs.h <<\EOF
6972 #define HAVE_FREXPF 1
6973 EOF
6974
6975       cat >> confdefs.h <<\EOF
6976 #define HAVE_HYPOTF 1
6977 EOF
6978
6979       ;;
6980     *-mingw32*)
6981       for ac_hdr in sys/types.h locale.h float.h
6982 do
6983 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6984 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6985 echo "configure:6986: checking for $ac_hdr" >&5
6986 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6987   echo $ac_n "(cached) $ac_c" 1>&6
6988 else
6989   cat > conftest.$ac_ext <<EOF
6990 #line 6991 "configure"
6991 #include "confdefs.h"
6992 #include <$ac_hdr>
6993 EOF
6994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6995 { (eval echo configure:6996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6997 if test -z "$ac_err"; then
6998   rm -rf conftest*
6999   eval "ac_cv_header_$ac_safe=yes"
7000 else
7001   echo "$ac_err" >&5
7002   echo "configure: failed program was:" >&5
7003   cat conftest.$ac_ext >&5
7004   rm -rf conftest*
7005   eval "ac_cv_header_$ac_safe=no"
7006 fi
7007 rm -f conftest*
7008 fi
7009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7010   echo "$ac_t""yes" 1>&6
7011     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7012   cat >> confdefs.h <<EOF
7013 #define $ac_tr_hdr 1
7014 EOF
7015  
7016 else
7017   echo "$ac_t""no" 1>&6
7018 fi
7019 done
7020
7021       
7022   # If we're not using GNU ld, then there's no point in even trying these
7023   # tests.  Check for that first.  We should have already tested for gld
7024   # by now (in libtool), but require it now just to be safe...
7025   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7026   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7027   
7028
7029   # The name set by libtool depends on the version of libtool.  Shame on us
7030   # for depending on an impl detail, but c'est la vie.  Older versions used
7031   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7032   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7033   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7034   # set (hence we're using an older libtool), then set it.
7035   if test x${with_gnu_ld+set} != xset; then
7036     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7037       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7038       with_gnu_ld=no
7039     else
7040       with_gnu_ld=$ac_cv_prog_gnu_ld
7041     fi
7042   fi
7043
7044   # Start by getting the version number.  I think the libtool test already
7045   # does some of this, but throws away the result.
7046   
7047   ldver=`$LD --version 2>/dev/null | head -1 | \
7048          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7049   
7050   glibcpp_gnu_ld_version=`echo $ldver | \
7051          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7052
7053   # Set --gc-sections.
7054   if test "$with_gnu_ld" = "notbroken"; then
7055     # GNU ld it is!  Joy and bunny rabbits!
7056
7057     # All these tests are for C++; save the language and the compiler flags.
7058     # Need to do this so that g++ won't try to link in libstdc++
7059     ac_test_CFLAGS="${CFLAGS+set}"
7060     ac_save_CFLAGS="$CFLAGS"
7061     CFLAGS='-x c++  -Wl,--gc-sections'
7062
7063     # Check for -Wl,--gc-sections
7064     # XXX This test is broken at the moment, as symbols required for
7065     # linking are now in libsupc++ (not built yet.....). In addition, 
7066     # this test has cored on solaris in the past. In addition,
7067     # --gc-sections doesn't really work at the moment (keeps on discarding
7068     # used sections, first .eh_frame and now some of the glibc sections for
7069     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7070     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7071 echo "configure:7072: checking for ld that supports -Wl,--gc-sections" >&5
7072     if test "$cross_compiling" = yes; then
7073   ac_sectionLDflags=yes
7074 else
7075   cat > conftest.$ac_ext <<EOF
7076 #line 7077 "configure"
7077 #include "confdefs.h"
7078
7079      int main(void) 
7080      {
7081        try { throw 1; }
7082        catch (...) { };
7083        return 0;
7084      }
7085     
7086 EOF
7087 if { (eval echo configure:7088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7088 then
7089   ac_sectionLDflags=yes
7090 else
7091   echo "configure: failed program was:" >&5
7092   cat conftest.$ac_ext >&5
7093   rm -fr conftest*
7094   ac_sectionLDflags=no
7095 fi
7096 rm -fr conftest*
7097 fi
7098
7099     if test "$ac_test_CFLAGS" = set; then
7100       CFLAGS="$ac_save_CFLAGS"
7101     else
7102       # this is the suspicious part
7103       CFLAGS=''
7104     fi
7105     if test "$ac_sectionLDflags" = "yes"; then
7106       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7107     fi
7108     echo "$ac_t""$ac_sectionLDflags" 1>&6
7109   fi
7110
7111   # Set linker optimization flags.
7112   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7113     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7114   fi
7115
7116   
7117   
7118
7119       
7120     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7121 echo "configure:7122: checking for main in -lm" >&5
7122 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7123 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7124   echo $ac_n "(cached) $ac_c" 1>&6
7125 else
7126   ac_save_LIBS="$LIBS"
7127 LIBS="-lm  $LIBS"
7128 cat > conftest.$ac_ext <<EOF
7129 #line 7130 "configure"
7130 #include "confdefs.h"
7131
7132 int main() {
7133 main()
7134 ; return 0; }
7135 EOF
7136 if { (eval echo configure:7137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7137   rm -rf conftest*
7138   eval "ac_cv_lib_$ac_lib_var=yes"
7139 else
7140   echo "configure: failed program was:" >&5
7141   cat conftest.$ac_ext >&5
7142   rm -rf conftest*
7143   eval "ac_cv_lib_$ac_lib_var=no"
7144 fi
7145 rm -f conftest*
7146 LIBS="$ac_save_LIBS"
7147
7148 fi
7149 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7150   echo "$ac_t""yes" 1>&6
7151     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7152     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7153   cat >> confdefs.h <<EOF
7154 #define $ac_tr_lib 1
7155 EOF
7156
7157   LIBS="-lm $LIBS"
7158
7159 else
7160   echo "$ac_t""no" 1>&6
7161 fi
7162
7163   for ac_func in nan copysignf
7164 do
7165 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7166 echo "configure:7167: checking for $ac_func" >&5
7167 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7168   echo $ac_n "(cached) $ac_c" 1>&6
7169 else
7170   cat > conftest.$ac_ext <<EOF
7171 #line 7172 "configure"
7172 #include "confdefs.h"
7173 /* System header to define __stub macros and hopefully few prototypes,
7174     which can conflict with char $ac_func(); below.  */
7175 #include <assert.h>
7176 /* Override any gcc2 internal prototype to avoid an error.  */
7177 /* We use char because int might match the return type of a gcc2
7178     builtin and then its argument prototype would still apply.  */
7179 char $ac_func();
7180
7181 int main() {
7182
7183 /* The GNU C library defines this for functions which it implements
7184     to always fail with ENOSYS.  Some functions are actually named
7185     something starting with __ and the normal name is an alias.  */
7186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7187 choke me
7188 #else
7189 $ac_func();
7190 #endif
7191
7192 ; return 0; }
7193 EOF
7194 if { (eval echo configure:7195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7195   rm -rf conftest*
7196   eval "ac_cv_func_$ac_func=yes"
7197 else
7198   echo "configure: failed program was:" >&5
7199   cat conftest.$ac_ext >&5
7200   rm -rf conftest*
7201   eval "ac_cv_func_$ac_func=no"
7202 fi
7203 rm -f conftest*
7204 fi
7205
7206 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7207   echo "$ac_t""yes" 1>&6
7208     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7209   cat >> confdefs.h <<EOF
7210 #define $ac_tr_func 1
7211 EOF
7212  
7213 else
7214   echo "$ac_t""no" 1>&6
7215 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7216 fi
7217 done
7218
7219
7220     for ac_func in __signbit
7221 do
7222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7223 echo "configure:7224: checking for $ac_func" >&5
7224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7225   echo $ac_n "(cached) $ac_c" 1>&6
7226 else
7227   cat > conftest.$ac_ext <<EOF
7228 #line 7229 "configure"
7229 #include "confdefs.h"
7230 /* System header to define __stub macros and hopefully few prototypes,
7231     which can conflict with char $ac_func(); below.  */
7232 #include <assert.h>
7233 /* Override any gcc2 internal prototype to avoid an error.  */
7234 /* We use char because int might match the return type of a gcc2
7235     builtin and then its argument prototype would still apply.  */
7236 char $ac_func();
7237
7238 int main() {
7239
7240 /* The GNU C library defines this for functions which it implements
7241     to always fail with ENOSYS.  Some functions are actually named
7242     something starting with __ and the normal name is an alias.  */
7243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7244 choke me
7245 #else
7246 $ac_func();
7247 #endif
7248
7249 ; return 0; }
7250 EOF
7251 if { (eval echo configure:7252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7252   rm -rf conftest*
7253   eval "ac_cv_func_$ac_func=yes"
7254 else
7255   echo "configure: failed program was:" >&5
7256   cat conftest.$ac_ext >&5
7257   rm -rf conftest*
7258   eval "ac_cv_func_$ac_func=no"
7259 fi
7260 rm -f conftest*
7261 fi
7262
7263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7264   echo "$ac_t""yes" 1>&6
7265     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7266   cat >> confdefs.h <<EOF
7267 #define $ac_tr_func 1
7268 EOF
7269  
7270 else
7271   echo "$ac_t""no" 1>&6
7272 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7273 fi
7274 done
7275
7276   for ac_func in __signbitf
7277 do
7278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7279 echo "configure:7280: checking for $ac_func" >&5
7280 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7281   echo $ac_n "(cached) $ac_c" 1>&6
7282 else
7283   cat > conftest.$ac_ext <<EOF
7284 #line 7285 "configure"
7285 #include "confdefs.h"
7286 /* System header to define __stub macros and hopefully few prototypes,
7287     which can conflict with char $ac_func(); below.  */
7288 #include <assert.h>
7289 /* Override any gcc2 internal prototype to avoid an error.  */
7290 /* We use char because int might match the return type of a gcc2
7291     builtin and then its argument prototype would still apply.  */
7292 char $ac_func();
7293
7294 int main() {
7295
7296 /* The GNU C library defines this for functions which it implements
7297     to always fail with ENOSYS.  Some functions are actually named
7298     something starting with __ and the normal name is an alias.  */
7299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7300 choke me
7301 #else
7302 $ac_func();
7303 #endif
7304
7305 ; return 0; }
7306 EOF
7307 if { (eval echo configure:7308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7308   rm -rf conftest*
7309   eval "ac_cv_func_$ac_func=yes"
7310 else
7311   echo "configure: failed program was:" >&5
7312   cat conftest.$ac_ext >&5
7313   rm -rf conftest*
7314   eval "ac_cv_func_$ac_func=no"
7315 fi
7316 rm -f conftest*
7317 fi
7318
7319 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7320   echo "$ac_t""yes" 1>&6
7321     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7322   cat >> confdefs.h <<EOF
7323 #define $ac_tr_func 1
7324 EOF
7325  
7326 else
7327   echo "$ac_t""no" 1>&6
7328 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7329 fi
7330 done
7331
7332
7333           if test x$ac_cv_func_copysignl = x"yes"; then
7334     for ac_func in __signbitl
7335 do
7336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7337 echo "configure:7338: checking for $ac_func" >&5
7338 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7339   echo $ac_n "(cached) $ac_c" 1>&6
7340 else
7341   cat > conftest.$ac_ext <<EOF
7342 #line 7343 "configure"
7343 #include "confdefs.h"
7344 /* System header to define __stub macros and hopefully few prototypes,
7345     which can conflict with char $ac_func(); below.  */
7346 #include <assert.h>
7347 /* Override any gcc2 internal prototype to avoid an error.  */
7348 /* We use char because int might match the return type of a gcc2
7349     builtin and then its argument prototype would still apply.  */
7350 char $ac_func();
7351
7352 int main() {
7353
7354 /* The GNU C library defines this for functions which it implements
7355     to always fail with ENOSYS.  Some functions are actually named
7356     something starting with __ and the normal name is an alias.  */
7357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7358 choke me
7359 #else
7360 $ac_func();
7361 #endif
7362
7363 ; return 0; }
7364 EOF
7365 if { (eval echo configure:7366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7366   rm -rf conftest*
7367   eval "ac_cv_func_$ac_func=yes"
7368 else
7369   echo "configure: failed program was:" >&5
7370   cat conftest.$ac_ext >&5
7371   rm -rf conftest*
7372   eval "ac_cv_func_$ac_func=no"
7373 fi
7374 rm -f conftest*
7375 fi
7376
7377 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7378   echo "$ac_t""yes" 1>&6
7379     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7380   cat >> confdefs.h <<EOF
7381 #define $ac_tr_func 1
7382 EOF
7383  
7384 else
7385   echo "$ac_t""no" 1>&6
7386 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7387 fi
7388 done
7389
7390   fi
7391
7392   
7393
7394       
7395
7396       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7397 echo "configure:7398: checking for mbstate_t" >&5
7398   cat > conftest.$ac_ext <<EOF
7399 #line 7400 "configure"
7400 #include "confdefs.h"
7401 #include <wchar.h>
7402 int main() {
7403 mbstate_t teststate;
7404 ; return 0; }
7405 EOF
7406 if { (eval echo configure:7407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7407   rm -rf conftest*
7408   have_mbstate_t=yes
7409 else
7410   echo "configure: failed program was:" >&5
7411   cat conftest.$ac_ext >&5
7412   rm -rf conftest*
7413   have_mbstate_t=no
7414 fi
7415 rm -f conftest*
7416   echo "$ac_t""$have_mbstate_t" 1>&6
7417   if test x"$have_mbstate_t" = xyes; then
7418     cat >> confdefs.h <<\EOF
7419 #define HAVE_MBSTATE_T 1
7420 EOF
7421
7422   fi
7423
7424     for ac_hdr in wchar.h
7425 do
7426 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7427 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7428 echo "configure:7429: checking for $ac_hdr" >&5
7429 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7430   echo $ac_n "(cached) $ac_c" 1>&6
7431 else
7432   cat > conftest.$ac_ext <<EOF
7433 #line 7434 "configure"
7434 #include "confdefs.h"
7435 #include <$ac_hdr>
7436 EOF
7437 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7438 { (eval echo configure:7439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7439 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7440 if test -z "$ac_err"; then
7441   rm -rf conftest*
7442   eval "ac_cv_header_$ac_safe=yes"
7443 else
7444   echo "$ac_err" >&5
7445   echo "configure: failed program was:" >&5
7446   cat conftest.$ac_ext >&5
7447   rm -rf conftest*
7448   eval "ac_cv_header_$ac_safe=no"
7449 fi
7450 rm -f conftest*
7451 fi
7452 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7453   echo "$ac_t""yes" 1>&6
7454     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7455   cat >> confdefs.h <<EOF
7456 #define $ac_tr_hdr 1
7457 EOF
7458  ac_has_wchar_h=yes
7459 else
7460   echo "$ac_t""no" 1>&6
7461 ac_has_wchar_h=no
7462 fi
7463 done
7464
7465   for ac_hdr in wctype.h
7466 do
7467 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7468 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7469 echo "configure:7470: checking for $ac_hdr" >&5
7470 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7471   echo $ac_n "(cached) $ac_c" 1>&6
7472 else
7473   cat > conftest.$ac_ext <<EOF
7474 #line 7475 "configure"
7475 #include "confdefs.h"
7476 #include <$ac_hdr>
7477 EOF
7478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7479 { (eval echo configure:7480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7480 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7481 if test -z "$ac_err"; then
7482   rm -rf conftest*
7483   eval "ac_cv_header_$ac_safe=yes"
7484 else
7485   echo "$ac_err" >&5
7486   echo "configure: failed program was:" >&5
7487   cat conftest.$ac_ext >&5
7488   rm -rf conftest*
7489   eval "ac_cv_header_$ac_safe=no"
7490 fi
7491 rm -f conftest*
7492 fi
7493 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7494   echo "$ac_t""yes" 1>&6
7495     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7496   cat >> confdefs.h <<EOF
7497 #define $ac_tr_hdr 1
7498 EOF
7499  ac_has_wctype_h=yes
7500 else
7501   echo "$ac_t""no" 1>&6
7502 ac_has_wctype_h=no
7503 fi
7504 done
7505
7506   
7507     if test x"$ac_has_wchar_h" = xyes &&
7508      test x"$ac_has_wctype_h" = xyes &&
7509      test x"$enable_c_mbchar" != xno; then
7510       
7511             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7512 echo "configure:7513: checking for WCHAR_MIN and WCHAR_MAX" >&5
7513     cat > conftest.$ac_ext <<EOF
7514 #line 7515 "configure"
7515 #include "confdefs.h"
7516 #include <wchar.h>
7517 int main() {
7518 int i = WCHAR_MIN; int j = WCHAR_MAX;
7519 ; return 0; }
7520 EOF
7521 if { (eval echo configure:7522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7522   rm -rf conftest*
7523   has_wchar_minmax=yes
7524 else
7525   echo "configure: failed program was:" >&5
7526   cat conftest.$ac_ext >&5
7527   rm -rf conftest*
7528   has_wchar_minmax=no
7529 fi
7530 rm -f conftest*
7531     echo "$ac_t""$has_wchar_minmax" 1>&6
7532     
7533             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7534 echo "configure:7535: checking for WEOF" >&5
7535     cat > conftest.$ac_ext <<EOF
7536 #line 7537 "configure"
7537 #include "confdefs.h"
7538
7539       #include <wchar.h>
7540       #include <stddef.h>
7541 int main() {
7542 wint_t i = WEOF;
7543 ; return 0; }
7544 EOF
7545 if { (eval echo configure:7546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7546   rm -rf conftest*
7547   has_weof=yes
7548 else
7549   echo "configure: failed program was:" >&5
7550   cat conftest.$ac_ext >&5
7551   rm -rf conftest*
7552   has_weof=no
7553 fi
7554 rm -f conftest*
7555     echo "$ac_t""$has_weof" 1>&6
7556   
7557         ac_wfuncs=yes
7558     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7559 do
7560 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7561 echo "configure:7562: checking for $ac_func" >&5
7562 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7563   echo $ac_n "(cached) $ac_c" 1>&6
7564 else
7565   cat > conftest.$ac_ext <<EOF
7566 #line 7567 "configure"
7567 #include "confdefs.h"
7568 /* System header to define __stub macros and hopefully few prototypes,
7569     which can conflict with char $ac_func(); below.  */
7570 #include <assert.h>
7571 /* Override any gcc2 internal prototype to avoid an error.  */
7572 /* We use char because int might match the return type of a gcc2
7573     builtin and then its argument prototype would still apply.  */
7574 char $ac_func();
7575
7576 int main() {
7577
7578 /* The GNU C library defines this for functions which it implements
7579     to always fail with ENOSYS.  Some functions are actually named
7580     something starting with __ and the normal name is an alias.  */
7581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7582 choke me
7583 #else
7584 $ac_func();
7585 #endif
7586
7587 ; return 0; }
7588 EOF
7589 if { (eval echo configure:7590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7590   rm -rf conftest*
7591   eval "ac_cv_func_$ac_func=yes"
7592 else
7593   echo "configure: failed program was:" >&5
7594   cat conftest.$ac_ext >&5
7595   rm -rf conftest*
7596   eval "ac_cv_func_$ac_func=no"
7597 fi
7598 rm -f conftest*
7599 fi
7600
7601 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7602   echo "$ac_t""yes" 1>&6
7603     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7604   cat >> confdefs.h <<EOF
7605 #define $ac_tr_func 1
7606 EOF
7607  
7608 else
7609   echo "$ac_t""no" 1>&6
7610 \
7611     ac_wfuncs=no
7612 fi
7613 done
7614
7615   
7616         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7617     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7618     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7619     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7620     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7621     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7622 do
7623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7624 echo "configure:7625: checking for $ac_func" >&5
7625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7626   echo $ac_n "(cached) $ac_c" 1>&6
7627 else
7628   cat > conftest.$ac_ext <<EOF
7629 #line 7630 "configure"
7630 #include "confdefs.h"
7631 /* System header to define __stub macros and hopefully few prototypes,
7632     which can conflict with char $ac_func(); below.  */
7633 #include <assert.h>
7634 /* Override any gcc2 internal prototype to avoid an error.  */
7635 /* We use char because int might match the return type of a gcc2
7636     builtin and then its argument prototype would still apply.  */
7637 char $ac_func();
7638
7639 int main() {
7640
7641 /* The GNU C library defines this for functions which it implements
7642     to always fail with ENOSYS.  Some functions are actually named
7643     something starting with __ and the normal name is an alias.  */
7644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7645 choke me
7646 #else
7647 $ac_func();
7648 #endif
7649
7650 ; return 0; }
7651 EOF
7652 if { (eval echo configure:7653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7653   rm -rf conftest*
7654   eval "ac_cv_func_$ac_func=yes"
7655 else
7656   echo "configure: failed program was:" >&5
7657   cat conftest.$ac_ext >&5
7658   rm -rf conftest*
7659   eval "ac_cv_func_$ac_func=no"
7660 fi
7661 rm -f conftest*
7662 fi
7663
7664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7665   echo "$ac_t""yes" 1>&6
7666     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7667   cat >> confdefs.h <<EOF
7668 #define $ac_tr_func 1
7669 EOF
7670  
7671 else
7672   echo "$ac_t""no" 1>&6
7673 \
7674     ac_wfuncs=no
7675 fi
7676 done
7677
7678
7679     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7680 echo "configure:7681: checking for ISO C99 wchar_t support" >&5
7681     if test x"$has_weof" = xyes &&
7682        test x"$has_wchar_minmax" = xyes &&
7683        test x"$ac_wfuncs" = xyes; then
7684       ac_isoC99_wchar_t=yes
7685     else
7686       ac_isoC99_wchar_t=no
7687     fi
7688     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7689   
7690             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7691 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7692 echo "configure:7693: checking for iconv.h" >&5
7693 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7694   echo $ac_n "(cached) $ac_c" 1>&6
7695 else
7696   cat > conftest.$ac_ext <<EOF
7697 #line 7698 "configure"
7698 #include "confdefs.h"
7699 #include <iconv.h>
7700 EOF
7701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7702 { (eval echo configure:7703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7703 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7704 if test -z "$ac_err"; then
7705   rm -rf conftest*
7706   eval "ac_cv_header_$ac_safe=yes"
7707 else
7708   echo "$ac_err" >&5
7709   echo "configure: failed program was:" >&5
7710   cat conftest.$ac_ext >&5
7711   rm -rf conftest*
7712   eval "ac_cv_header_$ac_safe=no"
7713 fi
7714 rm -f conftest*
7715 fi
7716 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7717   echo "$ac_t""yes" 1>&6
7718   ac_has_iconv_h=yes
7719 else
7720   echo "$ac_t""no" 1>&6
7721 ac_has_iconv_h=no
7722 fi
7723
7724     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7725 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7726 echo "configure:7727: checking for langinfo.h" >&5
7727 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7728   echo $ac_n "(cached) $ac_c" 1>&6
7729 else
7730   cat > conftest.$ac_ext <<EOF
7731 #line 7732 "configure"
7732 #include "confdefs.h"
7733 #include <langinfo.h>
7734 EOF
7735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7736 { (eval echo configure:7737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7738 if test -z "$ac_err"; then
7739   rm -rf conftest*
7740   eval "ac_cv_header_$ac_safe=yes"
7741 else
7742   echo "$ac_err" >&5
7743   echo "configure: failed program was:" >&5
7744   cat conftest.$ac_ext >&5
7745   rm -rf conftest*
7746   eval "ac_cv_header_$ac_safe=no"
7747 fi
7748 rm -f conftest*
7749 fi
7750 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7751   echo "$ac_t""yes" 1>&6
7752   ac_has_langinfo_h=yes
7753 else
7754   echo "$ac_t""no" 1>&6
7755 ac_has_langinfo_h=no
7756 fi
7757
7758
7759         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7760 echo "configure:7761: checking for iconv in -liconv" >&5
7761 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7762 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7763   echo $ac_n "(cached) $ac_c" 1>&6
7764 else
7765   ac_save_LIBS="$LIBS"
7766 LIBS="-liconv  $LIBS"
7767 cat > conftest.$ac_ext <<EOF
7768 #line 7769 "configure"
7769 #include "confdefs.h"
7770 /* Override any gcc2 internal prototype to avoid an error.  */
7771 /* We use char because int might match the return type of a gcc2
7772     builtin and then its argument prototype would still apply.  */
7773 char iconv();
7774
7775 int main() {
7776 iconv()
7777 ; return 0; }
7778 EOF
7779 if { (eval echo configure:7780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7780   rm -rf conftest*
7781   eval "ac_cv_lib_$ac_lib_var=yes"
7782 else
7783   echo "configure: failed program was:" >&5
7784   cat conftest.$ac_ext >&5
7785   rm -rf conftest*
7786   eval "ac_cv_lib_$ac_lib_var=no"
7787 fi
7788 rm -f conftest*
7789 LIBS="$ac_save_LIBS"
7790
7791 fi
7792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7793   echo "$ac_t""yes" 1>&6
7794   libiconv="-liconv"
7795 else
7796   echo "$ac_t""no" 1>&6
7797 fi
7798
7799     ac_save_LIBS="$LIBS"
7800     LIBS="$LIBS $libiconv"
7801
7802     for ac_func in iconv_open iconv_close iconv nl_langinfo
7803 do
7804 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7805 echo "configure:7806: checking for $ac_func" >&5
7806 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7807   echo $ac_n "(cached) $ac_c" 1>&6
7808 else
7809   cat > conftest.$ac_ext <<EOF
7810 #line 7811 "configure"
7811 #include "confdefs.h"
7812 /* System header to define __stub macros and hopefully few prototypes,
7813     which can conflict with char $ac_func(); below.  */
7814 #include <assert.h>
7815 /* Override any gcc2 internal prototype to avoid an error.  */
7816 /* We use char because int might match the return type of a gcc2
7817     builtin and then its argument prototype would still apply.  */
7818 char $ac_func();
7819
7820 int main() {
7821
7822 /* The GNU C library defines this for functions which it implements
7823     to always fail with ENOSYS.  Some functions are actually named
7824     something starting with __ and the normal name is an alias.  */
7825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7826 choke me
7827 #else
7828 $ac_func();
7829 #endif
7830
7831 ; return 0; }
7832 EOF
7833 if { (eval echo configure:7834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7834   rm -rf conftest*
7835   eval "ac_cv_func_$ac_func=yes"
7836 else
7837   echo "configure: failed program was:" >&5
7838   cat conftest.$ac_ext >&5
7839   rm -rf conftest*
7840   eval "ac_cv_func_$ac_func=no"
7841 fi
7842 rm -f conftest*
7843 fi
7844
7845 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7846   echo "$ac_t""yes" 1>&6
7847     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7848   cat >> confdefs.h <<EOF
7849 #define $ac_tr_func 1
7850 EOF
7851  \
7852     ac_XPG2funcs=yes
7853 else
7854   echo "$ac_t""no" 1>&6
7855 ac_XPG2funcs=no
7856 fi
7857 done
7858
7859   
7860     LIBS="$ac_save_LIBS"
7861
7862     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7863 echo "configure:7864: checking for XPG2 wchar_t support" >&5
7864     if test x"$ac_has_iconv_h" = xyes &&
7865        test x"$ac_has_langinfo_h" = xyes &&
7866        test x"$ac_XPG2funcs" = xyes; then
7867       ac_XPG2_wchar_t=yes
7868     else
7869       ac_XPG2_wchar_t=no
7870     fi
7871     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7872   
7873             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7874 echo "configure:7875: checking for enabled wchar_t specializations" >&5
7875     if test x"$ac_isoC99_wchar_t" = xyes &&
7876        test x"$ac_XPG2_wchar_t" = xyes; then
7877       cat >> confdefs.h <<\EOF
7878 #define _GLIBCPP_USE_WCHAR_T 1
7879 EOF
7880
7881       echo "$ac_t"""yes"" 1>&6
7882     else
7883       echo "$ac_t"""no"" 1>&6
7884     fi
7885   else
7886         echo "configure: warning: wchar_t support disabled." 1>&2
7887   fi
7888
7889       os_include_dir="config/os/mingw32"
7890       ;;
7891     *-windiss*)
7892       os_include_dir="config/os/windiss"
7893       ;;
7894     *)
7895       os_include_dir="config/os/newlib"
7896       cat >> confdefs.h <<\EOF
7897 #define HAVE_HYPOT 1
7898 EOF
7899
7900       ;;
7901   esac
7902
7903   case "$target_alias" in
7904     *-mingw32*)
7905       ;;
7906     *-windiss*)
7907       cat >> confdefs.h <<\EOF
7908 #define HAVE_ACOSF 1
7909 EOF
7910
7911       cat >> confdefs.h <<\EOF
7912 #define HAVE_ASINF 1
7913 EOF
7914
7915       cat >> confdefs.h <<\EOF
7916 #define HAVE_ATAN2F 1
7917 EOF
7918
7919       cat >> confdefs.h <<\EOF
7920 #define HAVE_ATANF 1
7921 EOF
7922
7923       cat >> confdefs.h <<\EOF
7924 #define HAVE_CEILF 1
7925 EOF
7926
7927       cat >> confdefs.h <<\EOF
7928 #define HAVE_COPYSIGN 1
7929 EOF
7930
7931       cat >> confdefs.h <<\EOF
7932 #define HAVE_COPYSIGNF 1
7933 EOF
7934
7935       cat >> confdefs.h <<\EOF
7936 #define HAVE_COSF 1
7937 EOF
7938
7939       cat >> confdefs.h <<\EOF
7940 #define HAVE_COSHF 1
7941 EOF
7942
7943       cat >> confdefs.h <<\EOF
7944 #define HAVE_EXPF 1
7945 EOF
7946
7947       cat >> confdefs.h <<\EOF
7948 #define HAVE_FABSF 1
7949 EOF
7950
7951       cat >> confdefs.h <<\EOF
7952 #define HAVE_FLOORF 1
7953 EOF
7954
7955       cat >> confdefs.h <<\EOF
7956 #define HAVE_FMODF 1
7957 EOF
7958
7959       cat >> confdefs.h <<\EOF
7960 #define HAVE_FREXPF 1
7961 EOF
7962
7963       cat >> confdefs.h <<\EOF
7964 #define HAVE_LDEXPF 1
7965 EOF
7966
7967       cat >> confdefs.h <<\EOF
7968 #define HAVE_LOG10F 1
7969 EOF
7970
7971       cat >> confdefs.h <<\EOF
7972 #define HAVE_LOGF 1
7973 EOF
7974
7975       cat >> confdefs.h <<\EOF
7976 #define HAVE_MODFF 1
7977 EOF
7978
7979       cat >> confdefs.h <<\EOF
7980 #define HAVE_POWF 1
7981 EOF
7982
7983       cat >> confdefs.h <<\EOF
7984 #define HAVE_SINF 1
7985 EOF
7986
7987       cat >> confdefs.h <<\EOF
7988 #define HAVE_SINHF 1
7989 EOF
7990
7991       cat >> confdefs.h <<\EOF
7992 #define HAVE_SQRTF 1
7993 EOF
7994
7995       cat >> confdefs.h <<\EOF
7996 #define HAVE_TANF 1
7997 EOF
7998
7999       cat >> confdefs.h <<\EOF
8000 #define HAVE_TANHF 1
8001 EOF
8002
8003       ;;
8004     *)
8005       # GLIBCPP_CHECK_STDLIB_SUPPORT
8006       cat >> confdefs.h <<\EOF
8007 #define HAVE_STRTOF 1
8008 EOF
8009         
8010       cat >> confdefs.h <<\EOF
8011 #define HAVE_STRTOLD 1
8012 EOF
8013         
8014       # AC_FUNC_MMAP
8015       cat >> confdefs.h <<\EOF
8016 #define HAVE_MMAP 1
8017 EOF
8018
8019
8020       cat >> confdefs.h <<\EOF
8021 #define HAVE_ACOSF 1
8022 EOF
8023
8024       cat >> confdefs.h <<\EOF
8025 #define HAVE_ASINF 1
8026 EOF
8027
8028       cat >> confdefs.h <<\EOF
8029 #define HAVE_ATAN2F 1
8030 EOF
8031
8032       cat >> confdefs.h <<\EOF
8033 #define HAVE_ATANF 1
8034 EOF
8035
8036       cat >> confdefs.h <<\EOF
8037 #define HAVE_CEILF 1
8038 EOF
8039
8040       cat >> confdefs.h <<\EOF
8041 #define HAVE_COPYSIGN 1
8042 EOF
8043
8044       cat >> confdefs.h <<\EOF
8045 #define HAVE_COPYSIGNF 1
8046 EOF
8047
8048       cat >> confdefs.h <<\EOF
8049 #define HAVE_COSF 1
8050 EOF
8051
8052       cat >> confdefs.h <<\EOF
8053 #define HAVE_COSHF 1
8054 EOF
8055
8056       cat >> confdefs.h <<\EOF
8057 #define HAVE_EXPF 1
8058 EOF
8059
8060       cat >> confdefs.h <<\EOF
8061 #define HAVE_FABSF 1
8062 EOF
8063
8064       cat >> confdefs.h <<\EOF
8065 #define HAVE_FINITE 1
8066 EOF
8067
8068       cat >> confdefs.h <<\EOF
8069 #define HAVE_FINITEF 1
8070 EOF
8071
8072       cat >> confdefs.h <<\EOF
8073 #define HAVE_FLOORF 1
8074 EOF
8075
8076       cat >> confdefs.h <<\EOF
8077 #define HAVE_FMODF 1
8078 EOF
8079
8080       cat >> confdefs.h <<\EOF
8081 #define HAVE_FREXPF 1
8082 EOF
8083
8084       cat >> confdefs.h <<\EOF
8085 #define HAVE_ISINF 1
8086 EOF
8087
8088       cat >> confdefs.h <<\EOF
8089 #define HAVE_ISINFF 1
8090 EOF
8091
8092       cat >> confdefs.h <<\EOF
8093 #define HAVE_ISNAN 1
8094 EOF
8095
8096       cat >> confdefs.h <<\EOF
8097 #define HAVE_ISNANF 1
8098 EOF
8099
8100       cat >> confdefs.h <<\EOF
8101 #define HAVE_LDEXPF 1
8102 EOF
8103
8104       cat >> confdefs.h <<\EOF
8105 #define HAVE_LOG10F 1
8106 EOF
8107
8108       cat >> confdefs.h <<\EOF
8109 #define HAVE_LOGF 1
8110 EOF
8111
8112       cat >> confdefs.h <<\EOF
8113 #define HAVE_MODFF 1
8114 EOF
8115
8116       cat >> confdefs.h <<\EOF
8117 #define HAVE_POWF 1
8118 EOF
8119
8120       cat >> confdefs.h <<\EOF
8121 #define HAVE_SINF 1
8122 EOF
8123
8124       cat >> confdefs.h <<\EOF
8125 #define HAVE_SINHF 1
8126 EOF
8127
8128       cat >> confdefs.h <<\EOF
8129 #define HAVE_SQRTF 1
8130 EOF
8131
8132       cat >> confdefs.h <<\EOF
8133 #define HAVE_TANF 1
8134 EOF
8135
8136       cat >> confdefs.h <<\EOF
8137 #define HAVE_TANHF 1
8138 EOF
8139
8140       ;;
8141   esac
8142
8143   # At some point, we should differentiate between architectures
8144   # like x86, which have long double versions, and alpha/powerpc/etc.,
8145   # which don't. For the time being, punt.
8146   if test x"long_double_math_on_this_cpu" = x"yes"; then
8147     cat >> confdefs.h <<\EOF
8148 #define HAVE_ACOSL 1
8149 EOF
8150
8151     cat >> confdefs.h <<\EOF
8152 #define HAVE_ASINL 1
8153 EOF
8154
8155     cat >> confdefs.h <<\EOF
8156 #define HAVE_ATAN2L 1
8157 EOF
8158
8159     cat >> confdefs.h <<\EOF
8160 #define HAVE_ATANL 1
8161 EOF
8162
8163     cat >> confdefs.h <<\EOF
8164 #define HAVE_CEILL 1
8165 EOF
8166
8167     cat >> confdefs.h <<\EOF
8168 #define HAVE_COPYSIGNL 1
8169 EOF
8170
8171     cat >> confdefs.h <<\EOF
8172 #define HAVE_COSL 1
8173 EOF
8174
8175     cat >> confdefs.h <<\EOF
8176 #define HAVE_COSHL 1
8177 EOF
8178
8179     cat >> confdefs.h <<\EOF
8180 #define HAVE_EXPL 1
8181 EOF
8182
8183     cat >> confdefs.h <<\EOF
8184 #define HAVE_FABSL 1
8185 EOF
8186
8187     cat >> confdefs.h <<\EOF
8188 #define HAVE_FINITEL 1
8189 EOF
8190
8191     cat >> confdefs.h <<\EOF
8192 #define HAVE_FLOORL 1
8193 EOF
8194
8195     cat >> confdefs.h <<\EOF
8196 #define HAVE_FMODL 1
8197 EOF
8198
8199     cat >> confdefs.h <<\EOF
8200 #define HAVE_FREXPL 1
8201 EOF
8202
8203     cat >> confdefs.h <<\EOF
8204 #define HAVE_ISINFL 1
8205 EOF
8206
8207     cat >> confdefs.h <<\EOF
8208 #define HAVE_ISNANL 1
8209 EOF
8210
8211     cat >> confdefs.h <<\EOF
8212 #define HAVE_LDEXPL 1
8213 EOF
8214
8215     cat >> confdefs.h <<\EOF
8216 #define HAVE_LOG10L 1
8217 EOF
8218
8219     cat >> confdefs.h <<\EOF
8220 #define HAVE_LOGL 1
8221 EOF
8222
8223     cat >> confdefs.h <<\EOF
8224 #define HAVE_MODFL 1
8225 EOF
8226
8227     cat >> confdefs.h <<\EOF
8228 #define HAVE_POWL 1
8229 EOF
8230
8231     cat >> confdefs.h <<\EOF
8232 #define HAVE_SINCOSL 1
8233 EOF
8234
8235     cat >> confdefs.h <<\EOF
8236 #define HAVE_SINL 1
8237 EOF
8238
8239     cat >> confdefs.h <<\EOF
8240 #define HAVE_SINHL 1
8241 EOF
8242
8243     cat >> confdefs.h <<\EOF
8244 #define HAVE_SQRTL 1
8245 EOF
8246
8247     cat >> confdefs.h <<\EOF
8248 #define HAVE_TANL 1
8249 EOF
8250
8251     cat >> confdefs.h <<\EOF
8252 #define HAVE_TANHL 1
8253 EOF
8254
8255   fi
8256 else
8257
8258   # We are being configured natively. We can do more elaborate tests
8259   # that include AC_TRY_COMPILE now, as the linker is assumed to be
8260   # working.
8261   GLIBCPP_IS_CROSS_COMPILING=0
8262   CANADIAN=no
8263
8264   # Check for available headers.
8265   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
8266   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
8267 do
8268 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8269 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8270 echo "configure:8271: checking for $ac_hdr" >&5
8271 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8272   echo $ac_n "(cached) $ac_c" 1>&6
8273 else
8274   cat > conftest.$ac_ext <<EOF
8275 #line 8276 "configure"
8276 #include "confdefs.h"
8277 #include <$ac_hdr>
8278 EOF
8279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8280 { (eval echo configure:8281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8282 if test -z "$ac_err"; then
8283   rm -rf conftest*
8284   eval "ac_cv_header_$ac_safe=yes"
8285 else
8286   echo "$ac_err" >&5
8287   echo "configure: failed program was:" >&5
8288   cat conftest.$ac_ext >&5
8289   rm -rf conftest*
8290   eval "ac_cv_header_$ac_safe=no"
8291 fi
8292 rm -f conftest*
8293 fi
8294 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8295   echo "$ac_t""yes" 1>&6
8296     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8297   cat >> confdefs.h <<EOF
8298 #define $ac_tr_hdr 1
8299 EOF
8300  
8301 else
8302   echo "$ac_t""no" 1>&6
8303 fi
8304 done
8305
8306
8307   
8308   # All these tests are for C++; save the language and the compiler flags.
8309   # The CXXFLAGS thing is suspicious, but based on similar bits previously
8310   # found in GLIBCPP_CONFIGURE.
8311   
8312   ac_ext=C
8313 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8314 ac_cpp='$CXXCPP $CPPFLAGS'
8315 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8316 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8317 cross_compiling=$ac_cv_prog_cxx_cross
8318
8319   ac_test_CXXFLAGS="${CXXFLAGS+set}"
8320   ac_save_CXXFLAGS="$CXXFLAGS"
8321
8322   # Check for maintainer-mode bits.
8323   if test x"$USE_MAINTAINER_MODE" = xno; then
8324     WERROR=''
8325   else
8326     WERROR='-Werror'
8327   fi
8328
8329   # Check for -ffunction-sections -fdata-sections
8330   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
8331 echo "configure:8332: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
8332   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
8333   cat > conftest.$ac_ext <<EOF
8334 #line 8335 "configure"
8335 #include "confdefs.h"
8336
8337 int main() {
8338 int foo;
8339   
8340 ; return 0; }
8341 EOF
8342 if { (eval echo configure:8343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8343   rm -rf conftest*
8344   ac_fdsections=yes
8345 else
8346   echo "configure: failed program was:" >&5
8347   cat conftest.$ac_ext >&5
8348   rm -rf conftest*
8349   ac_fdsections=no
8350 fi
8351 rm -f conftest*
8352   if test "$ac_test_CXXFLAGS" = set; then
8353     CXXFLAGS="$ac_save_CXXFLAGS"
8354   else
8355     # this is the suspicious part
8356     CXXFLAGS=''
8357   fi
8358   if test x"$ac_fdsections" = x"yes" &&
8359      test x"$enable_debug" = x"no"; then
8360     SECTION_FLAGS='-ffunction-sections -fdata-sections'
8361   fi
8362   echo "$ac_t""$ac_fdsections" 1>&6
8363
8364   ac_ext=c
8365 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8366 ac_cpp='$CPP $CPPFLAGS'
8367 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8368 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8369 cross_compiling=$ac_cv_prog_cc_cross
8370
8371   
8372   
8373
8374   
8375   # If we're not using GNU ld, then there's no point in even trying these
8376   # tests.  Check for that first.  We should have already tested for gld
8377   # by now (in libtool), but require it now just to be safe...
8378   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8379   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8380   
8381
8382   # The name set by libtool depends on the version of libtool.  Shame on us
8383   # for depending on an impl detail, but c'est la vie.  Older versions used
8384   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8385   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8386   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
8387   # set (hence we're using an older libtool), then set it.
8388   if test x${with_gnu_ld+set} != xset; then
8389     if test x${ac_cv_prog_gnu_ld+set} != xset; then
8390       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
8391       with_gnu_ld=no
8392     else
8393       with_gnu_ld=$ac_cv_prog_gnu_ld
8394     fi
8395   fi
8396
8397   # Start by getting the version number.  I think the libtool test already
8398   # does some of this, but throws away the result.
8399   
8400   ldver=`$LD --version 2>/dev/null | head -1 | \
8401          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8402   
8403   glibcpp_gnu_ld_version=`echo $ldver | \
8404          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8405
8406   # Set --gc-sections.
8407   if test "$with_gnu_ld" = "notbroken"; then
8408     # GNU ld it is!  Joy and bunny rabbits!
8409
8410     # All these tests are for C++; save the language and the compiler flags.
8411     # Need to do this so that g++ won't try to link in libstdc++
8412     ac_test_CFLAGS="${CFLAGS+set}"
8413     ac_save_CFLAGS="$CFLAGS"
8414     CFLAGS='-x c++  -Wl,--gc-sections'
8415
8416     # Check for -Wl,--gc-sections
8417     # XXX This test is broken at the moment, as symbols required for
8418     # linking are now in libsupc++ (not built yet.....). In addition, 
8419     # this test has cored on solaris in the past. In addition,
8420     # --gc-sections doesn't really work at the moment (keeps on discarding
8421     # used sections, first .eh_frame and now some of the glibc sections for
8422     # iconv). Bzzzzt. Thanks for playing, maybe next time.
8423     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8424 echo "configure:8425: checking for ld that supports -Wl,--gc-sections" >&5
8425     if test "$cross_compiling" = yes; then
8426   ac_sectionLDflags=yes
8427 else
8428   cat > conftest.$ac_ext <<EOF
8429 #line 8430 "configure"
8430 #include "confdefs.h"
8431
8432      int main(void) 
8433      {
8434        try { throw 1; }
8435        catch (...) { };
8436        return 0;
8437      }
8438     
8439 EOF
8440 if { (eval echo configure:8441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8441 then
8442   ac_sectionLDflags=yes
8443 else
8444   echo "configure: failed program was:" >&5
8445   cat conftest.$ac_ext >&5
8446   rm -fr conftest*
8447   ac_sectionLDflags=no
8448 fi
8449 rm -fr conftest*
8450 fi
8451
8452     if test "$ac_test_CFLAGS" = set; then
8453       CFLAGS="$ac_save_CFLAGS"
8454     else
8455       # this is the suspicious part
8456       CFLAGS=''
8457     fi
8458     if test "$ac_sectionLDflags" = "yes"; then
8459       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8460     fi
8461     echo "$ac_t""$ac_sectionLDflags" 1>&6
8462   fi
8463
8464   # Set linker optimization flags.
8465   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
8466     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8467   fi
8468
8469   
8470   
8471
8472   
8473       
8474   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
8475 echo "configure:8476: checking for __builtin_abs declaration" >&5
8476   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
8477     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
8478   echo $ac_n "(cached) $ac_c" 1>&6
8479 else
8480   
8481       
8482       ac_ext=C
8483 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8484 ac_cpp='$CXXCPP $CPPFLAGS'
8485 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8486 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8487 cross_compiling=$ac_cv_prog_cxx_cross
8488
8489       cat > conftest.$ac_ext <<EOF
8490 #line 8491 "configure"
8491 #include "confdefs.h"
8492 #include <math.h>
8493 int main() {
8494  __builtin_abs(0);
8495 ; return 0; }
8496 EOF
8497 if { (eval echo configure:8498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8498   rm -rf conftest*
8499   glibcpp_cv_func___builtin_abs_use=yes
8500 else
8501   echo "configure: failed program was:" >&5
8502   cat conftest.$ac_ext >&5
8503   rm -rf conftest*
8504   glibcpp_cv_func___builtin_abs_use=no
8505 fi
8506 rm -f conftest*
8507       ac_ext=c
8508 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8509 ac_cpp='$CPP $CPPFLAGS'
8510 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8511 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8512 cross_compiling=$ac_cv_prog_cc_cross
8513
8514     
8515 fi
8516
8517   fi
8518   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
8519   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
8520     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
8521 echo "configure:8522: checking for __builtin_abs linkage" >&5
8522     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
8523       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
8524   echo $ac_n "(cached) $ac_c" 1>&6
8525 else
8526   
8527         cat > conftest.$ac_ext <<EOF
8528 #line 8529 "configure"
8529 #include "confdefs.h"
8530 #include <math.h>
8531 int main() {
8532  __builtin_abs(0);
8533 ; return 0; }
8534 EOF
8535 if { (eval echo configure:8536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8536   rm -rf conftest*
8537   glibcpp_cv_func___builtin_abs_link=yes
8538 else
8539   echo "configure: failed program was:" >&5
8540   cat conftest.$ac_ext >&5
8541   rm -rf conftest*
8542   glibcpp_cv_func___builtin_abs_link=no
8543 fi
8544 rm -f conftest*
8545       
8546 fi
8547
8548     fi
8549     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
8550     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
8551       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8552       cat >> confdefs.h <<EOF
8553 #define ${ac_tr_func} 1
8554 EOF
8555
8556     fi
8557   fi
8558
8559   
8560   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
8561 echo "configure:8562: checking for __builtin_fabsf declaration" >&5
8562   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
8563     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
8564   echo $ac_n "(cached) $ac_c" 1>&6
8565 else
8566   
8567       
8568       ac_ext=C
8569 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8570 ac_cpp='$CXXCPP $CPPFLAGS'
8571 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8572 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8573 cross_compiling=$ac_cv_prog_cxx_cross
8574
8575       cat > conftest.$ac_ext <<EOF
8576 #line 8577 "configure"
8577 #include "confdefs.h"
8578 #include <math.h>
8579 int main() {
8580  __builtin_fabsf(0);
8581 ; return 0; }
8582 EOF
8583 if { (eval echo configure:8584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8584   rm -rf conftest*
8585   glibcpp_cv_func___builtin_fabsf_use=yes
8586 else
8587   echo "configure: failed program was:" >&5
8588   cat conftest.$ac_ext >&5
8589   rm -rf conftest*
8590   glibcpp_cv_func___builtin_fabsf_use=no
8591 fi
8592 rm -f conftest*
8593       ac_ext=c
8594 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8595 ac_cpp='$CPP $CPPFLAGS'
8596 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8597 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8598 cross_compiling=$ac_cv_prog_cc_cross
8599
8600     
8601 fi
8602
8603   fi
8604   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
8605   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
8606     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
8607 echo "configure:8608: checking for __builtin_fabsf linkage" >&5
8608     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
8609       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
8610   echo $ac_n "(cached) $ac_c" 1>&6
8611 else
8612   
8613         cat > conftest.$ac_ext <<EOF
8614 #line 8615 "configure"
8615 #include "confdefs.h"
8616 #include <math.h>
8617 int main() {
8618  __builtin_fabsf(0);
8619 ; return 0; }
8620 EOF
8621 if { (eval echo configure:8622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8622   rm -rf conftest*
8623   glibcpp_cv_func___builtin_fabsf_link=yes
8624 else
8625   echo "configure: failed program was:" >&5
8626   cat conftest.$ac_ext >&5
8627   rm -rf conftest*
8628   glibcpp_cv_func___builtin_fabsf_link=no
8629 fi
8630 rm -f conftest*
8631       
8632 fi
8633
8634     fi
8635     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
8636     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
8637       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8638       cat >> confdefs.h <<EOF
8639 #define ${ac_tr_func} 1
8640 EOF
8641
8642     fi
8643   fi
8644
8645   
8646   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
8647 echo "configure:8648: checking for __builtin_fabs declaration" >&5
8648   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
8649     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
8650   echo $ac_n "(cached) $ac_c" 1>&6
8651 else
8652   
8653       
8654       ac_ext=C
8655 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8656 ac_cpp='$CXXCPP $CPPFLAGS'
8657 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8658 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8659 cross_compiling=$ac_cv_prog_cxx_cross
8660
8661       cat > conftest.$ac_ext <<EOF
8662 #line 8663 "configure"
8663 #include "confdefs.h"
8664 #include <math.h>
8665 int main() {
8666  __builtin_fabs(0);
8667 ; return 0; }
8668 EOF
8669 if { (eval echo configure:8670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8670   rm -rf conftest*
8671   glibcpp_cv_func___builtin_fabs_use=yes
8672 else
8673   echo "configure: failed program was:" >&5
8674   cat conftest.$ac_ext >&5
8675   rm -rf conftest*
8676   glibcpp_cv_func___builtin_fabs_use=no
8677 fi
8678 rm -f conftest*
8679       ac_ext=c
8680 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8681 ac_cpp='$CPP $CPPFLAGS'
8682 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8683 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8684 cross_compiling=$ac_cv_prog_cc_cross
8685
8686     
8687 fi
8688
8689   fi
8690   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
8691   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
8692     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
8693 echo "configure:8694: checking for __builtin_fabs linkage" >&5
8694     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
8695       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
8696   echo $ac_n "(cached) $ac_c" 1>&6
8697 else
8698   
8699         cat > conftest.$ac_ext <<EOF
8700 #line 8701 "configure"
8701 #include "confdefs.h"
8702 #include <math.h>
8703 int main() {
8704  __builtin_fabs(0);
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   glibcpp_cv_func___builtin_fabs_link=yes
8710 else
8711   echo "configure: failed program was:" >&5
8712   cat conftest.$ac_ext >&5
8713   rm -rf conftest*
8714   glibcpp_cv_func___builtin_fabs_link=no
8715 fi
8716 rm -f conftest*
8717       
8718 fi
8719
8720     fi
8721     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
8722     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
8723       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8724       cat >> confdefs.h <<EOF
8725 #define ${ac_tr_func} 1
8726 EOF
8727
8728     fi
8729   fi
8730
8731   
8732   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
8733 echo "configure:8734: checking for __builtin_fabsl declaration" >&5
8734   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
8735     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
8736   echo $ac_n "(cached) $ac_c" 1>&6
8737 else
8738   
8739       
8740       ac_ext=C
8741 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8742 ac_cpp='$CXXCPP $CPPFLAGS'
8743 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8744 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8745 cross_compiling=$ac_cv_prog_cxx_cross
8746
8747       cat > conftest.$ac_ext <<EOF
8748 #line 8749 "configure"
8749 #include "confdefs.h"
8750 #include <math.h>
8751 int main() {
8752  __builtin_fabsl(0);
8753 ; return 0; }
8754 EOF
8755 if { (eval echo configure:8756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8756   rm -rf conftest*
8757   glibcpp_cv_func___builtin_fabsl_use=yes
8758 else
8759   echo "configure: failed program was:" >&5
8760   cat conftest.$ac_ext >&5
8761   rm -rf conftest*
8762   glibcpp_cv_func___builtin_fabsl_use=no
8763 fi
8764 rm -f conftest*
8765       ac_ext=c
8766 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8767 ac_cpp='$CPP $CPPFLAGS'
8768 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8769 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8770 cross_compiling=$ac_cv_prog_cc_cross
8771
8772     
8773 fi
8774
8775   fi
8776   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
8777   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
8778     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
8779 echo "configure:8780: checking for __builtin_fabsl linkage" >&5
8780     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
8781       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
8782   echo $ac_n "(cached) $ac_c" 1>&6
8783 else
8784   
8785         cat > conftest.$ac_ext <<EOF
8786 #line 8787 "configure"
8787 #include "confdefs.h"
8788 #include <math.h>
8789 int main() {
8790  __builtin_fabsl(0);
8791 ; return 0; }
8792 EOF
8793 if { (eval echo configure:8794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8794   rm -rf conftest*
8795   glibcpp_cv_func___builtin_fabsl_link=yes
8796 else
8797   echo "configure: failed program was:" >&5
8798   cat conftest.$ac_ext >&5
8799   rm -rf conftest*
8800   glibcpp_cv_func___builtin_fabsl_link=no
8801 fi
8802 rm -f conftest*
8803       
8804 fi
8805
8806     fi
8807     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
8808     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
8809       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8810       cat >> confdefs.h <<EOF
8811 #define ${ac_tr_func} 1
8812 EOF
8813
8814     fi
8815   fi
8816
8817   
8818   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
8819 echo "configure:8820: checking for __builtin_labs declaration" >&5
8820   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
8821     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
8822   echo $ac_n "(cached) $ac_c" 1>&6
8823 else
8824   
8825       
8826       ac_ext=C
8827 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8828 ac_cpp='$CXXCPP $CPPFLAGS'
8829 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8830 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8831 cross_compiling=$ac_cv_prog_cxx_cross
8832
8833       cat > conftest.$ac_ext <<EOF
8834 #line 8835 "configure"
8835 #include "confdefs.h"
8836 #include <math.h>
8837 int main() {
8838  __builtin_labs(0);
8839 ; return 0; }
8840 EOF
8841 if { (eval echo configure:8842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8842   rm -rf conftest*
8843   glibcpp_cv_func___builtin_labs_use=yes
8844 else
8845   echo "configure: failed program was:" >&5
8846   cat conftest.$ac_ext >&5
8847   rm -rf conftest*
8848   glibcpp_cv_func___builtin_labs_use=no
8849 fi
8850 rm -f conftest*
8851       ac_ext=c
8852 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8853 ac_cpp='$CPP $CPPFLAGS'
8854 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8855 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8856 cross_compiling=$ac_cv_prog_cc_cross
8857
8858     
8859 fi
8860
8861   fi
8862   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
8863   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
8864     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
8865 echo "configure:8866: checking for __builtin_labs linkage" >&5
8866     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
8867       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
8868   echo $ac_n "(cached) $ac_c" 1>&6
8869 else
8870   
8871         cat > conftest.$ac_ext <<EOF
8872 #line 8873 "configure"
8873 #include "confdefs.h"
8874 #include <math.h>
8875 int main() {
8876  __builtin_labs(0);
8877 ; return 0; }
8878 EOF
8879 if { (eval echo configure:8880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8880   rm -rf conftest*
8881   glibcpp_cv_func___builtin_labs_link=yes
8882 else
8883   echo "configure: failed program was:" >&5
8884   cat conftest.$ac_ext >&5
8885   rm -rf conftest*
8886   glibcpp_cv_func___builtin_labs_link=no
8887 fi
8888 rm -f conftest*
8889       
8890 fi
8891
8892     fi
8893     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
8894     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
8895       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8896       cat >> confdefs.h <<EOF
8897 #define ${ac_tr_func} 1
8898 EOF
8899
8900     fi
8901   fi
8902
8903
8904   
8905   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
8906 echo "configure:8907: checking for __builtin_sqrtf declaration" >&5
8907   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
8908     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
8909   echo $ac_n "(cached) $ac_c" 1>&6
8910 else
8911   
8912       
8913       ac_ext=C
8914 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8915 ac_cpp='$CXXCPP $CPPFLAGS'
8916 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8917 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8918 cross_compiling=$ac_cv_prog_cxx_cross
8919
8920       cat > conftest.$ac_ext <<EOF
8921 #line 8922 "configure"
8922 #include "confdefs.h"
8923 #include <math.h>
8924 int main() {
8925  __builtin_sqrtf(0);
8926 ; return 0; }
8927 EOF
8928 if { (eval echo configure:8929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8929   rm -rf conftest*
8930   glibcpp_cv_func___builtin_sqrtf_use=yes
8931 else
8932   echo "configure: failed program was:" >&5
8933   cat conftest.$ac_ext >&5
8934   rm -rf conftest*
8935   glibcpp_cv_func___builtin_sqrtf_use=no
8936 fi
8937 rm -f conftest*
8938       ac_ext=c
8939 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8940 ac_cpp='$CPP $CPPFLAGS'
8941 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8942 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8943 cross_compiling=$ac_cv_prog_cc_cross
8944
8945     
8946 fi
8947
8948   fi
8949   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
8950   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
8951     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
8952 echo "configure:8953: checking for __builtin_sqrtf linkage" >&5
8953     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
8954       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
8955   echo $ac_n "(cached) $ac_c" 1>&6
8956 else
8957   
8958         cat > conftest.$ac_ext <<EOF
8959 #line 8960 "configure"
8960 #include "confdefs.h"
8961 #include <math.h>
8962 int main() {
8963  __builtin_sqrtf(0);
8964 ; return 0; }
8965 EOF
8966 if { (eval echo configure:8967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8967   rm -rf conftest*
8968   glibcpp_cv_func___builtin_sqrtf_link=yes
8969 else
8970   echo "configure: failed program was:" >&5
8971   cat conftest.$ac_ext >&5
8972   rm -rf conftest*
8973   glibcpp_cv_func___builtin_sqrtf_link=no
8974 fi
8975 rm -f conftest*
8976       
8977 fi
8978
8979     fi
8980     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
8981     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
8982       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8983       cat >> confdefs.h <<EOF
8984 #define ${ac_tr_func} 1
8985 EOF
8986
8987     fi
8988   fi
8989
8990   
8991   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
8992 echo "configure:8993: checking for __builtin_sqrt declaration" >&5
8993   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
8994     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
8995   echo $ac_n "(cached) $ac_c" 1>&6
8996 else
8997   
8998       
8999       ac_ext=C
9000 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9001 ac_cpp='$CXXCPP $CPPFLAGS'
9002 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9003 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9004 cross_compiling=$ac_cv_prog_cxx_cross
9005
9006       cat > conftest.$ac_ext <<EOF
9007 #line 9008 "configure"
9008 #include "confdefs.h"
9009 #include <math.h>
9010 int main() {
9011  __builtin_sqrt(0);
9012 ; return 0; }
9013 EOF
9014 if { (eval echo configure:9015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9015   rm -rf conftest*
9016   glibcpp_cv_func___builtin_sqrt_use=yes
9017 else
9018   echo "configure: failed program was:" >&5
9019   cat conftest.$ac_ext >&5
9020   rm -rf conftest*
9021   glibcpp_cv_func___builtin_sqrt_use=no
9022 fi
9023 rm -f conftest*
9024       ac_ext=c
9025 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9026 ac_cpp='$CPP $CPPFLAGS'
9027 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9028 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9029 cross_compiling=$ac_cv_prog_cc_cross
9030
9031     
9032 fi
9033
9034   fi
9035   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
9036   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
9037     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
9038 echo "configure:9039: checking for __builtin_sqrt linkage" >&5
9039     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
9040       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
9041   echo $ac_n "(cached) $ac_c" 1>&6
9042 else
9043   
9044         cat > conftest.$ac_ext <<EOF
9045 #line 9046 "configure"
9046 #include "confdefs.h"
9047 #include <math.h>
9048 int main() {
9049  __builtin_sqrt(0);
9050 ; return 0; }
9051 EOF
9052 if { (eval echo configure:9053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9053   rm -rf conftest*
9054   glibcpp_cv_func___builtin_sqrt_link=yes
9055 else
9056   echo "configure: failed program was:" >&5
9057   cat conftest.$ac_ext >&5
9058   rm -rf conftest*
9059   glibcpp_cv_func___builtin_sqrt_link=no
9060 fi
9061 rm -f conftest*
9062       
9063 fi
9064
9065     fi
9066     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
9067     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
9068       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9069       cat >> confdefs.h <<EOF
9070 #define ${ac_tr_func} 1
9071 EOF
9072
9073     fi
9074   fi
9075
9076   
9077   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
9078 echo "configure:9079: checking for __builtin_sqrtl declaration" >&5
9079   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
9080     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
9081   echo $ac_n "(cached) $ac_c" 1>&6
9082 else
9083   
9084       
9085       ac_ext=C
9086 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9087 ac_cpp='$CXXCPP $CPPFLAGS'
9088 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9089 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9090 cross_compiling=$ac_cv_prog_cxx_cross
9091
9092       cat > conftest.$ac_ext <<EOF
9093 #line 9094 "configure"
9094 #include "confdefs.h"
9095 #include <math.h>
9096 int main() {
9097  __builtin_sqrtl(0);
9098 ; return 0; }
9099 EOF
9100 if { (eval echo configure:9101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9101   rm -rf conftest*
9102   glibcpp_cv_func___builtin_sqrtl_use=yes
9103 else
9104   echo "configure: failed program was:" >&5
9105   cat conftest.$ac_ext >&5
9106   rm -rf conftest*
9107   glibcpp_cv_func___builtin_sqrtl_use=no
9108 fi
9109 rm -f conftest*
9110       ac_ext=c
9111 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9112 ac_cpp='$CPP $CPPFLAGS'
9113 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9114 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9115 cross_compiling=$ac_cv_prog_cc_cross
9116
9117     
9118 fi
9119
9120   fi
9121   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
9122   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
9123     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
9124 echo "configure:9125: checking for __builtin_sqrtl linkage" >&5
9125     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
9126       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
9127   echo $ac_n "(cached) $ac_c" 1>&6
9128 else
9129   
9130         cat > conftest.$ac_ext <<EOF
9131 #line 9132 "configure"
9132 #include "confdefs.h"
9133 #include <math.h>
9134 int main() {
9135  __builtin_sqrtl(0);
9136 ; return 0; }
9137 EOF
9138 if { (eval echo configure:9139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9139   rm -rf conftest*
9140   glibcpp_cv_func___builtin_sqrtl_link=yes
9141 else
9142   echo "configure: failed program was:" >&5
9143   cat conftest.$ac_ext >&5
9144   rm -rf conftest*
9145   glibcpp_cv_func___builtin_sqrtl_link=no
9146 fi
9147 rm -f conftest*
9148       
9149 fi
9150
9151     fi
9152     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
9153     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
9154       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9155       cat >> confdefs.h <<EOF
9156 #define ${ac_tr_func} 1
9157 EOF
9158
9159     fi
9160   fi
9161
9162
9163   
9164   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
9165 echo "configure:9166: checking for __builtin_sinf declaration" >&5
9166   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
9167     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
9168   echo $ac_n "(cached) $ac_c" 1>&6
9169 else
9170   
9171       
9172       ac_ext=C
9173 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9174 ac_cpp='$CXXCPP $CPPFLAGS'
9175 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9176 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9177 cross_compiling=$ac_cv_prog_cxx_cross
9178
9179       cat > conftest.$ac_ext <<EOF
9180 #line 9181 "configure"
9181 #include "confdefs.h"
9182 #include <math.h>
9183 int main() {
9184  __builtin_sinf(0);
9185 ; return 0; }
9186 EOF
9187 if { (eval echo configure:9188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9188   rm -rf conftest*
9189   glibcpp_cv_func___builtin_sinf_use=yes
9190 else
9191   echo "configure: failed program was:" >&5
9192   cat conftest.$ac_ext >&5
9193   rm -rf conftest*
9194   glibcpp_cv_func___builtin_sinf_use=no
9195 fi
9196 rm -f conftest*
9197       ac_ext=c
9198 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9199 ac_cpp='$CPP $CPPFLAGS'
9200 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9201 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9202 cross_compiling=$ac_cv_prog_cc_cross
9203
9204     
9205 fi
9206
9207   fi
9208   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
9209   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
9210     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
9211 echo "configure:9212: checking for __builtin_sinf linkage" >&5
9212     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
9213       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
9214   echo $ac_n "(cached) $ac_c" 1>&6
9215 else
9216   
9217         cat > conftest.$ac_ext <<EOF
9218 #line 9219 "configure"
9219 #include "confdefs.h"
9220 #include <math.h>
9221 int main() {
9222  __builtin_sinf(0);
9223 ; return 0; }
9224 EOF
9225 if { (eval echo configure:9226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9226   rm -rf conftest*
9227   glibcpp_cv_func___builtin_sinf_link=yes
9228 else
9229   echo "configure: failed program was:" >&5
9230   cat conftest.$ac_ext >&5
9231   rm -rf conftest*
9232   glibcpp_cv_func___builtin_sinf_link=no
9233 fi
9234 rm -f conftest*
9235       
9236 fi
9237
9238     fi
9239     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
9240     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
9241       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9242       cat >> confdefs.h <<EOF
9243 #define ${ac_tr_func} 1
9244 EOF
9245
9246     fi
9247   fi
9248
9249   
9250   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
9251 echo "configure:9252: checking for __builtin_sin declaration" >&5
9252   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
9253     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
9254   echo $ac_n "(cached) $ac_c" 1>&6
9255 else
9256   
9257       
9258       ac_ext=C
9259 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9260 ac_cpp='$CXXCPP $CPPFLAGS'
9261 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9262 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9263 cross_compiling=$ac_cv_prog_cxx_cross
9264
9265       cat > conftest.$ac_ext <<EOF
9266 #line 9267 "configure"
9267 #include "confdefs.h"
9268 #include <math.h>
9269 int main() {
9270  __builtin_sin(0);
9271 ; return 0; }
9272 EOF
9273 if { (eval echo configure:9274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9274   rm -rf conftest*
9275   glibcpp_cv_func___builtin_sin_use=yes
9276 else
9277   echo "configure: failed program was:" >&5
9278   cat conftest.$ac_ext >&5
9279   rm -rf conftest*
9280   glibcpp_cv_func___builtin_sin_use=no
9281 fi
9282 rm -f conftest*
9283       ac_ext=c
9284 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9285 ac_cpp='$CPP $CPPFLAGS'
9286 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9287 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9288 cross_compiling=$ac_cv_prog_cc_cross
9289
9290     
9291 fi
9292
9293   fi
9294   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
9295   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
9296     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
9297 echo "configure:9298: checking for __builtin_sin linkage" >&5
9298     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
9299       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
9300   echo $ac_n "(cached) $ac_c" 1>&6
9301 else
9302   
9303         cat > conftest.$ac_ext <<EOF
9304 #line 9305 "configure"
9305 #include "confdefs.h"
9306 #include <math.h>
9307 int main() {
9308  __builtin_sin(0);
9309 ; return 0; }
9310 EOF
9311 if { (eval echo configure:9312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9312   rm -rf conftest*
9313   glibcpp_cv_func___builtin_sin_link=yes
9314 else
9315   echo "configure: failed program was:" >&5
9316   cat conftest.$ac_ext >&5
9317   rm -rf conftest*
9318   glibcpp_cv_func___builtin_sin_link=no
9319 fi
9320 rm -f conftest*
9321       
9322 fi
9323
9324     fi
9325     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
9326     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
9327       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9328       cat >> confdefs.h <<EOF
9329 #define ${ac_tr_func} 1
9330 EOF
9331
9332     fi
9333   fi
9334
9335   
9336   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
9337 echo "configure:9338: checking for __builtin_sinl declaration" >&5
9338   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
9339     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
9340   echo $ac_n "(cached) $ac_c" 1>&6
9341 else
9342   
9343       
9344       ac_ext=C
9345 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9346 ac_cpp='$CXXCPP $CPPFLAGS'
9347 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9348 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9349 cross_compiling=$ac_cv_prog_cxx_cross
9350
9351       cat > conftest.$ac_ext <<EOF
9352 #line 9353 "configure"
9353 #include "confdefs.h"
9354 #include <math.h>
9355 int main() {
9356  __builtin_sinl(0);
9357 ; return 0; }
9358 EOF
9359 if { (eval echo configure:9360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9360   rm -rf conftest*
9361   glibcpp_cv_func___builtin_sinl_use=yes
9362 else
9363   echo "configure: failed program was:" >&5
9364   cat conftest.$ac_ext >&5
9365   rm -rf conftest*
9366   glibcpp_cv_func___builtin_sinl_use=no
9367 fi
9368 rm -f conftest*
9369       ac_ext=c
9370 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9371 ac_cpp='$CPP $CPPFLAGS'
9372 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9373 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9374 cross_compiling=$ac_cv_prog_cc_cross
9375
9376     
9377 fi
9378
9379   fi
9380   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
9381   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
9382     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
9383 echo "configure:9384: checking for __builtin_sinl linkage" >&5
9384     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
9385       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
9386   echo $ac_n "(cached) $ac_c" 1>&6
9387 else
9388   
9389         cat > conftest.$ac_ext <<EOF
9390 #line 9391 "configure"
9391 #include "confdefs.h"
9392 #include <math.h>
9393 int main() {
9394  __builtin_sinl(0);
9395 ; return 0; }
9396 EOF
9397 if { (eval echo configure:9398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9398   rm -rf conftest*
9399   glibcpp_cv_func___builtin_sinl_link=yes
9400 else
9401   echo "configure: failed program was:" >&5
9402   cat conftest.$ac_ext >&5
9403   rm -rf conftest*
9404   glibcpp_cv_func___builtin_sinl_link=no
9405 fi
9406 rm -f conftest*
9407       
9408 fi
9409
9410     fi
9411     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
9412     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
9413       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9414       cat >> confdefs.h <<EOF
9415 #define ${ac_tr_func} 1
9416 EOF
9417
9418     fi
9419   fi
9420
9421
9422   
9423   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
9424 echo "configure:9425: checking for __builtin_cosf declaration" >&5
9425   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
9426     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
9427   echo $ac_n "(cached) $ac_c" 1>&6
9428 else
9429   
9430       
9431       ac_ext=C
9432 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9433 ac_cpp='$CXXCPP $CPPFLAGS'
9434 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9435 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9436 cross_compiling=$ac_cv_prog_cxx_cross
9437
9438       cat > conftest.$ac_ext <<EOF
9439 #line 9440 "configure"
9440 #include "confdefs.h"
9441 #include <math.h>
9442 int main() {
9443  __builtin_cosf(0);
9444 ; return 0; }
9445 EOF
9446 if { (eval echo configure:9447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9447   rm -rf conftest*
9448   glibcpp_cv_func___builtin_cosf_use=yes
9449 else
9450   echo "configure: failed program was:" >&5
9451   cat conftest.$ac_ext >&5
9452   rm -rf conftest*
9453   glibcpp_cv_func___builtin_cosf_use=no
9454 fi
9455 rm -f conftest*
9456       ac_ext=c
9457 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9458 ac_cpp='$CPP $CPPFLAGS'
9459 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9460 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9461 cross_compiling=$ac_cv_prog_cc_cross
9462
9463     
9464 fi
9465
9466   fi
9467   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
9468   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
9469     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
9470 echo "configure:9471: checking for __builtin_cosf linkage" >&5
9471     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
9472       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
9473   echo $ac_n "(cached) $ac_c" 1>&6
9474 else
9475   
9476         cat > conftest.$ac_ext <<EOF
9477 #line 9478 "configure"
9478 #include "confdefs.h"
9479 #include <math.h>
9480 int main() {
9481  __builtin_cosf(0);
9482 ; return 0; }
9483 EOF
9484 if { (eval echo configure:9485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9485   rm -rf conftest*
9486   glibcpp_cv_func___builtin_cosf_link=yes
9487 else
9488   echo "configure: failed program was:" >&5
9489   cat conftest.$ac_ext >&5
9490   rm -rf conftest*
9491   glibcpp_cv_func___builtin_cosf_link=no
9492 fi
9493 rm -f conftest*
9494       
9495 fi
9496
9497     fi
9498     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
9499     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
9500       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9501       cat >> confdefs.h <<EOF
9502 #define ${ac_tr_func} 1
9503 EOF
9504
9505     fi
9506   fi
9507
9508   
9509   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
9510 echo "configure:9511: checking for __builtin_cos declaration" >&5
9511   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
9512     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
9513   echo $ac_n "(cached) $ac_c" 1>&6
9514 else
9515   
9516       
9517       ac_ext=C
9518 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9519 ac_cpp='$CXXCPP $CPPFLAGS'
9520 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9521 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9522 cross_compiling=$ac_cv_prog_cxx_cross
9523
9524       cat > conftest.$ac_ext <<EOF
9525 #line 9526 "configure"
9526 #include "confdefs.h"
9527 #include <math.h>
9528 int main() {
9529  __builtin_cos(0);
9530 ; return 0; }
9531 EOF
9532 if { (eval echo configure:9533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9533   rm -rf conftest*
9534   glibcpp_cv_func___builtin_cos_use=yes
9535 else
9536   echo "configure: failed program was:" >&5
9537   cat conftest.$ac_ext >&5
9538   rm -rf conftest*
9539   glibcpp_cv_func___builtin_cos_use=no
9540 fi
9541 rm -f conftest*
9542       ac_ext=c
9543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9544 ac_cpp='$CPP $CPPFLAGS'
9545 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9546 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9547 cross_compiling=$ac_cv_prog_cc_cross
9548
9549     
9550 fi
9551
9552   fi
9553   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
9554   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
9555     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
9556 echo "configure:9557: checking for __builtin_cos linkage" >&5
9557     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
9558       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
9559   echo $ac_n "(cached) $ac_c" 1>&6
9560 else
9561   
9562         cat > conftest.$ac_ext <<EOF
9563 #line 9564 "configure"
9564 #include "confdefs.h"
9565 #include <math.h>
9566 int main() {
9567  __builtin_cos(0);
9568 ; return 0; }
9569 EOF
9570 if { (eval echo configure:9571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9571   rm -rf conftest*
9572   glibcpp_cv_func___builtin_cos_link=yes
9573 else
9574   echo "configure: failed program was:" >&5
9575   cat conftest.$ac_ext >&5
9576   rm -rf conftest*
9577   glibcpp_cv_func___builtin_cos_link=no
9578 fi
9579 rm -f conftest*
9580       
9581 fi
9582
9583     fi
9584     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
9585     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
9586       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9587       cat >> confdefs.h <<EOF
9588 #define ${ac_tr_func} 1
9589 EOF
9590
9591     fi
9592   fi
9593
9594   
9595   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
9596 echo "configure:9597: checking for __builtin_cosl declaration" >&5
9597   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
9598     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
9599   echo $ac_n "(cached) $ac_c" 1>&6
9600 else
9601   
9602       
9603       ac_ext=C
9604 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9605 ac_cpp='$CXXCPP $CPPFLAGS'
9606 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9607 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9608 cross_compiling=$ac_cv_prog_cxx_cross
9609
9610       cat > conftest.$ac_ext <<EOF
9611 #line 9612 "configure"
9612 #include "confdefs.h"
9613 #include <math.h>
9614 int main() {
9615  __builtin_cosl(0);
9616 ; return 0; }
9617 EOF
9618 if { (eval echo configure:9619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9619   rm -rf conftest*
9620   glibcpp_cv_func___builtin_cosl_use=yes
9621 else
9622   echo "configure: failed program was:" >&5
9623   cat conftest.$ac_ext >&5
9624   rm -rf conftest*
9625   glibcpp_cv_func___builtin_cosl_use=no
9626 fi
9627 rm -f conftest*
9628       ac_ext=c
9629 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9630 ac_cpp='$CPP $CPPFLAGS'
9631 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9632 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9633 cross_compiling=$ac_cv_prog_cc_cross
9634
9635     
9636 fi
9637
9638   fi
9639   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
9640   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
9641     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
9642 echo "configure:9643: checking for __builtin_cosl linkage" >&5
9643     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
9644       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
9645   echo $ac_n "(cached) $ac_c" 1>&6
9646 else
9647   
9648         cat > conftest.$ac_ext <<EOF
9649 #line 9650 "configure"
9650 #include "confdefs.h"
9651 #include <math.h>
9652 int main() {
9653  __builtin_cosl(0);
9654 ; return 0; }
9655 EOF
9656 if { (eval echo configure:9657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9657   rm -rf conftest*
9658   glibcpp_cv_func___builtin_cosl_link=yes
9659 else
9660   echo "configure: failed program was:" >&5
9661   cat conftest.$ac_ext >&5
9662   rm -rf conftest*
9663   glibcpp_cv_func___builtin_cosl_link=no
9664 fi
9665 rm -f conftest*
9666       
9667 fi
9668
9669     fi
9670     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
9671     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
9672       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9673       cat >> confdefs.h <<EOF
9674 #define ${ac_tr_func} 1
9675 EOF
9676
9677     fi
9678   fi
9679
9680
9681               dummyvar=no
9682   if test x$dummyvar = x"yes"; then
9683     cat >> confdefs.h <<\EOF
9684 #define HAVE___BUILTIN_ABS 1
9685 EOF
9686
9687     cat >> confdefs.h <<\EOF
9688 #define HAVE___BUILTIN_LABS 1
9689 EOF
9690
9691     cat >> confdefs.h <<\EOF
9692 #define HAVE___BUILTIN_COS 1
9693 EOF
9694
9695     cat >> confdefs.h <<\EOF
9696 #define HAVE___BUILTIN_COSF 1
9697 EOF
9698
9699     cat >> confdefs.h <<\EOF
9700 #define HAVE___BUILTIN_COSL 1
9701 EOF
9702
9703     cat >> confdefs.h <<\EOF
9704 #define HAVE___BUILTIN_FABS 1
9705 EOF
9706
9707     cat >> confdefs.h <<\EOF
9708 #define HAVE___BUILTIN_FABSF 1
9709 EOF
9710
9711     cat >> confdefs.h <<\EOF
9712 #define HAVE___BUILTIN_FABSL 1
9713 EOF
9714
9715     cat >> confdefs.h <<\EOF
9716 #define HAVE___BUILTIN_SIN 1
9717 EOF
9718
9719     cat >> confdefs.h <<\EOF
9720 #define HAVE___BUILTIN_SINF 1
9721 EOF
9722
9723     cat >> confdefs.h <<\EOF
9724 #define HAVE___BUILTIN_SINL 1
9725 EOF
9726
9727     cat >> confdefs.h <<\EOF
9728 #define HAVE___BUILTIN_SQRT 1
9729 EOF
9730
9731     cat >> confdefs.h <<\EOF
9732 #define HAVE___BUILTIN_SQRTF 1
9733 EOF
9734
9735     cat >> confdefs.h <<\EOF
9736 #define HAVE___BUILTIN_SQRTL 1
9737 EOF
9738
9739   fi
9740
9741   
9742   ac_test_CXXFLAGS="${CXXFLAGS+set}"
9743   ac_save_CXXFLAGS="$CXXFLAGS"
9744   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
9745
9746     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
9747 echo "configure:9748: checking for sin in -lm" >&5
9748 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
9749 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9750   echo $ac_n "(cached) $ac_c" 1>&6
9751 else
9752   ac_save_LIBS="$LIBS"
9753 LIBS="-lm  $LIBS"
9754 cat > conftest.$ac_ext <<EOF
9755 #line 9756 "configure"
9756 #include "confdefs.h"
9757 /* Override any gcc2 internal prototype to avoid an error.  */
9758 /* We use char because int might match the return type of a gcc2
9759     builtin and then its argument prototype would still apply.  */
9760 char sin();
9761
9762 int main() {
9763 sin()
9764 ; return 0; }
9765 EOF
9766 if { (eval echo configure:9767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9767   rm -rf conftest*
9768   eval "ac_cv_lib_$ac_lib_var=yes"
9769 else
9770   echo "configure: failed program was:" >&5
9771   cat conftest.$ac_ext >&5
9772   rm -rf conftest*
9773   eval "ac_cv_lib_$ac_lib_var=no"
9774 fi
9775 rm -f conftest*
9776 LIBS="$ac_save_LIBS"
9777
9778 fi
9779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9780   echo "$ac_t""yes" 1>&6
9781   libm="-lm"
9782 else
9783   echo "$ac_t""no" 1>&6
9784 fi
9785
9786   ac_save_LIBS="$LIBS"
9787   LIBS="$LIBS $libm"
9788
9789     
9790   
9791   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
9792 echo "configure:9793: checking for isinf declaration" >&5
9793   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
9794     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
9795   echo $ac_n "(cached) $ac_c" 1>&6
9796 else
9797   
9798       
9799       ac_ext=C
9800 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9801 ac_cpp='$CXXCPP $CPPFLAGS'
9802 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9803 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9804 cross_compiling=$ac_cv_prog_cxx_cross
9805
9806       cat > conftest.$ac_ext <<EOF
9807 #line 9808 "configure"
9808 #include "confdefs.h"
9809 #include <math.h>
9810                       #ifdef HAVE_IEEEFP_H
9811                       #include <ieeefp.h>
9812                       #endif
9813                      
9814 int main() {
9815  isinf(0);
9816 ; return 0; }
9817 EOF
9818 if { (eval echo configure:9819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9819   rm -rf conftest*
9820   glibcpp_cv_func_isinf_use=yes
9821 else
9822   echo "configure: failed program was:" >&5
9823   cat conftest.$ac_ext >&5
9824   rm -rf conftest*
9825   glibcpp_cv_func_isinf_use=no
9826 fi
9827 rm -f conftest*
9828       ac_ext=c
9829 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9830 ac_cpp='$CPP $CPPFLAGS'
9831 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9832 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9833 cross_compiling=$ac_cv_prog_cc_cross
9834
9835     
9836 fi
9837
9838   fi
9839   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
9840
9841   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
9842     for ac_func in isinf
9843 do
9844 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9845 echo "configure:9846: checking for $ac_func" >&5
9846 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9847   echo $ac_n "(cached) $ac_c" 1>&6
9848 else
9849   cat > conftest.$ac_ext <<EOF
9850 #line 9851 "configure"
9851 #include "confdefs.h"
9852 /* System header to define __stub macros and hopefully few prototypes,
9853     which can conflict with char $ac_func(); below.  */
9854 #include <assert.h>
9855 /* Override any gcc2 internal prototype to avoid an error.  */
9856 /* We use char because int might match the return type of a gcc2
9857     builtin and then its argument prototype would still apply.  */
9858 char $ac_func();
9859
9860 int main() {
9861
9862 /* The GNU C library defines this for functions which it implements
9863     to always fail with ENOSYS.  Some functions are actually named
9864     something starting with __ and the normal name is an alias.  */
9865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9866 choke me
9867 #else
9868 $ac_func();
9869 #endif
9870
9871 ; return 0; }
9872 EOF
9873 if { (eval echo configure:9874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9874   rm -rf conftest*
9875   eval "ac_cv_func_$ac_func=yes"
9876 else
9877   echo "configure: failed program was:" >&5
9878   cat conftest.$ac_ext >&5
9879   rm -rf conftest*
9880   eval "ac_cv_func_$ac_func=no"
9881 fi
9882 rm -f conftest*
9883 fi
9884
9885 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9886   echo "$ac_t""yes" 1>&6
9887     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9888   cat >> confdefs.h <<EOF
9889 #define $ac_tr_func 1
9890 EOF
9891  
9892 else
9893   echo "$ac_t""no" 1>&6
9894 fi
9895 done
9896     
9897   else
9898     
9899   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
9900 echo "configure:9901: checking for _isinf declaration" >&5
9901   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
9902     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
9903   echo $ac_n "(cached) $ac_c" 1>&6
9904 else
9905   
9906       
9907       ac_ext=C
9908 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9909 ac_cpp='$CXXCPP $CPPFLAGS'
9910 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9911 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9912 cross_compiling=$ac_cv_prog_cxx_cross
9913
9914       cat > conftest.$ac_ext <<EOF
9915 #line 9916 "configure"
9916 #include "confdefs.h"
9917 #include <math.h>
9918                       #ifdef HAVE_IEEEFP_H
9919                       #include <ieeefp.h>
9920                       #endif
9921                      
9922 int main() {
9923  _isinf(0);
9924 ; return 0; }
9925 EOF
9926 if { (eval echo configure:9927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9927   rm -rf conftest*
9928   glibcpp_cv_func__isinf_use=yes
9929 else
9930   echo "configure: failed program was:" >&5
9931   cat conftest.$ac_ext >&5
9932   rm -rf conftest*
9933   glibcpp_cv_func__isinf_use=no
9934 fi
9935 rm -f conftest*
9936       ac_ext=c
9937 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9938 ac_cpp='$CPP $CPPFLAGS'
9939 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9940 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9941 cross_compiling=$ac_cv_prog_cc_cross
9942
9943     
9944 fi
9945
9946   fi
9947   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
9948
9949     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
9950       for ac_func in _isinf
9951 do
9952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9953 echo "configure:9954: checking for $ac_func" >&5
9954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9955   echo $ac_n "(cached) $ac_c" 1>&6
9956 else
9957   cat > conftest.$ac_ext <<EOF
9958 #line 9959 "configure"
9959 #include "confdefs.h"
9960 /* System header to define __stub macros and hopefully few prototypes,
9961     which can conflict with char $ac_func(); below.  */
9962 #include <assert.h>
9963 /* Override any gcc2 internal prototype to avoid an error.  */
9964 /* We use char because int might match the return type of a gcc2
9965     builtin and then its argument prototype would still apply.  */
9966 char $ac_func();
9967
9968 int main() {
9969
9970 /* The GNU C library defines this for functions which it implements
9971     to always fail with ENOSYS.  Some functions are actually named
9972     something starting with __ and the normal name is an alias.  */
9973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9974 choke me
9975 #else
9976 $ac_func();
9977 #endif
9978
9979 ; return 0; }
9980 EOF
9981 if { (eval echo configure:9982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9982   rm -rf conftest*
9983   eval "ac_cv_func_$ac_func=yes"
9984 else
9985   echo "configure: failed program was:" >&5
9986   cat conftest.$ac_ext >&5
9987   rm -rf conftest*
9988   eval "ac_cv_func_$ac_func=no"
9989 fi
9990 rm -f conftest*
9991 fi
9992
9993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9994   echo "$ac_t""yes" 1>&6
9995     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9996   cat >> confdefs.h <<EOF
9997 #define $ac_tr_func 1
9998 EOF
9999  
10000 else
10001   echo "$ac_t""no" 1>&6
10002 fi
10003 done
10004     
10005     fi
10006   fi
10007
10008   
10009   
10010   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
10011 echo "configure:10012: checking for isnan declaration" >&5
10012   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
10013     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
10014   echo $ac_n "(cached) $ac_c" 1>&6
10015 else
10016   
10017       
10018       ac_ext=C
10019 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10020 ac_cpp='$CXXCPP $CPPFLAGS'
10021 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10022 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10023 cross_compiling=$ac_cv_prog_cxx_cross
10024
10025       cat > conftest.$ac_ext <<EOF
10026 #line 10027 "configure"
10027 #include "confdefs.h"
10028 #include <math.h>
10029                       #ifdef HAVE_IEEEFP_H
10030                       #include <ieeefp.h>
10031                       #endif
10032                      
10033 int main() {
10034  isnan(0);
10035 ; return 0; }
10036 EOF
10037 if { (eval echo configure:10038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10038   rm -rf conftest*
10039   glibcpp_cv_func_isnan_use=yes
10040 else
10041   echo "configure: failed program was:" >&5
10042   cat conftest.$ac_ext >&5
10043   rm -rf conftest*
10044   glibcpp_cv_func_isnan_use=no
10045 fi
10046 rm -f conftest*
10047       ac_ext=c
10048 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10049 ac_cpp='$CPP $CPPFLAGS'
10050 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10051 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10052 cross_compiling=$ac_cv_prog_cc_cross
10053
10054     
10055 fi
10056
10057   fi
10058   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
10059
10060   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
10061     for ac_func in isnan
10062 do
10063 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10064 echo "configure:10065: checking for $ac_func" >&5
10065 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10066   echo $ac_n "(cached) $ac_c" 1>&6
10067 else
10068   cat > conftest.$ac_ext <<EOF
10069 #line 10070 "configure"
10070 #include "confdefs.h"
10071 /* System header to define __stub macros and hopefully few prototypes,
10072     which can conflict with char $ac_func(); below.  */
10073 #include <assert.h>
10074 /* Override any gcc2 internal prototype to avoid an error.  */
10075 /* We use char because int might match the return type of a gcc2
10076     builtin and then its argument prototype would still apply.  */
10077 char $ac_func();
10078
10079 int main() {
10080
10081 /* The GNU C library defines this for functions which it implements
10082     to always fail with ENOSYS.  Some functions are actually named
10083     something starting with __ and the normal name is an alias.  */
10084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10085 choke me
10086 #else
10087 $ac_func();
10088 #endif
10089
10090 ; return 0; }
10091 EOF
10092 if { (eval echo configure:10093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10093   rm -rf conftest*
10094   eval "ac_cv_func_$ac_func=yes"
10095 else
10096   echo "configure: failed program was:" >&5
10097   cat conftest.$ac_ext >&5
10098   rm -rf conftest*
10099   eval "ac_cv_func_$ac_func=no"
10100 fi
10101 rm -f conftest*
10102 fi
10103
10104 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10105   echo "$ac_t""yes" 1>&6
10106     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10107   cat >> confdefs.h <<EOF
10108 #define $ac_tr_func 1
10109 EOF
10110  
10111 else
10112   echo "$ac_t""no" 1>&6
10113 fi
10114 done
10115     
10116   else
10117     
10118   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
10119 echo "configure:10120: checking for _isnan declaration" >&5
10120   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
10121     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
10122   echo $ac_n "(cached) $ac_c" 1>&6
10123 else
10124   
10125       
10126       ac_ext=C
10127 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10128 ac_cpp='$CXXCPP $CPPFLAGS'
10129 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10130 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10131 cross_compiling=$ac_cv_prog_cxx_cross
10132
10133       cat > conftest.$ac_ext <<EOF
10134 #line 10135 "configure"
10135 #include "confdefs.h"
10136 #include <math.h>
10137                       #ifdef HAVE_IEEEFP_H
10138                       #include <ieeefp.h>
10139                       #endif
10140                      
10141 int main() {
10142  _isnan(0);
10143 ; return 0; }
10144 EOF
10145 if { (eval echo configure:10146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10146   rm -rf conftest*
10147   glibcpp_cv_func__isnan_use=yes
10148 else
10149   echo "configure: failed program was:" >&5
10150   cat conftest.$ac_ext >&5
10151   rm -rf conftest*
10152   glibcpp_cv_func__isnan_use=no
10153 fi
10154 rm -f conftest*
10155       ac_ext=c
10156 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10157 ac_cpp='$CPP $CPPFLAGS'
10158 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10159 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10160 cross_compiling=$ac_cv_prog_cc_cross
10161
10162     
10163 fi
10164
10165   fi
10166   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
10167
10168     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
10169       for ac_func in _isnan
10170 do
10171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10172 echo "configure:10173: checking for $ac_func" >&5
10173 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10174   echo $ac_n "(cached) $ac_c" 1>&6
10175 else
10176   cat > conftest.$ac_ext <<EOF
10177 #line 10178 "configure"
10178 #include "confdefs.h"
10179 /* System header to define __stub macros and hopefully few prototypes,
10180     which can conflict with char $ac_func(); below.  */
10181 #include <assert.h>
10182 /* Override any gcc2 internal prototype to avoid an error.  */
10183 /* We use char because int might match the return type of a gcc2
10184     builtin and then its argument prototype would still apply.  */
10185 char $ac_func();
10186
10187 int main() {
10188
10189 /* The GNU C library defines this for functions which it implements
10190     to always fail with ENOSYS.  Some functions are actually named
10191     something starting with __ and the normal name is an alias.  */
10192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10193 choke me
10194 #else
10195 $ac_func();
10196 #endif
10197
10198 ; return 0; }
10199 EOF
10200 if { (eval echo configure:10201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10201   rm -rf conftest*
10202   eval "ac_cv_func_$ac_func=yes"
10203 else
10204   echo "configure: failed program was:" >&5
10205   cat conftest.$ac_ext >&5
10206   rm -rf conftest*
10207   eval "ac_cv_func_$ac_func=no"
10208 fi
10209 rm -f conftest*
10210 fi
10211
10212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10213   echo "$ac_t""yes" 1>&6
10214     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10215   cat >> confdefs.h <<EOF
10216 #define $ac_tr_func 1
10217 EOF
10218  
10219 else
10220   echo "$ac_t""no" 1>&6
10221 fi
10222 done
10223     
10224     fi
10225   fi
10226
10227   
10228   
10229   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
10230 echo "configure:10231: checking for finite declaration" >&5
10231   if test x${glibcpp_cv_func_finite_use+set} != xset; then
10232     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
10233   echo $ac_n "(cached) $ac_c" 1>&6
10234 else
10235   
10236       
10237       ac_ext=C
10238 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10239 ac_cpp='$CXXCPP $CPPFLAGS'
10240 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10241 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10242 cross_compiling=$ac_cv_prog_cxx_cross
10243
10244       cat > conftest.$ac_ext <<EOF
10245 #line 10246 "configure"
10246 #include "confdefs.h"
10247 #include <math.h>
10248                       #ifdef HAVE_IEEEFP_H
10249                       #include <ieeefp.h>
10250                       #endif
10251                      
10252 int main() {
10253  finite(0);
10254 ; return 0; }
10255 EOF
10256 if { (eval echo configure:10257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10257   rm -rf conftest*
10258   glibcpp_cv_func_finite_use=yes
10259 else
10260   echo "configure: failed program was:" >&5
10261   cat conftest.$ac_ext >&5
10262   rm -rf conftest*
10263   glibcpp_cv_func_finite_use=no
10264 fi
10265 rm -f conftest*
10266       ac_ext=c
10267 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10268 ac_cpp='$CPP $CPPFLAGS'
10269 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10270 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10271 cross_compiling=$ac_cv_prog_cc_cross
10272
10273     
10274 fi
10275
10276   fi
10277   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
10278
10279   if test x$glibcpp_cv_func_finite_use = x"yes"; then
10280     for ac_func in finite
10281 do
10282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10283 echo "configure:10284: checking for $ac_func" >&5
10284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10285   echo $ac_n "(cached) $ac_c" 1>&6
10286 else
10287   cat > conftest.$ac_ext <<EOF
10288 #line 10289 "configure"
10289 #include "confdefs.h"
10290 /* System header to define __stub macros and hopefully few prototypes,
10291     which can conflict with char $ac_func(); below.  */
10292 #include <assert.h>
10293 /* Override any gcc2 internal prototype to avoid an error.  */
10294 /* We use char because int might match the return type of a gcc2
10295     builtin and then its argument prototype would still apply.  */
10296 char $ac_func();
10297
10298 int main() {
10299
10300 /* The GNU C library defines this for functions which it implements
10301     to always fail with ENOSYS.  Some functions are actually named
10302     something starting with __ and the normal name is an alias.  */
10303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10304 choke me
10305 #else
10306 $ac_func();
10307 #endif
10308
10309 ; return 0; }
10310 EOF
10311 if { (eval echo configure:10312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10312   rm -rf conftest*
10313   eval "ac_cv_func_$ac_func=yes"
10314 else
10315   echo "configure: failed program was:" >&5
10316   cat conftest.$ac_ext >&5
10317   rm -rf conftest*
10318   eval "ac_cv_func_$ac_func=no"
10319 fi
10320 rm -f conftest*
10321 fi
10322
10323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10324   echo "$ac_t""yes" 1>&6
10325     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10326   cat >> confdefs.h <<EOF
10327 #define $ac_tr_func 1
10328 EOF
10329  
10330 else
10331   echo "$ac_t""no" 1>&6
10332 fi
10333 done
10334     
10335   else
10336     
10337   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
10338 echo "configure:10339: checking for _finite declaration" >&5
10339   if test x${glibcpp_cv_func__finite_use+set} != xset; then
10340     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
10341   echo $ac_n "(cached) $ac_c" 1>&6
10342 else
10343   
10344       
10345       ac_ext=C
10346 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10347 ac_cpp='$CXXCPP $CPPFLAGS'
10348 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10349 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10350 cross_compiling=$ac_cv_prog_cxx_cross
10351
10352       cat > conftest.$ac_ext <<EOF
10353 #line 10354 "configure"
10354 #include "confdefs.h"
10355 #include <math.h>
10356                       #ifdef HAVE_IEEEFP_H
10357                       #include <ieeefp.h>
10358                       #endif
10359                      
10360 int main() {
10361  _finite(0);
10362 ; return 0; }
10363 EOF
10364 if { (eval echo configure:10365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10365   rm -rf conftest*
10366   glibcpp_cv_func__finite_use=yes
10367 else
10368   echo "configure: failed program was:" >&5
10369   cat conftest.$ac_ext >&5
10370   rm -rf conftest*
10371   glibcpp_cv_func__finite_use=no
10372 fi
10373 rm -f conftest*
10374       ac_ext=c
10375 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10376 ac_cpp='$CPP $CPPFLAGS'
10377 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10378 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10379 cross_compiling=$ac_cv_prog_cc_cross
10380
10381     
10382 fi
10383
10384   fi
10385   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
10386
10387     if test x$glibcpp_cv_func__finite_use = x"yes"; then
10388       for ac_func in _finite
10389 do
10390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10391 echo "configure:10392: checking for $ac_func" >&5
10392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10393   echo $ac_n "(cached) $ac_c" 1>&6
10394 else
10395   cat > conftest.$ac_ext <<EOF
10396 #line 10397 "configure"
10397 #include "confdefs.h"
10398 /* System header to define __stub macros and hopefully few prototypes,
10399     which can conflict with char $ac_func(); below.  */
10400 #include <assert.h>
10401 /* Override any gcc2 internal prototype to avoid an error.  */
10402 /* We use char because int might match the return type of a gcc2
10403     builtin and then its argument prototype would still apply.  */
10404 char $ac_func();
10405
10406 int main() {
10407
10408 /* The GNU C library defines this for functions which it implements
10409     to always fail with ENOSYS.  Some functions are actually named
10410     something starting with __ and the normal name is an alias.  */
10411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10412 choke me
10413 #else
10414 $ac_func();
10415 #endif
10416
10417 ; return 0; }
10418 EOF
10419 if { (eval echo configure:10420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10420   rm -rf conftest*
10421   eval "ac_cv_func_$ac_func=yes"
10422 else
10423   echo "configure: failed program was:" >&5
10424   cat conftest.$ac_ext >&5
10425   rm -rf conftest*
10426   eval "ac_cv_func_$ac_func=no"
10427 fi
10428 rm -f conftest*
10429 fi
10430
10431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10432   echo "$ac_t""yes" 1>&6
10433     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10434   cat >> confdefs.h <<EOF
10435 #define $ac_tr_func 1
10436 EOF
10437  
10438 else
10439   echo "$ac_t""no" 1>&6
10440 fi
10441 done
10442     
10443     fi
10444   fi
10445
10446   
10447   
10448   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
10449 echo "configure:10450: checking for copysign declaration" >&5
10450   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
10451     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
10452   echo $ac_n "(cached) $ac_c" 1>&6
10453 else
10454   
10455       
10456       ac_ext=C
10457 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10458 ac_cpp='$CXXCPP $CPPFLAGS'
10459 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10460 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10461 cross_compiling=$ac_cv_prog_cxx_cross
10462
10463       cat > conftest.$ac_ext <<EOF
10464 #line 10465 "configure"
10465 #include "confdefs.h"
10466 #include <math.h>
10467 int main() {
10468  copysign(0, 0);
10469 ; return 0; }
10470 EOF
10471 if { (eval echo configure:10472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10472   rm -rf conftest*
10473   glibcpp_cv_func_copysign_use=yes
10474 else
10475   echo "configure: failed program was:" >&5
10476   cat conftest.$ac_ext >&5
10477   rm -rf conftest*
10478   glibcpp_cv_func_copysign_use=no
10479 fi
10480 rm -f conftest*
10481       ac_ext=c
10482 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10483 ac_cpp='$CPP $CPPFLAGS'
10484 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10485 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10486 cross_compiling=$ac_cv_prog_cc_cross
10487
10488     
10489 fi
10490
10491   fi
10492   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
10493
10494   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
10495     for ac_func in copysign
10496 do
10497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10498 echo "configure:10499: checking for $ac_func" >&5
10499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10500   echo $ac_n "(cached) $ac_c" 1>&6
10501 else
10502   cat > conftest.$ac_ext <<EOF
10503 #line 10504 "configure"
10504 #include "confdefs.h"
10505 /* System header to define __stub macros and hopefully few prototypes,
10506     which can conflict with char $ac_func(); below.  */
10507 #include <assert.h>
10508 /* Override any gcc2 internal prototype to avoid an error.  */
10509 /* We use char because int might match the return type of a gcc2
10510     builtin and then its argument prototype would still apply.  */
10511 char $ac_func();
10512
10513 int main() {
10514
10515 /* The GNU C library defines this for functions which it implements
10516     to always fail with ENOSYS.  Some functions are actually named
10517     something starting with __ and the normal name is an alias.  */
10518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10519 choke me
10520 #else
10521 $ac_func();
10522 #endif
10523
10524 ; return 0; }
10525 EOF
10526 if { (eval echo configure:10527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10527   rm -rf conftest*
10528   eval "ac_cv_func_$ac_func=yes"
10529 else
10530   echo "configure: failed program was:" >&5
10531   cat conftest.$ac_ext >&5
10532   rm -rf conftest*
10533   eval "ac_cv_func_$ac_func=no"
10534 fi
10535 rm -f conftest*
10536 fi
10537
10538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10539   echo "$ac_t""yes" 1>&6
10540     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10541   cat >> confdefs.h <<EOF
10542 #define $ac_tr_func 1
10543 EOF
10544  
10545 else
10546   echo "$ac_t""no" 1>&6
10547 fi
10548 done
10549     
10550   else
10551     
10552   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
10553 echo "configure:10554: checking for _copysign declaration" >&5
10554   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
10555     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
10556   echo $ac_n "(cached) $ac_c" 1>&6
10557 else
10558   
10559       
10560       ac_ext=C
10561 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10562 ac_cpp='$CXXCPP $CPPFLAGS'
10563 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10564 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10565 cross_compiling=$ac_cv_prog_cxx_cross
10566
10567       cat > conftest.$ac_ext <<EOF
10568 #line 10569 "configure"
10569 #include "confdefs.h"
10570 #include <math.h>
10571 int main() {
10572  _copysign(0, 0);
10573 ; return 0; }
10574 EOF
10575 if { (eval echo configure:10576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10576   rm -rf conftest*
10577   glibcpp_cv_func__copysign_use=yes
10578 else
10579   echo "configure: failed program was:" >&5
10580   cat conftest.$ac_ext >&5
10581   rm -rf conftest*
10582   glibcpp_cv_func__copysign_use=no
10583 fi
10584 rm -f conftest*
10585       ac_ext=c
10586 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10587 ac_cpp='$CPP $CPPFLAGS'
10588 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10589 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10590 cross_compiling=$ac_cv_prog_cc_cross
10591
10592     
10593 fi
10594
10595   fi
10596   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
10597
10598     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
10599       for ac_func in _copysign
10600 do
10601 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10602 echo "configure:10603: checking for $ac_func" >&5
10603 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10604   echo $ac_n "(cached) $ac_c" 1>&6
10605 else
10606   cat > conftest.$ac_ext <<EOF
10607 #line 10608 "configure"
10608 #include "confdefs.h"
10609 /* System header to define __stub macros and hopefully few prototypes,
10610     which can conflict with char $ac_func(); below.  */
10611 #include <assert.h>
10612 /* Override any gcc2 internal prototype to avoid an error.  */
10613 /* We use char because int might match the return type of a gcc2
10614     builtin and then its argument prototype would still apply.  */
10615 char $ac_func();
10616
10617 int main() {
10618
10619 /* The GNU C library defines this for functions which it implements
10620     to always fail with ENOSYS.  Some functions are actually named
10621     something starting with __ and the normal name is an alias.  */
10622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10623 choke me
10624 #else
10625 $ac_func();
10626 #endif
10627
10628 ; return 0; }
10629 EOF
10630 if { (eval echo configure:10631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10631   rm -rf conftest*
10632   eval "ac_cv_func_$ac_func=yes"
10633 else
10634   echo "configure: failed program was:" >&5
10635   cat conftest.$ac_ext >&5
10636   rm -rf conftest*
10637   eval "ac_cv_func_$ac_func=no"
10638 fi
10639 rm -f conftest*
10640 fi
10641
10642 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10643   echo "$ac_t""yes" 1>&6
10644     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10645   cat >> confdefs.h <<EOF
10646 #define $ac_tr_func 1
10647 EOF
10648  
10649 else
10650   echo "$ac_t""no" 1>&6
10651 fi
10652 done
10653     
10654     fi
10655   fi
10656
10657   
10658   
10659   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
10660 echo "configure:10661: checking for sincos declaration" >&5
10661   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
10662     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
10663   echo $ac_n "(cached) $ac_c" 1>&6
10664 else
10665   
10666       
10667       ac_ext=C
10668 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10669 ac_cpp='$CXXCPP $CPPFLAGS'
10670 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10671 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10672 cross_compiling=$ac_cv_prog_cxx_cross
10673
10674       cat > conftest.$ac_ext <<EOF
10675 #line 10676 "configure"
10676 #include "confdefs.h"
10677 #include <math.h>
10678 int main() {
10679  sincos(0, 0, 0);
10680 ; return 0; }
10681 EOF
10682 if { (eval echo configure:10683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10683   rm -rf conftest*
10684   glibcpp_cv_func_sincos_use=yes
10685 else
10686   echo "configure: failed program was:" >&5
10687   cat conftest.$ac_ext >&5
10688   rm -rf conftest*
10689   glibcpp_cv_func_sincos_use=no
10690 fi
10691 rm -f conftest*
10692       ac_ext=c
10693 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10694 ac_cpp='$CPP $CPPFLAGS'
10695 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10696 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10697 cross_compiling=$ac_cv_prog_cc_cross
10698
10699     
10700 fi
10701
10702   fi
10703   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
10704
10705   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
10706     for ac_func in sincos
10707 do
10708 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10709 echo "configure:10710: checking for $ac_func" >&5
10710 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10711   echo $ac_n "(cached) $ac_c" 1>&6
10712 else
10713   cat > conftest.$ac_ext <<EOF
10714 #line 10715 "configure"
10715 #include "confdefs.h"
10716 /* System header to define __stub macros and hopefully few prototypes,
10717     which can conflict with char $ac_func(); below.  */
10718 #include <assert.h>
10719 /* Override any gcc2 internal prototype to avoid an error.  */
10720 /* We use char because int might match the return type of a gcc2
10721     builtin and then its argument prototype would still apply.  */
10722 char $ac_func();
10723
10724 int main() {
10725
10726 /* The GNU C library defines this for functions which it implements
10727     to always fail with ENOSYS.  Some functions are actually named
10728     something starting with __ and the normal name is an alias.  */
10729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10730 choke me
10731 #else
10732 $ac_func();
10733 #endif
10734
10735 ; return 0; }
10736 EOF
10737 if { (eval echo configure:10738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10738   rm -rf conftest*
10739   eval "ac_cv_func_$ac_func=yes"
10740 else
10741   echo "configure: failed program was:" >&5
10742   cat conftest.$ac_ext >&5
10743   rm -rf conftest*
10744   eval "ac_cv_func_$ac_func=no"
10745 fi
10746 rm -f conftest*
10747 fi
10748
10749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10750   echo "$ac_t""yes" 1>&6
10751     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10752   cat >> confdefs.h <<EOF
10753 #define $ac_tr_func 1
10754 EOF
10755  
10756 else
10757   echo "$ac_t""no" 1>&6
10758 fi
10759 done
10760     
10761   else
10762     
10763   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
10764 echo "configure:10765: checking for _sincos declaration" >&5
10765   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
10766     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
10767   echo $ac_n "(cached) $ac_c" 1>&6
10768 else
10769   
10770       
10771       ac_ext=C
10772 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10773 ac_cpp='$CXXCPP $CPPFLAGS'
10774 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10775 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10776 cross_compiling=$ac_cv_prog_cxx_cross
10777
10778       cat > conftest.$ac_ext <<EOF
10779 #line 10780 "configure"
10780 #include "confdefs.h"
10781 #include <math.h>
10782 int main() {
10783  _sincos(0, 0, 0);
10784 ; return 0; }
10785 EOF
10786 if { (eval echo configure:10787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10787   rm -rf conftest*
10788   glibcpp_cv_func__sincos_use=yes
10789 else
10790   echo "configure: failed program was:" >&5
10791   cat conftest.$ac_ext >&5
10792   rm -rf conftest*
10793   glibcpp_cv_func__sincos_use=no
10794 fi
10795 rm -f conftest*
10796       ac_ext=c
10797 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10798 ac_cpp='$CPP $CPPFLAGS'
10799 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10800 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10801 cross_compiling=$ac_cv_prog_cc_cross
10802
10803     
10804 fi
10805
10806   fi
10807   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
10808
10809     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
10810       for ac_func in _sincos
10811 do
10812 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10813 echo "configure:10814: checking for $ac_func" >&5
10814 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10815   echo $ac_n "(cached) $ac_c" 1>&6
10816 else
10817   cat > conftest.$ac_ext <<EOF
10818 #line 10819 "configure"
10819 #include "confdefs.h"
10820 /* System header to define __stub macros and hopefully few prototypes,
10821     which can conflict with char $ac_func(); below.  */
10822 #include <assert.h>
10823 /* Override any gcc2 internal prototype to avoid an error.  */
10824 /* We use char because int might match the return type of a gcc2
10825     builtin and then its argument prototype would still apply.  */
10826 char $ac_func();
10827
10828 int main() {
10829
10830 /* The GNU C library defines this for functions which it implements
10831     to always fail with ENOSYS.  Some functions are actually named
10832     something starting with __ and the normal name is an alias.  */
10833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10834 choke me
10835 #else
10836 $ac_func();
10837 #endif
10838
10839 ; return 0; }
10840 EOF
10841 if { (eval echo configure:10842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10842   rm -rf conftest*
10843   eval "ac_cv_func_$ac_func=yes"
10844 else
10845   echo "configure: failed program was:" >&5
10846   cat conftest.$ac_ext >&5
10847   rm -rf conftest*
10848   eval "ac_cv_func_$ac_func=no"
10849 fi
10850 rm -f conftest*
10851 fi
10852
10853 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10854   echo "$ac_t""yes" 1>&6
10855     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10856   cat >> confdefs.h <<EOF
10857 #define $ac_tr_func 1
10858 EOF
10859  
10860 else
10861   echo "$ac_t""no" 1>&6
10862 fi
10863 done
10864     
10865     fi
10866   fi
10867
10868   
10869   
10870   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
10871 echo "configure:10872: checking for fpclass declaration" >&5
10872   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
10873     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
10874   echo $ac_n "(cached) $ac_c" 1>&6
10875 else
10876   
10877       
10878       ac_ext=C
10879 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10880 ac_cpp='$CXXCPP $CPPFLAGS'
10881 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10882 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10883 cross_compiling=$ac_cv_prog_cxx_cross
10884
10885       cat > conftest.$ac_ext <<EOF
10886 #line 10887 "configure"
10887 #include "confdefs.h"
10888 #include <math.h>
10889                       #ifdef HAVE_IEEEFP_H
10890                       #include <ieeefp.h>
10891                       #endif
10892                      
10893 int main() {
10894  fpclass(0);
10895 ; return 0; }
10896 EOF
10897 if { (eval echo configure:10898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10898   rm -rf conftest*
10899   glibcpp_cv_func_fpclass_use=yes
10900 else
10901   echo "configure: failed program was:" >&5
10902   cat conftest.$ac_ext >&5
10903   rm -rf conftest*
10904   glibcpp_cv_func_fpclass_use=no
10905 fi
10906 rm -f conftest*
10907       ac_ext=c
10908 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10909 ac_cpp='$CPP $CPPFLAGS'
10910 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10911 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10912 cross_compiling=$ac_cv_prog_cc_cross
10913
10914     
10915 fi
10916
10917   fi
10918   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
10919
10920   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
10921     for ac_func in fpclass
10922 do
10923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10924 echo "configure:10925: checking for $ac_func" >&5
10925 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10926   echo $ac_n "(cached) $ac_c" 1>&6
10927 else
10928   cat > conftest.$ac_ext <<EOF
10929 #line 10930 "configure"
10930 #include "confdefs.h"
10931 /* System header to define __stub macros and hopefully few prototypes,
10932     which can conflict with char $ac_func(); below.  */
10933 #include <assert.h>
10934 /* Override any gcc2 internal prototype to avoid an error.  */
10935 /* We use char because int might match the return type of a gcc2
10936     builtin and then its argument prototype would still apply.  */
10937 char $ac_func();
10938
10939 int main() {
10940
10941 /* The GNU C library defines this for functions which it implements
10942     to always fail with ENOSYS.  Some functions are actually named
10943     something starting with __ and the normal name is an alias.  */
10944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10945 choke me
10946 #else
10947 $ac_func();
10948 #endif
10949
10950 ; return 0; }
10951 EOF
10952 if { (eval echo configure:10953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10953   rm -rf conftest*
10954   eval "ac_cv_func_$ac_func=yes"
10955 else
10956   echo "configure: failed program was:" >&5
10957   cat conftest.$ac_ext >&5
10958   rm -rf conftest*
10959   eval "ac_cv_func_$ac_func=no"
10960 fi
10961 rm -f conftest*
10962 fi
10963
10964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10965   echo "$ac_t""yes" 1>&6
10966     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10967   cat >> confdefs.h <<EOF
10968 #define $ac_tr_func 1
10969 EOF
10970  
10971 else
10972   echo "$ac_t""no" 1>&6
10973 fi
10974 done
10975     
10976   else
10977     
10978   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
10979 echo "configure:10980: checking for _fpclass declaration" >&5
10980   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
10981     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
10982   echo $ac_n "(cached) $ac_c" 1>&6
10983 else
10984   
10985       
10986       ac_ext=C
10987 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10988 ac_cpp='$CXXCPP $CPPFLAGS'
10989 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10990 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10991 cross_compiling=$ac_cv_prog_cxx_cross
10992
10993       cat > conftest.$ac_ext <<EOF
10994 #line 10995 "configure"
10995 #include "confdefs.h"
10996 #include <math.h>
10997                       #ifdef HAVE_IEEEFP_H
10998                       #include <ieeefp.h>
10999                       #endif
11000                      
11001 int main() {
11002  _fpclass(0);
11003 ; return 0; }
11004 EOF
11005 if { (eval echo configure:11006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11006   rm -rf conftest*
11007   glibcpp_cv_func__fpclass_use=yes
11008 else
11009   echo "configure: failed program was:" >&5
11010   cat conftest.$ac_ext >&5
11011   rm -rf conftest*
11012   glibcpp_cv_func__fpclass_use=no
11013 fi
11014 rm -f conftest*
11015       ac_ext=c
11016 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11017 ac_cpp='$CPP $CPPFLAGS'
11018 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11019 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11020 cross_compiling=$ac_cv_prog_cc_cross
11021
11022     
11023 fi
11024
11025   fi
11026   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
11027
11028     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
11029       for ac_func in _fpclass
11030 do
11031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11032 echo "configure:11033: checking for $ac_func" >&5
11033 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11034   echo $ac_n "(cached) $ac_c" 1>&6
11035 else
11036   cat > conftest.$ac_ext <<EOF
11037 #line 11038 "configure"
11038 #include "confdefs.h"
11039 /* System header to define __stub macros and hopefully few prototypes,
11040     which can conflict with char $ac_func(); below.  */
11041 #include <assert.h>
11042 /* Override any gcc2 internal prototype to avoid an error.  */
11043 /* We use char because int might match the return type of a gcc2
11044     builtin and then its argument prototype would still apply.  */
11045 char $ac_func();
11046
11047 int main() {
11048
11049 /* The GNU C library defines this for functions which it implements
11050     to always fail with ENOSYS.  Some functions are actually named
11051     something starting with __ and the normal name is an alias.  */
11052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11053 choke me
11054 #else
11055 $ac_func();
11056 #endif
11057
11058 ; return 0; }
11059 EOF
11060 if { (eval echo configure:11061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11061   rm -rf conftest*
11062   eval "ac_cv_func_$ac_func=yes"
11063 else
11064   echo "configure: failed program was:" >&5
11065   cat conftest.$ac_ext >&5
11066   rm -rf conftest*
11067   eval "ac_cv_func_$ac_func=no"
11068 fi
11069 rm -f conftest*
11070 fi
11071
11072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11073   echo "$ac_t""yes" 1>&6
11074     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11075   cat >> confdefs.h <<EOF
11076 #define $ac_tr_func 1
11077 EOF
11078  
11079 else
11080   echo "$ac_t""no" 1>&6
11081 fi
11082 done
11083     
11084     fi
11085   fi
11086
11087   
11088   
11089   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
11090 echo "configure:11091: checking for qfpclass declaration" >&5
11091   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
11092     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
11093   echo $ac_n "(cached) $ac_c" 1>&6
11094 else
11095   
11096       
11097       ac_ext=C
11098 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11099 ac_cpp='$CXXCPP $CPPFLAGS'
11100 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11101 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11102 cross_compiling=$ac_cv_prog_cxx_cross
11103
11104       cat > conftest.$ac_ext <<EOF
11105 #line 11106 "configure"
11106 #include "confdefs.h"
11107 #include <math.h>
11108                       #ifdef HAVE_IEEEFP_H
11109                       #include <ieeefp.h>
11110                       #endif
11111                      
11112 int main() {
11113  qfpclass(0);
11114 ; return 0; }
11115 EOF
11116 if { (eval echo configure:11117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11117   rm -rf conftest*
11118   glibcpp_cv_func_qfpclass_use=yes
11119 else
11120   echo "configure: failed program was:" >&5
11121   cat conftest.$ac_ext >&5
11122   rm -rf conftest*
11123   glibcpp_cv_func_qfpclass_use=no
11124 fi
11125 rm -f conftest*
11126       ac_ext=c
11127 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11128 ac_cpp='$CPP $CPPFLAGS'
11129 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11130 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11131 cross_compiling=$ac_cv_prog_cc_cross
11132
11133     
11134 fi
11135
11136   fi
11137   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
11138
11139   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
11140     for ac_func in qfpclass
11141 do
11142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11143 echo "configure:11144: checking for $ac_func" >&5
11144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11145   echo $ac_n "(cached) $ac_c" 1>&6
11146 else
11147   cat > conftest.$ac_ext <<EOF
11148 #line 11149 "configure"
11149 #include "confdefs.h"
11150 /* System header to define __stub macros and hopefully few prototypes,
11151     which can conflict with char $ac_func(); below.  */
11152 #include <assert.h>
11153 /* Override any gcc2 internal prototype to avoid an error.  */
11154 /* We use char because int might match the return type of a gcc2
11155     builtin and then its argument prototype would still apply.  */
11156 char $ac_func();
11157
11158 int main() {
11159
11160 /* The GNU C library defines this for functions which it implements
11161     to always fail with ENOSYS.  Some functions are actually named
11162     something starting with __ and the normal name is an alias.  */
11163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11164 choke me
11165 #else
11166 $ac_func();
11167 #endif
11168
11169 ; return 0; }
11170 EOF
11171 if { (eval echo configure:11172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11172   rm -rf conftest*
11173   eval "ac_cv_func_$ac_func=yes"
11174 else
11175   echo "configure: failed program was:" >&5
11176   cat conftest.$ac_ext >&5
11177   rm -rf conftest*
11178   eval "ac_cv_func_$ac_func=no"
11179 fi
11180 rm -f conftest*
11181 fi
11182
11183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11184   echo "$ac_t""yes" 1>&6
11185     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11186   cat >> confdefs.h <<EOF
11187 #define $ac_tr_func 1
11188 EOF
11189  
11190 else
11191   echo "$ac_t""no" 1>&6
11192 fi
11193 done
11194     
11195   else
11196     
11197   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
11198 echo "configure:11199: checking for _qfpclass declaration" >&5
11199   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
11200     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
11201   echo $ac_n "(cached) $ac_c" 1>&6
11202 else
11203   
11204       
11205       ac_ext=C
11206 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11207 ac_cpp='$CXXCPP $CPPFLAGS'
11208 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11209 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11210 cross_compiling=$ac_cv_prog_cxx_cross
11211
11212       cat > conftest.$ac_ext <<EOF
11213 #line 11214 "configure"
11214 #include "confdefs.h"
11215 #include <math.h>
11216                       #ifdef HAVE_IEEEFP_H
11217                       #include <ieeefp.h>
11218                       #endif
11219                      
11220 int main() {
11221  _qfpclass(0);
11222 ; return 0; }
11223 EOF
11224 if { (eval echo configure:11225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11225   rm -rf conftest*
11226   glibcpp_cv_func__qfpclass_use=yes
11227 else
11228   echo "configure: failed program was:" >&5
11229   cat conftest.$ac_ext >&5
11230   rm -rf conftest*
11231   glibcpp_cv_func__qfpclass_use=no
11232 fi
11233 rm -f conftest*
11234       ac_ext=c
11235 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11236 ac_cpp='$CPP $CPPFLAGS'
11237 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11238 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11239 cross_compiling=$ac_cv_prog_cc_cross
11240
11241     
11242 fi
11243
11244   fi
11245   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
11246
11247     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
11248       for ac_func in _qfpclass
11249 do
11250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11251 echo "configure:11252: checking for $ac_func" >&5
11252 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11253   echo $ac_n "(cached) $ac_c" 1>&6
11254 else
11255   cat > conftest.$ac_ext <<EOF
11256 #line 11257 "configure"
11257 #include "confdefs.h"
11258 /* System header to define __stub macros and hopefully few prototypes,
11259     which can conflict with char $ac_func(); below.  */
11260 #include <assert.h>
11261 /* Override any gcc2 internal prototype to avoid an error.  */
11262 /* We use char because int might match the return type of a gcc2
11263     builtin and then its argument prototype would still apply.  */
11264 char $ac_func();
11265
11266 int main() {
11267
11268 /* The GNU C library defines this for functions which it implements
11269     to always fail with ENOSYS.  Some functions are actually named
11270     something starting with __ and the normal name is an alias.  */
11271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11272 choke me
11273 #else
11274 $ac_func();
11275 #endif
11276
11277 ; return 0; }
11278 EOF
11279 if { (eval echo configure:11280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11280   rm -rf conftest*
11281   eval "ac_cv_func_$ac_func=yes"
11282 else
11283   echo "configure: failed program was:" >&5
11284   cat conftest.$ac_ext >&5
11285   rm -rf conftest*
11286   eval "ac_cv_func_$ac_func=no"
11287 fi
11288 rm -f conftest*
11289 fi
11290
11291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11292   echo "$ac_t""yes" 1>&6
11293     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11294   cat >> confdefs.h <<EOF
11295 #define $ac_tr_func 1
11296 EOF
11297  
11298 else
11299   echo "$ac_t""no" 1>&6
11300 fi
11301 done
11302     
11303     fi
11304   fi
11305
11306   
11307   
11308   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
11309 echo "configure:11310: checking for hypot declaration" >&5
11310   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
11311     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
11312   echo $ac_n "(cached) $ac_c" 1>&6
11313 else
11314   
11315       
11316       ac_ext=C
11317 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11318 ac_cpp='$CXXCPP $CPPFLAGS'
11319 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11320 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11321 cross_compiling=$ac_cv_prog_cxx_cross
11322
11323       cat > conftest.$ac_ext <<EOF
11324 #line 11325 "configure"
11325 #include "confdefs.h"
11326 #include <math.h>
11327 int main() {
11328  hypot(0, 0);
11329 ; return 0; }
11330 EOF
11331 if { (eval echo configure:11332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11332   rm -rf conftest*
11333   glibcpp_cv_func_hypot_use=yes
11334 else
11335   echo "configure: failed program was:" >&5
11336   cat conftest.$ac_ext >&5
11337   rm -rf conftest*
11338   glibcpp_cv_func_hypot_use=no
11339 fi
11340 rm -f conftest*
11341       ac_ext=c
11342 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11343 ac_cpp='$CPP $CPPFLAGS'
11344 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11345 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11346 cross_compiling=$ac_cv_prog_cc_cross
11347
11348     
11349 fi
11350
11351   fi
11352   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
11353
11354   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
11355     for ac_func in hypot
11356 do
11357 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11358 echo "configure:11359: checking for $ac_func" >&5
11359 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11360   echo $ac_n "(cached) $ac_c" 1>&6
11361 else
11362   cat > conftest.$ac_ext <<EOF
11363 #line 11364 "configure"
11364 #include "confdefs.h"
11365 /* System header to define __stub macros and hopefully few prototypes,
11366     which can conflict with char $ac_func(); below.  */
11367 #include <assert.h>
11368 /* Override any gcc2 internal prototype to avoid an error.  */
11369 /* We use char because int might match the return type of a gcc2
11370     builtin and then its argument prototype would still apply.  */
11371 char $ac_func();
11372
11373 int main() {
11374
11375 /* The GNU C library defines this for functions which it implements
11376     to always fail with ENOSYS.  Some functions are actually named
11377     something starting with __ and the normal name is an alias.  */
11378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11379 choke me
11380 #else
11381 $ac_func();
11382 #endif
11383
11384 ; return 0; }
11385 EOF
11386 if { (eval echo configure:11387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11387   rm -rf conftest*
11388   eval "ac_cv_func_$ac_func=yes"
11389 else
11390   echo "configure: failed program was:" >&5
11391   cat conftest.$ac_ext >&5
11392   rm -rf conftest*
11393   eval "ac_cv_func_$ac_func=no"
11394 fi
11395 rm -f conftest*
11396 fi
11397
11398 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11399   echo "$ac_t""yes" 1>&6
11400     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11401   cat >> confdefs.h <<EOF
11402 #define $ac_tr_func 1
11403 EOF
11404  
11405 else
11406   echo "$ac_t""no" 1>&6
11407 fi
11408 done
11409     
11410   else
11411     
11412   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
11413 echo "configure:11414: checking for _hypot declaration" >&5
11414   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
11415     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
11416   echo $ac_n "(cached) $ac_c" 1>&6
11417 else
11418   
11419       
11420       ac_ext=C
11421 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11422 ac_cpp='$CXXCPP $CPPFLAGS'
11423 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11424 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11425 cross_compiling=$ac_cv_prog_cxx_cross
11426
11427       cat > conftest.$ac_ext <<EOF
11428 #line 11429 "configure"
11429 #include "confdefs.h"
11430 #include <math.h>
11431 int main() {
11432  _hypot(0, 0);
11433 ; return 0; }
11434 EOF
11435 if { (eval echo configure:11436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11436   rm -rf conftest*
11437   glibcpp_cv_func__hypot_use=yes
11438 else
11439   echo "configure: failed program was:" >&5
11440   cat conftest.$ac_ext >&5
11441   rm -rf conftest*
11442   glibcpp_cv_func__hypot_use=no
11443 fi
11444 rm -f conftest*
11445       ac_ext=c
11446 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11447 ac_cpp='$CPP $CPPFLAGS'
11448 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11449 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11450 cross_compiling=$ac_cv_prog_cc_cross
11451
11452     
11453 fi
11454
11455   fi
11456   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
11457
11458     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
11459       for ac_func in _hypot
11460 do
11461 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11462 echo "configure:11463: checking for $ac_func" >&5
11463 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11464   echo $ac_n "(cached) $ac_c" 1>&6
11465 else
11466   cat > conftest.$ac_ext <<EOF
11467 #line 11468 "configure"
11468 #include "confdefs.h"
11469 /* System header to define __stub macros and hopefully few prototypes,
11470     which can conflict with char $ac_func(); below.  */
11471 #include <assert.h>
11472 /* Override any gcc2 internal prototype to avoid an error.  */
11473 /* We use char because int might match the return type of a gcc2
11474     builtin and then its argument prototype would still apply.  */
11475 char $ac_func();
11476
11477 int main() {
11478
11479 /* The GNU C library defines this for functions which it implements
11480     to always fail with ENOSYS.  Some functions are actually named
11481     something starting with __ and the normal name is an alias.  */
11482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11483 choke me
11484 #else
11485 $ac_func();
11486 #endif
11487
11488 ; return 0; }
11489 EOF
11490 if { (eval echo configure:11491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11491   rm -rf conftest*
11492   eval "ac_cv_func_$ac_func=yes"
11493 else
11494   echo "configure: failed program was:" >&5
11495   cat conftest.$ac_ext >&5
11496   rm -rf conftest*
11497   eval "ac_cv_func_$ac_func=no"
11498 fi
11499 rm -f conftest*
11500 fi
11501
11502 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11503   echo "$ac_t""yes" 1>&6
11504     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11505   cat >> confdefs.h <<EOF
11506 #define $ac_tr_func 1
11507 EOF
11508  
11509 else
11510   echo "$ac_t""no" 1>&6
11511 fi
11512 done
11513     
11514     fi
11515   fi
11516
11517
11518     
11519   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
11520 echo "configure:11521: checking for float trig functions" >&5
11521   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
11522   echo $ac_n "(cached) $ac_c" 1>&6
11523 else
11524   
11525     
11526     ac_ext=C
11527 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11528 ac_cpp='$CXXCPP $CPPFLAGS'
11529 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11530 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11531 cross_compiling=$ac_cv_prog_cxx_cross
11532
11533     cat > conftest.$ac_ext <<EOF
11534 #line 11535 "configure"
11535 #include "confdefs.h"
11536 #include <math.h>
11537 int main() {
11538  `for x in acosf asinf atanf \
11539                                           cosf sinf tanf \
11540                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
11541 ; return 0; }
11542 EOF
11543 if { (eval echo configure:11544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11544   rm -rf conftest*
11545   glibcpp_cv_func_float_trig_use=yes
11546 else
11547   echo "configure: failed program was:" >&5
11548   cat conftest.$ac_ext >&5
11549   rm -rf conftest*
11550   glibcpp_cv_func_float_trig_use=no
11551 fi
11552 rm -f conftest*
11553     ac_ext=c
11554 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11555 ac_cpp='$CPP $CPPFLAGS'
11556 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11557 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11558 cross_compiling=$ac_cv_prog_cc_cross
11559
11560 fi
11561
11562   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
11563   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
11564     for ac_func in acosf asinf atanf \
11565                                           cosf sinf tanf \
11566                                           coshf sinhf tanhf
11567 do
11568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11569 echo "configure:11570: checking for $ac_func" >&5
11570 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11571   echo $ac_n "(cached) $ac_c" 1>&6
11572 else
11573   cat > conftest.$ac_ext <<EOF
11574 #line 11575 "configure"
11575 #include "confdefs.h"
11576 /* System header to define __stub macros and hopefully few prototypes,
11577     which can conflict with char $ac_func(); below.  */
11578 #include <assert.h>
11579 /* Override any gcc2 internal prototype to avoid an error.  */
11580 /* We use char because int might match the return type of a gcc2
11581     builtin and then its argument prototype would still apply.  */
11582 char $ac_func();
11583
11584 int main() {
11585
11586 /* The GNU C library defines this for functions which it implements
11587     to always fail with ENOSYS.  Some functions are actually named
11588     something starting with __ and the normal name is an alias.  */
11589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11590 choke me
11591 #else
11592 $ac_func();
11593 #endif
11594
11595 ; return 0; }
11596 EOF
11597 if { (eval echo configure:11598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11598   rm -rf conftest*
11599   eval "ac_cv_func_$ac_func=yes"
11600 else
11601   echo "configure: failed program was:" >&5
11602   cat conftest.$ac_ext >&5
11603   rm -rf conftest*
11604   eval "ac_cv_func_$ac_func=no"
11605 fi
11606 rm -f conftest*
11607 fi
11608
11609 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11610   echo "$ac_t""yes" 1>&6
11611     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11612   cat >> confdefs.h <<EOF
11613 #define $ac_tr_func 1
11614 EOF
11615  
11616 else
11617   echo "$ac_t""no" 1>&6
11618 fi
11619 done
11620
11621   fi
11622
11623   
11624   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
11625 echo "configure:11626: checking for float round functions" >&5
11626   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
11627   echo $ac_n "(cached) $ac_c" 1>&6
11628 else
11629   
11630     
11631     ac_ext=C
11632 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11633 ac_cpp='$CXXCPP $CPPFLAGS'
11634 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11635 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11636 cross_compiling=$ac_cv_prog_cxx_cross
11637
11638     cat > conftest.$ac_ext <<EOF
11639 #line 11640 "configure"
11640 #include "confdefs.h"
11641 #include <math.h>
11642 int main() {
11643  `for x in ceilf floorf; do echo "$x (0);"; done` 
11644 ; return 0; }
11645 EOF
11646 if { (eval echo configure:11647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11647   rm -rf conftest*
11648   glibcpp_cv_func_float_round_use=yes
11649 else
11650   echo "configure: failed program was:" >&5
11651   cat conftest.$ac_ext >&5
11652   rm -rf conftest*
11653   glibcpp_cv_func_float_round_use=no
11654 fi
11655 rm -f conftest*
11656     ac_ext=c
11657 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11658 ac_cpp='$CPP $CPPFLAGS'
11659 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11660 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11661 cross_compiling=$ac_cv_prog_cc_cross
11662
11663 fi
11664
11665   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
11666   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
11667     for ac_func in ceilf floorf
11668 do
11669 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11670 echo "configure:11671: checking for $ac_func" >&5
11671 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11672   echo $ac_n "(cached) $ac_c" 1>&6
11673 else
11674   cat > conftest.$ac_ext <<EOF
11675 #line 11676 "configure"
11676 #include "confdefs.h"
11677 /* System header to define __stub macros and hopefully few prototypes,
11678     which can conflict with char $ac_func(); below.  */
11679 #include <assert.h>
11680 /* Override any gcc2 internal prototype to avoid an error.  */
11681 /* We use char because int might match the return type of a gcc2
11682     builtin and then its argument prototype would still apply.  */
11683 char $ac_func();
11684
11685 int main() {
11686
11687 /* The GNU C library defines this for functions which it implements
11688     to always fail with ENOSYS.  Some functions are actually named
11689     something starting with __ and the normal name is an alias.  */
11690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11691 choke me
11692 #else
11693 $ac_func();
11694 #endif
11695
11696 ; return 0; }
11697 EOF
11698 if { (eval echo configure:11699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11699   rm -rf conftest*
11700   eval "ac_cv_func_$ac_func=yes"
11701 else
11702   echo "configure: failed program was:" >&5
11703   cat conftest.$ac_ext >&5
11704   rm -rf conftest*
11705   eval "ac_cv_func_$ac_func=no"
11706 fi
11707 rm -f conftest*
11708 fi
11709
11710 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11711   echo "$ac_t""yes" 1>&6
11712     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11713   cat >> confdefs.h <<EOF
11714 #define $ac_tr_func 1
11715 EOF
11716  
11717 else
11718   echo "$ac_t""no" 1>&6
11719 fi
11720 done
11721
11722   fi
11723
11724   
11725   
11726   echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
11727 echo "configure:11728: checking for expf declaration" >&5
11728   if test x${glibcpp_cv_func_expf_use+set} != xset; then
11729     if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
11730   echo $ac_n "(cached) $ac_c" 1>&6
11731 else
11732   
11733       
11734       ac_ext=C
11735 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11736 ac_cpp='$CXXCPP $CPPFLAGS'
11737 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11738 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11739 cross_compiling=$ac_cv_prog_cxx_cross
11740
11741       cat > conftest.$ac_ext <<EOF
11742 #line 11743 "configure"
11743 #include "confdefs.h"
11744 #include <math.h>
11745                       #ifdef HAVE_IEEEFP_H
11746                       #include <ieeefp.h>
11747                       #endif
11748                      
11749 int main() {
11750  expf(0);
11751 ; return 0; }
11752 EOF
11753 if { (eval echo configure:11754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11754   rm -rf conftest*
11755   glibcpp_cv_func_expf_use=yes
11756 else
11757   echo "configure: failed program was:" >&5
11758   cat conftest.$ac_ext >&5
11759   rm -rf conftest*
11760   glibcpp_cv_func_expf_use=no
11761 fi
11762 rm -f conftest*
11763       ac_ext=c
11764 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11765 ac_cpp='$CPP $CPPFLAGS'
11766 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11767 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11768 cross_compiling=$ac_cv_prog_cc_cross
11769
11770     
11771 fi
11772
11773   fi
11774   echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
11775
11776   if test x$glibcpp_cv_func_expf_use = x"yes"; then
11777     for ac_func in expf
11778 do
11779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11780 echo "configure:11781: checking for $ac_func" >&5
11781 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11782   echo $ac_n "(cached) $ac_c" 1>&6
11783 else
11784   cat > conftest.$ac_ext <<EOF
11785 #line 11786 "configure"
11786 #include "confdefs.h"
11787 /* System header to define __stub macros and hopefully few prototypes,
11788     which can conflict with char $ac_func(); below.  */
11789 #include <assert.h>
11790 /* Override any gcc2 internal prototype to avoid an error.  */
11791 /* We use char because int might match the return type of a gcc2
11792     builtin and then its argument prototype would still apply.  */
11793 char $ac_func();
11794
11795 int main() {
11796
11797 /* The GNU C library defines this for functions which it implements
11798     to always fail with ENOSYS.  Some functions are actually named
11799     something starting with __ and the normal name is an alias.  */
11800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11801 choke me
11802 #else
11803 $ac_func();
11804 #endif
11805
11806 ; return 0; }
11807 EOF
11808 if { (eval echo configure:11809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11809   rm -rf conftest*
11810   eval "ac_cv_func_$ac_func=yes"
11811 else
11812   echo "configure: failed program was:" >&5
11813   cat conftest.$ac_ext >&5
11814   rm -rf conftest*
11815   eval "ac_cv_func_$ac_func=no"
11816 fi
11817 rm -f conftest*
11818 fi
11819
11820 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11821   echo "$ac_t""yes" 1>&6
11822     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11823   cat >> confdefs.h <<EOF
11824 #define $ac_tr_func 1
11825 EOF
11826  
11827 else
11828   echo "$ac_t""no" 1>&6
11829 fi
11830 done
11831     
11832   else
11833     
11834   echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
11835 echo "configure:11836: checking for _expf declaration" >&5
11836   if test x${glibcpp_cv_func__expf_use+set} != xset; then
11837     if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
11838   echo $ac_n "(cached) $ac_c" 1>&6
11839 else
11840   
11841       
11842       ac_ext=C
11843 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11844 ac_cpp='$CXXCPP $CPPFLAGS'
11845 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11846 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11847 cross_compiling=$ac_cv_prog_cxx_cross
11848
11849       cat > conftest.$ac_ext <<EOF
11850 #line 11851 "configure"
11851 #include "confdefs.h"
11852 #include <math.h>
11853                       #ifdef HAVE_IEEEFP_H
11854                       #include <ieeefp.h>
11855                       #endif
11856                      
11857 int main() {
11858  _expf(0);
11859 ; return 0; }
11860 EOF
11861 if { (eval echo configure:11862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11862   rm -rf conftest*
11863   glibcpp_cv_func__expf_use=yes
11864 else
11865   echo "configure: failed program was:" >&5
11866   cat conftest.$ac_ext >&5
11867   rm -rf conftest*
11868   glibcpp_cv_func__expf_use=no
11869 fi
11870 rm -f conftest*
11871       ac_ext=c
11872 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11873 ac_cpp='$CPP $CPPFLAGS'
11874 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11875 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11876 cross_compiling=$ac_cv_prog_cc_cross
11877
11878     
11879 fi
11880
11881   fi
11882   echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
11883
11884     if test x$glibcpp_cv_func__expf_use = x"yes"; then
11885       for ac_func in _expf
11886 do
11887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11888 echo "configure:11889: checking for $ac_func" >&5
11889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11890   echo $ac_n "(cached) $ac_c" 1>&6
11891 else
11892   cat > conftest.$ac_ext <<EOF
11893 #line 11894 "configure"
11894 #include "confdefs.h"
11895 /* System header to define __stub macros and hopefully few prototypes,
11896     which can conflict with char $ac_func(); below.  */
11897 #include <assert.h>
11898 /* Override any gcc2 internal prototype to avoid an error.  */
11899 /* We use char because int might match the return type of a gcc2
11900     builtin and then its argument prototype would still apply.  */
11901 char $ac_func();
11902
11903 int main() {
11904
11905 /* The GNU C library defines this for functions which it implements
11906     to always fail with ENOSYS.  Some functions are actually named
11907     something starting with __ and the normal name is an alias.  */
11908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11909 choke me
11910 #else
11911 $ac_func();
11912 #endif
11913
11914 ; return 0; }
11915 EOF
11916 if { (eval echo configure:11917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11917   rm -rf conftest*
11918   eval "ac_cv_func_$ac_func=yes"
11919 else
11920   echo "configure: failed program was:" >&5
11921   cat conftest.$ac_ext >&5
11922   rm -rf conftest*
11923   eval "ac_cv_func_$ac_func=no"
11924 fi
11925 rm -f conftest*
11926 fi
11927
11928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11929   echo "$ac_t""yes" 1>&6
11930     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11931   cat >> confdefs.h <<EOF
11932 #define $ac_tr_func 1
11933 EOF
11934  
11935 else
11936   echo "$ac_t""no" 1>&6
11937 fi
11938 done
11939     
11940     fi
11941   fi
11942
11943   
11944   
11945   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
11946 echo "configure:11947: checking for isnanf declaration" >&5
11947   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
11948     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
11949   echo $ac_n "(cached) $ac_c" 1>&6
11950 else
11951   
11952       
11953       ac_ext=C
11954 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11955 ac_cpp='$CXXCPP $CPPFLAGS'
11956 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11957 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11958 cross_compiling=$ac_cv_prog_cxx_cross
11959
11960       cat > conftest.$ac_ext <<EOF
11961 #line 11962 "configure"
11962 #include "confdefs.h"
11963 #include <math.h>
11964                       #ifdef HAVE_IEEEFP_H
11965                       #include <ieeefp.h>
11966                       #endif
11967                      
11968 int main() {
11969  isnanf(0);
11970 ; return 0; }
11971 EOF
11972 if { (eval echo configure:11973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11973   rm -rf conftest*
11974   glibcpp_cv_func_isnanf_use=yes
11975 else
11976   echo "configure: failed program was:" >&5
11977   cat conftest.$ac_ext >&5
11978   rm -rf conftest*
11979   glibcpp_cv_func_isnanf_use=no
11980 fi
11981 rm -f conftest*
11982       ac_ext=c
11983 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11984 ac_cpp='$CPP $CPPFLAGS'
11985 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11986 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11987 cross_compiling=$ac_cv_prog_cc_cross
11988
11989     
11990 fi
11991
11992   fi
11993   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
11994
11995   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
11996     for ac_func in isnanf
11997 do
11998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11999 echo "configure:12000: checking for $ac_func" >&5
12000 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12001   echo $ac_n "(cached) $ac_c" 1>&6
12002 else
12003   cat > conftest.$ac_ext <<EOF
12004 #line 12005 "configure"
12005 #include "confdefs.h"
12006 /* System header to define __stub macros and hopefully few prototypes,
12007     which can conflict with char $ac_func(); below.  */
12008 #include <assert.h>
12009 /* Override any gcc2 internal prototype to avoid an error.  */
12010 /* We use char because int might match the return type of a gcc2
12011     builtin and then its argument prototype would still apply.  */
12012 char $ac_func();
12013
12014 int main() {
12015
12016 /* The GNU C library defines this for functions which it implements
12017     to always fail with ENOSYS.  Some functions are actually named
12018     something starting with __ and the normal name is an alias.  */
12019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12020 choke me
12021 #else
12022 $ac_func();
12023 #endif
12024
12025 ; return 0; }
12026 EOF
12027 if { (eval echo configure:12028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12028   rm -rf conftest*
12029   eval "ac_cv_func_$ac_func=yes"
12030 else
12031   echo "configure: failed program was:" >&5
12032   cat conftest.$ac_ext >&5
12033   rm -rf conftest*
12034   eval "ac_cv_func_$ac_func=no"
12035 fi
12036 rm -f conftest*
12037 fi
12038
12039 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12040   echo "$ac_t""yes" 1>&6
12041     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12042   cat >> confdefs.h <<EOF
12043 #define $ac_tr_func 1
12044 EOF
12045  
12046 else
12047   echo "$ac_t""no" 1>&6
12048 fi
12049 done
12050     
12051   else
12052     
12053   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
12054 echo "configure:12055: checking for _isnanf declaration" >&5
12055   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
12056     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
12057   echo $ac_n "(cached) $ac_c" 1>&6
12058 else
12059   
12060       
12061       ac_ext=C
12062 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12063 ac_cpp='$CXXCPP $CPPFLAGS'
12064 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12065 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12066 cross_compiling=$ac_cv_prog_cxx_cross
12067
12068       cat > conftest.$ac_ext <<EOF
12069 #line 12070 "configure"
12070 #include "confdefs.h"
12071 #include <math.h>
12072                       #ifdef HAVE_IEEEFP_H
12073                       #include <ieeefp.h>
12074                       #endif
12075                      
12076 int main() {
12077  _isnanf(0);
12078 ; return 0; }
12079 EOF
12080 if { (eval echo configure:12081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12081   rm -rf conftest*
12082   glibcpp_cv_func__isnanf_use=yes
12083 else
12084   echo "configure: failed program was:" >&5
12085   cat conftest.$ac_ext >&5
12086   rm -rf conftest*
12087   glibcpp_cv_func__isnanf_use=no
12088 fi
12089 rm -f conftest*
12090       ac_ext=c
12091 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12092 ac_cpp='$CPP $CPPFLAGS'
12093 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12094 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12095 cross_compiling=$ac_cv_prog_cc_cross
12096
12097     
12098 fi
12099
12100   fi
12101   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
12102
12103     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
12104       for ac_func in _isnanf
12105 do
12106 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12107 echo "configure:12108: checking for $ac_func" >&5
12108 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12109   echo $ac_n "(cached) $ac_c" 1>&6
12110 else
12111   cat > conftest.$ac_ext <<EOF
12112 #line 12113 "configure"
12113 #include "confdefs.h"
12114 /* System header to define __stub macros and hopefully few prototypes,
12115     which can conflict with char $ac_func(); below.  */
12116 #include <assert.h>
12117 /* Override any gcc2 internal prototype to avoid an error.  */
12118 /* We use char because int might match the return type of a gcc2
12119     builtin and then its argument prototype would still apply.  */
12120 char $ac_func();
12121
12122 int main() {
12123
12124 /* The GNU C library defines this for functions which it implements
12125     to always fail with ENOSYS.  Some functions are actually named
12126     something starting with __ and the normal name is an alias.  */
12127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12128 choke me
12129 #else
12130 $ac_func();
12131 #endif
12132
12133 ; return 0; }
12134 EOF
12135 if { (eval echo configure:12136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12136   rm -rf conftest*
12137   eval "ac_cv_func_$ac_func=yes"
12138 else
12139   echo "configure: failed program was:" >&5
12140   cat conftest.$ac_ext >&5
12141   rm -rf conftest*
12142   eval "ac_cv_func_$ac_func=no"
12143 fi
12144 rm -f conftest*
12145 fi
12146
12147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12148   echo "$ac_t""yes" 1>&6
12149     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12150   cat >> confdefs.h <<EOF
12151 #define $ac_tr_func 1
12152 EOF
12153  
12154 else
12155   echo "$ac_t""no" 1>&6
12156 fi
12157 done
12158     
12159     fi
12160   fi
12161
12162   
12163   
12164   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
12165 echo "configure:12166: checking for isinff declaration" >&5
12166   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
12167     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
12168   echo $ac_n "(cached) $ac_c" 1>&6
12169 else
12170   
12171       
12172       ac_ext=C
12173 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12174 ac_cpp='$CXXCPP $CPPFLAGS'
12175 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12176 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12177 cross_compiling=$ac_cv_prog_cxx_cross
12178
12179       cat > conftest.$ac_ext <<EOF
12180 #line 12181 "configure"
12181 #include "confdefs.h"
12182 #include <math.h>
12183                       #ifdef HAVE_IEEEFP_H
12184                       #include <ieeefp.h>
12185                       #endif
12186                      
12187 int main() {
12188  isinff(0);
12189 ; return 0; }
12190 EOF
12191 if { (eval echo configure:12192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12192   rm -rf conftest*
12193   glibcpp_cv_func_isinff_use=yes
12194 else
12195   echo "configure: failed program was:" >&5
12196   cat conftest.$ac_ext >&5
12197   rm -rf conftest*
12198   glibcpp_cv_func_isinff_use=no
12199 fi
12200 rm -f conftest*
12201       ac_ext=c
12202 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12203 ac_cpp='$CPP $CPPFLAGS'
12204 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12205 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12206 cross_compiling=$ac_cv_prog_cc_cross
12207
12208     
12209 fi
12210
12211   fi
12212   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
12213
12214   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
12215     for ac_func in isinff
12216 do
12217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12218 echo "configure:12219: checking for $ac_func" >&5
12219 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12220   echo $ac_n "(cached) $ac_c" 1>&6
12221 else
12222   cat > conftest.$ac_ext <<EOF
12223 #line 12224 "configure"
12224 #include "confdefs.h"
12225 /* System header to define __stub macros and hopefully few prototypes,
12226     which can conflict with char $ac_func(); below.  */
12227 #include <assert.h>
12228 /* Override any gcc2 internal prototype to avoid an error.  */
12229 /* We use char because int might match the return type of a gcc2
12230     builtin and then its argument prototype would still apply.  */
12231 char $ac_func();
12232
12233 int main() {
12234
12235 /* The GNU C library defines this for functions which it implements
12236     to always fail with ENOSYS.  Some functions are actually named
12237     something starting with __ and the normal name is an alias.  */
12238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12239 choke me
12240 #else
12241 $ac_func();
12242 #endif
12243
12244 ; return 0; }
12245 EOF
12246 if { (eval echo configure:12247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12247   rm -rf conftest*
12248   eval "ac_cv_func_$ac_func=yes"
12249 else
12250   echo "configure: failed program was:" >&5
12251   cat conftest.$ac_ext >&5
12252   rm -rf conftest*
12253   eval "ac_cv_func_$ac_func=no"
12254 fi
12255 rm -f conftest*
12256 fi
12257
12258 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12259   echo "$ac_t""yes" 1>&6
12260     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12261   cat >> confdefs.h <<EOF
12262 #define $ac_tr_func 1
12263 EOF
12264  
12265 else
12266   echo "$ac_t""no" 1>&6
12267 fi
12268 done
12269     
12270   else
12271     
12272   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
12273 echo "configure:12274: checking for _isinff declaration" >&5
12274   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
12275     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
12276   echo $ac_n "(cached) $ac_c" 1>&6
12277 else
12278   
12279       
12280       ac_ext=C
12281 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12282 ac_cpp='$CXXCPP $CPPFLAGS'
12283 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12284 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12285 cross_compiling=$ac_cv_prog_cxx_cross
12286
12287       cat > conftest.$ac_ext <<EOF
12288 #line 12289 "configure"
12289 #include "confdefs.h"
12290 #include <math.h>
12291                       #ifdef HAVE_IEEEFP_H
12292                       #include <ieeefp.h>
12293                       #endif
12294                      
12295 int main() {
12296  _isinff(0);
12297 ; return 0; }
12298 EOF
12299 if { (eval echo configure:12300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12300   rm -rf conftest*
12301   glibcpp_cv_func__isinff_use=yes
12302 else
12303   echo "configure: failed program was:" >&5
12304   cat conftest.$ac_ext >&5
12305   rm -rf conftest*
12306   glibcpp_cv_func__isinff_use=no
12307 fi
12308 rm -f conftest*
12309       ac_ext=c
12310 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12311 ac_cpp='$CPP $CPPFLAGS'
12312 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12313 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12314 cross_compiling=$ac_cv_prog_cc_cross
12315
12316     
12317 fi
12318
12319   fi
12320   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
12321
12322     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
12323       for ac_func in _isinff
12324 do
12325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12326 echo "configure:12327: checking for $ac_func" >&5
12327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12328   echo $ac_n "(cached) $ac_c" 1>&6
12329 else
12330   cat > conftest.$ac_ext <<EOF
12331 #line 12332 "configure"
12332 #include "confdefs.h"
12333 /* System header to define __stub macros and hopefully few prototypes,
12334     which can conflict with char $ac_func(); below.  */
12335 #include <assert.h>
12336 /* Override any gcc2 internal prototype to avoid an error.  */
12337 /* We use char because int might match the return type of a gcc2
12338     builtin and then its argument prototype would still apply.  */
12339 char $ac_func();
12340
12341 int main() {
12342
12343 /* The GNU C library defines this for functions which it implements
12344     to always fail with ENOSYS.  Some functions are actually named
12345     something starting with __ and the normal name is an alias.  */
12346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12347 choke me
12348 #else
12349 $ac_func();
12350 #endif
12351
12352 ; return 0; }
12353 EOF
12354 if { (eval echo configure:12355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12355   rm -rf conftest*
12356   eval "ac_cv_func_$ac_func=yes"
12357 else
12358   echo "configure: failed program was:" >&5
12359   cat conftest.$ac_ext >&5
12360   rm -rf conftest*
12361   eval "ac_cv_func_$ac_func=no"
12362 fi
12363 rm -f conftest*
12364 fi
12365
12366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12367   echo "$ac_t""yes" 1>&6
12368     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12369   cat >> confdefs.h <<EOF
12370 #define $ac_tr_func 1
12371 EOF
12372  
12373 else
12374   echo "$ac_t""no" 1>&6
12375 fi
12376 done
12377     
12378     fi
12379   fi
12380
12381   
12382   
12383   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
12384 echo "configure:12385: checking for atan2f declaration" >&5
12385   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
12386     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
12387   echo $ac_n "(cached) $ac_c" 1>&6
12388 else
12389   
12390       
12391       ac_ext=C
12392 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12393 ac_cpp='$CXXCPP $CPPFLAGS'
12394 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12395 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12396 cross_compiling=$ac_cv_prog_cxx_cross
12397
12398       cat > conftest.$ac_ext <<EOF
12399 #line 12400 "configure"
12400 #include "confdefs.h"
12401 #include <math.h>
12402 int main() {
12403  atan2f(0, 0);
12404 ; return 0; }
12405 EOF
12406 if { (eval echo configure:12407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12407   rm -rf conftest*
12408   glibcpp_cv_func_atan2f_use=yes
12409 else
12410   echo "configure: failed program was:" >&5
12411   cat conftest.$ac_ext >&5
12412   rm -rf conftest*
12413   glibcpp_cv_func_atan2f_use=no
12414 fi
12415 rm -f conftest*
12416       ac_ext=c
12417 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12418 ac_cpp='$CPP $CPPFLAGS'
12419 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12420 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12421 cross_compiling=$ac_cv_prog_cc_cross
12422
12423     
12424 fi
12425
12426   fi
12427   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
12428
12429   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
12430     for ac_func in atan2f
12431 do
12432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12433 echo "configure:12434: checking for $ac_func" >&5
12434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12435   echo $ac_n "(cached) $ac_c" 1>&6
12436 else
12437   cat > conftest.$ac_ext <<EOF
12438 #line 12439 "configure"
12439 #include "confdefs.h"
12440 /* System header to define __stub macros and hopefully few prototypes,
12441     which can conflict with char $ac_func(); below.  */
12442 #include <assert.h>
12443 /* Override any gcc2 internal prototype to avoid an error.  */
12444 /* We use char because int might match the return type of a gcc2
12445     builtin and then its argument prototype would still apply.  */
12446 char $ac_func();
12447
12448 int main() {
12449
12450 /* The GNU C library defines this for functions which it implements
12451     to always fail with ENOSYS.  Some functions are actually named
12452     something starting with __ and the normal name is an alias.  */
12453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12454 choke me
12455 #else
12456 $ac_func();
12457 #endif
12458
12459 ; return 0; }
12460 EOF
12461 if { (eval echo configure:12462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12462   rm -rf conftest*
12463   eval "ac_cv_func_$ac_func=yes"
12464 else
12465   echo "configure: failed program was:" >&5
12466   cat conftest.$ac_ext >&5
12467   rm -rf conftest*
12468   eval "ac_cv_func_$ac_func=no"
12469 fi
12470 rm -f conftest*
12471 fi
12472
12473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12474   echo "$ac_t""yes" 1>&6
12475     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12476   cat >> confdefs.h <<EOF
12477 #define $ac_tr_func 1
12478 EOF
12479  
12480 else
12481   echo "$ac_t""no" 1>&6
12482 fi
12483 done
12484     
12485   else
12486     
12487   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
12488 echo "configure:12489: checking for _atan2f declaration" >&5
12489   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
12490     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
12491   echo $ac_n "(cached) $ac_c" 1>&6
12492 else
12493   
12494       
12495       ac_ext=C
12496 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12497 ac_cpp='$CXXCPP $CPPFLAGS'
12498 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12499 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12500 cross_compiling=$ac_cv_prog_cxx_cross
12501
12502       cat > conftest.$ac_ext <<EOF
12503 #line 12504 "configure"
12504 #include "confdefs.h"
12505 #include <math.h>
12506 int main() {
12507  _atan2f(0, 0);
12508 ; return 0; }
12509 EOF
12510 if { (eval echo configure:12511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12511   rm -rf conftest*
12512   glibcpp_cv_func__atan2f_use=yes
12513 else
12514   echo "configure: failed program was:" >&5
12515   cat conftest.$ac_ext >&5
12516   rm -rf conftest*
12517   glibcpp_cv_func__atan2f_use=no
12518 fi
12519 rm -f conftest*
12520       ac_ext=c
12521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12522 ac_cpp='$CPP $CPPFLAGS'
12523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12524 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12525 cross_compiling=$ac_cv_prog_cc_cross
12526
12527     
12528 fi
12529
12530   fi
12531   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
12532
12533     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
12534       for ac_func in _atan2f
12535 do
12536 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12537 echo "configure:12538: checking for $ac_func" >&5
12538 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12539   echo $ac_n "(cached) $ac_c" 1>&6
12540 else
12541   cat > conftest.$ac_ext <<EOF
12542 #line 12543 "configure"
12543 #include "confdefs.h"
12544 /* System header to define __stub macros and hopefully few prototypes,
12545     which can conflict with char $ac_func(); below.  */
12546 #include <assert.h>
12547 /* Override any gcc2 internal prototype to avoid an error.  */
12548 /* We use char because int might match the return type of a gcc2
12549     builtin and then its argument prototype would still apply.  */
12550 char $ac_func();
12551
12552 int main() {
12553
12554 /* The GNU C library defines this for functions which it implements
12555     to always fail with ENOSYS.  Some functions are actually named
12556     something starting with __ and the normal name is an alias.  */
12557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12558 choke me
12559 #else
12560 $ac_func();
12561 #endif
12562
12563 ; return 0; }
12564 EOF
12565 if { (eval echo configure:12566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12566   rm -rf conftest*
12567   eval "ac_cv_func_$ac_func=yes"
12568 else
12569   echo "configure: failed program was:" >&5
12570   cat conftest.$ac_ext >&5
12571   rm -rf conftest*
12572   eval "ac_cv_func_$ac_func=no"
12573 fi
12574 rm -f conftest*
12575 fi
12576
12577 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12578   echo "$ac_t""yes" 1>&6
12579     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12580   cat >> confdefs.h <<EOF
12581 #define $ac_tr_func 1
12582 EOF
12583  
12584 else
12585   echo "$ac_t""no" 1>&6
12586 fi
12587 done
12588     
12589     fi
12590   fi
12591
12592   
12593   
12594   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
12595 echo "configure:12596: checking for fabsf declaration" >&5
12596   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
12597     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
12598   echo $ac_n "(cached) $ac_c" 1>&6
12599 else
12600   
12601       
12602       ac_ext=C
12603 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12604 ac_cpp='$CXXCPP $CPPFLAGS'
12605 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12606 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12607 cross_compiling=$ac_cv_prog_cxx_cross
12608
12609       cat > conftest.$ac_ext <<EOF
12610 #line 12611 "configure"
12611 #include "confdefs.h"
12612 #include <math.h>
12613                       #ifdef HAVE_IEEEFP_H
12614                       #include <ieeefp.h>
12615                       #endif
12616                      
12617 int main() {
12618  fabsf(0);
12619 ; return 0; }
12620 EOF
12621 if { (eval echo configure:12622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12622   rm -rf conftest*
12623   glibcpp_cv_func_fabsf_use=yes
12624 else
12625   echo "configure: failed program was:" >&5
12626   cat conftest.$ac_ext >&5
12627   rm -rf conftest*
12628   glibcpp_cv_func_fabsf_use=no
12629 fi
12630 rm -f conftest*
12631       ac_ext=c
12632 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12633 ac_cpp='$CPP $CPPFLAGS'
12634 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12635 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12636 cross_compiling=$ac_cv_prog_cc_cross
12637
12638     
12639 fi
12640
12641   fi
12642   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
12643
12644   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
12645     for ac_func in fabsf
12646 do
12647 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12648 echo "configure:12649: checking for $ac_func" >&5
12649 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12650   echo $ac_n "(cached) $ac_c" 1>&6
12651 else
12652   cat > conftest.$ac_ext <<EOF
12653 #line 12654 "configure"
12654 #include "confdefs.h"
12655 /* System header to define __stub macros and hopefully few prototypes,
12656     which can conflict with char $ac_func(); below.  */
12657 #include <assert.h>
12658 /* Override any gcc2 internal prototype to avoid an error.  */
12659 /* We use char because int might match the return type of a gcc2
12660     builtin and then its argument prototype would still apply.  */
12661 char $ac_func();
12662
12663 int main() {
12664
12665 /* The GNU C library defines this for functions which it implements
12666     to always fail with ENOSYS.  Some functions are actually named
12667     something starting with __ and the normal name is an alias.  */
12668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12669 choke me
12670 #else
12671 $ac_func();
12672 #endif
12673
12674 ; return 0; }
12675 EOF
12676 if { (eval echo configure:12677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12677   rm -rf conftest*
12678   eval "ac_cv_func_$ac_func=yes"
12679 else
12680   echo "configure: failed program was:" >&5
12681   cat conftest.$ac_ext >&5
12682   rm -rf conftest*
12683   eval "ac_cv_func_$ac_func=no"
12684 fi
12685 rm -f conftest*
12686 fi
12687
12688 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12689   echo "$ac_t""yes" 1>&6
12690     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12691   cat >> confdefs.h <<EOF
12692 #define $ac_tr_func 1
12693 EOF
12694  
12695 else
12696   echo "$ac_t""no" 1>&6
12697 fi
12698 done
12699     
12700   else
12701     
12702   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
12703 echo "configure:12704: checking for _fabsf declaration" >&5
12704   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
12705     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
12706   echo $ac_n "(cached) $ac_c" 1>&6
12707 else
12708   
12709       
12710       ac_ext=C
12711 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12712 ac_cpp='$CXXCPP $CPPFLAGS'
12713 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12714 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12715 cross_compiling=$ac_cv_prog_cxx_cross
12716
12717       cat > conftest.$ac_ext <<EOF
12718 #line 12719 "configure"
12719 #include "confdefs.h"
12720 #include <math.h>
12721                       #ifdef HAVE_IEEEFP_H
12722                       #include <ieeefp.h>
12723                       #endif
12724                      
12725 int main() {
12726  _fabsf(0);
12727 ; return 0; }
12728 EOF
12729 if { (eval echo configure:12730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12730   rm -rf conftest*
12731   glibcpp_cv_func__fabsf_use=yes
12732 else
12733   echo "configure: failed program was:" >&5
12734   cat conftest.$ac_ext >&5
12735   rm -rf conftest*
12736   glibcpp_cv_func__fabsf_use=no
12737 fi
12738 rm -f conftest*
12739       ac_ext=c
12740 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12741 ac_cpp='$CPP $CPPFLAGS'
12742 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12743 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12744 cross_compiling=$ac_cv_prog_cc_cross
12745
12746     
12747 fi
12748
12749   fi
12750   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
12751
12752     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
12753       for ac_func in _fabsf
12754 do
12755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12756 echo "configure:12757: checking for $ac_func" >&5
12757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12758   echo $ac_n "(cached) $ac_c" 1>&6
12759 else
12760   cat > conftest.$ac_ext <<EOF
12761 #line 12762 "configure"
12762 #include "confdefs.h"
12763 /* System header to define __stub macros and hopefully few prototypes,
12764     which can conflict with char $ac_func(); below.  */
12765 #include <assert.h>
12766 /* Override any gcc2 internal prototype to avoid an error.  */
12767 /* We use char because int might match the return type of a gcc2
12768     builtin and then its argument prototype would still apply.  */
12769 char $ac_func();
12770
12771 int main() {
12772
12773 /* The GNU C library defines this for functions which it implements
12774     to always fail with ENOSYS.  Some functions are actually named
12775     something starting with __ and the normal name is an alias.  */
12776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12777 choke me
12778 #else
12779 $ac_func();
12780 #endif
12781
12782 ; return 0; }
12783 EOF
12784 if { (eval echo configure:12785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12785   rm -rf conftest*
12786   eval "ac_cv_func_$ac_func=yes"
12787 else
12788   echo "configure: failed program was:" >&5
12789   cat conftest.$ac_ext >&5
12790   rm -rf conftest*
12791   eval "ac_cv_func_$ac_func=no"
12792 fi
12793 rm -f conftest*
12794 fi
12795
12796 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12797   echo "$ac_t""yes" 1>&6
12798     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12799   cat >> confdefs.h <<EOF
12800 #define $ac_tr_func 1
12801 EOF
12802  
12803 else
12804   echo "$ac_t""no" 1>&6
12805 fi
12806 done
12807     
12808     fi
12809   fi
12810
12811   
12812   
12813   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
12814 echo "configure:12815: checking for fmodf declaration" >&5
12815   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
12816     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
12817   echo $ac_n "(cached) $ac_c" 1>&6
12818 else
12819   
12820       
12821       ac_ext=C
12822 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12823 ac_cpp='$CXXCPP $CPPFLAGS'
12824 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12825 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12826 cross_compiling=$ac_cv_prog_cxx_cross
12827
12828       cat > conftest.$ac_ext <<EOF
12829 #line 12830 "configure"
12830 #include "confdefs.h"
12831 #include <math.h>
12832 int main() {
12833  fmodf(0, 0);
12834 ; return 0; }
12835 EOF
12836 if { (eval echo configure:12837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12837   rm -rf conftest*
12838   glibcpp_cv_func_fmodf_use=yes
12839 else
12840   echo "configure: failed program was:" >&5
12841   cat conftest.$ac_ext >&5
12842   rm -rf conftest*
12843   glibcpp_cv_func_fmodf_use=no
12844 fi
12845 rm -f conftest*
12846       ac_ext=c
12847 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12848 ac_cpp='$CPP $CPPFLAGS'
12849 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12850 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12851 cross_compiling=$ac_cv_prog_cc_cross
12852
12853     
12854 fi
12855
12856   fi
12857   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
12858
12859   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
12860     for ac_func in fmodf
12861 do
12862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12863 echo "configure:12864: checking for $ac_func" >&5
12864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12865   echo $ac_n "(cached) $ac_c" 1>&6
12866 else
12867   cat > conftest.$ac_ext <<EOF
12868 #line 12869 "configure"
12869 #include "confdefs.h"
12870 /* System header to define __stub macros and hopefully few prototypes,
12871     which can conflict with char $ac_func(); below.  */
12872 #include <assert.h>
12873 /* Override any gcc2 internal prototype to avoid an error.  */
12874 /* We use char because int might match the return type of a gcc2
12875     builtin and then its argument prototype would still apply.  */
12876 char $ac_func();
12877
12878 int main() {
12879
12880 /* The GNU C library defines this for functions which it implements
12881     to always fail with ENOSYS.  Some functions are actually named
12882     something starting with __ and the normal name is an alias.  */
12883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12884 choke me
12885 #else
12886 $ac_func();
12887 #endif
12888
12889 ; return 0; }
12890 EOF
12891 if { (eval echo configure:12892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12892   rm -rf conftest*
12893   eval "ac_cv_func_$ac_func=yes"
12894 else
12895   echo "configure: failed program was:" >&5
12896   cat conftest.$ac_ext >&5
12897   rm -rf conftest*
12898   eval "ac_cv_func_$ac_func=no"
12899 fi
12900 rm -f conftest*
12901 fi
12902
12903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12904   echo "$ac_t""yes" 1>&6
12905     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12906   cat >> confdefs.h <<EOF
12907 #define $ac_tr_func 1
12908 EOF
12909  
12910 else
12911   echo "$ac_t""no" 1>&6
12912 fi
12913 done
12914     
12915   else
12916     
12917   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
12918 echo "configure:12919: checking for _fmodf declaration" >&5
12919   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
12920     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
12921   echo $ac_n "(cached) $ac_c" 1>&6
12922 else
12923   
12924       
12925       ac_ext=C
12926 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12927 ac_cpp='$CXXCPP $CPPFLAGS'
12928 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12929 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12930 cross_compiling=$ac_cv_prog_cxx_cross
12931
12932       cat > conftest.$ac_ext <<EOF
12933 #line 12934 "configure"
12934 #include "confdefs.h"
12935 #include <math.h>
12936 int main() {
12937  _fmodf(0, 0);
12938 ; return 0; }
12939 EOF
12940 if { (eval echo configure:12941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12941   rm -rf conftest*
12942   glibcpp_cv_func__fmodf_use=yes
12943 else
12944   echo "configure: failed program was:" >&5
12945   cat conftest.$ac_ext >&5
12946   rm -rf conftest*
12947   glibcpp_cv_func__fmodf_use=no
12948 fi
12949 rm -f conftest*
12950       ac_ext=c
12951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12952 ac_cpp='$CPP $CPPFLAGS'
12953 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12954 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12955 cross_compiling=$ac_cv_prog_cc_cross
12956
12957     
12958 fi
12959
12960   fi
12961   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
12962
12963     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
12964       for ac_func in _fmodf
12965 do
12966 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12967 echo "configure:12968: checking for $ac_func" >&5
12968 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12969   echo $ac_n "(cached) $ac_c" 1>&6
12970 else
12971   cat > conftest.$ac_ext <<EOF
12972 #line 12973 "configure"
12973 #include "confdefs.h"
12974 /* System header to define __stub macros and hopefully few prototypes,
12975     which can conflict with char $ac_func(); below.  */
12976 #include <assert.h>
12977 /* Override any gcc2 internal prototype to avoid an error.  */
12978 /* We use char because int might match the return type of a gcc2
12979     builtin and then its argument prototype would still apply.  */
12980 char $ac_func();
12981
12982 int main() {
12983
12984 /* The GNU C library defines this for functions which it implements
12985     to always fail with ENOSYS.  Some functions are actually named
12986     something starting with __ and the normal name is an alias.  */
12987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12988 choke me
12989 #else
12990 $ac_func();
12991 #endif
12992
12993 ; return 0; }
12994 EOF
12995 if { (eval echo configure:12996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12996   rm -rf conftest*
12997   eval "ac_cv_func_$ac_func=yes"
12998 else
12999   echo "configure: failed program was:" >&5
13000   cat conftest.$ac_ext >&5
13001   rm -rf conftest*
13002   eval "ac_cv_func_$ac_func=no"
13003 fi
13004 rm -f conftest*
13005 fi
13006
13007 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13008   echo "$ac_t""yes" 1>&6
13009     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13010   cat >> confdefs.h <<EOF
13011 #define $ac_tr_func 1
13012 EOF
13013  
13014 else
13015   echo "$ac_t""no" 1>&6
13016 fi
13017 done
13018     
13019     fi
13020   fi
13021
13022   
13023   
13024   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
13025 echo "configure:13026: checking for frexpf declaration" >&5
13026   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
13027     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
13028   echo $ac_n "(cached) $ac_c" 1>&6
13029 else
13030   
13031       
13032       ac_ext=C
13033 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13034 ac_cpp='$CXXCPP $CPPFLAGS'
13035 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13036 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13037 cross_compiling=$ac_cv_prog_cxx_cross
13038
13039       cat > conftest.$ac_ext <<EOF
13040 #line 13041 "configure"
13041 #include "confdefs.h"
13042 #include <math.h>
13043 int main() {
13044  frexpf(0, 0);
13045 ; return 0; }
13046 EOF
13047 if { (eval echo configure:13048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13048   rm -rf conftest*
13049   glibcpp_cv_func_frexpf_use=yes
13050 else
13051   echo "configure: failed program was:" >&5
13052   cat conftest.$ac_ext >&5
13053   rm -rf conftest*
13054   glibcpp_cv_func_frexpf_use=no
13055 fi
13056 rm -f conftest*
13057       ac_ext=c
13058 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13059 ac_cpp='$CPP $CPPFLAGS'
13060 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13061 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13062 cross_compiling=$ac_cv_prog_cc_cross
13063
13064     
13065 fi
13066
13067   fi
13068   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
13069
13070   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
13071     for ac_func in frexpf
13072 do
13073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13074 echo "configure:13075: checking for $ac_func" >&5
13075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13076   echo $ac_n "(cached) $ac_c" 1>&6
13077 else
13078   cat > conftest.$ac_ext <<EOF
13079 #line 13080 "configure"
13080 #include "confdefs.h"
13081 /* System header to define __stub macros and hopefully few prototypes,
13082     which can conflict with char $ac_func(); below.  */
13083 #include <assert.h>
13084 /* Override any gcc2 internal prototype to avoid an error.  */
13085 /* We use char because int might match the return type of a gcc2
13086     builtin and then its argument prototype would still apply.  */
13087 char $ac_func();
13088
13089 int main() {
13090
13091 /* The GNU C library defines this for functions which it implements
13092     to always fail with ENOSYS.  Some functions are actually named
13093     something starting with __ and the normal name is an alias.  */
13094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13095 choke me
13096 #else
13097 $ac_func();
13098 #endif
13099
13100 ; return 0; }
13101 EOF
13102 if { (eval echo configure:13103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13103   rm -rf conftest*
13104   eval "ac_cv_func_$ac_func=yes"
13105 else
13106   echo "configure: failed program was:" >&5
13107   cat conftest.$ac_ext >&5
13108   rm -rf conftest*
13109   eval "ac_cv_func_$ac_func=no"
13110 fi
13111 rm -f conftest*
13112 fi
13113
13114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13115   echo "$ac_t""yes" 1>&6
13116     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13117   cat >> confdefs.h <<EOF
13118 #define $ac_tr_func 1
13119 EOF
13120  
13121 else
13122   echo "$ac_t""no" 1>&6
13123 fi
13124 done
13125     
13126   else
13127     
13128   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
13129 echo "configure:13130: checking for _frexpf declaration" >&5
13130   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
13131     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
13132   echo $ac_n "(cached) $ac_c" 1>&6
13133 else
13134   
13135       
13136       ac_ext=C
13137 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13138 ac_cpp='$CXXCPP $CPPFLAGS'
13139 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13140 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13141 cross_compiling=$ac_cv_prog_cxx_cross
13142
13143       cat > conftest.$ac_ext <<EOF
13144 #line 13145 "configure"
13145 #include "confdefs.h"
13146 #include <math.h>
13147 int main() {
13148  _frexpf(0, 0);
13149 ; return 0; }
13150 EOF
13151 if { (eval echo configure:13152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13152   rm -rf conftest*
13153   glibcpp_cv_func__frexpf_use=yes
13154 else
13155   echo "configure: failed program was:" >&5
13156   cat conftest.$ac_ext >&5
13157   rm -rf conftest*
13158   glibcpp_cv_func__frexpf_use=no
13159 fi
13160 rm -f conftest*
13161       ac_ext=c
13162 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13163 ac_cpp='$CPP $CPPFLAGS'
13164 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13165 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13166 cross_compiling=$ac_cv_prog_cc_cross
13167
13168     
13169 fi
13170
13171   fi
13172   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
13173
13174     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
13175       for ac_func in _frexpf
13176 do
13177 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13178 echo "configure:13179: checking for $ac_func" >&5
13179 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13180   echo $ac_n "(cached) $ac_c" 1>&6
13181 else
13182   cat > conftest.$ac_ext <<EOF
13183 #line 13184 "configure"
13184 #include "confdefs.h"
13185 /* System header to define __stub macros and hopefully few prototypes,
13186     which can conflict with char $ac_func(); below.  */
13187 #include <assert.h>
13188 /* Override any gcc2 internal prototype to avoid an error.  */
13189 /* We use char because int might match the return type of a gcc2
13190     builtin and then its argument prototype would still apply.  */
13191 char $ac_func();
13192
13193 int main() {
13194
13195 /* The GNU C library defines this for functions which it implements
13196     to always fail with ENOSYS.  Some functions are actually named
13197     something starting with __ and the normal name is an alias.  */
13198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13199 choke me
13200 #else
13201 $ac_func();
13202 #endif
13203
13204 ; return 0; }
13205 EOF
13206 if { (eval echo configure:13207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13207   rm -rf conftest*
13208   eval "ac_cv_func_$ac_func=yes"
13209 else
13210   echo "configure: failed program was:" >&5
13211   cat conftest.$ac_ext >&5
13212   rm -rf conftest*
13213   eval "ac_cv_func_$ac_func=no"
13214 fi
13215 rm -f conftest*
13216 fi
13217
13218 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13219   echo "$ac_t""yes" 1>&6
13220     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13221   cat >> confdefs.h <<EOF
13222 #define $ac_tr_func 1
13223 EOF
13224  
13225 else
13226   echo "$ac_t""no" 1>&6
13227 fi
13228 done
13229     
13230     fi
13231   fi
13232
13233   
13234   
13235   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
13236 echo "configure:13237: checking for hypotf declaration" >&5
13237   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
13238     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
13239   echo $ac_n "(cached) $ac_c" 1>&6
13240 else
13241   
13242       
13243       ac_ext=C
13244 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13245 ac_cpp='$CXXCPP $CPPFLAGS'
13246 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13247 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13248 cross_compiling=$ac_cv_prog_cxx_cross
13249
13250       cat > conftest.$ac_ext <<EOF
13251 #line 13252 "configure"
13252 #include "confdefs.h"
13253 #include <math.h>
13254 int main() {
13255  hypotf(0, 0);
13256 ; return 0; }
13257 EOF
13258 if { (eval echo configure:13259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13259   rm -rf conftest*
13260   glibcpp_cv_func_hypotf_use=yes
13261 else
13262   echo "configure: failed program was:" >&5
13263   cat conftest.$ac_ext >&5
13264   rm -rf conftest*
13265   glibcpp_cv_func_hypotf_use=no
13266 fi
13267 rm -f conftest*
13268       ac_ext=c
13269 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13270 ac_cpp='$CPP $CPPFLAGS'
13271 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13272 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13273 cross_compiling=$ac_cv_prog_cc_cross
13274
13275     
13276 fi
13277
13278   fi
13279   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
13280
13281   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
13282     for ac_func in hypotf
13283 do
13284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13285 echo "configure:13286: checking for $ac_func" >&5
13286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13287   echo $ac_n "(cached) $ac_c" 1>&6
13288 else
13289   cat > conftest.$ac_ext <<EOF
13290 #line 13291 "configure"
13291 #include "confdefs.h"
13292 /* System header to define __stub macros and hopefully few prototypes,
13293     which can conflict with char $ac_func(); below.  */
13294 #include <assert.h>
13295 /* Override any gcc2 internal prototype to avoid an error.  */
13296 /* We use char because int might match the return type of a gcc2
13297     builtin and then its argument prototype would still apply.  */
13298 char $ac_func();
13299
13300 int main() {
13301
13302 /* The GNU C library defines this for functions which it implements
13303     to always fail with ENOSYS.  Some functions are actually named
13304     something starting with __ and the normal name is an alias.  */
13305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13306 choke me
13307 #else
13308 $ac_func();
13309 #endif
13310
13311 ; return 0; }
13312 EOF
13313 if { (eval echo configure:13314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13314   rm -rf conftest*
13315   eval "ac_cv_func_$ac_func=yes"
13316 else
13317   echo "configure: failed program was:" >&5
13318   cat conftest.$ac_ext >&5
13319   rm -rf conftest*
13320   eval "ac_cv_func_$ac_func=no"
13321 fi
13322 rm -f conftest*
13323 fi
13324
13325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13326   echo "$ac_t""yes" 1>&6
13327     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13328   cat >> confdefs.h <<EOF
13329 #define $ac_tr_func 1
13330 EOF
13331  
13332 else
13333   echo "$ac_t""no" 1>&6
13334 fi
13335 done
13336     
13337   else
13338     
13339   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
13340 echo "configure:13341: checking for _hypotf declaration" >&5
13341   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
13342     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
13343   echo $ac_n "(cached) $ac_c" 1>&6
13344 else
13345   
13346       
13347       ac_ext=C
13348 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13349 ac_cpp='$CXXCPP $CPPFLAGS'
13350 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13351 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13352 cross_compiling=$ac_cv_prog_cxx_cross
13353
13354       cat > conftest.$ac_ext <<EOF
13355 #line 13356 "configure"
13356 #include "confdefs.h"
13357 #include <math.h>
13358 int main() {
13359  _hypotf(0, 0);
13360 ; return 0; }
13361 EOF
13362 if { (eval echo configure:13363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13363   rm -rf conftest*
13364   glibcpp_cv_func__hypotf_use=yes
13365 else
13366   echo "configure: failed program was:" >&5
13367   cat conftest.$ac_ext >&5
13368   rm -rf conftest*
13369   glibcpp_cv_func__hypotf_use=no
13370 fi
13371 rm -f conftest*
13372       ac_ext=c
13373 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13374 ac_cpp='$CPP $CPPFLAGS'
13375 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13376 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13377 cross_compiling=$ac_cv_prog_cc_cross
13378
13379     
13380 fi
13381
13382   fi
13383   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
13384
13385     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
13386       for ac_func in _hypotf
13387 do
13388 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13389 echo "configure:13390: checking for $ac_func" >&5
13390 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13391   echo $ac_n "(cached) $ac_c" 1>&6
13392 else
13393   cat > conftest.$ac_ext <<EOF
13394 #line 13395 "configure"
13395 #include "confdefs.h"
13396 /* System header to define __stub macros and hopefully few prototypes,
13397     which can conflict with char $ac_func(); below.  */
13398 #include <assert.h>
13399 /* Override any gcc2 internal prototype to avoid an error.  */
13400 /* We use char because int might match the return type of a gcc2
13401     builtin and then its argument prototype would still apply.  */
13402 char $ac_func();
13403
13404 int main() {
13405
13406 /* The GNU C library defines this for functions which it implements
13407     to always fail with ENOSYS.  Some functions are actually named
13408     something starting with __ and the normal name is an alias.  */
13409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13410 choke me
13411 #else
13412 $ac_func();
13413 #endif
13414
13415 ; return 0; }
13416 EOF
13417 if { (eval echo configure:13418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13418   rm -rf conftest*
13419   eval "ac_cv_func_$ac_func=yes"
13420 else
13421   echo "configure: failed program was:" >&5
13422   cat conftest.$ac_ext >&5
13423   rm -rf conftest*
13424   eval "ac_cv_func_$ac_func=no"
13425 fi
13426 rm -f conftest*
13427 fi
13428
13429 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13430   echo "$ac_t""yes" 1>&6
13431     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13432   cat >> confdefs.h <<EOF
13433 #define $ac_tr_func 1
13434 EOF
13435  
13436 else
13437   echo "$ac_t""no" 1>&6
13438 fi
13439 done
13440     
13441     fi
13442   fi
13443
13444   
13445   
13446   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
13447 echo "configure:13448: checking for ldexpf declaration" >&5
13448   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
13449     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
13450   echo $ac_n "(cached) $ac_c" 1>&6
13451 else
13452   
13453       
13454       ac_ext=C
13455 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13456 ac_cpp='$CXXCPP $CPPFLAGS'
13457 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13458 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13459 cross_compiling=$ac_cv_prog_cxx_cross
13460
13461       cat > conftest.$ac_ext <<EOF
13462 #line 13463 "configure"
13463 #include "confdefs.h"
13464 #include <math.h>
13465 int main() {
13466  ldexpf(0, 0);
13467 ; return 0; }
13468 EOF
13469 if { (eval echo configure:13470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13470   rm -rf conftest*
13471   glibcpp_cv_func_ldexpf_use=yes
13472 else
13473   echo "configure: failed program was:" >&5
13474   cat conftest.$ac_ext >&5
13475   rm -rf conftest*
13476   glibcpp_cv_func_ldexpf_use=no
13477 fi
13478 rm -f conftest*
13479       ac_ext=c
13480 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13481 ac_cpp='$CPP $CPPFLAGS'
13482 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13483 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13484 cross_compiling=$ac_cv_prog_cc_cross
13485
13486     
13487 fi
13488
13489   fi
13490   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
13491
13492   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
13493     for ac_func in ldexpf
13494 do
13495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13496 echo "configure:13497: checking for $ac_func" >&5
13497 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13498   echo $ac_n "(cached) $ac_c" 1>&6
13499 else
13500   cat > conftest.$ac_ext <<EOF
13501 #line 13502 "configure"
13502 #include "confdefs.h"
13503 /* System header to define __stub macros and hopefully few prototypes,
13504     which can conflict with char $ac_func(); below.  */
13505 #include <assert.h>
13506 /* Override any gcc2 internal prototype to avoid an error.  */
13507 /* We use char because int might match the return type of a gcc2
13508     builtin and then its argument prototype would still apply.  */
13509 char $ac_func();
13510
13511 int main() {
13512
13513 /* The GNU C library defines this for functions which it implements
13514     to always fail with ENOSYS.  Some functions are actually named
13515     something starting with __ and the normal name is an alias.  */
13516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13517 choke me
13518 #else
13519 $ac_func();
13520 #endif
13521
13522 ; return 0; }
13523 EOF
13524 if { (eval echo configure:13525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13525   rm -rf conftest*
13526   eval "ac_cv_func_$ac_func=yes"
13527 else
13528   echo "configure: failed program was:" >&5
13529   cat conftest.$ac_ext >&5
13530   rm -rf conftest*
13531   eval "ac_cv_func_$ac_func=no"
13532 fi
13533 rm -f conftest*
13534 fi
13535
13536 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13537   echo "$ac_t""yes" 1>&6
13538     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13539   cat >> confdefs.h <<EOF
13540 #define $ac_tr_func 1
13541 EOF
13542  
13543 else
13544   echo "$ac_t""no" 1>&6
13545 fi
13546 done
13547     
13548   else
13549     
13550   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
13551 echo "configure:13552: checking for _ldexpf declaration" >&5
13552   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
13553     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
13554   echo $ac_n "(cached) $ac_c" 1>&6
13555 else
13556   
13557       
13558       ac_ext=C
13559 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13560 ac_cpp='$CXXCPP $CPPFLAGS'
13561 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13562 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13563 cross_compiling=$ac_cv_prog_cxx_cross
13564
13565       cat > conftest.$ac_ext <<EOF
13566 #line 13567 "configure"
13567 #include "confdefs.h"
13568 #include <math.h>
13569 int main() {
13570  _ldexpf(0, 0);
13571 ; return 0; }
13572 EOF
13573 if { (eval echo configure:13574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13574   rm -rf conftest*
13575   glibcpp_cv_func__ldexpf_use=yes
13576 else
13577   echo "configure: failed program was:" >&5
13578   cat conftest.$ac_ext >&5
13579   rm -rf conftest*
13580   glibcpp_cv_func__ldexpf_use=no
13581 fi
13582 rm -f conftest*
13583       ac_ext=c
13584 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13585 ac_cpp='$CPP $CPPFLAGS'
13586 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13587 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13588 cross_compiling=$ac_cv_prog_cc_cross
13589
13590     
13591 fi
13592
13593   fi
13594   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
13595
13596     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
13597       for ac_func in _ldexpf
13598 do
13599 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13600 echo "configure:13601: checking for $ac_func" >&5
13601 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13602   echo $ac_n "(cached) $ac_c" 1>&6
13603 else
13604   cat > conftest.$ac_ext <<EOF
13605 #line 13606 "configure"
13606 #include "confdefs.h"
13607 /* System header to define __stub macros and hopefully few prototypes,
13608     which can conflict with char $ac_func(); below.  */
13609 #include <assert.h>
13610 /* Override any gcc2 internal prototype to avoid an error.  */
13611 /* We use char because int might match the return type of a gcc2
13612     builtin and then its argument prototype would still apply.  */
13613 char $ac_func();
13614
13615 int main() {
13616
13617 /* The GNU C library defines this for functions which it implements
13618     to always fail with ENOSYS.  Some functions are actually named
13619     something starting with __ and the normal name is an alias.  */
13620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13621 choke me
13622 #else
13623 $ac_func();
13624 #endif
13625
13626 ; return 0; }
13627 EOF
13628 if { (eval echo configure:13629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13629   rm -rf conftest*
13630   eval "ac_cv_func_$ac_func=yes"
13631 else
13632   echo "configure: failed program was:" >&5
13633   cat conftest.$ac_ext >&5
13634   rm -rf conftest*
13635   eval "ac_cv_func_$ac_func=no"
13636 fi
13637 rm -f conftest*
13638 fi
13639
13640 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13641   echo "$ac_t""yes" 1>&6
13642     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13643   cat >> confdefs.h <<EOF
13644 #define $ac_tr_func 1
13645 EOF
13646  
13647 else
13648   echo "$ac_t""no" 1>&6
13649 fi
13650 done
13651     
13652     fi
13653   fi
13654
13655   
13656   
13657   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
13658 echo "configure:13659: checking for logf declaration" >&5
13659   if test x${glibcpp_cv_func_logf_use+set} != xset; then
13660     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
13661   echo $ac_n "(cached) $ac_c" 1>&6
13662 else
13663   
13664       
13665       ac_ext=C
13666 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13667 ac_cpp='$CXXCPP $CPPFLAGS'
13668 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13669 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13670 cross_compiling=$ac_cv_prog_cxx_cross
13671
13672       cat > conftest.$ac_ext <<EOF
13673 #line 13674 "configure"
13674 #include "confdefs.h"
13675 #include <math.h>
13676                       #ifdef HAVE_IEEEFP_H
13677                       #include <ieeefp.h>
13678                       #endif
13679                      
13680 int main() {
13681  logf(0);
13682 ; return 0; }
13683 EOF
13684 if { (eval echo configure:13685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13685   rm -rf conftest*
13686   glibcpp_cv_func_logf_use=yes
13687 else
13688   echo "configure: failed program was:" >&5
13689   cat conftest.$ac_ext >&5
13690   rm -rf conftest*
13691   glibcpp_cv_func_logf_use=no
13692 fi
13693 rm -f conftest*
13694       ac_ext=c
13695 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13696 ac_cpp='$CPP $CPPFLAGS'
13697 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13698 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13699 cross_compiling=$ac_cv_prog_cc_cross
13700
13701     
13702 fi
13703
13704   fi
13705   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
13706
13707   if test x$glibcpp_cv_func_logf_use = x"yes"; then
13708     for ac_func in logf
13709 do
13710 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13711 echo "configure:13712: checking for $ac_func" >&5
13712 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13713   echo $ac_n "(cached) $ac_c" 1>&6
13714 else
13715   cat > conftest.$ac_ext <<EOF
13716 #line 13717 "configure"
13717 #include "confdefs.h"
13718 /* System header to define __stub macros and hopefully few prototypes,
13719     which can conflict with char $ac_func(); below.  */
13720 #include <assert.h>
13721 /* Override any gcc2 internal prototype to avoid an error.  */
13722 /* We use char because int might match the return type of a gcc2
13723     builtin and then its argument prototype would still apply.  */
13724 char $ac_func();
13725
13726 int main() {
13727
13728 /* The GNU C library defines this for functions which it implements
13729     to always fail with ENOSYS.  Some functions are actually named
13730     something starting with __ and the normal name is an alias.  */
13731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13732 choke me
13733 #else
13734 $ac_func();
13735 #endif
13736
13737 ; return 0; }
13738 EOF
13739 if { (eval echo configure:13740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13740   rm -rf conftest*
13741   eval "ac_cv_func_$ac_func=yes"
13742 else
13743   echo "configure: failed program was:" >&5
13744   cat conftest.$ac_ext >&5
13745   rm -rf conftest*
13746   eval "ac_cv_func_$ac_func=no"
13747 fi
13748 rm -f conftest*
13749 fi
13750
13751 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13752   echo "$ac_t""yes" 1>&6
13753     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13754   cat >> confdefs.h <<EOF
13755 #define $ac_tr_func 1
13756 EOF
13757  
13758 else
13759   echo "$ac_t""no" 1>&6
13760 fi
13761 done
13762     
13763   else
13764     
13765   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
13766 echo "configure:13767: checking for _logf declaration" >&5
13767   if test x${glibcpp_cv_func__logf_use+set} != xset; then
13768     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
13769   echo $ac_n "(cached) $ac_c" 1>&6
13770 else
13771   
13772       
13773       ac_ext=C
13774 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13775 ac_cpp='$CXXCPP $CPPFLAGS'
13776 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13777 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13778 cross_compiling=$ac_cv_prog_cxx_cross
13779
13780       cat > conftest.$ac_ext <<EOF
13781 #line 13782 "configure"
13782 #include "confdefs.h"
13783 #include <math.h>
13784                       #ifdef HAVE_IEEEFP_H
13785                       #include <ieeefp.h>
13786                       #endif
13787                      
13788 int main() {
13789  _logf(0);
13790 ; return 0; }
13791 EOF
13792 if { (eval echo configure:13793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13793   rm -rf conftest*
13794   glibcpp_cv_func__logf_use=yes
13795 else
13796   echo "configure: failed program was:" >&5
13797   cat conftest.$ac_ext >&5
13798   rm -rf conftest*
13799   glibcpp_cv_func__logf_use=no
13800 fi
13801 rm -f conftest*
13802       ac_ext=c
13803 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13804 ac_cpp='$CPP $CPPFLAGS'
13805 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13806 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13807 cross_compiling=$ac_cv_prog_cc_cross
13808
13809     
13810 fi
13811
13812   fi
13813   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
13814
13815     if test x$glibcpp_cv_func__logf_use = x"yes"; then
13816       for ac_func in _logf
13817 do
13818 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13819 echo "configure:13820: checking for $ac_func" >&5
13820 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13821   echo $ac_n "(cached) $ac_c" 1>&6
13822 else
13823   cat > conftest.$ac_ext <<EOF
13824 #line 13825 "configure"
13825 #include "confdefs.h"
13826 /* System header to define __stub macros and hopefully few prototypes,
13827     which can conflict with char $ac_func(); below.  */
13828 #include <assert.h>
13829 /* Override any gcc2 internal prototype to avoid an error.  */
13830 /* We use char because int might match the return type of a gcc2
13831     builtin and then its argument prototype would still apply.  */
13832 char $ac_func();
13833
13834 int main() {
13835
13836 /* The GNU C library defines this for functions which it implements
13837     to always fail with ENOSYS.  Some functions are actually named
13838     something starting with __ and the normal name is an alias.  */
13839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13840 choke me
13841 #else
13842 $ac_func();
13843 #endif
13844
13845 ; return 0; }
13846 EOF
13847 if { (eval echo configure:13848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13848   rm -rf conftest*
13849   eval "ac_cv_func_$ac_func=yes"
13850 else
13851   echo "configure: failed program was:" >&5
13852   cat conftest.$ac_ext >&5
13853   rm -rf conftest*
13854   eval "ac_cv_func_$ac_func=no"
13855 fi
13856 rm -f conftest*
13857 fi
13858
13859 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13860   echo "$ac_t""yes" 1>&6
13861     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13862   cat >> confdefs.h <<EOF
13863 #define $ac_tr_func 1
13864 EOF
13865  
13866 else
13867   echo "$ac_t""no" 1>&6
13868 fi
13869 done
13870     
13871     fi
13872   fi
13873
13874   
13875   
13876   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
13877 echo "configure:13878: checking for log10f declaration" >&5
13878   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
13879     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
13880   echo $ac_n "(cached) $ac_c" 1>&6
13881 else
13882   
13883       
13884       ac_ext=C
13885 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13886 ac_cpp='$CXXCPP $CPPFLAGS'
13887 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13888 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13889 cross_compiling=$ac_cv_prog_cxx_cross
13890
13891       cat > conftest.$ac_ext <<EOF
13892 #line 13893 "configure"
13893 #include "confdefs.h"
13894 #include <math.h>
13895                       #ifdef HAVE_IEEEFP_H
13896                       #include <ieeefp.h>
13897                       #endif
13898                      
13899 int main() {
13900  log10f(0);
13901 ; return 0; }
13902 EOF
13903 if { (eval echo configure:13904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13904   rm -rf conftest*
13905   glibcpp_cv_func_log10f_use=yes
13906 else
13907   echo "configure: failed program was:" >&5
13908   cat conftest.$ac_ext >&5
13909   rm -rf conftest*
13910   glibcpp_cv_func_log10f_use=no
13911 fi
13912 rm -f conftest*
13913       ac_ext=c
13914 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13915 ac_cpp='$CPP $CPPFLAGS'
13916 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13917 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13918 cross_compiling=$ac_cv_prog_cc_cross
13919
13920     
13921 fi
13922
13923   fi
13924   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
13925
13926   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
13927     for ac_func in log10f
13928 do
13929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13930 echo "configure:13931: checking for $ac_func" >&5
13931 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13932   echo $ac_n "(cached) $ac_c" 1>&6
13933 else
13934   cat > conftest.$ac_ext <<EOF
13935 #line 13936 "configure"
13936 #include "confdefs.h"
13937 /* System header to define __stub macros and hopefully few prototypes,
13938     which can conflict with char $ac_func(); below.  */
13939 #include <assert.h>
13940 /* Override any gcc2 internal prototype to avoid an error.  */
13941 /* We use char because int might match the return type of a gcc2
13942     builtin and then its argument prototype would still apply.  */
13943 char $ac_func();
13944
13945 int main() {
13946
13947 /* The GNU C library defines this for functions which it implements
13948     to always fail with ENOSYS.  Some functions are actually named
13949     something starting with __ and the normal name is an alias.  */
13950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13951 choke me
13952 #else
13953 $ac_func();
13954 #endif
13955
13956 ; return 0; }
13957 EOF
13958 if { (eval echo configure:13959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13959   rm -rf conftest*
13960   eval "ac_cv_func_$ac_func=yes"
13961 else
13962   echo "configure: failed program was:" >&5
13963   cat conftest.$ac_ext >&5
13964   rm -rf conftest*
13965   eval "ac_cv_func_$ac_func=no"
13966 fi
13967 rm -f conftest*
13968 fi
13969
13970 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13971   echo "$ac_t""yes" 1>&6
13972     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13973   cat >> confdefs.h <<EOF
13974 #define $ac_tr_func 1
13975 EOF
13976  
13977 else
13978   echo "$ac_t""no" 1>&6
13979 fi
13980 done
13981     
13982   else
13983     
13984   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
13985 echo "configure:13986: checking for _log10f declaration" >&5
13986   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
13987     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
13988   echo $ac_n "(cached) $ac_c" 1>&6
13989 else
13990   
13991       
13992       ac_ext=C
13993 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13994 ac_cpp='$CXXCPP $CPPFLAGS'
13995 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13996 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13997 cross_compiling=$ac_cv_prog_cxx_cross
13998
13999       cat > conftest.$ac_ext <<EOF
14000 #line 14001 "configure"
14001 #include "confdefs.h"
14002 #include <math.h>
14003                       #ifdef HAVE_IEEEFP_H
14004                       #include <ieeefp.h>
14005                       #endif
14006                      
14007 int main() {
14008  _log10f(0);
14009 ; return 0; }
14010 EOF
14011 if { (eval echo configure:14012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14012   rm -rf conftest*
14013   glibcpp_cv_func__log10f_use=yes
14014 else
14015   echo "configure: failed program was:" >&5
14016   cat conftest.$ac_ext >&5
14017   rm -rf conftest*
14018   glibcpp_cv_func__log10f_use=no
14019 fi
14020 rm -f conftest*
14021       ac_ext=c
14022 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14023 ac_cpp='$CPP $CPPFLAGS'
14024 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14025 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14026 cross_compiling=$ac_cv_prog_cc_cross
14027
14028     
14029 fi
14030
14031   fi
14032   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
14033
14034     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
14035       for ac_func in _log10f
14036 do
14037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14038 echo "configure:14039: checking for $ac_func" >&5
14039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14040   echo $ac_n "(cached) $ac_c" 1>&6
14041 else
14042   cat > conftest.$ac_ext <<EOF
14043 #line 14044 "configure"
14044 #include "confdefs.h"
14045 /* System header to define __stub macros and hopefully few prototypes,
14046     which can conflict with char $ac_func(); below.  */
14047 #include <assert.h>
14048 /* Override any gcc2 internal prototype to avoid an error.  */
14049 /* We use char because int might match the return type of a gcc2
14050     builtin and then its argument prototype would still apply.  */
14051 char $ac_func();
14052
14053 int main() {
14054
14055 /* The GNU C library defines this for functions which it implements
14056     to always fail with ENOSYS.  Some functions are actually named
14057     something starting with __ and the normal name is an alias.  */
14058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14059 choke me
14060 #else
14061 $ac_func();
14062 #endif
14063
14064 ; return 0; }
14065 EOF
14066 if { (eval echo configure:14067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14067   rm -rf conftest*
14068   eval "ac_cv_func_$ac_func=yes"
14069 else
14070   echo "configure: failed program was:" >&5
14071   cat conftest.$ac_ext >&5
14072   rm -rf conftest*
14073   eval "ac_cv_func_$ac_func=no"
14074 fi
14075 rm -f conftest*
14076 fi
14077
14078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14079   echo "$ac_t""yes" 1>&6
14080     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14081   cat >> confdefs.h <<EOF
14082 #define $ac_tr_func 1
14083 EOF
14084  
14085 else
14086   echo "$ac_t""no" 1>&6
14087 fi
14088 done
14089     
14090     fi
14091   fi
14092
14093   
14094   
14095   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
14096 echo "configure:14097: checking for modff declaration" >&5
14097   if test x${glibcpp_cv_func_modff_use+set} != xset; then
14098     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
14099   echo $ac_n "(cached) $ac_c" 1>&6
14100 else
14101   
14102       
14103       ac_ext=C
14104 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14105 ac_cpp='$CXXCPP $CPPFLAGS'
14106 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14107 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14108 cross_compiling=$ac_cv_prog_cxx_cross
14109
14110       cat > conftest.$ac_ext <<EOF
14111 #line 14112 "configure"
14112 #include "confdefs.h"
14113 #include <math.h>
14114 int main() {
14115  modff(0, 0);
14116 ; return 0; }
14117 EOF
14118 if { (eval echo configure:14119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14119   rm -rf conftest*
14120   glibcpp_cv_func_modff_use=yes
14121 else
14122   echo "configure: failed program was:" >&5
14123   cat conftest.$ac_ext >&5
14124   rm -rf conftest*
14125   glibcpp_cv_func_modff_use=no
14126 fi
14127 rm -f conftest*
14128       ac_ext=c
14129 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14130 ac_cpp='$CPP $CPPFLAGS'
14131 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14132 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14133 cross_compiling=$ac_cv_prog_cc_cross
14134
14135     
14136 fi
14137
14138   fi
14139   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
14140
14141   if test x$glibcpp_cv_func_modff_use = x"yes"; then
14142     for ac_func in modff
14143 do
14144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14145 echo "configure:14146: checking for $ac_func" >&5
14146 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14147   echo $ac_n "(cached) $ac_c" 1>&6
14148 else
14149   cat > conftest.$ac_ext <<EOF
14150 #line 14151 "configure"
14151 #include "confdefs.h"
14152 /* System header to define __stub macros and hopefully few prototypes,
14153     which can conflict with char $ac_func(); below.  */
14154 #include <assert.h>
14155 /* Override any gcc2 internal prototype to avoid an error.  */
14156 /* We use char because int might match the return type of a gcc2
14157     builtin and then its argument prototype would still apply.  */
14158 char $ac_func();
14159
14160 int main() {
14161
14162 /* The GNU C library defines this for functions which it implements
14163     to always fail with ENOSYS.  Some functions are actually named
14164     something starting with __ and the normal name is an alias.  */
14165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14166 choke me
14167 #else
14168 $ac_func();
14169 #endif
14170
14171 ; return 0; }
14172 EOF
14173 if { (eval echo configure:14174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14174   rm -rf conftest*
14175   eval "ac_cv_func_$ac_func=yes"
14176 else
14177   echo "configure: failed program was:" >&5
14178   cat conftest.$ac_ext >&5
14179   rm -rf conftest*
14180   eval "ac_cv_func_$ac_func=no"
14181 fi
14182 rm -f conftest*
14183 fi
14184
14185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14186   echo "$ac_t""yes" 1>&6
14187     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14188   cat >> confdefs.h <<EOF
14189 #define $ac_tr_func 1
14190 EOF
14191  
14192 else
14193   echo "$ac_t""no" 1>&6
14194 fi
14195 done
14196     
14197   else
14198     
14199   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
14200 echo "configure:14201: checking for _modff declaration" >&5
14201   if test x${glibcpp_cv_func__modff_use+set} != xset; then
14202     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
14203   echo $ac_n "(cached) $ac_c" 1>&6
14204 else
14205   
14206       
14207       ac_ext=C
14208 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14209 ac_cpp='$CXXCPP $CPPFLAGS'
14210 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14211 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14212 cross_compiling=$ac_cv_prog_cxx_cross
14213
14214       cat > conftest.$ac_ext <<EOF
14215 #line 14216 "configure"
14216 #include "confdefs.h"
14217 #include <math.h>
14218 int main() {
14219  _modff(0, 0);
14220 ; return 0; }
14221 EOF
14222 if { (eval echo configure:14223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14223   rm -rf conftest*
14224   glibcpp_cv_func__modff_use=yes
14225 else
14226   echo "configure: failed program was:" >&5
14227   cat conftest.$ac_ext >&5
14228   rm -rf conftest*
14229   glibcpp_cv_func__modff_use=no
14230 fi
14231 rm -f conftest*
14232       ac_ext=c
14233 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14234 ac_cpp='$CPP $CPPFLAGS'
14235 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14236 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14237 cross_compiling=$ac_cv_prog_cc_cross
14238
14239     
14240 fi
14241
14242   fi
14243   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
14244
14245     if test x$glibcpp_cv_func__modff_use = x"yes"; then
14246       for ac_func in _modff
14247 do
14248 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14249 echo "configure:14250: checking for $ac_func" >&5
14250 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14251   echo $ac_n "(cached) $ac_c" 1>&6
14252 else
14253   cat > conftest.$ac_ext <<EOF
14254 #line 14255 "configure"
14255 #include "confdefs.h"
14256 /* System header to define __stub macros and hopefully few prototypes,
14257     which can conflict with char $ac_func(); below.  */
14258 #include <assert.h>
14259 /* Override any gcc2 internal prototype to avoid an error.  */
14260 /* We use char because int might match the return type of a gcc2
14261     builtin and then its argument prototype would still apply.  */
14262 char $ac_func();
14263
14264 int main() {
14265
14266 /* The GNU C library defines this for functions which it implements
14267     to always fail with ENOSYS.  Some functions are actually named
14268     something starting with __ and the normal name is an alias.  */
14269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14270 choke me
14271 #else
14272 $ac_func();
14273 #endif
14274
14275 ; return 0; }
14276 EOF
14277 if { (eval echo configure:14278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14278   rm -rf conftest*
14279   eval "ac_cv_func_$ac_func=yes"
14280 else
14281   echo "configure: failed program was:" >&5
14282   cat conftest.$ac_ext >&5
14283   rm -rf conftest*
14284   eval "ac_cv_func_$ac_func=no"
14285 fi
14286 rm -f conftest*
14287 fi
14288
14289 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14290   echo "$ac_t""yes" 1>&6
14291     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14292   cat >> confdefs.h <<EOF
14293 #define $ac_tr_func 1
14294 EOF
14295  
14296 else
14297   echo "$ac_t""no" 1>&6
14298 fi
14299 done
14300     
14301     fi
14302   fi
14303
14304   
14305   
14306   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
14307 echo "configure:14308: checking for powf declaration" >&5
14308   if test x${glibcpp_cv_func_powf_use+set} != xset; then
14309     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
14310   echo $ac_n "(cached) $ac_c" 1>&6
14311 else
14312   
14313       
14314       ac_ext=C
14315 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14316 ac_cpp='$CXXCPP $CPPFLAGS'
14317 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14318 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14319 cross_compiling=$ac_cv_prog_cxx_cross
14320
14321       cat > conftest.$ac_ext <<EOF
14322 #line 14323 "configure"
14323 #include "confdefs.h"
14324 #include <math.h>
14325 int main() {
14326  powf(0, 0);
14327 ; return 0; }
14328 EOF
14329 if { (eval echo configure:14330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14330   rm -rf conftest*
14331   glibcpp_cv_func_powf_use=yes
14332 else
14333   echo "configure: failed program was:" >&5
14334   cat conftest.$ac_ext >&5
14335   rm -rf conftest*
14336   glibcpp_cv_func_powf_use=no
14337 fi
14338 rm -f conftest*
14339       ac_ext=c
14340 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14341 ac_cpp='$CPP $CPPFLAGS'
14342 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14343 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14344 cross_compiling=$ac_cv_prog_cc_cross
14345
14346     
14347 fi
14348
14349   fi
14350   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
14351
14352   if test x$glibcpp_cv_func_powf_use = x"yes"; then
14353     for ac_func in powf
14354 do
14355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14356 echo "configure:14357: checking for $ac_func" >&5
14357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14358   echo $ac_n "(cached) $ac_c" 1>&6
14359 else
14360   cat > conftest.$ac_ext <<EOF
14361 #line 14362 "configure"
14362 #include "confdefs.h"
14363 /* System header to define __stub macros and hopefully few prototypes,
14364     which can conflict with char $ac_func(); below.  */
14365 #include <assert.h>
14366 /* Override any gcc2 internal prototype to avoid an error.  */
14367 /* We use char because int might match the return type of a gcc2
14368     builtin and then its argument prototype would still apply.  */
14369 char $ac_func();
14370
14371 int main() {
14372
14373 /* The GNU C library defines this for functions which it implements
14374     to always fail with ENOSYS.  Some functions are actually named
14375     something starting with __ and the normal name is an alias.  */
14376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14377 choke me
14378 #else
14379 $ac_func();
14380 #endif
14381
14382 ; return 0; }
14383 EOF
14384 if { (eval echo configure:14385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14385   rm -rf conftest*
14386   eval "ac_cv_func_$ac_func=yes"
14387 else
14388   echo "configure: failed program was:" >&5
14389   cat conftest.$ac_ext >&5
14390   rm -rf conftest*
14391   eval "ac_cv_func_$ac_func=no"
14392 fi
14393 rm -f conftest*
14394 fi
14395
14396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14397   echo "$ac_t""yes" 1>&6
14398     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14399   cat >> confdefs.h <<EOF
14400 #define $ac_tr_func 1
14401 EOF
14402  
14403 else
14404   echo "$ac_t""no" 1>&6
14405 fi
14406 done
14407     
14408   else
14409     
14410   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
14411 echo "configure:14412: checking for _powf declaration" >&5
14412   if test x${glibcpp_cv_func__powf_use+set} != xset; then
14413     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
14414   echo $ac_n "(cached) $ac_c" 1>&6
14415 else
14416   
14417       
14418       ac_ext=C
14419 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14420 ac_cpp='$CXXCPP $CPPFLAGS'
14421 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14422 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14423 cross_compiling=$ac_cv_prog_cxx_cross
14424
14425       cat > conftest.$ac_ext <<EOF
14426 #line 14427 "configure"
14427 #include "confdefs.h"
14428 #include <math.h>
14429 int main() {
14430  _powf(0, 0);
14431 ; return 0; }
14432 EOF
14433 if { (eval echo configure:14434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14434   rm -rf conftest*
14435   glibcpp_cv_func__powf_use=yes
14436 else
14437   echo "configure: failed program was:" >&5
14438   cat conftest.$ac_ext >&5
14439   rm -rf conftest*
14440   glibcpp_cv_func__powf_use=no
14441 fi
14442 rm -f conftest*
14443       ac_ext=c
14444 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14445 ac_cpp='$CPP $CPPFLAGS'
14446 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14447 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14448 cross_compiling=$ac_cv_prog_cc_cross
14449
14450     
14451 fi
14452
14453   fi
14454   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
14455
14456     if test x$glibcpp_cv_func__powf_use = x"yes"; then
14457       for ac_func in _powf
14458 do
14459 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14460 echo "configure:14461: checking for $ac_func" >&5
14461 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14462   echo $ac_n "(cached) $ac_c" 1>&6
14463 else
14464   cat > conftest.$ac_ext <<EOF
14465 #line 14466 "configure"
14466 #include "confdefs.h"
14467 /* System header to define __stub macros and hopefully few prototypes,
14468     which can conflict with char $ac_func(); below.  */
14469 #include <assert.h>
14470 /* Override any gcc2 internal prototype to avoid an error.  */
14471 /* We use char because int might match the return type of a gcc2
14472     builtin and then its argument prototype would still apply.  */
14473 char $ac_func();
14474
14475 int main() {
14476
14477 /* The GNU C library defines this for functions which it implements
14478     to always fail with ENOSYS.  Some functions are actually named
14479     something starting with __ and the normal name is an alias.  */
14480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14481 choke me
14482 #else
14483 $ac_func();
14484 #endif
14485
14486 ; return 0; }
14487 EOF
14488 if { (eval echo configure:14489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14489   rm -rf conftest*
14490   eval "ac_cv_func_$ac_func=yes"
14491 else
14492   echo "configure: failed program was:" >&5
14493   cat conftest.$ac_ext >&5
14494   rm -rf conftest*
14495   eval "ac_cv_func_$ac_func=no"
14496 fi
14497 rm -f conftest*
14498 fi
14499
14500 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14501   echo "$ac_t""yes" 1>&6
14502     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14503   cat >> confdefs.h <<EOF
14504 #define $ac_tr_func 1
14505 EOF
14506  
14507 else
14508   echo "$ac_t""no" 1>&6
14509 fi
14510 done
14511     
14512     fi
14513   fi
14514
14515   
14516   
14517   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
14518 echo "configure:14519: checking for sqrtf declaration" >&5
14519   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
14520     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
14521   echo $ac_n "(cached) $ac_c" 1>&6
14522 else
14523   
14524       
14525       ac_ext=C
14526 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14527 ac_cpp='$CXXCPP $CPPFLAGS'
14528 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14529 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14530 cross_compiling=$ac_cv_prog_cxx_cross
14531
14532       cat > conftest.$ac_ext <<EOF
14533 #line 14534 "configure"
14534 #include "confdefs.h"
14535 #include <math.h>
14536                       #ifdef HAVE_IEEEFP_H
14537                       #include <ieeefp.h>
14538                       #endif
14539                      
14540 int main() {
14541  sqrtf(0);
14542 ; return 0; }
14543 EOF
14544 if { (eval echo configure:14545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14545   rm -rf conftest*
14546   glibcpp_cv_func_sqrtf_use=yes
14547 else
14548   echo "configure: failed program was:" >&5
14549   cat conftest.$ac_ext >&5
14550   rm -rf conftest*
14551   glibcpp_cv_func_sqrtf_use=no
14552 fi
14553 rm -f conftest*
14554       ac_ext=c
14555 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14556 ac_cpp='$CPP $CPPFLAGS'
14557 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14558 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14559 cross_compiling=$ac_cv_prog_cc_cross
14560
14561     
14562 fi
14563
14564   fi
14565   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
14566
14567   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
14568     for ac_func in sqrtf
14569 do
14570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14571 echo "configure:14572: checking for $ac_func" >&5
14572 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14573   echo $ac_n "(cached) $ac_c" 1>&6
14574 else
14575   cat > conftest.$ac_ext <<EOF
14576 #line 14577 "configure"
14577 #include "confdefs.h"
14578 /* System header to define __stub macros and hopefully few prototypes,
14579     which can conflict with char $ac_func(); below.  */
14580 #include <assert.h>
14581 /* Override any gcc2 internal prototype to avoid an error.  */
14582 /* We use char because int might match the return type of a gcc2
14583     builtin and then its argument prototype would still apply.  */
14584 char $ac_func();
14585
14586 int main() {
14587
14588 /* The GNU C library defines this for functions which it implements
14589     to always fail with ENOSYS.  Some functions are actually named
14590     something starting with __ and the normal name is an alias.  */
14591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14592 choke me
14593 #else
14594 $ac_func();
14595 #endif
14596
14597 ; return 0; }
14598 EOF
14599 if { (eval echo configure:14600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14600   rm -rf conftest*
14601   eval "ac_cv_func_$ac_func=yes"
14602 else
14603   echo "configure: failed program was:" >&5
14604   cat conftest.$ac_ext >&5
14605   rm -rf conftest*
14606   eval "ac_cv_func_$ac_func=no"
14607 fi
14608 rm -f conftest*
14609 fi
14610
14611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14612   echo "$ac_t""yes" 1>&6
14613     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14614   cat >> confdefs.h <<EOF
14615 #define $ac_tr_func 1
14616 EOF
14617  
14618 else
14619   echo "$ac_t""no" 1>&6
14620 fi
14621 done
14622     
14623   else
14624     
14625   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
14626 echo "configure:14627: checking for _sqrtf declaration" >&5
14627   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
14628     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
14629   echo $ac_n "(cached) $ac_c" 1>&6
14630 else
14631   
14632       
14633       ac_ext=C
14634 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14635 ac_cpp='$CXXCPP $CPPFLAGS'
14636 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14637 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14638 cross_compiling=$ac_cv_prog_cxx_cross
14639
14640       cat > conftest.$ac_ext <<EOF
14641 #line 14642 "configure"
14642 #include "confdefs.h"
14643 #include <math.h>
14644                       #ifdef HAVE_IEEEFP_H
14645                       #include <ieeefp.h>
14646                       #endif
14647                      
14648 int main() {
14649  _sqrtf(0);
14650 ; return 0; }
14651 EOF
14652 if { (eval echo configure:14653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14653   rm -rf conftest*
14654   glibcpp_cv_func__sqrtf_use=yes
14655 else
14656   echo "configure: failed program was:" >&5
14657   cat conftest.$ac_ext >&5
14658   rm -rf conftest*
14659   glibcpp_cv_func__sqrtf_use=no
14660 fi
14661 rm -f conftest*
14662       ac_ext=c
14663 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14664 ac_cpp='$CPP $CPPFLAGS'
14665 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14666 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14667 cross_compiling=$ac_cv_prog_cc_cross
14668
14669     
14670 fi
14671
14672   fi
14673   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
14674
14675     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
14676       for ac_func in _sqrtf
14677 do
14678 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14679 echo "configure:14680: checking for $ac_func" >&5
14680 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14681   echo $ac_n "(cached) $ac_c" 1>&6
14682 else
14683   cat > conftest.$ac_ext <<EOF
14684 #line 14685 "configure"
14685 #include "confdefs.h"
14686 /* System header to define __stub macros and hopefully few prototypes,
14687     which can conflict with char $ac_func(); below.  */
14688 #include <assert.h>
14689 /* Override any gcc2 internal prototype to avoid an error.  */
14690 /* We use char because int might match the return type of a gcc2
14691     builtin and then its argument prototype would still apply.  */
14692 char $ac_func();
14693
14694 int main() {
14695
14696 /* The GNU C library defines this for functions which it implements
14697     to always fail with ENOSYS.  Some functions are actually named
14698     something starting with __ and the normal name is an alias.  */
14699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14700 choke me
14701 #else
14702 $ac_func();
14703 #endif
14704
14705 ; return 0; }
14706 EOF
14707 if { (eval echo configure:14708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14708   rm -rf conftest*
14709   eval "ac_cv_func_$ac_func=yes"
14710 else
14711   echo "configure: failed program was:" >&5
14712   cat conftest.$ac_ext >&5
14713   rm -rf conftest*
14714   eval "ac_cv_func_$ac_func=no"
14715 fi
14716 rm -f conftest*
14717 fi
14718
14719 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14720   echo "$ac_t""yes" 1>&6
14721     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14722   cat >> confdefs.h <<EOF
14723 #define $ac_tr_func 1
14724 EOF
14725  
14726 else
14727   echo "$ac_t""no" 1>&6
14728 fi
14729 done
14730     
14731     fi
14732   fi
14733
14734   
14735   
14736   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
14737 echo "configure:14738: checking for sincosf declaration" >&5
14738   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
14739     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
14740   echo $ac_n "(cached) $ac_c" 1>&6
14741 else
14742   
14743       
14744       ac_ext=C
14745 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14746 ac_cpp='$CXXCPP $CPPFLAGS'
14747 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14748 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14749 cross_compiling=$ac_cv_prog_cxx_cross
14750
14751       cat > conftest.$ac_ext <<EOF
14752 #line 14753 "configure"
14753 #include "confdefs.h"
14754 #include <math.h>
14755 int main() {
14756  sincosf(0, 0, 0);
14757 ; return 0; }
14758 EOF
14759 if { (eval echo configure:14760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14760   rm -rf conftest*
14761   glibcpp_cv_func_sincosf_use=yes
14762 else
14763   echo "configure: failed program was:" >&5
14764   cat conftest.$ac_ext >&5
14765   rm -rf conftest*
14766   glibcpp_cv_func_sincosf_use=no
14767 fi
14768 rm -f conftest*
14769       ac_ext=c
14770 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14771 ac_cpp='$CPP $CPPFLAGS'
14772 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14773 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14774 cross_compiling=$ac_cv_prog_cc_cross
14775
14776     
14777 fi
14778
14779   fi
14780   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
14781
14782   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
14783     for ac_func in sincosf
14784 do
14785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14786 echo "configure:14787: checking for $ac_func" >&5
14787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14788   echo $ac_n "(cached) $ac_c" 1>&6
14789 else
14790   cat > conftest.$ac_ext <<EOF
14791 #line 14792 "configure"
14792 #include "confdefs.h"
14793 /* System header to define __stub macros and hopefully few prototypes,
14794     which can conflict with char $ac_func(); below.  */
14795 #include <assert.h>
14796 /* Override any gcc2 internal prototype to avoid an error.  */
14797 /* We use char because int might match the return type of a gcc2
14798     builtin and then its argument prototype would still apply.  */
14799 char $ac_func();
14800
14801 int main() {
14802
14803 /* The GNU C library defines this for functions which it implements
14804     to always fail with ENOSYS.  Some functions are actually named
14805     something starting with __ and the normal name is an alias.  */
14806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14807 choke me
14808 #else
14809 $ac_func();
14810 #endif
14811
14812 ; return 0; }
14813 EOF
14814 if { (eval echo configure:14815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14815   rm -rf conftest*
14816   eval "ac_cv_func_$ac_func=yes"
14817 else
14818   echo "configure: failed program was:" >&5
14819   cat conftest.$ac_ext >&5
14820   rm -rf conftest*
14821   eval "ac_cv_func_$ac_func=no"
14822 fi
14823 rm -f conftest*
14824 fi
14825
14826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14827   echo "$ac_t""yes" 1>&6
14828     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14829   cat >> confdefs.h <<EOF
14830 #define $ac_tr_func 1
14831 EOF
14832  
14833 else
14834   echo "$ac_t""no" 1>&6
14835 fi
14836 done
14837     
14838   else
14839     
14840   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
14841 echo "configure:14842: checking for _sincosf declaration" >&5
14842   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
14843     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
14844   echo $ac_n "(cached) $ac_c" 1>&6
14845 else
14846   
14847       
14848       ac_ext=C
14849 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14850 ac_cpp='$CXXCPP $CPPFLAGS'
14851 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14852 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14853 cross_compiling=$ac_cv_prog_cxx_cross
14854
14855       cat > conftest.$ac_ext <<EOF
14856 #line 14857 "configure"
14857 #include "confdefs.h"
14858 #include <math.h>
14859 int main() {
14860  _sincosf(0, 0, 0);
14861 ; return 0; }
14862 EOF
14863 if { (eval echo configure:14864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14864   rm -rf conftest*
14865   glibcpp_cv_func__sincosf_use=yes
14866 else
14867   echo "configure: failed program was:" >&5
14868   cat conftest.$ac_ext >&5
14869   rm -rf conftest*
14870   glibcpp_cv_func__sincosf_use=no
14871 fi
14872 rm -f conftest*
14873       ac_ext=c
14874 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14875 ac_cpp='$CPP $CPPFLAGS'
14876 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14877 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14878 cross_compiling=$ac_cv_prog_cc_cross
14879
14880     
14881 fi
14882
14883   fi
14884   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
14885
14886     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
14887       for ac_func in _sincosf
14888 do
14889 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14890 echo "configure:14891: checking for $ac_func" >&5
14891 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14892   echo $ac_n "(cached) $ac_c" 1>&6
14893 else
14894   cat > conftest.$ac_ext <<EOF
14895 #line 14896 "configure"
14896 #include "confdefs.h"
14897 /* System header to define __stub macros and hopefully few prototypes,
14898     which can conflict with char $ac_func(); below.  */
14899 #include <assert.h>
14900 /* Override any gcc2 internal prototype to avoid an error.  */
14901 /* We use char because int might match the return type of a gcc2
14902     builtin and then its argument prototype would still apply.  */
14903 char $ac_func();
14904
14905 int main() {
14906
14907 /* The GNU C library defines this for functions which it implements
14908     to always fail with ENOSYS.  Some functions are actually named
14909     something starting with __ and the normal name is an alias.  */
14910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14911 choke me
14912 #else
14913 $ac_func();
14914 #endif
14915
14916 ; return 0; }
14917 EOF
14918 if { (eval echo configure:14919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14919   rm -rf conftest*
14920   eval "ac_cv_func_$ac_func=yes"
14921 else
14922   echo "configure: failed program was:" >&5
14923   cat conftest.$ac_ext >&5
14924   rm -rf conftest*
14925   eval "ac_cv_func_$ac_func=no"
14926 fi
14927 rm -f conftest*
14928 fi
14929
14930 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14931   echo "$ac_t""yes" 1>&6
14932     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14933   cat >> confdefs.h <<EOF
14934 #define $ac_tr_func 1
14935 EOF
14936  
14937 else
14938   echo "$ac_t""no" 1>&6
14939 fi
14940 done
14941     
14942     fi
14943   fi
14944
14945   
14946   
14947   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
14948 echo "configure:14949: checking for finitef declaration" >&5
14949   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
14950     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
14951   echo $ac_n "(cached) $ac_c" 1>&6
14952 else
14953   
14954       
14955       ac_ext=C
14956 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14957 ac_cpp='$CXXCPP $CPPFLAGS'
14958 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14959 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14960 cross_compiling=$ac_cv_prog_cxx_cross
14961
14962       cat > conftest.$ac_ext <<EOF
14963 #line 14964 "configure"
14964 #include "confdefs.h"
14965 #include <math.h>
14966                       #ifdef HAVE_IEEEFP_H
14967                       #include <ieeefp.h>
14968                       #endif
14969                      
14970 int main() {
14971  finitef(0);
14972 ; return 0; }
14973 EOF
14974 if { (eval echo configure:14975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14975   rm -rf conftest*
14976   glibcpp_cv_func_finitef_use=yes
14977 else
14978   echo "configure: failed program was:" >&5
14979   cat conftest.$ac_ext >&5
14980   rm -rf conftest*
14981   glibcpp_cv_func_finitef_use=no
14982 fi
14983 rm -f conftest*
14984       ac_ext=c
14985 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14986 ac_cpp='$CPP $CPPFLAGS'
14987 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14988 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14989 cross_compiling=$ac_cv_prog_cc_cross
14990
14991     
14992 fi
14993
14994   fi
14995   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
14996
14997   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
14998     for ac_func in finitef
14999 do
15000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15001 echo "configure:15002: checking for $ac_func" >&5
15002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15003   echo $ac_n "(cached) $ac_c" 1>&6
15004 else
15005   cat > conftest.$ac_ext <<EOF
15006 #line 15007 "configure"
15007 #include "confdefs.h"
15008 /* System header to define __stub macros and hopefully few prototypes,
15009     which can conflict with char $ac_func(); below.  */
15010 #include <assert.h>
15011 /* Override any gcc2 internal prototype to avoid an error.  */
15012 /* We use char because int might match the return type of a gcc2
15013     builtin and then its argument prototype would still apply.  */
15014 char $ac_func();
15015
15016 int main() {
15017
15018 /* The GNU C library defines this for functions which it implements
15019     to always fail with ENOSYS.  Some functions are actually named
15020     something starting with __ and the normal name is an alias.  */
15021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15022 choke me
15023 #else
15024 $ac_func();
15025 #endif
15026
15027 ; return 0; }
15028 EOF
15029 if { (eval echo configure:15030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15030   rm -rf conftest*
15031   eval "ac_cv_func_$ac_func=yes"
15032 else
15033   echo "configure: failed program was:" >&5
15034   cat conftest.$ac_ext >&5
15035   rm -rf conftest*
15036   eval "ac_cv_func_$ac_func=no"
15037 fi
15038 rm -f conftest*
15039 fi
15040
15041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15042   echo "$ac_t""yes" 1>&6
15043     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15044   cat >> confdefs.h <<EOF
15045 #define $ac_tr_func 1
15046 EOF
15047  
15048 else
15049   echo "$ac_t""no" 1>&6
15050 fi
15051 done
15052     
15053   else
15054     
15055   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
15056 echo "configure:15057: checking for _finitef declaration" >&5
15057   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
15058     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
15059   echo $ac_n "(cached) $ac_c" 1>&6
15060 else
15061   
15062       
15063       ac_ext=C
15064 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15065 ac_cpp='$CXXCPP $CPPFLAGS'
15066 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15067 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15068 cross_compiling=$ac_cv_prog_cxx_cross
15069
15070       cat > conftest.$ac_ext <<EOF
15071 #line 15072 "configure"
15072 #include "confdefs.h"
15073 #include <math.h>
15074                       #ifdef HAVE_IEEEFP_H
15075                       #include <ieeefp.h>
15076                       #endif
15077                      
15078 int main() {
15079  _finitef(0);
15080 ; return 0; }
15081 EOF
15082 if { (eval echo configure:15083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15083   rm -rf conftest*
15084   glibcpp_cv_func__finitef_use=yes
15085 else
15086   echo "configure: failed program was:" >&5
15087   cat conftest.$ac_ext >&5
15088   rm -rf conftest*
15089   glibcpp_cv_func__finitef_use=no
15090 fi
15091 rm -f conftest*
15092       ac_ext=c
15093 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15094 ac_cpp='$CPP $CPPFLAGS'
15095 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15096 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15097 cross_compiling=$ac_cv_prog_cc_cross
15098
15099     
15100 fi
15101
15102   fi
15103   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
15104
15105     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
15106       for ac_func in _finitef
15107 do
15108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15109 echo "configure:15110: checking for $ac_func" >&5
15110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15111   echo $ac_n "(cached) $ac_c" 1>&6
15112 else
15113   cat > conftest.$ac_ext <<EOF
15114 #line 15115 "configure"
15115 #include "confdefs.h"
15116 /* System header to define __stub macros and hopefully few prototypes,
15117     which can conflict with char $ac_func(); below.  */
15118 #include <assert.h>
15119 /* Override any gcc2 internal prototype to avoid an error.  */
15120 /* We use char because int might match the return type of a gcc2
15121     builtin and then its argument prototype would still apply.  */
15122 char $ac_func();
15123
15124 int main() {
15125
15126 /* The GNU C library defines this for functions which it implements
15127     to always fail with ENOSYS.  Some functions are actually named
15128     something starting with __ and the normal name is an alias.  */
15129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15130 choke me
15131 #else
15132 $ac_func();
15133 #endif
15134
15135 ; return 0; }
15136 EOF
15137 if { (eval echo configure:15138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15138   rm -rf conftest*
15139   eval "ac_cv_func_$ac_func=yes"
15140 else
15141   echo "configure: failed program was:" >&5
15142   cat conftest.$ac_ext >&5
15143   rm -rf conftest*
15144   eval "ac_cv_func_$ac_func=no"
15145 fi
15146 rm -f conftest*
15147 fi
15148
15149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15150   echo "$ac_t""yes" 1>&6
15151     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15152   cat >> confdefs.h <<EOF
15153 #define $ac_tr_func 1
15154 EOF
15155  
15156 else
15157   echo "$ac_t""no" 1>&6
15158 fi
15159 done
15160     
15161     fi
15162   fi
15163
15164
15165     
15166   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
15167 echo "configure:15168: checking for long double trig functions" >&5
15168   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
15169   echo $ac_n "(cached) $ac_c" 1>&6
15170 else
15171   
15172     
15173     ac_ext=C
15174 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15175 ac_cpp='$CXXCPP $CPPFLAGS'
15176 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15177 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15178 cross_compiling=$ac_cv_prog_cxx_cross
15179
15180     cat > conftest.$ac_ext <<EOF
15181 #line 15182 "configure"
15182 #include "confdefs.h"
15183 #include <math.h>
15184 int main() {
15185  `for x in acosl asinl atanl \
15186                                           cosl sinl tanl \
15187                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
15188 ; return 0; }
15189 EOF
15190 if { (eval echo configure:15191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15191   rm -rf conftest*
15192   glibcpp_cv_func_long_double_trig_use=yes
15193 else
15194   echo "configure: failed program was:" >&5
15195   cat conftest.$ac_ext >&5
15196   rm -rf conftest*
15197   glibcpp_cv_func_long_double_trig_use=no
15198 fi
15199 rm -f conftest*
15200     ac_ext=c
15201 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15202 ac_cpp='$CPP $CPPFLAGS'
15203 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15204 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15205 cross_compiling=$ac_cv_prog_cc_cross
15206
15207 fi
15208
15209   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
15210   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
15211     for ac_func in acosl asinl atanl \
15212                                           cosl sinl tanl \
15213                                           coshl sinhl tanhl
15214 do
15215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15216 echo "configure:15217: checking for $ac_func" >&5
15217 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15218   echo $ac_n "(cached) $ac_c" 1>&6
15219 else
15220   cat > conftest.$ac_ext <<EOF
15221 #line 15222 "configure"
15222 #include "confdefs.h"
15223 /* System header to define __stub macros and hopefully few prototypes,
15224     which can conflict with char $ac_func(); below.  */
15225 #include <assert.h>
15226 /* Override any gcc2 internal prototype to avoid an error.  */
15227 /* We use char because int might match the return type of a gcc2
15228     builtin and then its argument prototype would still apply.  */
15229 char $ac_func();
15230
15231 int main() {
15232
15233 /* The GNU C library defines this for functions which it implements
15234     to always fail with ENOSYS.  Some functions are actually named
15235     something starting with __ and the normal name is an alias.  */
15236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15237 choke me
15238 #else
15239 $ac_func();
15240 #endif
15241
15242 ; return 0; }
15243 EOF
15244 if { (eval echo configure:15245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15245   rm -rf conftest*
15246   eval "ac_cv_func_$ac_func=yes"
15247 else
15248   echo "configure: failed program was:" >&5
15249   cat conftest.$ac_ext >&5
15250   rm -rf conftest*
15251   eval "ac_cv_func_$ac_func=no"
15252 fi
15253 rm -f conftest*
15254 fi
15255
15256 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15257   echo "$ac_t""yes" 1>&6
15258     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15259   cat >> confdefs.h <<EOF
15260 #define $ac_tr_func 1
15261 EOF
15262  
15263 else
15264   echo "$ac_t""no" 1>&6
15265 fi
15266 done
15267
15268   fi
15269
15270   
15271   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
15272 echo "configure:15273: checking for long double round functions" >&5
15273   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
15274   echo $ac_n "(cached) $ac_c" 1>&6
15275 else
15276   
15277     
15278     ac_ext=C
15279 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15280 ac_cpp='$CXXCPP $CPPFLAGS'
15281 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15282 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15283 cross_compiling=$ac_cv_prog_cxx_cross
15284
15285     cat > conftest.$ac_ext <<EOF
15286 #line 15287 "configure"
15287 #include "confdefs.h"
15288 #include <math.h>
15289 int main() {
15290  `for x in ceill floorl; do echo "$x (0);"; done` 
15291 ; return 0; }
15292 EOF
15293 if { (eval echo configure:15294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15294   rm -rf conftest*
15295   glibcpp_cv_func_long_double_round_use=yes
15296 else
15297   echo "configure: failed program was:" >&5
15298   cat conftest.$ac_ext >&5
15299   rm -rf conftest*
15300   glibcpp_cv_func_long_double_round_use=no
15301 fi
15302 rm -f conftest*
15303     ac_ext=c
15304 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15305 ac_cpp='$CPP $CPPFLAGS'
15306 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15307 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15308 cross_compiling=$ac_cv_prog_cc_cross
15309
15310 fi
15311
15312   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
15313   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
15314     for ac_func in ceill floorl
15315 do
15316 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15317 echo "configure:15318: checking for $ac_func" >&5
15318 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15319   echo $ac_n "(cached) $ac_c" 1>&6
15320 else
15321   cat > conftest.$ac_ext <<EOF
15322 #line 15323 "configure"
15323 #include "confdefs.h"
15324 /* System header to define __stub macros and hopefully few prototypes,
15325     which can conflict with char $ac_func(); below.  */
15326 #include <assert.h>
15327 /* Override any gcc2 internal prototype to avoid an error.  */
15328 /* We use char because int might match the return type of a gcc2
15329     builtin and then its argument prototype would still apply.  */
15330 char $ac_func();
15331
15332 int main() {
15333
15334 /* The GNU C library defines this for functions which it implements
15335     to always fail with ENOSYS.  Some functions are actually named
15336     something starting with __ and the normal name is an alias.  */
15337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15338 choke me
15339 #else
15340 $ac_func();
15341 #endif
15342
15343 ; return 0; }
15344 EOF
15345 if { (eval echo configure:15346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15346   rm -rf conftest*
15347   eval "ac_cv_func_$ac_func=yes"
15348 else
15349   echo "configure: failed program was:" >&5
15350   cat conftest.$ac_ext >&5
15351   rm -rf conftest*
15352   eval "ac_cv_func_$ac_func=no"
15353 fi
15354 rm -f conftest*
15355 fi
15356
15357 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15358   echo "$ac_t""yes" 1>&6
15359     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15360   cat >> confdefs.h <<EOF
15361 #define $ac_tr_func 1
15362 EOF
15363  
15364 else
15365   echo "$ac_t""no" 1>&6
15366 fi
15367 done
15368
15369   fi
15370
15371   
15372   
15373   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
15374 echo "configure:15375: checking for isnanl declaration" >&5
15375   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
15376     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
15377   echo $ac_n "(cached) $ac_c" 1>&6
15378 else
15379   
15380       
15381       ac_ext=C
15382 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15383 ac_cpp='$CXXCPP $CPPFLAGS'
15384 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15385 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15386 cross_compiling=$ac_cv_prog_cxx_cross
15387
15388       cat > conftest.$ac_ext <<EOF
15389 #line 15390 "configure"
15390 #include "confdefs.h"
15391 #include <math.h>
15392                       #ifdef HAVE_IEEEFP_H
15393                       #include <ieeefp.h>
15394                       #endif
15395                      
15396 int main() {
15397  isnanl(0);
15398 ; return 0; }
15399 EOF
15400 if { (eval echo configure:15401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15401   rm -rf conftest*
15402   glibcpp_cv_func_isnanl_use=yes
15403 else
15404   echo "configure: failed program was:" >&5
15405   cat conftest.$ac_ext >&5
15406   rm -rf conftest*
15407   glibcpp_cv_func_isnanl_use=no
15408 fi
15409 rm -f conftest*
15410       ac_ext=c
15411 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15412 ac_cpp='$CPP $CPPFLAGS'
15413 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15414 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15415 cross_compiling=$ac_cv_prog_cc_cross
15416
15417     
15418 fi
15419
15420   fi
15421   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
15422
15423   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
15424     for ac_func in isnanl
15425 do
15426 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15427 echo "configure:15428: checking for $ac_func" >&5
15428 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15429   echo $ac_n "(cached) $ac_c" 1>&6
15430 else
15431   cat > conftest.$ac_ext <<EOF
15432 #line 15433 "configure"
15433 #include "confdefs.h"
15434 /* System header to define __stub macros and hopefully few prototypes,
15435     which can conflict with char $ac_func(); below.  */
15436 #include <assert.h>
15437 /* Override any gcc2 internal prototype to avoid an error.  */
15438 /* We use char because int might match the return type of a gcc2
15439     builtin and then its argument prototype would still apply.  */
15440 char $ac_func();
15441
15442 int main() {
15443
15444 /* The GNU C library defines this for functions which it implements
15445     to always fail with ENOSYS.  Some functions are actually named
15446     something starting with __ and the normal name is an alias.  */
15447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15448 choke me
15449 #else
15450 $ac_func();
15451 #endif
15452
15453 ; return 0; }
15454 EOF
15455 if { (eval echo configure:15456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15456   rm -rf conftest*
15457   eval "ac_cv_func_$ac_func=yes"
15458 else
15459   echo "configure: failed program was:" >&5
15460   cat conftest.$ac_ext >&5
15461   rm -rf conftest*
15462   eval "ac_cv_func_$ac_func=no"
15463 fi
15464 rm -f conftest*
15465 fi
15466
15467 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15468   echo "$ac_t""yes" 1>&6
15469     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15470   cat >> confdefs.h <<EOF
15471 #define $ac_tr_func 1
15472 EOF
15473  
15474 else
15475   echo "$ac_t""no" 1>&6
15476 fi
15477 done
15478     
15479   else
15480     
15481   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
15482 echo "configure:15483: checking for _isnanl declaration" >&5
15483   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
15484     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
15485   echo $ac_n "(cached) $ac_c" 1>&6
15486 else
15487   
15488       
15489       ac_ext=C
15490 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15491 ac_cpp='$CXXCPP $CPPFLAGS'
15492 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15493 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15494 cross_compiling=$ac_cv_prog_cxx_cross
15495
15496       cat > conftest.$ac_ext <<EOF
15497 #line 15498 "configure"
15498 #include "confdefs.h"
15499 #include <math.h>
15500                       #ifdef HAVE_IEEEFP_H
15501                       #include <ieeefp.h>
15502                       #endif
15503                      
15504 int main() {
15505  _isnanl(0);
15506 ; return 0; }
15507 EOF
15508 if { (eval echo configure:15509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15509   rm -rf conftest*
15510   glibcpp_cv_func__isnanl_use=yes
15511 else
15512   echo "configure: failed program was:" >&5
15513   cat conftest.$ac_ext >&5
15514   rm -rf conftest*
15515   glibcpp_cv_func__isnanl_use=no
15516 fi
15517 rm -f conftest*
15518       ac_ext=c
15519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15520 ac_cpp='$CPP $CPPFLAGS'
15521 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15522 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15523 cross_compiling=$ac_cv_prog_cc_cross
15524
15525     
15526 fi
15527
15528   fi
15529   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
15530
15531     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
15532       for ac_func in _isnanl
15533 do
15534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15535 echo "configure:15536: checking for $ac_func" >&5
15536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15537   echo $ac_n "(cached) $ac_c" 1>&6
15538 else
15539   cat > conftest.$ac_ext <<EOF
15540 #line 15541 "configure"
15541 #include "confdefs.h"
15542 /* System header to define __stub macros and hopefully few prototypes,
15543     which can conflict with char $ac_func(); below.  */
15544 #include <assert.h>
15545 /* Override any gcc2 internal prototype to avoid an error.  */
15546 /* We use char because int might match the return type of a gcc2
15547     builtin and then its argument prototype would still apply.  */
15548 char $ac_func();
15549
15550 int main() {
15551
15552 /* The GNU C library defines this for functions which it implements
15553     to always fail with ENOSYS.  Some functions are actually named
15554     something starting with __ and the normal name is an alias.  */
15555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15556 choke me
15557 #else
15558 $ac_func();
15559 #endif
15560
15561 ; return 0; }
15562 EOF
15563 if { (eval echo configure:15564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15564   rm -rf conftest*
15565   eval "ac_cv_func_$ac_func=yes"
15566 else
15567   echo "configure: failed program was:" >&5
15568   cat conftest.$ac_ext >&5
15569   rm -rf conftest*
15570   eval "ac_cv_func_$ac_func=no"
15571 fi
15572 rm -f conftest*
15573 fi
15574
15575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15576   echo "$ac_t""yes" 1>&6
15577     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15578   cat >> confdefs.h <<EOF
15579 #define $ac_tr_func 1
15580 EOF
15581  
15582 else
15583   echo "$ac_t""no" 1>&6
15584 fi
15585 done
15586     
15587     fi
15588   fi
15589
15590   
15591   
15592   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
15593 echo "configure:15594: checking for isinfl declaration" >&5
15594   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
15595     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
15596   echo $ac_n "(cached) $ac_c" 1>&6
15597 else
15598   
15599       
15600       ac_ext=C
15601 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15602 ac_cpp='$CXXCPP $CPPFLAGS'
15603 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15604 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15605 cross_compiling=$ac_cv_prog_cxx_cross
15606
15607       cat > conftest.$ac_ext <<EOF
15608 #line 15609 "configure"
15609 #include "confdefs.h"
15610 #include <math.h>
15611                       #ifdef HAVE_IEEEFP_H
15612                       #include <ieeefp.h>
15613                       #endif
15614                      
15615 int main() {
15616  isinfl(0);
15617 ; return 0; }
15618 EOF
15619 if { (eval echo configure:15620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15620   rm -rf conftest*
15621   glibcpp_cv_func_isinfl_use=yes
15622 else
15623   echo "configure: failed program was:" >&5
15624   cat conftest.$ac_ext >&5
15625   rm -rf conftest*
15626   glibcpp_cv_func_isinfl_use=no
15627 fi
15628 rm -f conftest*
15629       ac_ext=c
15630 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15631 ac_cpp='$CPP $CPPFLAGS'
15632 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15633 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15634 cross_compiling=$ac_cv_prog_cc_cross
15635
15636     
15637 fi
15638
15639   fi
15640   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
15641
15642   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
15643     for ac_func in isinfl
15644 do
15645 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15646 echo "configure:15647: checking for $ac_func" >&5
15647 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15648   echo $ac_n "(cached) $ac_c" 1>&6
15649 else
15650   cat > conftest.$ac_ext <<EOF
15651 #line 15652 "configure"
15652 #include "confdefs.h"
15653 /* System header to define __stub macros and hopefully few prototypes,
15654     which can conflict with char $ac_func(); below.  */
15655 #include <assert.h>
15656 /* Override any gcc2 internal prototype to avoid an error.  */
15657 /* We use char because int might match the return type of a gcc2
15658     builtin and then its argument prototype would still apply.  */
15659 char $ac_func();
15660
15661 int main() {
15662
15663 /* The GNU C library defines this for functions which it implements
15664     to always fail with ENOSYS.  Some functions are actually named
15665     something starting with __ and the normal name is an alias.  */
15666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15667 choke me
15668 #else
15669 $ac_func();
15670 #endif
15671
15672 ; return 0; }
15673 EOF
15674 if { (eval echo configure:15675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15675   rm -rf conftest*
15676   eval "ac_cv_func_$ac_func=yes"
15677 else
15678   echo "configure: failed program was:" >&5
15679   cat conftest.$ac_ext >&5
15680   rm -rf conftest*
15681   eval "ac_cv_func_$ac_func=no"
15682 fi
15683 rm -f conftest*
15684 fi
15685
15686 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15687   echo "$ac_t""yes" 1>&6
15688     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15689   cat >> confdefs.h <<EOF
15690 #define $ac_tr_func 1
15691 EOF
15692  
15693 else
15694   echo "$ac_t""no" 1>&6
15695 fi
15696 done
15697     
15698   else
15699     
15700   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
15701 echo "configure:15702: checking for _isinfl declaration" >&5
15702   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
15703     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
15704   echo $ac_n "(cached) $ac_c" 1>&6
15705 else
15706   
15707       
15708       ac_ext=C
15709 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15710 ac_cpp='$CXXCPP $CPPFLAGS'
15711 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15712 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15713 cross_compiling=$ac_cv_prog_cxx_cross
15714
15715       cat > conftest.$ac_ext <<EOF
15716 #line 15717 "configure"
15717 #include "confdefs.h"
15718 #include <math.h>
15719                       #ifdef HAVE_IEEEFP_H
15720                       #include <ieeefp.h>
15721                       #endif
15722                      
15723 int main() {
15724  _isinfl(0);
15725 ; return 0; }
15726 EOF
15727 if { (eval echo configure:15728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15728   rm -rf conftest*
15729   glibcpp_cv_func__isinfl_use=yes
15730 else
15731   echo "configure: failed program was:" >&5
15732   cat conftest.$ac_ext >&5
15733   rm -rf conftest*
15734   glibcpp_cv_func__isinfl_use=no
15735 fi
15736 rm -f conftest*
15737       ac_ext=c
15738 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15739 ac_cpp='$CPP $CPPFLAGS'
15740 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15741 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15742 cross_compiling=$ac_cv_prog_cc_cross
15743
15744     
15745 fi
15746
15747   fi
15748   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
15749
15750     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
15751       for ac_func in _isinfl
15752 do
15753 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15754 echo "configure:15755: checking for $ac_func" >&5
15755 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15756   echo $ac_n "(cached) $ac_c" 1>&6
15757 else
15758   cat > conftest.$ac_ext <<EOF
15759 #line 15760 "configure"
15760 #include "confdefs.h"
15761 /* System header to define __stub macros and hopefully few prototypes,
15762     which can conflict with char $ac_func(); below.  */
15763 #include <assert.h>
15764 /* Override any gcc2 internal prototype to avoid an error.  */
15765 /* We use char because int might match the return type of a gcc2
15766     builtin and then its argument prototype would still apply.  */
15767 char $ac_func();
15768
15769 int main() {
15770
15771 /* The GNU C library defines this for functions which it implements
15772     to always fail with ENOSYS.  Some functions are actually named
15773     something starting with __ and the normal name is an alias.  */
15774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15775 choke me
15776 #else
15777 $ac_func();
15778 #endif
15779
15780 ; return 0; }
15781 EOF
15782 if { (eval echo configure:15783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15783   rm -rf conftest*
15784   eval "ac_cv_func_$ac_func=yes"
15785 else
15786   echo "configure: failed program was:" >&5
15787   cat conftest.$ac_ext >&5
15788   rm -rf conftest*
15789   eval "ac_cv_func_$ac_func=no"
15790 fi
15791 rm -f conftest*
15792 fi
15793
15794 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15795   echo "$ac_t""yes" 1>&6
15796     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15797   cat >> confdefs.h <<EOF
15798 #define $ac_tr_func 1
15799 EOF
15800  
15801 else
15802   echo "$ac_t""no" 1>&6
15803 fi
15804 done
15805     
15806     fi
15807   fi
15808
15809   
15810   
15811   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
15812 echo "configure:15813: checking for copysignl declaration" >&5
15813   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
15814     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
15815   echo $ac_n "(cached) $ac_c" 1>&6
15816 else
15817   
15818       
15819       ac_ext=C
15820 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15821 ac_cpp='$CXXCPP $CPPFLAGS'
15822 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15823 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15824 cross_compiling=$ac_cv_prog_cxx_cross
15825
15826       cat > conftest.$ac_ext <<EOF
15827 #line 15828 "configure"
15828 #include "confdefs.h"
15829 #include <math.h>
15830 int main() {
15831  copysignl(0, 0);
15832 ; return 0; }
15833 EOF
15834 if { (eval echo configure:15835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15835   rm -rf conftest*
15836   glibcpp_cv_func_copysignl_use=yes
15837 else
15838   echo "configure: failed program was:" >&5
15839   cat conftest.$ac_ext >&5
15840   rm -rf conftest*
15841   glibcpp_cv_func_copysignl_use=no
15842 fi
15843 rm -f conftest*
15844       ac_ext=c
15845 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15846 ac_cpp='$CPP $CPPFLAGS'
15847 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15848 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15849 cross_compiling=$ac_cv_prog_cc_cross
15850
15851     
15852 fi
15853
15854   fi
15855   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
15856
15857   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
15858     for ac_func in copysignl
15859 do
15860 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15861 echo "configure:15862: checking for $ac_func" >&5
15862 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15863   echo $ac_n "(cached) $ac_c" 1>&6
15864 else
15865   cat > conftest.$ac_ext <<EOF
15866 #line 15867 "configure"
15867 #include "confdefs.h"
15868 /* System header to define __stub macros and hopefully few prototypes,
15869     which can conflict with char $ac_func(); below.  */
15870 #include <assert.h>
15871 /* Override any gcc2 internal prototype to avoid an error.  */
15872 /* We use char because int might match the return type of a gcc2
15873     builtin and then its argument prototype would still apply.  */
15874 char $ac_func();
15875
15876 int main() {
15877
15878 /* The GNU C library defines this for functions which it implements
15879     to always fail with ENOSYS.  Some functions are actually named
15880     something starting with __ and the normal name is an alias.  */
15881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15882 choke me
15883 #else
15884 $ac_func();
15885 #endif
15886
15887 ; return 0; }
15888 EOF
15889 if { (eval echo configure:15890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15890   rm -rf conftest*
15891   eval "ac_cv_func_$ac_func=yes"
15892 else
15893   echo "configure: failed program was:" >&5
15894   cat conftest.$ac_ext >&5
15895   rm -rf conftest*
15896   eval "ac_cv_func_$ac_func=no"
15897 fi
15898 rm -f conftest*
15899 fi
15900
15901 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15902   echo "$ac_t""yes" 1>&6
15903     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15904   cat >> confdefs.h <<EOF
15905 #define $ac_tr_func 1
15906 EOF
15907  
15908 else
15909   echo "$ac_t""no" 1>&6
15910 fi
15911 done
15912     
15913   else
15914     
15915   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
15916 echo "configure:15917: checking for _copysignl declaration" >&5
15917   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
15918     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
15919   echo $ac_n "(cached) $ac_c" 1>&6
15920 else
15921   
15922       
15923       ac_ext=C
15924 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15925 ac_cpp='$CXXCPP $CPPFLAGS'
15926 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15927 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15928 cross_compiling=$ac_cv_prog_cxx_cross
15929
15930       cat > conftest.$ac_ext <<EOF
15931 #line 15932 "configure"
15932 #include "confdefs.h"
15933 #include <math.h>
15934 int main() {
15935  _copysignl(0, 0);
15936 ; return 0; }
15937 EOF
15938 if { (eval echo configure:15939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15939   rm -rf conftest*
15940   glibcpp_cv_func__copysignl_use=yes
15941 else
15942   echo "configure: failed program was:" >&5
15943   cat conftest.$ac_ext >&5
15944   rm -rf conftest*
15945   glibcpp_cv_func__copysignl_use=no
15946 fi
15947 rm -f conftest*
15948       ac_ext=c
15949 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15950 ac_cpp='$CPP $CPPFLAGS'
15951 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15952 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15953 cross_compiling=$ac_cv_prog_cc_cross
15954
15955     
15956 fi
15957
15958   fi
15959   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
15960
15961     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
15962       for ac_func in _copysignl
15963 do
15964 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15965 echo "configure:15966: checking for $ac_func" >&5
15966 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15967   echo $ac_n "(cached) $ac_c" 1>&6
15968 else
15969   cat > conftest.$ac_ext <<EOF
15970 #line 15971 "configure"
15971 #include "confdefs.h"
15972 /* System header to define __stub macros and hopefully few prototypes,
15973     which can conflict with char $ac_func(); below.  */
15974 #include <assert.h>
15975 /* Override any gcc2 internal prototype to avoid an error.  */
15976 /* We use char because int might match the return type of a gcc2
15977     builtin and then its argument prototype would still apply.  */
15978 char $ac_func();
15979
15980 int main() {
15981
15982 /* The GNU C library defines this for functions which it implements
15983     to always fail with ENOSYS.  Some functions are actually named
15984     something starting with __ and the normal name is an alias.  */
15985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15986 choke me
15987 #else
15988 $ac_func();
15989 #endif
15990
15991 ; return 0; }
15992 EOF
15993 if { (eval echo configure:15994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15994   rm -rf conftest*
15995   eval "ac_cv_func_$ac_func=yes"
15996 else
15997   echo "configure: failed program was:" >&5
15998   cat conftest.$ac_ext >&5
15999   rm -rf conftest*
16000   eval "ac_cv_func_$ac_func=no"
16001 fi
16002 rm -f conftest*
16003 fi
16004
16005 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16006   echo "$ac_t""yes" 1>&6
16007     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16008   cat >> confdefs.h <<EOF
16009 #define $ac_tr_func 1
16010 EOF
16011  
16012 else
16013   echo "$ac_t""no" 1>&6
16014 fi
16015 done
16016     
16017     fi
16018   fi
16019
16020   
16021   
16022   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
16023 echo "configure:16024: checking for atan2l declaration" >&5
16024   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
16025     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
16026   echo $ac_n "(cached) $ac_c" 1>&6
16027 else
16028   
16029       
16030       ac_ext=C
16031 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16032 ac_cpp='$CXXCPP $CPPFLAGS'
16033 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16034 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16035 cross_compiling=$ac_cv_prog_cxx_cross
16036
16037       cat > conftest.$ac_ext <<EOF
16038 #line 16039 "configure"
16039 #include "confdefs.h"
16040 #include <math.h>
16041 int main() {
16042  atan2l(0, 0);
16043 ; return 0; }
16044 EOF
16045 if { (eval echo configure:16046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16046   rm -rf conftest*
16047   glibcpp_cv_func_atan2l_use=yes
16048 else
16049   echo "configure: failed program was:" >&5
16050   cat conftest.$ac_ext >&5
16051   rm -rf conftest*
16052   glibcpp_cv_func_atan2l_use=no
16053 fi
16054 rm -f conftest*
16055       ac_ext=c
16056 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16057 ac_cpp='$CPP $CPPFLAGS'
16058 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16059 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16060 cross_compiling=$ac_cv_prog_cc_cross
16061
16062     
16063 fi
16064
16065   fi
16066   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
16067
16068   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
16069     for ac_func in atan2l
16070 do
16071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16072 echo "configure:16073: checking for $ac_func" >&5
16073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16074   echo $ac_n "(cached) $ac_c" 1>&6
16075 else
16076   cat > conftest.$ac_ext <<EOF
16077 #line 16078 "configure"
16078 #include "confdefs.h"
16079 /* System header to define __stub macros and hopefully few prototypes,
16080     which can conflict with char $ac_func(); below.  */
16081 #include <assert.h>
16082 /* Override any gcc2 internal prototype to avoid an error.  */
16083 /* We use char because int might match the return type of a gcc2
16084     builtin and then its argument prototype would still apply.  */
16085 char $ac_func();
16086
16087 int main() {
16088
16089 /* The GNU C library defines this for functions which it implements
16090     to always fail with ENOSYS.  Some functions are actually named
16091     something starting with __ and the normal name is an alias.  */
16092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16093 choke me
16094 #else
16095 $ac_func();
16096 #endif
16097
16098 ; return 0; }
16099 EOF
16100 if { (eval echo configure:16101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16101   rm -rf conftest*
16102   eval "ac_cv_func_$ac_func=yes"
16103 else
16104   echo "configure: failed program was:" >&5
16105   cat conftest.$ac_ext >&5
16106   rm -rf conftest*
16107   eval "ac_cv_func_$ac_func=no"
16108 fi
16109 rm -f conftest*
16110 fi
16111
16112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16113   echo "$ac_t""yes" 1>&6
16114     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16115   cat >> confdefs.h <<EOF
16116 #define $ac_tr_func 1
16117 EOF
16118  
16119 else
16120   echo "$ac_t""no" 1>&6
16121 fi
16122 done
16123     
16124   else
16125     
16126   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
16127 echo "configure:16128: checking for _atan2l declaration" >&5
16128   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
16129     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
16130   echo $ac_n "(cached) $ac_c" 1>&6
16131 else
16132   
16133       
16134       ac_ext=C
16135 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16136 ac_cpp='$CXXCPP $CPPFLAGS'
16137 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16138 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16139 cross_compiling=$ac_cv_prog_cxx_cross
16140
16141       cat > conftest.$ac_ext <<EOF
16142 #line 16143 "configure"
16143 #include "confdefs.h"
16144 #include <math.h>
16145 int main() {
16146  _atan2l(0, 0);
16147 ; return 0; }
16148 EOF
16149 if { (eval echo configure:16150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16150   rm -rf conftest*
16151   glibcpp_cv_func__atan2l_use=yes
16152 else
16153   echo "configure: failed program was:" >&5
16154   cat conftest.$ac_ext >&5
16155   rm -rf conftest*
16156   glibcpp_cv_func__atan2l_use=no
16157 fi
16158 rm -f conftest*
16159       ac_ext=c
16160 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16161 ac_cpp='$CPP $CPPFLAGS'
16162 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16163 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16164 cross_compiling=$ac_cv_prog_cc_cross
16165
16166     
16167 fi
16168
16169   fi
16170   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
16171
16172     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
16173       for ac_func in _atan2l
16174 do
16175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16176 echo "configure:16177: checking for $ac_func" >&5
16177 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16178   echo $ac_n "(cached) $ac_c" 1>&6
16179 else
16180   cat > conftest.$ac_ext <<EOF
16181 #line 16182 "configure"
16182 #include "confdefs.h"
16183 /* System header to define __stub macros and hopefully few prototypes,
16184     which can conflict with char $ac_func(); below.  */
16185 #include <assert.h>
16186 /* Override any gcc2 internal prototype to avoid an error.  */
16187 /* We use char because int might match the return type of a gcc2
16188     builtin and then its argument prototype would still apply.  */
16189 char $ac_func();
16190
16191 int main() {
16192
16193 /* The GNU C library defines this for functions which it implements
16194     to always fail with ENOSYS.  Some functions are actually named
16195     something starting with __ and the normal name is an alias.  */
16196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16197 choke me
16198 #else
16199 $ac_func();
16200 #endif
16201
16202 ; return 0; }
16203 EOF
16204 if { (eval echo configure:16205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16205   rm -rf conftest*
16206   eval "ac_cv_func_$ac_func=yes"
16207 else
16208   echo "configure: failed program was:" >&5
16209   cat conftest.$ac_ext >&5
16210   rm -rf conftest*
16211   eval "ac_cv_func_$ac_func=no"
16212 fi
16213 rm -f conftest*
16214 fi
16215
16216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16217   echo "$ac_t""yes" 1>&6
16218     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16219   cat >> confdefs.h <<EOF
16220 #define $ac_tr_func 1
16221 EOF
16222  
16223 else
16224   echo "$ac_t""no" 1>&6
16225 fi
16226 done
16227     
16228     fi
16229   fi
16230
16231   
16232   
16233   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
16234 echo "configure:16235: checking for expl declaration" >&5
16235   if test x${glibcpp_cv_func_expl_use+set} != xset; then
16236     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
16237   echo $ac_n "(cached) $ac_c" 1>&6
16238 else
16239   
16240       
16241       ac_ext=C
16242 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16243 ac_cpp='$CXXCPP $CPPFLAGS'
16244 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16245 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16246 cross_compiling=$ac_cv_prog_cxx_cross
16247
16248       cat > conftest.$ac_ext <<EOF
16249 #line 16250 "configure"
16250 #include "confdefs.h"
16251 #include <math.h>
16252                       #ifdef HAVE_IEEEFP_H
16253                       #include <ieeefp.h>
16254                       #endif
16255                      
16256 int main() {
16257  expl(0);
16258 ; return 0; }
16259 EOF
16260 if { (eval echo configure:16261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16261   rm -rf conftest*
16262   glibcpp_cv_func_expl_use=yes
16263 else
16264   echo "configure: failed program was:" >&5
16265   cat conftest.$ac_ext >&5
16266   rm -rf conftest*
16267   glibcpp_cv_func_expl_use=no
16268 fi
16269 rm -f conftest*
16270       ac_ext=c
16271 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16272 ac_cpp='$CPP $CPPFLAGS'
16273 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16274 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16275 cross_compiling=$ac_cv_prog_cc_cross
16276
16277     
16278 fi
16279
16280   fi
16281   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
16282
16283   if test x$glibcpp_cv_func_expl_use = x"yes"; then
16284     for ac_func in expl
16285 do
16286 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16287 echo "configure:16288: checking for $ac_func" >&5
16288 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16289   echo $ac_n "(cached) $ac_c" 1>&6
16290 else
16291   cat > conftest.$ac_ext <<EOF
16292 #line 16293 "configure"
16293 #include "confdefs.h"
16294 /* System header to define __stub macros and hopefully few prototypes,
16295     which can conflict with char $ac_func(); below.  */
16296 #include <assert.h>
16297 /* Override any gcc2 internal prototype to avoid an error.  */
16298 /* We use char because int might match the return type of a gcc2
16299     builtin and then its argument prototype would still apply.  */
16300 char $ac_func();
16301
16302 int main() {
16303
16304 /* The GNU C library defines this for functions which it implements
16305     to always fail with ENOSYS.  Some functions are actually named
16306     something starting with __ and the normal name is an alias.  */
16307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16308 choke me
16309 #else
16310 $ac_func();
16311 #endif
16312
16313 ; return 0; }
16314 EOF
16315 if { (eval echo configure:16316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16316   rm -rf conftest*
16317   eval "ac_cv_func_$ac_func=yes"
16318 else
16319   echo "configure: failed program was:" >&5
16320   cat conftest.$ac_ext >&5
16321   rm -rf conftest*
16322   eval "ac_cv_func_$ac_func=no"
16323 fi
16324 rm -f conftest*
16325 fi
16326
16327 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16328   echo "$ac_t""yes" 1>&6
16329     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16330   cat >> confdefs.h <<EOF
16331 #define $ac_tr_func 1
16332 EOF
16333  
16334 else
16335   echo "$ac_t""no" 1>&6
16336 fi
16337 done
16338     
16339   else
16340     
16341   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
16342 echo "configure:16343: checking for _expl declaration" >&5
16343   if test x${glibcpp_cv_func__expl_use+set} != xset; then
16344     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
16345   echo $ac_n "(cached) $ac_c" 1>&6
16346 else
16347   
16348       
16349       ac_ext=C
16350 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16351 ac_cpp='$CXXCPP $CPPFLAGS'
16352 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16353 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16354 cross_compiling=$ac_cv_prog_cxx_cross
16355
16356       cat > conftest.$ac_ext <<EOF
16357 #line 16358 "configure"
16358 #include "confdefs.h"
16359 #include <math.h>
16360                       #ifdef HAVE_IEEEFP_H
16361                       #include <ieeefp.h>
16362                       #endif
16363                      
16364 int main() {
16365  _expl(0);
16366 ; return 0; }
16367 EOF
16368 if { (eval echo configure:16369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16369   rm -rf conftest*
16370   glibcpp_cv_func__expl_use=yes
16371 else
16372   echo "configure: failed program was:" >&5
16373   cat conftest.$ac_ext >&5
16374   rm -rf conftest*
16375   glibcpp_cv_func__expl_use=no
16376 fi
16377 rm -f conftest*
16378       ac_ext=c
16379 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16380 ac_cpp='$CPP $CPPFLAGS'
16381 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16382 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16383 cross_compiling=$ac_cv_prog_cc_cross
16384
16385     
16386 fi
16387
16388   fi
16389   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
16390
16391     if test x$glibcpp_cv_func__expl_use = x"yes"; then
16392       for ac_func in _expl
16393 do
16394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16395 echo "configure:16396: checking for $ac_func" >&5
16396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16397   echo $ac_n "(cached) $ac_c" 1>&6
16398 else
16399   cat > conftest.$ac_ext <<EOF
16400 #line 16401 "configure"
16401 #include "confdefs.h"
16402 /* System header to define __stub macros and hopefully few prototypes,
16403     which can conflict with char $ac_func(); below.  */
16404 #include <assert.h>
16405 /* Override any gcc2 internal prototype to avoid an error.  */
16406 /* We use char because int might match the return type of a gcc2
16407     builtin and then its argument prototype would still apply.  */
16408 char $ac_func();
16409
16410 int main() {
16411
16412 /* The GNU C library defines this for functions which it implements
16413     to always fail with ENOSYS.  Some functions are actually named
16414     something starting with __ and the normal name is an alias.  */
16415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16416 choke me
16417 #else
16418 $ac_func();
16419 #endif
16420
16421 ; return 0; }
16422 EOF
16423 if { (eval echo configure:16424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16424   rm -rf conftest*
16425   eval "ac_cv_func_$ac_func=yes"
16426 else
16427   echo "configure: failed program was:" >&5
16428   cat conftest.$ac_ext >&5
16429   rm -rf conftest*
16430   eval "ac_cv_func_$ac_func=no"
16431 fi
16432 rm -f conftest*
16433 fi
16434
16435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16436   echo "$ac_t""yes" 1>&6
16437     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16438   cat >> confdefs.h <<EOF
16439 #define $ac_tr_func 1
16440 EOF
16441  
16442 else
16443   echo "$ac_t""no" 1>&6
16444 fi
16445 done
16446     
16447     fi
16448   fi
16449
16450   
16451   
16452   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
16453 echo "configure:16454: checking for fabsl declaration" >&5
16454   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
16455     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
16456   echo $ac_n "(cached) $ac_c" 1>&6
16457 else
16458   
16459       
16460       ac_ext=C
16461 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16462 ac_cpp='$CXXCPP $CPPFLAGS'
16463 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16464 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16465 cross_compiling=$ac_cv_prog_cxx_cross
16466
16467       cat > conftest.$ac_ext <<EOF
16468 #line 16469 "configure"
16469 #include "confdefs.h"
16470 #include <math.h>
16471                       #ifdef HAVE_IEEEFP_H
16472                       #include <ieeefp.h>
16473                       #endif
16474                      
16475 int main() {
16476  fabsl(0);
16477 ; return 0; }
16478 EOF
16479 if { (eval echo configure:16480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16480   rm -rf conftest*
16481   glibcpp_cv_func_fabsl_use=yes
16482 else
16483   echo "configure: failed program was:" >&5
16484   cat conftest.$ac_ext >&5
16485   rm -rf conftest*
16486   glibcpp_cv_func_fabsl_use=no
16487 fi
16488 rm -f conftest*
16489       ac_ext=c
16490 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16491 ac_cpp='$CPP $CPPFLAGS'
16492 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16493 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16494 cross_compiling=$ac_cv_prog_cc_cross
16495
16496     
16497 fi
16498
16499   fi
16500   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
16501
16502   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
16503     for ac_func in fabsl
16504 do
16505 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16506 echo "configure:16507: checking for $ac_func" >&5
16507 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16508   echo $ac_n "(cached) $ac_c" 1>&6
16509 else
16510   cat > conftest.$ac_ext <<EOF
16511 #line 16512 "configure"
16512 #include "confdefs.h"
16513 /* System header to define __stub macros and hopefully few prototypes,
16514     which can conflict with char $ac_func(); below.  */
16515 #include <assert.h>
16516 /* Override any gcc2 internal prototype to avoid an error.  */
16517 /* We use char because int might match the return type of a gcc2
16518     builtin and then its argument prototype would still apply.  */
16519 char $ac_func();
16520
16521 int main() {
16522
16523 /* The GNU C library defines this for functions which it implements
16524     to always fail with ENOSYS.  Some functions are actually named
16525     something starting with __ and the normal name is an alias.  */
16526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16527 choke me
16528 #else
16529 $ac_func();
16530 #endif
16531
16532 ; return 0; }
16533 EOF
16534 if { (eval echo configure:16535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16535   rm -rf conftest*
16536   eval "ac_cv_func_$ac_func=yes"
16537 else
16538   echo "configure: failed program was:" >&5
16539   cat conftest.$ac_ext >&5
16540   rm -rf conftest*
16541   eval "ac_cv_func_$ac_func=no"
16542 fi
16543 rm -f conftest*
16544 fi
16545
16546 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16547   echo "$ac_t""yes" 1>&6
16548     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16549   cat >> confdefs.h <<EOF
16550 #define $ac_tr_func 1
16551 EOF
16552  
16553 else
16554   echo "$ac_t""no" 1>&6
16555 fi
16556 done
16557     
16558   else
16559     
16560   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
16561 echo "configure:16562: checking for _fabsl declaration" >&5
16562   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
16563     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
16564   echo $ac_n "(cached) $ac_c" 1>&6
16565 else
16566   
16567       
16568       ac_ext=C
16569 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16570 ac_cpp='$CXXCPP $CPPFLAGS'
16571 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16572 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16573 cross_compiling=$ac_cv_prog_cxx_cross
16574
16575       cat > conftest.$ac_ext <<EOF
16576 #line 16577 "configure"
16577 #include "confdefs.h"
16578 #include <math.h>
16579                       #ifdef HAVE_IEEEFP_H
16580                       #include <ieeefp.h>
16581                       #endif
16582                      
16583 int main() {
16584  _fabsl(0);
16585 ; return 0; }
16586 EOF
16587 if { (eval echo configure:16588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16588   rm -rf conftest*
16589   glibcpp_cv_func__fabsl_use=yes
16590 else
16591   echo "configure: failed program was:" >&5
16592   cat conftest.$ac_ext >&5
16593   rm -rf conftest*
16594   glibcpp_cv_func__fabsl_use=no
16595 fi
16596 rm -f conftest*
16597       ac_ext=c
16598 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16599 ac_cpp='$CPP $CPPFLAGS'
16600 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16601 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16602 cross_compiling=$ac_cv_prog_cc_cross
16603
16604     
16605 fi
16606
16607   fi
16608   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
16609
16610     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
16611       for ac_func in _fabsl
16612 do
16613 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16614 echo "configure:16615: checking for $ac_func" >&5
16615 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16616   echo $ac_n "(cached) $ac_c" 1>&6
16617 else
16618   cat > conftest.$ac_ext <<EOF
16619 #line 16620 "configure"
16620 #include "confdefs.h"
16621 /* System header to define __stub macros and hopefully few prototypes,
16622     which can conflict with char $ac_func(); below.  */
16623 #include <assert.h>
16624 /* Override any gcc2 internal prototype to avoid an error.  */
16625 /* We use char because int might match the return type of a gcc2
16626     builtin and then its argument prototype would still apply.  */
16627 char $ac_func();
16628
16629 int main() {
16630
16631 /* The GNU C library defines this for functions which it implements
16632     to always fail with ENOSYS.  Some functions are actually named
16633     something starting with __ and the normal name is an alias.  */
16634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16635 choke me
16636 #else
16637 $ac_func();
16638 #endif
16639
16640 ; return 0; }
16641 EOF
16642 if { (eval echo configure:16643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16643   rm -rf conftest*
16644   eval "ac_cv_func_$ac_func=yes"
16645 else
16646   echo "configure: failed program was:" >&5
16647   cat conftest.$ac_ext >&5
16648   rm -rf conftest*
16649   eval "ac_cv_func_$ac_func=no"
16650 fi
16651 rm -f conftest*
16652 fi
16653
16654 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16655   echo "$ac_t""yes" 1>&6
16656     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16657   cat >> confdefs.h <<EOF
16658 #define $ac_tr_func 1
16659 EOF
16660  
16661 else
16662   echo "$ac_t""no" 1>&6
16663 fi
16664 done
16665     
16666     fi
16667   fi
16668
16669   
16670   
16671   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
16672 echo "configure:16673: checking for fmodl declaration" >&5
16673   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
16674     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
16675   echo $ac_n "(cached) $ac_c" 1>&6
16676 else
16677   
16678       
16679       ac_ext=C
16680 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16681 ac_cpp='$CXXCPP $CPPFLAGS'
16682 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16683 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16684 cross_compiling=$ac_cv_prog_cxx_cross
16685
16686       cat > conftest.$ac_ext <<EOF
16687 #line 16688 "configure"
16688 #include "confdefs.h"
16689 #include <math.h>
16690 int main() {
16691  fmodl(0, 0);
16692 ; return 0; }
16693 EOF
16694 if { (eval echo configure:16695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16695   rm -rf conftest*
16696   glibcpp_cv_func_fmodl_use=yes
16697 else
16698   echo "configure: failed program was:" >&5
16699   cat conftest.$ac_ext >&5
16700   rm -rf conftest*
16701   glibcpp_cv_func_fmodl_use=no
16702 fi
16703 rm -f conftest*
16704       ac_ext=c
16705 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16706 ac_cpp='$CPP $CPPFLAGS'
16707 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16708 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16709 cross_compiling=$ac_cv_prog_cc_cross
16710
16711     
16712 fi
16713
16714   fi
16715   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
16716
16717   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
16718     for ac_func in fmodl
16719 do
16720 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16721 echo "configure:16722: checking for $ac_func" >&5
16722 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16723   echo $ac_n "(cached) $ac_c" 1>&6
16724 else
16725   cat > conftest.$ac_ext <<EOF
16726 #line 16727 "configure"
16727 #include "confdefs.h"
16728 /* System header to define __stub macros and hopefully few prototypes,
16729     which can conflict with char $ac_func(); below.  */
16730 #include <assert.h>
16731 /* Override any gcc2 internal prototype to avoid an error.  */
16732 /* We use char because int might match the return type of a gcc2
16733     builtin and then its argument prototype would still apply.  */
16734 char $ac_func();
16735
16736 int main() {
16737
16738 /* The GNU C library defines this for functions which it implements
16739     to always fail with ENOSYS.  Some functions are actually named
16740     something starting with __ and the normal name is an alias.  */
16741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16742 choke me
16743 #else
16744 $ac_func();
16745 #endif
16746
16747 ; return 0; }
16748 EOF
16749 if { (eval echo configure:16750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16750   rm -rf conftest*
16751   eval "ac_cv_func_$ac_func=yes"
16752 else
16753   echo "configure: failed program was:" >&5
16754   cat conftest.$ac_ext >&5
16755   rm -rf conftest*
16756   eval "ac_cv_func_$ac_func=no"
16757 fi
16758 rm -f conftest*
16759 fi
16760
16761 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16762   echo "$ac_t""yes" 1>&6
16763     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16764   cat >> confdefs.h <<EOF
16765 #define $ac_tr_func 1
16766 EOF
16767  
16768 else
16769   echo "$ac_t""no" 1>&6
16770 fi
16771 done
16772     
16773   else
16774     
16775   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
16776 echo "configure:16777: checking for _fmodl declaration" >&5
16777   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
16778     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
16779   echo $ac_n "(cached) $ac_c" 1>&6
16780 else
16781   
16782       
16783       ac_ext=C
16784 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16785 ac_cpp='$CXXCPP $CPPFLAGS'
16786 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16787 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16788 cross_compiling=$ac_cv_prog_cxx_cross
16789
16790       cat > conftest.$ac_ext <<EOF
16791 #line 16792 "configure"
16792 #include "confdefs.h"
16793 #include <math.h>
16794 int main() {
16795  _fmodl(0, 0);
16796 ; return 0; }
16797 EOF
16798 if { (eval echo configure:16799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16799   rm -rf conftest*
16800   glibcpp_cv_func__fmodl_use=yes
16801 else
16802   echo "configure: failed program was:" >&5
16803   cat conftest.$ac_ext >&5
16804   rm -rf conftest*
16805   glibcpp_cv_func__fmodl_use=no
16806 fi
16807 rm -f conftest*
16808       ac_ext=c
16809 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16810 ac_cpp='$CPP $CPPFLAGS'
16811 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16812 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16813 cross_compiling=$ac_cv_prog_cc_cross
16814
16815     
16816 fi
16817
16818   fi
16819   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
16820
16821     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
16822       for ac_func in _fmodl
16823 do
16824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16825 echo "configure:16826: checking for $ac_func" >&5
16826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16827   echo $ac_n "(cached) $ac_c" 1>&6
16828 else
16829   cat > conftest.$ac_ext <<EOF
16830 #line 16831 "configure"
16831 #include "confdefs.h"
16832 /* System header to define __stub macros and hopefully few prototypes,
16833     which can conflict with char $ac_func(); below.  */
16834 #include <assert.h>
16835 /* Override any gcc2 internal prototype to avoid an error.  */
16836 /* We use char because int might match the return type of a gcc2
16837     builtin and then its argument prototype would still apply.  */
16838 char $ac_func();
16839
16840 int main() {
16841
16842 /* The GNU C library defines this for functions which it implements
16843     to always fail with ENOSYS.  Some functions are actually named
16844     something starting with __ and the normal name is an alias.  */
16845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16846 choke me
16847 #else
16848 $ac_func();
16849 #endif
16850
16851 ; return 0; }
16852 EOF
16853 if { (eval echo configure:16854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16854   rm -rf conftest*
16855   eval "ac_cv_func_$ac_func=yes"
16856 else
16857   echo "configure: failed program was:" >&5
16858   cat conftest.$ac_ext >&5
16859   rm -rf conftest*
16860   eval "ac_cv_func_$ac_func=no"
16861 fi
16862 rm -f conftest*
16863 fi
16864
16865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16866   echo "$ac_t""yes" 1>&6
16867     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16868   cat >> confdefs.h <<EOF
16869 #define $ac_tr_func 1
16870 EOF
16871  
16872 else
16873   echo "$ac_t""no" 1>&6
16874 fi
16875 done
16876     
16877     fi
16878   fi
16879
16880   
16881   
16882   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
16883 echo "configure:16884: checking for frexpl declaration" >&5
16884   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
16885     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
16886   echo $ac_n "(cached) $ac_c" 1>&6
16887 else
16888   
16889       
16890       ac_ext=C
16891 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16892 ac_cpp='$CXXCPP $CPPFLAGS'
16893 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16894 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16895 cross_compiling=$ac_cv_prog_cxx_cross
16896
16897       cat > conftest.$ac_ext <<EOF
16898 #line 16899 "configure"
16899 #include "confdefs.h"
16900 #include <math.h>
16901 int main() {
16902  frexpl(0, 0);
16903 ; return 0; }
16904 EOF
16905 if { (eval echo configure:16906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16906   rm -rf conftest*
16907   glibcpp_cv_func_frexpl_use=yes
16908 else
16909   echo "configure: failed program was:" >&5
16910   cat conftest.$ac_ext >&5
16911   rm -rf conftest*
16912   glibcpp_cv_func_frexpl_use=no
16913 fi
16914 rm -f conftest*
16915       ac_ext=c
16916 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16917 ac_cpp='$CPP $CPPFLAGS'
16918 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16919 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16920 cross_compiling=$ac_cv_prog_cc_cross
16921
16922     
16923 fi
16924
16925   fi
16926   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
16927
16928   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
16929     for ac_func in frexpl
16930 do
16931 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16932 echo "configure:16933: checking for $ac_func" >&5
16933 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16934   echo $ac_n "(cached) $ac_c" 1>&6
16935 else
16936   cat > conftest.$ac_ext <<EOF
16937 #line 16938 "configure"
16938 #include "confdefs.h"
16939 /* System header to define __stub macros and hopefully few prototypes,
16940     which can conflict with char $ac_func(); below.  */
16941 #include <assert.h>
16942 /* Override any gcc2 internal prototype to avoid an error.  */
16943 /* We use char because int might match the return type of a gcc2
16944     builtin and then its argument prototype would still apply.  */
16945 char $ac_func();
16946
16947 int main() {
16948
16949 /* The GNU C library defines this for functions which it implements
16950     to always fail with ENOSYS.  Some functions are actually named
16951     something starting with __ and the normal name is an alias.  */
16952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16953 choke me
16954 #else
16955 $ac_func();
16956 #endif
16957
16958 ; return 0; }
16959 EOF
16960 if { (eval echo configure:16961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16961   rm -rf conftest*
16962   eval "ac_cv_func_$ac_func=yes"
16963 else
16964   echo "configure: failed program was:" >&5
16965   cat conftest.$ac_ext >&5
16966   rm -rf conftest*
16967   eval "ac_cv_func_$ac_func=no"
16968 fi
16969 rm -f conftest*
16970 fi
16971
16972 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16973   echo "$ac_t""yes" 1>&6
16974     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16975   cat >> confdefs.h <<EOF
16976 #define $ac_tr_func 1
16977 EOF
16978  
16979 else
16980   echo "$ac_t""no" 1>&6
16981 fi
16982 done
16983     
16984   else
16985     
16986   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
16987 echo "configure:16988: checking for _frexpl declaration" >&5
16988   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
16989     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
16990   echo $ac_n "(cached) $ac_c" 1>&6
16991 else
16992   
16993       
16994       ac_ext=C
16995 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16996 ac_cpp='$CXXCPP $CPPFLAGS'
16997 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16998 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16999 cross_compiling=$ac_cv_prog_cxx_cross
17000
17001       cat > conftest.$ac_ext <<EOF
17002 #line 17003 "configure"
17003 #include "confdefs.h"
17004 #include <math.h>
17005 int main() {
17006  _frexpl(0, 0);
17007 ; return 0; }
17008 EOF
17009 if { (eval echo configure:17010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17010   rm -rf conftest*
17011   glibcpp_cv_func__frexpl_use=yes
17012 else
17013   echo "configure: failed program was:" >&5
17014   cat conftest.$ac_ext >&5
17015   rm -rf conftest*
17016   glibcpp_cv_func__frexpl_use=no
17017 fi
17018 rm -f conftest*
17019       ac_ext=c
17020 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17021 ac_cpp='$CPP $CPPFLAGS'
17022 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17023 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17024 cross_compiling=$ac_cv_prog_cc_cross
17025
17026     
17027 fi
17028
17029   fi
17030   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
17031
17032     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
17033       for ac_func in _frexpl
17034 do
17035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17036 echo "configure:17037: checking for $ac_func" >&5
17037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17038   echo $ac_n "(cached) $ac_c" 1>&6
17039 else
17040   cat > conftest.$ac_ext <<EOF
17041 #line 17042 "configure"
17042 #include "confdefs.h"
17043 /* System header to define __stub macros and hopefully few prototypes,
17044     which can conflict with char $ac_func(); below.  */
17045 #include <assert.h>
17046 /* Override any gcc2 internal prototype to avoid an error.  */
17047 /* We use char because int might match the return type of a gcc2
17048     builtin and then its argument prototype would still apply.  */
17049 char $ac_func();
17050
17051 int main() {
17052
17053 /* The GNU C library defines this for functions which it implements
17054     to always fail with ENOSYS.  Some functions are actually named
17055     something starting with __ and the normal name is an alias.  */
17056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17057 choke me
17058 #else
17059 $ac_func();
17060 #endif
17061
17062 ; return 0; }
17063 EOF
17064 if { (eval echo configure:17065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17065   rm -rf conftest*
17066   eval "ac_cv_func_$ac_func=yes"
17067 else
17068   echo "configure: failed program was:" >&5
17069   cat conftest.$ac_ext >&5
17070   rm -rf conftest*
17071   eval "ac_cv_func_$ac_func=no"
17072 fi
17073 rm -f conftest*
17074 fi
17075
17076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17077   echo "$ac_t""yes" 1>&6
17078     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17079   cat >> confdefs.h <<EOF
17080 #define $ac_tr_func 1
17081 EOF
17082  
17083 else
17084   echo "$ac_t""no" 1>&6
17085 fi
17086 done
17087     
17088     fi
17089   fi
17090
17091   
17092   
17093   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
17094 echo "configure:17095: checking for hypotl declaration" >&5
17095   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
17096     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
17097   echo $ac_n "(cached) $ac_c" 1>&6
17098 else
17099   
17100       
17101       ac_ext=C
17102 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17103 ac_cpp='$CXXCPP $CPPFLAGS'
17104 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17105 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17106 cross_compiling=$ac_cv_prog_cxx_cross
17107
17108       cat > conftest.$ac_ext <<EOF
17109 #line 17110 "configure"
17110 #include "confdefs.h"
17111 #include <math.h>
17112 int main() {
17113  hypotl(0, 0);
17114 ; return 0; }
17115 EOF
17116 if { (eval echo configure:17117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17117   rm -rf conftest*
17118   glibcpp_cv_func_hypotl_use=yes
17119 else
17120   echo "configure: failed program was:" >&5
17121   cat conftest.$ac_ext >&5
17122   rm -rf conftest*
17123   glibcpp_cv_func_hypotl_use=no
17124 fi
17125 rm -f conftest*
17126       ac_ext=c
17127 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17128 ac_cpp='$CPP $CPPFLAGS'
17129 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17130 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17131 cross_compiling=$ac_cv_prog_cc_cross
17132
17133     
17134 fi
17135
17136   fi
17137   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
17138
17139   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
17140     for ac_func in hypotl
17141 do
17142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17143 echo "configure:17144: checking for $ac_func" >&5
17144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17145   echo $ac_n "(cached) $ac_c" 1>&6
17146 else
17147   cat > conftest.$ac_ext <<EOF
17148 #line 17149 "configure"
17149 #include "confdefs.h"
17150 /* System header to define __stub macros and hopefully few prototypes,
17151     which can conflict with char $ac_func(); below.  */
17152 #include <assert.h>
17153 /* Override any gcc2 internal prototype to avoid an error.  */
17154 /* We use char because int might match the return type of a gcc2
17155     builtin and then its argument prototype would still apply.  */
17156 char $ac_func();
17157
17158 int main() {
17159
17160 /* The GNU C library defines this for functions which it implements
17161     to always fail with ENOSYS.  Some functions are actually named
17162     something starting with __ and the normal name is an alias.  */
17163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17164 choke me
17165 #else
17166 $ac_func();
17167 #endif
17168
17169 ; return 0; }
17170 EOF
17171 if { (eval echo configure:17172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17172   rm -rf conftest*
17173   eval "ac_cv_func_$ac_func=yes"
17174 else
17175   echo "configure: failed program was:" >&5
17176   cat conftest.$ac_ext >&5
17177   rm -rf conftest*
17178   eval "ac_cv_func_$ac_func=no"
17179 fi
17180 rm -f conftest*
17181 fi
17182
17183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17184   echo "$ac_t""yes" 1>&6
17185     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17186   cat >> confdefs.h <<EOF
17187 #define $ac_tr_func 1
17188 EOF
17189  
17190 else
17191   echo "$ac_t""no" 1>&6
17192 fi
17193 done
17194     
17195   else
17196     
17197   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
17198 echo "configure:17199: checking for _hypotl declaration" >&5
17199   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
17200     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
17201   echo $ac_n "(cached) $ac_c" 1>&6
17202 else
17203   
17204       
17205       ac_ext=C
17206 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17207 ac_cpp='$CXXCPP $CPPFLAGS'
17208 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17209 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17210 cross_compiling=$ac_cv_prog_cxx_cross
17211
17212       cat > conftest.$ac_ext <<EOF
17213 #line 17214 "configure"
17214 #include "confdefs.h"
17215 #include <math.h>
17216 int main() {
17217  _hypotl(0, 0);
17218 ; return 0; }
17219 EOF
17220 if { (eval echo configure:17221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17221   rm -rf conftest*
17222   glibcpp_cv_func__hypotl_use=yes
17223 else
17224   echo "configure: failed program was:" >&5
17225   cat conftest.$ac_ext >&5
17226   rm -rf conftest*
17227   glibcpp_cv_func__hypotl_use=no
17228 fi
17229 rm -f conftest*
17230       ac_ext=c
17231 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17232 ac_cpp='$CPP $CPPFLAGS'
17233 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17234 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17235 cross_compiling=$ac_cv_prog_cc_cross
17236
17237     
17238 fi
17239
17240   fi
17241   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
17242
17243     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
17244       for ac_func in _hypotl
17245 do
17246 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17247 echo "configure:17248: checking for $ac_func" >&5
17248 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17249   echo $ac_n "(cached) $ac_c" 1>&6
17250 else
17251   cat > conftest.$ac_ext <<EOF
17252 #line 17253 "configure"
17253 #include "confdefs.h"
17254 /* System header to define __stub macros and hopefully few prototypes,
17255     which can conflict with char $ac_func(); below.  */
17256 #include <assert.h>
17257 /* Override any gcc2 internal prototype to avoid an error.  */
17258 /* We use char because int might match the return type of a gcc2
17259     builtin and then its argument prototype would still apply.  */
17260 char $ac_func();
17261
17262 int main() {
17263
17264 /* The GNU C library defines this for functions which it implements
17265     to always fail with ENOSYS.  Some functions are actually named
17266     something starting with __ and the normal name is an alias.  */
17267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17268 choke me
17269 #else
17270 $ac_func();
17271 #endif
17272
17273 ; return 0; }
17274 EOF
17275 if { (eval echo configure:17276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17276   rm -rf conftest*
17277   eval "ac_cv_func_$ac_func=yes"
17278 else
17279   echo "configure: failed program was:" >&5
17280   cat conftest.$ac_ext >&5
17281   rm -rf conftest*
17282   eval "ac_cv_func_$ac_func=no"
17283 fi
17284 rm -f conftest*
17285 fi
17286
17287 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17288   echo "$ac_t""yes" 1>&6
17289     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17290   cat >> confdefs.h <<EOF
17291 #define $ac_tr_func 1
17292 EOF
17293  
17294 else
17295   echo "$ac_t""no" 1>&6
17296 fi
17297 done
17298     
17299     fi
17300   fi
17301
17302   
17303   
17304   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
17305 echo "configure:17306: checking for ldexpl declaration" >&5
17306   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
17307     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
17308   echo $ac_n "(cached) $ac_c" 1>&6
17309 else
17310   
17311       
17312       ac_ext=C
17313 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17314 ac_cpp='$CXXCPP $CPPFLAGS'
17315 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17316 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17317 cross_compiling=$ac_cv_prog_cxx_cross
17318
17319       cat > conftest.$ac_ext <<EOF
17320 #line 17321 "configure"
17321 #include "confdefs.h"
17322 #include <math.h>
17323 int main() {
17324  ldexpl(0, 0);
17325 ; return 0; }
17326 EOF
17327 if { (eval echo configure:17328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17328   rm -rf conftest*
17329   glibcpp_cv_func_ldexpl_use=yes
17330 else
17331   echo "configure: failed program was:" >&5
17332   cat conftest.$ac_ext >&5
17333   rm -rf conftest*
17334   glibcpp_cv_func_ldexpl_use=no
17335 fi
17336 rm -f conftest*
17337       ac_ext=c
17338 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17339 ac_cpp='$CPP $CPPFLAGS'
17340 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17341 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17342 cross_compiling=$ac_cv_prog_cc_cross
17343
17344     
17345 fi
17346
17347   fi
17348   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
17349
17350   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
17351     for ac_func in ldexpl
17352 do
17353 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17354 echo "configure:17355: checking for $ac_func" >&5
17355 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17356   echo $ac_n "(cached) $ac_c" 1>&6
17357 else
17358   cat > conftest.$ac_ext <<EOF
17359 #line 17360 "configure"
17360 #include "confdefs.h"
17361 /* System header to define __stub macros and hopefully few prototypes,
17362     which can conflict with char $ac_func(); below.  */
17363 #include <assert.h>
17364 /* Override any gcc2 internal prototype to avoid an error.  */
17365 /* We use char because int might match the return type of a gcc2
17366     builtin and then its argument prototype would still apply.  */
17367 char $ac_func();
17368
17369 int main() {
17370
17371 /* The GNU C library defines this for functions which it implements
17372     to always fail with ENOSYS.  Some functions are actually named
17373     something starting with __ and the normal name is an alias.  */
17374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17375 choke me
17376 #else
17377 $ac_func();
17378 #endif
17379
17380 ; return 0; }
17381 EOF
17382 if { (eval echo configure:17383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17383   rm -rf conftest*
17384   eval "ac_cv_func_$ac_func=yes"
17385 else
17386   echo "configure: failed program was:" >&5
17387   cat conftest.$ac_ext >&5
17388   rm -rf conftest*
17389   eval "ac_cv_func_$ac_func=no"
17390 fi
17391 rm -f conftest*
17392 fi
17393
17394 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17395   echo "$ac_t""yes" 1>&6
17396     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17397   cat >> confdefs.h <<EOF
17398 #define $ac_tr_func 1
17399 EOF
17400  
17401 else
17402   echo "$ac_t""no" 1>&6
17403 fi
17404 done
17405     
17406   else
17407     
17408   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
17409 echo "configure:17410: checking for _ldexpl declaration" >&5
17410   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
17411     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
17412   echo $ac_n "(cached) $ac_c" 1>&6
17413 else
17414   
17415       
17416       ac_ext=C
17417 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17418 ac_cpp='$CXXCPP $CPPFLAGS'
17419 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17420 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17421 cross_compiling=$ac_cv_prog_cxx_cross
17422
17423       cat > conftest.$ac_ext <<EOF
17424 #line 17425 "configure"
17425 #include "confdefs.h"
17426 #include <math.h>
17427 int main() {
17428  _ldexpl(0, 0);
17429 ; return 0; }
17430 EOF
17431 if { (eval echo configure:17432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17432   rm -rf conftest*
17433   glibcpp_cv_func__ldexpl_use=yes
17434 else
17435   echo "configure: failed program was:" >&5
17436   cat conftest.$ac_ext >&5
17437   rm -rf conftest*
17438   glibcpp_cv_func__ldexpl_use=no
17439 fi
17440 rm -f conftest*
17441       ac_ext=c
17442 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17443 ac_cpp='$CPP $CPPFLAGS'
17444 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17445 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17446 cross_compiling=$ac_cv_prog_cc_cross
17447
17448     
17449 fi
17450
17451   fi
17452   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
17453
17454     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
17455       for ac_func in _ldexpl
17456 do
17457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17458 echo "configure:17459: checking for $ac_func" >&5
17459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17460   echo $ac_n "(cached) $ac_c" 1>&6
17461 else
17462   cat > conftest.$ac_ext <<EOF
17463 #line 17464 "configure"
17464 #include "confdefs.h"
17465 /* System header to define __stub macros and hopefully few prototypes,
17466     which can conflict with char $ac_func(); below.  */
17467 #include <assert.h>
17468 /* Override any gcc2 internal prototype to avoid an error.  */
17469 /* We use char because int might match the return type of a gcc2
17470     builtin and then its argument prototype would still apply.  */
17471 char $ac_func();
17472
17473 int main() {
17474
17475 /* The GNU C library defines this for functions which it implements
17476     to always fail with ENOSYS.  Some functions are actually named
17477     something starting with __ and the normal name is an alias.  */
17478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17479 choke me
17480 #else
17481 $ac_func();
17482 #endif
17483
17484 ; return 0; }
17485 EOF
17486 if { (eval echo configure:17487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17487   rm -rf conftest*
17488   eval "ac_cv_func_$ac_func=yes"
17489 else
17490   echo "configure: failed program was:" >&5
17491   cat conftest.$ac_ext >&5
17492   rm -rf conftest*
17493   eval "ac_cv_func_$ac_func=no"
17494 fi
17495 rm -f conftest*
17496 fi
17497
17498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17499   echo "$ac_t""yes" 1>&6
17500     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17501   cat >> confdefs.h <<EOF
17502 #define $ac_tr_func 1
17503 EOF
17504  
17505 else
17506   echo "$ac_t""no" 1>&6
17507 fi
17508 done
17509     
17510     fi
17511   fi
17512
17513   
17514   
17515   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
17516 echo "configure:17517: checking for logl declaration" >&5
17517   if test x${glibcpp_cv_func_logl_use+set} != xset; then
17518     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
17519   echo $ac_n "(cached) $ac_c" 1>&6
17520 else
17521   
17522       
17523       ac_ext=C
17524 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17525 ac_cpp='$CXXCPP $CPPFLAGS'
17526 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17527 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17528 cross_compiling=$ac_cv_prog_cxx_cross
17529
17530       cat > conftest.$ac_ext <<EOF
17531 #line 17532 "configure"
17532 #include "confdefs.h"
17533 #include <math.h>
17534                       #ifdef HAVE_IEEEFP_H
17535                       #include <ieeefp.h>
17536                       #endif
17537                      
17538 int main() {
17539  logl(0);
17540 ; return 0; }
17541 EOF
17542 if { (eval echo configure:17543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17543   rm -rf conftest*
17544   glibcpp_cv_func_logl_use=yes
17545 else
17546   echo "configure: failed program was:" >&5
17547   cat conftest.$ac_ext >&5
17548   rm -rf conftest*
17549   glibcpp_cv_func_logl_use=no
17550 fi
17551 rm -f conftest*
17552       ac_ext=c
17553 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17554 ac_cpp='$CPP $CPPFLAGS'
17555 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17556 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17557 cross_compiling=$ac_cv_prog_cc_cross
17558
17559     
17560 fi
17561
17562   fi
17563   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
17564
17565   if test x$glibcpp_cv_func_logl_use = x"yes"; then
17566     for ac_func in logl
17567 do
17568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17569 echo "configure:17570: checking for $ac_func" >&5
17570 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17571   echo $ac_n "(cached) $ac_c" 1>&6
17572 else
17573   cat > conftest.$ac_ext <<EOF
17574 #line 17575 "configure"
17575 #include "confdefs.h"
17576 /* System header to define __stub macros and hopefully few prototypes,
17577     which can conflict with char $ac_func(); below.  */
17578 #include <assert.h>
17579 /* Override any gcc2 internal prototype to avoid an error.  */
17580 /* We use char because int might match the return type of a gcc2
17581     builtin and then its argument prototype would still apply.  */
17582 char $ac_func();
17583
17584 int main() {
17585
17586 /* The GNU C library defines this for functions which it implements
17587     to always fail with ENOSYS.  Some functions are actually named
17588     something starting with __ and the normal name is an alias.  */
17589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17590 choke me
17591 #else
17592 $ac_func();
17593 #endif
17594
17595 ; return 0; }
17596 EOF
17597 if { (eval echo configure:17598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17598   rm -rf conftest*
17599   eval "ac_cv_func_$ac_func=yes"
17600 else
17601   echo "configure: failed program was:" >&5
17602   cat conftest.$ac_ext >&5
17603   rm -rf conftest*
17604   eval "ac_cv_func_$ac_func=no"
17605 fi
17606 rm -f conftest*
17607 fi
17608
17609 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17610   echo "$ac_t""yes" 1>&6
17611     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17612   cat >> confdefs.h <<EOF
17613 #define $ac_tr_func 1
17614 EOF
17615  
17616 else
17617   echo "$ac_t""no" 1>&6
17618 fi
17619 done
17620     
17621   else
17622     
17623   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
17624 echo "configure:17625: checking for _logl declaration" >&5
17625   if test x${glibcpp_cv_func__logl_use+set} != xset; then
17626     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
17627   echo $ac_n "(cached) $ac_c" 1>&6
17628 else
17629   
17630       
17631       ac_ext=C
17632 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17633 ac_cpp='$CXXCPP $CPPFLAGS'
17634 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17635 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17636 cross_compiling=$ac_cv_prog_cxx_cross
17637
17638       cat > conftest.$ac_ext <<EOF
17639 #line 17640 "configure"
17640 #include "confdefs.h"
17641 #include <math.h>
17642                       #ifdef HAVE_IEEEFP_H
17643                       #include <ieeefp.h>
17644                       #endif
17645                      
17646 int main() {
17647  _logl(0);
17648 ; return 0; }
17649 EOF
17650 if { (eval echo configure:17651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17651   rm -rf conftest*
17652   glibcpp_cv_func__logl_use=yes
17653 else
17654   echo "configure: failed program was:" >&5
17655   cat conftest.$ac_ext >&5
17656   rm -rf conftest*
17657   glibcpp_cv_func__logl_use=no
17658 fi
17659 rm -f conftest*
17660       ac_ext=c
17661 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17662 ac_cpp='$CPP $CPPFLAGS'
17663 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17664 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17665 cross_compiling=$ac_cv_prog_cc_cross
17666
17667     
17668 fi
17669
17670   fi
17671   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
17672
17673     if test x$glibcpp_cv_func__logl_use = x"yes"; then
17674       for ac_func in _logl
17675 do
17676 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17677 echo "configure:17678: checking for $ac_func" >&5
17678 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17679   echo $ac_n "(cached) $ac_c" 1>&6
17680 else
17681   cat > conftest.$ac_ext <<EOF
17682 #line 17683 "configure"
17683 #include "confdefs.h"
17684 /* System header to define __stub macros and hopefully few prototypes,
17685     which can conflict with char $ac_func(); below.  */
17686 #include <assert.h>
17687 /* Override any gcc2 internal prototype to avoid an error.  */
17688 /* We use char because int might match the return type of a gcc2
17689     builtin and then its argument prototype would still apply.  */
17690 char $ac_func();
17691
17692 int main() {
17693
17694 /* The GNU C library defines this for functions which it implements
17695     to always fail with ENOSYS.  Some functions are actually named
17696     something starting with __ and the normal name is an alias.  */
17697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17698 choke me
17699 #else
17700 $ac_func();
17701 #endif
17702
17703 ; return 0; }
17704 EOF
17705 if { (eval echo configure:17706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17706   rm -rf conftest*
17707   eval "ac_cv_func_$ac_func=yes"
17708 else
17709   echo "configure: failed program was:" >&5
17710   cat conftest.$ac_ext >&5
17711   rm -rf conftest*
17712   eval "ac_cv_func_$ac_func=no"
17713 fi
17714 rm -f conftest*
17715 fi
17716
17717 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17718   echo "$ac_t""yes" 1>&6
17719     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17720   cat >> confdefs.h <<EOF
17721 #define $ac_tr_func 1
17722 EOF
17723  
17724 else
17725   echo "$ac_t""no" 1>&6
17726 fi
17727 done
17728     
17729     fi
17730   fi
17731
17732   
17733   
17734   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
17735 echo "configure:17736: checking for log10l declaration" >&5
17736   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
17737     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
17738   echo $ac_n "(cached) $ac_c" 1>&6
17739 else
17740   
17741       
17742       ac_ext=C
17743 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17744 ac_cpp='$CXXCPP $CPPFLAGS'
17745 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17746 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17747 cross_compiling=$ac_cv_prog_cxx_cross
17748
17749       cat > conftest.$ac_ext <<EOF
17750 #line 17751 "configure"
17751 #include "confdefs.h"
17752 #include <math.h>
17753                       #ifdef HAVE_IEEEFP_H
17754                       #include <ieeefp.h>
17755                       #endif
17756                      
17757 int main() {
17758  log10l(0);
17759 ; return 0; }
17760 EOF
17761 if { (eval echo configure:17762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17762   rm -rf conftest*
17763   glibcpp_cv_func_log10l_use=yes
17764 else
17765   echo "configure: failed program was:" >&5
17766   cat conftest.$ac_ext >&5
17767   rm -rf conftest*
17768   glibcpp_cv_func_log10l_use=no
17769 fi
17770 rm -f conftest*
17771       ac_ext=c
17772 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17773 ac_cpp='$CPP $CPPFLAGS'
17774 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17775 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17776 cross_compiling=$ac_cv_prog_cc_cross
17777
17778     
17779 fi
17780
17781   fi
17782   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
17783
17784   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
17785     for ac_func in log10l
17786 do
17787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17788 echo "configure:17789: checking for $ac_func" >&5
17789 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17790   echo $ac_n "(cached) $ac_c" 1>&6
17791 else
17792   cat > conftest.$ac_ext <<EOF
17793 #line 17794 "configure"
17794 #include "confdefs.h"
17795 /* System header to define __stub macros and hopefully few prototypes,
17796     which can conflict with char $ac_func(); below.  */
17797 #include <assert.h>
17798 /* Override any gcc2 internal prototype to avoid an error.  */
17799 /* We use char because int might match the return type of a gcc2
17800     builtin and then its argument prototype would still apply.  */
17801 char $ac_func();
17802
17803 int main() {
17804
17805 /* The GNU C library defines this for functions which it implements
17806     to always fail with ENOSYS.  Some functions are actually named
17807     something starting with __ and the normal name is an alias.  */
17808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17809 choke me
17810 #else
17811 $ac_func();
17812 #endif
17813
17814 ; return 0; }
17815 EOF
17816 if { (eval echo configure:17817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17817   rm -rf conftest*
17818   eval "ac_cv_func_$ac_func=yes"
17819 else
17820   echo "configure: failed program was:" >&5
17821   cat conftest.$ac_ext >&5
17822   rm -rf conftest*
17823   eval "ac_cv_func_$ac_func=no"
17824 fi
17825 rm -f conftest*
17826 fi
17827
17828 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17829   echo "$ac_t""yes" 1>&6
17830     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17831   cat >> confdefs.h <<EOF
17832 #define $ac_tr_func 1
17833 EOF
17834  
17835 else
17836   echo "$ac_t""no" 1>&6
17837 fi
17838 done
17839     
17840   else
17841     
17842   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
17843 echo "configure:17844: checking for _log10l declaration" >&5
17844   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
17845     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
17846   echo $ac_n "(cached) $ac_c" 1>&6
17847 else
17848   
17849       
17850       ac_ext=C
17851 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17852 ac_cpp='$CXXCPP $CPPFLAGS'
17853 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17854 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17855 cross_compiling=$ac_cv_prog_cxx_cross
17856
17857       cat > conftest.$ac_ext <<EOF
17858 #line 17859 "configure"
17859 #include "confdefs.h"
17860 #include <math.h>
17861                       #ifdef HAVE_IEEEFP_H
17862                       #include <ieeefp.h>
17863                       #endif
17864                      
17865 int main() {
17866  _log10l(0);
17867 ; return 0; }
17868 EOF
17869 if { (eval echo configure:17870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17870   rm -rf conftest*
17871   glibcpp_cv_func__log10l_use=yes
17872 else
17873   echo "configure: failed program was:" >&5
17874   cat conftest.$ac_ext >&5
17875   rm -rf conftest*
17876   glibcpp_cv_func__log10l_use=no
17877 fi
17878 rm -f conftest*
17879       ac_ext=c
17880 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17881 ac_cpp='$CPP $CPPFLAGS'
17882 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17883 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17884 cross_compiling=$ac_cv_prog_cc_cross
17885
17886     
17887 fi
17888
17889   fi
17890   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
17891
17892     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
17893       for ac_func in _log10l
17894 do
17895 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17896 echo "configure:17897: checking for $ac_func" >&5
17897 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17898   echo $ac_n "(cached) $ac_c" 1>&6
17899 else
17900   cat > conftest.$ac_ext <<EOF
17901 #line 17902 "configure"
17902 #include "confdefs.h"
17903 /* System header to define __stub macros and hopefully few prototypes,
17904     which can conflict with char $ac_func(); below.  */
17905 #include <assert.h>
17906 /* Override any gcc2 internal prototype to avoid an error.  */
17907 /* We use char because int might match the return type of a gcc2
17908     builtin and then its argument prototype would still apply.  */
17909 char $ac_func();
17910
17911 int main() {
17912
17913 /* The GNU C library defines this for functions which it implements
17914     to always fail with ENOSYS.  Some functions are actually named
17915     something starting with __ and the normal name is an alias.  */
17916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17917 choke me
17918 #else
17919 $ac_func();
17920 #endif
17921
17922 ; return 0; }
17923 EOF
17924 if { (eval echo configure:17925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17925   rm -rf conftest*
17926   eval "ac_cv_func_$ac_func=yes"
17927 else
17928   echo "configure: failed program was:" >&5
17929   cat conftest.$ac_ext >&5
17930   rm -rf conftest*
17931   eval "ac_cv_func_$ac_func=no"
17932 fi
17933 rm -f conftest*
17934 fi
17935
17936 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17937   echo "$ac_t""yes" 1>&6
17938     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17939   cat >> confdefs.h <<EOF
17940 #define $ac_tr_func 1
17941 EOF
17942  
17943 else
17944   echo "$ac_t""no" 1>&6
17945 fi
17946 done
17947     
17948     fi
17949   fi
17950
17951   
17952   
17953   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
17954 echo "configure:17955: checking for modfl declaration" >&5
17955   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
17956     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
17957   echo $ac_n "(cached) $ac_c" 1>&6
17958 else
17959   
17960       
17961       ac_ext=C
17962 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17963 ac_cpp='$CXXCPP $CPPFLAGS'
17964 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17965 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17966 cross_compiling=$ac_cv_prog_cxx_cross
17967
17968       cat > conftest.$ac_ext <<EOF
17969 #line 17970 "configure"
17970 #include "confdefs.h"
17971 #include <math.h>
17972 int main() {
17973  modfl(0, 0);
17974 ; return 0; }
17975 EOF
17976 if { (eval echo configure:17977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17977   rm -rf conftest*
17978   glibcpp_cv_func_modfl_use=yes
17979 else
17980   echo "configure: failed program was:" >&5
17981   cat conftest.$ac_ext >&5
17982   rm -rf conftest*
17983   glibcpp_cv_func_modfl_use=no
17984 fi
17985 rm -f conftest*
17986       ac_ext=c
17987 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17988 ac_cpp='$CPP $CPPFLAGS'
17989 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17990 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17991 cross_compiling=$ac_cv_prog_cc_cross
17992
17993     
17994 fi
17995
17996   fi
17997   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
17998
17999   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
18000     for ac_func in modfl
18001 do
18002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18003 echo "configure:18004: checking for $ac_func" >&5
18004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18005   echo $ac_n "(cached) $ac_c" 1>&6
18006 else
18007   cat > conftest.$ac_ext <<EOF
18008 #line 18009 "configure"
18009 #include "confdefs.h"
18010 /* System header to define __stub macros and hopefully few prototypes,
18011     which can conflict with char $ac_func(); below.  */
18012 #include <assert.h>
18013 /* Override any gcc2 internal prototype to avoid an error.  */
18014 /* We use char because int might match the return type of a gcc2
18015     builtin and then its argument prototype would still apply.  */
18016 char $ac_func();
18017
18018 int main() {
18019
18020 /* The GNU C library defines this for functions which it implements
18021     to always fail with ENOSYS.  Some functions are actually named
18022     something starting with __ and the normal name is an alias.  */
18023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18024 choke me
18025 #else
18026 $ac_func();
18027 #endif
18028
18029 ; return 0; }
18030 EOF
18031 if { (eval echo configure:18032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18032   rm -rf conftest*
18033   eval "ac_cv_func_$ac_func=yes"
18034 else
18035   echo "configure: failed program was:" >&5
18036   cat conftest.$ac_ext >&5
18037   rm -rf conftest*
18038   eval "ac_cv_func_$ac_func=no"
18039 fi
18040 rm -f conftest*
18041 fi
18042
18043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18044   echo "$ac_t""yes" 1>&6
18045     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18046   cat >> confdefs.h <<EOF
18047 #define $ac_tr_func 1
18048 EOF
18049  
18050 else
18051   echo "$ac_t""no" 1>&6
18052 fi
18053 done
18054     
18055   else
18056     
18057   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
18058 echo "configure:18059: checking for _modfl declaration" >&5
18059   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
18060     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
18061   echo $ac_n "(cached) $ac_c" 1>&6
18062 else
18063   
18064       
18065       ac_ext=C
18066 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18067 ac_cpp='$CXXCPP $CPPFLAGS'
18068 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18069 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18070 cross_compiling=$ac_cv_prog_cxx_cross
18071
18072       cat > conftest.$ac_ext <<EOF
18073 #line 18074 "configure"
18074 #include "confdefs.h"
18075 #include <math.h>
18076 int main() {
18077  _modfl(0, 0);
18078 ; return 0; }
18079 EOF
18080 if { (eval echo configure:18081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18081   rm -rf conftest*
18082   glibcpp_cv_func__modfl_use=yes
18083 else
18084   echo "configure: failed program was:" >&5
18085   cat conftest.$ac_ext >&5
18086   rm -rf conftest*
18087   glibcpp_cv_func__modfl_use=no
18088 fi
18089 rm -f conftest*
18090       ac_ext=c
18091 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18092 ac_cpp='$CPP $CPPFLAGS'
18093 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18094 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18095 cross_compiling=$ac_cv_prog_cc_cross
18096
18097     
18098 fi
18099
18100   fi
18101   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
18102
18103     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
18104       for ac_func in _modfl
18105 do
18106 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18107 echo "configure:18108: checking for $ac_func" >&5
18108 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18109   echo $ac_n "(cached) $ac_c" 1>&6
18110 else
18111   cat > conftest.$ac_ext <<EOF
18112 #line 18113 "configure"
18113 #include "confdefs.h"
18114 /* System header to define __stub macros and hopefully few prototypes,
18115     which can conflict with char $ac_func(); below.  */
18116 #include <assert.h>
18117 /* Override any gcc2 internal prototype to avoid an error.  */
18118 /* We use char because int might match the return type of a gcc2
18119     builtin and then its argument prototype would still apply.  */
18120 char $ac_func();
18121
18122 int main() {
18123
18124 /* The GNU C library defines this for functions which it implements
18125     to always fail with ENOSYS.  Some functions are actually named
18126     something starting with __ and the normal name is an alias.  */
18127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18128 choke me
18129 #else
18130 $ac_func();
18131 #endif
18132
18133 ; return 0; }
18134 EOF
18135 if { (eval echo configure:18136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18136   rm -rf conftest*
18137   eval "ac_cv_func_$ac_func=yes"
18138 else
18139   echo "configure: failed program was:" >&5
18140   cat conftest.$ac_ext >&5
18141   rm -rf conftest*
18142   eval "ac_cv_func_$ac_func=no"
18143 fi
18144 rm -f conftest*
18145 fi
18146
18147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18148   echo "$ac_t""yes" 1>&6
18149     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18150   cat >> confdefs.h <<EOF
18151 #define $ac_tr_func 1
18152 EOF
18153  
18154 else
18155   echo "$ac_t""no" 1>&6
18156 fi
18157 done
18158     
18159     fi
18160   fi
18161
18162   
18163   
18164   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
18165 echo "configure:18166: checking for powl declaration" >&5
18166   if test x${glibcpp_cv_func_powl_use+set} != xset; then
18167     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
18168   echo $ac_n "(cached) $ac_c" 1>&6
18169 else
18170   
18171       
18172       ac_ext=C
18173 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18174 ac_cpp='$CXXCPP $CPPFLAGS'
18175 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18176 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18177 cross_compiling=$ac_cv_prog_cxx_cross
18178
18179       cat > conftest.$ac_ext <<EOF
18180 #line 18181 "configure"
18181 #include "confdefs.h"
18182 #include <math.h>
18183 int main() {
18184  powl(0, 0);
18185 ; return 0; }
18186 EOF
18187 if { (eval echo configure:18188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18188   rm -rf conftest*
18189   glibcpp_cv_func_powl_use=yes
18190 else
18191   echo "configure: failed program was:" >&5
18192   cat conftest.$ac_ext >&5
18193   rm -rf conftest*
18194   glibcpp_cv_func_powl_use=no
18195 fi
18196 rm -f conftest*
18197       ac_ext=c
18198 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18199 ac_cpp='$CPP $CPPFLAGS'
18200 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18201 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18202 cross_compiling=$ac_cv_prog_cc_cross
18203
18204     
18205 fi
18206
18207   fi
18208   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
18209
18210   if test x$glibcpp_cv_func_powl_use = x"yes"; then
18211     for ac_func in powl
18212 do
18213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18214 echo "configure:18215: checking for $ac_func" >&5
18215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18216   echo $ac_n "(cached) $ac_c" 1>&6
18217 else
18218   cat > conftest.$ac_ext <<EOF
18219 #line 18220 "configure"
18220 #include "confdefs.h"
18221 /* System header to define __stub macros and hopefully few prototypes,
18222     which can conflict with char $ac_func(); below.  */
18223 #include <assert.h>
18224 /* Override any gcc2 internal prototype to avoid an error.  */
18225 /* We use char because int might match the return type of a gcc2
18226     builtin and then its argument prototype would still apply.  */
18227 char $ac_func();
18228
18229 int main() {
18230
18231 /* The GNU C library defines this for functions which it implements
18232     to always fail with ENOSYS.  Some functions are actually named
18233     something starting with __ and the normal name is an alias.  */
18234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18235 choke me
18236 #else
18237 $ac_func();
18238 #endif
18239
18240 ; return 0; }
18241 EOF
18242 if { (eval echo configure:18243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18243   rm -rf conftest*
18244   eval "ac_cv_func_$ac_func=yes"
18245 else
18246   echo "configure: failed program was:" >&5
18247   cat conftest.$ac_ext >&5
18248   rm -rf conftest*
18249   eval "ac_cv_func_$ac_func=no"
18250 fi
18251 rm -f conftest*
18252 fi
18253
18254 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18255   echo "$ac_t""yes" 1>&6
18256     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18257   cat >> confdefs.h <<EOF
18258 #define $ac_tr_func 1
18259 EOF
18260  
18261 else
18262   echo "$ac_t""no" 1>&6
18263 fi
18264 done
18265     
18266   else
18267     
18268   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
18269 echo "configure:18270: checking for _powl declaration" >&5
18270   if test x${glibcpp_cv_func__powl_use+set} != xset; then
18271     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
18272   echo $ac_n "(cached) $ac_c" 1>&6
18273 else
18274   
18275       
18276       ac_ext=C
18277 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18278 ac_cpp='$CXXCPP $CPPFLAGS'
18279 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18280 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18281 cross_compiling=$ac_cv_prog_cxx_cross
18282
18283       cat > conftest.$ac_ext <<EOF
18284 #line 18285 "configure"
18285 #include "confdefs.h"
18286 #include <math.h>
18287 int main() {
18288  _powl(0, 0);
18289 ; return 0; }
18290 EOF
18291 if { (eval echo configure:18292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18292   rm -rf conftest*
18293   glibcpp_cv_func__powl_use=yes
18294 else
18295   echo "configure: failed program was:" >&5
18296   cat conftest.$ac_ext >&5
18297   rm -rf conftest*
18298   glibcpp_cv_func__powl_use=no
18299 fi
18300 rm -f conftest*
18301       ac_ext=c
18302 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18303 ac_cpp='$CPP $CPPFLAGS'
18304 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18305 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18306 cross_compiling=$ac_cv_prog_cc_cross
18307
18308     
18309 fi
18310
18311   fi
18312   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
18313
18314     if test x$glibcpp_cv_func__powl_use = x"yes"; then
18315       for ac_func in _powl
18316 do
18317 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18318 echo "configure:18319: checking for $ac_func" >&5
18319 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18320   echo $ac_n "(cached) $ac_c" 1>&6
18321 else
18322   cat > conftest.$ac_ext <<EOF
18323 #line 18324 "configure"
18324 #include "confdefs.h"
18325 /* System header to define __stub macros and hopefully few prototypes,
18326     which can conflict with char $ac_func(); below.  */
18327 #include <assert.h>
18328 /* Override any gcc2 internal prototype to avoid an error.  */
18329 /* We use char because int might match the return type of a gcc2
18330     builtin and then its argument prototype would still apply.  */
18331 char $ac_func();
18332
18333 int main() {
18334
18335 /* The GNU C library defines this for functions which it implements
18336     to always fail with ENOSYS.  Some functions are actually named
18337     something starting with __ and the normal name is an alias.  */
18338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18339 choke me
18340 #else
18341 $ac_func();
18342 #endif
18343
18344 ; return 0; }
18345 EOF
18346 if { (eval echo configure:18347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18347   rm -rf conftest*
18348   eval "ac_cv_func_$ac_func=yes"
18349 else
18350   echo "configure: failed program was:" >&5
18351   cat conftest.$ac_ext >&5
18352   rm -rf conftest*
18353   eval "ac_cv_func_$ac_func=no"
18354 fi
18355 rm -f conftest*
18356 fi
18357
18358 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18359   echo "$ac_t""yes" 1>&6
18360     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18361   cat >> confdefs.h <<EOF
18362 #define $ac_tr_func 1
18363 EOF
18364  
18365 else
18366   echo "$ac_t""no" 1>&6
18367 fi
18368 done
18369     
18370     fi
18371   fi
18372
18373   
18374   
18375   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
18376 echo "configure:18377: checking for sqrtl declaration" >&5
18377   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
18378     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
18379   echo $ac_n "(cached) $ac_c" 1>&6
18380 else
18381   
18382       
18383       ac_ext=C
18384 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18385 ac_cpp='$CXXCPP $CPPFLAGS'
18386 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18387 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18388 cross_compiling=$ac_cv_prog_cxx_cross
18389
18390       cat > conftest.$ac_ext <<EOF
18391 #line 18392 "configure"
18392 #include "confdefs.h"
18393 #include <math.h>
18394                       #ifdef HAVE_IEEEFP_H
18395                       #include <ieeefp.h>
18396                       #endif
18397                      
18398 int main() {
18399  sqrtl(0);
18400 ; return 0; }
18401 EOF
18402 if { (eval echo configure:18403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18403   rm -rf conftest*
18404   glibcpp_cv_func_sqrtl_use=yes
18405 else
18406   echo "configure: failed program was:" >&5
18407   cat conftest.$ac_ext >&5
18408   rm -rf conftest*
18409   glibcpp_cv_func_sqrtl_use=no
18410 fi
18411 rm -f conftest*
18412       ac_ext=c
18413 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18414 ac_cpp='$CPP $CPPFLAGS'
18415 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18416 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18417 cross_compiling=$ac_cv_prog_cc_cross
18418
18419     
18420 fi
18421
18422   fi
18423   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
18424
18425   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
18426     for ac_func in sqrtl
18427 do
18428 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18429 echo "configure:18430: checking for $ac_func" >&5
18430 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18431   echo $ac_n "(cached) $ac_c" 1>&6
18432 else
18433   cat > conftest.$ac_ext <<EOF
18434 #line 18435 "configure"
18435 #include "confdefs.h"
18436 /* System header to define __stub macros and hopefully few prototypes,
18437     which can conflict with char $ac_func(); below.  */
18438 #include <assert.h>
18439 /* Override any gcc2 internal prototype to avoid an error.  */
18440 /* We use char because int might match the return type of a gcc2
18441     builtin and then its argument prototype would still apply.  */
18442 char $ac_func();
18443
18444 int main() {
18445
18446 /* The GNU C library defines this for functions which it implements
18447     to always fail with ENOSYS.  Some functions are actually named
18448     something starting with __ and the normal name is an alias.  */
18449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18450 choke me
18451 #else
18452 $ac_func();
18453 #endif
18454
18455 ; return 0; }
18456 EOF
18457 if { (eval echo configure:18458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18458   rm -rf conftest*
18459   eval "ac_cv_func_$ac_func=yes"
18460 else
18461   echo "configure: failed program was:" >&5
18462   cat conftest.$ac_ext >&5
18463   rm -rf conftest*
18464   eval "ac_cv_func_$ac_func=no"
18465 fi
18466 rm -f conftest*
18467 fi
18468
18469 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18470   echo "$ac_t""yes" 1>&6
18471     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18472   cat >> confdefs.h <<EOF
18473 #define $ac_tr_func 1
18474 EOF
18475  
18476 else
18477   echo "$ac_t""no" 1>&6
18478 fi
18479 done
18480     
18481   else
18482     
18483   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
18484 echo "configure:18485: checking for _sqrtl declaration" >&5
18485   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
18486     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
18487   echo $ac_n "(cached) $ac_c" 1>&6
18488 else
18489   
18490       
18491       ac_ext=C
18492 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18493 ac_cpp='$CXXCPP $CPPFLAGS'
18494 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18495 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18496 cross_compiling=$ac_cv_prog_cxx_cross
18497
18498       cat > conftest.$ac_ext <<EOF
18499 #line 18500 "configure"
18500 #include "confdefs.h"
18501 #include <math.h>
18502                       #ifdef HAVE_IEEEFP_H
18503                       #include <ieeefp.h>
18504                       #endif
18505                      
18506 int main() {
18507  _sqrtl(0);
18508 ; return 0; }
18509 EOF
18510 if { (eval echo configure:18511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18511   rm -rf conftest*
18512   glibcpp_cv_func__sqrtl_use=yes
18513 else
18514   echo "configure: failed program was:" >&5
18515   cat conftest.$ac_ext >&5
18516   rm -rf conftest*
18517   glibcpp_cv_func__sqrtl_use=no
18518 fi
18519 rm -f conftest*
18520       ac_ext=c
18521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18522 ac_cpp='$CPP $CPPFLAGS'
18523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18524 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18525 cross_compiling=$ac_cv_prog_cc_cross
18526
18527     
18528 fi
18529
18530   fi
18531   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
18532
18533     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
18534       for ac_func in _sqrtl
18535 do
18536 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18537 echo "configure:18538: checking for $ac_func" >&5
18538 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18539   echo $ac_n "(cached) $ac_c" 1>&6
18540 else
18541   cat > conftest.$ac_ext <<EOF
18542 #line 18543 "configure"
18543 #include "confdefs.h"
18544 /* System header to define __stub macros and hopefully few prototypes,
18545     which can conflict with char $ac_func(); below.  */
18546 #include <assert.h>
18547 /* Override any gcc2 internal prototype to avoid an error.  */
18548 /* We use char because int might match the return type of a gcc2
18549     builtin and then its argument prototype would still apply.  */
18550 char $ac_func();
18551
18552 int main() {
18553
18554 /* The GNU C library defines this for functions which it implements
18555     to always fail with ENOSYS.  Some functions are actually named
18556     something starting with __ and the normal name is an alias.  */
18557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18558 choke me
18559 #else
18560 $ac_func();
18561 #endif
18562
18563 ; return 0; }
18564 EOF
18565 if { (eval echo configure:18566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18566   rm -rf conftest*
18567   eval "ac_cv_func_$ac_func=yes"
18568 else
18569   echo "configure: failed program was:" >&5
18570   cat conftest.$ac_ext >&5
18571   rm -rf conftest*
18572   eval "ac_cv_func_$ac_func=no"
18573 fi
18574 rm -f conftest*
18575 fi
18576
18577 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18578   echo "$ac_t""yes" 1>&6
18579     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18580   cat >> confdefs.h <<EOF
18581 #define $ac_tr_func 1
18582 EOF
18583  
18584 else
18585   echo "$ac_t""no" 1>&6
18586 fi
18587 done
18588     
18589     fi
18590   fi
18591
18592   
18593   
18594   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
18595 echo "configure:18596: checking for sincosl declaration" >&5
18596   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
18597     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
18598   echo $ac_n "(cached) $ac_c" 1>&6
18599 else
18600   
18601       
18602       ac_ext=C
18603 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18604 ac_cpp='$CXXCPP $CPPFLAGS'
18605 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18606 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18607 cross_compiling=$ac_cv_prog_cxx_cross
18608
18609       cat > conftest.$ac_ext <<EOF
18610 #line 18611 "configure"
18611 #include "confdefs.h"
18612 #include <math.h>
18613 int main() {
18614  sincosl(0, 0, 0);
18615 ; return 0; }
18616 EOF
18617 if { (eval echo configure:18618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18618   rm -rf conftest*
18619   glibcpp_cv_func_sincosl_use=yes
18620 else
18621   echo "configure: failed program was:" >&5
18622   cat conftest.$ac_ext >&5
18623   rm -rf conftest*
18624   glibcpp_cv_func_sincosl_use=no
18625 fi
18626 rm -f conftest*
18627       ac_ext=c
18628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18629 ac_cpp='$CPP $CPPFLAGS'
18630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18632 cross_compiling=$ac_cv_prog_cc_cross
18633
18634     
18635 fi
18636
18637   fi
18638   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
18639
18640   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
18641     for ac_func in sincosl
18642 do
18643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18644 echo "configure:18645: checking for $ac_func" >&5
18645 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18646   echo $ac_n "(cached) $ac_c" 1>&6
18647 else
18648   cat > conftest.$ac_ext <<EOF
18649 #line 18650 "configure"
18650 #include "confdefs.h"
18651 /* System header to define __stub macros and hopefully few prototypes,
18652     which can conflict with char $ac_func(); below.  */
18653 #include <assert.h>
18654 /* Override any gcc2 internal prototype to avoid an error.  */
18655 /* We use char because int might match the return type of a gcc2
18656     builtin and then its argument prototype would still apply.  */
18657 char $ac_func();
18658
18659 int main() {
18660
18661 /* The GNU C library defines this for functions which it implements
18662     to always fail with ENOSYS.  Some functions are actually named
18663     something starting with __ and the normal name is an alias.  */
18664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18665 choke me
18666 #else
18667 $ac_func();
18668 #endif
18669
18670 ; return 0; }
18671 EOF
18672 if { (eval echo configure:18673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18673   rm -rf conftest*
18674   eval "ac_cv_func_$ac_func=yes"
18675 else
18676   echo "configure: failed program was:" >&5
18677   cat conftest.$ac_ext >&5
18678   rm -rf conftest*
18679   eval "ac_cv_func_$ac_func=no"
18680 fi
18681 rm -f conftest*
18682 fi
18683
18684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18685   echo "$ac_t""yes" 1>&6
18686     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18687   cat >> confdefs.h <<EOF
18688 #define $ac_tr_func 1
18689 EOF
18690  
18691 else
18692   echo "$ac_t""no" 1>&6
18693 fi
18694 done
18695     
18696   else
18697     
18698   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
18699 echo "configure:18700: checking for _sincosl declaration" >&5
18700   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
18701     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
18702   echo $ac_n "(cached) $ac_c" 1>&6
18703 else
18704   
18705       
18706       ac_ext=C
18707 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18708 ac_cpp='$CXXCPP $CPPFLAGS'
18709 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18710 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18711 cross_compiling=$ac_cv_prog_cxx_cross
18712
18713       cat > conftest.$ac_ext <<EOF
18714 #line 18715 "configure"
18715 #include "confdefs.h"
18716 #include <math.h>
18717 int main() {
18718  _sincosl(0, 0, 0);
18719 ; return 0; }
18720 EOF
18721 if { (eval echo configure:18722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18722   rm -rf conftest*
18723   glibcpp_cv_func__sincosl_use=yes
18724 else
18725   echo "configure: failed program was:" >&5
18726   cat conftest.$ac_ext >&5
18727   rm -rf conftest*
18728   glibcpp_cv_func__sincosl_use=no
18729 fi
18730 rm -f conftest*
18731       ac_ext=c
18732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18733 ac_cpp='$CPP $CPPFLAGS'
18734 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18735 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18736 cross_compiling=$ac_cv_prog_cc_cross
18737
18738     
18739 fi
18740
18741   fi
18742   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
18743
18744     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
18745       for ac_func in _sincosl
18746 do
18747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18748 echo "configure:18749: checking for $ac_func" >&5
18749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18750   echo $ac_n "(cached) $ac_c" 1>&6
18751 else
18752   cat > conftest.$ac_ext <<EOF
18753 #line 18754 "configure"
18754 #include "confdefs.h"
18755 /* System header to define __stub macros and hopefully few prototypes,
18756     which can conflict with char $ac_func(); below.  */
18757 #include <assert.h>
18758 /* Override any gcc2 internal prototype to avoid an error.  */
18759 /* We use char because int might match the return type of a gcc2
18760     builtin and then its argument prototype would still apply.  */
18761 char $ac_func();
18762
18763 int main() {
18764
18765 /* The GNU C library defines this for functions which it implements
18766     to always fail with ENOSYS.  Some functions are actually named
18767     something starting with __ and the normal name is an alias.  */
18768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18769 choke me
18770 #else
18771 $ac_func();
18772 #endif
18773
18774 ; return 0; }
18775 EOF
18776 if { (eval echo configure:18777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18777   rm -rf conftest*
18778   eval "ac_cv_func_$ac_func=yes"
18779 else
18780   echo "configure: failed program was:" >&5
18781   cat conftest.$ac_ext >&5
18782   rm -rf conftest*
18783   eval "ac_cv_func_$ac_func=no"
18784 fi
18785 rm -f conftest*
18786 fi
18787
18788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18789   echo "$ac_t""yes" 1>&6
18790     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18791   cat >> confdefs.h <<EOF
18792 #define $ac_tr_func 1
18793 EOF
18794  
18795 else
18796   echo "$ac_t""no" 1>&6
18797 fi
18798 done
18799     
18800     fi
18801   fi
18802
18803   
18804   
18805   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
18806 echo "configure:18807: checking for finitel declaration" >&5
18807   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
18808     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
18809   echo $ac_n "(cached) $ac_c" 1>&6
18810 else
18811   
18812       
18813       ac_ext=C
18814 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18815 ac_cpp='$CXXCPP $CPPFLAGS'
18816 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18817 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18818 cross_compiling=$ac_cv_prog_cxx_cross
18819
18820       cat > conftest.$ac_ext <<EOF
18821 #line 18822 "configure"
18822 #include "confdefs.h"
18823 #include <math.h>
18824                       #ifdef HAVE_IEEEFP_H
18825                       #include <ieeefp.h>
18826                       #endif
18827                      
18828 int main() {
18829  finitel(0);
18830 ; return 0; }
18831 EOF
18832 if { (eval echo configure:18833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18833   rm -rf conftest*
18834   glibcpp_cv_func_finitel_use=yes
18835 else
18836   echo "configure: failed program was:" >&5
18837   cat conftest.$ac_ext >&5
18838   rm -rf conftest*
18839   glibcpp_cv_func_finitel_use=no
18840 fi
18841 rm -f conftest*
18842       ac_ext=c
18843 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18844 ac_cpp='$CPP $CPPFLAGS'
18845 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18846 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18847 cross_compiling=$ac_cv_prog_cc_cross
18848
18849     
18850 fi
18851
18852   fi
18853   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
18854
18855   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
18856     for ac_func in finitel
18857 do
18858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18859 echo "configure:18860: checking for $ac_func" >&5
18860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18861   echo $ac_n "(cached) $ac_c" 1>&6
18862 else
18863   cat > conftest.$ac_ext <<EOF
18864 #line 18865 "configure"
18865 #include "confdefs.h"
18866 /* System header to define __stub macros and hopefully few prototypes,
18867     which can conflict with char $ac_func(); below.  */
18868 #include <assert.h>
18869 /* Override any gcc2 internal prototype to avoid an error.  */
18870 /* We use char because int might match the return type of a gcc2
18871     builtin and then its argument prototype would still apply.  */
18872 char $ac_func();
18873
18874 int main() {
18875
18876 /* The GNU C library defines this for functions which it implements
18877     to always fail with ENOSYS.  Some functions are actually named
18878     something starting with __ and the normal name is an alias.  */
18879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18880 choke me
18881 #else
18882 $ac_func();
18883 #endif
18884
18885 ; return 0; }
18886 EOF
18887 if { (eval echo configure:18888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18888   rm -rf conftest*
18889   eval "ac_cv_func_$ac_func=yes"
18890 else
18891   echo "configure: failed program was:" >&5
18892   cat conftest.$ac_ext >&5
18893   rm -rf conftest*
18894   eval "ac_cv_func_$ac_func=no"
18895 fi
18896 rm -f conftest*
18897 fi
18898
18899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18900   echo "$ac_t""yes" 1>&6
18901     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18902   cat >> confdefs.h <<EOF
18903 #define $ac_tr_func 1
18904 EOF
18905  
18906 else
18907   echo "$ac_t""no" 1>&6
18908 fi
18909 done
18910     
18911   else
18912     
18913   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
18914 echo "configure:18915: checking for _finitel declaration" >&5
18915   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
18916     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
18917   echo $ac_n "(cached) $ac_c" 1>&6
18918 else
18919   
18920       
18921       ac_ext=C
18922 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18923 ac_cpp='$CXXCPP $CPPFLAGS'
18924 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18925 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18926 cross_compiling=$ac_cv_prog_cxx_cross
18927
18928       cat > conftest.$ac_ext <<EOF
18929 #line 18930 "configure"
18930 #include "confdefs.h"
18931 #include <math.h>
18932                       #ifdef HAVE_IEEEFP_H
18933                       #include <ieeefp.h>
18934                       #endif
18935                      
18936 int main() {
18937  _finitel(0);
18938 ; return 0; }
18939 EOF
18940 if { (eval echo configure:18941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18941   rm -rf conftest*
18942   glibcpp_cv_func__finitel_use=yes
18943 else
18944   echo "configure: failed program was:" >&5
18945   cat conftest.$ac_ext >&5
18946   rm -rf conftest*
18947   glibcpp_cv_func__finitel_use=no
18948 fi
18949 rm -f conftest*
18950       ac_ext=c
18951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18952 ac_cpp='$CPP $CPPFLAGS'
18953 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18954 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18955 cross_compiling=$ac_cv_prog_cc_cross
18956
18957     
18958 fi
18959
18960   fi
18961   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
18962
18963     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
18964       for ac_func in _finitel
18965 do
18966 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18967 echo "configure:18968: checking for $ac_func" >&5
18968 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18969   echo $ac_n "(cached) $ac_c" 1>&6
18970 else
18971   cat > conftest.$ac_ext <<EOF
18972 #line 18973 "configure"
18973 #include "confdefs.h"
18974 /* System header to define __stub macros and hopefully few prototypes,
18975     which can conflict with char $ac_func(); below.  */
18976 #include <assert.h>
18977 /* Override any gcc2 internal prototype to avoid an error.  */
18978 /* We use char because int might match the return type of a gcc2
18979     builtin and then its argument prototype would still apply.  */
18980 char $ac_func();
18981
18982 int main() {
18983
18984 /* The GNU C library defines this for functions which it implements
18985     to always fail with ENOSYS.  Some functions are actually named
18986     something starting with __ and the normal name is an alias.  */
18987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18988 choke me
18989 #else
18990 $ac_func();
18991 #endif
18992
18993 ; return 0; }
18994 EOF
18995 if { (eval echo configure:18996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18996   rm -rf conftest*
18997   eval "ac_cv_func_$ac_func=yes"
18998 else
18999   echo "configure: failed program was:" >&5
19000   cat conftest.$ac_ext >&5
19001   rm -rf conftest*
19002   eval "ac_cv_func_$ac_func=no"
19003 fi
19004 rm -f conftest*
19005 fi
19006
19007 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19008   echo "$ac_t""yes" 1>&6
19009     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19010   cat >> confdefs.h <<EOF
19011 #define $ac_tr_func 1
19012 EOF
19013  
19014 else
19015   echo "$ac_t""no" 1>&6
19016 fi
19017 done
19018     
19019     fi
19020   fi
19021
19022
19023         
19024     
19025   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
19026 echo "configure:19027: checking for _float trig functions" >&5
19027   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
19028   echo $ac_n "(cached) $ac_c" 1>&6
19029 else
19030   
19031     
19032     ac_ext=C
19033 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19034 ac_cpp='$CXXCPP $CPPFLAGS'
19035 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19036 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19037 cross_compiling=$ac_cv_prog_cxx_cross
19038
19039     cat > conftest.$ac_ext <<EOF
19040 #line 19041 "configure"
19041 #include "confdefs.h"
19042 #include <math.h>
19043 int main() {
19044  `for x in _acosf _asinf _atanf \
19045                                           _cosf _sinf _tanf \
19046                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
19047 ; return 0; }
19048 EOF
19049 if { (eval echo configure:19050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19050   rm -rf conftest*
19051   glibcpp_cv_func__float_trig_use=yes
19052 else
19053   echo "configure: failed program was:" >&5
19054   cat conftest.$ac_ext >&5
19055   rm -rf conftest*
19056   glibcpp_cv_func__float_trig_use=no
19057 fi
19058 rm -f conftest*
19059     ac_ext=c
19060 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19061 ac_cpp='$CPP $CPPFLAGS'
19062 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19063 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19064 cross_compiling=$ac_cv_prog_cc_cross
19065
19066 fi
19067
19068   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
19069   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
19070     for ac_func in _acosf _asinf _atanf \
19071                                           _cosf _sinf _tanf \
19072                                           _coshf _sinhf _tanhf
19073 do
19074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19075 echo "configure:19076: checking for $ac_func" >&5
19076 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19077   echo $ac_n "(cached) $ac_c" 1>&6
19078 else
19079   cat > conftest.$ac_ext <<EOF
19080 #line 19081 "configure"
19081 #include "confdefs.h"
19082 /* System header to define __stub macros and hopefully few prototypes,
19083     which can conflict with char $ac_func(); below.  */
19084 #include <assert.h>
19085 /* Override any gcc2 internal prototype to avoid an error.  */
19086 /* We use char because int might match the return type of a gcc2
19087     builtin and then its argument prototype would still apply.  */
19088 char $ac_func();
19089
19090 int main() {
19091
19092 /* The GNU C library defines this for functions which it implements
19093     to always fail with ENOSYS.  Some functions are actually named
19094     something starting with __ and the normal name is an alias.  */
19095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19096 choke me
19097 #else
19098 $ac_func();
19099 #endif
19100
19101 ; return 0; }
19102 EOF
19103 if { (eval echo configure:19104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19104   rm -rf conftest*
19105   eval "ac_cv_func_$ac_func=yes"
19106 else
19107   echo "configure: failed program was:" >&5
19108   cat conftest.$ac_ext >&5
19109   rm -rf conftest*
19110   eval "ac_cv_func_$ac_func=no"
19111 fi
19112 rm -f conftest*
19113 fi
19114
19115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19116   echo "$ac_t""yes" 1>&6
19117     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19118   cat >> confdefs.h <<EOF
19119 #define $ac_tr_func 1
19120 EOF
19121  
19122 else
19123   echo "$ac_t""no" 1>&6
19124 fi
19125 done
19126
19127   fi
19128
19129   
19130   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
19131 echo "configure:19132: checking for _float round functions" >&5
19132   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
19133   echo $ac_n "(cached) $ac_c" 1>&6
19134 else
19135   
19136     
19137     ac_ext=C
19138 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19139 ac_cpp='$CXXCPP $CPPFLAGS'
19140 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19141 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19142 cross_compiling=$ac_cv_prog_cxx_cross
19143
19144     cat > conftest.$ac_ext <<EOF
19145 #line 19146 "configure"
19146 #include "confdefs.h"
19147 #include <math.h>
19148 int main() {
19149  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
19150 ; return 0; }
19151 EOF
19152 if { (eval echo configure:19153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19153   rm -rf conftest*
19154   glibcpp_cv_func__float_round_use=yes
19155 else
19156   echo "configure: failed program was:" >&5
19157   cat conftest.$ac_ext >&5
19158   rm -rf conftest*
19159   glibcpp_cv_func__float_round_use=no
19160 fi
19161 rm -f conftest*
19162     ac_ext=c
19163 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19164 ac_cpp='$CPP $CPPFLAGS'
19165 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19166 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19167 cross_compiling=$ac_cv_prog_cc_cross
19168
19169 fi
19170
19171   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
19172   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
19173     for ac_func in _ceilf _floorf
19174 do
19175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19176 echo "configure:19177: checking for $ac_func" >&5
19177 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19178   echo $ac_n "(cached) $ac_c" 1>&6
19179 else
19180   cat > conftest.$ac_ext <<EOF
19181 #line 19182 "configure"
19182 #include "confdefs.h"
19183 /* System header to define __stub macros and hopefully few prototypes,
19184     which can conflict with char $ac_func(); below.  */
19185 #include <assert.h>
19186 /* Override any gcc2 internal prototype to avoid an error.  */
19187 /* We use char because int might match the return type of a gcc2
19188     builtin and then its argument prototype would still apply.  */
19189 char $ac_func();
19190
19191 int main() {
19192
19193 /* The GNU C library defines this for functions which it implements
19194     to always fail with ENOSYS.  Some functions are actually named
19195     something starting with __ and the normal name is an alias.  */
19196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19197 choke me
19198 #else
19199 $ac_func();
19200 #endif
19201
19202 ; return 0; }
19203 EOF
19204 if { (eval echo configure:19205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19205   rm -rf conftest*
19206   eval "ac_cv_func_$ac_func=yes"
19207 else
19208   echo "configure: failed program was:" >&5
19209   cat conftest.$ac_ext >&5
19210   rm -rf conftest*
19211   eval "ac_cv_func_$ac_func=no"
19212 fi
19213 rm -f conftest*
19214 fi
19215
19216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19217   echo "$ac_t""yes" 1>&6
19218     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19219   cat >> confdefs.h <<EOF
19220 #define $ac_tr_func 1
19221 EOF
19222  
19223 else
19224   echo "$ac_t""no" 1>&6
19225 fi
19226 done
19227
19228   fi
19229
19230
19231     
19232   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
19233 echo "configure:19234: checking for _long double trig functions" >&5
19234   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
19235   echo $ac_n "(cached) $ac_c" 1>&6
19236 else
19237   
19238     
19239     ac_ext=C
19240 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19241 ac_cpp='$CXXCPP $CPPFLAGS'
19242 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19243 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19244 cross_compiling=$ac_cv_prog_cxx_cross
19245
19246     cat > conftest.$ac_ext <<EOF
19247 #line 19248 "configure"
19248 #include "confdefs.h"
19249 #include <math.h>
19250 int main() {
19251  `for x in _acosl _asinl _atanl \
19252                                           _cosl _sinl _tanl \
19253                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
19254 ; return 0; }
19255 EOF
19256 if { (eval echo configure:19257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19257   rm -rf conftest*
19258   glibcpp_cv_func__long_double_trig_use=yes
19259 else
19260   echo "configure: failed program was:" >&5
19261   cat conftest.$ac_ext >&5
19262   rm -rf conftest*
19263   glibcpp_cv_func__long_double_trig_use=no
19264 fi
19265 rm -f conftest*
19266     ac_ext=c
19267 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19268 ac_cpp='$CPP $CPPFLAGS'
19269 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19270 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19271 cross_compiling=$ac_cv_prog_cc_cross
19272
19273 fi
19274
19275   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
19276   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
19277     for ac_func in _acosl _asinl _atanl \
19278                                           _cosl _sinl _tanl \
19279                                           _coshl _sinhl _tanhl
19280 do
19281 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19282 echo "configure:19283: checking for $ac_func" >&5
19283 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19284   echo $ac_n "(cached) $ac_c" 1>&6
19285 else
19286   cat > conftest.$ac_ext <<EOF
19287 #line 19288 "configure"
19288 #include "confdefs.h"
19289 /* System header to define __stub macros and hopefully few prototypes,
19290     which can conflict with char $ac_func(); below.  */
19291 #include <assert.h>
19292 /* Override any gcc2 internal prototype to avoid an error.  */
19293 /* We use char because int might match the return type of a gcc2
19294     builtin and then its argument prototype would still apply.  */
19295 char $ac_func();
19296
19297 int main() {
19298
19299 /* The GNU C library defines this for functions which it implements
19300     to always fail with ENOSYS.  Some functions are actually named
19301     something starting with __ and the normal name is an alias.  */
19302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19303 choke me
19304 #else
19305 $ac_func();
19306 #endif
19307
19308 ; return 0; }
19309 EOF
19310 if { (eval echo configure:19311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19311   rm -rf conftest*
19312   eval "ac_cv_func_$ac_func=yes"
19313 else
19314   echo "configure: failed program was:" >&5
19315   cat conftest.$ac_ext >&5
19316   rm -rf conftest*
19317   eval "ac_cv_func_$ac_func=no"
19318 fi
19319 rm -f conftest*
19320 fi
19321
19322 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19323   echo "$ac_t""yes" 1>&6
19324     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19325   cat >> confdefs.h <<EOF
19326 #define $ac_tr_func 1
19327 EOF
19328  
19329 else
19330   echo "$ac_t""no" 1>&6
19331 fi
19332 done
19333
19334   fi
19335
19336   
19337   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
19338 echo "configure:19339: checking for _long double round functions" >&5
19339   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
19340   echo $ac_n "(cached) $ac_c" 1>&6
19341 else
19342   
19343     
19344     ac_ext=C
19345 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19346 ac_cpp='$CXXCPP $CPPFLAGS'
19347 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19348 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19349 cross_compiling=$ac_cv_prog_cxx_cross
19350
19351     cat > conftest.$ac_ext <<EOF
19352 #line 19353 "configure"
19353 #include "confdefs.h"
19354 #include <math.h>
19355 int main() {
19356  `for x in _ceill _floorl; do echo "$x (0);"; done` 
19357 ; return 0; }
19358 EOF
19359 if { (eval echo configure:19360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19360   rm -rf conftest*
19361   glibcpp_cv_func__long_double_round_use=yes
19362 else
19363   echo "configure: failed program was:" >&5
19364   cat conftest.$ac_ext >&5
19365   rm -rf conftest*
19366   glibcpp_cv_func__long_double_round_use=no
19367 fi
19368 rm -f conftest*
19369     ac_ext=c
19370 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19371 ac_cpp='$CPP $CPPFLAGS'
19372 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19373 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19374 cross_compiling=$ac_cv_prog_cc_cross
19375
19376 fi
19377
19378   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
19379   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
19380     for ac_func in _ceill _floorl
19381 do
19382 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19383 echo "configure:19384: checking for $ac_func" >&5
19384 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19385   echo $ac_n "(cached) $ac_c" 1>&6
19386 else
19387   cat > conftest.$ac_ext <<EOF
19388 #line 19389 "configure"
19389 #include "confdefs.h"
19390 /* System header to define __stub macros and hopefully few prototypes,
19391     which can conflict with char $ac_func(); below.  */
19392 #include <assert.h>
19393 /* Override any gcc2 internal prototype to avoid an error.  */
19394 /* We use char because int might match the return type of a gcc2
19395     builtin and then its argument prototype would still apply.  */
19396 char $ac_func();
19397
19398 int main() {
19399
19400 /* The GNU C library defines this for functions which it implements
19401     to always fail with ENOSYS.  Some functions are actually named
19402     something starting with __ and the normal name is an alias.  */
19403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19404 choke me
19405 #else
19406 $ac_func();
19407 #endif
19408
19409 ; return 0; }
19410 EOF
19411 if { (eval echo configure:19412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19412   rm -rf conftest*
19413   eval "ac_cv_func_$ac_func=yes"
19414 else
19415   echo "configure: failed program was:" >&5
19416   cat conftest.$ac_ext >&5
19417   rm -rf conftest*
19418   eval "ac_cv_func_$ac_func=no"
19419 fi
19420 rm -f conftest*
19421 fi
19422
19423 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19424   echo "$ac_t""yes" 1>&6
19425     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19426   cat >> confdefs.h <<EOF
19427 #define $ac_tr_func 1
19428 EOF
19429  
19430 else
19431   echo "$ac_t""no" 1>&6
19432 fi
19433 done
19434
19435   fi
19436
19437
19438   LIBS="$ac_save_LIBS"
19439   CXXFLAGS="$ac_save_CXXFLAGS"
19440
19441   
19442     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
19443 echo "configure:19444: checking for main in -lm" >&5
19444 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
19445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19446   echo $ac_n "(cached) $ac_c" 1>&6
19447 else
19448   ac_save_LIBS="$LIBS"
19449 LIBS="-lm  $LIBS"
19450 cat > conftest.$ac_ext <<EOF
19451 #line 19452 "configure"
19452 #include "confdefs.h"
19453
19454 int main() {
19455 main()
19456 ; return 0; }
19457 EOF
19458 if { (eval echo configure:19459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19459   rm -rf conftest*
19460   eval "ac_cv_lib_$ac_lib_var=yes"
19461 else
19462   echo "configure: failed program was:" >&5
19463   cat conftest.$ac_ext >&5
19464   rm -rf conftest*
19465   eval "ac_cv_lib_$ac_lib_var=no"
19466 fi
19467 rm -f conftest*
19468 LIBS="$ac_save_LIBS"
19469
19470 fi
19471 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19472   echo "$ac_t""yes" 1>&6
19473     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
19474     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
19475   cat >> confdefs.h <<EOF
19476 #define $ac_tr_lib 1
19477 EOF
19478
19479   LIBS="-lm $LIBS"
19480
19481 else
19482   echo "$ac_t""no" 1>&6
19483 fi
19484
19485   for ac_func in nan copysignf
19486 do
19487 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19488 echo "configure:19489: checking for $ac_func" >&5
19489 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19490   echo $ac_n "(cached) $ac_c" 1>&6
19491 else
19492   cat > conftest.$ac_ext <<EOF
19493 #line 19494 "configure"
19494 #include "confdefs.h"
19495 /* System header to define __stub macros and hopefully few prototypes,
19496     which can conflict with char $ac_func(); below.  */
19497 #include <assert.h>
19498 /* Override any gcc2 internal prototype to avoid an error.  */
19499 /* We use char because int might match the return type of a gcc2
19500     builtin and then its argument prototype would still apply.  */
19501 char $ac_func();
19502
19503 int main() {
19504
19505 /* The GNU C library defines this for functions which it implements
19506     to always fail with ENOSYS.  Some functions are actually named
19507     something starting with __ and the normal name is an alias.  */
19508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19509 choke me
19510 #else
19511 $ac_func();
19512 #endif
19513
19514 ; return 0; }
19515 EOF
19516 if { (eval echo configure:19517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19517   rm -rf conftest*
19518   eval "ac_cv_func_$ac_func=yes"
19519 else
19520   echo "configure: failed program was:" >&5
19521   cat conftest.$ac_ext >&5
19522   rm -rf conftest*
19523   eval "ac_cv_func_$ac_func=no"
19524 fi
19525 rm -f conftest*
19526 fi
19527
19528 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19529   echo "$ac_t""yes" 1>&6
19530     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19531   cat >> confdefs.h <<EOF
19532 #define $ac_tr_func 1
19533 EOF
19534  
19535 else
19536   echo "$ac_t""no" 1>&6
19537 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
19538 fi
19539 done
19540
19541
19542     for ac_func in __signbit
19543 do
19544 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19545 echo "configure:19546: checking for $ac_func" >&5
19546 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19547   echo $ac_n "(cached) $ac_c" 1>&6
19548 else
19549   cat > conftest.$ac_ext <<EOF
19550 #line 19551 "configure"
19551 #include "confdefs.h"
19552 /* System header to define __stub macros and hopefully few prototypes,
19553     which can conflict with char $ac_func(); below.  */
19554 #include <assert.h>
19555 /* Override any gcc2 internal prototype to avoid an error.  */
19556 /* We use char because int might match the return type of a gcc2
19557     builtin and then its argument prototype would still apply.  */
19558 char $ac_func();
19559
19560 int main() {
19561
19562 /* The GNU C library defines this for functions which it implements
19563     to always fail with ENOSYS.  Some functions are actually named
19564     something starting with __ and the normal name is an alias.  */
19565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19566 choke me
19567 #else
19568 $ac_func();
19569 #endif
19570
19571 ; return 0; }
19572 EOF
19573 if { (eval echo configure:19574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19574   rm -rf conftest*
19575   eval "ac_cv_func_$ac_func=yes"
19576 else
19577   echo "configure: failed program was:" >&5
19578   cat conftest.$ac_ext >&5
19579   rm -rf conftest*
19580   eval "ac_cv_func_$ac_func=no"
19581 fi
19582 rm -f conftest*
19583 fi
19584
19585 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19586   echo "$ac_t""yes" 1>&6
19587     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19588   cat >> confdefs.h <<EOF
19589 #define $ac_tr_func 1
19590 EOF
19591  
19592 else
19593   echo "$ac_t""no" 1>&6
19594 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
19595 fi
19596 done
19597
19598   for ac_func in __signbitf
19599 do
19600 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19601 echo "configure:19602: checking for $ac_func" >&5
19602 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19603   echo $ac_n "(cached) $ac_c" 1>&6
19604 else
19605   cat > conftest.$ac_ext <<EOF
19606 #line 19607 "configure"
19607 #include "confdefs.h"
19608 /* System header to define __stub macros and hopefully few prototypes,
19609     which can conflict with char $ac_func(); below.  */
19610 #include <assert.h>
19611 /* Override any gcc2 internal prototype to avoid an error.  */
19612 /* We use char because int might match the return type of a gcc2
19613     builtin and then its argument prototype would still apply.  */
19614 char $ac_func();
19615
19616 int main() {
19617
19618 /* The GNU C library defines this for functions which it implements
19619     to always fail with ENOSYS.  Some functions are actually named
19620     something starting with __ and the normal name is an alias.  */
19621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19622 choke me
19623 #else
19624 $ac_func();
19625 #endif
19626
19627 ; return 0; }
19628 EOF
19629 if { (eval echo configure:19630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19630   rm -rf conftest*
19631   eval "ac_cv_func_$ac_func=yes"
19632 else
19633   echo "configure: failed program was:" >&5
19634   cat conftest.$ac_ext >&5
19635   rm -rf conftest*
19636   eval "ac_cv_func_$ac_func=no"
19637 fi
19638 rm -f conftest*
19639 fi
19640
19641 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19642   echo "$ac_t""yes" 1>&6
19643     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19644   cat >> confdefs.h <<EOF
19645 #define $ac_tr_func 1
19646 EOF
19647  
19648 else
19649   echo "$ac_t""no" 1>&6
19650 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
19651 fi
19652 done
19653
19654
19655           if test x$ac_cv_func_copysignl = x"yes"; then
19656     for ac_func in __signbitl
19657 do
19658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19659 echo "configure:19660: checking for $ac_func" >&5
19660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19661   echo $ac_n "(cached) $ac_c" 1>&6
19662 else
19663   cat > conftest.$ac_ext <<EOF
19664 #line 19665 "configure"
19665 #include "confdefs.h"
19666 /* System header to define __stub macros and hopefully few prototypes,
19667     which can conflict with char $ac_func(); below.  */
19668 #include <assert.h>
19669 /* Override any gcc2 internal prototype to avoid an error.  */
19670 /* We use char because int might match the return type of a gcc2
19671     builtin and then its argument prototype would still apply.  */
19672 char $ac_func();
19673
19674 int main() {
19675
19676 /* The GNU C library defines this for functions which it implements
19677     to always fail with ENOSYS.  Some functions are actually named
19678     something starting with __ and the normal name is an alias.  */
19679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19680 choke me
19681 #else
19682 $ac_func();
19683 #endif
19684
19685 ; return 0; }
19686 EOF
19687 if { (eval echo configure:19688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19688   rm -rf conftest*
19689   eval "ac_cv_func_$ac_func=yes"
19690 else
19691   echo "configure: failed program was:" >&5
19692   cat conftest.$ac_ext >&5
19693   rm -rf conftest*
19694   eval "ac_cv_func_$ac_func=no"
19695 fi
19696 rm -f conftest*
19697 fi
19698
19699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19700   echo "$ac_t""yes" 1>&6
19701     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19702   cat >> confdefs.h <<EOF
19703 #define $ac_tr_func 1
19704 EOF
19705  
19706 else
19707   echo "$ac_t""no" 1>&6
19708 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
19709 fi
19710 done
19711
19712   fi
19713
19714   
19715
19716   
19717
19718       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
19719 echo "configure:19720: checking for mbstate_t" >&5
19720   cat > conftest.$ac_ext <<EOF
19721 #line 19722 "configure"
19722 #include "confdefs.h"
19723 #include <wchar.h>
19724 int main() {
19725 mbstate_t teststate;
19726 ; return 0; }
19727 EOF
19728 if { (eval echo configure:19729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19729   rm -rf conftest*
19730   have_mbstate_t=yes
19731 else
19732   echo "configure: failed program was:" >&5
19733   cat conftest.$ac_ext >&5
19734   rm -rf conftest*
19735   have_mbstate_t=no
19736 fi
19737 rm -f conftest*
19738   echo "$ac_t""$have_mbstate_t" 1>&6
19739   if test x"$have_mbstate_t" = xyes; then
19740     cat >> confdefs.h <<\EOF
19741 #define HAVE_MBSTATE_T 1
19742 EOF
19743
19744   fi
19745
19746     for ac_hdr in wchar.h
19747 do
19748 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19749 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19750 echo "configure:19751: checking for $ac_hdr" >&5
19751 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19752   echo $ac_n "(cached) $ac_c" 1>&6
19753 else
19754   cat > conftest.$ac_ext <<EOF
19755 #line 19756 "configure"
19756 #include "confdefs.h"
19757 #include <$ac_hdr>
19758 EOF
19759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19760 { (eval echo configure:19761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19762 if test -z "$ac_err"; then
19763   rm -rf conftest*
19764   eval "ac_cv_header_$ac_safe=yes"
19765 else
19766   echo "$ac_err" >&5
19767   echo "configure: failed program was:" >&5
19768   cat conftest.$ac_ext >&5
19769   rm -rf conftest*
19770   eval "ac_cv_header_$ac_safe=no"
19771 fi
19772 rm -f conftest*
19773 fi
19774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19775   echo "$ac_t""yes" 1>&6
19776     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19777   cat >> confdefs.h <<EOF
19778 #define $ac_tr_hdr 1
19779 EOF
19780  ac_has_wchar_h=yes
19781 else
19782   echo "$ac_t""no" 1>&6
19783 ac_has_wchar_h=no
19784 fi
19785 done
19786
19787   for ac_hdr in wctype.h
19788 do
19789 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19790 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19791 echo "configure:19792: checking for $ac_hdr" >&5
19792 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19793   echo $ac_n "(cached) $ac_c" 1>&6
19794 else
19795   cat > conftest.$ac_ext <<EOF
19796 #line 19797 "configure"
19797 #include "confdefs.h"
19798 #include <$ac_hdr>
19799 EOF
19800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19801 { (eval echo configure:19802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19803 if test -z "$ac_err"; then
19804   rm -rf conftest*
19805   eval "ac_cv_header_$ac_safe=yes"
19806 else
19807   echo "$ac_err" >&5
19808   echo "configure: failed program was:" >&5
19809   cat conftest.$ac_ext >&5
19810   rm -rf conftest*
19811   eval "ac_cv_header_$ac_safe=no"
19812 fi
19813 rm -f conftest*
19814 fi
19815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19816   echo "$ac_t""yes" 1>&6
19817     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19818   cat >> confdefs.h <<EOF
19819 #define $ac_tr_hdr 1
19820 EOF
19821  ac_has_wctype_h=yes
19822 else
19823   echo "$ac_t""no" 1>&6
19824 ac_has_wctype_h=no
19825 fi
19826 done
19827
19828   
19829     if test x"$ac_has_wchar_h" = xyes &&
19830      test x"$ac_has_wctype_h" = xyes &&
19831      test x"$enable_c_mbchar" != xno; then
19832       
19833             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
19834 echo "configure:19835: checking for WCHAR_MIN and WCHAR_MAX" >&5
19835     cat > conftest.$ac_ext <<EOF
19836 #line 19837 "configure"
19837 #include "confdefs.h"
19838 #include <wchar.h>
19839 int main() {
19840 int i = WCHAR_MIN; int j = WCHAR_MAX;
19841 ; return 0; }
19842 EOF
19843 if { (eval echo configure:19844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19844   rm -rf conftest*
19845   has_wchar_minmax=yes
19846 else
19847   echo "configure: failed program was:" >&5
19848   cat conftest.$ac_ext >&5
19849   rm -rf conftest*
19850   has_wchar_minmax=no
19851 fi
19852 rm -f conftest*
19853     echo "$ac_t""$has_wchar_minmax" 1>&6
19854     
19855             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
19856 echo "configure:19857: checking for WEOF" >&5
19857     cat > conftest.$ac_ext <<EOF
19858 #line 19859 "configure"
19859 #include "confdefs.h"
19860
19861       #include <wchar.h>
19862       #include <stddef.h>
19863 int main() {
19864 wint_t i = WEOF;
19865 ; return 0; }
19866 EOF
19867 if { (eval echo configure:19868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19868   rm -rf conftest*
19869   has_weof=yes
19870 else
19871   echo "configure: failed program was:" >&5
19872   cat conftest.$ac_ext >&5
19873   rm -rf conftest*
19874   has_weof=no
19875 fi
19876 rm -f conftest*
19877     echo "$ac_t""$has_weof" 1>&6
19878   
19879         ac_wfuncs=yes
19880     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
19881 do
19882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19883 echo "configure:19884: checking for $ac_func" >&5
19884 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19885   echo $ac_n "(cached) $ac_c" 1>&6
19886 else
19887   cat > conftest.$ac_ext <<EOF
19888 #line 19889 "configure"
19889 #include "confdefs.h"
19890 /* System header to define __stub macros and hopefully few prototypes,
19891     which can conflict with char $ac_func(); below.  */
19892 #include <assert.h>
19893 /* Override any gcc2 internal prototype to avoid an error.  */
19894 /* We use char because int might match the return type of a gcc2
19895     builtin and then its argument prototype would still apply.  */
19896 char $ac_func();
19897
19898 int main() {
19899
19900 /* The GNU C library defines this for functions which it implements
19901     to always fail with ENOSYS.  Some functions are actually named
19902     something starting with __ and the normal name is an alias.  */
19903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19904 choke me
19905 #else
19906 $ac_func();
19907 #endif
19908
19909 ; return 0; }
19910 EOF
19911 if { (eval echo configure:19912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19912   rm -rf conftest*
19913   eval "ac_cv_func_$ac_func=yes"
19914 else
19915   echo "configure: failed program was:" >&5
19916   cat conftest.$ac_ext >&5
19917   rm -rf conftest*
19918   eval "ac_cv_func_$ac_func=no"
19919 fi
19920 rm -f conftest*
19921 fi
19922
19923 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19924   echo "$ac_t""yes" 1>&6
19925     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19926   cat >> confdefs.h <<EOF
19927 #define $ac_tr_func 1
19928 EOF
19929  
19930 else
19931   echo "$ac_t""no" 1>&6
19932 \
19933     ac_wfuncs=no
19934 fi
19935 done
19936
19937   
19938         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
19939     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
19940     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
19941     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
19942     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
19943     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
19944 do
19945 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19946 echo "configure:19947: checking for $ac_func" >&5
19947 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19948   echo $ac_n "(cached) $ac_c" 1>&6
19949 else
19950   cat > conftest.$ac_ext <<EOF
19951 #line 19952 "configure"
19952 #include "confdefs.h"
19953 /* System header to define __stub macros and hopefully few prototypes,
19954     which can conflict with char $ac_func(); below.  */
19955 #include <assert.h>
19956 /* Override any gcc2 internal prototype to avoid an error.  */
19957 /* We use char because int might match the return type of a gcc2
19958     builtin and then its argument prototype would still apply.  */
19959 char $ac_func();
19960
19961 int main() {
19962
19963 /* The GNU C library defines this for functions which it implements
19964     to always fail with ENOSYS.  Some functions are actually named
19965     something starting with __ and the normal name is an alias.  */
19966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19967 choke me
19968 #else
19969 $ac_func();
19970 #endif
19971
19972 ; return 0; }
19973 EOF
19974 if { (eval echo configure:19975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19975   rm -rf conftest*
19976   eval "ac_cv_func_$ac_func=yes"
19977 else
19978   echo "configure: failed program was:" >&5
19979   cat conftest.$ac_ext >&5
19980   rm -rf conftest*
19981   eval "ac_cv_func_$ac_func=no"
19982 fi
19983 rm -f conftest*
19984 fi
19985
19986 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19987   echo "$ac_t""yes" 1>&6
19988     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19989   cat >> confdefs.h <<EOF
19990 #define $ac_tr_func 1
19991 EOF
19992  
19993 else
19994   echo "$ac_t""no" 1>&6
19995 \
19996     ac_wfuncs=no
19997 fi
19998 done
19999
20000
20001     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
20002 echo "configure:20003: checking for ISO C99 wchar_t support" >&5
20003     if test x"$has_weof" = xyes &&
20004        test x"$has_wchar_minmax" = xyes &&
20005        test x"$ac_wfuncs" = xyes; then
20006       ac_isoC99_wchar_t=yes
20007     else
20008       ac_isoC99_wchar_t=no
20009     fi
20010     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
20011   
20012             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
20013 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
20014 echo "configure:20015: checking for iconv.h" >&5
20015 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20016   echo $ac_n "(cached) $ac_c" 1>&6
20017 else
20018   cat > conftest.$ac_ext <<EOF
20019 #line 20020 "configure"
20020 #include "confdefs.h"
20021 #include <iconv.h>
20022 EOF
20023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20024 { (eval echo configure:20025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20026 if test -z "$ac_err"; then
20027   rm -rf conftest*
20028   eval "ac_cv_header_$ac_safe=yes"
20029 else
20030   echo "$ac_err" >&5
20031   echo "configure: failed program was:" >&5
20032   cat conftest.$ac_ext >&5
20033   rm -rf conftest*
20034   eval "ac_cv_header_$ac_safe=no"
20035 fi
20036 rm -f conftest*
20037 fi
20038 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20039   echo "$ac_t""yes" 1>&6
20040   ac_has_iconv_h=yes
20041 else
20042   echo "$ac_t""no" 1>&6
20043 ac_has_iconv_h=no
20044 fi
20045
20046     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
20047 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
20048 echo "configure:20049: checking for langinfo.h" >&5
20049 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20050   echo $ac_n "(cached) $ac_c" 1>&6
20051 else
20052   cat > conftest.$ac_ext <<EOF
20053 #line 20054 "configure"
20054 #include "confdefs.h"
20055 #include <langinfo.h>
20056 EOF
20057 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20058 { (eval echo configure:20059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20059 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20060 if test -z "$ac_err"; then
20061   rm -rf conftest*
20062   eval "ac_cv_header_$ac_safe=yes"
20063 else
20064   echo "$ac_err" >&5
20065   echo "configure: failed program was:" >&5
20066   cat conftest.$ac_ext >&5
20067   rm -rf conftest*
20068   eval "ac_cv_header_$ac_safe=no"
20069 fi
20070 rm -f conftest*
20071 fi
20072 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20073   echo "$ac_t""yes" 1>&6
20074   ac_has_langinfo_h=yes
20075 else
20076   echo "$ac_t""no" 1>&6
20077 ac_has_langinfo_h=no
20078 fi
20079
20080
20081         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
20082 echo "configure:20083: checking for iconv in -liconv" >&5
20083 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
20084 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20085   echo $ac_n "(cached) $ac_c" 1>&6
20086 else
20087   ac_save_LIBS="$LIBS"
20088 LIBS="-liconv  $LIBS"
20089 cat > conftest.$ac_ext <<EOF
20090 #line 20091 "configure"
20091 #include "confdefs.h"
20092 /* Override any gcc2 internal prototype to avoid an error.  */
20093 /* We use char because int might match the return type of a gcc2
20094     builtin and then its argument prototype would still apply.  */
20095 char iconv();
20096
20097 int main() {
20098 iconv()
20099 ; return 0; }
20100 EOF
20101 if { (eval echo configure:20102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20102   rm -rf conftest*
20103   eval "ac_cv_lib_$ac_lib_var=yes"
20104 else
20105   echo "configure: failed program was:" >&5
20106   cat conftest.$ac_ext >&5
20107   rm -rf conftest*
20108   eval "ac_cv_lib_$ac_lib_var=no"
20109 fi
20110 rm -f conftest*
20111 LIBS="$ac_save_LIBS"
20112
20113 fi
20114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20115   echo "$ac_t""yes" 1>&6
20116   libiconv="-liconv"
20117 else
20118   echo "$ac_t""no" 1>&6
20119 fi
20120
20121     ac_save_LIBS="$LIBS"
20122     LIBS="$LIBS $libiconv"
20123
20124     for ac_func in iconv_open iconv_close iconv nl_langinfo
20125 do
20126 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20127 echo "configure:20128: checking for $ac_func" >&5
20128 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20129   echo $ac_n "(cached) $ac_c" 1>&6
20130 else
20131   cat > conftest.$ac_ext <<EOF
20132 #line 20133 "configure"
20133 #include "confdefs.h"
20134 /* System header to define __stub macros and hopefully few prototypes,
20135     which can conflict with char $ac_func(); below.  */
20136 #include <assert.h>
20137 /* Override any gcc2 internal prototype to avoid an error.  */
20138 /* We use char because int might match the return type of a gcc2
20139     builtin and then its argument prototype would still apply.  */
20140 char $ac_func();
20141
20142 int main() {
20143
20144 /* The GNU C library defines this for functions which it implements
20145     to always fail with ENOSYS.  Some functions are actually named
20146     something starting with __ and the normal name is an alias.  */
20147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20148 choke me
20149 #else
20150 $ac_func();
20151 #endif
20152
20153 ; return 0; }
20154 EOF
20155 if { (eval echo configure:20156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20156   rm -rf conftest*
20157   eval "ac_cv_func_$ac_func=yes"
20158 else
20159   echo "configure: failed program was:" >&5
20160   cat conftest.$ac_ext >&5
20161   rm -rf conftest*
20162   eval "ac_cv_func_$ac_func=no"
20163 fi
20164 rm -f conftest*
20165 fi
20166
20167 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20168   echo "$ac_t""yes" 1>&6
20169     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20170   cat >> confdefs.h <<EOF
20171 #define $ac_tr_func 1
20172 EOF
20173  \
20174     ac_XPG2funcs=yes
20175 else
20176   echo "$ac_t""no" 1>&6
20177 ac_XPG2funcs=no
20178 fi
20179 done
20180
20181   
20182     LIBS="$ac_save_LIBS"
20183
20184     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
20185 echo "configure:20186: checking for XPG2 wchar_t support" >&5
20186     if test x"$ac_has_iconv_h" = xyes &&
20187        test x"$ac_has_langinfo_h" = xyes &&
20188        test x"$ac_XPG2funcs" = xyes; then
20189       ac_XPG2_wchar_t=yes
20190     else
20191       ac_XPG2_wchar_t=no
20192     fi
20193     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
20194   
20195             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
20196 echo "configure:20197: checking for enabled wchar_t specializations" >&5
20197     if test x"$ac_isoC99_wchar_t" = xyes &&
20198        test x"$ac_XPG2_wchar_t" = xyes; then
20199       cat >> confdefs.h <<\EOF
20200 #define _GLIBCPP_USE_WCHAR_T 1
20201 EOF
20202
20203       echo "$ac_t"""yes"" 1>&6
20204     else
20205       echo "$ac_t"""no"" 1>&6
20206     fi
20207   else
20208         echo "configure: warning: wchar_t support disabled." 1>&2
20209   fi
20210
20211   
20212   ac_test_CXXFLAGS="${CXXFLAGS+set}"
20213   ac_save_CXXFLAGS="$CXXFLAGS"
20214   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
20215
20216   
20217   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
20218 echo "configure:20219: checking for strtold declaration" >&5
20219   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
20220     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
20221   echo $ac_n "(cached) $ac_c" 1>&6
20222 else
20223   
20224       
20225       ac_ext=C
20226 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20227 ac_cpp='$CXXCPP $CPPFLAGS'
20228 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20229 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20230 cross_compiling=$ac_cv_prog_cxx_cross
20231
20232       cat > conftest.$ac_ext <<EOF
20233 #line 20234 "configure"
20234 #include "confdefs.h"
20235 #include <stdlib.h>
20236 int main() {
20237  strtold(0, 0);
20238 ; return 0; }
20239 EOF
20240 if { (eval echo configure:20241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20241   rm -rf conftest*
20242   glibcpp_cv_func_strtold_use=yes
20243 else
20244   echo "configure: failed program was:" >&5
20245   cat conftest.$ac_ext >&5
20246   rm -rf conftest*
20247   glibcpp_cv_func_strtold_use=no
20248 fi
20249 rm -f conftest*
20250       ac_ext=c
20251 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20252 ac_cpp='$CPP $CPPFLAGS'
20253 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20254 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20255 cross_compiling=$ac_cv_prog_cc_cross
20256
20257     
20258 fi
20259
20260   fi
20261   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
20262   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
20263     for ac_func in strtold
20264 do
20265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20266 echo "configure:20267: checking for $ac_func" >&5
20267 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20268   echo $ac_n "(cached) $ac_c" 1>&6
20269 else
20270   cat > conftest.$ac_ext <<EOF
20271 #line 20272 "configure"
20272 #include "confdefs.h"
20273 /* System header to define __stub macros and hopefully few prototypes,
20274     which can conflict with char $ac_func(); below.  */
20275 #include <assert.h>
20276 /* Override any gcc2 internal prototype to avoid an error.  */
20277 /* We use char because int might match the return type of a gcc2
20278     builtin and then its argument prototype would still apply.  */
20279 char $ac_func();
20280
20281 int main() {
20282
20283 /* The GNU C library defines this for functions which it implements
20284     to always fail with ENOSYS.  Some functions are actually named
20285     something starting with __ and the normal name is an alias.  */
20286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20287 choke me
20288 #else
20289 $ac_func();
20290 #endif
20291
20292 ; return 0; }
20293 EOF
20294 if { (eval echo configure:20295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20295   rm -rf conftest*
20296   eval "ac_cv_func_$ac_func=yes"
20297 else
20298   echo "configure: failed program was:" >&5
20299   cat conftest.$ac_ext >&5
20300   rm -rf conftest*
20301   eval "ac_cv_func_$ac_func=no"
20302 fi
20303 rm -f conftest*
20304 fi
20305
20306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20307   echo "$ac_t""yes" 1>&6
20308     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20309   cat >> confdefs.h <<EOF
20310 #define $ac_tr_func 1
20311 EOF
20312  
20313 else
20314   echo "$ac_t""no" 1>&6
20315 fi
20316 done
20317     
20318   fi
20319
20320   
20321   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
20322 echo "configure:20323: checking for strtof declaration" >&5
20323   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
20324     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
20325   echo $ac_n "(cached) $ac_c" 1>&6
20326 else
20327   
20328       
20329       ac_ext=C
20330 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20331 ac_cpp='$CXXCPP $CPPFLAGS'
20332 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20333 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20334 cross_compiling=$ac_cv_prog_cxx_cross
20335
20336       cat > conftest.$ac_ext <<EOF
20337 #line 20338 "configure"
20338 #include "confdefs.h"
20339 #include <stdlib.h>
20340 int main() {
20341  strtof(0, 0);
20342 ; return 0; }
20343 EOF
20344 if { (eval echo configure:20345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20345   rm -rf conftest*
20346   glibcpp_cv_func_strtof_use=yes
20347 else
20348   echo "configure: failed program was:" >&5
20349   cat conftest.$ac_ext >&5
20350   rm -rf conftest*
20351   glibcpp_cv_func_strtof_use=no
20352 fi
20353 rm -f conftest*
20354       ac_ext=c
20355 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20356 ac_cpp='$CPP $CPPFLAGS'
20357 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20358 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20359 cross_compiling=$ac_cv_prog_cc_cross
20360
20361     
20362 fi
20363
20364   fi
20365   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
20366   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
20367     for ac_func in strtof
20368 do
20369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20370 echo "configure:20371: checking for $ac_func" >&5
20371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20372   echo $ac_n "(cached) $ac_c" 1>&6
20373 else
20374   cat > conftest.$ac_ext <<EOF
20375 #line 20376 "configure"
20376 #include "confdefs.h"
20377 /* System header to define __stub macros and hopefully few prototypes,
20378     which can conflict with char $ac_func(); below.  */
20379 #include <assert.h>
20380 /* Override any gcc2 internal prototype to avoid an error.  */
20381 /* We use char because int might match the return type of a gcc2
20382     builtin and then its argument prototype would still apply.  */
20383 char $ac_func();
20384
20385 int main() {
20386
20387 /* The GNU C library defines this for functions which it implements
20388     to always fail with ENOSYS.  Some functions are actually named
20389     something starting with __ and the normal name is an alias.  */
20390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20391 choke me
20392 #else
20393 $ac_func();
20394 #endif
20395
20396 ; return 0; }
20397 EOF
20398 if { (eval echo configure:20399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20399   rm -rf conftest*
20400   eval "ac_cv_func_$ac_func=yes"
20401 else
20402   echo "configure: failed program was:" >&5
20403   cat conftest.$ac_ext >&5
20404   rm -rf conftest*
20405   eval "ac_cv_func_$ac_func=no"
20406 fi
20407 rm -f conftest*
20408 fi
20409
20410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20411   echo "$ac_t""yes" 1>&6
20412     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20413   cat >> confdefs.h <<EOF
20414 #define $ac_tr_func 1
20415 EOF
20416  
20417 else
20418   echo "$ac_t""no" 1>&6
20419 fi
20420 done
20421     
20422   fi
20423
20424   for ac_func in drand48
20425 do
20426 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20427 echo "configure:20428: checking for $ac_func" >&5
20428 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20429   echo $ac_n "(cached) $ac_c" 1>&6
20430 else
20431   cat > conftest.$ac_ext <<EOF
20432 #line 20433 "configure"
20433 #include "confdefs.h"
20434 /* System header to define __stub macros and hopefully few prototypes,
20435     which can conflict with char $ac_func(); below.  */
20436 #include <assert.h>
20437 /* Override any gcc2 internal prototype to avoid an error.  */
20438 /* We use char because int might match the return type of a gcc2
20439     builtin and then its argument prototype would still apply.  */
20440 char $ac_func();
20441
20442 int main() {
20443
20444 /* The GNU C library defines this for functions which it implements
20445     to always fail with ENOSYS.  Some functions are actually named
20446     something starting with __ and the normal name is an alias.  */
20447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20448 choke me
20449 #else
20450 $ac_func();
20451 #endif
20452
20453 ; return 0; }
20454 EOF
20455 if { (eval echo configure:20456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20456   rm -rf conftest*
20457   eval "ac_cv_func_$ac_func=yes"
20458 else
20459   echo "configure: failed program was:" >&5
20460   cat conftest.$ac_ext >&5
20461   rm -rf conftest*
20462   eval "ac_cv_func_$ac_func=no"
20463 fi
20464 rm -f conftest*
20465 fi
20466
20467 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20468   echo "$ac_t""yes" 1>&6
20469     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20470   cat >> confdefs.h <<EOF
20471 #define $ac_tr_func 1
20472 EOF
20473  
20474 else
20475   echo "$ac_t""no" 1>&6
20476 fi
20477 done
20478
20479
20480   CXXFLAGS="$ac_save_CXXFLAGS"
20481
20482   
20483   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
20484 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
20485 echo "configure:20486: checking for locale.h" >&5
20486 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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 #include <locale.h>
20493 EOF
20494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20495 { (eval echo configure:20496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20497 if test -z "$ac_err"; then
20498   rm -rf conftest*
20499   eval "ac_cv_header_$ac_safe=yes"
20500 else
20501   echo "$ac_err" >&5
20502   echo "configure: failed program was:" >&5
20503   cat conftest.$ac_ext >&5
20504   rm -rf conftest*
20505   eval "ac_cv_header_$ac_safe=no"
20506 fi
20507 rm -f conftest*
20508 fi
20509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20510   echo "$ac_t""yes" 1>&6
20511   
20512     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
20513 echo "configure:20514: checking for LC_MESSAGES" >&5
20514 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
20515   echo $ac_n "(cached) $ac_c" 1>&6
20516 else
20517   cat > conftest.$ac_ext <<EOF
20518 #line 20519 "configure"
20519 #include "confdefs.h"
20520 #include <locale.h>
20521 int main() {
20522 return LC_MESSAGES
20523 ; return 0; }
20524 EOF
20525 if { (eval echo configure:20526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20526   rm -rf conftest*
20527   ac_cv_val_LC_MESSAGES=yes
20528 else
20529   echo "configure: failed program was:" >&5
20530   cat conftest.$ac_ext >&5
20531   rm -rf conftest*
20532   ac_cv_val_LC_MESSAGES=no
20533 fi
20534 rm -f conftest*
20535 fi
20536
20537 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
20538     if test $ac_cv_val_LC_MESSAGES = yes; then
20539       cat >> confdefs.h <<\EOF
20540 #define HAVE_LC_MESSAGES 1
20541 EOF
20542
20543     fi
20544   
20545 else
20546   echo "$ac_t""no" 1>&6
20547 fi
20548
20549
20550
20551   cat > conftest.$ac_ext <<EOF
20552 #line 20553 "configure"
20553 #include "confdefs.h"
20554
20555   #include <setjmp.h>
20556   
20557 int main() {
20558 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
20559 ; return 0; }
20560 EOF
20561 if { (eval echo configure:20562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20562   rm -rf conftest*
20563   cat >> confdefs.h <<\EOF
20564 #define HAVE_SIGSETJMP 1
20565 EOF
20566
20567   
20568 else
20569   echo "configure: failed program was:" >&5
20570   cat conftest.$ac_ext >&5
20571 fi
20572 rm -f conftest*
20573
20574   for ac_hdr in unistd.h
20575 do
20576 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20577 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20578 echo "configure:20579: checking for $ac_hdr" >&5
20579 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20580   echo $ac_n "(cached) $ac_c" 1>&6
20581 else
20582   cat > conftest.$ac_ext <<EOF
20583 #line 20584 "configure"
20584 #include "confdefs.h"
20585 #include <$ac_hdr>
20586 EOF
20587 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20588 { (eval echo configure:20589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20589 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20590 if test -z "$ac_err"; then
20591   rm -rf conftest*
20592   eval "ac_cv_header_$ac_safe=yes"
20593 else
20594   echo "$ac_err" >&5
20595   echo "configure: failed program was:" >&5
20596   cat conftest.$ac_ext >&5
20597   rm -rf conftest*
20598   eval "ac_cv_header_$ac_safe=no"
20599 fi
20600 rm -f conftest*
20601 fi
20602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20603   echo "$ac_t""yes" 1>&6
20604     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20605   cat >> confdefs.h <<EOF
20606 #define $ac_tr_hdr 1
20607 EOF
20608  
20609 else
20610   echo "$ac_t""no" 1>&6
20611 fi
20612 done
20613
20614 for ac_func in getpagesize
20615 do
20616 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20617 echo "configure:20618: checking for $ac_func" >&5
20618 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20619   echo $ac_n "(cached) $ac_c" 1>&6
20620 else
20621   cat > conftest.$ac_ext <<EOF
20622 #line 20623 "configure"
20623 #include "confdefs.h"
20624 /* System header to define __stub macros and hopefully few prototypes,
20625     which can conflict with char $ac_func(); below.  */
20626 #include <assert.h>
20627 /* Override any gcc2 internal prototype to avoid an error.  */
20628 /* We use char because int might match the return type of a gcc2
20629     builtin and then its argument prototype would still apply.  */
20630 char $ac_func();
20631
20632 int main() {
20633
20634 /* The GNU C library defines this for functions which it implements
20635     to always fail with ENOSYS.  Some functions are actually named
20636     something starting with __ and the normal name is an alias.  */
20637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20638 choke me
20639 #else
20640 $ac_func();
20641 #endif
20642
20643 ; return 0; }
20644 EOF
20645 if { (eval echo configure:20646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20646   rm -rf conftest*
20647   eval "ac_cv_func_$ac_func=yes"
20648 else
20649   echo "configure: failed program was:" >&5
20650   cat conftest.$ac_ext >&5
20651   rm -rf conftest*
20652   eval "ac_cv_func_$ac_func=no"
20653 fi
20654 rm -f conftest*
20655 fi
20656
20657 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20658   echo "$ac_t""yes" 1>&6
20659     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20660   cat >> confdefs.h <<EOF
20661 #define $ac_tr_func 1
20662 EOF
20663  
20664 else
20665   echo "$ac_t""no" 1>&6
20666 fi
20667 done
20668
20669 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
20670 echo "configure:20671: checking for working mmap" >&5
20671 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
20672   echo $ac_n "(cached) $ac_c" 1>&6
20673 else
20674   if test "$cross_compiling" = yes; then
20675   ac_cv_func_mmap_fixed_mapped=no
20676 else
20677   cat > conftest.$ac_ext <<EOF
20678 #line 20679 "configure"
20679 #include "confdefs.h"
20680
20681 /* Thanks to Mike Haertel and Jim Avera for this test.
20682    Here is a matrix of mmap possibilities:
20683         mmap private not fixed
20684         mmap private fixed at somewhere currently unmapped
20685         mmap private fixed at somewhere already mapped
20686         mmap shared not fixed
20687         mmap shared fixed at somewhere currently unmapped
20688         mmap shared fixed at somewhere already mapped
20689    For private mappings, we should verify that changes cannot be read()
20690    back from the file, nor mmap's back from the file at a different
20691    address.  (There have been systems where private was not correctly
20692    implemented like the infamous i386 svr4.0, and systems where the
20693    VM page cache was not coherent with the filesystem buffer cache
20694    like early versions of FreeBSD and possibly contemporary NetBSD.)
20695    For shared mappings, we should conversely verify that changes get
20696    propogated back to all the places they're supposed to be.
20697
20698    Grep wants private fixed already mapped.
20699    The main things grep needs to know about mmap are:
20700    * does it exist and is it safe to write into the mmap'd area
20701    * how to use it (BSD variants)  */
20702 #include <sys/types.h>
20703 #include <fcntl.h>
20704 #include <sys/mman.h>
20705
20706 /* This mess was copied from the GNU getpagesize.h.  */
20707 #ifndef HAVE_GETPAGESIZE
20708 # ifdef HAVE_UNISTD_H
20709 #  include <unistd.h>
20710 # endif
20711
20712 /* Assume that all systems that can run configure have sys/param.h.  */
20713 # ifndef HAVE_SYS_PARAM_H
20714 #  define HAVE_SYS_PARAM_H 1
20715 # endif
20716
20717 # ifdef _SC_PAGESIZE
20718 #  define getpagesize() sysconf(_SC_PAGESIZE)
20719 # else /* no _SC_PAGESIZE */
20720 #  ifdef HAVE_SYS_PARAM_H
20721 #   include <sys/param.h>
20722 #   ifdef EXEC_PAGESIZE
20723 #    define getpagesize() EXEC_PAGESIZE
20724 #   else /* no EXEC_PAGESIZE */
20725 #    ifdef NBPG
20726 #     define getpagesize() NBPG * CLSIZE
20727 #     ifndef CLSIZE
20728 #      define CLSIZE 1
20729 #     endif /* no CLSIZE */
20730 #    else /* no NBPG */
20731 #     ifdef NBPC
20732 #      define getpagesize() NBPC
20733 #     else /* no NBPC */
20734 #      ifdef PAGESIZE
20735 #       define getpagesize() PAGESIZE
20736 #      endif /* PAGESIZE */
20737 #     endif /* no NBPC */
20738 #    endif /* no NBPG */
20739 #   endif /* no EXEC_PAGESIZE */
20740 #  else /* no HAVE_SYS_PARAM_H */
20741 #   define getpagesize() 8192   /* punt totally */
20742 #  endif /* no HAVE_SYS_PARAM_H */
20743 # endif /* no _SC_PAGESIZE */
20744
20745 #endif /* no HAVE_GETPAGESIZE */
20746
20747 #ifdef __cplusplus
20748 extern "C" { void *malloc(unsigned); }
20749 #else
20750 char *malloc();
20751 #endif
20752
20753 int
20754 main()
20755 {
20756         char *data, *data2, *data3;
20757         int i, pagesize;
20758         int fd;
20759
20760         pagesize = getpagesize();
20761
20762         /*
20763          * First, make a file with some known garbage in it.
20764          */
20765         data = malloc(pagesize);
20766         if (!data)
20767                 exit(1);
20768         for (i = 0; i < pagesize; ++i)
20769                 *(data + i) = rand();
20770         umask(0);
20771         fd = creat("conftestmmap", 0600);
20772         if (fd < 0)
20773                 exit(1);
20774         if (write(fd, data, pagesize) != pagesize)
20775                 exit(1);
20776         close(fd);
20777
20778         /*
20779          * Next, try to mmap the file at a fixed address which
20780          * already has something else allocated at it.  If we can,
20781          * also make sure that we see the same garbage.
20782          */
20783         fd = open("conftestmmap", O_RDWR);
20784         if (fd < 0)
20785                 exit(1);
20786         data2 = malloc(2 * pagesize);
20787         if (!data2)
20788                 exit(1);
20789         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
20790         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
20791             MAP_PRIVATE | MAP_FIXED, fd, 0L))
20792                 exit(1);
20793         for (i = 0; i < pagesize; ++i)
20794                 if (*(data + i) != *(data2 + i))
20795                         exit(1);
20796
20797         /*
20798          * Finally, make sure that changes to the mapped area
20799          * do not percolate back to the file as seen by read().
20800          * (This is a bug on some variants of i386 svr4.0.)
20801          */
20802         for (i = 0; i < pagesize; ++i)
20803                 *(data2 + i) = *(data2 + i) + 1;
20804         data3 = malloc(pagesize);
20805         if (!data3)
20806                 exit(1);
20807         if (read(fd, data3, pagesize) != pagesize)
20808                 exit(1);
20809         for (i = 0; i < pagesize; ++i)
20810                 if (*(data + i) != *(data3 + i))
20811                         exit(1);
20812         close(fd);
20813         unlink("conftestmmap");
20814         exit(0);
20815 }
20816
20817 EOF
20818 if { (eval echo configure:20819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20819 then
20820   ac_cv_func_mmap_fixed_mapped=yes
20821 else
20822   echo "configure: failed program was:" >&5
20823   cat conftest.$ac_ext >&5
20824   rm -fr conftest*
20825   ac_cv_func_mmap_fixed_mapped=no
20826 fi
20827 rm -fr conftest*
20828 fi
20829
20830 fi
20831
20832 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
20833 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20834   cat >> confdefs.h <<\EOF
20835 #define HAVE_MMAP 1
20836 EOF
20837
20838 fi
20839
20840
20841   # Establish limits on memory usage during 'make check'
20842   
20843   
20844   setrlimit_have_headers=yes
20845   for ac_hdr in sys/resource.h unistd.h
20846 do
20847 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20848 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20849 echo "configure:20850: checking for $ac_hdr" >&5
20850 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20851   echo $ac_n "(cached) $ac_c" 1>&6
20852 else
20853   cat > conftest.$ac_ext <<EOF
20854 #line 20855 "configure"
20855 #include "confdefs.h"
20856 #include <$ac_hdr>
20857 EOF
20858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20859 { (eval echo configure:20860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20861 if test -z "$ac_err"; then
20862   rm -rf conftest*
20863   eval "ac_cv_header_$ac_safe=yes"
20864 else
20865   echo "$ac_err" >&5
20866   echo "configure: failed program was:" >&5
20867   cat conftest.$ac_ext >&5
20868   rm -rf conftest*
20869   eval "ac_cv_header_$ac_safe=no"
20870 fi
20871 rm -f conftest*
20872 fi
20873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20874   echo "$ac_t""yes" 1>&6
20875     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20876   cat >> confdefs.h <<EOF
20877 #define $ac_tr_hdr 1
20878 EOF
20879  
20880 else
20881   echo "$ac_t""no" 1>&6
20882 setrlimit_have_headers=no
20883 fi
20884 done
20885
20886   # If don't have the headers, then we can't run the tests now, and we
20887   # won't be seeing any of these during testsuite compilation.
20888   if test $setrlimit_have_headers = yes; then
20889     # Can't do these in a loop, else the resulting syntax is wrong.
20890     
20891   cat > conftest.$ac_ext <<EOF
20892 #line 20893 "configure"
20893 #include "confdefs.h"
20894 #include <sys/resource.h>
20895                   #include <unistd.h>
20896                  
20897 int main() {
20898  int f = RLIMIT_DATA ; 
20899 ; return 0; }
20900 EOF
20901 if { (eval echo configure:20902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20902   rm -rf conftest*
20903   glibcpp_mresult=1
20904 else
20905   echo "configure: failed program was:" >&5
20906   cat conftest.$ac_ext >&5
20907   rm -rf conftest*
20908   glibcpp_mresult=0
20909 fi
20910 rm -f conftest*
20911   cat >> confdefs.h <<EOF
20912 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
20913 EOF
20914
20915
20916     
20917   cat > conftest.$ac_ext <<EOF
20918 #line 20919 "configure"
20919 #include "confdefs.h"
20920 #include <sys/resource.h>
20921                   #include <unistd.h>
20922                  
20923 int main() {
20924  int f = RLIMIT_RSS ; 
20925 ; return 0; }
20926 EOF
20927 if { (eval echo configure:20928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20928   rm -rf conftest*
20929   glibcpp_mresult=1
20930 else
20931   echo "configure: failed program was:" >&5
20932   cat conftest.$ac_ext >&5
20933   rm -rf conftest*
20934   glibcpp_mresult=0
20935 fi
20936 rm -f conftest*
20937   cat >> confdefs.h <<EOF
20938 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
20939 EOF
20940
20941
20942     
20943   cat > conftest.$ac_ext <<EOF
20944 #line 20945 "configure"
20945 #include "confdefs.h"
20946 #include <sys/resource.h>
20947                   #include <unistd.h>
20948                  
20949 int main() {
20950  int f = RLIMIT_VMEM ; 
20951 ; return 0; }
20952 EOF
20953 if { (eval echo configure:20954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20954   rm -rf conftest*
20955   glibcpp_mresult=1
20956 else
20957   echo "configure: failed program was:" >&5
20958   cat conftest.$ac_ext >&5
20959   rm -rf conftest*
20960   glibcpp_mresult=0
20961 fi
20962 rm -f conftest*
20963   cat >> confdefs.h <<EOF
20964 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
20965 EOF
20966
20967
20968     
20969   cat > conftest.$ac_ext <<EOF
20970 #line 20971 "configure"
20971 #include "confdefs.h"
20972 #include <sys/resource.h>
20973                   #include <unistd.h>
20974                  
20975 int main() {
20976  int f = RLIMIT_AS ; 
20977 ; return 0; }
20978 EOF
20979 if { (eval echo configure:20980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20980   rm -rf conftest*
20981   glibcpp_mresult=1
20982 else
20983   echo "configure: failed program was:" >&5
20984   cat conftest.$ac_ext >&5
20985   rm -rf conftest*
20986   glibcpp_mresult=0
20987 fi
20988 rm -f conftest*
20989   cat >> confdefs.h <<EOF
20990 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
20991 EOF
20992
20993
20994
20995     # Check for rlimit, setrlimit.
20996     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
20997   echo $ac_n "(cached) $ac_c" 1>&6
20998 else
20999   
21000       cat > conftest.$ac_ext <<EOF
21001 #line 21002 "configure"
21002 #include "confdefs.h"
21003 #include <sys/resource.h>
21004                       #include <unistd.h>
21005                      
21006 int main() {
21007  struct rlimit r; setrlimit(0, &r);
21008 ; return 0; }
21009 EOF
21010 if { (eval echo configure:21011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21011   rm -rf conftest*
21012   ac_setrlimit=yes
21013 else
21014   echo "configure: failed program was:" >&5
21015   cat conftest.$ac_ext >&5
21016   rm -rf conftest*
21017   ac_setrlimit=no
21018 fi
21019 rm -f conftest*
21020     
21021 fi
21022
21023   fi
21024
21025   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
21026 echo "configure:21027: checking for testsuite memory limit support" >&5
21027   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
21028     ac_mem_limits=yes
21029     cat >> confdefs.h <<\EOF
21030 #define _GLIBCPP_MEM_LIMITS 1
21031 EOF
21032
21033   else
21034     ac_mem_limits=no
21035   fi
21036   echo "$ac_t""$ac_mem_limits" 1>&6
21037
21038
21039   # Look for setenv, so that extended locale tests can be performed.
21040   
21041   echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
21042 echo "configure:21043: checking for setenv declaration" >&5
21043   if test x${glibcpp_cv_func_setenv_use+set} != xset; then
21044     if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
21045   echo $ac_n "(cached) $ac_c" 1>&6
21046 else
21047   
21048       
21049       ac_ext=C
21050 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21051 ac_cpp='$CXXCPP $CPPFLAGS'
21052 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21053 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21054 cross_compiling=$ac_cv_prog_cxx_cross
21055
21056       cat > conftest.$ac_ext <<EOF
21057 #line 21058 "configure"
21058 #include "confdefs.h"
21059 #include <stdlib.h>
21060 int main() {
21061  setenv(0, 0, 0);
21062 ; return 0; }
21063 EOF
21064 if { (eval echo configure:21065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21065   rm -rf conftest*
21066   glibcpp_cv_func_setenv_use=yes
21067 else
21068   echo "configure: failed program was:" >&5
21069   cat conftest.$ac_ext >&5
21070   rm -rf conftest*
21071   glibcpp_cv_func_setenv_use=no
21072 fi
21073 rm -f conftest*
21074       ac_ext=c
21075 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21076 ac_cpp='$CPP $CPPFLAGS'
21077 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21078 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21079 cross_compiling=$ac_cv_prog_cc_cross
21080
21081     
21082 fi
21083
21084   fi
21085   echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
21086   if test x$glibcpp_cv_func_setenv_use = x"yes"; then
21087     for ac_func in setenv
21088 do
21089 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21090 echo "configure:21091: checking for $ac_func" >&5
21091 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21092   echo $ac_n "(cached) $ac_c" 1>&6
21093 else
21094   cat > conftest.$ac_ext <<EOF
21095 #line 21096 "configure"
21096 #include "confdefs.h"
21097 /* System header to define __stub macros and hopefully few prototypes,
21098     which can conflict with char $ac_func(); below.  */
21099 #include <assert.h>
21100 /* Override any gcc2 internal prototype to avoid an error.  */
21101 /* We use char because int might match the return type of a gcc2
21102     builtin and then its argument prototype would still apply.  */
21103 char $ac_func();
21104
21105 int main() {
21106
21107 /* The GNU C library defines this for functions which it implements
21108     to always fail with ENOSYS.  Some functions are actually named
21109     something starting with __ and the normal name is an alias.  */
21110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21111 choke me
21112 #else
21113 $ac_func();
21114 #endif
21115
21116 ; return 0; }
21117 EOF
21118 if { (eval echo configure:21119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21119   rm -rf conftest*
21120   eval "ac_cv_func_$ac_func=yes"
21121 else
21122   echo "configure: failed program was:" >&5
21123   cat conftest.$ac_ext >&5
21124   rm -rf conftest*
21125   eval "ac_cv_func_$ac_func=no"
21126 fi
21127 rm -f conftest*
21128 fi
21129
21130 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21131   echo "$ac_t""yes" 1>&6
21132     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21133   cat >> confdefs.h <<EOF
21134 #define $ac_tr_func 1
21135 EOF
21136  
21137 else
21138   echo "$ac_t""no" 1>&6
21139 fi
21140 done
21141     
21142   fi
21143
21144
21145 fi
21146
21147 # This depends on the possibly-skipped linker test above.
21148 # Check whether --enable-symvers or --disable-symvers was given.
21149 if test "${enable_symvers+set}" = set; then
21150   enableval="$enable_symvers"
21151   case "$enableval" in
21152  yes) enable_symvers=yes ;;
21153  no)  enable_symvers=no ;;
21154  # other names here, just as sanity checks
21155  #gnu|sun|etcetera) enable_symvers=$enableval ;;
21156  gnu) enable_symvers=$enableval ;;
21157  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
21158  esac
21159 else
21160   enable_symvers=yes
21161 fi
21162
21163 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
21164 # don't know enough about $LD to do tricks... 
21165 if test x$enable_shared = xno || 
21166         test x$LD = x || 
21167         test x$glibcpp_gnu_ld_version = x; then
21168   enable_symvers=no
21169 fi
21170
21171 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
21172 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
21173 echo "configure:21174: checking for shared libgcc" >&5
21174 ac_save_CFLAGS="$CFLAGS"
21175 CFLAGS=' -lgcc_s'
21176 cat > conftest.$ac_ext <<EOF
21177 #line 21178 "configure"
21178 #include "confdefs.h"
21179
21180 int main() {
21181 return 0
21182 ; return 0; }
21183 EOF
21184 if { (eval echo configure:21185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21185   rm -rf conftest*
21186   glibcpp_shared_libgcc=yes
21187 else
21188   echo "configure: failed program was:" >&5
21189   cat conftest.$ac_ext >&5
21190   rm -rf conftest*
21191   glibcpp_shared_libgcc=no
21192 fi
21193 rm -f conftest*
21194 CFLAGS="$ac_save_CFLAGS"
21195 echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
21196
21197 # For GNU ld, we need at least this version.  It's 2.12 in the same format
21198 # as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
21199 glibcpp_min_gnu_ld_version=21200
21200
21201 # Check to see if unspecified "yes" value can win, given results
21202 # above.  
21203 if test $enable_symvers = yes ; then
21204   if test $with_gnu_ld = yes &&
21205     test $glibcpp_shared_libgcc = yes ;
21206   then
21207     if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
21208         enable_symvers=gnu
21209     else
21210       ac_test_CFLAGS="${CFLAGS+set}"
21211       ac_save_CFLAGS="$CFLAGS"
21212       CFLAGS='-shared -Wl,--version-script,conftest.map'
21213       enable_symvers=no
21214       
21215       echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
21216       
21217       cat > conftest.$ac_ext <<EOF
21218 #line 21219 "configure"
21219 #include "confdefs.h"
21220 int foo;
21221 int main() {
21222
21223 ; return 0; }
21224 EOF
21225 if { (eval echo configure:21226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21226   rm -rf conftest*
21227   enable_symvers=gnu
21228 else
21229   echo "configure: failed program was:" >&5
21230   cat conftest.$ac_ext >&5
21231 fi
21232 rm -f conftest*
21233       if test "$ac_test_CFLAGS" = set; then
21234         CFLAGS="$ac_save_CFLAGS"
21235       else
21236         # this is the suspicious part
21237         CFLAGS=''
21238       fi
21239       rm -f conftest.map
21240     fi
21241   else
21242     # just fail for now
21243     enable_symvers=no
21244   fi
21245 fi
21246
21247 case $enable_symvers in
21248   no)
21249       LINKER_MAP=config/linker-map.dummy
21250       ;;
21251   gnu)
21252       LINKER_MAP=config/linker-map.gnu
21253       ;;
21254 esac
21255
21256
21257
21258
21259 if test $enable_symvers != no; then
21260   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
21261   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
21262 else
21263   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
21264   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
21265 fi
21266 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
21267 echo "configure:21268: checking versioning on shared library symbols" >&5
21268 echo "$ac_t""$enable_symvers" 1>&6
21269
21270
21271 # Propagate the target-specific source directories through the build chain.
21272 OS_INC_SRCDIR=$os_include_dir/bits
21273 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
21274 CPU_LIMITS_INC_SRCDIR=$CPULIMITSH/bits
21275
21276
21277
21278
21279 # Set up cross-compile flags
21280
21281
21282
21283 if test "$CANADIAN" = yes; then
21284   CANADIAN_TRUE=
21285   CANADIAN_FALSE='#'
21286 else
21287   CANADIAN_TRUE='#'
21288   CANADIAN_FALSE=
21289 fi
21290  
21291 cat > confcache <<\EOF
21292 # This file is a shell script that caches the results of configure
21293 # tests run on this system so they can be shared between configure
21294 # scripts and configure runs.  It is not useful on other systems.
21295 # If it contains results you don't want to keep, you may remove or edit it.
21296 #
21297 # By default, configure uses ./config.cache as the cache file,
21298 # creating it if it does not exist already.  You can give configure
21299 # the --cache-file=FILE option to use a different cache file; that is
21300 # what configure does when it calls configure scripts in
21301 # subdirectories, so they share the cache.
21302 # Giving --cache-file=/dev/null disables caching, for debugging configure.
21303 # config.status only pays attention to the cache file if you give it the
21304 # --recheck option to rerun configure.
21305 #
21306 EOF
21307 # The following way of writing the cache mishandles newlines in values,
21308 # but we know of no workaround that is simple, portable, and efficient.
21309 # So, don't put newlines in cache variables' values.
21310 # Ultrix sh set writes to stderr and can't be redirected directly,
21311 # and sets the high bit in the cache file unless we assign to the vars.
21312 (set) 2>&1 |
21313   case `(ac_space=' '; set | grep ac_space) 2>&1` in
21314   *ac_space=\ *)
21315     # `set' does not quote correctly, so add quotes (double-quote substitution
21316     # turns \\\\ into \\, and sed turns \\ into \).
21317     sed -n \
21318       -e "s/'/'\\\\''/g" \
21319       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
21320     ;;
21321   *)
21322     # `set' quotes correctly as required by POSIX, so do not add quotes.
21323     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
21324     ;;
21325   esac >> confcache
21326 if cmp -s $cache_file confcache; then
21327   :
21328 else
21329   if test -w $cache_file; then
21330     echo "updating cache $cache_file"
21331     cat confcache > $cache_file
21332   else
21333     echo "not updating unwritable cache $cache_file"
21334   fi
21335 fi
21336 rm -f confcache
21337
21338
21339 if test "${multilib}" = "yes"; then
21340   multilib_arg="--enable-multilib"
21341 else
21342   multilib_arg=
21343 fi
21344
21345 # Needed so that g++ can find the correct include subdir automatically.
21346 INTERFACE=v3
21347
21348 # Export all the install information
21349
21350 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
21351 # exported correctly in GLIBCPP_CONFIGURE.
21352 glibcpp_toolexecdir=no
21353 glibcpp_toolexeclibdir=no
21354 glibcpp_prefixdir=${prefix}
21355
21356 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
21357 echo "configure:21358: checking for interface version number" >&5
21358 libstdcxx_interface=$INTERFACE
21359 echo "$ac_t""$libstdcxx_interface" 1>&6
21360
21361 # Process the option --with-gxx-include-dir=<path to include-files directory>
21362 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
21363 echo "configure:21364: checking for --with-gxx-include-dir" >&5
21364 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
21365 if test "${with_gxx_include_dir+set}" = set; then
21366   withval="$with_gxx_include_dir"
21367   case "${withval}" in
21368   yes)
21369     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
21370     gxx_include_dir=no
21371     ;;
21372   no)
21373     gxx_include_dir=no
21374     ;;
21375   *)
21376     gxx_include_dir=${withval}
21377     ;;
21378 esac
21379 else
21380   gxx_include_dir=no
21381 fi
21382
21383 echo "$ac_t""$gxx_include_dir" 1>&6
21384
21385 # Process the option "--enable-version-specific-runtime-libs"
21386 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
21387 echo "configure:21388: checking for --enable-version-specific-runtime-libs" >&5
21388 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
21389 if test "${enable_version_specific_runtime_libs+set}" = set; then
21390   enableval="$enable_version_specific_runtime_libs"
21391   case "$enableval" in
21392  yes) version_specific_libs=yes ;;
21393  no)  version_specific_libs=no ;;
21394  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
21395  esac
21396 else
21397   version_specific_libs=no
21398 fi
21399 # Option set, now we can test it.
21400 echo "$ac_t""$version_specific_libs" 1>&6
21401
21402 if test $version_specific_libs = yes; then
21403   # Need the gcc compiler version to know where to install libraries
21404   # and header files if --enable-version-specific-runtime-libs option
21405   # is selected.
21406     gcc_version_trigger=${srcdir}/../gcc/version.c
21407   gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
21408   gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
21409   if test x"$gxx_include_dir" = x"no"; then
21410     gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
21411   fi
21412   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
21413   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
21414   fi
21415
21416 # Default case for install directory for include files.
21417 if test $version_specific_libs = no &&
21418    test $gxx_include_dir = no; then
21419   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
21420 fi
21421
21422 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
21423 # Install a library built with a cross compiler in tooldir, not libdir.
21424 if test x"$glibcpp_toolexecdir" = x"no"; then 
21425   if test -n "$with_cross_host" &&
21426      test x"$with_cross_host" != x"no"; then
21427     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
21428     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
21429   else
21430     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
21431     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
21432   fi
21433 fi
21434
21435 echo $ac_n "checking for install location""... $ac_c" 1>&6
21436 echo "configure:21437: checking for install location" >&5
21437 echo "$ac_t""$gxx_include_dir" 1>&6
21438
21439
21440
21441
21442
21443
21444
21445 # Export all the include and flag information to makefiles.
21446
21447   # Root level of the build directory include sources.
21448   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
21449
21450   # Passed down for canadian crosses.
21451   if test x"$CANADIAN" = xyes; then
21452     TOPLEVEL_INCLUDES='-I$(includedir)'
21453   fi
21454
21455   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
21456
21457   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
21458
21459   if test x"$need_libio" = xyes; then
21460     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
21461     
21462   fi
21463
21464   # Now, export this to all the little Makefiles....
21465   
21466   
21467   
21468   
21469
21470
21471   # Optimization flags that are probably a good idea for thrill-seekers. Just
21472   # uncomment the lines below and make, everything else is ready to go... 
21473   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
21474   OPTIMIZE_CXXFLAGS=
21475   
21476
21477   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
21478   
21479
21480
21481 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
21482    grep "enable shared" > /dev/null; then
21483   LIBSUPCXX_PICFLAGS=-prefer-pic
21484 else
21485   LIBSUPCXX_PICFLAGS=
21486 fi
21487
21488
21489 # Generate the various Makefiles, include files, and scripts.
21490 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
21491 # and libsupc++/Makefile.am so that multilib installs will end up
21492 # installed in the correct place. To work around this not being passed
21493 # down from config-ml.in -> top_srcdir/Makefile.am ->
21494 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
21495 trap '' 1 2 15
21496 cat > confcache <<\EOF
21497 # This file is a shell script that caches the results of configure
21498 # tests run on this system so they can be shared between configure
21499 # scripts and configure runs.  It is not useful on other systems.
21500 # If it contains results you don't want to keep, you may remove or edit it.
21501 #
21502 # By default, configure uses ./config.cache as the cache file,
21503 # creating it if it does not exist already.  You can give configure
21504 # the --cache-file=FILE option to use a different cache file; that is
21505 # what configure does when it calls configure scripts in
21506 # subdirectories, so they share the cache.
21507 # Giving --cache-file=/dev/null disables caching, for debugging configure.
21508 # config.status only pays attention to the cache file if you give it the
21509 # --recheck option to rerun configure.
21510 #
21511 EOF
21512 # The following way of writing the cache mishandles newlines in values,
21513 # but we know of no workaround that is simple, portable, and efficient.
21514 # So, don't put newlines in cache variables' values.
21515 # Ultrix sh set writes to stderr and can't be redirected directly,
21516 # and sets the high bit in the cache file unless we assign to the vars.
21517 (set) 2>&1 |
21518   case `(ac_space=' '; set | grep ac_space) 2>&1` in
21519   *ac_space=\ *)
21520     # `set' does not quote correctly, so add quotes (double-quote substitution
21521     # turns \\\\ into \\, and sed turns \\ into \).
21522     sed -n \
21523       -e "s/'/'\\\\''/g" \
21524       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
21525     ;;
21526   *)
21527     # `set' quotes correctly as required by POSIX, so do not add quotes.
21528     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
21529     ;;
21530   esac >> confcache
21531 if cmp -s $cache_file confcache; then
21532   :
21533 else
21534   if test -w $cache_file; then
21535     echo "updating cache $cache_file"
21536     cat confcache > $cache_file
21537   else
21538     echo "not updating unwritable cache $cache_file"
21539   fi
21540 fi
21541 rm -f confcache
21542
21543 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
21544
21545 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21546 # Let make expand exec_prefix.
21547 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21548
21549 # Any assignment to VPATH causes Sun make to only execute
21550 # the first set of double-colon rules, so remove it if not needed.
21551 # If there is a colon in the path, we need to keep it.
21552 if test "x$srcdir" = x.; then
21553   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
21554 fi
21555
21556 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
21557
21558 DEFS=-DHAVE_CONFIG_H
21559
21560 # Without the "./", some shells look in PATH for config.status.
21561 : ${CONFIG_STATUS=./config.status}
21562
21563 echo creating $CONFIG_STATUS
21564 rm -f $CONFIG_STATUS
21565 cat > $CONFIG_STATUS <<EOF
21566 #! /bin/sh
21567 # Generated automatically by configure.
21568 # Run this file to recreate the current configuration.
21569 # This directory was configured as follows,
21570 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21571 #
21572 # $0 $ac_configure_args
21573 #
21574 # Compiler output produced by configure, useful for debugging
21575 # configure, is in ./config.log if it exists.
21576
21577 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
21578 for ac_option
21579 do
21580   case "\$ac_option" in
21581   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21582     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
21583     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
21584   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
21585     echo "$CONFIG_STATUS generated by autoconf version 2.13"
21586     exit 0 ;;
21587   -help | --help | --hel | --he | --h)
21588     echo "\$ac_cs_usage"; exit 0 ;;
21589   *) echo "\$ac_cs_usage"; exit 1 ;;
21590   esac
21591 done
21592
21593 ac_given_srcdir=$srcdir
21594 ac_given_INSTALL="$INSTALL"
21595
21596 trap 'rm -fr `echo "Makefile \
21597     include/Makefile src/Makefile \
21598     libmath/Makefile libio/Makefile libsupc++/Makefile \
21599     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
21600 EOF
21601 cat >> $CONFIG_STATUS <<EOF
21602
21603 # Protect against being on the right side of a sed subst in config.status.
21604 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
21605  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
21606 $ac_vpsub
21607 $extrasub
21608 s%@SHELL@%$SHELL%g
21609 s%@CFLAGS@%$CFLAGS%g
21610 s%@CPPFLAGS@%$CPPFLAGS%g
21611 s%@CXXFLAGS@%$CXXFLAGS%g
21612 s%@FFLAGS@%$FFLAGS%g
21613 s%@DEFS@%$DEFS%g
21614 s%@LDFLAGS@%$LDFLAGS%g
21615 s%@LIBS@%$LIBS%g
21616 s%@exec_prefix@%$exec_prefix%g
21617 s%@prefix@%$prefix%g
21618 s%@program_transform_name@%$program_transform_name%g
21619 s%@bindir@%$bindir%g
21620 s%@sbindir@%$sbindir%g
21621 s%@libexecdir@%$libexecdir%g
21622 s%@datadir@%$datadir%g
21623 s%@sysconfdir@%$sysconfdir%g
21624 s%@sharedstatedir@%$sharedstatedir%g
21625 s%@localstatedir@%$localstatedir%g
21626 s%@libdir@%$libdir%g
21627 s%@includedir@%$includedir%g
21628 s%@oldincludedir@%$oldincludedir%g
21629 s%@infodir@%$infodir%g
21630 s%@mandir@%$mandir%g
21631 s%@PACKAGE@%$PACKAGE%g
21632 s%@release_VERSION@%$release_VERSION%g
21633 s%@libtool_VERSION@%$libtool_VERSION%g
21634 s%@host@%$host%g
21635 s%@host_alias@%$host_alias%g
21636 s%@host_cpu@%$host_cpu%g
21637 s%@host_vendor@%$host_vendor%g
21638 s%@host_os@%$host_os%g
21639 s%@target@%$target%g
21640 s%@target_alias@%$target_alias%g
21641 s%@target_cpu@%$target_cpu%g
21642 s%@target_vendor@%$target_vendor%g
21643 s%@target_os@%$target_os%g
21644 s%@build@%$build%g
21645 s%@build_alias@%$build_alias%g
21646 s%@build_cpu@%$build_cpu%g
21647 s%@build_vendor@%$build_vendor%g
21648 s%@build_os@%$build_os%g
21649 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
21650 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
21651 s%@INSTALL_DATA@%$INSTALL_DATA%g
21652 s%@VERSION@%$VERSION%g
21653 s%@ACLOCAL@%$ACLOCAL%g
21654 s%@AUTOCONF@%$AUTOCONF%g
21655 s%@AUTOMAKE@%$AUTOMAKE%g
21656 s%@AUTOHEADER@%$AUTOHEADER%g
21657 s%@MAKEINFO@%$MAKEINFO%g
21658 s%@SET_MAKE@%$SET_MAKE%g
21659 s%@toplevel_srcdir@%$toplevel_srcdir%g
21660 s%@glibcpp_builddir@%$glibcpp_builddir%g
21661 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
21662 s%@AWK@%$AWK%g
21663 s%@LN_S@%$LN_S%g
21664 s%@glibcpp_basedir@%$glibcpp_basedir%g
21665 s%@CC@%$CC%g
21666 s%@glibcpp_CXX@%$glibcpp_CXX%g
21667 s%@AS@%$AS%g
21668 s%@AR@%$AR%g
21669 s%@RANLIB@%$RANLIB%g
21670 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
21671 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
21672 s%@MAINT@%$MAINT%g
21673 s%@EXEEXT@%$EXEEXT%g
21674 s%@OBJEXT@%$OBJEXT%g
21675 s%@STRIP@%$STRIP%g
21676 s%@LIBTOOL@%$LIBTOOL%g
21677 s%@CXXCPP@%$CXXCPP%g
21678 s%@enable_shared@%$enable_shared%g
21679 s%@enable_static@%$enable_static%g
21680 s%@ifGNUmake@%$ifGNUmake%g
21681 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
21682 s%@CPP@%$CPP%g
21683 s%@CSTDIO_H@%$CSTDIO_H%g
21684 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
21685 s%@CCODECVT_C@%$CCODECVT_C%g
21686 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
21687 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
21688 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
21689 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
21690 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
21691 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
21692 s%@libio_la@%$libio_la%g
21693 s%@check_msgfmt@%$check_msgfmt%g
21694 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
21695 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
21696 s%@glibcpp_localedir@%$glibcpp_localedir%g
21697 s%@USE_NLS@%$USE_NLS%g
21698 s%@CLOCALE_H@%$CLOCALE_H%g
21699 s%@CCODECVT_H@%$CCODECVT_H%g
21700 s%@CMESSAGES_H@%$CMESSAGES_H%g
21701 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
21702 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
21703 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
21704 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
21705 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
21706 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
21707 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
21708 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
21709 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
21710 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
21711 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
21712 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
21713 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
21714 s%@WERROR@%$WERROR%g
21715 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
21716 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
21717 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
21718 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
21719 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
21720 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
21721 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
21722 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
21723 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
21724 s%@gxx_include_dir@%$gxx_include_dir%g
21725 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
21726 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
21727 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
21728 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
21729 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
21730 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
21731 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
21732 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
21733 s%@WARN_FLAGS@%$WARN_FLAGS%g
21734 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
21735
21736 CEOF
21737 EOF
21738
21739 cat >> $CONFIG_STATUS <<\EOF
21740
21741 # Split the substitutions into bite-sized pieces for seds with
21742 # small command number limits, like on Digital OSF/1 and HP-UX.
21743 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
21744 ac_file=1 # Number of current file.
21745 ac_beg=1 # First line for current file.
21746 ac_end=$ac_max_sed_cmds # Line after last line for current file.
21747 ac_more_lines=:
21748 ac_sed_cmds=""
21749 while $ac_more_lines; do
21750   if test $ac_beg -gt 1; then
21751     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
21752   else
21753     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
21754   fi
21755   if test ! -s conftest.s$ac_file; then
21756     ac_more_lines=false
21757     rm -f conftest.s$ac_file
21758   else
21759     if test -z "$ac_sed_cmds"; then
21760       ac_sed_cmds="sed -f conftest.s$ac_file"
21761     else
21762       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
21763     fi
21764     ac_file=`expr $ac_file + 1`
21765     ac_beg=$ac_end
21766     ac_end=`expr $ac_end + $ac_max_sed_cmds`
21767   fi
21768 done
21769 if test -z "$ac_sed_cmds"; then
21770   ac_sed_cmds=cat
21771 fi
21772 EOF
21773
21774 cat >> $CONFIG_STATUS <<EOF
21775
21776 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
21777     include/Makefile src/Makefile \
21778     libmath/Makefile libio/Makefile libsupc++/Makefile \
21779     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
21780 EOF
21781 cat >> $CONFIG_STATUS <<\EOF
21782 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
21783   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21784   case "$ac_file" in
21785   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21786        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21787   *) ac_file_in="${ac_file}.in" ;;
21788   esac
21789
21790   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
21791
21792   # Remove last slash and all that follows it.  Not all systems have dirname.
21793   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21794   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21795     # The file is in a subdirectory.
21796     test ! -d "$ac_dir" && mkdir "$ac_dir"
21797     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
21798     # A "../" for each directory in $ac_dir_suffix.
21799     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
21800   else
21801     ac_dir_suffix= ac_dots=
21802   fi
21803
21804   case "$ac_given_srcdir" in
21805   .)  srcdir=.
21806       if test -z "$ac_dots"; then top_srcdir=.
21807       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
21808   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
21809   *) # Relative path.
21810     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
21811     top_srcdir="$ac_dots$ac_given_srcdir" ;;
21812   esac
21813
21814   case "$ac_given_INSTALL" in
21815   [/$]*) INSTALL="$ac_given_INSTALL" ;;
21816   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21817   esac
21818
21819   echo creating "$ac_file"
21820   rm -f "$ac_file"
21821   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
21822   case "$ac_file" in
21823   *Makefile*) ac_comsub="1i\\
21824 # $configure_input" ;;
21825   *) ac_comsub= ;;
21826   esac
21827
21828   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21829   sed -e "$ac_comsub
21830 s%@configure_input@%$configure_input%g
21831 s%@srcdir@%$srcdir%g
21832 s%@top_srcdir@%$top_srcdir%g
21833 s%@INSTALL@%$INSTALL%g
21834 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
21835 fi; done
21836 rm -f conftest.s*
21837
21838 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21839 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21840 #
21841 # ac_d sets the value in "#define NAME VALUE" lines.
21842 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
21843 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
21844 ac_dC='\3'
21845 ac_dD='%g'
21846 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21847 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21848 ac_uB='\([      ]\)%\1#\2define\3'
21849 ac_uC=' '
21850 ac_uD='\4%g'
21851 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21852 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21853 ac_eB='$%\1#\2define\3'
21854 ac_eC=' '
21855 ac_eD='%g'
21856
21857 if test "${CONFIG_HEADERS+set}" != set; then
21858 EOF
21859 cat >> $CONFIG_STATUS <<EOF
21860   CONFIG_HEADERS="config.h"
21861 EOF
21862 cat >> $CONFIG_STATUS <<\EOF
21863 fi
21864 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
21865   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21866   case "$ac_file" in
21867   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21868        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21869   *) ac_file_in="${ac_file}.in" ;;
21870   esac
21871
21872   echo creating $ac_file
21873
21874   rm -f conftest.frag conftest.in conftest.out
21875   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21876   cat $ac_file_inputs > conftest.in
21877
21878 EOF
21879
21880 # Transform confdefs.h into a sed script conftest.vals that substitutes
21881 # the proper values into config.h.in to produce config.h.  And first:
21882 # Protect against being on the right side of a sed subst in config.status.
21883 # Protect against being in an unquoted here document in config.status.
21884 rm -f conftest.vals
21885 cat > conftest.hdr <<\EOF
21886 s/[\\&%]/\\&/g
21887 s%[\\$`]%\\&%g
21888 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21889 s%ac_d%ac_u%gp
21890 s%ac_u%ac_e%gp
21891 EOF
21892 sed -n -f conftest.hdr confdefs.h > conftest.vals
21893 rm -f conftest.hdr
21894
21895 # This sed command replaces #undef with comments.  This is necessary, for
21896 # example, in the case of _POSIX_SOURCE, which is predefined and required
21897 # on some systems where configure will not decide to define it.
21898 cat >> conftest.vals <<\EOF
21899 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
21900 EOF
21901
21902 # Break up conftest.vals because some shells have a limit on
21903 # the size of here documents, and old seds have small limits too.
21904
21905 rm -f conftest.tail
21906 while :
21907 do
21908   ac_lines=`grep -c . conftest.vals`
21909   # grep -c gives empty output for an empty file on some AIX systems.
21910   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21911   # Write a limited-size here document to conftest.frag.
21912   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21913   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
21914   echo 'CEOF
21915   sed -f conftest.frag conftest.in > conftest.out
21916   rm -f conftest.in
21917   mv conftest.out conftest.in
21918 ' >> $CONFIG_STATUS
21919   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21920   rm -f conftest.vals
21921   mv conftest.tail conftest.vals
21922 done
21923 rm -f conftest.vals
21924
21925 cat >> $CONFIG_STATUS <<\EOF
21926   rm -f conftest.frag conftest.h
21927   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
21928   cat conftest.in >> conftest.h
21929   rm -f conftest.in
21930   if cmp -s $ac_file conftest.h 2>/dev/null; then
21931     echo "$ac_file is unchanged"
21932     rm -f conftest.h
21933   else
21934     # Remove last slash and all that follows it.  Not all systems have dirname.
21935       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21936       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21937       # The file is in a subdirectory.
21938       test ! -d "$ac_dir" && mkdir "$ac_dir"
21939     fi
21940     rm -f $ac_file
21941     mv conftest.h $ac_file
21942   fi
21943 fi; done
21944
21945 EOF
21946
21947 cat >> $CONFIG_STATUS <<EOF
21948 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $LINKER_MAP"
21949 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"
21950 EOF
21951
21952 cat >> $CONFIG_STATUS <<\EOF
21953 srcdir=$ac_given_srcdir
21954 while test -n "$ac_sources"; do
21955   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21956   set $ac_sources; ac_source=$1; shift; ac_sources=$*
21957
21958   echo "linking $srcdir/$ac_source to $ac_dest"
21959
21960   if test ! -r $srcdir/$ac_source; then
21961     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
21962   fi
21963   rm -f $ac_dest
21964
21965   # Make relative symlinks.
21966   # Remove last slash and all that follows it.  Not all systems have dirname.
21967   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
21968   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
21969     # The dest file is in a subdirectory.
21970     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
21971     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
21972     # A "../" for each directory in $ac_dest_dir_suffix.
21973     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
21974   else
21975     ac_dest_dir_suffix= ac_dots=
21976   fi
21977
21978   case "$srcdir" in
21979   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
21980   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
21981   esac
21982
21983   # Make a symlink if possible; otherwise try a hard link.
21984   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
21985     ln $srcdir/$ac_source $ac_dest; then :
21986   else
21987     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
21988   fi
21989 done
21990 EOF
21991 cat >> $CONFIG_STATUS <<EOF
21992
21993 srcdir=${srcdir}
21994 host=${host}
21995 target=${target}
21996 with_multisubdir=${with_multisubdir}
21997 ac_configure_args="${multilib_arg} ${ac_configure_args}"
21998 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
21999 glibcpp_basedir=${glibcpp_basedir}
22000 CC="${CC}"
22001 CXX="${CXX}"
22002
22003 EOF
22004 cat >> $CONFIG_STATUS <<\EOF
22005 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
22006 if test -n "$CONFIG_FILES"; then
22007   LD="${ORIGINAL_LD_FOR_MULTILIBS}"
22008   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
22009   grep '^MULTISUBDIR =' Makefile >> src/Makefile
22010   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
22011 fi
22012 chmod +x mkcheck
22013 chmod +x testsuite_flags
22014
22015 exit 0
22016 EOF
22017 chmod +x $CONFIG_STATUS
22018 rm -fr confdefs* $ac_clean_files
22019 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
22020
22021
22022
22023 # Sanity checking & User-visible messages.
22024 # Checks down here, otherwise they get scrolled off before
22025 # the user will notice.
22026
22027 # Trying to get more people to read documentation.  Possibly remove
22028 # check and warn all the time. There is no "informational" AC_MSG_
22029 # macro, so these are going to be printed even when --quiet/--silent
22030 # is given.
22031 if test ! -f stamp-sanity-warned; then
22032   touch stamp-sanity-warned
22033   echo ""
22034   echo "Please make certain that you read the installation information here:"
22035   echo "  faster => ${srcdir}/docs/html/install.html"
22036   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
22037   echo ""
22038   echo "and the configuration information here:"
22039   echo "  faster => ${srcdir}/docs/html/configopts.html"
22040   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
22041   echo ""
22042   echo "before proceeding with ${_cv_gnu_make_command}."
22043   echo ""
22044 fi