OSDN Git Service

* boehm-gc/configure, libf2c/configure: Rebuilt.
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-multilib       build hella library versions (default)"
16 ac_help="$ac_help
17   --with-target-subdir=SUBDIR
18                           configuring in a subdirectory"
19 ac_help="$ac_help
20   --with-cross-host=HOST  configuring with a cross compiler"
21 ac_help="$ac_help
22   --enable-maintainer-mode enable make rules and dependencies not useful
23                           (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25   --enable-shared[=PKGS]  build shared libraries [default=yes]"
26 ac_help="$ac_help
27   --enable-static[=PKGS]  build static libraries [default=yes]"
28 ac_help="$ac_help
29   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33   --disable-libtool-lock  avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37   --enable-debug          extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39   --enable-cstdio         enable stdio for target io package. 
40   --enable-cstdio=LIB     use LIB target-speific io package. [default=stdio]
41   "
42 ac_help="$ac_help
43   --enable-clocale        enable model for target locale package. 
44   --enable-clocale=MODEL  use MODEL target-speific locale package. [default=generic]
45   "
46 ac_help="$ac_help
47   --enable-nls            use Native Language Support (default)"
48 ac_help="$ac_help
49   --enable-c-mbchar       enable multibyte (wide) characters [default=yes]"
50 ac_help="$ac_help
51   --enable-c99            turns on 'ISO/IEC 9899:1999 support' [default=yes]"
52 ac_help="$ac_help
53   --enable-long-long      turns on 'long long' [default=yes]"
54 ac_help="$ac_help
55   --enable-cheaders       construct "C" header files for g++ [default=c_std]"
56 ac_help="$ac_help
57   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
58                                 [default=none]"
59 ac_help="$ac_help
60   --enable-sjlj-exceptions  force use of builtin_setjmp for exceptions"
61 ac_help="$ac_help
62   --enable-libunwind-exceptions  force use of libunwind for exceptions"
63 ac_help="$ac_help
64   --enable-concept-checks use Boost-derived template checks [default=no]"
65 ac_help="$ac_help
66   --enable-symvers=style  enables symbol versioning of the shared library [default=yes]"
67 ac_help="$ac_help
68   --with-gxx-include-dir  the installation directory for include files"
69 ac_help="$ac_help
70   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
71
72 # Initialize some variables set by options.
73 # The variables have the same names as the options, with
74 # dashes changed to underlines.
75 build=NONE
76 cache_file=./config.cache
77 exec_prefix=NONE
78 host=NONE
79 no_create=
80 nonopt=NONE
81 no_recursion=
82 prefix=NONE
83 program_prefix=NONE
84 program_suffix=NONE
85 program_transform_name=s,x,x,
86 silent=
87 site=
88 sitefile=
89 srcdir=
90 target=NONE
91 verbose=
92 x_includes=NONE
93 x_libraries=NONE
94 bindir='${exec_prefix}/bin'
95 sbindir='${exec_prefix}/sbin'
96 libexecdir='${exec_prefix}/libexec'
97 datadir='${prefix}/share'
98 sysconfdir='${prefix}/etc'
99 sharedstatedir='${prefix}/com'
100 localstatedir='${prefix}/var'
101 libdir='${exec_prefix}/lib'
102 includedir='${prefix}/include'
103 oldincludedir='/usr/include'
104 infodir='${prefix}/info'
105 mandir='${prefix}/man'
106
107 # Initialize some other variables.
108 subdirs=
109 MFLAGS= MAKEFLAGS=
110 SHELL=${CONFIG_SHELL-/bin/sh}
111 # Maximum number of lines to put in a shell here document.
112 ac_max_here_lines=12
113
114 ac_prev=
115 for ac_option
116 do
117
118   # If the previous option needs an argument, assign it.
119   if test -n "$ac_prev"; then
120     eval "$ac_prev=\$ac_option"
121     ac_prev=
122     continue
123   fi
124
125   case "$ac_option" in
126   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
127   *) ac_optarg= ;;
128   esac
129
130   # Accept the important Cygnus configure options, so we can diagnose typos.
131
132   case "$ac_option" in
133
134   -bindir | --bindir | --bindi | --bind | --bin | --bi)
135     ac_prev=bindir ;;
136   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
137     bindir="$ac_optarg" ;;
138
139   -build | --build | --buil | --bui | --bu)
140     ac_prev=build ;;
141   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
142     build="$ac_optarg" ;;
143
144   -cache-file | --cache-file | --cache-fil | --cache-fi \
145   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
146     ac_prev=cache_file ;;
147   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
148   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
149     cache_file="$ac_optarg" ;;
150
151   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
152     ac_prev=datadir ;;
153   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
154   | --da=*)
155     datadir="$ac_optarg" ;;
156
157   -disable-* | --disable-*)
158     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
159     # Reject names that are not valid shell variable names.
160     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
161       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162     fi
163     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
164     eval "enable_${ac_feature}=no" ;;
165
166   -enable-* | --enable-*)
167     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
168     # Reject names that are not valid shell variable names.
169     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
170       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171     fi
172     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
173     case "$ac_option" in
174       *=*) ;;
175       *) ac_optarg=yes ;;
176     esac
177     eval "enable_${ac_feature}='$ac_optarg'" ;;
178
179   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
180   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
181   | --exec | --exe | --ex)
182     ac_prev=exec_prefix ;;
183   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
184   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
185   | --exec=* | --exe=* | --ex=*)
186     exec_prefix="$ac_optarg" ;;
187
188   -gas | --gas | --ga | --g)
189     # Obsolete; use --with-gas.
190     with_gas=yes ;;
191
192   -help | --help | --hel | --he)
193     # Omit some internal or obsolete options to make the list less imposing.
194     # This message is too long to be a string in the A/UX 3.1 sh.
195     cat << EOF
196 Usage: configure [options] [host]
197 Options: [defaults in brackets after descriptions]
198 Configuration:
199   --cache-file=FILE       cache test results in FILE
200   --help                  print this message
201   --no-create             do not create output files
202   --quiet, --silent       do not print \`checking...' messages
203   --site-file=FILE        use FILE as the site file
204   --version               print the version of autoconf that created configure
205 Directory and file names:
206   --prefix=PREFIX         install architecture-independent files in PREFIX
207                           [$ac_default_prefix]
208   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
209                           [same as prefix]
210   --bindir=DIR            user executables in DIR [EPREFIX/bin]
211   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
212   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
213   --datadir=DIR           read-only architecture-independent data in DIR
214                           [PREFIX/share]
215   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
216   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
217                           [PREFIX/com]
218   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
219   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
220   --includedir=DIR        C header files in DIR [PREFIX/include]
221   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
222   --infodir=DIR           info documentation in DIR [PREFIX/info]
223   --mandir=DIR            man documentation in DIR [PREFIX/man]
224   --srcdir=DIR            find the sources in DIR [configure dir or ..]
225   --program-prefix=PREFIX prepend PREFIX to installed program names
226   --program-suffix=SUFFIX append SUFFIX to installed program names
227   --program-transform-name=PROGRAM
228                           run sed PROGRAM on installed program names
229 EOF
230     cat << EOF
231 Host type:
232   --build=BUILD           configure for building on BUILD [BUILD=HOST]
233   --host=HOST             configure for HOST [guessed]
234   --target=TARGET         configure for TARGET [TARGET=HOST]
235 Features and packages:
236   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
237   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
238   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
239   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
240   --x-includes=DIR        X include files are in DIR
241   --x-libraries=DIR       X library files are in DIR
242 EOF
243     if test -n "$ac_help"; then
244       echo "--enable and --with options recognized:$ac_help"
245     fi
246     exit 0 ;;
247
248   -host | --host | --hos | --ho)
249     ac_prev=host ;;
250   -host=* | --host=* | --hos=* | --ho=*)
251     host="$ac_optarg" ;;
252
253   -includedir | --includedir | --includedi | --included | --include \
254   | --includ | --inclu | --incl | --inc)
255     ac_prev=includedir ;;
256   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
257   | --includ=* | --inclu=* | --incl=* | --inc=*)
258     includedir="$ac_optarg" ;;
259
260   -infodir | --infodir | --infodi | --infod | --info | --inf)
261     ac_prev=infodir ;;
262   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
263     infodir="$ac_optarg" ;;
264
265   -libdir | --libdir | --libdi | --libd)
266     ac_prev=libdir ;;
267   -libdir=* | --libdir=* | --libdi=* | --libd=*)
268     libdir="$ac_optarg" ;;
269
270   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
271   | --libexe | --libex | --libe)
272     ac_prev=libexecdir ;;
273   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
274   | --libexe=* | --libex=* | --libe=*)
275     libexecdir="$ac_optarg" ;;
276
277   -localstatedir | --localstatedir | --localstatedi | --localstated \
278   | --localstate | --localstat | --localsta | --localst \
279   | --locals | --local | --loca | --loc | --lo)
280     ac_prev=localstatedir ;;
281   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
282   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
283   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
284     localstatedir="$ac_optarg" ;;
285
286   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
287     ac_prev=mandir ;;
288   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
289     mandir="$ac_optarg" ;;
290
291   -nfp | --nfp | --nf)
292     # Obsolete; use --without-fp.
293     with_fp=no ;;
294
295   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
296   | --no-cr | --no-c)
297     no_create=yes ;;
298
299   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
300   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
301     no_recursion=yes ;;
302
303   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
304   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
305   | --oldin | --oldi | --old | --ol | --o)
306     ac_prev=oldincludedir ;;
307   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
308   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
309   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
310     oldincludedir="$ac_optarg" ;;
311
312   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
313     ac_prev=prefix ;;
314   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
315     prefix="$ac_optarg" ;;
316
317   -program-prefix | --program-prefix | --program-prefi | --program-pref \
318   | --program-pre | --program-pr | --program-p)
319     ac_prev=program_prefix ;;
320   -program-prefix=* | --program-prefix=* | --program-prefi=* \
321   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
322     program_prefix="$ac_optarg" ;;
323
324   -program-suffix | --program-suffix | --program-suffi | --program-suff \
325   | --program-suf | --program-su | --program-s)
326     ac_prev=program_suffix ;;
327   -program-suffix=* | --program-suffix=* | --program-suffi=* \
328   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
329     program_suffix="$ac_optarg" ;;
330
331   -program-transform-name | --program-transform-name \
332   | --program-transform-nam | --program-transform-na \
333   | --program-transform-n | --program-transform- \
334   | --program-transform | --program-transfor \
335   | --program-transfo | --program-transf \
336   | --program-trans | --program-tran \
337   | --progr-tra | --program-tr | --program-t)
338     ac_prev=program_transform_name ;;
339   -program-transform-name=* | --program-transform-name=* \
340   | --program-transform-nam=* | --program-transform-na=* \
341   | --program-transform-n=* | --program-transform-=* \
342   | --program-transform=* | --program-transfor=* \
343   | --program-transfo=* | --program-transf=* \
344   | --program-trans=* | --program-tran=* \
345   | --progr-tra=* | --program-tr=* | --program-t=*)
346     program_transform_name="$ac_optarg" ;;
347
348   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
349   | -silent | --silent | --silen | --sile | --sil)
350     silent=yes ;;
351
352   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
353     ac_prev=sbindir ;;
354   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
355   | --sbi=* | --sb=*)
356     sbindir="$ac_optarg" ;;
357
358   -sharedstatedir | --sharedstatedir | --sharedstatedi \
359   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
360   | --sharedst | --shareds | --shared | --share | --shar \
361   | --sha | --sh)
362     ac_prev=sharedstatedir ;;
363   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
364   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
365   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
366   | --sha=* | --sh=*)
367     sharedstatedir="$ac_optarg" ;;
368
369   -site | --site | --sit)
370     ac_prev=site ;;
371   -site=* | --site=* | --sit=*)
372     site="$ac_optarg" ;;
373
374   -site-file | --site-file | --site-fil | --site-fi | --site-f)
375     ac_prev=sitefile ;;
376   -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
377     sitefile="$ac_optarg" ;;
378
379   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
380     ac_prev=srcdir ;;
381   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
382     srcdir="$ac_optarg" ;;
383
384   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
385   | --syscon | --sysco | --sysc | --sys | --sy)
386     ac_prev=sysconfdir ;;
387   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
388   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
389     sysconfdir="$ac_optarg" ;;
390
391   -target | --target | --targe | --targ | --tar | --ta | --t)
392     ac_prev=target ;;
393   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
394     target="$ac_optarg" ;;
395
396   -v | -verbose | --verbose | --verbos | --verbo | --verb)
397     verbose=yes ;;
398
399   -version | --version | --versio | --versi | --vers)
400     echo "configure generated by autoconf version 2.13"
401     exit 0 ;;
402
403   -with-* | --with-*)
404     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
405     # Reject names that are not valid shell variable names.
406     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
407       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408     fi
409     ac_package=`echo $ac_package| sed 's/-/_/g'`
410     case "$ac_option" in
411       *=*) ;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "with_${ac_package}='$ac_optarg'" ;;
415
416   -without-* | --without-*)
417     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
418     # Reject names that are not valid shell variable names.
419     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
420       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
421     fi
422     ac_package=`echo $ac_package| sed 's/-/_/g'`
423     eval "with_${ac_package}=no" ;;
424
425   --x)
426     # Obsolete; use --with-x.
427     with_x=yes ;;
428
429   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
430   | --x-incl | --x-inc | --x-in | --x-i)
431     ac_prev=x_includes ;;
432   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
433   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
434     x_includes="$ac_optarg" ;;
435
436   -x-libraries | --x-libraries | --x-librarie | --x-librari \
437   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
438     ac_prev=x_libraries ;;
439   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
440   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
441     x_libraries="$ac_optarg" ;;
442
443   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
444     ;;
445
446   *)
447     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
448       echo "configure: warning: $ac_option: invalid host type" 1>&2
449     fi
450     if test "x$nonopt" != xNONE; then
451       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
452     fi
453     nonopt="$ac_option"
454     ;;
455
456   esac
457 done
458
459 if test -n "$ac_prev"; then
460   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
461 fi
462
463 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
464
465 # File descriptor usage:
466 # 0 standard input
467 # 1 file creation
468 # 2 errors and warnings
469 # 3 some systems may open it to /dev/tty
470 # 4 used on the Kubota Titan
471 # 6 checking for... messages and results
472 # 5 compiler messages saved in config.log
473 if test "$silent" = yes; then
474   exec 6>/dev/null
475 else
476   exec 6>&1
477 fi
478 exec 5>./config.log
479
480 echo "\
481 This file contains any messages produced by compilers while
482 running configure, to aid debugging if configure makes a mistake.
483 " 1>&5
484
485 # Strip out --no-create and --no-recursion so they do not pile up.
486 # Also quote any args containing shell metacharacters.
487 ac_configure_args=
488 for ac_arg
489 do
490   case "$ac_arg" in
491   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
492   | --no-cr | --no-c) ;;
493   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
495   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
496   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
497   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
498   esac
499 done
500
501 # NLS nuisances.
502 # Only set these to C if already set.  These must not be set unconditionally
503 # because not all systems understand e.g. LANG=C (notably SCO).
504 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
505 # Non-C LC_CTYPE values break the ctype check.
506 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
507 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
508 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
509 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
510
511 # confdefs.h avoids OS command line length limits that DEFS can exceed.
512 rm -rf conftest* confdefs.h
513 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
514 echo > confdefs.h
515
516 # A filename unique to this package, relative to the directory that
517 # configure is in, which we can look for to find out if srcdir is correct.
518 ac_unique_file=src/ios.cc
519
520 # Find the source files, if location was not specified.
521 if test -z "$srcdir"; then
522   ac_srcdir_defaulted=yes
523   # Try the directory containing this script, then its parent.
524   ac_prog=$0
525   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
526   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
527   srcdir=$ac_confdir
528   if test ! -r $srcdir/$ac_unique_file; then
529     srcdir=..
530   fi
531 else
532   ac_srcdir_defaulted=no
533 fi
534 if test ! -r $srcdir/$ac_unique_file; then
535   if test "$ac_srcdir_defaulted" = yes; then
536     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
537   else
538     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
539   fi
540 fi
541 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
542
543 # Prefer explicitly selected file to automatically selected ones.
544 if test -z "$sitefile"; then
545   if test -z "$CONFIG_SITE"; then
546     if test "x$prefix" != xNONE; then
547       CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
548     else
549       CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
550     fi
551   fi
552 else
553   CONFIG_SITE="$sitefile"
554 fi
555 for ac_site_file in $CONFIG_SITE; do
556   if test -r "$ac_site_file"; then
557     echo "loading site script $ac_site_file"
558     . "$ac_site_file"
559   fi
560 done
561
562 if test -r "$cache_file"; then
563   echo "loading cache $cache_file"
564   . $cache_file
565 else
566   echo "creating cache $cache_file"
567   > $cache_file
568 fi
569
570 ac_ext=c
571 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
572 ac_cpp='$CPP $CPPFLAGS'
573 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
574 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
575 cross_compiling=$ac_cv_prog_cc_cross
576
577 ac_exeext=
578 ac_objext=o
579 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
580   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
581   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
582     ac_n= ac_c='
583 ' ac_t='        '
584   else
585     ac_n=-n ac_c= ac_t=
586   fi
587 else
588   ac_n= ac_c='\c' ac_t=
589 fi
590
591
592
593 # This works around the fact that libtool configuration may change LD
594 # for this particular configuration, but some shells, instead of
595 # keeping the changes in LD private, export them just because LD is
596 # exported.  Only used at the end of this file.
597 ORIGINAL_LD_FOR_MULTILIBS=$LD
598
599 PACKAGE=libstdc++
600
601 # For libtool versioning info, format is CURRENT:REVISION:AGE
602 libtool_VERSION=5:0:0
603
604
605
606       # Check whether --enable-multilib or --disable-multilib was given.
607 if test "${enable_multilib+set}" = set; then
608   enableval="$enable_multilib"
609   case "${enableval}" in
610     yes) multilib=yes ;;
611     no)  multilib=no ;;
612     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
613    esac
614 else
615   multilib=yes
616 fi
617
618   # When building with srcdir == objdir, links to the source files will
619   # be created in directories within the target_subdir.  We have to
620   # adjust toplevel_srcdir accordingly, so that configure finds
621   # install-sh and other auxiliary files that live in the top-level
622   # source directory.
623   if test "${srcdir}" = "."; then
624     if test -z "${with_target_subdir}"; then
625       toprel=".."
626     else
627       if test "${with_target_subdir}" != "."; then
628         toprel="${with_multisrctop}../.."
629       else
630         toprel="${with_multisrctop}.."
631       fi
632     fi
633   else
634     toprel=".."
635   fi
636   ac_aux_dir=
637 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
638   if test -f $ac_dir/install-sh; then
639     ac_aux_dir=$ac_dir
640     ac_install_sh="$ac_aux_dir/install-sh -c"
641     break
642   elif test -f $ac_dir/install.sh; then
643     ac_aux_dir=$ac_dir
644     ac_install_sh="$ac_aux_dir/install.sh -c"
645     break
646   fi
647 done
648 if test -z "$ac_aux_dir"; then
649   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
650 fi
651 ac_config_guess=$ac_aux_dir/config.guess
652 ac_config_sub=$ac_aux_dir/config.sub
653 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
654
655   toplevel_srcdir=\${top_srcdir}/$toprel
656   
657
658
659 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
660 #
661 # You will slowly go insane if you do not grok the following fact:  when
662 # building v3 as part of the compiler, the top-level /target/ becomes the
663 # library's /host/.  `configure' then causes --target to default to --host,
664 # exactly like any other package using autoconf.  Therefore, 'target' and
665 # 'host' will always be the same.  This makes sense both for native and
666 # cross compilers, just think about it for a little while.  :-)
667 #
668 # Also, if v3 is being configured as part of a cross compiler, the top-level
669 # configure script will pass the "real" host as $with_cross_host.
670 #
671 # AC 2.5x sets target_alias iff the user specified --target, but we use it
672 # everywhere, so we set it here just to be sure.  In AC 2.13
673 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
674
675 # Do some error checking and defaulting for the host and target type.
676 # The inputs are:
677 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
678 #
679 # The rules are:
680 # 1. You are not allowed to specify --host, --target, and nonopt at the
681 #    same time.
682 # 2. Host defaults to nonopt.
683 # 3. If nonopt is not specified, then host defaults to the current host,
684 #    as determined by config.guess.
685 # 4. Target and build default to nonopt.
686 # 5. If nonopt is not specified, then target and build default to host.
687
688 # The aliases save the names the user supplied, while $host etc.
689 # will get canonicalized.
690 case $host---$target---$nonopt in
691 NONE---*---* | *---NONE---* | *---*---NONE) ;;
692 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
693 esac
694
695
696 # Make sure we can run config.sub.
697 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
698 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
699 fi
700
701 echo $ac_n "checking host system type""... $ac_c" 1>&6
702 echo "configure:703: checking host system type" >&5
703
704 host_alias=$host
705 case "$host_alias" in
706 NONE)
707   case $nonopt in
708   NONE)
709     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
710     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
711     fi ;;
712   *) host_alias=$nonopt ;;
713   esac ;;
714 esac
715
716 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
717 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
718 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
719 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
720 echo "$ac_t""$host" 1>&6
721
722 echo $ac_n "checking target system type""... $ac_c" 1>&6
723 echo "configure:724: checking target system type" >&5
724
725 target_alias=$target
726 case "$target_alias" in
727 NONE)
728   case $nonopt in
729   NONE) target_alias=$host_alias ;;
730   *) target_alias=$nonopt ;;
731   esac ;;
732 esac
733
734 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
735 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
736 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
737 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
738 echo "$ac_t""$target" 1>&6
739
740 echo $ac_n "checking build system type""... $ac_c" 1>&6
741 echo "configure:742: checking build system type" >&5
742
743 build_alias=$build
744 case "$build_alias" in
745 NONE)
746   case $nonopt in
747   NONE) build_alias=$host_alias ;;
748   *) build_alias=$nonopt ;;
749   esac ;;
750 esac
751
752 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
753 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
754 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
755 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
756 echo "$ac_t""$build" 1>&6
757
758 test "$host_alias" != "$target_alias" &&
759   test "$program_prefix$program_suffix$program_transform_name" = \
760     NONENONEs,x,x, &&
761   program_prefix=${target_alias}-
762
763 target_alias=${target_alias-$target}
764
765
766 # Runs configure.target, finds CC, CXX and assorted other critical bits.
767 # Must run this before the GLIBCPP_ENABLE_* macros below.
768 if test $host != $build; then
769   ac_tool_prefix=${host_alias}-
770 else
771   ac_tool_prefix=
772 fi
773
774 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
775 echo "configure:776: checking for Cygwin environment" >&5
776 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
777   echo $ac_n "(cached) $ac_c" 1>&6
778 else
779   cat > conftest.$ac_ext <<EOF
780 #line 781 "configure"
781 #include "confdefs.h"
782
783 int main() {
784
785 #ifndef __CYGWIN__
786 #define __CYGWIN__ __CYGWIN32__
787 #endif
788 return __CYGWIN__;
789 ; return 0; }
790 EOF
791 if { (eval echo configure:792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
792   rm -rf conftest*
793   ac_cv_cygwin=yes
794 else
795   echo "configure: failed program was:" >&5
796   cat conftest.$ac_ext >&5
797   rm -rf conftest*
798   ac_cv_cygwin=no
799 fi
800 rm -f conftest*
801 rm -f conftest*
802 fi
803
804 echo "$ac_t""$ac_cv_cygwin" 1>&6
805 CYGWIN=
806 test "$ac_cv_cygwin" = yes && CYGWIN=yes
807 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
808 echo "configure:809: checking for mingw32 environment" >&5
809 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
810   echo $ac_n "(cached) $ac_c" 1>&6
811 else
812   cat > conftest.$ac_ext <<EOF
813 #line 814 "configure"
814 #include "confdefs.h"
815
816 int main() {
817 return __MINGW32__;
818 ; return 0; }
819 EOF
820 if { (eval echo configure:821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
821   rm -rf conftest*
822   ac_cv_mingw32=yes
823 else
824   echo "configure: failed program was:" >&5
825   cat conftest.$ac_ext >&5
826   rm -rf conftest*
827   ac_cv_mingw32=no
828 fi
829 rm -f conftest*
830 rm -f conftest*
831 fi
832
833 echo "$ac_t""$ac_cv_mingw32" 1>&6
834 MINGW32=
835 test "$ac_cv_mingw32" = yes && MINGW32=yes
836
837
838 #possibly test for the presence of the compiler sources here?
839
840   # Export build and source directories.
841   # These need to be absolute paths, yet at the same time need to
842   # canonicalize only relative paths, because then amd will not unmount
843   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
844   glibcpp_builddir=`${PWDCMD-pwd}`
845   case $srcdir in
846   \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
847   *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
848   esac
849   
850   
851
852     
853
854   for ac_prog in mawk gawk nawk awk
855 do
856 # Extract the first word of "$ac_prog", so it can be a program name with args.
857 set dummy $ac_prog; ac_word=$2
858 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
859 echo "configure:860: checking for $ac_word" >&5
860 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
861   echo $ac_n "(cached) $ac_c" 1>&6
862 else
863   if test -n "$AWK"; then
864   ac_cv_prog_AWK="$AWK" # Let the user override the test.
865 else
866   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
867   ac_dummy="$PATH"
868   for ac_dir in $ac_dummy; do
869     test -z "$ac_dir" && ac_dir=.
870     if test -f $ac_dir/$ac_word; then
871       ac_cv_prog_AWK="$ac_prog"
872       break
873     fi
874   done
875   IFS="$ac_save_ifs"
876 fi
877 fi
878 AWK="$ac_cv_prog_AWK"
879 if test -n "$AWK"; then
880   echo "$ac_t""$AWK" 1>&6
881 else
882   echo "$ac_t""no" 1>&6
883 fi
884
885 test -n "$AWK" && break
886 done
887
888   # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.5x, can also
889   # be 'cp -p' if linking isn't available.  Uncomment the next line to
890   # force a particular method.
891   #ac_cv_prog_LN_S='cp -p'
892   echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
893 echo "configure:894: checking whether ln -s works" >&5
894 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
895   echo $ac_n "(cached) $ac_c" 1>&6
896 else
897   rm -f conftestdata
898 if ln -s X conftestdata 2>/dev/null
899 then
900   rm -f conftestdata
901   ac_cv_prog_LN_S="ln -s"
902 else
903   ac_cv_prog_LN_S=ln
904 fi
905 fi
906 LN_S="$ac_cv_prog_LN_S"
907 if test "$ac_cv_prog_LN_S" = "ln -s"; then
908   echo "$ac_t""yes" 1>&6
909 else
910   echo "$ac_t""no" 1>&6
911 fi
912
913
914   # We use these options to decide which functions to include.
915   # Check whether --with-target-subdir or --without-target-subdir was given.
916 if test "${with_target_subdir+set}" = set; then
917   withval="$with_target_subdir"
918   :
919 fi
920
921   # Check whether --with-cross-host or --without-cross-host was given.
922 if test "${with_cross_host+set}" = set; then
923   withval="$with_cross_host"
924   :
925 fi
926
927
928   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
929   
930
931   # Never versions of autoconf add an underscore to these functions.
932   # Prevent future problems ...
933   
934   
935   
936   
937
938   # AC_PROG_CC
939   # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
940   # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
941   # are probably using a cross compiler, which will not be able to fully
942   # link an executable.  This is addressed in later versions of autoconf.
943
944   
945
946       
947   # Extract the first word of "gcc", so it can be a program name with args.
948 set dummy gcc; ac_word=$2
949 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
950 echo "configure:951: checking for $ac_word" >&5
951 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
952   echo $ac_n "(cached) $ac_c" 1>&6
953 else
954   if test -n "$CC"; then
955   ac_cv_prog_CC="$CC" # Let the user override the test.
956 else
957   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
958   ac_dummy="$PATH"
959   for ac_dir in $ac_dummy; do
960     test -z "$ac_dir" && ac_dir=.
961     if test -f $ac_dir/$ac_word; then
962       ac_cv_prog_CC="gcc"
963       break
964     fi
965   done
966   IFS="$ac_save_ifs"
967 fi
968 fi
969 CC="$ac_cv_prog_CC"
970 if test -n "$CC"; then
971   echo "$ac_t""$CC" 1>&6
972 else
973   echo "$ac_t""no" 1>&6
974 fi
975
976   if test -z "$CC"; then
977     # Extract the first word of "cc", so it can be a program name with args.
978 set dummy cc; ac_word=$2
979 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
980 echo "configure:981: checking for $ac_word" >&5
981 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
982   echo $ac_n "(cached) $ac_c" 1>&6
983 else
984   if test -n "$CC"; then
985   ac_cv_prog_CC="$CC" # Let the user override the test.
986 else
987   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
988   ac_prog_rejected=no
989   ac_dummy="$PATH"
990   for ac_dir in $ac_dummy; do
991     test -z "$ac_dir" && ac_dir=.
992     if test -f $ac_dir/$ac_word; then
993       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
994         ac_prog_rejected=yes
995         continue
996       fi
997       ac_cv_prog_CC="cc"
998       break
999     fi
1000   done
1001   IFS="$ac_save_ifs"
1002 if test $ac_prog_rejected = yes; then
1003   # We found a bogon in the path, so make sure we never use it.
1004   set dummy $ac_cv_prog_CC
1005   shift
1006   if test $# -gt 0; then
1007     # We chose a different compiler from the bogus one.
1008     # However, it has the same basename, so the bogon will be chosen
1009     # first if we set CC to just the basename; use the full file name.
1010     shift
1011     set dummy "$ac_dir/$ac_word" "$@"
1012     shift
1013     ac_cv_prog_CC="$@"
1014   fi
1015 fi
1016 fi
1017 fi
1018 CC="$ac_cv_prog_CC"
1019 if test -n "$CC"; then
1020   echo "$ac_t""$CC" 1>&6
1021 else
1022   echo "$ac_t""no" 1>&6
1023 fi
1024
1025     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1026   fi
1027
1028   echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1029 echo "configure:1030: checking whether we are using GNU C" >&5
1030 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1031   echo $ac_n "(cached) $ac_c" 1>&6
1032 else
1033   cat > conftest.c <<EOF
1034 #ifdef __GNUC__
1035   yes;
1036 #endif
1037 EOF
1038 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1039   ac_cv_prog_gcc=yes
1040 else
1041   ac_cv_prog_gcc=no
1042 fi
1043 fi
1044
1045 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1046
1047   if test $ac_cv_prog_gcc = yes; then
1048     GCC=yes
1049           ac_test_CFLAGS="${CFLAGS+set}"
1050     ac_save_CFLAGS="$CFLAGS"
1051     CFLAGS=
1052     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1053 echo "configure:1054: checking whether ${CC-cc} accepts -g" >&5
1054 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1055   echo $ac_n "(cached) $ac_c" 1>&6
1056 else
1057   echo 'void f(){}' > conftest.c
1058 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1059   ac_cv_prog_cc_g=yes
1060 else
1061   ac_cv_prog_cc_g=no
1062 fi
1063 rm -f conftest*
1064
1065 fi
1066
1067 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1068     if test "$ac_test_CFLAGS" = set; then
1069       CFLAGS="$ac_save_CFLAGS"
1070     elif test $ac_cv_prog_cc_g = yes; then
1071       CFLAGS="-g -O2"
1072     else
1073       CFLAGS="-O2"
1074     fi
1075   else
1076     GCC=
1077     test "${CFLAGS+set}" = set || CFLAGS="-g"
1078   fi
1079   
1080
1081   # Likewise for AC_PROG_CXX.  We can't just call it directly because g++
1082   # will try to link in libstdc++.
1083   
1084
1085       
1086   # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1087   # flags that come in CXX while configuring libstdc++.  They're different
1088   # from those used for all other target libraries.  If CXX is set in
1089   # the environment, respect that here.
1090   glibcpp_CXX=$CXX
1091   for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1092 do
1093 # Extract the first word of "$ac_prog", so it can be a program name with args.
1094 set dummy $ac_prog; ac_word=$2
1095 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1096 echo "configure:1097: checking for $ac_word" >&5
1097 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1098   echo $ac_n "(cached) $ac_c" 1>&6
1099 else
1100   if test -n "$glibcpp_CXX"; then
1101   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1102 else
1103   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1104   ac_dummy="$PATH"
1105   for ac_dir in $ac_dummy; do
1106     test -z "$ac_dir" && ac_dir=.
1107     if test -f $ac_dir/$ac_word; then
1108       ac_cv_prog_glibcpp_CXX="$ac_prog"
1109       break
1110     fi
1111   done
1112   IFS="$ac_save_ifs"
1113 fi
1114 fi
1115 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1116 if test -n "$glibcpp_CXX"; then
1117   echo "$ac_t""$glibcpp_CXX" 1>&6
1118 else
1119   echo "$ac_t""no" 1>&6
1120 fi
1121
1122 test -n "$glibcpp_CXX" && break
1123 done
1124 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1125
1126   
1127   CXX=$glibcpp_CXX
1128   test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1129
1130   echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1131 echo "configure:1132: checking whether we are using GNU C++" >&5
1132 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1133   echo $ac_n "(cached) $ac_c" 1>&6
1134 else
1135   cat > conftest.C <<EOF
1136 #ifdef __GNUC__
1137   yes;
1138 #endif
1139 EOF
1140 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1141   ac_cv_prog_gxx=yes
1142 else
1143   ac_cv_prog_gxx=no
1144 fi
1145 fi
1146
1147 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1148
1149   if test $ac_cv_prog_gxx = yes; then
1150     GXX=yes
1151                 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1152     ac_save_CXXFLAGS="$CXXFLAGS"
1153     CXXFLAGS=
1154     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1155 echo "configure:1156: checking whether ${CXX-g++} accepts -g" >&5
1156 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1157   echo $ac_n "(cached) $ac_c" 1>&6
1158 else
1159   echo 'void f(){}' > conftest.cc
1160 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1161   ac_cv_prog_cxx_g=yes
1162 else
1163   ac_cv_prog_cxx_g=no
1164 fi
1165 rm -f conftest*
1166
1167 fi
1168
1169 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1170     if test "$ac_test_CXXFLAGS" = set; then
1171       CXXFLAGS="$ac_save_CXXFLAGS"
1172     elif test $ac_cv_prog_cxx_g = yes; then
1173       CXXFLAGS="-g -O2"
1174     else
1175       CXXFLAGS="-O2"
1176     fi
1177   else
1178     GXX=
1179     test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1180   fi
1181   
1182
1183   # For directory versioning (e.g., headers) and other variables.
1184   echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1185 echo "configure:1186: checking for GCC version number" >&5
1186   gcc_version=`$glibcpp_CXX -dumpversion`
1187   echo "$ac_t""$gcc_version" 1>&6
1188
1189   # For some reason, gettext needs this.
1190   
1191         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1192 echo "configure:1193: checking for strerror in -lcposix" >&5
1193 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1194 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1195   echo $ac_n "(cached) $ac_c" 1>&6
1196 else
1197   ac_save_LIBS="$LIBS"
1198 LIBS="-lcposix  $LIBS"
1199 cat > conftest.$ac_ext <<EOF
1200 #line 1201 "configure"
1201 #include "confdefs.h"
1202 /* Override any gcc2 internal prototype to avoid an error.  */
1203 /* We use char because int might match the return type of a gcc2
1204     builtin and then its argument prototype would still apply.  */
1205 char strerror();
1206
1207 int main() {
1208 strerror()
1209 ; return 0; }
1210 EOF
1211 if { (eval echo configure:1212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1212   rm -rf conftest*
1213   eval "ac_cv_lib_$ac_lib_var=yes"
1214 else
1215   echo "configure: failed program was:" >&5
1216   cat conftest.$ac_ext >&5
1217   rm -rf conftest*
1218   eval "ac_cv_lib_$ac_lib_var=no"
1219 fi
1220 rm -f conftest*
1221 LIBS="$ac_save_LIBS"
1222
1223 fi
1224 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1225   echo "$ac_t""yes" 1>&6
1226   LIBS="$LIBS -lcposix"
1227 else
1228   echo "$ac_t""no" 1>&6
1229 fi
1230
1231   
1232
1233
1234   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1235 set dummy ${ac_tool_prefix}as; ac_word=$2
1236 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1237 echo "configure:1238: checking for $ac_word" >&5
1238 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1239   echo $ac_n "(cached) $ac_c" 1>&6
1240 else
1241   if test -n "$AS"; then
1242   ac_cv_prog_AS="$AS" # Let the user override the test.
1243 else
1244   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1245   ac_dummy="$PATH"
1246   for ac_dir in $ac_dummy; do
1247     test -z "$ac_dir" && ac_dir=.
1248     if test -f $ac_dir/$ac_word; then
1249       ac_cv_prog_AS="${ac_tool_prefix}as"
1250       break
1251     fi
1252   done
1253   IFS="$ac_save_ifs"
1254   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1255 fi
1256 fi
1257 AS="$ac_cv_prog_AS"
1258 if test -n "$AS"; then
1259   echo "$ac_t""$AS" 1>&6
1260 else
1261   echo "$ac_t""no" 1>&6
1262 fi
1263
1264
1265
1266   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1267 set dummy ${ac_tool_prefix}ar; ac_word=$2
1268 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1269 echo "configure:1270: checking for $ac_word" >&5
1270 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1271   echo $ac_n "(cached) $ac_c" 1>&6
1272 else
1273   if test -n "$AR"; then
1274   ac_cv_prog_AR="$AR" # Let the user override the test.
1275 else
1276   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1277   ac_dummy="$PATH"
1278   for ac_dir in $ac_dummy; do
1279     test -z "$ac_dir" && ac_dir=.
1280     if test -f $ac_dir/$ac_word; then
1281       ac_cv_prog_AR="${ac_tool_prefix}ar"
1282       break
1283     fi
1284   done
1285   IFS="$ac_save_ifs"
1286   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1287 fi
1288 fi
1289 AR="$ac_cv_prog_AR"
1290 if test -n "$AR"; then
1291   echo "$ac_t""$AR" 1>&6
1292 else
1293   echo "$ac_t""no" 1>&6
1294 fi
1295
1296
1297
1298   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1299 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1301 echo "configure:1302: checking for $ac_word" >&5
1302 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1303   echo $ac_n "(cached) $ac_c" 1>&6
1304 else
1305   if test -n "$RANLIB"; then
1306   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1307 else
1308   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1309   ac_dummy="$PATH"
1310   for ac_dir in $ac_dummy; do
1311     test -z "$ac_dir" && ac_dir=.
1312     if test -f $ac_dir/$ac_word; then
1313       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1314       break
1315     fi
1316   done
1317   IFS="$ac_save_ifs"
1318 fi
1319 fi
1320 RANLIB="$ac_cv_prog_RANLIB"
1321 if test -n "$RANLIB"; then
1322   echo "$ac_t""$RANLIB" 1>&6
1323 else
1324   echo "$ac_t""no" 1>&6
1325 fi
1326
1327
1328 if test -z "$ac_cv_prog_RANLIB"; then
1329 if test -n "$ac_tool_prefix"; then
1330   # Extract the first word of "ranlib", so it can be a program name with args.
1331 set dummy ranlib; ac_word=$2
1332 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1333 echo "configure:1334: checking for $ac_word" >&5
1334 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1335   echo $ac_n "(cached) $ac_c" 1>&6
1336 else
1337   if test -n "$RANLIB"; then
1338   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1339 else
1340   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1341   ac_dummy="$PATH"
1342   for ac_dir in $ac_dummy; do
1343     test -z "$ac_dir" && ac_dir=.
1344     if test -f $ac_dir/$ac_word; then
1345       ac_cv_prog_RANLIB="ranlib"
1346       break
1347     fi
1348   done
1349   IFS="$ac_save_ifs"
1350   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1351 fi
1352 fi
1353 RANLIB="$ac_cv_prog_RANLIB"
1354 if test -n "$RANLIB"; then
1355   echo "$ac_t""$RANLIB" 1>&6
1356 else
1357   echo "$ac_t""no" 1>&6
1358 fi
1359
1360 else
1361   RANLIB="ranlib-not-found-in-path-error"
1362 fi
1363 fi
1364
1365   # Find a good install program.  We prefer a C program (faster),
1366 # so one script is as good as another.  But avoid the broken or
1367 # incompatible versions:
1368 # SysV /etc/install, /usr/sbin/install
1369 # SunOS /usr/etc/install
1370 # IRIX /sbin/install
1371 # AIX /bin/install
1372 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1373 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1374 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1375 # ./install, which can be erroneously created by make from ./install.sh.
1376 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1377 echo "configure:1378: checking for a BSD compatible install" >&5
1378 if test -z "$INSTALL"; then
1379 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1380   echo $ac_n "(cached) $ac_c" 1>&6
1381 else
1382     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1383   for ac_dir in $PATH; do
1384     # Account for people who put trailing slashes in PATH elements.
1385     case "$ac_dir/" in
1386     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1387     *)
1388       # OSF1 and SCO ODT 3.0 have their own names for install.
1389       # Don't use installbsd from OSF since it installs stuff as root
1390       # by default.
1391       for ac_prog in ginstall scoinst install; do
1392         if test -f $ac_dir/$ac_prog; then
1393           if test $ac_prog = install &&
1394             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1395             # AIX install.  It has an incompatible calling convention.
1396             :
1397           else
1398             ac_cv_path_install="$ac_dir/$ac_prog -c"
1399             break 2
1400           fi
1401         fi
1402       done
1403       ;;
1404     esac
1405   done
1406   IFS="$ac_save_IFS"
1407
1408 fi
1409   if test "${ac_cv_path_install+set}" = set; then
1410     INSTALL="$ac_cv_path_install"
1411   else
1412     # As a last resort, use the slow shell script.  We don't cache a
1413     # path for INSTALL within a source directory, because that will
1414     # break other packages using the cache if that directory is
1415     # removed, or if the path is relative.
1416     INSTALL="$ac_install_sh"
1417   fi
1418 fi
1419 echo "$ac_t""$INSTALL" 1>&6
1420
1421 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1422 # It thinks the first close brace ends the variable substitution.
1423 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1424
1425 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1426
1427 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1428
1429
1430   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1431 echo "configure:1432: checking whether to enable maintainer-specific portions of Makefiles" >&5
1432     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1433 if test "${enable_maintainer_mode+set}" = set; then
1434   enableval="$enable_maintainer_mode"
1435   USE_MAINTAINER_MODE=$enableval
1436 else
1437   USE_MAINTAINER_MODE=no
1438 fi
1439
1440   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1441   
1442
1443 if test $USE_MAINTAINER_MODE = yes; then
1444   MAINTAINER_MODE_TRUE=
1445   MAINTAINER_MODE_FALSE='#'
1446 else
1447   MAINTAINER_MODE_TRUE='#'
1448   MAINTAINER_MODE_FALSE=
1449 fi
1450   MAINT=$MAINTAINER_MODE_TRUE
1451   
1452
1453
1454   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1455   # at least currently, we never actually build a program, so we never
1456   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1457   # fails, because we are probably configuring with a cross compiler
1458   # which can't create executables.  So we include AC_EXEEXT to keep
1459   # automake happy, but we don't execute it, since we don't care about
1460   # the result.
1461   if false; then
1462     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1463     # to nothing, so nothing would remain between `then' and `fi' if it
1464     # were not for the `:' below.
1465     :
1466     
1467
1468 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1469 echo "configure:1470: checking for executable suffix" >&5
1470 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1471   echo $ac_n "(cached) $ac_c" 1>&6
1472 else
1473   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1474   ac_cv_exeext=.exe
1475 else
1476   rm -f conftest*
1477   echo 'int main () { return 0; }' > conftest.$ac_ext
1478   ac_cv_exeext=
1479   if { (eval echo configure:1480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1480     for file in conftest.*; do
1481       case $file in
1482       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1483       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1484       esac
1485     done
1486   else
1487     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1488   fi
1489   rm -f conftest*
1490   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1491 fi
1492 fi
1493
1494 EXEEXT=""
1495 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1496 echo "$ac_t""${ac_cv_exeext}" 1>&6
1497 ac_exeext=$EXEEXT
1498
1499   fi
1500
1501   case ${glibcpp_basedir} in
1502     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1503     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1504   esac
1505
1506   # Find platform-specific directories containing configuration info.  In
1507   # addition to possibly modifying the same flags, it also sets up symlinks.
1508   
1509     . ${glibcpp_basedir}/configure.target
1510     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1511     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1512
1513
1514
1515 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1516 echo "configure:1517: checking whether build environment is sane" >&5
1517 # Just in case
1518 sleep 1
1519 echo timestamp > conftestfile
1520 # Do `set' in a subshell so we don't clobber the current shell's
1521 # arguments.  Must try -L first in case configure is actually a
1522 # symlink; some systems play weird games with the mod time of symlinks
1523 # (eg FreeBSD returns the mod time of the symlink's containing
1524 # directory).
1525 if (
1526    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1527    if test "$*" = "X"; then
1528       # -L didn't work.
1529       set X `ls -t $srcdir/configure conftestfile`
1530    fi
1531    if test "$*" != "X $srcdir/configure conftestfile" \
1532       && test "$*" != "X conftestfile $srcdir/configure"; then
1533
1534       # If neither matched, then we have a broken ls.  This can happen
1535       # if, for instance, CONFIG_SHELL is bash and it inherits a
1536       # broken ls alias from the environment.  This has actually
1537       # happened.  Such a system could not be considered "sane".
1538       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
1539 alias in your environment" 1>&2; exit 1; }
1540    fi
1541
1542    test "$2" = conftestfile
1543    )
1544 then
1545    # Ok.
1546    :
1547 else
1548    { echo "configure: error: newly created file is older than distributed files!
1549 Check your system clock" 1>&2; exit 1; }
1550 fi
1551 rm -f conftest*
1552 echo "$ac_t""yes" 1>&6
1553 if test "$program_transform_name" = s,x,x,; then
1554   program_transform_name=
1555 else
1556   # Double any \ or $.  echo might interpret backslashes.
1557   cat <<\EOF_SED > conftestsed
1558 s,\\,\\\\,g; s,\$,$$,g
1559 EOF_SED
1560   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1561   rm -f conftestsed
1562 fi
1563 test "$program_prefix" != NONE &&
1564   program_transform_name="s,^,${program_prefix},; $program_transform_name"
1565 # Use a double $ so make ignores it.
1566 test "$program_suffix" != NONE &&
1567   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1568
1569 # sed with no file args requires a program.
1570 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1571
1572 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1573 echo "configure:1574: checking whether ${MAKE-make} sets \${MAKE}" >&5
1574 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1575 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1576   echo $ac_n "(cached) $ac_c" 1>&6
1577 else
1578   cat > conftestmake <<\EOF
1579 all:
1580         @echo 'ac_maketemp="${MAKE}"'
1581 EOF
1582 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1583 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1584 if test -n "$ac_maketemp"; then
1585   eval ac_cv_prog_make_${ac_make}_set=yes
1586 else
1587   eval ac_cv_prog_make_${ac_make}_set=no
1588 fi
1589 rm -f conftestmake
1590 fi
1591 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1592   echo "$ac_t""yes" 1>&6
1593   SET_MAKE=
1594 else
1595   echo "$ac_t""no" 1>&6
1596   SET_MAKE="MAKE=${MAKE-make}"
1597 fi
1598
1599
1600 PACKAGE=$PACKAGE
1601
1602 VERSION=$gcc_version
1603
1604 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1605   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1606 fi
1607 cat >> confdefs.h <<EOF
1608 #define PACKAGE "$PACKAGE"
1609 EOF
1610
1611 cat >> confdefs.h <<EOF
1612 #define VERSION "$VERSION"
1613 EOF
1614
1615
1616
1617 missing_dir=`cd $ac_aux_dir && pwd`
1618 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1619 echo "configure:1620: checking for working aclocal" >&5
1620 # Run test in a subshell; some versions of sh will print an error if
1621 # an executable is not found, even if stderr is redirected.
1622 # Redirect stdin to placate older versions of autoconf.  Sigh.
1623 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1624    ACLOCAL=aclocal
1625    echo "$ac_t""found" 1>&6
1626 else
1627    ACLOCAL="$missing_dir/missing aclocal"
1628    echo "$ac_t""missing" 1>&6
1629 fi
1630
1631 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1632 echo "configure:1633: checking for working autoconf" >&5
1633 # Run test in a subshell; some versions of sh will print an error if
1634 # an executable is not found, even if stderr is redirected.
1635 # Redirect stdin to placate older versions of autoconf.  Sigh.
1636 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1637    AUTOCONF=autoconf
1638    echo "$ac_t""found" 1>&6
1639 else
1640    AUTOCONF="$missing_dir/missing autoconf"
1641    echo "$ac_t""missing" 1>&6
1642 fi
1643
1644 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1645 echo "configure:1646: checking for working automake" >&5
1646 # Run test in a subshell; some versions of sh will print an error if
1647 # an executable is not found, even if stderr is redirected.
1648 # Redirect stdin to placate older versions of autoconf.  Sigh.
1649 if (automake --version) < /dev/null > /dev/null 2>&1; then
1650    AUTOMAKE=automake
1651    echo "$ac_t""found" 1>&6
1652 else
1653    AUTOMAKE="$missing_dir/missing automake"
1654    echo "$ac_t""missing" 1>&6
1655 fi
1656
1657 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1658 echo "configure:1659: checking for working autoheader" >&5
1659 # Run test in a subshell; some versions of sh will print an error if
1660 # an executable is not found, even if stderr is redirected.
1661 # Redirect stdin to placate older versions of autoconf.  Sigh.
1662 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1663    AUTOHEADER=autoheader
1664    echo "$ac_t""found" 1>&6
1665 else
1666    AUTOHEADER="$missing_dir/missing autoheader"
1667    echo "$ac_t""missing" 1>&6
1668 fi
1669
1670 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1671 echo "configure:1672: checking for working makeinfo" >&5
1672 # Run test in a subshell; some versions of sh will print an error if
1673 # an executable is not found, even if stderr is redirected.
1674 # Redirect stdin to placate older versions of autoconf.  Sigh.
1675 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1676    MAKEINFO=makeinfo
1677    echo "$ac_t""found" 1>&6
1678 else
1679    MAKEINFO="$missing_dir/missing makeinfo"
1680    echo "$ac_t""missing" 1>&6
1681 fi
1682
1683
1684
1685
1686
1687
1688
1689 # Check whether --enable-shared or --disable-shared was given.
1690 if test "${enable_shared+set}" = set; then
1691   enableval="$enable_shared"
1692   p=${PACKAGE-default}
1693 case $enableval in
1694 yes) enable_shared=yes ;;
1695 no) enable_shared=no ;;
1696 *)
1697   enable_shared=no
1698   # Look at the argument we got.  We use all the common list separators.
1699   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1700   for pkg in $enableval; do
1701     if test "X$pkg" = "X$p"; then
1702       enable_shared=yes
1703     fi
1704   done
1705   IFS="$ac_save_ifs"
1706   ;;
1707 esac
1708 else
1709   enable_shared=yes
1710 fi
1711
1712 # Check whether --enable-static or --disable-static was given.
1713 if test "${enable_static+set}" = set; then
1714   enableval="$enable_static"
1715   p=${PACKAGE-default}
1716 case $enableval in
1717 yes) enable_static=yes ;;
1718 no) enable_static=no ;;
1719 *)
1720   enable_static=no
1721   # Look at the argument we got.  We use all the common list separators.
1722   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1723   for pkg in $enableval; do
1724     if test "X$pkg" = "X$p"; then
1725       enable_static=yes
1726     fi
1727   done
1728   IFS="$ac_save_ifs"
1729   ;;
1730 esac
1731 else
1732   enable_static=yes
1733 fi
1734
1735 # Check whether --enable-fast-install or --disable-fast-install was given.
1736 if test "${enable_fast_install+set}" = set; then
1737   enableval="$enable_fast_install"
1738   p=${PACKAGE-default}
1739 case $enableval in
1740 yes) enable_fast_install=yes ;;
1741 no) enable_fast_install=no ;;
1742 *)
1743   enable_fast_install=no
1744   # Look at the argument we got.  We use all the common list separators.
1745   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1746   for pkg in $enableval; do
1747     if test "X$pkg" = "X$p"; then
1748       enable_fast_install=yes
1749     fi
1750   done
1751   IFS="$ac_save_ifs"
1752   ;;
1753 esac
1754 else
1755   enable_fast_install=yes
1756 fi
1757
1758 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1759 if test "${with_gnu_ld+set}" = set; then
1760   withval="$with_gnu_ld"
1761   test "$withval" = no || with_gnu_ld=yes
1762 else
1763   with_gnu_ld=no
1764 fi
1765
1766 ac_prog=ld
1767 if test "$GCC" = yes; then
1768   # Check if gcc -print-prog-name=ld gives a path.
1769   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1770 echo "configure:1771: checking for ld used by GCC" >&5
1771   case $host in
1772   *-*-mingw*)
1773     # gcc leaves a trailing carriage return which upsets mingw
1774     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1775   *)
1776     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1777   esac
1778   case $ac_prog in
1779     # Accept absolute paths.
1780     [\\/]* | [A-Za-z]:[\\/]*)
1781       re_direlt='/[^/][^/]*/\.\./'
1782       # Canonicalize the path of ld
1783       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1784       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1785         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1786       done
1787       test -z "$LD" && LD="$ac_prog"
1788       ;;
1789   "")
1790     # If it fails, then pretend we aren't using GCC.
1791     ac_prog=ld
1792     ;;
1793   *)
1794     # If it is relative, then search for the first ld in PATH.
1795     with_gnu_ld=unknown
1796     ;;
1797   esac
1798 elif test "$with_gnu_ld" = yes; then
1799   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1800 echo "configure:1801: checking for GNU ld" >&5
1801 else
1802   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1803 echo "configure:1804: checking for non-GNU ld" >&5
1804 fi
1805 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1806   echo $ac_n "(cached) $ac_c" 1>&6
1807 else
1808   if test -z "$LD"; then
1809   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1810   for ac_dir in $PATH; do
1811     test -z "$ac_dir" && ac_dir=.
1812     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1813       lt_cv_path_LD="$ac_dir/$ac_prog"
1814       # Check to see if the program is GNU ld.  I'd rather use --version,
1815       # but apparently some GNU ld's only accept -v.
1816       # Break only if it was the GNU/non-GNU ld that we prefer.
1817       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1818         test "$with_gnu_ld" != no && break
1819       else
1820         test "$with_gnu_ld" != yes && break
1821       fi
1822     fi
1823   done
1824   IFS="$ac_save_ifs"
1825 else
1826   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1827 fi
1828 fi
1829
1830 LD="$lt_cv_path_LD"
1831 if test -n "$LD"; then
1832   echo "$ac_t""$LD" 1>&6
1833 else
1834   echo "$ac_t""no" 1>&6
1835 fi
1836 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1837 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1838 echo "configure:1839: checking if the linker ($LD) is GNU ld" >&5
1839 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1840   echo $ac_n "(cached) $ac_c" 1>&6
1841 else
1842   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1843 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1844   lt_cv_prog_gnu_ld=yes
1845 else
1846   lt_cv_prog_gnu_ld=no
1847 fi
1848 fi
1849
1850 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1851 with_gnu_ld=$lt_cv_prog_gnu_ld
1852
1853
1854 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1855 echo "configure:1856: checking for $LD option to reload object files" >&5
1856 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1857   echo $ac_n "(cached) $ac_c" 1>&6
1858 else
1859   lt_cv_ld_reload_flag='-r'
1860 fi
1861
1862 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1863 reload_flag=$lt_cv_ld_reload_flag
1864 test -n "$reload_flag" && reload_flag=" $reload_flag"
1865
1866 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1867 echo "configure:1868: checking for BSD-compatible nm" >&5
1868 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1869   echo $ac_n "(cached) $ac_c" 1>&6
1870 else
1871   if test -n "$NM"; then
1872   # Let the user override the test.
1873   lt_cv_path_NM="$NM"
1874 else
1875   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1876   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1877     test -z "$ac_dir" && ac_dir=.
1878     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1879     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1880       # Check to see if the nm accepts a BSD-compat flag.
1881       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1882       #   nm: unknown option "B" ignored
1883       # Tru64's nm complains that /dev/null is an invalid object file
1884       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1885         lt_cv_path_NM="$tmp_nm -B"
1886         break
1887       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1888         lt_cv_path_NM="$tmp_nm -p"
1889         break
1890       else
1891         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1892         continue # so that we can try to find one that supports BSD flags
1893       fi
1894     fi
1895   done
1896   IFS="$ac_save_ifs"
1897   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1898 fi
1899 fi
1900
1901 NM="$lt_cv_path_NM"
1902 echo "$ac_t""$NM" 1>&6
1903
1904 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1905 echo "configure:1906: checking how to recognise dependant libraries" >&5
1906 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1907   echo $ac_n "(cached) $ac_c" 1>&6
1908 else
1909   lt_cv_file_magic_cmd='$MAGIC_CMD'
1910 lt_cv_file_magic_test_file=
1911 lt_cv_deplibs_check_method='unknown'
1912 # Need to set the preceding variable on all platforms that support
1913 # interlibrary dependencies.
1914 # 'none' -- dependencies not supported.
1915 # `unknown' -- same as none, but documents that we really don't know.
1916 # 'pass_all' -- all dependencies passed with no checks.
1917 # 'test_compile' -- check by making test program.
1918 # 'file_magic [regex]' -- check by looking for files in library path
1919 # which responds to the $file_magic_cmd with a given egrep regex.
1920 # If you have `file' or equivalent on your system and you're not sure
1921 # whether `pass_all' will *always* work, you probably want this one.
1922
1923 case $host_os in
1924 aix*)
1925   lt_cv_deplibs_check_method=pass_all
1926   ;;
1927
1928 beos*)
1929   lt_cv_deplibs_check_method=pass_all
1930   ;;
1931
1932 bsdi4*)
1933   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1934   lt_cv_file_magic_cmd='/usr/bin/file -L'
1935   lt_cv_file_magic_test_file=/shlib/libc.so
1936   ;;
1937
1938 cygwin* | mingw* |pw32*)
1939   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1940   lt_cv_file_magic_cmd='$OBJDUMP -f'
1941   ;;
1942
1943 darwin* | rhapsody*)
1944   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1945   lt_cv_file_magic_cmd='/usr/bin/file -L'
1946   case "$host_os" in
1947   rhapsody* | darwin1.012)
1948     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1949     ;;
1950   *) # Darwin 1.3 on
1951     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1952     ;;
1953   esac
1954   ;;
1955
1956 freebsd* )
1957   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1958     case $host_cpu in
1959     i*86 )
1960       # Not sure whether the presence of OpenBSD here was a mistake.
1961       # Let's accept both of them until this is cleared up.
1962       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1963       lt_cv_file_magic_cmd=/usr/bin/file
1964       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1965       ;;
1966     esac
1967   else
1968     lt_cv_deplibs_check_method=pass_all
1969   fi
1970   ;;
1971
1972 gnu*)
1973   lt_cv_deplibs_check_method=pass_all
1974   ;;
1975
1976 hpux10.20*|hpux11*)
1977   case $host_cpu in
1978   hppa*)
1979     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1980     lt_cv_file_magic_cmd=/usr/bin/file
1981     lt_cv_file_magic_test_file=/usr/lib/libc.sl
1982     ;;
1983   ia64*)
1984     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1985     lt_cv_file_magic_cmd=/usr/bin/file
1986     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1987     ;;
1988   esac
1989   ;;
1990
1991 irix5* | irix6*)
1992   case $host_os in
1993   irix5*)
1994     # this will be overridden with pass_all, but let us keep it just in case
1995     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1996     ;;
1997   *)
1998     case $LD in
1999     *-32|*"-32 ") libmagic=32-bit;;
2000     *-n32|*"-n32 ") libmagic=N32;;
2001     *-64|*"-64 ") libmagic=64-bit;;
2002     *) libmagic=never-match;;
2003     esac
2004     # this will be overridden with pass_all, but let us keep it just in case
2005     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2006     ;;
2007   esac
2008   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2009   lt_cv_deplibs_check_method=pass_all
2010   ;;
2011
2012 # This must be Linux ELF.
2013 linux-gnu*)
2014   case $host_cpu in
2015   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2016     lt_cv_deplibs_check_method=pass_all ;;
2017   *)
2018     # glibc up to 2.1.1 does not perform some relocations on ARM
2019     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2020   esac
2021   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2022   ;;
2023
2024 netbsd*)
2025   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2026     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2027   else
2028     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2029   fi
2030   ;;
2031
2032 newsos6)
2033   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2034   lt_cv_file_magic_cmd=/usr/bin/file
2035   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2036   ;;
2037
2038 osf3* | osf4* | osf5*)
2039   # this will be overridden with pass_all, but let us keep it just in case
2040   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2041   lt_cv_file_magic_test_file=/shlib/libc.so
2042   lt_cv_deplibs_check_method=pass_all
2043   ;;
2044
2045 sco3.2v5*)
2046   lt_cv_deplibs_check_method=pass_all
2047   ;;
2048
2049 solaris*)
2050   lt_cv_deplibs_check_method=pass_all
2051   lt_cv_file_magic_test_file=/lib/libc.so
2052   ;;
2053
2054 sysv5uw[78]* | sysv4*uw2*)
2055   lt_cv_deplibs_check_method=pass_all
2056   ;;
2057
2058 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2059   case $host_vendor in
2060   ncr)
2061     lt_cv_deplibs_check_method=pass_all
2062     ;;
2063   motorola)
2064     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]'
2065     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2066     ;;
2067   esac
2068   ;;
2069 esac
2070
2071 fi
2072
2073 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2074 file_magic_cmd=$lt_cv_file_magic_cmd
2075 deplibs_check_method=$lt_cv_deplibs_check_method
2076
2077 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2078 echo "configure:2079: checking for object suffix" >&5
2079 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2080   echo $ac_n "(cached) $ac_c" 1>&6
2081 else
2082   rm -f conftest*
2083 echo 'int i = 1;' > conftest.$ac_ext
2084 if { (eval echo configure:2085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2085   for ac_file in conftest.*; do
2086     case $ac_file in
2087     *.c) ;;
2088     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2089     esac
2090   done
2091 else
2092   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2093 fi
2094 rm -f conftest*
2095 fi
2096
2097 echo "$ac_t""$ac_cv_objext" 1>&6
2098 OBJEXT=$ac_cv_objext
2099 ac_objext=$ac_cv_objext
2100
2101 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2102
2103 # Only perform the check for file, if the check method requires it
2104 case $deplibs_check_method in
2105 file_magic*)
2106   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2107     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2108 echo "configure:2109: checking for ${ac_tool_prefix}file" >&5
2109 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2110   echo $ac_n "(cached) $ac_c" 1>&6
2111 else
2112   case $MAGIC_CMD in
2113   /*)
2114   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2115   ;;
2116   ?:/*)
2117   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2118   ;;
2119   *)
2120   ac_save_MAGIC_CMD="$MAGIC_CMD"
2121   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2122   ac_dummy="/usr/bin:$PATH"
2123   for ac_dir in $ac_dummy; do
2124     test -z "$ac_dir" && ac_dir=.
2125     if test -f $ac_dir/${ac_tool_prefix}file; then
2126       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2127       if test -n "$file_magic_test_file"; then
2128         case $deplibs_check_method in
2129         "file_magic "*)
2130           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2131           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2132           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2133             egrep "$file_magic_regex" > /dev/null; then
2134             :
2135           else
2136             cat <<EOF 1>&2
2137
2138 *** Warning: the command libtool uses to detect shared libraries,
2139 *** $file_magic_cmd, produces output that libtool cannot recognize.
2140 *** The result is that libtool may fail to recognize shared libraries
2141 *** as such.  This will affect the creation of libtool libraries that
2142 *** depend on shared libraries, but programs linked with such libtool
2143 *** libraries will work regardless of this problem.  Nevertheless, you
2144 *** may want to report the problem to your system manager and/or to
2145 *** bug-libtool@gnu.org
2146
2147 EOF
2148           fi ;;
2149         esac
2150       fi
2151       break
2152     fi
2153   done
2154   IFS="$ac_save_ifs"
2155   MAGIC_CMD="$ac_save_MAGIC_CMD"
2156   ;;
2157 esac
2158 fi
2159
2160 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2161 if test -n "$MAGIC_CMD"; then
2162   echo "$ac_t""$MAGIC_CMD" 1>&6
2163 else
2164   echo "$ac_t""no" 1>&6
2165 fi
2166
2167 if test -z "$lt_cv_path_MAGIC_CMD"; then
2168   if test -n "$ac_tool_prefix"; then
2169     echo $ac_n "checking for file""... $ac_c" 1>&6
2170 echo "configure:2171: checking for file" >&5
2171 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2172   echo $ac_n "(cached) $ac_c" 1>&6
2173 else
2174   case $MAGIC_CMD in
2175   /*)
2176   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2177   ;;
2178   ?:/*)
2179   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2180   ;;
2181   *)
2182   ac_save_MAGIC_CMD="$MAGIC_CMD"
2183   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2184   ac_dummy="/usr/bin:$PATH"
2185   for ac_dir in $ac_dummy; do
2186     test -z "$ac_dir" && ac_dir=.
2187     if test -f $ac_dir/file; then
2188       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2189       if test -n "$file_magic_test_file"; then
2190         case $deplibs_check_method in
2191         "file_magic "*)
2192           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2193           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2194           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2195             egrep "$file_magic_regex" > /dev/null; then
2196             :
2197           else
2198             cat <<EOF 1>&2
2199
2200 *** Warning: the command libtool uses to detect shared libraries,
2201 *** $file_magic_cmd, produces output that libtool cannot recognize.
2202 *** The result is that libtool may fail to recognize shared libraries
2203 *** as such.  This will affect the creation of libtool libraries that
2204 *** depend on shared libraries, but programs linked with such libtool
2205 *** libraries will work regardless of this problem.  Nevertheless, you
2206 *** may want to report the problem to your system manager and/or to
2207 *** bug-libtool@gnu.org
2208
2209 EOF
2210           fi ;;
2211         esac
2212       fi
2213       break
2214     fi
2215   done
2216   IFS="$ac_save_ifs"
2217   MAGIC_CMD="$ac_save_MAGIC_CMD"
2218   ;;
2219 esac
2220 fi
2221
2222 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2223 if test -n "$MAGIC_CMD"; then
2224   echo "$ac_t""$MAGIC_CMD" 1>&6
2225 else
2226   echo "$ac_t""no" 1>&6
2227 fi
2228
2229   else
2230     MAGIC_CMD=:
2231   fi
2232 fi
2233
2234   fi
2235   ;;
2236 esac
2237
2238 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2239 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2240 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2241 echo "configure:2242: checking for $ac_word" >&5
2242 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2243   echo $ac_n "(cached) $ac_c" 1>&6
2244 else
2245   if test -n "$RANLIB"; then
2246   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2247 else
2248   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2249   ac_dummy="$PATH"
2250   for ac_dir in $ac_dummy; do
2251     test -z "$ac_dir" && ac_dir=.
2252     if test -f $ac_dir/$ac_word; then
2253       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2254       break
2255     fi
2256   done
2257   IFS="$ac_save_ifs"
2258 fi
2259 fi
2260 RANLIB="$ac_cv_prog_RANLIB"
2261 if test -n "$RANLIB"; then
2262   echo "$ac_t""$RANLIB" 1>&6
2263 else
2264   echo "$ac_t""no" 1>&6
2265 fi
2266
2267
2268 if test -z "$ac_cv_prog_RANLIB"; then
2269 if test -n "$ac_tool_prefix"; then
2270   # Extract the first word of "ranlib", so it can be a program name with args.
2271 set dummy ranlib; ac_word=$2
2272 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2273 echo "configure:2274: checking for $ac_word" >&5
2274 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2275   echo $ac_n "(cached) $ac_c" 1>&6
2276 else
2277   if test -n "$RANLIB"; then
2278   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2279 else
2280   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2281   ac_dummy="$PATH"
2282   for ac_dir in $ac_dummy; do
2283     test -z "$ac_dir" && ac_dir=.
2284     if test -f $ac_dir/$ac_word; then
2285       ac_cv_prog_RANLIB="ranlib"
2286       break
2287     fi
2288   done
2289   IFS="$ac_save_ifs"
2290   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2291 fi
2292 fi
2293 RANLIB="$ac_cv_prog_RANLIB"
2294 if test -n "$RANLIB"; then
2295   echo "$ac_t""$RANLIB" 1>&6
2296 else
2297   echo "$ac_t""no" 1>&6
2298 fi
2299
2300 else
2301   RANLIB=":"
2302 fi
2303 fi
2304
2305 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2306 set dummy ${ac_tool_prefix}strip; ac_word=$2
2307 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2308 echo "configure:2309: checking for $ac_word" >&5
2309 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2310   echo $ac_n "(cached) $ac_c" 1>&6
2311 else
2312   if test -n "$STRIP"; then
2313   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2314 else
2315   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2316   ac_dummy="$PATH"
2317   for ac_dir in $ac_dummy; do
2318     test -z "$ac_dir" && ac_dir=.
2319     if test -f $ac_dir/$ac_word; then
2320       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2321       break
2322     fi
2323   done
2324   IFS="$ac_save_ifs"
2325 fi
2326 fi
2327 STRIP="$ac_cv_prog_STRIP"
2328 if test -n "$STRIP"; then
2329   echo "$ac_t""$STRIP" 1>&6
2330 else
2331   echo "$ac_t""no" 1>&6
2332 fi
2333
2334
2335 if test -z "$ac_cv_prog_STRIP"; then
2336 if test -n "$ac_tool_prefix"; then
2337   # Extract the first word of "strip", so it can be a program name with args.
2338 set dummy strip; ac_word=$2
2339 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2340 echo "configure:2341: checking for $ac_word" >&5
2341 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2342   echo $ac_n "(cached) $ac_c" 1>&6
2343 else
2344   if test -n "$STRIP"; then
2345   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2346 else
2347   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2348   ac_dummy="$PATH"
2349   for ac_dir in $ac_dummy; do
2350     test -z "$ac_dir" && ac_dir=.
2351     if test -f $ac_dir/$ac_word; then
2352       ac_cv_prog_STRIP="strip"
2353       break
2354     fi
2355   done
2356   IFS="$ac_save_ifs"
2357   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2358 fi
2359 fi
2360 STRIP="$ac_cv_prog_STRIP"
2361 if test -n "$STRIP"; then
2362   echo "$ac_t""$STRIP" 1>&6
2363 else
2364   echo "$ac_t""no" 1>&6
2365 fi
2366
2367 else
2368   STRIP=":"
2369 fi
2370 fi
2371
2372
2373 # Check for any special flags to pass to ltconfig.
2374 libtool_flags="--cache-file=$cache_file"
2375 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2376 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2377 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2378 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2379 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2380 libtool_flags="$libtool_flags --enable-dlopen"
2381
2382 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2383 if test "${enable_libtool_lock+set}" = set; then
2384   enableval="$enable_libtool_lock"
2385   :
2386 fi
2387
2388 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2389 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2390
2391 # Check whether --with-pic or --without-pic was given.
2392 if test "${with_pic+set}" = set; then
2393   withval="$with_pic"
2394   pic_mode="$withval"
2395 else
2396   pic_mode=default
2397 fi
2398
2399 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2400 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2401
2402 # Some flags need to be propagated to the compiler or linker for good
2403 # libtool support.
2404 case $host in
2405 *-*-irix6*)
2406   # Find out which ABI we are using.
2407   echo '#line 2408 "configure"' > conftest.$ac_ext
2408   if { (eval echo configure:2409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2409     case `/usr/bin/file conftest.$ac_objext` in
2410     *32-bit*)
2411       LD="${LD-ld} -32"
2412       ;;
2413     *N32*)
2414       LD="${LD-ld} -n32"
2415       ;;
2416     *64-bit*)
2417       LD="${LD-ld} -64"
2418       ;;
2419     esac
2420   fi
2421   rm -rf conftest*
2422   ;;
2423
2424 ia64-*-hpux*)
2425   # Find out which ABI we are using.
2426   echo 'int i;' > conftest.$ac_ext
2427   if { (eval echo configure:2428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2428     case "`/usr/bin/file conftest.o`" in
2429     *ELF-32*)
2430       HPUX_IA64_MODE="32"
2431       ;;
2432     *ELF-64*)
2433       HPUX_IA64_MODE="64"
2434       ;;
2435     esac
2436   fi
2437   rm -rf conftest*
2438   ;;
2439
2440 *-*-sco3.2v5*)
2441   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2442   SAVE_CFLAGS="$CFLAGS"
2443   CFLAGS="$CFLAGS -belf"
2444   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2445 echo "configure:2446: checking whether the C compiler needs -belf" >&5
2446 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2447   echo $ac_n "(cached) $ac_c" 1>&6
2448 else
2449   
2450      ac_ext=c
2451 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2452 ac_cpp='$CPP $CPPFLAGS'
2453 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2454 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2455 cross_compiling=$ac_cv_prog_cc_cross
2456
2457      cat > conftest.$ac_ext <<EOF
2458 #line 2459 "configure"
2459 #include "confdefs.h"
2460
2461 int main() {
2462
2463 ; return 0; }
2464 EOF
2465 if { (eval echo configure:2466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2466   rm -rf conftest*
2467   lt_cv_cc_needs_belf=yes
2468 else
2469   echo "configure: failed program was:" >&5
2470   cat conftest.$ac_ext >&5
2471   rm -rf conftest*
2472   lt_cv_cc_needs_belf=no
2473 fi
2474 rm -f conftest*
2475      ac_ext=c
2476 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2477 ac_cpp='$CPP $CPPFLAGS'
2478 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2479 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2480 cross_compiling=$ac_cv_prog_cc_cross
2481
2482 fi
2483
2484 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2485   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2486     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2487     CFLAGS="$SAVE_CFLAGS"
2488   fi
2489   ;;
2490
2491
2492 esac
2493
2494 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2495 echo "configure:2496: checking how to run the C++ preprocessor" >&5
2496 if test -z "$CXXCPP"; then
2497 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2498   echo $ac_n "(cached) $ac_c" 1>&6
2499 else
2500   ac_ext=C
2501 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2502 ac_cpp='$CXXCPP $CPPFLAGS'
2503 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2504 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2505 cross_compiling=$ac_cv_prog_cxx_cross
2506   CXXCPP="${CXX-g++} -E"
2507   cat > conftest.$ac_ext <<EOF
2508 #line 2509 "configure"
2509 #include "confdefs.h"
2510 #include <stdlib.h>
2511 EOF
2512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2513 { (eval echo configure:2514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2515 if test -z "$ac_err"; then
2516   :
2517 else
2518   echo "$ac_err" >&5
2519   echo "configure: failed program was:" >&5
2520   cat conftest.$ac_ext >&5
2521   rm -rf conftest*
2522   CXXCPP=/lib/cpp
2523 fi
2524 rm -f conftest*
2525   ac_cv_prog_CXXCPP="$CXXCPP"
2526 ac_ext=c
2527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2528 ac_cpp='$CPP $CPPFLAGS'
2529 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2530 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2531 cross_compiling=$ac_cv_prog_cc_cross
2532 fi
2533 fi
2534 CXXCPP="$ac_cv_prog_CXXCPP"
2535 echo "$ac_t""$CXXCPP" 1>&6
2536
2537
2538 # Save cache, so that ltconfig can load it
2539 cat > confcache <<\EOF
2540 # This file is a shell script that caches the results of configure
2541 # tests run on this system so they can be shared between configure
2542 # scripts and configure runs.  It is not useful on other systems.
2543 # If it contains results you don't want to keep, you may remove or edit it.
2544 #
2545 # By default, configure uses ./config.cache as the cache file,
2546 # creating it if it does not exist already.  You can give configure
2547 # the --cache-file=FILE option to use a different cache file; that is
2548 # what configure does when it calls configure scripts in
2549 # subdirectories, so they share the cache.
2550 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2551 # config.status only pays attention to the cache file if you give it the
2552 # --recheck option to rerun configure.
2553 #
2554 EOF
2555 # The following way of writing the cache mishandles newlines in values,
2556 # but we know of no workaround that is simple, portable, and efficient.
2557 # So, don't put newlines in cache variables' values.
2558 # Ultrix sh set writes to stderr and can't be redirected directly,
2559 # and sets the high bit in the cache file unless we assign to the vars.
2560 (set) 2>&1 |
2561   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2562   *ac_space=\ *)
2563     # `set' does not quote correctly, so add quotes (double-quote substitution
2564     # turns \\\\ into \\, and sed turns \\ into \).
2565     sed -n \
2566       -e "s/'/'\\\\''/g" \
2567       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2568     ;;
2569   *)
2570     # `set' quotes correctly as required by POSIX, so do not add quotes.
2571     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2572     ;;
2573   esac >> confcache
2574 if cmp -s $cache_file confcache; then
2575   :
2576 else
2577   if test -w $cache_file; then
2578     echo "updating cache $cache_file"
2579     cat confcache > $cache_file
2580   else
2581     echo "not updating unwritable cache $cache_file"
2582   fi
2583 fi
2584 rm -f confcache
2585
2586
2587 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2588 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2589 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2590 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2591 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2592 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2593 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2594 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2595 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2596 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2597
2598 # Reload cache, that may have been modified by ltconfig
2599 if test -r "$cache_file"; then
2600   echo "loading cache $cache_file"
2601   . $cache_file
2602 else
2603   echo "creating cache $cache_file"
2604   > $cache_file
2605 fi
2606
2607
2608 # This can be used to rebuild libtool when needed
2609 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2610
2611 # Always use our own libtool.
2612 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2613
2614 # Redirect the config.log output again, so that the ltconfig log is not
2615 # clobbered by the next message.
2616 exec 5>>./config.log
2617
2618
2619
2620 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2621 lt_save_CC="$CC"
2622 lt_save_CFLAGS="$CFLAGS"
2623 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2624 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2625 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2626 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2627 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2628 deplibs_check_method="$deplibs_check_method" \
2629 file_magic_cmd="$file_magic_cmd" \
2630 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2631 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2632 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2633 CC="$lt_save_CC"
2634 CFLAGS="$lt_save_CFLAGS"
2635
2636 # Redirect the config.log output again, so that the ltconfig log is not
2637 # clobbered by the next message.
2638 exec 5>>./config.log
2639
2640   
2641
2642   
2643          
2644          
2645
2646
2647
2648 # Check for c++ or library specific bits that don't require linking.
2649 #GLIBCPP_CHECK_COMPILER_VERSION
2650 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2651 echo "configure:2652: checking for GNU make" >&5
2652 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2653   echo $ac_n "(cached) $ac_c" 1>&6
2654 else
2655   _cv_gnu_make_command='' ;
2656           for a in "${MAKE-make}" make gmake gnumake ; do
2657                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2658                   then
2659                           _cv_gnu_make_command=$a ;
2660                           break;
2661                   fi
2662           done ;
2663   
2664 fi
2665
2666 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2667   if test  "x$_cv_gnu_make_command" != "x"  ; then
2668           ifGNUmake='' ;
2669   else
2670           ifGNUmake='#' ;
2671   fi
2672   
2673
2674
2675 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2676 # Check whether --enable-debug or --disable-debug was given.
2677 if test "${enable_debug+set}" = set; then
2678   enableval="$enable_debug"
2679   case "${enableval}" in
2680  yes) enable_debug=yes ;;
2681  no)  enable_debug=no ;;
2682  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2683  esac
2684 else
2685   enable_debug=no
2686 fi
2687
2688 case "${enable_debug}" in
2689     yes) 
2690         DEBUG_FLAGS='-O0 -ggdb3'                        
2691         ;; 
2692     no)   
2693         DEBUG_FLAGS='-g'
2694         ;;
2695 esac
2696
2697
2698 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2699 echo "configure:2700: checking how to run the C preprocessor" >&5
2700 # On Suns, sometimes $CPP names a directory.
2701 if test -n "$CPP" && test -d "$CPP"; then
2702   CPP=
2703 fi
2704 if test -z "$CPP"; then
2705 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2706   echo $ac_n "(cached) $ac_c" 1>&6
2707 else
2708     # This must be in double quotes, not single quotes, because CPP may get
2709   # substituted into the Makefile and "${CC-cc}" will confuse make.
2710   CPP="${CC-cc} -E"
2711   # On the NeXT, cc -E runs the code through the compiler's parser,
2712   # not just through cpp.
2713   cat > conftest.$ac_ext <<EOF
2714 #line 2715 "configure"
2715 #include "confdefs.h"
2716 #include <assert.h>
2717 Syntax Error
2718 EOF
2719 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2720 { (eval echo configure:2721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2721 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2722 if test -z "$ac_err"; then
2723   :
2724 else
2725   echo "$ac_err" >&5
2726   echo "configure: failed program was:" >&5
2727   cat conftest.$ac_ext >&5
2728   rm -rf conftest*
2729   CPP="${CC-cc} -E -traditional-cpp"
2730   cat > conftest.$ac_ext <<EOF
2731 #line 2732 "configure"
2732 #include "confdefs.h"
2733 #include <assert.h>
2734 Syntax Error
2735 EOF
2736 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2737 { (eval echo configure:2738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2738 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2739 if test -z "$ac_err"; then
2740   :
2741 else
2742   echo "$ac_err" >&5
2743   echo "configure: failed program was:" >&5
2744   cat conftest.$ac_ext >&5
2745   rm -rf conftest*
2746   CPP="${CC-cc} -nologo -E"
2747   cat > conftest.$ac_ext <<EOF
2748 #line 2749 "configure"
2749 #include "confdefs.h"
2750 #include <assert.h>
2751 Syntax Error
2752 EOF
2753 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2754 { (eval echo configure:2755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2755 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2756 if test -z "$ac_err"; then
2757   :
2758 else
2759   echo "$ac_err" >&5
2760   echo "configure: failed program was:" >&5
2761   cat conftest.$ac_ext >&5
2762   rm -rf conftest*
2763   CPP=/lib/cpp
2764 fi
2765 rm -f conftest*
2766 fi
2767 rm -f conftest*
2768 fi
2769 rm -f conftest*
2770   ac_cv_prog_CPP="$CPP"
2771 fi
2772   CPP="$ac_cv_prog_CPP"
2773 else
2774   ac_cv_prog_CPP="$CPP"
2775 fi
2776 echo "$ac_t""$CPP" 1>&6
2777
2778
2779   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2780 echo "configure:2781: checking for cstdio to use" >&5
2781   # Check whether --enable-cstdio or --disable-cstdio was given.
2782 if test "${enable_cstdio+set}" = set; then
2783   enableval="$enable_cstdio"
2784   if test x$enable_cstdio = xno; then
2785      enable_cstdio=stdio
2786   fi
2787 else
2788   enable_cstdio=stdio
2789 fi
2790
2791
2792   enable_cstdio_flag=$enable_cstdio
2793
2794     case x${enable_cstdio_flag} in
2795     xlibio)
2796       CSTDIO_H=config/io/c_io_libio.h
2797       BASIC_FILE_H=config/io/basic_file_libio.h
2798       BASIC_FILE_CC=config/io/basic_file_libio.cc
2799       echo "$ac_t""libio" 1>&6
2800
2801       # see if we are on a system with libio native (ie, linux)
2802       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2803 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2804 echo "configure:2805: checking for libio.h" >&5
2805 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2806   echo $ac_n "(cached) $ac_c" 1>&6
2807 else
2808   cat > conftest.$ac_ext <<EOF
2809 #line 2810 "configure"
2810 #include "confdefs.h"
2811 #include <libio.h>
2812 EOF
2813 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2814 { (eval echo configure:2815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2815 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2816 if test -z "$ac_err"; then
2817   rm -rf conftest*
2818   eval "ac_cv_header_$ac_safe=yes"
2819 else
2820   echo "$ac_err" >&5
2821   echo "configure: failed program was:" >&5
2822   cat conftest.$ac_ext >&5
2823   rm -rf conftest*
2824   eval "ac_cv_header_$ac_safe=no"
2825 fi
2826 rm -f conftest*
2827 fi
2828 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2829   echo "$ac_t""yes" 1>&6
2830   has_libio=yes
2831 else
2832   echo "$ac_t""no" 1>&6
2833 has_libio=no
2834 fi
2835
2836
2837       # Need to check and see what version of glibc is being used. If
2838       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2839       # compile most of libio for linux systems.
2840       if test x$has_libio = x"yes"; then
2841         case "$target" in
2842           *-*-linux*)
2843               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2844 echo "configure:2845: checking for glibc version >= 2.2" >&5
2845               cat > conftest.$ac_ext <<EOF
2846 #line 2847 "configure"
2847 #include "confdefs.h"
2848
2849             #include <features.h>
2850               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2851                     ok
2852               #endif
2853               
2854 EOF
2855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2856   egrep "ok" >/dev/null 2>&1; then
2857   rm -rf conftest*
2858   glibc_satisfactory=yes
2859 else
2860   rm -rf conftest*
2861   glibc_satisfactory=no
2862 fi
2863 rm -f conftest*
2864
2865               echo "$ac_t""$glibc_satisfactory" 1>&6
2866             ;;
2867         esac
2868
2869         # XXX at the moment, admit defeat and force the recompilation
2870         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2871         glibc_satisfactory=no        
2872
2873         if test x$glibc_satisfactory = x"yes"; then
2874            need_libio=no
2875            need_wlibio=no        
2876         else
2877            need_libio=yes
2878            # bkoz XXX need to add checks to enable this
2879            # pme XXX here's a first pass at such a check
2880            if test x$enable_c_mbchar != xno; then
2881               need_wlibio=yes
2882            else
2883               need_wlibio=no
2884            fi
2885         fi
2886
2887       else
2888          # Using libio, but <libio.h> doesn't exist on the target system. . .
2889          need_libio=yes
2890          # bkoz XXX need to add checks to enable this
2891          # pme XXX here's a first pass at such a check
2892          if test x$enable_c_mbchar != xno; then
2893              need_wlibio=yes
2894          else
2895              need_wlibio=no
2896          fi
2897       fi
2898       ;;
2899     xstdio | x | xno | xnone | xyes)
2900       # default
2901       CSTDIO_H=config/io/c_io_stdio.h
2902       BASIC_FILE_H=config/io/basic_file_stdio.h
2903       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2904       echo "$ac_t""stdio" 1>&6
2905
2906       # We're not using stdio.
2907       need_libio=no
2908       need_wlibio=no
2909       ;;
2910     *)
2911       echo "$enable_cstdio is an unknown io package" 1>&2
2912       exit 1
2913       ;;
2914   esac
2915   
2916   
2917   
2918
2919   # 2000-08-04 bkoz hack
2920   CCODECVT_C=config/io/c_io_libio_codecvt.c
2921   
2922   # 2000-08-04 bkoz hack
2923
2924   
2925
2926 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2927   GLIBCPP_BUILD_LIBIO_TRUE=
2928   GLIBCPP_BUILD_LIBIO_FALSE='#'
2929 else
2930   GLIBCPP_BUILD_LIBIO_TRUE='#'
2931   GLIBCPP_BUILD_LIBIO_FALSE=
2932 fi
2933   
2934
2935 if test "$need_libio" = yes; then
2936   GLIBCPP_NEED_LIBIO_TRUE=
2937   GLIBCPP_NEED_LIBIO_FALSE='#'
2938 else
2939   GLIBCPP_NEED_LIBIO_TRUE='#'
2940   GLIBCPP_NEED_LIBIO_FALSE=
2941 fi
2942   
2943
2944 if test "$need_wlibio" = yes; then
2945   GLIBCPP_NEED_WLIBIO_TRUE=
2946   GLIBCPP_NEED_WLIBIO_FALSE='#'
2947 else
2948   GLIBCPP_NEED_WLIBIO_TRUE='#'
2949   GLIBCPP_NEED_WLIBIO_FALSE=
2950 fi
2951   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2952     libio_la=../libio/libio.la
2953   else
2954     libio_la=
2955   fi
2956   
2957
2958
2959   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2960 echo "configure:2961: checking for clocale to use" >&5
2961   # Check whether --enable-clocale or --disable-clocale was given.
2962 if test "${enable_clocale+set}" = set; then
2963   enableval="$enable_clocale"
2964   if test x$enable_clocale = xno; then
2965      enable_clocale=no
2966   fi
2967 else
2968   enable_clocale=no
2969 fi
2970
2971
2972   enable_clocale_flag=$enable_clocale
2973
2974       if test x$enable_clocale_flag = xno; then
2975     case x${target_os} in
2976       xlinux* | xgnu*)
2977         cat > conftest.$ac_ext <<EOF
2978 #line 2979 "configure"
2979 #include "confdefs.h"
2980
2981         #include <features.h>
2982         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2983           _GLIBCPP_ok
2984         #endif
2985         
2986 EOF
2987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2988   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
2989   rm -rf conftest*
2990   enable_clocale_flag=gnu
2991 else
2992   rm -rf conftest*
2993   enable_clocale_flag=generic
2994 fi
2995 rm -f conftest*
2996
2997
2998         # Test for bugs early in glibc-2.2.x series
2999         if test x$enable_clocale_flag = xgnu; then
3000           if test "$cross_compiling" = yes; then
3001   enable_clocale_flag=generic
3002 else
3003   cat > conftest.$ac_ext <<EOF
3004 #line 3005 "configure"
3005 #include "confdefs.h"
3006
3007           #define _GNU_SOURCE 1
3008           #include <locale.h>
3009           int main()
3010           {
3011             const char __one[] = "Äuglein Augmen";
3012             const char __two[] = "Äuglein";
3013             int i;
3014             int j;
3015             __locale_t  loc;
3016             __locale_t  loc_dup;
3017             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3018             loc_dup = __duplocale(loc);
3019             i = __strcoll_l(__one, __two, loc);
3020             j = __strcoll_l(__one, __two, loc_dup);
3021             return 0;
3022           }
3023           
3024 EOF
3025 if { (eval echo configure:3026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3026 then
3027   enable_clocale_flag=gnu
3028 else
3029   echo "configure: failed program was:" >&5
3030   cat conftest.$ac_ext >&5
3031   rm -fr conftest*
3032   enable_clocale_flag=generic
3033 fi
3034 rm -fr conftest*
3035 fi
3036
3037         fi
3038
3039         # ... at some point put __strxfrm_l tests in as well.
3040         ;;
3041       *)
3042         enable_clocale_flag=generic
3043         ;;
3044     esac
3045   fi
3046
3047     # Check whether --enable-nls or --disable-nls was given.
3048 if test "${enable_nls+set}" = set; then
3049   enableval="$enable_nls"
3050   :
3051 else
3052   enable_nls=yes
3053 fi
3054
3055   USE_NLS=no
3056
3057     case x${enable_clocale_flag} in
3058     xgeneric)
3059       echo "$ac_t""generic" 1>&6
3060
3061       CLOCALE_H=config/locale/generic/c_locale.h
3062       CLOCALE_CC=config/locale/generic/c_locale.cc
3063       CCODECVT_H=config/locale/generic/codecvt_specializations.h
3064       CCOLLATE_CC=config/locale/generic/collate_members.cc
3065       CCTYPE_CC=config/locale/generic/ctype_members.cc
3066       CMESSAGES_H=config/locale/generic/messages_members.h
3067       CMESSAGES_CC=config/locale/generic/messages_members.cc
3068       CMONEY_CC=config/locale/generic/monetary_members.cc
3069       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3070       CTIME_CC=config/locale/generic/time_members.cc
3071       ;;
3072     xgnu)
3073       echo "$ac_t""gnu" 1>&6
3074
3075       # Declare intention to use gettext, and add support for specific
3076       # languages.
3077       # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3078       ALL_LINGUAS="de fr"
3079
3080       # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3081       # Extract the first word of "msgfmt", so it can be a program name with args.
3082 set dummy msgfmt; ac_word=$2
3083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3084 echo "configure:3085: checking for $ac_word" >&5
3085 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3086   echo $ac_n "(cached) $ac_c" 1>&6
3087 else
3088   if test -n "$check_msgfmt"; then
3089   ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3090 else
3091   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3092   ac_dummy="$PATH"
3093   for ac_dir in $ac_dummy; do
3094     test -z "$ac_dir" && ac_dir=.
3095     if test -f $ac_dir/$ac_word; then
3096       ac_cv_prog_check_msgfmt="yes"
3097       break
3098     fi
3099   done
3100   IFS="$ac_save_ifs"
3101   test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3102 fi
3103 fi
3104 check_msgfmt="$ac_cv_prog_check_msgfmt"
3105 if test -n "$check_msgfmt"; then
3106   echo "$ac_t""$check_msgfmt" 1>&6
3107 else
3108   echo "$ac_t""no" 1>&6
3109 fi
3110
3111       if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3112         USE_NLS=yes
3113       fi
3114       # Export the build objects.
3115       for ling in $ALL_LINGUAS; do \
3116         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3117         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3118       done
3119       
3120       
3121
3122       CLOCALE_H=config/locale/gnu/c_locale.h
3123       CLOCALE_CC=config/locale/gnu/c_locale.cc
3124       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3125       CCOLLATE_CC=config/locale/gnu/collate_members.cc
3126       CCTYPE_CC=config/locale/gnu/ctype_members.cc
3127       CMESSAGES_H=config/locale/gnu/messages_members.h
3128       CMESSAGES_CC=config/locale/gnu/messages_members.cc
3129       CMONEY_CC=config/locale/gnu/monetary_members.cc
3130       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3131       CTIME_CC=config/locale/gnu/time_members.cc
3132       ;;
3133     xieee_1003.1-2001)
3134       echo "$ac_t""generic" 1>&6
3135
3136       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3137       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3138       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3139       CCOLLATE_CC=config/locale/generic/collate_members.cc
3140       CCTYPE_CC=config/locale/generic/ctype_members.cc
3141       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3142       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3143       CMONEY_CC=config/locale/generic/monetary_members.cc
3144       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3145       CTIME_CC=config/locale/generic/time_members.cc
3146       ;;
3147     *)
3148       echo "$enable_clocale is an unknown locale package" 1>&2
3149       exit 1
3150       ;;
3151   esac
3152
3153   # This is where the testsuite looks for locale catalogs, using the
3154   # -DLOCALEDIR define during testsuite compilation.
3155   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3156   
3157
3158   
3159   
3160   
3161   
3162   
3163   
3164   
3165   
3166   
3167   
3168   
3169
3170 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3171 if test "${enable_c_mbchar+set}" = set; then
3172   enableval="$enable_c_mbchar"
3173   case "$enableval" in
3174  yes) enable_c_mbchar=yes ;;
3175  no)  enable_c_mbchar=no ;;
3176  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3177  esac
3178 else
3179   enable_c_mbchar=yes
3180 fi
3181
3182   
3183   # Check whether --enable-c99 or --disable-c99 was given.
3184 if test "${enable_c99+set}" = set; then
3185   enableval="$enable_c99"
3186     case "$enableval" in
3187    yes) enable_c99=yes ;;
3188    no)  enable_c99=no ;;
3189    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3190    esac
3191 else
3192   enable_c99=yes
3193 fi
3194  
3195   
3196   ac_ext=C
3197 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3198 ac_cpp='$CXXCPP $CPPFLAGS'
3199 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3200 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3201 cross_compiling=$ac_cv_prog_cxx_cross
3202
3203
3204   # Check for the existence of <math.h> functions used if C99 is enabled.
3205   ac_c99_math=yes;
3206   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3207 echo "configure:3208: checking for ISO C99 support in <math.h>" >&5
3208   cat > conftest.$ac_ext <<EOF
3209 #line 3210 "configure"
3210 #include "confdefs.h"
3211 #include <math.h>
3212 int main() {
3213 fpclassify(0.0);
3214 ; return 0; }
3215 EOF
3216 if { (eval echo configure:3217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3217   :
3218 else
3219   echo "configure: failed program was:" >&5
3220   cat conftest.$ac_ext >&5
3221   rm -rf conftest*
3222   ac_c99_math=no
3223 fi
3224 rm -f conftest*
3225   cat > conftest.$ac_ext <<EOF
3226 #line 3227 "configure"
3227 #include "confdefs.h"
3228 #include <math.h>
3229 int main() {
3230 isfinite(0.0);
3231 ; return 0; }
3232 EOF
3233 if { (eval echo configure:3234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3234   :
3235 else
3236   echo "configure: failed program was:" >&5
3237   cat conftest.$ac_ext >&5
3238   rm -rf conftest*
3239   ac_c99_math=no
3240 fi
3241 rm -f conftest*
3242   cat > conftest.$ac_ext <<EOF
3243 #line 3244 "configure"
3244 #include "confdefs.h"
3245 #include <math.h>
3246 int main() {
3247 isinf(0.0);
3248 ; return 0; }
3249 EOF
3250 if { (eval echo configure:3251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3251   :
3252 else
3253   echo "configure: failed program was:" >&5
3254   cat conftest.$ac_ext >&5
3255   rm -rf conftest*
3256   ac_c99_math=no
3257 fi
3258 rm -f conftest*
3259   cat > conftest.$ac_ext <<EOF
3260 #line 3261 "configure"
3261 #include "confdefs.h"
3262 #include <math.h>
3263 int main() {
3264 isnan(0.0);
3265 ; return 0; }
3266 EOF
3267 if { (eval echo configure:3268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3268   :
3269 else
3270   echo "configure: failed program was:" >&5
3271   cat conftest.$ac_ext >&5
3272   rm -rf conftest*
3273   ac_c99_math=no
3274 fi
3275 rm -f conftest*
3276   cat > conftest.$ac_ext <<EOF
3277 #line 3278 "configure"
3278 #include "confdefs.h"
3279 #include <math.h>
3280 int main() {
3281 isnormal(0.0);
3282 ; return 0; }
3283 EOF
3284 if { (eval echo configure:3285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3285   :
3286 else
3287   echo "configure: failed program was:" >&5
3288   cat conftest.$ac_ext >&5
3289   rm -rf conftest*
3290   ac_c99_math=no
3291 fi
3292 rm -f conftest*
3293   cat > conftest.$ac_ext <<EOF
3294 #line 3295 "configure"
3295 #include "confdefs.h"
3296 #include <math.h>
3297 int main() {
3298 signbit(0.0);
3299 ; return 0; }
3300 EOF
3301 if { (eval echo configure:3302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3302   :
3303 else
3304   echo "configure: failed program was:" >&5
3305   cat conftest.$ac_ext >&5
3306   rm -rf conftest*
3307   ac_c99_math=no
3308 fi
3309 rm -f conftest*
3310   cat > conftest.$ac_ext <<EOF
3311 #line 3312 "configure"
3312 #include "confdefs.h"
3313 #include <math.h>
3314 int main() {
3315 isgreater(0.0,0.0);
3316 ; return 0; }
3317 EOF
3318 if { (eval echo configure:3319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3319   :
3320 else
3321   echo "configure: failed program was:" >&5
3322   cat conftest.$ac_ext >&5
3323   rm -rf conftest*
3324   ac_c99_math=no
3325 fi
3326 rm -f conftest*
3327   cat > conftest.$ac_ext <<EOF
3328 #line 3329 "configure"
3329 #include "confdefs.h"
3330 #include <math.h>
3331 int main() {
3332 isgreaterequal(0.0,0.0);
3333 ; return 0; }
3334 EOF
3335 if { (eval echo configure:3336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3336   :
3337 else
3338   echo "configure: failed program was:" >&5
3339   cat conftest.$ac_ext >&5
3340   rm -rf conftest*
3341   ac_c99_math=no
3342 fi
3343 rm -f conftest*
3344   cat > conftest.$ac_ext <<EOF
3345 #line 3346 "configure"
3346 #include "confdefs.h"
3347 #include <math.h>
3348 int main() {
3349 isless(0.0,0.0);
3350 ; return 0; }
3351 EOF
3352 if { (eval echo configure:3353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3353   :
3354 else
3355   echo "configure: failed program was:" >&5
3356   cat conftest.$ac_ext >&5
3357   rm -rf conftest*
3358   ac_c99_math=no
3359 fi
3360 rm -f conftest*
3361   cat > conftest.$ac_ext <<EOF
3362 #line 3363 "configure"
3363 #include "confdefs.h"
3364 #include <math.h>
3365 int main() {
3366 islessequal(0.0,0.0);
3367 ; return 0; }
3368 EOF
3369 if { (eval echo configure:3370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3370   :
3371 else
3372   echo "configure: failed program was:" >&5
3373   cat conftest.$ac_ext >&5
3374   rm -rf conftest*
3375   ac_c99_math=no
3376 fi
3377 rm -f conftest*
3378   cat > conftest.$ac_ext <<EOF
3379 #line 3380 "configure"
3380 #include "confdefs.h"
3381 #include <math.h>
3382 int main() {
3383 islessgreater(0.0,0.0);
3384 ; return 0; }
3385 EOF
3386 if { (eval echo configure:3387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3387   :
3388 else
3389   echo "configure: failed program was:" >&5
3390   cat conftest.$ac_ext >&5
3391   rm -rf conftest*
3392   ac_c99_math=no
3393 fi
3394 rm -f conftest*
3395   cat > conftest.$ac_ext <<EOF
3396 #line 3397 "configure"
3397 #include "confdefs.h"
3398 #include <math.h>
3399 int main() {
3400 isunordered(0.0,0.0);
3401 ; return 0; }
3402 EOF
3403 if { (eval echo configure:3404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3404   :
3405 else
3406   echo "configure: failed program was:" >&5
3407   cat conftest.$ac_ext >&5
3408   rm -rf conftest*
3409   ac_c99_math=no
3410 fi
3411 rm -f conftest*
3412   echo "$ac_t""$ac_c99_math" 1>&6
3413
3414   # Check for the existence in <stdio.h> of vscanf, et. al.
3415   ac_c99_stdio=yes;
3416   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3417 echo "configure:3418: checking for ISO C99 support in <stdio.h>" >&5
3418   cat > conftest.$ac_ext <<EOF
3419 #line 3420 "configure"
3420 #include "confdefs.h"
3421 #include <stdio.h>
3422 int main() {
3423 snprintf("12", 0, "%i");
3424 ; return 0; }
3425 EOF
3426 if { (eval echo configure:3427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3427   :
3428 else
3429   echo "configure: failed program was:" >&5
3430   cat conftest.$ac_ext >&5
3431   rm -rf conftest*
3432   ac_c99_stdio=no
3433 fi
3434 rm -f conftest*
3435   cat > conftest.$ac_ext <<EOF
3436 #line 3437 "configure"
3437 #include "confdefs.h"
3438 #include <stdio.h>
3439                   #include <stdarg.h>
3440                   void foo(char* fmt, ...)
3441                   {va_list args; va_start(args, fmt);
3442                   vfscanf(stderr, "%i", args);}
3443 int main() {
3444
3445 ; return 0; }
3446 EOF
3447 if { (eval echo configure:3448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3448   :
3449 else
3450   echo "configure: failed program was:" >&5
3451   cat conftest.$ac_ext >&5
3452   rm -rf conftest*
3453   ac_c99_stdio=no
3454 fi
3455 rm -f conftest*
3456   cat > conftest.$ac_ext <<EOF
3457 #line 3458 "configure"
3458 #include "confdefs.h"
3459 #include <stdio.h>
3460                   #include <stdarg.h>
3461                   void foo(char* fmt, ...)
3462                   {va_list args; va_start(args, fmt);
3463                   vscanf("%i", args);}
3464 int main() {
3465
3466 ; return 0; }
3467 EOF
3468 if { (eval echo configure:3469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3469   :
3470 else
3471   echo "configure: failed program was:" >&5
3472   cat conftest.$ac_ext >&5
3473   rm -rf conftest*
3474   ac_c99_stdio=no
3475 fi
3476 rm -f conftest*
3477   cat > conftest.$ac_ext <<EOF
3478 #line 3479 "configure"
3479 #include "confdefs.h"
3480 #include <stdio.h>
3481                   #include <stdarg.h>
3482                   void foo(char* fmt, ...)
3483                   {va_list args; va_start(args, fmt);
3484                   vsnprintf(fmt, 0, "%i", args);}
3485 int main() {
3486
3487 ; return 0; }
3488 EOF
3489 if { (eval echo configure:3490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3490   :
3491 else
3492   echo "configure: failed program was:" >&5
3493   cat conftest.$ac_ext >&5
3494   rm -rf conftest*
3495   ac_c99_stdio=no
3496 fi
3497 rm -f conftest*
3498   cat > conftest.$ac_ext <<EOF
3499 #line 3500 "configure"
3500 #include "confdefs.h"
3501 #include <stdio.h>
3502                   #include <stdarg.h>
3503                   void foo(char* fmt, ...)
3504                   {va_list args; va_start(args, fmt);
3505                   vsscanf(fmt, "%i", args);}
3506 int main() {
3507
3508 ; return 0; }
3509 EOF
3510 if { (eval echo configure:3511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3511   :
3512 else
3513   echo "configure: failed program was:" >&5
3514   cat conftest.$ac_ext >&5
3515   rm -rf conftest*
3516   ac_c99_stdio=no
3517 fi
3518 rm -f conftest*
3519   echo "$ac_t""$ac_c99_stdio" 1>&6
3520
3521   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3522   ac_c99_stdlib=yes;
3523   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3524 echo "configure:3525: checking for lldiv_t declaration" >&5
3525   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3526   echo $ac_n "(cached) $ac_c" 1>&6
3527 else
3528   
3529   cat > conftest.$ac_ext <<EOF
3530 #line 3531 "configure"
3531 #include "confdefs.h"
3532 #include <stdlib.h>
3533 int main() {
3534  lldiv_t mydivt;
3535 ; return 0; }
3536 EOF
3537 if { (eval echo configure:3538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3538   rm -rf conftest*
3539   ac_c99_lldiv_t=yes
3540 else
3541   echo "configure: failed program was:" >&5
3542   cat conftest.$ac_ext >&5
3543   rm -rf conftest*
3544   ac_c99_lldiv_t=no
3545 fi
3546 rm -f conftest*
3547   
3548 fi
3549
3550   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3551
3552   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3553 echo "configure:3554: checking for ISO C99 support in <stdlib.h>" >&5
3554   cat > conftest.$ac_ext <<EOF
3555 #line 3556 "configure"
3556 #include "confdefs.h"
3557 #include <stdlib.h>
3558 int main() {
3559 char* tmp; strtof("gnu", &tmp);
3560 ; return 0; }
3561 EOF
3562 if { (eval echo configure:3563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3563   :
3564 else
3565   echo "configure: failed program was:" >&5
3566   cat conftest.$ac_ext >&5
3567   rm -rf conftest*
3568   ac_c99_stdlib=no
3569 fi
3570 rm -f conftest*
3571   cat > conftest.$ac_ext <<EOF
3572 #line 3573 "configure"
3573 #include "confdefs.h"
3574 #include <stdlib.h>
3575 int main() {
3576 char* tmp; strtold("gnu", &tmp);
3577 ; return 0; }
3578 EOF
3579 if { (eval echo configure:3580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3580   :
3581 else
3582   echo "configure: failed program was:" >&5
3583   cat conftest.$ac_ext >&5
3584   rm -rf conftest*
3585   ac_c99_stdlib=no
3586 fi
3587 rm -f conftest*
3588   cat > conftest.$ac_ext <<EOF
3589 #line 3590 "configure"
3590 #include "confdefs.h"
3591 #include <stdlib.h>
3592 int main() {
3593 llabs(10);
3594 ; return 0; }
3595 EOF
3596 if { (eval echo configure:3597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3597   :
3598 else
3599   echo "configure: failed program was:" >&5
3600   cat conftest.$ac_ext >&5
3601   rm -rf conftest*
3602   ac_c99_stdlib=no
3603 fi
3604 rm -f conftest*
3605   cat > conftest.$ac_ext <<EOF
3606 #line 3607 "configure"
3607 #include "confdefs.h"
3608 #include <stdlib.h>
3609 int main() {
3610 lldiv(10,1);
3611 ; return 0; }
3612 EOF
3613 if { (eval echo configure:3614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3614   :
3615 else
3616   echo "configure: failed program was:" >&5
3617   cat conftest.$ac_ext >&5
3618   rm -rf conftest*
3619   ac_c99_stdlib=no
3620 fi
3621 rm -f conftest*
3622   cat > conftest.$ac_ext <<EOF
3623 #line 3624 "configure"
3624 #include "confdefs.h"
3625 #include <stdlib.h>
3626 int main() {
3627 atoll("10");
3628 ; return 0; }
3629 EOF
3630 if { (eval echo configure:3631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3631   :
3632 else
3633   echo "configure: failed program was:" >&5
3634   cat conftest.$ac_ext >&5
3635   rm -rf conftest*
3636   ac_c99_stdlib=no
3637 fi
3638 rm -f conftest*
3639   cat > conftest.$ac_ext <<EOF
3640 #line 3641 "configure"
3641 #include "confdefs.h"
3642 #include <stdlib.h>
3643 int main() {
3644 _Exit(0);
3645 ; return 0; }
3646 EOF
3647 if { (eval echo configure:3648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3648   :
3649 else
3650   echo "configure: failed program was:" >&5
3651   cat conftest.$ac_ext >&5
3652   rm -rf conftest*
3653   ac_c99_stdlib=no
3654 fi
3655 rm -f conftest*
3656   if test x"$ac_c99_lldiv_t" = x"no"; then
3657     ac_c99_stdlib=no; 
3658   fi; 
3659   echo "$ac_t""$ac_c99_stdlib" 1>&6
3660
3661   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3662   # XXX the wchar.h checks should be rolled into the general C99 bits.
3663   ac_c99_wchar=yes;
3664   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3665 echo "configure:3666: checking for additional ISO C99 support in <wchar.h>" >&5
3666   cat > conftest.$ac_ext <<EOF
3667 #line 3668 "configure"
3668 #include "confdefs.h"
3669 #include <wchar.h>
3670 int main() {
3671 wcstold(L"10.0", NULL);
3672 ; return 0; }
3673 EOF
3674 if { (eval echo configure:3675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3675   :
3676 else
3677   echo "configure: failed program was:" >&5
3678   cat conftest.$ac_ext >&5
3679   rm -rf conftest*
3680   ac_c99_wchar=no
3681 fi
3682 rm -f conftest*
3683   cat > conftest.$ac_ext <<EOF
3684 #line 3685 "configure"
3685 #include "confdefs.h"
3686 #include <wchar.h>
3687 int main() {
3688 wcstoll(L"10", NULL, 10);
3689 ; return 0; }
3690 EOF
3691 if { (eval echo configure:3692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3692   :
3693 else
3694   echo "configure: failed program was:" >&5
3695   cat conftest.$ac_ext >&5
3696   rm -rf conftest*
3697   ac_c99_wchar=no
3698 fi
3699 rm -f conftest*
3700   cat > conftest.$ac_ext <<EOF
3701 #line 3702 "configure"
3702 #include "confdefs.h"
3703 #include <wchar.h>
3704 int main() {
3705 wcstoull(L"10", NULL, 10);
3706 ; return 0; }
3707 EOF
3708 if { (eval echo configure:3709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3709   :
3710 else
3711   echo "configure: failed program was:" >&5
3712   cat conftest.$ac_ext >&5
3713   rm -rf conftest*
3714   ac_c99_wchar=no
3715 fi
3716 rm -f conftest*
3717   echo "$ac_t""$ac_c99_wchar" 1>&6
3718
3719   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3720 echo "configure:3721: checking for enabled ISO C99 support" >&5
3721   if test x"$ac_c99_math" = x"no" ||
3722      test x"$ac_c99_stdio" = x"no" ||
3723      test x"$ac_c99_stdlib" = x"no" ||
3724      test x"$ac_c99_wchar" = x"no"; then
3725     enable_c99=no; 
3726   fi; 
3727   echo "$ac_t""$enable_c99" 1>&6
3728
3729   # Option parsed, now set things appropriately
3730   if test x"$enable_c99" = x"yes"; then
3731     cat >> confdefs.h <<\EOF
3732 #define _GLIBCPP_USE_C99 1
3733 EOF
3734
3735   fi
3736
3737   ac_ext=c
3738 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3739 ac_cpp='$CPP $CPPFLAGS'
3740 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3741 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3742 cross_compiling=$ac_cv_prog_cc_cross
3743
3744
3745   
3746   # Check whether --enable-long-long or --disable-long-long was given.
3747 if test "${enable_long_long+set}" = set; then
3748   enableval="$enable_long_long"
3749     case "$enableval" in
3750    yes) enable_long_long=yes ;;
3751    no)  enable_long_long=no ;;
3752    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3753    esac
3754 else
3755   enable_long_long=yes
3756 fi
3757
3758   
3759   ac_ext=C
3760 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3761 ac_cpp='$CXXCPP $CPPFLAGS'
3762 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3763 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3764 cross_compiling=$ac_cv_prog_cxx_cross
3765
3766
3767   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3768 echo "configure:3769: checking for enabled long long I/O support" >&5
3769   # iostreams require strtoll, strtoull to compile
3770   cat > conftest.$ac_ext <<EOF
3771 #line 3772 "configure"
3772 #include "confdefs.h"
3773 #include <stdlib.h>
3774 int main() {
3775 char* tmp; strtoll("gnu", &tmp, 10);
3776 ; return 0; }
3777 EOF
3778 if { (eval echo configure:3779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3779   :
3780 else
3781   echo "configure: failed program was:" >&5
3782   cat conftest.$ac_ext >&5
3783   rm -rf conftest*
3784   enable_long_long=no
3785 fi
3786 rm -f conftest*
3787   cat > conftest.$ac_ext <<EOF
3788 #line 3789 "configure"
3789 #include "confdefs.h"
3790 #include <stdlib.h>
3791 int main() {
3792 char* tmp; strtoull("gnu", &tmp, 10);
3793 ; return 0; }
3794 EOF
3795 if { (eval echo configure:3796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3796   :
3797 else
3798   echo "configure: failed program was:" >&5
3799   cat conftest.$ac_ext >&5
3800   rm -rf conftest*
3801   enable_long_long=no
3802 fi
3803 rm -f conftest*
3804
3805   # Option parsed, now set things appropriately
3806   if test x"$enable_long_long" = xyes; then
3807     cat >> confdefs.h <<\EOF
3808 #define _GLIBCPP_USE_LONG_LONG 1
3809 EOF
3810
3811   fi
3812   echo "$ac_t""$enable_long_long" 1>&6
3813
3814   ac_ext=c
3815 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3816 ac_cpp='$CPP $CPPFLAGS'
3817 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3818 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3819 cross_compiling=$ac_cv_prog_cc_cross
3820
3821
3822 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3823 echo "configure:3824: checking for c header strategy to use" >&5
3824 # Check whether --enable-cheaders or --disable-cheaders was given.
3825 if test "${enable_cheaders+set}" = set; then
3826   enableval="$enable_cheaders"
3827   
3828   case "$enableval" in
3829    c) 
3830         enable_cheaders=c 
3831         ;;
3832    c_std)  
3833         enable_cheaders=c_std 
3834         ;;
3835    c_shadow)  
3836         enable_cheaders=c_shadow 
3837         ;;
3838    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3839         ;;
3840   esac
3841 else
3842   enable_cheaders=c_std
3843 fi
3844
3845   echo "$ac_t""$enable_cheaders" 1>&6
3846
3847     case "$enable_cheaders" in
3848     c_shadow) 
3849         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3850         ;;
3851     c_std)   
3852         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3853         ;;
3854     c)   
3855         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3856         ;;
3857   esac
3858
3859   
3860   
3861
3862 if test "$enable_cheaders" = c; then
3863   GLIBCPP_C_HEADERS_C_TRUE=
3864   GLIBCPP_C_HEADERS_C_FALSE='#'
3865 else
3866   GLIBCPP_C_HEADERS_C_TRUE='#'
3867   GLIBCPP_C_HEADERS_C_FALSE=
3868 fi
3869   
3870
3871 if test "$enable_cheaders" = c_std; then
3872   GLIBCPP_C_HEADERS_C_STD_TRUE=
3873   GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3874 else
3875   GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3876   GLIBCPP_C_HEADERS_C_STD_FALSE=
3877 fi
3878   
3879
3880 if test "$c_compatibility" = yes; then
3881   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3882   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3883 else
3884   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3885   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3886 fi
3887
3888
3889   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3890 echo "configure:3891: checking for thread model used by GCC" >&5
3891   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3892   echo "$ac_t""$target_thread_file" 1>&6
3893
3894   if test $target_thread_file != single; then
3895     cat >> confdefs.h <<\EOF
3896 #define HAVE_GTHR_DEFAULT 1
3897 EOF
3898
3899     cat >> confdefs.h <<\EOF
3900 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3901 EOF
3902
3903   fi
3904
3905   glibcpp_thread_h=gthr-$target_thread_file.h
3906   
3907
3908 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3909 if test "${enable_cxx_flags+set}" = set; then
3910   enableval="$enable_cxx_flags"
3911   case "x$enableval" in
3912  xyes)   
3913         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3914  xno|x)  
3915         enable_cxx_flags='' ;;
3916  *)      
3917         enable_cxx_flags="$enableval" ;;
3918  esac
3919 else
3920   enable_cxx_flags='none'
3921 fi
3922
3923
3924 if test "$enable_cxx_flags" = "none"; then 
3925   enable_cxx_flags=''; 
3926 fi
3927
3928 if test -n "$enable_cxx_flags"; then
3929     for f in $enable_cxx_flags; do
3930         case "$f" in
3931             -fhonor-std)  ;;
3932             -*)  ;;
3933             *)   # and we're trying to pass /what/ exactly?
3934                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3935         esac
3936     done
3937 fi
3938 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3939
3940
3941
3942   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3943 echo "configure:3944: checking for exception model to use" >&5
3944   
3945   ac_ext=C
3946 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3947 ac_cpp='$CXXCPP $CPPFLAGS'
3948 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3949 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3950 cross_compiling=$ac_cv_prog_cxx_cross
3951
3952   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3953 if test "${enable_sjlj_exceptions+set}" = set; then
3954   enableval="$enable_sjlj_exceptions"
3955   :
3956 else
3957                        cat > conftest.$ac_ext << EOF
3958 #line 3959 "configure"
3959 struct S { ~S(); };
3960 void bar();
3961 void foo()
3962 {
3963   S s;
3964   bar();
3965 }
3966 EOF
3967    old_CXXFLAGS="$CXXFLAGS"  
3968    CXXFLAGS=-S
3969    if { (eval echo configure:3970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3970      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3971        enable_sjlj_exceptions=yes
3972      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3973        enable_sjlj_exceptions=no
3974      fi
3975    fi
3976    CXXFLAGS="$old_CXXFLAGS"
3977    rm -f conftest*
3978 fi
3979
3980    if test x$enable_sjlj_exceptions = xyes; then
3981      cat >> confdefs.h <<\EOF
3982 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3983 EOF
3984
3985      ac_exception_model_name=sjlj
3986    elif test x$enable_sjlj_exceptions = xno; then
3987      ac_exception_model_name="call frame"
3988    else
3989      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3990    fi
3991    ac_ext=c
3992 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3993 ac_cpp='$CPP $CPPFLAGS'
3994 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3995 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3996 cross_compiling=$ac_cv_prog_cc_cross
3997
3998    echo "$ac_t""$ac_exception_model_name" 1>&6
3999
4000
4001   echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4002 echo "configure:4003: checking for use of libunwind" >&5
4003   # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4004 if test "${enable_libunwind_exceptions+set}" = set; then
4005   enableval="$enable_libunwind_exceptions"
4006   use_libunwind_exceptions=$enableval
4007 else
4008   use_libunwind_exceptions=no
4009 fi
4010
4011   echo "$ac_t""$use_libunwind_exceptions" 1>&6
4012     if test x"$use_libunwind_exceptions" = xyes; then
4013     LIBUNWIND_FLAG="-lunwind"
4014   else
4015     LIBUNWIND_FLAG=""
4016   fi
4017   
4018
4019 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4020 if test "${enable_concept_checks+set}" = set; then
4021   enableval="$enable_concept_checks"
4022   case "$enableval" in
4023  yes) enable_concept_checks=yes ;;
4024  no)  enable_concept_checks=no ;;
4025  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4026  esac
4027 else
4028   enable_concept_checks=no
4029 fi
4030 if test x"$enable_concept_checks" = xyes; then
4031   cat >> confdefs.h <<\EOF
4032 #define _GLIBCPP_CONCEPT_CHECKS 1
4033 EOF
4034
4035 fi
4036
4037
4038 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
4039 for ac_hdr in string.h stdlib.h
4040 do
4041 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4042 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4043 echo "configure:4044: checking for $ac_hdr" >&5
4044 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4045   echo $ac_n "(cached) $ac_c" 1>&6
4046 else
4047   cat > conftest.$ac_ext <<EOF
4048 #line 4049 "configure"
4049 #include "confdefs.h"
4050 #include <$ac_hdr>
4051 EOF
4052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4053 { (eval echo configure:4054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4055 if test -z "$ac_err"; then
4056   rm -rf conftest*
4057   eval "ac_cv_header_$ac_safe=yes"
4058 else
4059   echo "$ac_err" >&5
4060   echo "configure: failed program was:" >&5
4061   cat conftest.$ac_ext >&5
4062   rm -rf conftest*
4063   eval "ac_cv_header_$ac_safe=no"
4064 fi
4065 rm -f conftest*
4066 fi
4067 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4068   echo "$ac_t""yes" 1>&6
4069     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4070   cat >> confdefs.h <<EOF
4071 #define $ac_tr_hdr 1
4072 EOF
4073  
4074 else
4075   echo "$ac_t""no" 1>&6
4076 fi
4077 done
4078
4079
4080 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4081
4082   # We are being configured with some form of cross compiler.
4083   GLIBCPP_IS_CROSS_COMPILING=1
4084
4085   # This lets us hard-code the functionality we know we'll have in the cross
4086   # target environment.  "Let" is a sugar-coated word placed on an especially
4087   # dull and tedious hack, actually.
4088   #
4089   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4090   # that involve linking, can't be used:
4091   #    "cannot open sim-crt0.o"
4092   #    "cannot open crt0.o"
4093   # etc.  All this is because there currently exists no unified, consistent
4094   # way for top level CC information to be passed down to target directories:
4095   # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4096   # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4097   # crosses can be removed.
4098
4099   # If Canadian cross, then don't pick up tools from the build directory.
4100   # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4101   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4102     CANADIAN=yes
4103   else
4104     CANADIAN=no
4105   fi
4106
4107   # Construct crosses by hand, eliminating bits that need ld...
4108   # GLIBCPP_CHECK_COMPILER_FEATURES
4109   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4110   # GLIBCPP_CHECK_MATH_SUPPORT
4111
4112   case "$target_alias" in
4113     *-linux*)
4114       os_include_dir="os/gnu-linux"
4115       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4116         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4117         fp.h locale.h float.h inttypes.h
4118 do
4119 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4120 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4121 echo "configure:4122: checking for $ac_hdr" >&5
4122 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4123   echo $ac_n "(cached) $ac_c" 1>&6
4124 else
4125   cat > conftest.$ac_ext <<EOF
4126 #line 4127 "configure"
4127 #include "confdefs.h"
4128 #include <$ac_hdr>
4129 EOF
4130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4131 { (eval echo configure:4132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4133 if test -z "$ac_err"; then
4134   rm -rf conftest*
4135   eval "ac_cv_header_$ac_safe=yes"
4136 else
4137   echo "$ac_err" >&5
4138   echo "configure: failed program was:" >&5
4139   cat conftest.$ac_ext >&5
4140   rm -rf conftest*
4141   eval "ac_cv_header_$ac_safe=no"
4142 fi
4143 rm -f conftest*
4144 fi
4145 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4146   echo "$ac_t""yes" 1>&6
4147     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4148   cat >> confdefs.h <<EOF
4149 #define $ac_tr_hdr 1
4150 EOF
4151  
4152 else
4153   echo "$ac_t""no" 1>&6
4154 fi
4155 done
4156
4157       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4158       
4159       
4160   # If we're not using GNU ld, then there's no point in even trying these
4161   # tests.  Check for that first.  We should have already tested for gld
4162   # by now (in libtool), but require it now just to be safe...
4163   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4164   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4165   
4166
4167   # The name set by libtool depends on the version of libtool.  Shame on us
4168   # for depending on an impl detail, but c'est la vie.  Older versions used
4169   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4170   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4171   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4172   # set (hence we're using an older libtool), then set it.
4173   if test x${with_gnu_ld+set} != xset; then
4174     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4175       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4176       with_gnu_ld=no
4177     else
4178       with_gnu_ld=$ac_cv_prog_gnu_ld
4179     fi
4180   fi
4181
4182   # Start by getting the version number.  I think the libtool test already
4183   # does some of this, but throws away the result.
4184   
4185   ldver=`$LD --version 2>/dev/null | head -1 | \
4186          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4187   
4188   glibcpp_gnu_ld_version=`echo $ldver | \
4189          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4190
4191   # Set --gc-sections.
4192   if test "$with_gnu_ld" = "notbroken"; then
4193     # GNU ld it is!  Joy and bunny rabbits!
4194
4195     # All these tests are for C++; save the language and the compiler flags.
4196     # Need to do this so that g++ won't try to link in libstdc++
4197     ac_test_CFLAGS="${CFLAGS+set}"
4198     ac_save_CFLAGS="$CFLAGS"
4199     CFLAGS='-x c++  -Wl,--gc-sections'
4200
4201     # Check for -Wl,--gc-sections
4202     # XXX This test is broken at the moment, as symbols required for
4203     # linking are now in libsupc++ (not built yet.....). In addition, 
4204     # this test has cored on solaris in the past. In addition,
4205     # --gc-sections doesn't really work at the moment (keeps on discarding
4206     # used sections, first .eh_frame and now some of the glibc sections for
4207     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4208     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4209 echo "configure:4210: checking for ld that supports -Wl,--gc-sections" >&5
4210     if test "$cross_compiling" = yes; then
4211   ac_sectionLDflags=yes
4212 else
4213   cat > conftest.$ac_ext <<EOF
4214 #line 4215 "configure"
4215 #include "confdefs.h"
4216
4217      int main(void) 
4218      {
4219        try { throw 1; }
4220        catch (...) { };
4221        return 0;
4222      }
4223     
4224 EOF
4225 if { (eval echo configure:4226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4226 then
4227   ac_sectionLDflags=yes
4228 else
4229   echo "configure: failed program was:" >&5
4230   cat conftest.$ac_ext >&5
4231   rm -fr conftest*
4232   ac_sectionLDflags=no
4233 fi
4234 rm -fr conftest*
4235 fi
4236
4237     if test "$ac_test_CFLAGS" = set; then
4238       CFLAGS="$ac_save_CFLAGS"
4239     else
4240       # this is the suspicious part
4241       CFLAGS=''
4242     fi
4243     if test "$ac_sectionLDflags" = "yes"; then
4244       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4245     fi
4246     echo "$ac_t""$ac_sectionLDflags" 1>&6
4247   fi
4248
4249   # Set linker optimization flags.
4250   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4251     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4252   fi
4253
4254   
4255   
4256
4257       
4258     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4259 echo "configure:4260: checking for main in -lm" >&5
4260 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4261 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4262   echo $ac_n "(cached) $ac_c" 1>&6
4263 else
4264   ac_save_LIBS="$LIBS"
4265 LIBS="-lm  $LIBS"
4266 cat > conftest.$ac_ext <<EOF
4267 #line 4268 "configure"
4268 #include "confdefs.h"
4269
4270 int main() {
4271 main()
4272 ; return 0; }
4273 EOF
4274 if { (eval echo configure:4275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4275   rm -rf conftest*
4276   eval "ac_cv_lib_$ac_lib_var=yes"
4277 else
4278   echo "configure: failed program was:" >&5
4279   cat conftest.$ac_ext >&5
4280   rm -rf conftest*
4281   eval "ac_cv_lib_$ac_lib_var=no"
4282 fi
4283 rm -f conftest*
4284 LIBS="$ac_save_LIBS"
4285
4286 fi
4287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4288   echo "$ac_t""yes" 1>&6
4289     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4290     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4291   cat >> confdefs.h <<EOF
4292 #define $ac_tr_lib 1
4293 EOF
4294
4295   LIBS="-lm $LIBS"
4296
4297 else
4298   echo "$ac_t""no" 1>&6
4299 fi
4300
4301   for ac_func in nan copysignf
4302 do
4303 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4304 echo "configure:4305: checking for $ac_func" >&5
4305 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4306   echo $ac_n "(cached) $ac_c" 1>&6
4307 else
4308   cat > conftest.$ac_ext <<EOF
4309 #line 4310 "configure"
4310 #include "confdefs.h"
4311 /* System header to define __stub macros and hopefully few prototypes,
4312     which can conflict with char $ac_func(); below.  */
4313 #include <assert.h>
4314 /* Override any gcc2 internal prototype to avoid an error.  */
4315 /* We use char because int might match the return type of a gcc2
4316     builtin and then its argument prototype would still apply.  */
4317 char $ac_func();
4318
4319 int main() {
4320
4321 /* The GNU C library defines this for functions which it implements
4322     to always fail with ENOSYS.  Some functions are actually named
4323     something starting with __ and the normal name is an alias.  */
4324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4325 choke me
4326 #else
4327 $ac_func();
4328 #endif
4329
4330 ; return 0; }
4331 EOF
4332 if { (eval echo configure:4333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4333   rm -rf conftest*
4334   eval "ac_cv_func_$ac_func=yes"
4335 else
4336   echo "configure: failed program was:" >&5
4337   cat conftest.$ac_ext >&5
4338   rm -rf conftest*
4339   eval "ac_cv_func_$ac_func=no"
4340 fi
4341 rm -f conftest*
4342 fi
4343
4344 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4345   echo "$ac_t""yes" 1>&6
4346     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4347   cat >> confdefs.h <<EOF
4348 #define $ac_tr_func 1
4349 EOF
4350  
4351 else
4352   echo "$ac_t""no" 1>&6
4353 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4354 fi
4355 done
4356
4357
4358     for ac_func in __signbit
4359 do
4360 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4361 echo "configure:4362: checking for $ac_func" >&5
4362 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4363   echo $ac_n "(cached) $ac_c" 1>&6
4364 else
4365   cat > conftest.$ac_ext <<EOF
4366 #line 4367 "configure"
4367 #include "confdefs.h"
4368 /* System header to define __stub macros and hopefully few prototypes,
4369     which can conflict with char $ac_func(); below.  */
4370 #include <assert.h>
4371 /* Override any gcc2 internal prototype to avoid an error.  */
4372 /* We use char because int might match the return type of a gcc2
4373     builtin and then its argument prototype would still apply.  */
4374 char $ac_func();
4375
4376 int main() {
4377
4378 /* The GNU C library defines this for functions which it implements
4379     to always fail with ENOSYS.  Some functions are actually named
4380     something starting with __ and the normal name is an alias.  */
4381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4382 choke me
4383 #else
4384 $ac_func();
4385 #endif
4386
4387 ; return 0; }
4388 EOF
4389 if { (eval echo configure:4390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4390   rm -rf conftest*
4391   eval "ac_cv_func_$ac_func=yes"
4392 else
4393   echo "configure: failed program was:" >&5
4394   cat conftest.$ac_ext >&5
4395   rm -rf conftest*
4396   eval "ac_cv_func_$ac_func=no"
4397 fi
4398 rm -f conftest*
4399 fi
4400
4401 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4402   echo "$ac_t""yes" 1>&6
4403     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4404   cat >> confdefs.h <<EOF
4405 #define $ac_tr_func 1
4406 EOF
4407  
4408 else
4409   echo "$ac_t""no" 1>&6
4410 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4411 fi
4412 done
4413
4414   for ac_func in __signbitf
4415 do
4416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4417 echo "configure:4418: checking for $ac_func" >&5
4418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4419   echo $ac_n "(cached) $ac_c" 1>&6
4420 else
4421   cat > conftest.$ac_ext <<EOF
4422 #line 4423 "configure"
4423 #include "confdefs.h"
4424 /* System header to define __stub macros and hopefully few prototypes,
4425     which can conflict with char $ac_func(); below.  */
4426 #include <assert.h>
4427 /* Override any gcc2 internal prototype to avoid an error.  */
4428 /* We use char because int might match the return type of a gcc2
4429     builtin and then its argument prototype would still apply.  */
4430 char $ac_func();
4431
4432 int main() {
4433
4434 /* The GNU C library defines this for functions which it implements
4435     to always fail with ENOSYS.  Some functions are actually named
4436     something starting with __ and the normal name is an alias.  */
4437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4438 choke me
4439 #else
4440 $ac_func();
4441 #endif
4442
4443 ; return 0; }
4444 EOF
4445 if { (eval echo configure:4446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4446   rm -rf conftest*
4447   eval "ac_cv_func_$ac_func=yes"
4448 else
4449   echo "configure: failed program was:" >&5
4450   cat conftest.$ac_ext >&5
4451   rm -rf conftest*
4452   eval "ac_cv_func_$ac_func=no"
4453 fi
4454 rm -f conftest*
4455 fi
4456
4457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4458   echo "$ac_t""yes" 1>&6
4459     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4460   cat >> confdefs.h <<EOF
4461 #define $ac_tr_func 1
4462 EOF
4463  
4464 else
4465   echo "$ac_t""no" 1>&6
4466 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4467 fi
4468 done
4469
4470
4471           if test x$ac_cv_func_copysignl = x"yes"; then
4472     for ac_func in __signbitl
4473 do
4474 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4475 echo "configure:4476: checking for $ac_func" >&5
4476 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4477   echo $ac_n "(cached) $ac_c" 1>&6
4478 else
4479   cat > conftest.$ac_ext <<EOF
4480 #line 4481 "configure"
4481 #include "confdefs.h"
4482 /* System header to define __stub macros and hopefully few prototypes,
4483     which can conflict with char $ac_func(); below.  */
4484 #include <assert.h>
4485 /* Override any gcc2 internal prototype to avoid an error.  */
4486 /* We use char because int might match the return type of a gcc2
4487     builtin and then its argument prototype would still apply.  */
4488 char $ac_func();
4489
4490 int main() {
4491
4492 /* The GNU C library defines this for functions which it implements
4493     to always fail with ENOSYS.  Some functions are actually named
4494     something starting with __ and the normal name is an alias.  */
4495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4496 choke me
4497 #else
4498 $ac_func();
4499 #endif
4500
4501 ; return 0; }
4502 EOF
4503 if { (eval echo configure:4504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4504   rm -rf conftest*
4505   eval "ac_cv_func_$ac_func=yes"
4506 else
4507   echo "configure: failed program was:" >&5
4508   cat conftest.$ac_ext >&5
4509   rm -rf conftest*
4510   eval "ac_cv_func_$ac_func=no"
4511 fi
4512 rm -f conftest*
4513 fi
4514
4515 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4516   echo "$ac_t""yes" 1>&6
4517     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4518   cat >> confdefs.h <<EOF
4519 #define $ac_tr_func 1
4520 EOF
4521  
4522 else
4523   echo "$ac_t""no" 1>&6
4524 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4525 fi
4526 done
4527
4528   fi
4529
4530   
4531
4532       
4533
4534       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4535 echo "configure:4536: checking for mbstate_t" >&5
4536   cat > conftest.$ac_ext <<EOF
4537 #line 4538 "configure"
4538 #include "confdefs.h"
4539 #include <wchar.h>
4540 int main() {
4541 mbstate_t teststate;
4542 ; return 0; }
4543 EOF
4544 if { (eval echo configure:4545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4545   rm -rf conftest*
4546   have_mbstate_t=yes
4547 else
4548   echo "configure: failed program was:" >&5
4549   cat conftest.$ac_ext >&5
4550   rm -rf conftest*
4551   have_mbstate_t=no
4552 fi
4553 rm -f conftest*
4554   echo "$ac_t""$have_mbstate_t" 1>&6
4555   if test x"$have_mbstate_t" = xyes; then
4556     cat >> confdefs.h <<\EOF
4557 #define HAVE_MBSTATE_T 1
4558 EOF
4559
4560   fi
4561
4562     for ac_hdr in wchar.h
4563 do
4564 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4565 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4566 echo "configure:4567: checking for $ac_hdr" >&5
4567 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4568   echo $ac_n "(cached) $ac_c" 1>&6
4569 else
4570   cat > conftest.$ac_ext <<EOF
4571 #line 4572 "configure"
4572 #include "confdefs.h"
4573 #include <$ac_hdr>
4574 EOF
4575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4576 { (eval echo configure:4577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4578 if test -z "$ac_err"; then
4579   rm -rf conftest*
4580   eval "ac_cv_header_$ac_safe=yes"
4581 else
4582   echo "$ac_err" >&5
4583   echo "configure: failed program was:" >&5
4584   cat conftest.$ac_ext >&5
4585   rm -rf conftest*
4586   eval "ac_cv_header_$ac_safe=no"
4587 fi
4588 rm -f conftest*
4589 fi
4590 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4591   echo "$ac_t""yes" 1>&6
4592     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4593   cat >> confdefs.h <<EOF
4594 #define $ac_tr_hdr 1
4595 EOF
4596  ac_has_wchar_h=yes
4597 else
4598   echo "$ac_t""no" 1>&6
4599 ac_has_wchar_h=no
4600 fi
4601 done
4602
4603   for ac_hdr in wctype.h
4604 do
4605 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4606 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4607 echo "configure:4608: checking for $ac_hdr" >&5
4608 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4609   echo $ac_n "(cached) $ac_c" 1>&6
4610 else
4611   cat > conftest.$ac_ext <<EOF
4612 #line 4613 "configure"
4613 #include "confdefs.h"
4614 #include <$ac_hdr>
4615 EOF
4616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4617 { (eval echo configure:4618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4618 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4619 if test -z "$ac_err"; then
4620   rm -rf conftest*
4621   eval "ac_cv_header_$ac_safe=yes"
4622 else
4623   echo "$ac_err" >&5
4624   echo "configure: failed program was:" >&5
4625   cat conftest.$ac_ext >&5
4626   rm -rf conftest*
4627   eval "ac_cv_header_$ac_safe=no"
4628 fi
4629 rm -f conftest*
4630 fi
4631 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4632   echo "$ac_t""yes" 1>&6
4633     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4634   cat >> confdefs.h <<EOF
4635 #define $ac_tr_hdr 1
4636 EOF
4637  ac_has_wctype_h=yes
4638 else
4639   echo "$ac_t""no" 1>&6
4640 ac_has_wctype_h=no
4641 fi
4642 done
4643
4644   
4645     if test x"$ac_has_wchar_h" = xyes &&
4646      test x"$ac_has_wctype_h" = xyes &&
4647      test x"$enable_c_mbchar" != xno; then
4648       
4649             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4650 echo "configure:4651: checking for WCHAR_MIN and WCHAR_MAX" >&5
4651     cat > conftest.$ac_ext <<EOF
4652 #line 4653 "configure"
4653 #include "confdefs.h"
4654 #include <wchar.h>
4655 int main() {
4656 int i = WCHAR_MIN; int j = WCHAR_MAX;
4657 ; return 0; }
4658 EOF
4659 if { (eval echo configure:4660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4660   rm -rf conftest*
4661   has_wchar_minmax=yes
4662 else
4663   echo "configure: failed program was:" >&5
4664   cat conftest.$ac_ext >&5
4665   rm -rf conftest*
4666   has_wchar_minmax=no
4667 fi
4668 rm -f conftest*
4669     echo "$ac_t""$has_wchar_minmax" 1>&6
4670     
4671             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4672 echo "configure:4673: checking for WEOF" >&5
4673     cat > conftest.$ac_ext <<EOF
4674 #line 4675 "configure"
4675 #include "confdefs.h"
4676
4677       #include <wchar.h>
4678       #include <stddef.h>
4679 int main() {
4680 wint_t i = WEOF;
4681 ; return 0; }
4682 EOF
4683 if { (eval echo configure:4684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4684   rm -rf conftest*
4685   has_weof=yes
4686 else
4687   echo "configure: failed program was:" >&5
4688   cat conftest.$ac_ext >&5
4689   rm -rf conftest*
4690   has_weof=no
4691 fi
4692 rm -f conftest*
4693     echo "$ac_t""$has_weof" 1>&6
4694   
4695         ac_wfuncs=yes
4696     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4697 do
4698 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4699 echo "configure:4700: checking for $ac_func" >&5
4700 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4701   echo $ac_n "(cached) $ac_c" 1>&6
4702 else
4703   cat > conftest.$ac_ext <<EOF
4704 #line 4705 "configure"
4705 #include "confdefs.h"
4706 /* System header to define __stub macros and hopefully few prototypes,
4707     which can conflict with char $ac_func(); below.  */
4708 #include <assert.h>
4709 /* Override any gcc2 internal prototype to avoid an error.  */
4710 /* We use char because int might match the return type of a gcc2
4711     builtin and then its argument prototype would still apply.  */
4712 char $ac_func();
4713
4714 int main() {
4715
4716 /* The GNU C library defines this for functions which it implements
4717     to always fail with ENOSYS.  Some functions are actually named
4718     something starting with __ and the normal name is an alias.  */
4719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4720 choke me
4721 #else
4722 $ac_func();
4723 #endif
4724
4725 ; return 0; }
4726 EOF
4727 if { (eval echo configure:4728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4728   rm -rf conftest*
4729   eval "ac_cv_func_$ac_func=yes"
4730 else
4731   echo "configure: failed program was:" >&5
4732   cat conftest.$ac_ext >&5
4733   rm -rf conftest*
4734   eval "ac_cv_func_$ac_func=no"
4735 fi
4736 rm -f conftest*
4737 fi
4738
4739 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4740   echo "$ac_t""yes" 1>&6
4741     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4742   cat >> confdefs.h <<EOF
4743 #define $ac_tr_func 1
4744 EOF
4745  
4746 else
4747   echo "$ac_t""no" 1>&6
4748 \
4749     ac_wfuncs=no
4750 fi
4751 done
4752
4753   
4754         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4755     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4756     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4757     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4758     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4759     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4760 do
4761 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4762 echo "configure:4763: checking for $ac_func" >&5
4763 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4764   echo $ac_n "(cached) $ac_c" 1>&6
4765 else
4766   cat > conftest.$ac_ext <<EOF
4767 #line 4768 "configure"
4768 #include "confdefs.h"
4769 /* System header to define __stub macros and hopefully few prototypes,
4770     which can conflict with char $ac_func(); below.  */
4771 #include <assert.h>
4772 /* Override any gcc2 internal prototype to avoid an error.  */
4773 /* We use char because int might match the return type of a gcc2
4774     builtin and then its argument prototype would still apply.  */
4775 char $ac_func();
4776
4777 int main() {
4778
4779 /* The GNU C library defines this for functions which it implements
4780     to always fail with ENOSYS.  Some functions are actually named
4781     something starting with __ and the normal name is an alias.  */
4782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4783 choke me
4784 #else
4785 $ac_func();
4786 #endif
4787
4788 ; return 0; }
4789 EOF
4790 if { (eval echo configure:4791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4791   rm -rf conftest*
4792   eval "ac_cv_func_$ac_func=yes"
4793 else
4794   echo "configure: failed program was:" >&5
4795   cat conftest.$ac_ext >&5
4796   rm -rf conftest*
4797   eval "ac_cv_func_$ac_func=no"
4798 fi
4799 rm -f conftest*
4800 fi
4801
4802 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4803   echo "$ac_t""yes" 1>&6
4804     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4805   cat >> confdefs.h <<EOF
4806 #define $ac_tr_func 1
4807 EOF
4808  
4809 else
4810   echo "$ac_t""no" 1>&6
4811 \
4812     ac_wfuncs=no
4813 fi
4814 done
4815
4816
4817     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4818 echo "configure:4819: checking for ISO C99 wchar_t support" >&5
4819     if test x"$has_weof" = xyes &&
4820        test x"$has_wchar_minmax" = xyes &&
4821        test x"$ac_wfuncs" = xyes; then
4822       ac_isoC99_wchar_t=yes
4823     else
4824       ac_isoC99_wchar_t=no
4825     fi
4826     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4827   
4828             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4829 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4830 echo "configure:4831: checking for iconv.h" >&5
4831 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4832   echo $ac_n "(cached) $ac_c" 1>&6
4833 else
4834   cat > conftest.$ac_ext <<EOF
4835 #line 4836 "configure"
4836 #include "confdefs.h"
4837 #include <iconv.h>
4838 EOF
4839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4840 { (eval echo configure:4841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4841 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4842 if test -z "$ac_err"; then
4843   rm -rf conftest*
4844   eval "ac_cv_header_$ac_safe=yes"
4845 else
4846   echo "$ac_err" >&5
4847   echo "configure: failed program was:" >&5
4848   cat conftest.$ac_ext >&5
4849   rm -rf conftest*
4850   eval "ac_cv_header_$ac_safe=no"
4851 fi
4852 rm -f conftest*
4853 fi
4854 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4855   echo "$ac_t""yes" 1>&6
4856   ac_has_iconv_h=yes
4857 else
4858   echo "$ac_t""no" 1>&6
4859 ac_has_iconv_h=no
4860 fi
4861
4862     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4863 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4864 echo "configure:4865: checking for langinfo.h" >&5
4865 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4866   echo $ac_n "(cached) $ac_c" 1>&6
4867 else
4868   cat > conftest.$ac_ext <<EOF
4869 #line 4870 "configure"
4870 #include "confdefs.h"
4871 #include <langinfo.h>
4872 EOF
4873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4874 { (eval echo configure:4875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4875 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4876 if test -z "$ac_err"; then
4877   rm -rf conftest*
4878   eval "ac_cv_header_$ac_safe=yes"
4879 else
4880   echo "$ac_err" >&5
4881   echo "configure: failed program was:" >&5
4882   cat conftest.$ac_ext >&5
4883   rm -rf conftest*
4884   eval "ac_cv_header_$ac_safe=no"
4885 fi
4886 rm -f conftest*
4887 fi
4888 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4889   echo "$ac_t""yes" 1>&6
4890   ac_has_langinfo_h=yes
4891 else
4892   echo "$ac_t""no" 1>&6
4893 ac_has_langinfo_h=no
4894 fi
4895
4896
4897         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4898 echo "configure:4899: checking for iconv in -liconv" >&5
4899 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4900 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4901   echo $ac_n "(cached) $ac_c" 1>&6
4902 else
4903   ac_save_LIBS="$LIBS"
4904 LIBS="-liconv  $LIBS"
4905 cat > conftest.$ac_ext <<EOF
4906 #line 4907 "configure"
4907 #include "confdefs.h"
4908 /* Override any gcc2 internal prototype to avoid an error.  */
4909 /* We use char because int might match the return type of a gcc2
4910     builtin and then its argument prototype would still apply.  */
4911 char iconv();
4912
4913 int main() {
4914 iconv()
4915 ; return 0; }
4916 EOF
4917 if { (eval echo configure:4918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4918   rm -rf conftest*
4919   eval "ac_cv_lib_$ac_lib_var=yes"
4920 else
4921   echo "configure: failed program was:" >&5
4922   cat conftest.$ac_ext >&5
4923   rm -rf conftest*
4924   eval "ac_cv_lib_$ac_lib_var=no"
4925 fi
4926 rm -f conftest*
4927 LIBS="$ac_save_LIBS"
4928
4929 fi
4930 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4931   echo "$ac_t""yes" 1>&6
4932   libiconv="-liconv"
4933 else
4934   echo "$ac_t""no" 1>&6
4935 fi
4936
4937     ac_save_LIBS="$LIBS"
4938     LIBS="$LIBS $libiconv"
4939
4940     for ac_func in iconv_open iconv_close iconv nl_langinfo
4941 do
4942 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4943 echo "configure:4944: checking for $ac_func" >&5
4944 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4945   echo $ac_n "(cached) $ac_c" 1>&6
4946 else
4947   cat > conftest.$ac_ext <<EOF
4948 #line 4949 "configure"
4949 #include "confdefs.h"
4950 /* System header to define __stub macros and hopefully few prototypes,
4951     which can conflict with char $ac_func(); below.  */
4952 #include <assert.h>
4953 /* Override any gcc2 internal prototype to avoid an error.  */
4954 /* We use char because int might match the return type of a gcc2
4955     builtin and then its argument prototype would still apply.  */
4956 char $ac_func();
4957
4958 int main() {
4959
4960 /* The GNU C library defines this for functions which it implements
4961     to always fail with ENOSYS.  Some functions are actually named
4962     something starting with __ and the normal name is an alias.  */
4963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4964 choke me
4965 #else
4966 $ac_func();
4967 #endif
4968
4969 ; return 0; }
4970 EOF
4971 if { (eval echo configure:4972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4972   rm -rf conftest*
4973   eval "ac_cv_func_$ac_func=yes"
4974 else
4975   echo "configure: failed program was:" >&5
4976   cat conftest.$ac_ext >&5
4977   rm -rf conftest*
4978   eval "ac_cv_func_$ac_func=no"
4979 fi
4980 rm -f conftest*
4981 fi
4982
4983 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4984   echo "$ac_t""yes" 1>&6
4985     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4986   cat >> confdefs.h <<EOF
4987 #define $ac_tr_func 1
4988 EOF
4989  \
4990     ac_XPG2funcs=yes
4991 else
4992   echo "$ac_t""no" 1>&6
4993 ac_XPG2funcs=no
4994 fi
4995 done
4996
4997   
4998     LIBS="$ac_save_LIBS"
4999
5000     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5001 echo "configure:5002: checking for XPG2 wchar_t support" >&5
5002     if test x"$ac_has_iconv_h" = xyes &&
5003        test x"$ac_has_langinfo_h" = xyes &&
5004        test x"$ac_XPG2funcs" = xyes; then
5005       ac_XPG2_wchar_t=yes
5006     else
5007       ac_XPG2_wchar_t=no
5008     fi
5009     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5010   
5011             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5012 echo "configure:5013: checking for enabled wchar_t specializations" >&5
5013     if test x"$ac_isoC99_wchar_t" = xyes &&
5014        test x"$ac_XPG2_wchar_t" = xyes; then
5015       cat >> confdefs.h <<\EOF
5016 #define _GLIBCPP_USE_WCHAR_T 1
5017 EOF
5018
5019       echo "$ac_t"""yes"" 1>&6
5020     else
5021       echo "$ac_t"""no"" 1>&6
5022     fi
5023   else
5024         echo "configure: warning: wchar_t support disabled." 1>&2
5025   fi
5026
5027       cat >> confdefs.h <<\EOF
5028 #define HAVE_COPYSIGN 1
5029 EOF
5030
5031       cat >> confdefs.h <<\EOF
5032 #define HAVE_COPYSIGNF 1
5033 EOF
5034
5035       cat >> confdefs.h <<\EOF
5036 #define HAVE_FINITE 1
5037 EOF
5038
5039       cat >> confdefs.h <<\EOF
5040 #define HAVE_FINITEF 1
5041 EOF
5042
5043       cat >> confdefs.h <<\EOF
5044 #define HAVE_FREXPF 1
5045 EOF
5046
5047       cat >> confdefs.h <<\EOF
5048 #define HAVE_HYPOTF 1
5049 EOF
5050
5051       cat >> confdefs.h <<\EOF
5052 #define HAVE_ISINF 1
5053 EOF
5054
5055       cat >> confdefs.h <<\EOF
5056 #define HAVE_ISINFF 1
5057 EOF
5058
5059       cat >> confdefs.h <<\EOF
5060 #define HAVE_ISNAN 1
5061 EOF
5062
5063       cat >> confdefs.h <<\EOF
5064 #define HAVE_ISNANF 1
5065 EOF
5066
5067       cat >> confdefs.h <<\EOF
5068 #define HAVE_SINCOS 1
5069 EOF
5070
5071       cat >> confdefs.h <<\EOF
5072 #define HAVE_SINCOSF 1
5073 EOF
5074
5075       if test x"long_double_math_on_this_cpu" = x"yes"; then
5076         cat >> confdefs.h <<\EOF
5077 #define HAVE_FINITEL 1
5078 EOF
5079
5080         cat >> confdefs.h <<\EOF
5081 #define HAVE_HYPOTL 1
5082 EOF
5083
5084         cat >> confdefs.h <<\EOF
5085 #define HAVE_ISINFL 1
5086 EOF
5087
5088         cat >> confdefs.h <<\EOF
5089 #define HAVE_ISNANL 1
5090 EOF
5091
5092       fi
5093       ;;
5094     *-hpux*)
5095       # Check for available headers.
5096       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5097         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5098         fp.h locale.h float.h inttypes.h
5099 do
5100 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5101 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5102 echo "configure:5103: checking for $ac_hdr" >&5
5103 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5104   echo $ac_n "(cached) $ac_c" 1>&6
5105 else
5106   cat > conftest.$ac_ext <<EOF
5107 #line 5108 "configure"
5108 #include "confdefs.h"
5109 #include <$ac_hdr>
5110 EOF
5111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5112 { (eval echo configure:5113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5114 if test -z "$ac_err"; then
5115   rm -rf conftest*
5116   eval "ac_cv_header_$ac_safe=yes"
5117 else
5118   echo "$ac_err" >&5
5119   echo "configure: failed program was:" >&5
5120   cat conftest.$ac_ext >&5
5121   rm -rf conftest*
5122   eval "ac_cv_header_$ac_safe=no"
5123 fi
5124 rm -f conftest*
5125 fi
5126 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5127   echo "$ac_t""yes" 1>&6
5128     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5129   cat >> confdefs.h <<EOF
5130 #define $ac_tr_hdr 1
5131 EOF
5132  
5133 else
5134   echo "$ac_t""no" 1>&6
5135 fi
5136 done
5137
5138       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5139       
5140       
5141   # If we're not using GNU ld, then there's no point in even trying these
5142   # tests.  Check for that first.  We should have already tested for gld
5143   # by now (in libtool), but require it now just to be safe...
5144   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5145   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5146   
5147
5148   # The name set by libtool depends on the version of libtool.  Shame on us
5149   # for depending on an impl detail, but c'est la vie.  Older versions used
5150   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5151   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5152   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5153   # set (hence we're using an older libtool), then set it.
5154   if test x${with_gnu_ld+set} != xset; then
5155     if test x${ac_cv_prog_gnu_ld+set} != xset; then
5156       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5157       with_gnu_ld=no
5158     else
5159       with_gnu_ld=$ac_cv_prog_gnu_ld
5160     fi
5161   fi
5162
5163   # Start by getting the version number.  I think the libtool test already
5164   # does some of this, but throws away the result.
5165   
5166   ldver=`$LD --version 2>/dev/null | head -1 | \
5167          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5168   
5169   glibcpp_gnu_ld_version=`echo $ldver | \
5170          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5171
5172   # Set --gc-sections.
5173   if test "$with_gnu_ld" = "notbroken"; then
5174     # GNU ld it is!  Joy and bunny rabbits!
5175
5176     # All these tests are for C++; save the language and the compiler flags.
5177     # Need to do this so that g++ won't try to link in libstdc++
5178     ac_test_CFLAGS="${CFLAGS+set}"
5179     ac_save_CFLAGS="$CFLAGS"
5180     CFLAGS='-x c++  -Wl,--gc-sections'
5181
5182     # Check for -Wl,--gc-sections
5183     # XXX This test is broken at the moment, as symbols required for
5184     # linking are now in libsupc++ (not built yet.....). In addition, 
5185     # this test has cored on solaris in the past. In addition,
5186     # --gc-sections doesn't really work at the moment (keeps on discarding
5187     # used sections, first .eh_frame and now some of the glibc sections for
5188     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5189     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5190 echo "configure:5191: checking for ld that supports -Wl,--gc-sections" >&5
5191     if test "$cross_compiling" = yes; then
5192   ac_sectionLDflags=yes
5193 else
5194   cat > conftest.$ac_ext <<EOF
5195 #line 5196 "configure"
5196 #include "confdefs.h"
5197
5198      int main(void) 
5199      {
5200        try { throw 1; }
5201        catch (...) { };
5202        return 0;
5203      }
5204     
5205 EOF
5206 if { (eval echo configure:5207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5207 then
5208   ac_sectionLDflags=yes
5209 else
5210   echo "configure: failed program was:" >&5
5211   cat conftest.$ac_ext >&5
5212   rm -fr conftest*
5213   ac_sectionLDflags=no
5214 fi
5215 rm -fr conftest*
5216 fi
5217
5218     if test "$ac_test_CFLAGS" = set; then
5219       CFLAGS="$ac_save_CFLAGS"
5220     else
5221       # this is the suspicious part
5222       CFLAGS=''
5223     fi
5224     if test "$ac_sectionLDflags" = "yes"; then
5225       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5226     fi
5227     echo "$ac_t""$ac_sectionLDflags" 1>&6
5228   fi
5229
5230   # Set linker optimization flags.
5231   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5232     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5233   fi
5234
5235   
5236   
5237
5238       
5239     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5240 echo "configure:5241: checking for main in -lm" >&5
5241 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5243   echo $ac_n "(cached) $ac_c" 1>&6
5244 else
5245   ac_save_LIBS="$LIBS"
5246 LIBS="-lm  $LIBS"
5247 cat > conftest.$ac_ext <<EOF
5248 #line 5249 "configure"
5249 #include "confdefs.h"
5250
5251 int main() {
5252 main()
5253 ; return 0; }
5254 EOF
5255 if { (eval echo configure:5256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5256   rm -rf conftest*
5257   eval "ac_cv_lib_$ac_lib_var=yes"
5258 else
5259   echo "configure: failed program was:" >&5
5260   cat conftest.$ac_ext >&5
5261   rm -rf conftest*
5262   eval "ac_cv_lib_$ac_lib_var=no"
5263 fi
5264 rm -f conftest*
5265 LIBS="$ac_save_LIBS"
5266
5267 fi
5268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5269   echo "$ac_t""yes" 1>&6
5270     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5271     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5272   cat >> confdefs.h <<EOF
5273 #define $ac_tr_lib 1
5274 EOF
5275
5276   LIBS="-lm $LIBS"
5277
5278 else
5279   echo "$ac_t""no" 1>&6
5280 fi
5281
5282   for ac_func in nan copysignf
5283 do
5284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5285 echo "configure:5286: checking for $ac_func" >&5
5286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5287   echo $ac_n "(cached) $ac_c" 1>&6
5288 else
5289   cat > conftest.$ac_ext <<EOF
5290 #line 5291 "configure"
5291 #include "confdefs.h"
5292 /* System header to define __stub macros and hopefully few prototypes,
5293     which can conflict with char $ac_func(); below.  */
5294 #include <assert.h>
5295 /* Override any gcc2 internal prototype to avoid an error.  */
5296 /* We use char because int might match the return type of a gcc2
5297     builtin and then its argument prototype would still apply.  */
5298 char $ac_func();
5299
5300 int main() {
5301
5302 /* The GNU C library defines this for functions which it implements
5303     to always fail with ENOSYS.  Some functions are actually named
5304     something starting with __ and the normal name is an alias.  */
5305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5306 choke me
5307 #else
5308 $ac_func();
5309 #endif
5310
5311 ; return 0; }
5312 EOF
5313 if { (eval echo configure:5314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5314   rm -rf conftest*
5315   eval "ac_cv_func_$ac_func=yes"
5316 else
5317   echo "configure: failed program was:" >&5
5318   cat conftest.$ac_ext >&5
5319   rm -rf conftest*
5320   eval "ac_cv_func_$ac_func=no"
5321 fi
5322 rm -f conftest*
5323 fi
5324
5325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5326   echo "$ac_t""yes" 1>&6
5327     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5328   cat >> confdefs.h <<EOF
5329 #define $ac_tr_func 1
5330 EOF
5331  
5332 else
5333   echo "$ac_t""no" 1>&6
5334 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5335 fi
5336 done
5337
5338
5339     for ac_func in __signbit
5340 do
5341 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5342 echo "configure:5343: checking for $ac_func" >&5
5343 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5344   echo $ac_n "(cached) $ac_c" 1>&6
5345 else
5346   cat > conftest.$ac_ext <<EOF
5347 #line 5348 "configure"
5348 #include "confdefs.h"
5349 /* System header to define __stub macros and hopefully few prototypes,
5350     which can conflict with char $ac_func(); below.  */
5351 #include <assert.h>
5352 /* Override any gcc2 internal prototype to avoid an error.  */
5353 /* We use char because int might match the return type of a gcc2
5354     builtin and then its argument prototype would still apply.  */
5355 char $ac_func();
5356
5357 int main() {
5358
5359 /* The GNU C library defines this for functions which it implements
5360     to always fail with ENOSYS.  Some functions are actually named
5361     something starting with __ and the normal name is an alias.  */
5362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5363 choke me
5364 #else
5365 $ac_func();
5366 #endif
5367
5368 ; return 0; }
5369 EOF
5370 if { (eval echo configure:5371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5371   rm -rf conftest*
5372   eval "ac_cv_func_$ac_func=yes"
5373 else
5374   echo "configure: failed program was:" >&5
5375   cat conftest.$ac_ext >&5
5376   rm -rf conftest*
5377   eval "ac_cv_func_$ac_func=no"
5378 fi
5379 rm -f conftest*
5380 fi
5381
5382 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5383   echo "$ac_t""yes" 1>&6
5384     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5385   cat >> confdefs.h <<EOF
5386 #define $ac_tr_func 1
5387 EOF
5388  
5389 else
5390   echo "$ac_t""no" 1>&6
5391 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5392 fi
5393 done
5394
5395   for ac_func in __signbitf
5396 do
5397 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5398 echo "configure:5399: checking for $ac_func" >&5
5399 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5400   echo $ac_n "(cached) $ac_c" 1>&6
5401 else
5402   cat > conftest.$ac_ext <<EOF
5403 #line 5404 "configure"
5404 #include "confdefs.h"
5405 /* System header to define __stub macros and hopefully few prototypes,
5406     which can conflict with char $ac_func(); below.  */
5407 #include <assert.h>
5408 /* Override any gcc2 internal prototype to avoid an error.  */
5409 /* We use char because int might match the return type of a gcc2
5410     builtin and then its argument prototype would still apply.  */
5411 char $ac_func();
5412
5413 int main() {
5414
5415 /* The GNU C library defines this for functions which it implements
5416     to always fail with ENOSYS.  Some functions are actually named
5417     something starting with __ and the normal name is an alias.  */
5418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5419 choke me
5420 #else
5421 $ac_func();
5422 #endif
5423
5424 ; return 0; }
5425 EOF
5426 if { (eval echo configure:5427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5427   rm -rf conftest*
5428   eval "ac_cv_func_$ac_func=yes"
5429 else
5430   echo "configure: failed program was:" >&5
5431   cat conftest.$ac_ext >&5
5432   rm -rf conftest*
5433   eval "ac_cv_func_$ac_func=no"
5434 fi
5435 rm -f conftest*
5436 fi
5437
5438 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5439   echo "$ac_t""yes" 1>&6
5440     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5441   cat >> confdefs.h <<EOF
5442 #define $ac_tr_func 1
5443 EOF
5444  
5445 else
5446   echo "$ac_t""no" 1>&6
5447 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5448 fi
5449 done
5450
5451
5452           if test x$ac_cv_func_copysignl = x"yes"; then
5453     for ac_func in __signbitl
5454 do
5455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5456 echo "configure:5457: checking for $ac_func" >&5
5457 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5458   echo $ac_n "(cached) $ac_c" 1>&6
5459 else
5460   cat > conftest.$ac_ext <<EOF
5461 #line 5462 "configure"
5462 #include "confdefs.h"
5463 /* System header to define __stub macros and hopefully few prototypes,
5464     which can conflict with char $ac_func(); below.  */
5465 #include <assert.h>
5466 /* Override any gcc2 internal prototype to avoid an error.  */
5467 /* We use char because int might match the return type of a gcc2
5468     builtin and then its argument prototype would still apply.  */
5469 char $ac_func();
5470
5471 int main() {
5472
5473 /* The GNU C library defines this for functions which it implements
5474     to always fail with ENOSYS.  Some functions are actually named
5475     something starting with __ and the normal name is an alias.  */
5476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5477 choke me
5478 #else
5479 $ac_func();
5480 #endif
5481
5482 ; return 0; }
5483 EOF
5484 if { (eval echo configure:5485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5485   rm -rf conftest*
5486   eval "ac_cv_func_$ac_func=yes"
5487 else
5488   echo "configure: failed program was:" >&5
5489   cat conftest.$ac_ext >&5
5490   rm -rf conftest*
5491   eval "ac_cv_func_$ac_func=no"
5492 fi
5493 rm -f conftest*
5494 fi
5495
5496 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5497   echo "$ac_t""yes" 1>&6
5498     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5499   cat >> confdefs.h <<EOF
5500 #define $ac_tr_func 1
5501 EOF
5502  
5503 else
5504   echo "$ac_t""no" 1>&6
5505 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5506 fi
5507 done
5508
5509   fi
5510
5511   
5512
5513       
5514
5515       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5516 echo "configure:5517: checking for mbstate_t" >&5
5517   cat > conftest.$ac_ext <<EOF
5518 #line 5519 "configure"
5519 #include "confdefs.h"
5520 #include <wchar.h>
5521 int main() {
5522 mbstate_t teststate;
5523 ; return 0; }
5524 EOF
5525 if { (eval echo configure:5526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5526   rm -rf conftest*
5527   have_mbstate_t=yes
5528 else
5529   echo "configure: failed program was:" >&5
5530   cat conftest.$ac_ext >&5
5531   rm -rf conftest*
5532   have_mbstate_t=no
5533 fi
5534 rm -f conftest*
5535   echo "$ac_t""$have_mbstate_t" 1>&6
5536   if test x"$have_mbstate_t" = xyes; then
5537     cat >> confdefs.h <<\EOF
5538 #define HAVE_MBSTATE_T 1
5539 EOF
5540
5541   fi
5542
5543     for ac_hdr in wchar.h
5544 do
5545 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5546 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5547 echo "configure:5548: checking for $ac_hdr" >&5
5548 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5549   echo $ac_n "(cached) $ac_c" 1>&6
5550 else
5551   cat > conftest.$ac_ext <<EOF
5552 #line 5553 "configure"
5553 #include "confdefs.h"
5554 #include <$ac_hdr>
5555 EOF
5556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5557 { (eval echo configure:5558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5558 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5559 if test -z "$ac_err"; then
5560   rm -rf conftest*
5561   eval "ac_cv_header_$ac_safe=yes"
5562 else
5563   echo "$ac_err" >&5
5564   echo "configure: failed program was:" >&5
5565   cat conftest.$ac_ext >&5
5566   rm -rf conftest*
5567   eval "ac_cv_header_$ac_safe=no"
5568 fi
5569 rm -f conftest*
5570 fi
5571 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5572   echo "$ac_t""yes" 1>&6
5573     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5574   cat >> confdefs.h <<EOF
5575 #define $ac_tr_hdr 1
5576 EOF
5577  ac_has_wchar_h=yes
5578 else
5579   echo "$ac_t""no" 1>&6
5580 ac_has_wchar_h=no
5581 fi
5582 done
5583
5584   for ac_hdr in wctype.h
5585 do
5586 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5587 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5588 echo "configure:5589: checking for $ac_hdr" >&5
5589 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5590   echo $ac_n "(cached) $ac_c" 1>&6
5591 else
5592   cat > conftest.$ac_ext <<EOF
5593 #line 5594 "configure"
5594 #include "confdefs.h"
5595 #include <$ac_hdr>
5596 EOF
5597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5598 { (eval echo configure:5599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5600 if test -z "$ac_err"; then
5601   rm -rf conftest*
5602   eval "ac_cv_header_$ac_safe=yes"
5603 else
5604   echo "$ac_err" >&5
5605   echo "configure: failed program was:" >&5
5606   cat conftest.$ac_ext >&5
5607   rm -rf conftest*
5608   eval "ac_cv_header_$ac_safe=no"
5609 fi
5610 rm -f conftest*
5611 fi
5612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5613   echo "$ac_t""yes" 1>&6
5614     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5615   cat >> confdefs.h <<EOF
5616 #define $ac_tr_hdr 1
5617 EOF
5618  ac_has_wctype_h=yes
5619 else
5620   echo "$ac_t""no" 1>&6
5621 ac_has_wctype_h=no
5622 fi
5623 done
5624
5625   
5626     if test x"$ac_has_wchar_h" = xyes &&
5627      test x"$ac_has_wctype_h" = xyes &&
5628      test x"$enable_c_mbchar" != xno; then
5629       
5630             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5631 echo "configure:5632: checking for WCHAR_MIN and WCHAR_MAX" >&5
5632     cat > conftest.$ac_ext <<EOF
5633 #line 5634 "configure"
5634 #include "confdefs.h"
5635 #include <wchar.h>
5636 int main() {
5637 int i = WCHAR_MIN; int j = WCHAR_MAX;
5638 ; return 0; }
5639 EOF
5640 if { (eval echo configure:5641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5641   rm -rf conftest*
5642   has_wchar_minmax=yes
5643 else
5644   echo "configure: failed program was:" >&5
5645   cat conftest.$ac_ext >&5
5646   rm -rf conftest*
5647   has_wchar_minmax=no
5648 fi
5649 rm -f conftest*
5650     echo "$ac_t""$has_wchar_minmax" 1>&6
5651     
5652             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5653 echo "configure:5654: checking for WEOF" >&5
5654     cat > conftest.$ac_ext <<EOF
5655 #line 5656 "configure"
5656 #include "confdefs.h"
5657
5658       #include <wchar.h>
5659       #include <stddef.h>
5660 int main() {
5661 wint_t i = WEOF;
5662 ; return 0; }
5663 EOF
5664 if { (eval echo configure:5665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5665   rm -rf conftest*
5666   has_weof=yes
5667 else
5668   echo "configure: failed program was:" >&5
5669   cat conftest.$ac_ext >&5
5670   rm -rf conftest*
5671   has_weof=no
5672 fi
5673 rm -f conftest*
5674     echo "$ac_t""$has_weof" 1>&6
5675   
5676         ac_wfuncs=yes
5677     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5678 do
5679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5680 echo "configure:5681: checking for $ac_func" >&5
5681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5682   echo $ac_n "(cached) $ac_c" 1>&6
5683 else
5684   cat > conftest.$ac_ext <<EOF
5685 #line 5686 "configure"
5686 #include "confdefs.h"
5687 /* System header to define __stub macros and hopefully few prototypes,
5688     which can conflict with char $ac_func(); below.  */
5689 #include <assert.h>
5690 /* Override any gcc2 internal prototype to avoid an error.  */
5691 /* We use char because int might match the return type of a gcc2
5692     builtin and then its argument prototype would still apply.  */
5693 char $ac_func();
5694
5695 int main() {
5696
5697 /* The GNU C library defines this for functions which it implements
5698     to always fail with ENOSYS.  Some functions are actually named
5699     something starting with __ and the normal name is an alias.  */
5700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5701 choke me
5702 #else
5703 $ac_func();
5704 #endif
5705
5706 ; return 0; }
5707 EOF
5708 if { (eval echo configure:5709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5709   rm -rf conftest*
5710   eval "ac_cv_func_$ac_func=yes"
5711 else
5712   echo "configure: failed program was:" >&5
5713   cat conftest.$ac_ext >&5
5714   rm -rf conftest*
5715   eval "ac_cv_func_$ac_func=no"
5716 fi
5717 rm -f conftest*
5718 fi
5719
5720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5721   echo "$ac_t""yes" 1>&6
5722     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5723   cat >> confdefs.h <<EOF
5724 #define $ac_tr_func 1
5725 EOF
5726  
5727 else
5728   echo "$ac_t""no" 1>&6
5729 \
5730     ac_wfuncs=no
5731 fi
5732 done
5733
5734   
5735         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5736     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5737     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5738     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5739     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5740     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5741 do
5742 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5743 echo "configure:5744: checking for $ac_func" >&5
5744 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5745   echo $ac_n "(cached) $ac_c" 1>&6
5746 else
5747   cat > conftest.$ac_ext <<EOF
5748 #line 5749 "configure"
5749 #include "confdefs.h"
5750 /* System header to define __stub macros and hopefully few prototypes,
5751     which can conflict with char $ac_func(); below.  */
5752 #include <assert.h>
5753 /* Override any gcc2 internal prototype to avoid an error.  */
5754 /* We use char because int might match the return type of a gcc2
5755     builtin and then its argument prototype would still apply.  */
5756 char $ac_func();
5757
5758 int main() {
5759
5760 /* The GNU C library defines this for functions which it implements
5761     to always fail with ENOSYS.  Some functions are actually named
5762     something starting with __ and the normal name is an alias.  */
5763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5764 choke me
5765 #else
5766 $ac_func();
5767 #endif
5768
5769 ; return 0; }
5770 EOF
5771 if { (eval echo configure:5772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5772   rm -rf conftest*
5773   eval "ac_cv_func_$ac_func=yes"
5774 else
5775   echo "configure: failed program was:" >&5
5776   cat conftest.$ac_ext >&5
5777   rm -rf conftest*
5778   eval "ac_cv_func_$ac_func=no"
5779 fi
5780 rm -f conftest*
5781 fi
5782
5783 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5784   echo "$ac_t""yes" 1>&6
5785     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5786   cat >> confdefs.h <<EOF
5787 #define $ac_tr_func 1
5788 EOF
5789  
5790 else
5791   echo "$ac_t""no" 1>&6
5792 \
5793     ac_wfuncs=no
5794 fi
5795 done
5796
5797
5798     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5799 echo "configure:5800: checking for ISO C99 wchar_t support" >&5
5800     if test x"$has_weof" = xyes &&
5801        test x"$has_wchar_minmax" = xyes &&
5802        test x"$ac_wfuncs" = xyes; then
5803       ac_isoC99_wchar_t=yes
5804     else
5805       ac_isoC99_wchar_t=no
5806     fi
5807     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5808   
5809             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5810 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5811 echo "configure:5812: checking for iconv.h" >&5
5812 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5813   echo $ac_n "(cached) $ac_c" 1>&6
5814 else
5815   cat > conftest.$ac_ext <<EOF
5816 #line 5817 "configure"
5817 #include "confdefs.h"
5818 #include <iconv.h>
5819 EOF
5820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5821 { (eval echo configure:5822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5823 if test -z "$ac_err"; then
5824   rm -rf conftest*
5825   eval "ac_cv_header_$ac_safe=yes"
5826 else
5827   echo "$ac_err" >&5
5828   echo "configure: failed program was:" >&5
5829   cat conftest.$ac_ext >&5
5830   rm -rf conftest*
5831   eval "ac_cv_header_$ac_safe=no"
5832 fi
5833 rm -f conftest*
5834 fi
5835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5836   echo "$ac_t""yes" 1>&6
5837   ac_has_iconv_h=yes
5838 else
5839   echo "$ac_t""no" 1>&6
5840 ac_has_iconv_h=no
5841 fi
5842
5843     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5844 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5845 echo "configure:5846: checking for langinfo.h" >&5
5846 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5847   echo $ac_n "(cached) $ac_c" 1>&6
5848 else
5849   cat > conftest.$ac_ext <<EOF
5850 #line 5851 "configure"
5851 #include "confdefs.h"
5852 #include <langinfo.h>
5853 EOF
5854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5855 { (eval echo configure:5856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5857 if test -z "$ac_err"; then
5858   rm -rf conftest*
5859   eval "ac_cv_header_$ac_safe=yes"
5860 else
5861   echo "$ac_err" >&5
5862   echo "configure: failed program was:" >&5
5863   cat conftest.$ac_ext >&5
5864   rm -rf conftest*
5865   eval "ac_cv_header_$ac_safe=no"
5866 fi
5867 rm -f conftest*
5868 fi
5869 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5870   echo "$ac_t""yes" 1>&6
5871   ac_has_langinfo_h=yes
5872 else
5873   echo "$ac_t""no" 1>&6
5874 ac_has_langinfo_h=no
5875 fi
5876
5877
5878         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5879 echo "configure:5880: checking for iconv in -liconv" >&5
5880 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5881 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5882   echo $ac_n "(cached) $ac_c" 1>&6
5883 else
5884   ac_save_LIBS="$LIBS"
5885 LIBS="-liconv  $LIBS"
5886 cat > conftest.$ac_ext <<EOF
5887 #line 5888 "configure"
5888 #include "confdefs.h"
5889 /* Override any gcc2 internal prototype to avoid an error.  */
5890 /* We use char because int might match the return type of a gcc2
5891     builtin and then its argument prototype would still apply.  */
5892 char iconv();
5893
5894 int main() {
5895 iconv()
5896 ; return 0; }
5897 EOF
5898 if { (eval echo configure:5899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5899   rm -rf conftest*
5900   eval "ac_cv_lib_$ac_lib_var=yes"
5901 else
5902   echo "configure: failed program was:" >&5
5903   cat conftest.$ac_ext >&5
5904   rm -rf conftest*
5905   eval "ac_cv_lib_$ac_lib_var=no"
5906 fi
5907 rm -f conftest*
5908 LIBS="$ac_save_LIBS"
5909
5910 fi
5911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5912   echo "$ac_t""yes" 1>&6
5913   libiconv="-liconv"
5914 else
5915   echo "$ac_t""no" 1>&6
5916 fi
5917
5918     ac_save_LIBS="$LIBS"
5919     LIBS="$LIBS $libiconv"
5920
5921     for ac_func in iconv_open iconv_close iconv nl_langinfo
5922 do
5923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5924 echo "configure:5925: checking for $ac_func" >&5
5925 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5926   echo $ac_n "(cached) $ac_c" 1>&6
5927 else
5928   cat > conftest.$ac_ext <<EOF
5929 #line 5930 "configure"
5930 #include "confdefs.h"
5931 /* System header to define __stub macros and hopefully few prototypes,
5932     which can conflict with char $ac_func(); below.  */
5933 #include <assert.h>
5934 /* Override any gcc2 internal prototype to avoid an error.  */
5935 /* We use char because int might match the return type of a gcc2
5936     builtin and then its argument prototype would still apply.  */
5937 char $ac_func();
5938
5939 int main() {
5940
5941 /* The GNU C library defines this for functions which it implements
5942     to always fail with ENOSYS.  Some functions are actually named
5943     something starting with __ and the normal name is an alias.  */
5944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5945 choke me
5946 #else
5947 $ac_func();
5948 #endif
5949
5950 ; return 0; }
5951 EOF
5952 if { (eval echo configure:5953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5953   rm -rf conftest*
5954   eval "ac_cv_func_$ac_func=yes"
5955 else
5956   echo "configure: failed program was:" >&5
5957   cat conftest.$ac_ext >&5
5958   rm -rf conftest*
5959   eval "ac_cv_func_$ac_func=no"
5960 fi
5961 rm -f conftest*
5962 fi
5963
5964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5965   echo "$ac_t""yes" 1>&6
5966     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5967   cat >> confdefs.h <<EOF
5968 #define $ac_tr_func 1
5969 EOF
5970  \
5971     ac_XPG2funcs=yes
5972 else
5973   echo "$ac_t""no" 1>&6
5974 ac_XPG2funcs=no
5975 fi
5976 done
5977
5978   
5979     LIBS="$ac_save_LIBS"
5980
5981     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5982 echo "configure:5983: checking for XPG2 wchar_t support" >&5
5983     if test x"$ac_has_iconv_h" = xyes &&
5984        test x"$ac_has_langinfo_h" = xyes &&
5985        test x"$ac_XPG2funcs" = xyes; then
5986       ac_XPG2_wchar_t=yes
5987     else
5988       ac_XPG2_wchar_t=no
5989     fi
5990     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5991   
5992             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5993 echo "configure:5994: checking for enabled wchar_t specializations" >&5
5994     if test x"$ac_isoC99_wchar_t" = xyes &&
5995        test x"$ac_XPG2_wchar_t" = xyes; then
5996       cat >> confdefs.h <<\EOF
5997 #define _GLIBCPP_USE_WCHAR_T 1
5998 EOF
5999
6000       echo "$ac_t"""yes"" 1>&6
6001     else
6002       echo "$ac_t"""no"" 1>&6
6003     fi
6004   else
6005         echo "configure: warning: wchar_t support disabled." 1>&2
6006   fi
6007
6008       os_include_dir="os/hpux"
6009       cat >> confdefs.h <<\EOF
6010 #define HAVE_COPYSIGN 1
6011 EOF
6012
6013       cat >> confdefs.h <<\EOF
6014 #define HAVE_COPYSIGNF 1
6015 EOF
6016
6017       cat >> confdefs.h <<\EOF
6018 #define HAVE_FREXPF 1
6019 EOF
6020
6021       cat >> confdefs.h <<\EOF
6022 #define HAVE_HYPOT 1
6023 EOF
6024
6025       case "$target_alias" in
6026         *-hpux10*)
6027           cat >> confdefs.h <<\EOF
6028 #define HAVE_FINITE 1
6029 EOF
6030
6031           cat >> confdefs.h <<\EOF
6032 #define HAVE_FINITEF 1
6033 EOF
6034
6035           cat >> confdefs.h <<\EOF
6036 #define HAVE_ISINF 1
6037 EOF
6038
6039           cat >> confdefs.h <<\EOF
6040 #define HAVE_ISINFF 1
6041 EOF
6042
6043           cat >> confdefs.h <<\EOF
6044 #define HAVE_ISNAN 1
6045 EOF
6046
6047           cat >> confdefs.h <<\EOF
6048 #define HAVE_ISNANF 1
6049 EOF
6050
6051           ;;
6052       esac
6053
6054       ;;
6055     *-netbsd*)
6056       # Check for available headers.
6057       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6058         machine/endian.h machine/param.h sys/machine.h sys/types.h \
6059         fp.h locale.h float.h inttypes.h
6060 do
6061 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6062 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6063 echo "configure:6064: checking for $ac_hdr" >&5
6064 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6065   echo $ac_n "(cached) $ac_c" 1>&6
6066 else
6067   cat > conftest.$ac_ext <<EOF
6068 #line 6069 "configure"
6069 #include "confdefs.h"
6070 #include <$ac_hdr>
6071 EOF
6072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6073 { (eval echo configure:6074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6074 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6075 if test -z "$ac_err"; then
6076   rm -rf conftest*
6077   eval "ac_cv_header_$ac_safe=yes"
6078 else
6079   echo "$ac_err" >&5
6080   echo "configure: failed program was:" >&5
6081   cat conftest.$ac_ext >&5
6082   rm -rf conftest*
6083   eval "ac_cv_header_$ac_safe=no"
6084 fi
6085 rm -f conftest*
6086 fi
6087 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6088   echo "$ac_t""yes" 1>&6
6089     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6090   cat >> confdefs.h <<EOF
6091 #define $ac_tr_hdr 1
6092 EOF
6093  
6094 else
6095   echo "$ac_t""no" 1>&6
6096 fi
6097 done
6098
6099       SECTION_FLAGS='-ffunction-sections -fdata-sections'
6100        
6101       
6102   # If we're not using GNU ld, then there's no point in even trying these
6103   # tests.  Check for that first.  We should have already tested for gld
6104   # by now (in libtool), but require it now just to be safe...
6105   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6106   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6107   
6108
6109   # The name set by libtool depends on the version of libtool.  Shame on us
6110   # for depending on an impl detail, but c'est la vie.  Older versions used
6111   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6112   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6113   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6114   # set (hence we're using an older libtool), then set it.
6115   if test x${with_gnu_ld+set} != xset; then
6116     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6117       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6118       with_gnu_ld=no
6119     else
6120       with_gnu_ld=$ac_cv_prog_gnu_ld
6121     fi
6122   fi
6123
6124   # Start by getting the version number.  I think the libtool test already
6125   # does some of this, but throws away the result.
6126   
6127   ldver=`$LD --version 2>/dev/null | head -1 | \
6128          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6129   
6130   glibcpp_gnu_ld_version=`echo $ldver | \
6131          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6132
6133   # Set --gc-sections.
6134   if test "$with_gnu_ld" = "notbroken"; then
6135     # GNU ld it is!  Joy and bunny rabbits!
6136
6137     # All these tests are for C++; save the language and the compiler flags.
6138     # Need to do this so that g++ won't try to link in libstdc++
6139     ac_test_CFLAGS="${CFLAGS+set}"
6140     ac_save_CFLAGS="$CFLAGS"
6141     CFLAGS='-x c++  -Wl,--gc-sections'
6142
6143     # Check for -Wl,--gc-sections
6144     # XXX This test is broken at the moment, as symbols required for
6145     # linking are now in libsupc++ (not built yet.....). In addition, 
6146     # this test has cored on solaris in the past. In addition,
6147     # --gc-sections doesn't really work at the moment (keeps on discarding
6148     # used sections, first .eh_frame and now some of the glibc sections for
6149     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6150     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6151 echo "configure:6152: checking for ld that supports -Wl,--gc-sections" >&5
6152     if test "$cross_compiling" = yes; then
6153   ac_sectionLDflags=yes
6154 else
6155   cat > conftest.$ac_ext <<EOF
6156 #line 6157 "configure"
6157 #include "confdefs.h"
6158
6159      int main(void) 
6160      {
6161        try { throw 1; }
6162        catch (...) { };
6163        return 0;
6164      }
6165     
6166 EOF
6167 if { (eval echo configure:6168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6168 then
6169   ac_sectionLDflags=yes
6170 else
6171   echo "configure: failed program was:" >&5
6172   cat conftest.$ac_ext >&5
6173   rm -fr conftest*
6174   ac_sectionLDflags=no
6175 fi
6176 rm -fr conftest*
6177 fi
6178
6179     if test "$ac_test_CFLAGS" = set; then
6180       CFLAGS="$ac_save_CFLAGS"
6181     else
6182       # this is the suspicious part
6183       CFLAGS=''
6184     fi
6185     if test "$ac_sectionLDflags" = "yes"; then
6186       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6187     fi
6188     echo "$ac_t""$ac_sectionLDflags" 1>&6
6189   fi
6190
6191   # Set linker optimization flags.
6192   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
6193     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6194   fi
6195
6196   
6197   
6198
6199       
6200     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6201 echo "configure:6202: checking for main in -lm" >&5
6202 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6203 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6204   echo $ac_n "(cached) $ac_c" 1>&6
6205 else
6206   ac_save_LIBS="$LIBS"
6207 LIBS="-lm  $LIBS"
6208 cat > conftest.$ac_ext <<EOF
6209 #line 6210 "configure"
6210 #include "confdefs.h"
6211
6212 int main() {
6213 main()
6214 ; return 0; }
6215 EOF
6216 if { (eval echo configure:6217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6217   rm -rf conftest*
6218   eval "ac_cv_lib_$ac_lib_var=yes"
6219 else
6220   echo "configure: failed program was:" >&5
6221   cat conftest.$ac_ext >&5
6222   rm -rf conftest*
6223   eval "ac_cv_lib_$ac_lib_var=no"
6224 fi
6225 rm -f conftest*
6226 LIBS="$ac_save_LIBS"
6227
6228 fi
6229 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6230   echo "$ac_t""yes" 1>&6
6231     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6232     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6233   cat >> confdefs.h <<EOF
6234 #define $ac_tr_lib 1
6235 EOF
6236
6237   LIBS="-lm $LIBS"
6238
6239 else
6240   echo "$ac_t""no" 1>&6
6241 fi
6242
6243   for ac_func in nan copysignf
6244 do
6245 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6246 echo "configure:6247: checking for $ac_func" >&5
6247 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6248   echo $ac_n "(cached) $ac_c" 1>&6
6249 else
6250   cat > conftest.$ac_ext <<EOF
6251 #line 6252 "configure"
6252 #include "confdefs.h"
6253 /* System header to define __stub macros and hopefully few prototypes,
6254     which can conflict with char $ac_func(); below.  */
6255 #include <assert.h>
6256 /* Override any gcc2 internal prototype to avoid an error.  */
6257 /* We use char because int might match the return type of a gcc2
6258     builtin and then its argument prototype would still apply.  */
6259 char $ac_func();
6260
6261 int main() {
6262
6263 /* The GNU C library defines this for functions which it implements
6264     to always fail with ENOSYS.  Some functions are actually named
6265     something starting with __ and the normal name is an alias.  */
6266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6267 choke me
6268 #else
6269 $ac_func();
6270 #endif
6271
6272 ; return 0; }
6273 EOF
6274 if { (eval echo configure:6275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6275   rm -rf conftest*
6276   eval "ac_cv_func_$ac_func=yes"
6277 else
6278   echo "configure: failed program was:" >&5
6279   cat conftest.$ac_ext >&5
6280   rm -rf conftest*
6281   eval "ac_cv_func_$ac_func=no"
6282 fi
6283 rm -f conftest*
6284 fi
6285
6286 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6287   echo "$ac_t""yes" 1>&6
6288     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6289   cat >> confdefs.h <<EOF
6290 #define $ac_tr_func 1
6291 EOF
6292  
6293 else
6294   echo "$ac_t""no" 1>&6
6295 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6296 fi
6297 done
6298
6299
6300     for ac_func in __signbit
6301 do
6302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6303 echo "configure:6304: checking for $ac_func" >&5
6304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6305   echo $ac_n "(cached) $ac_c" 1>&6
6306 else
6307   cat > conftest.$ac_ext <<EOF
6308 #line 6309 "configure"
6309 #include "confdefs.h"
6310 /* System header to define __stub macros and hopefully few prototypes,
6311     which can conflict with char $ac_func(); below.  */
6312 #include <assert.h>
6313 /* Override any gcc2 internal prototype to avoid an error.  */
6314 /* We use char because int might match the return type of a gcc2
6315     builtin and then its argument prototype would still apply.  */
6316 char $ac_func();
6317
6318 int main() {
6319
6320 /* The GNU C library defines this for functions which it implements
6321     to always fail with ENOSYS.  Some functions are actually named
6322     something starting with __ and the normal name is an alias.  */
6323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6324 choke me
6325 #else
6326 $ac_func();
6327 #endif
6328
6329 ; return 0; }
6330 EOF
6331 if { (eval echo configure:6332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6332   rm -rf conftest*
6333   eval "ac_cv_func_$ac_func=yes"
6334 else
6335   echo "configure: failed program was:" >&5
6336   cat conftest.$ac_ext >&5
6337   rm -rf conftest*
6338   eval "ac_cv_func_$ac_func=no"
6339 fi
6340 rm -f conftest*
6341 fi
6342
6343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6344   echo "$ac_t""yes" 1>&6
6345     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6346   cat >> confdefs.h <<EOF
6347 #define $ac_tr_func 1
6348 EOF
6349  
6350 else
6351   echo "$ac_t""no" 1>&6
6352 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6353 fi
6354 done
6355
6356   for ac_func in __signbitf
6357 do
6358 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6359 echo "configure:6360: checking for $ac_func" >&5
6360 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6361   echo $ac_n "(cached) $ac_c" 1>&6
6362 else
6363   cat > conftest.$ac_ext <<EOF
6364 #line 6365 "configure"
6365 #include "confdefs.h"
6366 /* System header to define __stub macros and hopefully few prototypes,
6367     which can conflict with char $ac_func(); below.  */
6368 #include <assert.h>
6369 /* Override any gcc2 internal prototype to avoid an error.  */
6370 /* We use char because int might match the return type of a gcc2
6371     builtin and then its argument prototype would still apply.  */
6372 char $ac_func();
6373
6374 int main() {
6375
6376 /* The GNU C library defines this for functions which it implements
6377     to always fail with ENOSYS.  Some functions are actually named
6378     something starting with __ and the normal name is an alias.  */
6379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6380 choke me
6381 #else
6382 $ac_func();
6383 #endif
6384
6385 ; return 0; }
6386 EOF
6387 if { (eval echo configure:6388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6388   rm -rf conftest*
6389   eval "ac_cv_func_$ac_func=yes"
6390 else
6391   echo "configure: failed program was:" >&5
6392   cat conftest.$ac_ext >&5
6393   rm -rf conftest*
6394   eval "ac_cv_func_$ac_func=no"
6395 fi
6396 rm -f conftest*
6397 fi
6398
6399 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6400   echo "$ac_t""yes" 1>&6
6401     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6402   cat >> confdefs.h <<EOF
6403 #define $ac_tr_func 1
6404 EOF
6405  
6406 else
6407   echo "$ac_t""no" 1>&6
6408 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6409 fi
6410 done
6411
6412
6413           if test x$ac_cv_func_copysignl = x"yes"; then
6414     for ac_func in __signbitl
6415 do
6416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6417 echo "configure:6418: checking for $ac_func" >&5
6418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6419   echo $ac_n "(cached) $ac_c" 1>&6
6420 else
6421   cat > conftest.$ac_ext <<EOF
6422 #line 6423 "configure"
6423 #include "confdefs.h"
6424 /* System header to define __stub macros and hopefully few prototypes,
6425     which can conflict with char $ac_func(); below.  */
6426 #include <assert.h>
6427 /* Override any gcc2 internal prototype to avoid an error.  */
6428 /* We use char because int might match the return type of a gcc2
6429     builtin and then its argument prototype would still apply.  */
6430 char $ac_func();
6431
6432 int main() {
6433
6434 /* The GNU C library defines this for functions which it implements
6435     to always fail with ENOSYS.  Some functions are actually named
6436     something starting with __ and the normal name is an alias.  */
6437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6438 choke me
6439 #else
6440 $ac_func();
6441 #endif
6442
6443 ; return 0; }
6444 EOF
6445 if { (eval echo configure:6446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6446   rm -rf conftest*
6447   eval "ac_cv_func_$ac_func=yes"
6448 else
6449   echo "configure: failed program was:" >&5
6450   cat conftest.$ac_ext >&5
6451   rm -rf conftest*
6452   eval "ac_cv_func_$ac_func=no"
6453 fi
6454 rm -f conftest*
6455 fi
6456
6457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6458   echo "$ac_t""yes" 1>&6
6459     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6460   cat >> confdefs.h <<EOF
6461 #define $ac_tr_func 1
6462 EOF
6463  
6464 else
6465   echo "$ac_t""no" 1>&6
6466 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6467 fi
6468 done
6469
6470   fi
6471
6472   
6473
6474       
6475
6476       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6477 echo "configure:6478: checking for mbstate_t" >&5
6478   cat > conftest.$ac_ext <<EOF
6479 #line 6480 "configure"
6480 #include "confdefs.h"
6481 #include <wchar.h>
6482 int main() {
6483 mbstate_t teststate;
6484 ; return 0; }
6485 EOF
6486 if { (eval echo configure:6487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6487   rm -rf conftest*
6488   have_mbstate_t=yes
6489 else
6490   echo "configure: failed program was:" >&5
6491   cat conftest.$ac_ext >&5
6492   rm -rf conftest*
6493   have_mbstate_t=no
6494 fi
6495 rm -f conftest*
6496   echo "$ac_t""$have_mbstate_t" 1>&6
6497   if test x"$have_mbstate_t" = xyes; then
6498     cat >> confdefs.h <<\EOF
6499 #define HAVE_MBSTATE_T 1
6500 EOF
6501
6502   fi
6503
6504     for ac_hdr in wchar.h
6505 do
6506 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6507 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6508 echo "configure:6509: checking for $ac_hdr" >&5
6509 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6510   echo $ac_n "(cached) $ac_c" 1>&6
6511 else
6512   cat > conftest.$ac_ext <<EOF
6513 #line 6514 "configure"
6514 #include "confdefs.h"
6515 #include <$ac_hdr>
6516 EOF
6517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6518 { (eval echo configure:6519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6520 if test -z "$ac_err"; then
6521   rm -rf conftest*
6522   eval "ac_cv_header_$ac_safe=yes"
6523 else
6524   echo "$ac_err" >&5
6525   echo "configure: failed program was:" >&5
6526   cat conftest.$ac_ext >&5
6527   rm -rf conftest*
6528   eval "ac_cv_header_$ac_safe=no"
6529 fi
6530 rm -f conftest*
6531 fi
6532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6533   echo "$ac_t""yes" 1>&6
6534     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6535   cat >> confdefs.h <<EOF
6536 #define $ac_tr_hdr 1
6537 EOF
6538  ac_has_wchar_h=yes
6539 else
6540   echo "$ac_t""no" 1>&6
6541 ac_has_wchar_h=no
6542 fi
6543 done
6544
6545   for ac_hdr in wctype.h
6546 do
6547 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6548 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6549 echo "configure:6550: checking for $ac_hdr" >&5
6550 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6551   echo $ac_n "(cached) $ac_c" 1>&6
6552 else
6553   cat > conftest.$ac_ext <<EOF
6554 #line 6555 "configure"
6555 #include "confdefs.h"
6556 #include <$ac_hdr>
6557 EOF
6558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6559 { (eval echo configure:6560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6561 if test -z "$ac_err"; then
6562   rm -rf conftest*
6563   eval "ac_cv_header_$ac_safe=yes"
6564 else
6565   echo "$ac_err" >&5
6566   echo "configure: failed program was:" >&5
6567   cat conftest.$ac_ext >&5
6568   rm -rf conftest*
6569   eval "ac_cv_header_$ac_safe=no"
6570 fi
6571 rm -f conftest*
6572 fi
6573 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6574   echo "$ac_t""yes" 1>&6
6575     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6576   cat >> confdefs.h <<EOF
6577 #define $ac_tr_hdr 1
6578 EOF
6579  ac_has_wctype_h=yes
6580 else
6581   echo "$ac_t""no" 1>&6
6582 ac_has_wctype_h=no
6583 fi
6584 done
6585
6586   
6587     if test x"$ac_has_wchar_h" = xyes &&
6588      test x"$ac_has_wctype_h" = xyes &&
6589      test x"$enable_c_mbchar" != xno; then
6590       
6591             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6592 echo "configure:6593: checking for WCHAR_MIN and WCHAR_MAX" >&5
6593     cat > conftest.$ac_ext <<EOF
6594 #line 6595 "configure"
6595 #include "confdefs.h"
6596 #include <wchar.h>
6597 int main() {
6598 int i = WCHAR_MIN; int j = WCHAR_MAX;
6599 ; return 0; }
6600 EOF
6601 if { (eval echo configure:6602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6602   rm -rf conftest*
6603   has_wchar_minmax=yes
6604 else
6605   echo "configure: failed program was:" >&5
6606   cat conftest.$ac_ext >&5
6607   rm -rf conftest*
6608   has_wchar_minmax=no
6609 fi
6610 rm -f conftest*
6611     echo "$ac_t""$has_wchar_minmax" 1>&6
6612     
6613             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6614 echo "configure:6615: checking for WEOF" >&5
6615     cat > conftest.$ac_ext <<EOF
6616 #line 6617 "configure"
6617 #include "confdefs.h"
6618
6619       #include <wchar.h>
6620       #include <stddef.h>
6621 int main() {
6622 wint_t i = WEOF;
6623 ; return 0; }
6624 EOF
6625 if { (eval echo configure:6626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6626   rm -rf conftest*
6627   has_weof=yes
6628 else
6629   echo "configure: failed program was:" >&5
6630   cat conftest.$ac_ext >&5
6631   rm -rf conftest*
6632   has_weof=no
6633 fi
6634 rm -f conftest*
6635     echo "$ac_t""$has_weof" 1>&6
6636   
6637         ac_wfuncs=yes
6638     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6639 do
6640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6641 echo "configure:6642: checking for $ac_func" >&5
6642 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6643   echo $ac_n "(cached) $ac_c" 1>&6
6644 else
6645   cat > conftest.$ac_ext <<EOF
6646 #line 6647 "configure"
6647 #include "confdefs.h"
6648 /* System header to define __stub macros and hopefully few prototypes,
6649     which can conflict with char $ac_func(); below.  */
6650 #include <assert.h>
6651 /* Override any gcc2 internal prototype to avoid an error.  */
6652 /* We use char because int might match the return type of a gcc2
6653     builtin and then its argument prototype would still apply.  */
6654 char $ac_func();
6655
6656 int main() {
6657
6658 /* The GNU C library defines this for functions which it implements
6659     to always fail with ENOSYS.  Some functions are actually named
6660     something starting with __ and the normal name is an alias.  */
6661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6662 choke me
6663 #else
6664 $ac_func();
6665 #endif
6666
6667 ; return 0; }
6668 EOF
6669 if { (eval echo configure:6670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6670   rm -rf conftest*
6671   eval "ac_cv_func_$ac_func=yes"
6672 else
6673   echo "configure: failed program was:" >&5
6674   cat conftest.$ac_ext >&5
6675   rm -rf conftest*
6676   eval "ac_cv_func_$ac_func=no"
6677 fi
6678 rm -f conftest*
6679 fi
6680
6681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6682   echo "$ac_t""yes" 1>&6
6683     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6684   cat >> confdefs.h <<EOF
6685 #define $ac_tr_func 1
6686 EOF
6687  
6688 else
6689   echo "$ac_t""no" 1>&6
6690 \
6691     ac_wfuncs=no
6692 fi
6693 done
6694
6695   
6696         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6697     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6698     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6699     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6700     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6701     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6702 do
6703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6704 echo "configure:6705: checking for $ac_func" >&5
6705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6706   echo $ac_n "(cached) $ac_c" 1>&6
6707 else
6708   cat > conftest.$ac_ext <<EOF
6709 #line 6710 "configure"
6710 #include "confdefs.h"
6711 /* System header to define __stub macros and hopefully few prototypes,
6712     which can conflict with char $ac_func(); below.  */
6713 #include <assert.h>
6714 /* Override any gcc2 internal prototype to avoid an error.  */
6715 /* We use char because int might match the return type of a gcc2
6716     builtin and then its argument prototype would still apply.  */
6717 char $ac_func();
6718
6719 int main() {
6720
6721 /* The GNU C library defines this for functions which it implements
6722     to always fail with ENOSYS.  Some functions are actually named
6723     something starting with __ and the normal name is an alias.  */
6724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6725 choke me
6726 #else
6727 $ac_func();
6728 #endif
6729
6730 ; return 0; }
6731 EOF
6732 if { (eval echo configure:6733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6733   rm -rf conftest*
6734   eval "ac_cv_func_$ac_func=yes"
6735 else
6736   echo "configure: failed program was:" >&5
6737   cat conftest.$ac_ext >&5
6738   rm -rf conftest*
6739   eval "ac_cv_func_$ac_func=no"
6740 fi
6741 rm -f conftest*
6742 fi
6743
6744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6745   echo "$ac_t""yes" 1>&6
6746     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6747   cat >> confdefs.h <<EOF
6748 #define $ac_tr_func 1
6749 EOF
6750  
6751 else
6752   echo "$ac_t""no" 1>&6
6753 \
6754     ac_wfuncs=no
6755 fi
6756 done
6757
6758
6759     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6760 echo "configure:6761: checking for ISO C99 wchar_t support" >&5
6761     if test x"$has_weof" = xyes &&
6762        test x"$has_wchar_minmax" = xyes &&
6763        test x"$ac_wfuncs" = xyes; then
6764       ac_isoC99_wchar_t=yes
6765     else
6766       ac_isoC99_wchar_t=no
6767     fi
6768     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6769   
6770             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6771 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6772 echo "configure:6773: checking for iconv.h" >&5
6773 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6774   echo $ac_n "(cached) $ac_c" 1>&6
6775 else
6776   cat > conftest.$ac_ext <<EOF
6777 #line 6778 "configure"
6778 #include "confdefs.h"
6779 #include <iconv.h>
6780 EOF
6781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6782 { (eval echo configure:6783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6784 if test -z "$ac_err"; then
6785   rm -rf conftest*
6786   eval "ac_cv_header_$ac_safe=yes"
6787 else
6788   echo "$ac_err" >&5
6789   echo "configure: failed program was:" >&5
6790   cat conftest.$ac_ext >&5
6791   rm -rf conftest*
6792   eval "ac_cv_header_$ac_safe=no"
6793 fi
6794 rm -f conftest*
6795 fi
6796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6797   echo "$ac_t""yes" 1>&6
6798   ac_has_iconv_h=yes
6799 else
6800   echo "$ac_t""no" 1>&6
6801 ac_has_iconv_h=no
6802 fi
6803
6804     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6805 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6806 echo "configure:6807: checking for langinfo.h" >&5
6807 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6808   echo $ac_n "(cached) $ac_c" 1>&6
6809 else
6810   cat > conftest.$ac_ext <<EOF
6811 #line 6812 "configure"
6812 #include "confdefs.h"
6813 #include <langinfo.h>
6814 EOF
6815 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6816 { (eval echo configure:6817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6817 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6818 if test -z "$ac_err"; then
6819   rm -rf conftest*
6820   eval "ac_cv_header_$ac_safe=yes"
6821 else
6822   echo "$ac_err" >&5
6823   echo "configure: failed program was:" >&5
6824   cat conftest.$ac_ext >&5
6825   rm -rf conftest*
6826   eval "ac_cv_header_$ac_safe=no"
6827 fi
6828 rm -f conftest*
6829 fi
6830 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6831   echo "$ac_t""yes" 1>&6
6832   ac_has_langinfo_h=yes
6833 else
6834   echo "$ac_t""no" 1>&6
6835 ac_has_langinfo_h=no
6836 fi
6837
6838
6839         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6840 echo "configure:6841: checking for iconv in -liconv" >&5
6841 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6842 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6843   echo $ac_n "(cached) $ac_c" 1>&6
6844 else
6845   ac_save_LIBS="$LIBS"
6846 LIBS="-liconv  $LIBS"
6847 cat > conftest.$ac_ext <<EOF
6848 #line 6849 "configure"
6849 #include "confdefs.h"
6850 /* Override any gcc2 internal prototype to avoid an error.  */
6851 /* We use char because int might match the return type of a gcc2
6852     builtin and then its argument prototype would still apply.  */
6853 char iconv();
6854
6855 int main() {
6856 iconv()
6857 ; return 0; }
6858 EOF
6859 if { (eval echo configure:6860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6860   rm -rf conftest*
6861   eval "ac_cv_lib_$ac_lib_var=yes"
6862 else
6863   echo "configure: failed program was:" >&5
6864   cat conftest.$ac_ext >&5
6865   rm -rf conftest*
6866   eval "ac_cv_lib_$ac_lib_var=no"
6867 fi
6868 rm -f conftest*
6869 LIBS="$ac_save_LIBS"
6870
6871 fi
6872 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6873   echo "$ac_t""yes" 1>&6
6874   libiconv="-liconv"
6875 else
6876   echo "$ac_t""no" 1>&6
6877 fi
6878
6879     ac_save_LIBS="$LIBS"
6880     LIBS="$LIBS $libiconv"
6881
6882     for ac_func in iconv_open iconv_close iconv nl_langinfo
6883 do
6884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6885 echo "configure:6886: checking for $ac_func" >&5
6886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6887   echo $ac_n "(cached) $ac_c" 1>&6
6888 else
6889   cat > conftest.$ac_ext <<EOF
6890 #line 6891 "configure"
6891 #include "confdefs.h"
6892 /* System header to define __stub macros and hopefully few prototypes,
6893     which can conflict with char $ac_func(); below.  */
6894 #include <assert.h>
6895 /* Override any gcc2 internal prototype to avoid an error.  */
6896 /* We use char because int might match the return type of a gcc2
6897     builtin and then its argument prototype would still apply.  */
6898 char $ac_func();
6899
6900 int main() {
6901
6902 /* The GNU C library defines this for functions which it implements
6903     to always fail with ENOSYS.  Some functions are actually named
6904     something starting with __ and the normal name is an alias.  */
6905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6906 choke me
6907 #else
6908 $ac_func();
6909 #endif
6910
6911 ; return 0; }
6912 EOF
6913 if { (eval echo configure:6914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6914   rm -rf conftest*
6915   eval "ac_cv_func_$ac_func=yes"
6916 else
6917   echo "configure: failed program was:" >&5
6918   cat conftest.$ac_ext >&5
6919   rm -rf conftest*
6920   eval "ac_cv_func_$ac_func=no"
6921 fi
6922 rm -f conftest*
6923 fi
6924
6925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6926   echo "$ac_t""yes" 1>&6
6927     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6928   cat >> confdefs.h <<EOF
6929 #define $ac_tr_func 1
6930 EOF
6931  \
6932     ac_XPG2funcs=yes
6933 else
6934   echo "$ac_t""no" 1>&6
6935 ac_XPG2funcs=no
6936 fi
6937 done
6938
6939   
6940     LIBS="$ac_save_LIBS"
6941
6942     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6943 echo "configure:6944: checking for XPG2 wchar_t support" >&5
6944     if test x"$ac_has_iconv_h" = xyes &&
6945        test x"$ac_has_langinfo_h" = xyes &&
6946        test x"$ac_XPG2funcs" = xyes; then
6947       ac_XPG2_wchar_t=yes
6948     else
6949       ac_XPG2_wchar_t=no
6950     fi
6951     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6952   
6953             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6954 echo "configure:6955: checking for enabled wchar_t specializations" >&5
6955     if test x"$ac_isoC99_wchar_t" = xyes &&
6956        test x"$ac_XPG2_wchar_t" = xyes; then
6957       cat >> confdefs.h <<\EOF
6958 #define _GLIBCPP_USE_WCHAR_T 1
6959 EOF
6960
6961       echo "$ac_t"""yes"" 1>&6
6962     else
6963       echo "$ac_t"""no"" 1>&6
6964     fi
6965   else
6966         echo "configure: warning: wchar_t support disabled." 1>&2
6967   fi
6968
6969       os_include_dir="os/bsd/netbsd"
6970       cat >> confdefs.h <<\EOF
6971 #define HAVE_COPYSIGN 1
6972 EOF
6973
6974       cat >> confdefs.h <<\EOF
6975 #define HAVE_COPYSIGNF 1
6976 EOF
6977
6978       cat >> confdefs.h <<\EOF
6979 #define HAVE_FINITEF 1
6980 EOF
6981
6982       cat >> confdefs.h <<\EOF
6983 #define HAVE_FINITE 1
6984 EOF
6985
6986       cat >> confdefs.h <<\EOF
6987 #define HAVE_FREXPF 1
6988 EOF
6989
6990       cat >> confdefs.h <<\EOF
6991 #define HAVE_HYPOTF 1
6992 EOF
6993
6994       cat >> confdefs.h <<\EOF
6995 #define HAVE_ISINF 1
6996 EOF
6997
6998       cat >> confdefs.h <<\EOF
6999 #define HAVE_ISINFF 1
7000 EOF
7001
7002       cat >> confdefs.h <<\EOF
7003 #define HAVE_ISNAN 1
7004 EOF
7005
7006       cat >> confdefs.h <<\EOF
7007 #define HAVE_ISNANF 1
7008 EOF
7009
7010       if test x"long_double_math_on_this_cpu" = x"yes"; then
7011         cat >> confdefs.h <<\EOF
7012 #define HAVE_FINITEL 1
7013 EOF
7014
7015         cat >> confdefs.h <<\EOF
7016 #define HAVE_ISINFL 1
7017 EOF
7018
7019         cat >> confdefs.h <<\EOF
7020 #define HAVE_ISNANL 1
7021 EOF
7022
7023       fi
7024       ;;
7025     *-mingw32*)
7026       for ac_hdr in sys/types.h locale.h float.h
7027 do
7028 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7029 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7030 echo "configure:7031: checking for $ac_hdr" >&5
7031 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7032   echo $ac_n "(cached) $ac_c" 1>&6
7033 else
7034   cat > conftest.$ac_ext <<EOF
7035 #line 7036 "configure"
7036 #include "confdefs.h"
7037 #include <$ac_hdr>
7038 EOF
7039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7040 { (eval echo configure:7041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7041 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7042 if test -z "$ac_err"; then
7043   rm -rf conftest*
7044   eval "ac_cv_header_$ac_safe=yes"
7045 else
7046   echo "$ac_err" >&5
7047   echo "configure: failed program was:" >&5
7048   cat conftest.$ac_ext >&5
7049   rm -rf conftest*
7050   eval "ac_cv_header_$ac_safe=no"
7051 fi
7052 rm -f conftest*
7053 fi
7054 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7055   echo "$ac_t""yes" 1>&6
7056     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7057   cat >> confdefs.h <<EOF
7058 #define $ac_tr_hdr 1
7059 EOF
7060  
7061 else
7062   echo "$ac_t""no" 1>&6
7063 fi
7064 done
7065
7066       
7067   # If we're not using GNU ld, then there's no point in even trying these
7068   # tests.  Check for that first.  We should have already tested for gld
7069   # by now (in libtool), but require it now just to be safe...
7070   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7071   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7072   
7073
7074   # The name set by libtool depends on the version of libtool.  Shame on us
7075   # for depending on an impl detail, but c'est la vie.  Older versions used
7076   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7077   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7078   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7079   # set (hence we're using an older libtool), then set it.
7080   if test x${with_gnu_ld+set} != xset; then
7081     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7082       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7083       with_gnu_ld=no
7084     else
7085       with_gnu_ld=$ac_cv_prog_gnu_ld
7086     fi
7087   fi
7088
7089   # Start by getting the version number.  I think the libtool test already
7090   # does some of this, but throws away the result.
7091   
7092   ldver=`$LD --version 2>/dev/null | head -1 | \
7093          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7094   
7095   glibcpp_gnu_ld_version=`echo $ldver | \
7096          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7097
7098   # Set --gc-sections.
7099   if test "$with_gnu_ld" = "notbroken"; then
7100     # GNU ld it is!  Joy and bunny rabbits!
7101
7102     # All these tests are for C++; save the language and the compiler flags.
7103     # Need to do this so that g++ won't try to link in libstdc++
7104     ac_test_CFLAGS="${CFLAGS+set}"
7105     ac_save_CFLAGS="$CFLAGS"
7106     CFLAGS='-x c++  -Wl,--gc-sections'
7107
7108     # Check for -Wl,--gc-sections
7109     # XXX This test is broken at the moment, as symbols required for
7110     # linking are now in libsupc++ (not built yet.....). In addition, 
7111     # this test has cored on solaris in the past. In addition,
7112     # --gc-sections doesn't really work at the moment (keeps on discarding
7113     # used sections, first .eh_frame and now some of the glibc sections for
7114     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7115     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7116 echo "configure:7117: checking for ld that supports -Wl,--gc-sections" >&5
7117     if test "$cross_compiling" = yes; then
7118   ac_sectionLDflags=yes
7119 else
7120   cat > conftest.$ac_ext <<EOF
7121 #line 7122 "configure"
7122 #include "confdefs.h"
7123
7124      int main(void) 
7125      {
7126        try { throw 1; }
7127        catch (...) { };
7128        return 0;
7129      }
7130     
7131 EOF
7132 if { (eval echo configure:7133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7133 then
7134   ac_sectionLDflags=yes
7135 else
7136   echo "configure: failed program was:" >&5
7137   cat conftest.$ac_ext >&5
7138   rm -fr conftest*
7139   ac_sectionLDflags=no
7140 fi
7141 rm -fr conftest*
7142 fi
7143
7144     if test "$ac_test_CFLAGS" = set; then
7145       CFLAGS="$ac_save_CFLAGS"
7146     else
7147       # this is the suspicious part
7148       CFLAGS=''
7149     fi
7150     if test "$ac_sectionLDflags" = "yes"; then
7151       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7152     fi
7153     echo "$ac_t""$ac_sectionLDflags" 1>&6
7154   fi
7155
7156   # Set linker optimization flags.
7157   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7158     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7159   fi
7160
7161   
7162   
7163
7164       
7165     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7166 echo "configure:7167: checking for main in -lm" >&5
7167 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7168 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7169   echo $ac_n "(cached) $ac_c" 1>&6
7170 else
7171   ac_save_LIBS="$LIBS"
7172 LIBS="-lm  $LIBS"
7173 cat > conftest.$ac_ext <<EOF
7174 #line 7175 "configure"
7175 #include "confdefs.h"
7176
7177 int main() {
7178 main()
7179 ; return 0; }
7180 EOF
7181 if { (eval echo configure:7182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7182   rm -rf conftest*
7183   eval "ac_cv_lib_$ac_lib_var=yes"
7184 else
7185   echo "configure: failed program was:" >&5
7186   cat conftest.$ac_ext >&5
7187   rm -rf conftest*
7188   eval "ac_cv_lib_$ac_lib_var=no"
7189 fi
7190 rm -f conftest*
7191 LIBS="$ac_save_LIBS"
7192
7193 fi
7194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7195   echo "$ac_t""yes" 1>&6
7196     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7197     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7198   cat >> confdefs.h <<EOF
7199 #define $ac_tr_lib 1
7200 EOF
7201
7202   LIBS="-lm $LIBS"
7203
7204 else
7205   echo "$ac_t""no" 1>&6
7206 fi
7207
7208   for ac_func in nan copysignf
7209 do
7210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7211 echo "configure:7212: checking for $ac_func" >&5
7212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7213   echo $ac_n "(cached) $ac_c" 1>&6
7214 else
7215   cat > conftest.$ac_ext <<EOF
7216 #line 7217 "configure"
7217 #include "confdefs.h"
7218 /* System header to define __stub macros and hopefully few prototypes,
7219     which can conflict with char $ac_func(); below.  */
7220 #include <assert.h>
7221 /* Override any gcc2 internal prototype to avoid an error.  */
7222 /* We use char because int might match the return type of a gcc2
7223     builtin and then its argument prototype would still apply.  */
7224 char $ac_func();
7225
7226 int main() {
7227
7228 /* The GNU C library defines this for functions which it implements
7229     to always fail with ENOSYS.  Some functions are actually named
7230     something starting with __ and the normal name is an alias.  */
7231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7232 choke me
7233 #else
7234 $ac_func();
7235 #endif
7236
7237 ; return 0; }
7238 EOF
7239 if { (eval echo configure:7240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7240   rm -rf conftest*
7241   eval "ac_cv_func_$ac_func=yes"
7242 else
7243   echo "configure: failed program was:" >&5
7244   cat conftest.$ac_ext >&5
7245   rm -rf conftest*
7246   eval "ac_cv_func_$ac_func=no"
7247 fi
7248 rm -f conftest*
7249 fi
7250
7251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7252   echo "$ac_t""yes" 1>&6
7253     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7254   cat >> confdefs.h <<EOF
7255 #define $ac_tr_func 1
7256 EOF
7257  
7258 else
7259   echo "$ac_t""no" 1>&6
7260 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7261 fi
7262 done
7263
7264
7265     for ac_func in __signbit
7266 do
7267 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7268 echo "configure:7269: checking for $ac_func" >&5
7269 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7270   echo $ac_n "(cached) $ac_c" 1>&6
7271 else
7272   cat > conftest.$ac_ext <<EOF
7273 #line 7274 "configure"
7274 #include "confdefs.h"
7275 /* System header to define __stub macros and hopefully few prototypes,
7276     which can conflict with char $ac_func(); below.  */
7277 #include <assert.h>
7278 /* Override any gcc2 internal prototype to avoid an error.  */
7279 /* We use char because int might match the return type of a gcc2
7280     builtin and then its argument prototype would still apply.  */
7281 char $ac_func();
7282
7283 int main() {
7284
7285 /* The GNU C library defines this for functions which it implements
7286     to always fail with ENOSYS.  Some functions are actually named
7287     something starting with __ and the normal name is an alias.  */
7288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7289 choke me
7290 #else
7291 $ac_func();
7292 #endif
7293
7294 ; return 0; }
7295 EOF
7296 if { (eval echo configure:7297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7297   rm -rf conftest*
7298   eval "ac_cv_func_$ac_func=yes"
7299 else
7300   echo "configure: failed program was:" >&5
7301   cat conftest.$ac_ext >&5
7302   rm -rf conftest*
7303   eval "ac_cv_func_$ac_func=no"
7304 fi
7305 rm -f conftest*
7306 fi
7307
7308 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7309   echo "$ac_t""yes" 1>&6
7310     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7311   cat >> confdefs.h <<EOF
7312 #define $ac_tr_func 1
7313 EOF
7314  
7315 else
7316   echo "$ac_t""no" 1>&6
7317 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7318 fi
7319 done
7320
7321   for ac_func in __signbitf
7322 do
7323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7324 echo "configure:7325: checking for $ac_func" >&5
7325 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7326   echo $ac_n "(cached) $ac_c" 1>&6
7327 else
7328   cat > conftest.$ac_ext <<EOF
7329 #line 7330 "configure"
7330 #include "confdefs.h"
7331 /* System header to define __stub macros and hopefully few prototypes,
7332     which can conflict with char $ac_func(); below.  */
7333 #include <assert.h>
7334 /* Override any gcc2 internal prototype to avoid an error.  */
7335 /* We use char because int might match the return type of a gcc2
7336     builtin and then its argument prototype would still apply.  */
7337 char $ac_func();
7338
7339 int main() {
7340
7341 /* The GNU C library defines this for functions which it implements
7342     to always fail with ENOSYS.  Some functions are actually named
7343     something starting with __ and the normal name is an alias.  */
7344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7345 choke me
7346 #else
7347 $ac_func();
7348 #endif
7349
7350 ; return 0; }
7351 EOF
7352 if { (eval echo configure:7353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7353   rm -rf conftest*
7354   eval "ac_cv_func_$ac_func=yes"
7355 else
7356   echo "configure: failed program was:" >&5
7357   cat conftest.$ac_ext >&5
7358   rm -rf conftest*
7359   eval "ac_cv_func_$ac_func=no"
7360 fi
7361 rm -f conftest*
7362 fi
7363
7364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7365   echo "$ac_t""yes" 1>&6
7366     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7367   cat >> confdefs.h <<EOF
7368 #define $ac_tr_func 1
7369 EOF
7370  
7371 else
7372   echo "$ac_t""no" 1>&6
7373 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7374 fi
7375 done
7376
7377
7378           if test x$ac_cv_func_copysignl = x"yes"; then
7379     for ac_func in __signbitl
7380 do
7381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7382 echo "configure:7383: checking for $ac_func" >&5
7383 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7384   echo $ac_n "(cached) $ac_c" 1>&6
7385 else
7386   cat > conftest.$ac_ext <<EOF
7387 #line 7388 "configure"
7388 #include "confdefs.h"
7389 /* System header to define __stub macros and hopefully few prototypes,
7390     which can conflict with char $ac_func(); below.  */
7391 #include <assert.h>
7392 /* Override any gcc2 internal prototype to avoid an error.  */
7393 /* We use char because int might match the return type of a gcc2
7394     builtin and then its argument prototype would still apply.  */
7395 char $ac_func();
7396
7397 int main() {
7398
7399 /* The GNU C library defines this for functions which it implements
7400     to always fail with ENOSYS.  Some functions are actually named
7401     something starting with __ and the normal name is an alias.  */
7402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7403 choke me
7404 #else
7405 $ac_func();
7406 #endif
7407
7408 ; return 0; }
7409 EOF
7410 if { (eval echo configure:7411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7411   rm -rf conftest*
7412   eval "ac_cv_func_$ac_func=yes"
7413 else
7414   echo "configure: failed program was:" >&5
7415   cat conftest.$ac_ext >&5
7416   rm -rf conftest*
7417   eval "ac_cv_func_$ac_func=no"
7418 fi
7419 rm -f conftest*
7420 fi
7421
7422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7423   echo "$ac_t""yes" 1>&6
7424     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7425   cat >> confdefs.h <<EOF
7426 #define $ac_tr_func 1
7427 EOF
7428  
7429 else
7430   echo "$ac_t""no" 1>&6
7431 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7432 fi
7433 done
7434
7435   fi
7436
7437   
7438
7439       
7440
7441       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7442 echo "configure:7443: checking for mbstate_t" >&5
7443   cat > conftest.$ac_ext <<EOF
7444 #line 7445 "configure"
7445 #include "confdefs.h"
7446 #include <wchar.h>
7447 int main() {
7448 mbstate_t teststate;
7449 ; return 0; }
7450 EOF
7451 if { (eval echo configure:7452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7452   rm -rf conftest*
7453   have_mbstate_t=yes
7454 else
7455   echo "configure: failed program was:" >&5
7456   cat conftest.$ac_ext >&5
7457   rm -rf conftest*
7458   have_mbstate_t=no
7459 fi
7460 rm -f conftest*
7461   echo "$ac_t""$have_mbstate_t" 1>&6
7462   if test x"$have_mbstate_t" = xyes; then
7463     cat >> confdefs.h <<\EOF
7464 #define HAVE_MBSTATE_T 1
7465 EOF
7466
7467   fi
7468
7469     for ac_hdr in wchar.h
7470 do
7471 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7472 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7473 echo "configure:7474: checking for $ac_hdr" >&5
7474 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7475   echo $ac_n "(cached) $ac_c" 1>&6
7476 else
7477   cat > conftest.$ac_ext <<EOF
7478 #line 7479 "configure"
7479 #include "confdefs.h"
7480 #include <$ac_hdr>
7481 EOF
7482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7483 { (eval echo configure:7484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7485 if test -z "$ac_err"; then
7486   rm -rf conftest*
7487   eval "ac_cv_header_$ac_safe=yes"
7488 else
7489   echo "$ac_err" >&5
7490   echo "configure: failed program was:" >&5
7491   cat conftest.$ac_ext >&5
7492   rm -rf conftest*
7493   eval "ac_cv_header_$ac_safe=no"
7494 fi
7495 rm -f conftest*
7496 fi
7497 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7498   echo "$ac_t""yes" 1>&6
7499     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7500   cat >> confdefs.h <<EOF
7501 #define $ac_tr_hdr 1
7502 EOF
7503  ac_has_wchar_h=yes
7504 else
7505   echo "$ac_t""no" 1>&6
7506 ac_has_wchar_h=no
7507 fi
7508 done
7509
7510   for ac_hdr in wctype.h
7511 do
7512 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7513 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7514 echo "configure:7515: checking for $ac_hdr" >&5
7515 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7516   echo $ac_n "(cached) $ac_c" 1>&6
7517 else
7518   cat > conftest.$ac_ext <<EOF
7519 #line 7520 "configure"
7520 #include "confdefs.h"
7521 #include <$ac_hdr>
7522 EOF
7523 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7524 { (eval echo configure:7525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7525 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7526 if test -z "$ac_err"; then
7527   rm -rf conftest*
7528   eval "ac_cv_header_$ac_safe=yes"
7529 else
7530   echo "$ac_err" >&5
7531   echo "configure: failed program was:" >&5
7532   cat conftest.$ac_ext >&5
7533   rm -rf conftest*
7534   eval "ac_cv_header_$ac_safe=no"
7535 fi
7536 rm -f conftest*
7537 fi
7538 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7539   echo "$ac_t""yes" 1>&6
7540     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7541   cat >> confdefs.h <<EOF
7542 #define $ac_tr_hdr 1
7543 EOF
7544  ac_has_wctype_h=yes
7545 else
7546   echo "$ac_t""no" 1>&6
7547 ac_has_wctype_h=no
7548 fi
7549 done
7550
7551   
7552     if test x"$ac_has_wchar_h" = xyes &&
7553      test x"$ac_has_wctype_h" = xyes &&
7554      test x"$enable_c_mbchar" != xno; then
7555       
7556             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7557 echo "configure:7558: checking for WCHAR_MIN and WCHAR_MAX" >&5
7558     cat > conftest.$ac_ext <<EOF
7559 #line 7560 "configure"
7560 #include "confdefs.h"
7561 #include <wchar.h>
7562 int main() {
7563 int i = WCHAR_MIN; int j = WCHAR_MAX;
7564 ; return 0; }
7565 EOF
7566 if { (eval echo configure:7567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7567   rm -rf conftest*
7568   has_wchar_minmax=yes
7569 else
7570   echo "configure: failed program was:" >&5
7571   cat conftest.$ac_ext >&5
7572   rm -rf conftest*
7573   has_wchar_minmax=no
7574 fi
7575 rm -f conftest*
7576     echo "$ac_t""$has_wchar_minmax" 1>&6
7577     
7578             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7579 echo "configure:7580: checking for WEOF" >&5
7580     cat > conftest.$ac_ext <<EOF
7581 #line 7582 "configure"
7582 #include "confdefs.h"
7583
7584       #include <wchar.h>
7585       #include <stddef.h>
7586 int main() {
7587 wint_t i = WEOF;
7588 ; return 0; }
7589 EOF
7590 if { (eval echo configure:7591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7591   rm -rf conftest*
7592   has_weof=yes
7593 else
7594   echo "configure: failed program was:" >&5
7595   cat conftest.$ac_ext >&5
7596   rm -rf conftest*
7597   has_weof=no
7598 fi
7599 rm -f conftest*
7600     echo "$ac_t""$has_weof" 1>&6
7601   
7602         ac_wfuncs=yes
7603     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7604 do
7605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7606 echo "configure:7607: checking for $ac_func" >&5
7607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7608   echo $ac_n "(cached) $ac_c" 1>&6
7609 else
7610   cat > conftest.$ac_ext <<EOF
7611 #line 7612 "configure"
7612 #include "confdefs.h"
7613 /* System header to define __stub macros and hopefully few prototypes,
7614     which can conflict with char $ac_func(); below.  */
7615 #include <assert.h>
7616 /* Override any gcc2 internal prototype to avoid an error.  */
7617 /* We use char because int might match the return type of a gcc2
7618     builtin and then its argument prototype would still apply.  */
7619 char $ac_func();
7620
7621 int main() {
7622
7623 /* The GNU C library defines this for functions which it implements
7624     to always fail with ENOSYS.  Some functions are actually named
7625     something starting with __ and the normal name is an alias.  */
7626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7627 choke me
7628 #else
7629 $ac_func();
7630 #endif
7631
7632 ; return 0; }
7633 EOF
7634 if { (eval echo configure:7635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7635   rm -rf conftest*
7636   eval "ac_cv_func_$ac_func=yes"
7637 else
7638   echo "configure: failed program was:" >&5
7639   cat conftest.$ac_ext >&5
7640   rm -rf conftest*
7641   eval "ac_cv_func_$ac_func=no"
7642 fi
7643 rm -f conftest*
7644 fi
7645
7646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7647   echo "$ac_t""yes" 1>&6
7648     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7649   cat >> confdefs.h <<EOF
7650 #define $ac_tr_func 1
7651 EOF
7652  
7653 else
7654   echo "$ac_t""no" 1>&6
7655 \
7656     ac_wfuncs=no
7657 fi
7658 done
7659
7660   
7661         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7662     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7663     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7664     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7665     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7666     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7667 do
7668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7669 echo "configure:7670: checking for $ac_func" >&5
7670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7671   echo $ac_n "(cached) $ac_c" 1>&6
7672 else
7673   cat > conftest.$ac_ext <<EOF
7674 #line 7675 "configure"
7675 #include "confdefs.h"
7676 /* System header to define __stub macros and hopefully few prototypes,
7677     which can conflict with char $ac_func(); below.  */
7678 #include <assert.h>
7679 /* Override any gcc2 internal prototype to avoid an error.  */
7680 /* We use char because int might match the return type of a gcc2
7681     builtin and then its argument prototype would still apply.  */
7682 char $ac_func();
7683
7684 int main() {
7685
7686 /* The GNU C library defines this for functions which it implements
7687     to always fail with ENOSYS.  Some functions are actually named
7688     something starting with __ and the normal name is an alias.  */
7689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7690 choke me
7691 #else
7692 $ac_func();
7693 #endif
7694
7695 ; return 0; }
7696 EOF
7697 if { (eval echo configure:7698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7698   rm -rf conftest*
7699   eval "ac_cv_func_$ac_func=yes"
7700 else
7701   echo "configure: failed program was:" >&5
7702   cat conftest.$ac_ext >&5
7703   rm -rf conftest*
7704   eval "ac_cv_func_$ac_func=no"
7705 fi
7706 rm -f conftest*
7707 fi
7708
7709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7710   echo "$ac_t""yes" 1>&6
7711     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7712   cat >> confdefs.h <<EOF
7713 #define $ac_tr_func 1
7714 EOF
7715  
7716 else
7717   echo "$ac_t""no" 1>&6
7718 \
7719     ac_wfuncs=no
7720 fi
7721 done
7722
7723
7724     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7725 echo "configure:7726: checking for ISO C99 wchar_t support" >&5
7726     if test x"$has_weof" = xyes &&
7727        test x"$has_wchar_minmax" = xyes &&
7728        test x"$ac_wfuncs" = xyes; then
7729       ac_isoC99_wchar_t=yes
7730     else
7731       ac_isoC99_wchar_t=no
7732     fi
7733     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7734   
7735             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7736 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7737 echo "configure:7738: checking for iconv.h" >&5
7738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7739   echo $ac_n "(cached) $ac_c" 1>&6
7740 else
7741   cat > conftest.$ac_ext <<EOF
7742 #line 7743 "configure"
7743 #include "confdefs.h"
7744 #include <iconv.h>
7745 EOF
7746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7747 { (eval echo configure:7748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7749 if test -z "$ac_err"; then
7750   rm -rf conftest*
7751   eval "ac_cv_header_$ac_safe=yes"
7752 else
7753   echo "$ac_err" >&5
7754   echo "configure: failed program was:" >&5
7755   cat conftest.$ac_ext >&5
7756   rm -rf conftest*
7757   eval "ac_cv_header_$ac_safe=no"
7758 fi
7759 rm -f conftest*
7760 fi
7761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7762   echo "$ac_t""yes" 1>&6
7763   ac_has_iconv_h=yes
7764 else
7765   echo "$ac_t""no" 1>&6
7766 ac_has_iconv_h=no
7767 fi
7768
7769     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7770 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7771 echo "configure:7772: checking for langinfo.h" >&5
7772 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7773   echo $ac_n "(cached) $ac_c" 1>&6
7774 else
7775   cat > conftest.$ac_ext <<EOF
7776 #line 7777 "configure"
7777 #include "confdefs.h"
7778 #include <langinfo.h>
7779 EOF
7780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7781 { (eval echo configure:7782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7783 if test -z "$ac_err"; then
7784   rm -rf conftest*
7785   eval "ac_cv_header_$ac_safe=yes"
7786 else
7787   echo "$ac_err" >&5
7788   echo "configure: failed program was:" >&5
7789   cat conftest.$ac_ext >&5
7790   rm -rf conftest*
7791   eval "ac_cv_header_$ac_safe=no"
7792 fi
7793 rm -f conftest*
7794 fi
7795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7796   echo "$ac_t""yes" 1>&6
7797   ac_has_langinfo_h=yes
7798 else
7799   echo "$ac_t""no" 1>&6
7800 ac_has_langinfo_h=no
7801 fi
7802
7803
7804         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7805 echo "configure:7806: checking for iconv in -liconv" >&5
7806 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7807 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7808   echo $ac_n "(cached) $ac_c" 1>&6
7809 else
7810   ac_save_LIBS="$LIBS"
7811 LIBS="-liconv  $LIBS"
7812 cat > conftest.$ac_ext <<EOF
7813 #line 7814 "configure"
7814 #include "confdefs.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 iconv();
7819
7820 int main() {
7821 iconv()
7822 ; return 0; }
7823 EOF
7824 if { (eval echo configure:7825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7825   rm -rf conftest*
7826   eval "ac_cv_lib_$ac_lib_var=yes"
7827 else
7828   echo "configure: failed program was:" >&5
7829   cat conftest.$ac_ext >&5
7830   rm -rf conftest*
7831   eval "ac_cv_lib_$ac_lib_var=no"
7832 fi
7833 rm -f conftest*
7834 LIBS="$ac_save_LIBS"
7835
7836 fi
7837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7838   echo "$ac_t""yes" 1>&6
7839   libiconv="-liconv"
7840 else
7841   echo "$ac_t""no" 1>&6
7842 fi
7843
7844     ac_save_LIBS="$LIBS"
7845     LIBS="$LIBS $libiconv"
7846
7847     for ac_func in iconv_open iconv_close iconv nl_langinfo
7848 do
7849 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7850 echo "configure:7851: checking for $ac_func" >&5
7851 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7852   echo $ac_n "(cached) $ac_c" 1>&6
7853 else
7854   cat > conftest.$ac_ext <<EOF
7855 #line 7856 "configure"
7856 #include "confdefs.h"
7857 /* System header to define __stub macros and hopefully few prototypes,
7858     which can conflict with char $ac_func(); below.  */
7859 #include <assert.h>
7860 /* Override any gcc2 internal prototype to avoid an error.  */
7861 /* We use char because int might match the return type of a gcc2
7862     builtin and then its argument prototype would still apply.  */
7863 char $ac_func();
7864
7865 int main() {
7866
7867 /* The GNU C library defines this for functions which it implements
7868     to always fail with ENOSYS.  Some functions are actually named
7869     something starting with __ and the normal name is an alias.  */
7870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7871 choke me
7872 #else
7873 $ac_func();
7874 #endif
7875
7876 ; return 0; }
7877 EOF
7878 if { (eval echo configure:7879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7879   rm -rf conftest*
7880   eval "ac_cv_func_$ac_func=yes"
7881 else
7882   echo "configure: failed program was:" >&5
7883   cat conftest.$ac_ext >&5
7884   rm -rf conftest*
7885   eval "ac_cv_func_$ac_func=no"
7886 fi
7887 rm -f conftest*
7888 fi
7889
7890 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7891   echo "$ac_t""yes" 1>&6
7892     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7893   cat >> confdefs.h <<EOF
7894 #define $ac_tr_func 1
7895 EOF
7896  \
7897     ac_XPG2funcs=yes
7898 else
7899   echo "$ac_t""no" 1>&6
7900 ac_XPG2funcs=no
7901 fi
7902 done
7903
7904   
7905     LIBS="$ac_save_LIBS"
7906
7907     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7908 echo "configure:7909: checking for XPG2 wchar_t support" >&5
7909     if test x"$ac_has_iconv_h" = xyes &&
7910        test x"$ac_has_langinfo_h" = xyes &&
7911        test x"$ac_XPG2funcs" = xyes; then
7912       ac_XPG2_wchar_t=yes
7913     else
7914       ac_XPG2_wchar_t=no
7915     fi
7916     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7917   
7918             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7919 echo "configure:7920: checking for enabled wchar_t specializations" >&5
7920     if test x"$ac_isoC99_wchar_t" = xyes &&
7921        test x"$ac_XPG2_wchar_t" = xyes; then
7922       cat >> confdefs.h <<\EOF
7923 #define _GLIBCPP_USE_WCHAR_T 1
7924 EOF
7925
7926       echo "$ac_t"""yes"" 1>&6
7927     else
7928       echo "$ac_t"""no"" 1>&6
7929     fi
7930   else
7931         echo "configure: warning: wchar_t support disabled." 1>&2
7932   fi
7933
7934       os_include_dir="os/mingw32"
7935       ;;
7936     *-windiss*)
7937       os_include_dir="os/windiss"
7938       ;;
7939     *-qnx6.[12]*)
7940       SECTION_FLAGS='-ffunction-sections -fdata-sections'
7941        
7942       
7943   # If we're not using GNU ld, then there's no point in even trying these
7944   # tests.  Check for that first.  We should have already tested for gld
7945   # by now (in libtool), but require it now just to be safe...
7946   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7947   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7948   
7949
7950   # The name set by libtool depends on the version of libtool.  Shame on us
7951   # for depending on an impl detail, but c'est la vie.  Older versions used
7952   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7953   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7954   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7955   # set (hence we're using an older libtool), then set it.
7956   if test x${with_gnu_ld+set} != xset; then
7957     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7958       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7959       with_gnu_ld=no
7960     else
7961       with_gnu_ld=$ac_cv_prog_gnu_ld
7962     fi
7963   fi
7964
7965   # Start by getting the version number.  I think the libtool test already
7966   # does some of this, but throws away the result.
7967   
7968   ldver=`$LD --version 2>/dev/null | head -1 | \
7969          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7970   
7971   glibcpp_gnu_ld_version=`echo $ldver | \
7972          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7973
7974   # Set --gc-sections.
7975   if test "$with_gnu_ld" = "notbroken"; then
7976     # GNU ld it is!  Joy and bunny rabbits!
7977
7978     # All these tests are for C++; save the language and the compiler flags.
7979     # Need to do this so that g++ won't try to link in libstdc++
7980     ac_test_CFLAGS="${CFLAGS+set}"
7981     ac_save_CFLAGS="$CFLAGS"
7982     CFLAGS='-x c++  -Wl,--gc-sections'
7983
7984     # Check for -Wl,--gc-sections
7985     # XXX This test is broken at the moment, as symbols required for
7986     # linking are now in libsupc++ (not built yet.....). In addition, 
7987     # this test has cored on solaris in the past. In addition,
7988     # --gc-sections doesn't really work at the moment (keeps on discarding
7989     # used sections, first .eh_frame and now some of the glibc sections for
7990     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7991     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7992 echo "configure:7993: checking for ld that supports -Wl,--gc-sections" >&5
7993     if test "$cross_compiling" = yes; then
7994   ac_sectionLDflags=yes
7995 else
7996   cat > conftest.$ac_ext <<EOF
7997 #line 7998 "configure"
7998 #include "confdefs.h"
7999
8000      int main(void) 
8001      {
8002        try { throw 1; }
8003        catch (...) { };
8004        return 0;
8005      }
8006     
8007 EOF
8008 if { (eval echo configure:8009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8009 then
8010   ac_sectionLDflags=yes
8011 else
8012   echo "configure: failed program was:" >&5
8013   cat conftest.$ac_ext >&5
8014   rm -fr conftest*
8015   ac_sectionLDflags=no
8016 fi
8017 rm -fr conftest*
8018 fi
8019
8020     if test "$ac_test_CFLAGS" = set; then
8021       CFLAGS="$ac_save_CFLAGS"
8022     else
8023       # this is the suspicious part
8024       CFLAGS=''
8025     fi
8026     if test "$ac_sectionLDflags" = "yes"; then
8027       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8028     fi
8029     echo "$ac_t""$ac_sectionLDflags" 1>&6
8030   fi
8031
8032   # Set linker optimization flags.
8033   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
8034     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8035   fi
8036
8037   
8038   
8039
8040       
8041     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8042 echo "configure:8043: checking for main in -lm" >&5
8043 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8044 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8045   echo $ac_n "(cached) $ac_c" 1>&6
8046 else
8047   ac_save_LIBS="$LIBS"
8048 LIBS="-lm  $LIBS"
8049 cat > conftest.$ac_ext <<EOF
8050 #line 8051 "configure"
8051 #include "confdefs.h"
8052
8053 int main() {
8054 main()
8055 ; return 0; }
8056 EOF
8057 if { (eval echo configure:8058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8058   rm -rf conftest*
8059   eval "ac_cv_lib_$ac_lib_var=yes"
8060 else
8061   echo "configure: failed program was:" >&5
8062   cat conftest.$ac_ext >&5
8063   rm -rf conftest*
8064   eval "ac_cv_lib_$ac_lib_var=no"
8065 fi
8066 rm -f conftest*
8067 LIBS="$ac_save_LIBS"
8068
8069 fi
8070 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8071   echo "$ac_t""yes" 1>&6
8072     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8073     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8074   cat >> confdefs.h <<EOF
8075 #define $ac_tr_lib 1
8076 EOF
8077
8078   LIBS="-lm $LIBS"
8079
8080 else
8081   echo "$ac_t""no" 1>&6
8082 fi
8083
8084   for ac_func in nan copysignf
8085 do
8086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8087 echo "configure:8088: checking for $ac_func" >&5
8088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8089   echo $ac_n "(cached) $ac_c" 1>&6
8090 else
8091   cat > conftest.$ac_ext <<EOF
8092 #line 8093 "configure"
8093 #include "confdefs.h"
8094 /* System header to define __stub macros and hopefully few prototypes,
8095     which can conflict with char $ac_func(); below.  */
8096 #include <assert.h>
8097 /* Override any gcc2 internal prototype to avoid an error.  */
8098 /* We use char because int might match the return type of a gcc2
8099     builtin and then its argument prototype would still apply.  */
8100 char $ac_func();
8101
8102 int main() {
8103
8104 /* The GNU C library defines this for functions which it implements
8105     to always fail with ENOSYS.  Some functions are actually named
8106     something starting with __ and the normal name is an alias.  */
8107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8108 choke me
8109 #else
8110 $ac_func();
8111 #endif
8112
8113 ; return 0; }
8114 EOF
8115 if { (eval echo configure:8116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8116   rm -rf conftest*
8117   eval "ac_cv_func_$ac_func=yes"
8118 else
8119   echo "configure: failed program was:" >&5
8120   cat conftest.$ac_ext >&5
8121   rm -rf conftest*
8122   eval "ac_cv_func_$ac_func=no"
8123 fi
8124 rm -f conftest*
8125 fi
8126
8127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8128   echo "$ac_t""yes" 1>&6
8129     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8130   cat >> confdefs.h <<EOF
8131 #define $ac_tr_func 1
8132 EOF
8133  
8134 else
8135   echo "$ac_t""no" 1>&6
8136 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8137 fi
8138 done
8139
8140
8141     for ac_func in __signbit
8142 do
8143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8144 echo "configure:8145: checking for $ac_func" >&5
8145 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8146   echo $ac_n "(cached) $ac_c" 1>&6
8147 else
8148   cat > conftest.$ac_ext <<EOF
8149 #line 8150 "configure"
8150 #include "confdefs.h"
8151 /* System header to define __stub macros and hopefully few prototypes,
8152     which can conflict with char $ac_func(); below.  */
8153 #include <assert.h>
8154 /* Override any gcc2 internal prototype to avoid an error.  */
8155 /* We use char because int might match the return type of a gcc2
8156     builtin and then its argument prototype would still apply.  */
8157 char $ac_func();
8158
8159 int main() {
8160
8161 /* The GNU C library defines this for functions which it implements
8162     to always fail with ENOSYS.  Some functions are actually named
8163     something starting with __ and the normal name is an alias.  */
8164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8165 choke me
8166 #else
8167 $ac_func();
8168 #endif
8169
8170 ; return 0; }
8171 EOF
8172 if { (eval echo configure:8173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8173   rm -rf conftest*
8174   eval "ac_cv_func_$ac_func=yes"
8175 else
8176   echo "configure: failed program was:" >&5
8177   cat conftest.$ac_ext >&5
8178   rm -rf conftest*
8179   eval "ac_cv_func_$ac_func=no"
8180 fi
8181 rm -f conftest*
8182 fi
8183
8184 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8185   echo "$ac_t""yes" 1>&6
8186     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8187   cat >> confdefs.h <<EOF
8188 #define $ac_tr_func 1
8189 EOF
8190  
8191 else
8192   echo "$ac_t""no" 1>&6
8193 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8194 fi
8195 done
8196
8197   for ac_func in __signbitf
8198 do
8199 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8200 echo "configure:8201: checking for $ac_func" >&5
8201 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8202   echo $ac_n "(cached) $ac_c" 1>&6
8203 else
8204   cat > conftest.$ac_ext <<EOF
8205 #line 8206 "configure"
8206 #include "confdefs.h"
8207 /* System header to define __stub macros and hopefully few prototypes,
8208     which can conflict with char $ac_func(); below.  */
8209 #include <assert.h>
8210 /* Override any gcc2 internal prototype to avoid an error.  */
8211 /* We use char because int might match the return type of a gcc2
8212     builtin and then its argument prototype would still apply.  */
8213 char $ac_func();
8214
8215 int main() {
8216
8217 /* The GNU C library defines this for functions which it implements
8218     to always fail with ENOSYS.  Some functions are actually named
8219     something starting with __ and the normal name is an alias.  */
8220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8221 choke me
8222 #else
8223 $ac_func();
8224 #endif
8225
8226 ; return 0; }
8227 EOF
8228 if { (eval echo configure:8229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8229   rm -rf conftest*
8230   eval "ac_cv_func_$ac_func=yes"
8231 else
8232   echo "configure: failed program was:" >&5
8233   cat conftest.$ac_ext >&5
8234   rm -rf conftest*
8235   eval "ac_cv_func_$ac_func=no"
8236 fi
8237 rm -f conftest*
8238 fi
8239
8240 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8241   echo "$ac_t""yes" 1>&6
8242     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8243   cat >> confdefs.h <<EOF
8244 #define $ac_tr_func 1
8245 EOF
8246  
8247 else
8248   echo "$ac_t""no" 1>&6
8249 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8250 fi
8251 done
8252
8253
8254           if test x$ac_cv_func_copysignl = x"yes"; then
8255     for ac_func in __signbitl
8256 do
8257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8258 echo "configure:8259: checking for $ac_func" >&5
8259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8260   echo $ac_n "(cached) $ac_c" 1>&6
8261 else
8262   cat > conftest.$ac_ext <<EOF
8263 #line 8264 "configure"
8264 #include "confdefs.h"
8265 /* System header to define __stub macros and hopefully few prototypes,
8266     which can conflict with char $ac_func(); below.  */
8267 #include <assert.h>
8268 /* Override any gcc2 internal prototype to avoid an error.  */
8269 /* We use char because int might match the return type of a gcc2
8270     builtin and then its argument prototype would still apply.  */
8271 char $ac_func();
8272
8273 int main() {
8274
8275 /* The GNU C library defines this for functions which it implements
8276     to always fail with ENOSYS.  Some functions are actually named
8277     something starting with __ and the normal name is an alias.  */
8278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8279 choke me
8280 #else
8281 $ac_func();
8282 #endif
8283
8284 ; return 0; }
8285 EOF
8286 if { (eval echo configure:8287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8287   rm -rf conftest*
8288   eval "ac_cv_func_$ac_func=yes"
8289 else
8290   echo "configure: failed program was:" >&5
8291   cat conftest.$ac_ext >&5
8292   rm -rf conftest*
8293   eval "ac_cv_func_$ac_func=no"
8294 fi
8295 rm -f conftest*
8296 fi
8297
8298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8299   echo "$ac_t""yes" 1>&6
8300     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8301   cat >> confdefs.h <<EOF
8302 #define $ac_tr_func 1
8303 EOF
8304  
8305 else
8306   echo "$ac_t""no" 1>&6
8307 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8308 fi
8309 done
8310
8311   fi
8312
8313   
8314
8315       
8316
8317       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8318 echo "configure:8319: checking for mbstate_t" >&5
8319   cat > conftest.$ac_ext <<EOF
8320 #line 8321 "configure"
8321 #include "confdefs.h"
8322 #include <wchar.h>
8323 int main() {
8324 mbstate_t teststate;
8325 ; return 0; }
8326 EOF
8327 if { (eval echo configure:8328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8328   rm -rf conftest*
8329   have_mbstate_t=yes
8330 else
8331   echo "configure: failed program was:" >&5
8332   cat conftest.$ac_ext >&5
8333   rm -rf conftest*
8334   have_mbstate_t=no
8335 fi
8336 rm -f conftest*
8337   echo "$ac_t""$have_mbstate_t" 1>&6
8338   if test x"$have_mbstate_t" = xyes; then
8339     cat >> confdefs.h <<\EOF
8340 #define HAVE_MBSTATE_T 1
8341 EOF
8342
8343   fi
8344
8345     for ac_hdr in wchar.h
8346 do
8347 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8348 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8349 echo "configure:8350: checking for $ac_hdr" >&5
8350 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8351   echo $ac_n "(cached) $ac_c" 1>&6
8352 else
8353   cat > conftest.$ac_ext <<EOF
8354 #line 8355 "configure"
8355 #include "confdefs.h"
8356 #include <$ac_hdr>
8357 EOF
8358 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8359 { (eval echo configure:8360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8360 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8361 if test -z "$ac_err"; then
8362   rm -rf conftest*
8363   eval "ac_cv_header_$ac_safe=yes"
8364 else
8365   echo "$ac_err" >&5
8366   echo "configure: failed program was:" >&5
8367   cat conftest.$ac_ext >&5
8368   rm -rf conftest*
8369   eval "ac_cv_header_$ac_safe=no"
8370 fi
8371 rm -f conftest*
8372 fi
8373 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8374   echo "$ac_t""yes" 1>&6
8375     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8376   cat >> confdefs.h <<EOF
8377 #define $ac_tr_hdr 1
8378 EOF
8379  ac_has_wchar_h=yes
8380 else
8381   echo "$ac_t""no" 1>&6
8382 ac_has_wchar_h=no
8383 fi
8384 done
8385
8386   for ac_hdr in wctype.h
8387 do
8388 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8389 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8390 echo "configure:8391: checking for $ac_hdr" >&5
8391 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8392   echo $ac_n "(cached) $ac_c" 1>&6
8393 else
8394   cat > conftest.$ac_ext <<EOF
8395 #line 8396 "configure"
8396 #include "confdefs.h"
8397 #include <$ac_hdr>
8398 EOF
8399 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8400 { (eval echo configure:8401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8401 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8402 if test -z "$ac_err"; then
8403   rm -rf conftest*
8404   eval "ac_cv_header_$ac_safe=yes"
8405 else
8406   echo "$ac_err" >&5
8407   echo "configure: failed program was:" >&5
8408   cat conftest.$ac_ext >&5
8409   rm -rf conftest*
8410   eval "ac_cv_header_$ac_safe=no"
8411 fi
8412 rm -f conftest*
8413 fi
8414 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8415   echo "$ac_t""yes" 1>&6
8416     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8417   cat >> confdefs.h <<EOF
8418 #define $ac_tr_hdr 1
8419 EOF
8420  ac_has_wctype_h=yes
8421 else
8422   echo "$ac_t""no" 1>&6
8423 ac_has_wctype_h=no
8424 fi
8425 done
8426
8427   
8428     if test x"$ac_has_wchar_h" = xyes &&
8429      test x"$ac_has_wctype_h" = xyes &&
8430      test x"$enable_c_mbchar" != xno; then
8431       
8432             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8433 echo "configure:8434: checking for WCHAR_MIN and WCHAR_MAX" >&5
8434     cat > conftest.$ac_ext <<EOF
8435 #line 8436 "configure"
8436 #include "confdefs.h"
8437 #include <wchar.h>
8438 int main() {
8439 int i = WCHAR_MIN; int j = WCHAR_MAX;
8440 ; return 0; }
8441 EOF
8442 if { (eval echo configure:8443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8443   rm -rf conftest*
8444   has_wchar_minmax=yes
8445 else
8446   echo "configure: failed program was:" >&5
8447   cat conftest.$ac_ext >&5
8448   rm -rf conftest*
8449   has_wchar_minmax=no
8450 fi
8451 rm -f conftest*
8452     echo "$ac_t""$has_wchar_minmax" 1>&6
8453     
8454             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8455 echo "configure:8456: checking for WEOF" >&5
8456     cat > conftest.$ac_ext <<EOF
8457 #line 8458 "configure"
8458 #include "confdefs.h"
8459
8460       #include <wchar.h>
8461       #include <stddef.h>
8462 int main() {
8463 wint_t i = WEOF;
8464 ; return 0; }
8465 EOF
8466 if { (eval echo configure:8467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8467   rm -rf conftest*
8468   has_weof=yes
8469 else
8470   echo "configure: failed program was:" >&5
8471   cat conftest.$ac_ext >&5
8472   rm -rf conftest*
8473   has_weof=no
8474 fi
8475 rm -f conftest*
8476     echo "$ac_t""$has_weof" 1>&6
8477   
8478         ac_wfuncs=yes
8479     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8480 do
8481 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8482 echo "configure:8483: checking for $ac_func" >&5
8483 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8484   echo $ac_n "(cached) $ac_c" 1>&6
8485 else
8486   cat > conftest.$ac_ext <<EOF
8487 #line 8488 "configure"
8488 #include "confdefs.h"
8489 /* System header to define __stub macros and hopefully few prototypes,
8490     which can conflict with char $ac_func(); below.  */
8491 #include <assert.h>
8492 /* Override any gcc2 internal prototype to avoid an error.  */
8493 /* We use char because int might match the return type of a gcc2
8494     builtin and then its argument prototype would still apply.  */
8495 char $ac_func();
8496
8497 int main() {
8498
8499 /* The GNU C library defines this for functions which it implements
8500     to always fail with ENOSYS.  Some functions are actually named
8501     something starting with __ and the normal name is an alias.  */
8502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8503 choke me
8504 #else
8505 $ac_func();
8506 #endif
8507
8508 ; return 0; }
8509 EOF
8510 if { (eval echo configure:8511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8511   rm -rf conftest*
8512   eval "ac_cv_func_$ac_func=yes"
8513 else
8514   echo "configure: failed program was:" >&5
8515   cat conftest.$ac_ext >&5
8516   rm -rf conftest*
8517   eval "ac_cv_func_$ac_func=no"
8518 fi
8519 rm -f conftest*
8520 fi
8521
8522 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8523   echo "$ac_t""yes" 1>&6
8524     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8525   cat >> confdefs.h <<EOF
8526 #define $ac_tr_func 1
8527 EOF
8528  
8529 else
8530   echo "$ac_t""no" 1>&6
8531 \
8532     ac_wfuncs=no
8533 fi
8534 done
8535
8536   
8537         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
8538     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8539     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8540     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8541     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8542     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8543 do
8544 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8545 echo "configure:8546: checking for $ac_func" >&5
8546 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8547   echo $ac_n "(cached) $ac_c" 1>&6
8548 else
8549   cat > conftest.$ac_ext <<EOF
8550 #line 8551 "configure"
8551 #include "confdefs.h"
8552 /* System header to define __stub macros and hopefully few prototypes,
8553     which can conflict with char $ac_func(); below.  */
8554 #include <assert.h>
8555 /* Override any gcc2 internal prototype to avoid an error.  */
8556 /* We use char because int might match the return type of a gcc2
8557     builtin and then its argument prototype would still apply.  */
8558 char $ac_func();
8559
8560 int main() {
8561
8562 /* The GNU C library defines this for functions which it implements
8563     to always fail with ENOSYS.  Some functions are actually named
8564     something starting with __ and the normal name is an alias.  */
8565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8566 choke me
8567 #else
8568 $ac_func();
8569 #endif
8570
8571 ; return 0; }
8572 EOF
8573 if { (eval echo configure:8574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8574   rm -rf conftest*
8575   eval "ac_cv_func_$ac_func=yes"
8576 else
8577   echo "configure: failed program was:" >&5
8578   cat conftest.$ac_ext >&5
8579   rm -rf conftest*
8580   eval "ac_cv_func_$ac_func=no"
8581 fi
8582 rm -f conftest*
8583 fi
8584
8585 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8586   echo "$ac_t""yes" 1>&6
8587     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8588   cat >> confdefs.h <<EOF
8589 #define $ac_tr_func 1
8590 EOF
8591  
8592 else
8593   echo "$ac_t""no" 1>&6
8594 \
8595     ac_wfuncs=no
8596 fi
8597 done
8598
8599
8600     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8601 echo "configure:8602: checking for ISO C99 wchar_t support" >&5
8602     if test x"$has_weof" = xyes &&
8603        test x"$has_wchar_minmax" = xyes &&
8604        test x"$ac_wfuncs" = xyes; then
8605       ac_isoC99_wchar_t=yes
8606     else
8607       ac_isoC99_wchar_t=no
8608     fi
8609     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8610   
8611             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8612 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8613 echo "configure:8614: checking for iconv.h" >&5
8614 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8615   echo $ac_n "(cached) $ac_c" 1>&6
8616 else
8617   cat > conftest.$ac_ext <<EOF
8618 #line 8619 "configure"
8619 #include "confdefs.h"
8620 #include <iconv.h>
8621 EOF
8622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8623 { (eval echo configure:8624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8624 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8625 if test -z "$ac_err"; then
8626   rm -rf conftest*
8627   eval "ac_cv_header_$ac_safe=yes"
8628 else
8629   echo "$ac_err" >&5
8630   echo "configure: failed program was:" >&5
8631   cat conftest.$ac_ext >&5
8632   rm -rf conftest*
8633   eval "ac_cv_header_$ac_safe=no"
8634 fi
8635 rm -f conftest*
8636 fi
8637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8638   echo "$ac_t""yes" 1>&6
8639   ac_has_iconv_h=yes
8640 else
8641   echo "$ac_t""no" 1>&6
8642 ac_has_iconv_h=no
8643 fi
8644
8645     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8646 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8647 echo "configure:8648: checking for langinfo.h" >&5
8648 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8649   echo $ac_n "(cached) $ac_c" 1>&6
8650 else
8651   cat > conftest.$ac_ext <<EOF
8652 #line 8653 "configure"
8653 #include "confdefs.h"
8654 #include <langinfo.h>
8655 EOF
8656 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8657 { (eval echo configure:8658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8658 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8659 if test -z "$ac_err"; then
8660   rm -rf conftest*
8661   eval "ac_cv_header_$ac_safe=yes"
8662 else
8663   echo "$ac_err" >&5
8664   echo "configure: failed program was:" >&5
8665   cat conftest.$ac_ext >&5
8666   rm -rf conftest*
8667   eval "ac_cv_header_$ac_safe=no"
8668 fi
8669 rm -f conftest*
8670 fi
8671 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8672   echo "$ac_t""yes" 1>&6
8673   ac_has_langinfo_h=yes
8674 else
8675   echo "$ac_t""no" 1>&6
8676 ac_has_langinfo_h=no
8677 fi
8678
8679
8680         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8681 echo "configure:8682: checking for iconv in -liconv" >&5
8682 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8683 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8684   echo $ac_n "(cached) $ac_c" 1>&6
8685 else
8686   ac_save_LIBS="$LIBS"
8687 LIBS="-liconv  $LIBS"
8688 cat > conftest.$ac_ext <<EOF
8689 #line 8690 "configure"
8690 #include "confdefs.h"
8691 /* Override any gcc2 internal prototype to avoid an error.  */
8692 /* We use char because int might match the return type of a gcc2
8693     builtin and then its argument prototype would still apply.  */
8694 char iconv();
8695
8696 int main() {
8697 iconv()
8698 ; return 0; }
8699 EOF
8700 if { (eval echo configure:8701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8701   rm -rf conftest*
8702   eval "ac_cv_lib_$ac_lib_var=yes"
8703 else
8704   echo "configure: failed program was:" >&5
8705   cat conftest.$ac_ext >&5
8706   rm -rf conftest*
8707   eval "ac_cv_lib_$ac_lib_var=no"
8708 fi
8709 rm -f conftest*
8710 LIBS="$ac_save_LIBS"
8711
8712 fi
8713 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8714   echo "$ac_t""yes" 1>&6
8715   libiconv="-liconv"
8716 else
8717   echo "$ac_t""no" 1>&6
8718 fi
8719
8720     ac_save_LIBS="$LIBS"
8721     LIBS="$LIBS $libiconv"
8722
8723     for ac_func in iconv_open iconv_close iconv nl_langinfo
8724 do
8725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8726 echo "configure:8727: checking for $ac_func" >&5
8727 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8728   echo $ac_n "(cached) $ac_c" 1>&6
8729 else
8730   cat > conftest.$ac_ext <<EOF
8731 #line 8732 "configure"
8732 #include "confdefs.h"
8733 /* System header to define __stub macros and hopefully few prototypes,
8734     which can conflict with char $ac_func(); below.  */
8735 #include <assert.h>
8736 /* Override any gcc2 internal prototype to avoid an error.  */
8737 /* We use char because int might match the return type of a gcc2
8738     builtin and then its argument prototype would still apply.  */
8739 char $ac_func();
8740
8741 int main() {
8742
8743 /* The GNU C library defines this for functions which it implements
8744     to always fail with ENOSYS.  Some functions are actually named
8745     something starting with __ and the normal name is an alias.  */
8746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8747 choke me
8748 #else
8749 $ac_func();
8750 #endif
8751
8752 ; return 0; }
8753 EOF
8754 if { (eval echo configure:8755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8755   rm -rf conftest*
8756   eval "ac_cv_func_$ac_func=yes"
8757 else
8758   echo "configure: failed program was:" >&5
8759   cat conftest.$ac_ext >&5
8760   rm -rf conftest*
8761   eval "ac_cv_func_$ac_func=no"
8762 fi
8763 rm -f conftest*
8764 fi
8765
8766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8767   echo "$ac_t""yes" 1>&6
8768     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8769   cat >> confdefs.h <<EOF
8770 #define $ac_tr_func 1
8771 EOF
8772  \
8773     ac_XPG2funcs=yes
8774 else
8775   echo "$ac_t""no" 1>&6
8776 ac_XPG2funcs=no
8777 fi
8778 done
8779
8780   
8781     LIBS="$ac_save_LIBS"
8782
8783     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8784 echo "configure:8785: checking for XPG2 wchar_t support" >&5
8785     if test x"$ac_has_iconv_h" = xyes &&
8786        test x"$ac_has_langinfo_h" = xyes &&
8787        test x"$ac_XPG2funcs" = xyes; then
8788       ac_XPG2_wchar_t=yes
8789     else
8790       ac_XPG2_wchar_t=no
8791     fi
8792     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8793   
8794             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8795 echo "configure:8796: checking for enabled wchar_t specializations" >&5
8796     if test x"$ac_isoC99_wchar_t" = xyes &&
8797        test x"$ac_XPG2_wchar_t" = xyes; then
8798       cat >> confdefs.h <<\EOF
8799 #define _GLIBCPP_USE_WCHAR_T 1
8800 EOF
8801
8802       echo "$ac_t"""yes"" 1>&6
8803     else
8804       echo "$ac_t"""no"" 1>&6
8805     fi
8806   else
8807         echo "configure: warning: wchar_t support disabled." 1>&2
8808   fi
8809
8810       os_include_dir="os/qnx/qnx6.1"
8811       cat >> confdefs.h <<\EOF
8812 #define HAVE_COSF 1
8813 EOF
8814
8815       cat >> confdefs.h <<\EOF
8816 #define HAVE_COSL 1
8817 EOF
8818
8819       cat >> confdefs.h <<\EOF
8820 #define HAVE_COSHF 1
8821 EOF
8822
8823       cat >> confdefs.h <<\EOF
8824 #define HAVE_COSHL 1
8825 EOF
8826
8827       cat >> confdefs.h <<\EOF
8828 #define HAVE_LOGF 1
8829 EOF
8830
8831       cat >> confdefs.h <<\EOF
8832 #define HAVE_LOGL 1
8833 EOF
8834
8835       cat >> confdefs.h <<\EOF
8836 #define HAVE_LOG10F 1
8837 EOF
8838
8839       cat >> confdefs.h <<\EOF
8840 #define HAVE_LOG10L 1
8841 EOF
8842
8843       cat >> confdefs.h <<\EOF
8844 #define HAVE_SINF 1
8845 EOF
8846
8847       cat >> confdefs.h <<\EOF
8848 #define HAVE_SINL 1
8849 EOF
8850
8851       cat >> confdefs.h <<\EOF
8852 #define HAVE_SINHF 1
8853 EOF
8854
8855       cat >> confdefs.h <<\EOF
8856 #define HAVE_SINHL 1
8857 EOF
8858
8859       ;;
8860     *)
8861       os_include_dir="os/newlib"
8862       cat >> confdefs.h <<\EOF
8863 #define HAVE_HYPOT 1
8864 EOF
8865
8866       ;;
8867   esac
8868
8869   case "$target_alias" in
8870     *-mingw32*)
8871       ;;
8872     *-windiss*)
8873       cat >> confdefs.h <<\EOF
8874 #define HAVE_ACOSF 1
8875 EOF
8876
8877       cat >> confdefs.h <<\EOF
8878 #define HAVE_ASINF 1
8879 EOF
8880
8881       cat >> confdefs.h <<\EOF
8882 #define HAVE_ATAN2F 1
8883 EOF
8884
8885       cat >> confdefs.h <<\EOF
8886 #define HAVE_ATANF 1
8887 EOF
8888
8889       cat >> confdefs.h <<\EOF
8890 #define HAVE_CEILF 1
8891 EOF
8892
8893       cat >> confdefs.h <<\EOF
8894 #define HAVE_COPYSIGN 1
8895 EOF
8896
8897       cat >> confdefs.h <<\EOF
8898 #define HAVE_COPYSIGNF 1
8899 EOF
8900
8901       cat >> confdefs.h <<\EOF
8902 #define HAVE_COSF 1
8903 EOF
8904
8905       cat >> confdefs.h <<\EOF
8906 #define HAVE_COSHF 1
8907 EOF
8908
8909       cat >> confdefs.h <<\EOF
8910 #define HAVE_EXPF 1
8911 EOF
8912
8913       cat >> confdefs.h <<\EOF
8914 #define HAVE_FABSF 1
8915 EOF
8916
8917       cat >> confdefs.h <<\EOF
8918 #define HAVE_FLOORF 1
8919 EOF
8920
8921       cat >> confdefs.h <<\EOF
8922 #define HAVE_FMODF 1
8923 EOF
8924
8925       cat >> confdefs.h <<\EOF
8926 #define HAVE_FREXPF 1
8927 EOF
8928
8929       cat >> confdefs.h <<\EOF
8930 #define HAVE_LDEXPF 1
8931 EOF
8932
8933       cat >> confdefs.h <<\EOF
8934 #define HAVE_LOG10F 1
8935 EOF
8936
8937       cat >> confdefs.h <<\EOF
8938 #define HAVE_LOGF 1
8939 EOF
8940
8941       cat >> confdefs.h <<\EOF
8942 #define HAVE_MODFF 1
8943 EOF
8944
8945       cat >> confdefs.h <<\EOF
8946 #define HAVE_POWF 1
8947 EOF
8948
8949       cat >> confdefs.h <<\EOF
8950 #define HAVE_SINF 1
8951 EOF
8952
8953       cat >> confdefs.h <<\EOF
8954 #define HAVE_SINHF 1
8955 EOF
8956
8957       cat >> confdefs.h <<\EOF
8958 #define HAVE_SQRTF 1
8959 EOF
8960
8961       cat >> confdefs.h <<\EOF
8962 #define HAVE_TANF 1
8963 EOF
8964
8965       cat >> confdefs.h <<\EOF
8966 #define HAVE_TANHF 1
8967 EOF
8968
8969       ;;
8970     *)
8971       # GLIBCPP_CHECK_STDLIB_SUPPORT
8972       cat >> confdefs.h <<\EOF
8973 #define HAVE_STRTOF 1
8974 EOF
8975         
8976       cat >> confdefs.h <<\EOF
8977 #define HAVE_STRTOLD 1
8978 EOF
8979         
8980       # AC_FUNC_MMAP
8981       cat >> confdefs.h <<\EOF
8982 #define HAVE_MMAP 1
8983 EOF
8984
8985
8986       cat >> confdefs.h <<\EOF
8987 #define HAVE_ACOSF 1
8988 EOF
8989
8990       cat >> confdefs.h <<\EOF
8991 #define HAVE_ASINF 1
8992 EOF
8993
8994       cat >> confdefs.h <<\EOF
8995 #define HAVE_ATAN2F 1
8996 EOF
8997
8998       cat >> confdefs.h <<\EOF
8999 #define HAVE_ATANF 1
9000 EOF
9001
9002       cat >> confdefs.h <<\EOF
9003 #define HAVE_CEILF 1
9004 EOF
9005
9006       cat >> confdefs.h <<\EOF
9007 #define HAVE_COPYSIGN 1
9008 EOF
9009
9010       cat >> confdefs.h <<\EOF
9011 #define HAVE_COPYSIGNF 1
9012 EOF
9013
9014       cat >> confdefs.h <<\EOF
9015 #define HAVE_COSF 1
9016 EOF
9017
9018       cat >> confdefs.h <<\EOF
9019 #define HAVE_COSHF 1
9020 EOF
9021
9022       cat >> confdefs.h <<\EOF
9023 #define HAVE_EXPF 1
9024 EOF
9025
9026       cat >> confdefs.h <<\EOF
9027 #define HAVE_FABSF 1
9028 EOF
9029
9030       cat >> confdefs.h <<\EOF
9031 #define HAVE_FLOORF 1
9032 EOF
9033
9034       cat >> confdefs.h <<\EOF
9035 #define HAVE_FMODF 1
9036 EOF
9037
9038       cat >> confdefs.h <<\EOF
9039 #define HAVE_FREXPF 1
9040 EOF
9041
9042       cat >> confdefs.h <<\EOF
9043 #define HAVE_LDEXPF 1
9044 EOF
9045
9046       cat >> confdefs.h <<\EOF
9047 #define HAVE_LOG10F 1
9048 EOF
9049
9050       cat >> confdefs.h <<\EOF
9051 #define HAVE_LOGF 1
9052 EOF
9053
9054       cat >> confdefs.h <<\EOF
9055 #define HAVE_MODFF 1
9056 EOF
9057
9058       cat >> confdefs.h <<\EOF
9059 #define HAVE_POWF 1
9060 EOF
9061
9062       cat >> confdefs.h <<\EOF
9063 #define HAVE_SINF 1
9064 EOF
9065
9066       cat >> confdefs.h <<\EOF
9067 #define HAVE_SINHF 1
9068 EOF
9069
9070       cat >> confdefs.h <<\EOF
9071 #define HAVE_SQRTF 1
9072 EOF
9073
9074       cat >> confdefs.h <<\EOF
9075 #define HAVE_TANF 1
9076 EOF
9077
9078       cat >> confdefs.h <<\EOF
9079 #define HAVE_TANHF 1
9080 EOF
9081
9082       ;;
9083   esac
9084
9085   # At some point, we should differentiate between architectures
9086   # like x86, which have long double versions, and alpha/powerpc/etc.,
9087   # which don't. For the time being, punt.
9088   if test x"long_double_math_on_this_cpu" = x"yes"; then
9089     cat >> confdefs.h <<\EOF
9090 #define HAVE_ACOSL 1
9091 EOF
9092
9093     cat >> confdefs.h <<\EOF
9094 #define HAVE_ASINL 1
9095 EOF
9096
9097     cat >> confdefs.h <<\EOF
9098 #define HAVE_ATAN2L 1
9099 EOF
9100
9101     cat >> confdefs.h <<\EOF
9102 #define HAVE_ATANL 1
9103 EOF
9104
9105     cat >> confdefs.h <<\EOF
9106 #define HAVE_CEILL 1
9107 EOF
9108
9109     cat >> confdefs.h <<\EOF
9110 #define HAVE_COPYSIGNL 1
9111 EOF
9112
9113     cat >> confdefs.h <<\EOF
9114 #define HAVE_COSL 1
9115 EOF
9116
9117     cat >> confdefs.h <<\EOF
9118 #define HAVE_COSHL 1
9119 EOF
9120
9121     cat >> confdefs.h <<\EOF
9122 #define HAVE_EXPL 1
9123 EOF
9124
9125     cat >> confdefs.h <<\EOF
9126 #define HAVE_FABSL 1
9127 EOF
9128
9129     cat >> confdefs.h <<\EOF
9130 #define HAVE_FLOORL 1
9131 EOF
9132
9133     cat >> confdefs.h <<\EOF
9134 #define HAVE_FMODL 1
9135 EOF
9136
9137     cat >> confdefs.h <<\EOF
9138 #define HAVE_FREXPL 1
9139 EOF
9140
9141     cat >> confdefs.h <<\EOF
9142 #define HAVE_LDEXPL 1
9143 EOF
9144
9145     cat >> confdefs.h <<\EOF
9146 #define HAVE_LOG10L 1
9147 EOF
9148
9149     cat >> confdefs.h <<\EOF
9150 #define HAVE_LOGL 1
9151 EOF
9152
9153     cat >> confdefs.h <<\EOF
9154 #define HAVE_MODFL 1
9155 EOF
9156
9157     cat >> confdefs.h <<\EOF
9158 #define HAVE_POWL 1
9159 EOF
9160
9161     cat >> confdefs.h <<\EOF
9162 #define HAVE_SINCOSL 1
9163 EOF
9164
9165     cat >> confdefs.h <<\EOF
9166 #define HAVE_SINL 1
9167 EOF
9168
9169     cat >> confdefs.h <<\EOF
9170 #define HAVE_SINHL 1
9171 EOF
9172
9173     cat >> confdefs.h <<\EOF
9174 #define HAVE_SQRTL 1
9175 EOF
9176
9177     cat >> confdefs.h <<\EOF
9178 #define HAVE_TANL 1
9179 EOF
9180
9181     cat >> confdefs.h <<\EOF
9182 #define HAVE_TANHL 1
9183 EOF
9184
9185   fi
9186
9187 else
9188
9189   # We are being configured natively. We can do more elaborate tests
9190   # that include AC_TRY_COMPILE now, as the linker is assumed to be
9191   # working.
9192   GLIBCPP_IS_CROSS_COMPILING=0
9193   CANADIAN=no
9194
9195   # Check for available headers.
9196   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
9197   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h
9198 do
9199 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9200 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9201 echo "configure:9202: checking for $ac_hdr" >&5
9202 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9203   echo $ac_n "(cached) $ac_c" 1>&6
9204 else
9205   cat > conftest.$ac_ext <<EOF
9206 #line 9207 "configure"
9207 #include "confdefs.h"
9208 #include <$ac_hdr>
9209 EOF
9210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9211 { (eval echo configure:9212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9212 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9213 if test -z "$ac_err"; then
9214   rm -rf conftest*
9215   eval "ac_cv_header_$ac_safe=yes"
9216 else
9217   echo "$ac_err" >&5
9218   echo "configure: failed program was:" >&5
9219   cat conftest.$ac_ext >&5
9220   rm -rf conftest*
9221   eval "ac_cv_header_$ac_safe=no"
9222 fi
9223 rm -f conftest*
9224 fi
9225 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9226   echo "$ac_t""yes" 1>&6
9227     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9228   cat >> confdefs.h <<EOF
9229 #define $ac_tr_hdr 1
9230 EOF
9231  
9232 else
9233   echo "$ac_t""no" 1>&6
9234 fi
9235 done
9236
9237
9238   
9239   # All these tests are for C++; save the language and the compiler flags.
9240   # The CXXFLAGS thing is suspicious, but based on similar bits previously
9241   # found in GLIBCPP_CONFIGURE.
9242   
9243   ac_ext=C
9244 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9245 ac_cpp='$CXXCPP $CPPFLAGS'
9246 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9247 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9248 cross_compiling=$ac_cv_prog_cxx_cross
9249
9250   ac_test_CXXFLAGS="${CXXFLAGS+set}"
9251   ac_save_CXXFLAGS="$CXXFLAGS"
9252
9253   # Check for maintainer-mode bits.
9254   if test x"$USE_MAINTAINER_MODE" = xno; then
9255     WERROR=''
9256   else
9257     WERROR='-Werror'
9258   fi
9259
9260   # Check for -ffunction-sections -fdata-sections
9261   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
9262 echo "configure:9263: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
9263   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
9264   cat > conftest.$ac_ext <<EOF
9265 #line 9266 "configure"
9266 #include "confdefs.h"
9267
9268 int main() {
9269 int foo;
9270   
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   ac_fdsections=yes
9276 else
9277   echo "configure: failed program was:" >&5
9278   cat conftest.$ac_ext >&5
9279   rm -rf conftest*
9280   ac_fdsections=no
9281 fi
9282 rm -f conftest*
9283   if test "$ac_test_CXXFLAGS" = set; then
9284     CXXFLAGS="$ac_save_CXXFLAGS"
9285   else
9286     # this is the suspicious part
9287     CXXFLAGS=''
9288   fi
9289   if test x"$ac_fdsections" = x"yes" &&
9290      test x"$enable_debug" = x"no"; then
9291     SECTION_FLAGS='-ffunction-sections -fdata-sections'
9292   fi
9293   echo "$ac_t""$ac_fdsections" 1>&6
9294
9295   ac_ext=c
9296 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9297 ac_cpp='$CPP $CPPFLAGS'
9298 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9299 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9300 cross_compiling=$ac_cv_prog_cc_cross
9301
9302   
9303   
9304
9305   
9306   # If we're not using GNU ld, then there's no point in even trying these
9307   # tests.  Check for that first.  We should have already tested for gld
9308   # by now (in libtool), but require it now just to be safe...
9309   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9310   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9311   
9312
9313   # The name set by libtool depends on the version of libtool.  Shame on us
9314   # for depending on an impl detail, but c'est la vie.  Older versions used
9315   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9316   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9317   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
9318   # set (hence we're using an older libtool), then set it.
9319   if test x${with_gnu_ld+set} != xset; then
9320     if test x${ac_cv_prog_gnu_ld+set} != xset; then
9321       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
9322       with_gnu_ld=no
9323     else
9324       with_gnu_ld=$ac_cv_prog_gnu_ld
9325     fi
9326   fi
9327
9328   # Start by getting the version number.  I think the libtool test already
9329   # does some of this, but throws away the result.
9330   
9331   ldver=`$LD --version 2>/dev/null | head -1 | \
9332          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9333   
9334   glibcpp_gnu_ld_version=`echo $ldver | \
9335          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9336
9337   # Set --gc-sections.
9338   if test "$with_gnu_ld" = "notbroken"; then
9339     # GNU ld it is!  Joy and bunny rabbits!
9340
9341     # All these tests are for C++; save the language and the compiler flags.
9342     # Need to do this so that g++ won't try to link in libstdc++
9343     ac_test_CFLAGS="${CFLAGS+set}"
9344     ac_save_CFLAGS="$CFLAGS"
9345     CFLAGS='-x c++  -Wl,--gc-sections'
9346
9347     # Check for -Wl,--gc-sections
9348     # XXX This test is broken at the moment, as symbols required for
9349     # linking are now in libsupc++ (not built yet.....). In addition, 
9350     # this test has cored on solaris in the past. In addition,
9351     # --gc-sections doesn't really work at the moment (keeps on discarding
9352     # used sections, first .eh_frame and now some of the glibc sections for
9353     # iconv). Bzzzzt. Thanks for playing, maybe next time.
9354     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9355 echo "configure:9356: checking for ld that supports -Wl,--gc-sections" >&5
9356     if test "$cross_compiling" = yes; then
9357   ac_sectionLDflags=yes
9358 else
9359   cat > conftest.$ac_ext <<EOF
9360 #line 9361 "configure"
9361 #include "confdefs.h"
9362
9363      int main(void) 
9364      {
9365        try { throw 1; }
9366        catch (...) { };
9367        return 0;
9368      }
9369     
9370 EOF
9371 if { (eval echo configure:9372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9372 then
9373   ac_sectionLDflags=yes
9374 else
9375   echo "configure: failed program was:" >&5
9376   cat conftest.$ac_ext >&5
9377   rm -fr conftest*
9378   ac_sectionLDflags=no
9379 fi
9380 rm -fr conftest*
9381 fi
9382
9383     if test "$ac_test_CFLAGS" = set; then
9384       CFLAGS="$ac_save_CFLAGS"
9385     else
9386       # this is the suspicious part
9387       CFLAGS=''
9388     fi
9389     if test "$ac_sectionLDflags" = "yes"; then
9390       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9391     fi
9392     echo "$ac_t""$ac_sectionLDflags" 1>&6
9393   fi
9394
9395   # Set linker optimization flags.
9396   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
9397     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9398   fi
9399
9400   
9401   
9402
9403   
9404       
9405   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
9406 echo "configure:9407: checking for __builtin_abs declaration" >&5
9407   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
9408     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
9409   echo $ac_n "(cached) $ac_c" 1>&6
9410 else
9411   
9412       
9413       ac_ext=C
9414 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9415 ac_cpp='$CXXCPP $CPPFLAGS'
9416 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9417 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9418 cross_compiling=$ac_cv_prog_cxx_cross
9419
9420       cat > conftest.$ac_ext <<EOF
9421 #line 9422 "configure"
9422 #include "confdefs.h"
9423 #include <math.h>
9424 int main() {
9425  __builtin_abs(0);
9426 ; return 0; }
9427 EOF
9428 if { (eval echo configure:9429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9429   rm -rf conftest*
9430   glibcpp_cv_func___builtin_abs_use=yes
9431 else
9432   echo "configure: failed program was:" >&5
9433   cat conftest.$ac_ext >&5
9434   rm -rf conftest*
9435   glibcpp_cv_func___builtin_abs_use=no
9436 fi
9437 rm -f conftest*
9438       ac_ext=c
9439 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9440 ac_cpp='$CPP $CPPFLAGS'
9441 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9442 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9443 cross_compiling=$ac_cv_prog_cc_cross
9444
9445     
9446 fi
9447
9448   fi
9449   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
9450   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
9451     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
9452 echo "configure:9453: checking for __builtin_abs linkage" >&5
9453     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
9454       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
9455   echo $ac_n "(cached) $ac_c" 1>&6
9456 else
9457   
9458         cat > conftest.$ac_ext <<EOF
9459 #line 9460 "configure"
9460 #include "confdefs.h"
9461 #include <math.h>
9462 int main() {
9463  __builtin_abs(0);
9464 ; return 0; }
9465 EOF
9466 if { (eval echo configure:9467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9467   rm -rf conftest*
9468   glibcpp_cv_func___builtin_abs_link=yes
9469 else
9470   echo "configure: failed program was:" >&5
9471   cat conftest.$ac_ext >&5
9472   rm -rf conftest*
9473   glibcpp_cv_func___builtin_abs_link=no
9474 fi
9475 rm -f conftest*
9476       
9477 fi
9478
9479     fi
9480     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
9481     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
9482       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9483       cat >> confdefs.h <<EOF
9484 #define ${ac_tr_func} 1
9485 EOF
9486
9487     fi
9488   fi
9489
9490   
9491   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
9492 echo "configure:9493: checking for __builtin_fabsf declaration" >&5
9493   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
9494     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
9495   echo $ac_n "(cached) $ac_c" 1>&6
9496 else
9497   
9498       
9499       ac_ext=C
9500 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9501 ac_cpp='$CXXCPP $CPPFLAGS'
9502 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9503 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9504 cross_compiling=$ac_cv_prog_cxx_cross
9505
9506       cat > conftest.$ac_ext <<EOF
9507 #line 9508 "configure"
9508 #include "confdefs.h"
9509 #include <math.h>
9510 int main() {
9511  __builtin_fabsf(0);
9512 ; return 0; }
9513 EOF
9514 if { (eval echo configure:9515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9515   rm -rf conftest*
9516   glibcpp_cv_func___builtin_fabsf_use=yes
9517 else
9518   echo "configure: failed program was:" >&5
9519   cat conftest.$ac_ext >&5
9520   rm -rf conftest*
9521   glibcpp_cv_func___builtin_fabsf_use=no
9522 fi
9523 rm -f conftest*
9524       ac_ext=c
9525 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9526 ac_cpp='$CPP $CPPFLAGS'
9527 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9528 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9529 cross_compiling=$ac_cv_prog_cc_cross
9530
9531     
9532 fi
9533
9534   fi
9535   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
9536   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
9537     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
9538 echo "configure:9539: checking for __builtin_fabsf linkage" >&5
9539     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
9540       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
9541   echo $ac_n "(cached) $ac_c" 1>&6
9542 else
9543   
9544         cat > conftest.$ac_ext <<EOF
9545 #line 9546 "configure"
9546 #include "confdefs.h"
9547 #include <math.h>
9548 int main() {
9549  __builtin_fabsf(0);
9550 ; return 0; }
9551 EOF
9552 if { (eval echo configure:9553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9553   rm -rf conftest*
9554   glibcpp_cv_func___builtin_fabsf_link=yes
9555 else
9556   echo "configure: failed program was:" >&5
9557   cat conftest.$ac_ext >&5
9558   rm -rf conftest*
9559   glibcpp_cv_func___builtin_fabsf_link=no
9560 fi
9561 rm -f conftest*
9562       
9563 fi
9564
9565     fi
9566     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
9567     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
9568       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9569       cat >> confdefs.h <<EOF
9570 #define ${ac_tr_func} 1
9571 EOF
9572
9573     fi
9574   fi
9575
9576   
9577   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
9578 echo "configure:9579: checking for __builtin_fabs declaration" >&5
9579   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
9580     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
9581   echo $ac_n "(cached) $ac_c" 1>&6
9582 else
9583   
9584       
9585       ac_ext=C
9586 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9587 ac_cpp='$CXXCPP $CPPFLAGS'
9588 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9589 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9590 cross_compiling=$ac_cv_prog_cxx_cross
9591
9592       cat > conftest.$ac_ext <<EOF
9593 #line 9594 "configure"
9594 #include "confdefs.h"
9595 #include <math.h>
9596 int main() {
9597  __builtin_fabs(0);
9598 ; return 0; }
9599 EOF
9600 if { (eval echo configure:9601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9601   rm -rf conftest*
9602   glibcpp_cv_func___builtin_fabs_use=yes
9603 else
9604   echo "configure: failed program was:" >&5
9605   cat conftest.$ac_ext >&5
9606   rm -rf conftest*
9607   glibcpp_cv_func___builtin_fabs_use=no
9608 fi
9609 rm -f conftest*
9610       ac_ext=c
9611 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9612 ac_cpp='$CPP $CPPFLAGS'
9613 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9614 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9615 cross_compiling=$ac_cv_prog_cc_cross
9616
9617     
9618 fi
9619
9620   fi
9621   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
9622   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
9623     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
9624 echo "configure:9625: checking for __builtin_fabs linkage" >&5
9625     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
9626       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
9627   echo $ac_n "(cached) $ac_c" 1>&6
9628 else
9629   
9630         cat > conftest.$ac_ext <<EOF
9631 #line 9632 "configure"
9632 #include "confdefs.h"
9633 #include <math.h>
9634 int main() {
9635  __builtin_fabs(0);
9636 ; return 0; }
9637 EOF
9638 if { (eval echo configure:9639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9639   rm -rf conftest*
9640   glibcpp_cv_func___builtin_fabs_link=yes
9641 else
9642   echo "configure: failed program was:" >&5
9643   cat conftest.$ac_ext >&5
9644   rm -rf conftest*
9645   glibcpp_cv_func___builtin_fabs_link=no
9646 fi
9647 rm -f conftest*
9648       
9649 fi
9650
9651     fi
9652     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
9653     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
9654       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9655       cat >> confdefs.h <<EOF
9656 #define ${ac_tr_func} 1
9657 EOF
9658
9659     fi
9660   fi
9661
9662   
9663   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
9664 echo "configure:9665: checking for __builtin_fabsl declaration" >&5
9665   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
9666     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
9667   echo $ac_n "(cached) $ac_c" 1>&6
9668 else
9669   
9670       
9671       ac_ext=C
9672 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9673 ac_cpp='$CXXCPP $CPPFLAGS'
9674 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9675 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9676 cross_compiling=$ac_cv_prog_cxx_cross
9677
9678       cat > conftest.$ac_ext <<EOF
9679 #line 9680 "configure"
9680 #include "confdefs.h"
9681 #include <math.h>
9682 int main() {
9683  __builtin_fabsl(0);
9684 ; return 0; }
9685 EOF
9686 if { (eval echo configure:9687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9687   rm -rf conftest*
9688   glibcpp_cv_func___builtin_fabsl_use=yes
9689 else
9690   echo "configure: failed program was:" >&5
9691   cat conftest.$ac_ext >&5
9692   rm -rf conftest*
9693   glibcpp_cv_func___builtin_fabsl_use=no
9694 fi
9695 rm -f conftest*
9696       ac_ext=c
9697 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9698 ac_cpp='$CPP $CPPFLAGS'
9699 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9700 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9701 cross_compiling=$ac_cv_prog_cc_cross
9702
9703     
9704 fi
9705
9706   fi
9707   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
9708   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
9709     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
9710 echo "configure:9711: checking for __builtin_fabsl linkage" >&5
9711     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
9712       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
9713   echo $ac_n "(cached) $ac_c" 1>&6
9714 else
9715   
9716         cat > conftest.$ac_ext <<EOF
9717 #line 9718 "configure"
9718 #include "confdefs.h"
9719 #include <math.h>
9720 int main() {
9721  __builtin_fabsl(0);
9722 ; return 0; }
9723 EOF
9724 if { (eval echo configure:9725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9725   rm -rf conftest*
9726   glibcpp_cv_func___builtin_fabsl_link=yes
9727 else
9728   echo "configure: failed program was:" >&5
9729   cat conftest.$ac_ext >&5
9730   rm -rf conftest*
9731   glibcpp_cv_func___builtin_fabsl_link=no
9732 fi
9733 rm -f conftest*
9734       
9735 fi
9736
9737     fi
9738     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
9739     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
9740       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9741       cat >> confdefs.h <<EOF
9742 #define ${ac_tr_func} 1
9743 EOF
9744
9745     fi
9746   fi
9747
9748   
9749   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
9750 echo "configure:9751: checking for __builtin_labs declaration" >&5
9751   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
9752     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
9753   echo $ac_n "(cached) $ac_c" 1>&6
9754 else
9755   
9756       
9757       ac_ext=C
9758 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9759 ac_cpp='$CXXCPP $CPPFLAGS'
9760 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9761 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9762 cross_compiling=$ac_cv_prog_cxx_cross
9763
9764       cat > conftest.$ac_ext <<EOF
9765 #line 9766 "configure"
9766 #include "confdefs.h"
9767 #include <math.h>
9768 int main() {
9769  __builtin_labs(0);
9770 ; return 0; }
9771 EOF
9772 if { (eval echo configure:9773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9773   rm -rf conftest*
9774   glibcpp_cv_func___builtin_labs_use=yes
9775 else
9776   echo "configure: failed program was:" >&5
9777   cat conftest.$ac_ext >&5
9778   rm -rf conftest*
9779   glibcpp_cv_func___builtin_labs_use=no
9780 fi
9781 rm -f conftest*
9782       ac_ext=c
9783 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9784 ac_cpp='$CPP $CPPFLAGS'
9785 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9786 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9787 cross_compiling=$ac_cv_prog_cc_cross
9788
9789     
9790 fi
9791
9792   fi
9793   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
9794   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
9795     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
9796 echo "configure:9797: checking for __builtin_labs linkage" >&5
9797     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
9798       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
9799   echo $ac_n "(cached) $ac_c" 1>&6
9800 else
9801   
9802         cat > conftest.$ac_ext <<EOF
9803 #line 9804 "configure"
9804 #include "confdefs.h"
9805 #include <math.h>
9806 int main() {
9807  __builtin_labs(0);
9808 ; return 0; }
9809 EOF
9810 if { (eval echo configure:9811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9811   rm -rf conftest*
9812   glibcpp_cv_func___builtin_labs_link=yes
9813 else
9814   echo "configure: failed program was:" >&5
9815   cat conftest.$ac_ext >&5
9816   rm -rf conftest*
9817   glibcpp_cv_func___builtin_labs_link=no
9818 fi
9819 rm -f conftest*
9820       
9821 fi
9822
9823     fi
9824     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
9825     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
9826       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9827       cat >> confdefs.h <<EOF
9828 #define ${ac_tr_func} 1
9829 EOF
9830
9831     fi
9832   fi
9833
9834
9835   
9836   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
9837 echo "configure:9838: checking for __builtin_sqrtf declaration" >&5
9838   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
9839     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
9840   echo $ac_n "(cached) $ac_c" 1>&6
9841 else
9842   
9843       
9844       ac_ext=C
9845 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9846 ac_cpp='$CXXCPP $CPPFLAGS'
9847 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9848 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9849 cross_compiling=$ac_cv_prog_cxx_cross
9850
9851       cat > conftest.$ac_ext <<EOF
9852 #line 9853 "configure"
9853 #include "confdefs.h"
9854 #include <math.h>
9855 int main() {
9856  __builtin_sqrtf(0);
9857 ; return 0; }
9858 EOF
9859 if { (eval echo configure:9860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9860   rm -rf conftest*
9861   glibcpp_cv_func___builtin_sqrtf_use=yes
9862 else
9863   echo "configure: failed program was:" >&5
9864   cat conftest.$ac_ext >&5
9865   rm -rf conftest*
9866   glibcpp_cv_func___builtin_sqrtf_use=no
9867 fi
9868 rm -f conftest*
9869       ac_ext=c
9870 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9871 ac_cpp='$CPP $CPPFLAGS'
9872 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9873 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9874 cross_compiling=$ac_cv_prog_cc_cross
9875
9876     
9877 fi
9878
9879   fi
9880   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
9881   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
9882     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
9883 echo "configure:9884: checking for __builtin_sqrtf linkage" >&5
9884     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
9885       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
9886   echo $ac_n "(cached) $ac_c" 1>&6
9887 else
9888   
9889         cat > conftest.$ac_ext <<EOF
9890 #line 9891 "configure"
9891 #include "confdefs.h"
9892 #include <math.h>
9893 int main() {
9894  __builtin_sqrtf(0);
9895 ; return 0; }
9896 EOF
9897 if { (eval echo configure:9898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9898   rm -rf conftest*
9899   glibcpp_cv_func___builtin_sqrtf_link=yes
9900 else
9901   echo "configure: failed program was:" >&5
9902   cat conftest.$ac_ext >&5
9903   rm -rf conftest*
9904   glibcpp_cv_func___builtin_sqrtf_link=no
9905 fi
9906 rm -f conftest*
9907       
9908 fi
9909
9910     fi
9911     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
9912     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
9913       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9914       cat >> confdefs.h <<EOF
9915 #define ${ac_tr_func} 1
9916 EOF
9917
9918     fi
9919   fi
9920
9921   
9922   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
9923 echo "configure:9924: checking for __builtin_sqrt declaration" >&5
9924   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
9925     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
9926   echo $ac_n "(cached) $ac_c" 1>&6
9927 else
9928   
9929       
9930       ac_ext=C
9931 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9932 ac_cpp='$CXXCPP $CPPFLAGS'
9933 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9934 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9935 cross_compiling=$ac_cv_prog_cxx_cross
9936
9937       cat > conftest.$ac_ext <<EOF
9938 #line 9939 "configure"
9939 #include "confdefs.h"
9940 #include <math.h>
9941 int main() {
9942  __builtin_sqrt(0);
9943 ; return 0; }
9944 EOF
9945 if { (eval echo configure:9946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9946   rm -rf conftest*
9947   glibcpp_cv_func___builtin_sqrt_use=yes
9948 else
9949   echo "configure: failed program was:" >&5
9950   cat conftest.$ac_ext >&5
9951   rm -rf conftest*
9952   glibcpp_cv_func___builtin_sqrt_use=no
9953 fi
9954 rm -f conftest*
9955       ac_ext=c
9956 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9957 ac_cpp='$CPP $CPPFLAGS'
9958 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9959 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9960 cross_compiling=$ac_cv_prog_cc_cross
9961
9962     
9963 fi
9964
9965   fi
9966   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
9967   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
9968     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
9969 echo "configure:9970: checking for __builtin_sqrt linkage" >&5
9970     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
9971       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
9972   echo $ac_n "(cached) $ac_c" 1>&6
9973 else
9974   
9975         cat > conftest.$ac_ext <<EOF
9976 #line 9977 "configure"
9977 #include "confdefs.h"
9978 #include <math.h>
9979 int main() {
9980  __builtin_sqrt(0);
9981 ; return 0; }
9982 EOF
9983 if { (eval echo configure:9984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9984   rm -rf conftest*
9985   glibcpp_cv_func___builtin_sqrt_link=yes
9986 else
9987   echo "configure: failed program was:" >&5
9988   cat conftest.$ac_ext >&5
9989   rm -rf conftest*
9990   glibcpp_cv_func___builtin_sqrt_link=no
9991 fi
9992 rm -f conftest*
9993       
9994 fi
9995
9996     fi
9997     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
9998     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
9999       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10000       cat >> confdefs.h <<EOF
10001 #define ${ac_tr_func} 1
10002 EOF
10003
10004     fi
10005   fi
10006
10007   
10008   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
10009 echo "configure:10010: checking for __builtin_sqrtl declaration" >&5
10010   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
10011     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
10012   echo $ac_n "(cached) $ac_c" 1>&6
10013 else
10014   
10015       
10016       ac_ext=C
10017 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10018 ac_cpp='$CXXCPP $CPPFLAGS'
10019 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10020 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10021 cross_compiling=$ac_cv_prog_cxx_cross
10022
10023       cat > conftest.$ac_ext <<EOF
10024 #line 10025 "configure"
10025 #include "confdefs.h"
10026 #include <math.h>
10027 int main() {
10028  __builtin_sqrtl(0);
10029 ; return 0; }
10030 EOF
10031 if { (eval echo configure:10032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10032   rm -rf conftest*
10033   glibcpp_cv_func___builtin_sqrtl_use=yes
10034 else
10035   echo "configure: failed program was:" >&5
10036   cat conftest.$ac_ext >&5
10037   rm -rf conftest*
10038   glibcpp_cv_func___builtin_sqrtl_use=no
10039 fi
10040 rm -f conftest*
10041       ac_ext=c
10042 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10043 ac_cpp='$CPP $CPPFLAGS'
10044 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10045 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10046 cross_compiling=$ac_cv_prog_cc_cross
10047
10048     
10049 fi
10050
10051   fi
10052   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
10053   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
10054     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
10055 echo "configure:10056: checking for __builtin_sqrtl linkage" >&5
10056     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
10057       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
10058   echo $ac_n "(cached) $ac_c" 1>&6
10059 else
10060   
10061         cat > conftest.$ac_ext <<EOF
10062 #line 10063 "configure"
10063 #include "confdefs.h"
10064 #include <math.h>
10065 int main() {
10066  __builtin_sqrtl(0);
10067 ; return 0; }
10068 EOF
10069 if { (eval echo configure:10070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10070   rm -rf conftest*
10071   glibcpp_cv_func___builtin_sqrtl_link=yes
10072 else
10073   echo "configure: failed program was:" >&5
10074   cat conftest.$ac_ext >&5
10075   rm -rf conftest*
10076   glibcpp_cv_func___builtin_sqrtl_link=no
10077 fi
10078 rm -f conftest*
10079       
10080 fi
10081
10082     fi
10083     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
10084     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
10085       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10086       cat >> confdefs.h <<EOF
10087 #define ${ac_tr_func} 1
10088 EOF
10089
10090     fi
10091   fi
10092
10093
10094   
10095   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
10096 echo "configure:10097: checking for __builtin_sinf declaration" >&5
10097   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
10098     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
10099   echo $ac_n "(cached) $ac_c" 1>&6
10100 else
10101   
10102       
10103       ac_ext=C
10104 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10105 ac_cpp='$CXXCPP $CPPFLAGS'
10106 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10107 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10108 cross_compiling=$ac_cv_prog_cxx_cross
10109
10110       cat > conftest.$ac_ext <<EOF
10111 #line 10112 "configure"
10112 #include "confdefs.h"
10113 #include <math.h>
10114 int main() {
10115  __builtin_sinf(0);
10116 ; return 0; }
10117 EOF
10118 if { (eval echo configure:10119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10119   rm -rf conftest*
10120   glibcpp_cv_func___builtin_sinf_use=yes
10121 else
10122   echo "configure: failed program was:" >&5
10123   cat conftest.$ac_ext >&5
10124   rm -rf conftest*
10125   glibcpp_cv_func___builtin_sinf_use=no
10126 fi
10127 rm -f conftest*
10128       ac_ext=c
10129 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10130 ac_cpp='$CPP $CPPFLAGS'
10131 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10132 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10133 cross_compiling=$ac_cv_prog_cc_cross
10134
10135     
10136 fi
10137
10138   fi
10139   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
10140   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
10141     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
10142 echo "configure:10143: checking for __builtin_sinf linkage" >&5
10143     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
10144       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
10145   echo $ac_n "(cached) $ac_c" 1>&6
10146 else
10147   
10148         cat > conftest.$ac_ext <<EOF
10149 #line 10150 "configure"
10150 #include "confdefs.h"
10151 #include <math.h>
10152 int main() {
10153  __builtin_sinf(0);
10154 ; return 0; }
10155 EOF
10156 if { (eval echo configure:10157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10157   rm -rf conftest*
10158   glibcpp_cv_func___builtin_sinf_link=yes
10159 else
10160   echo "configure: failed program was:" >&5
10161   cat conftest.$ac_ext >&5
10162   rm -rf conftest*
10163   glibcpp_cv_func___builtin_sinf_link=no
10164 fi
10165 rm -f conftest*
10166       
10167 fi
10168
10169     fi
10170     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
10171     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
10172       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10173       cat >> confdefs.h <<EOF
10174 #define ${ac_tr_func} 1
10175 EOF
10176
10177     fi
10178   fi
10179
10180   
10181   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
10182 echo "configure:10183: checking for __builtin_sin declaration" >&5
10183   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
10184     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
10185   echo $ac_n "(cached) $ac_c" 1>&6
10186 else
10187   
10188       
10189       ac_ext=C
10190 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10191 ac_cpp='$CXXCPP $CPPFLAGS'
10192 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10193 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10194 cross_compiling=$ac_cv_prog_cxx_cross
10195
10196       cat > conftest.$ac_ext <<EOF
10197 #line 10198 "configure"
10198 #include "confdefs.h"
10199 #include <math.h>
10200 int main() {
10201  __builtin_sin(0);
10202 ; return 0; }
10203 EOF
10204 if { (eval echo configure:10205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10205   rm -rf conftest*
10206   glibcpp_cv_func___builtin_sin_use=yes
10207 else
10208   echo "configure: failed program was:" >&5
10209   cat conftest.$ac_ext >&5
10210   rm -rf conftest*
10211   glibcpp_cv_func___builtin_sin_use=no
10212 fi
10213 rm -f conftest*
10214       ac_ext=c
10215 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10216 ac_cpp='$CPP $CPPFLAGS'
10217 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10218 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10219 cross_compiling=$ac_cv_prog_cc_cross
10220
10221     
10222 fi
10223
10224   fi
10225   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
10226   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
10227     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
10228 echo "configure:10229: checking for __builtin_sin linkage" >&5
10229     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
10230       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
10231   echo $ac_n "(cached) $ac_c" 1>&6
10232 else
10233   
10234         cat > conftest.$ac_ext <<EOF
10235 #line 10236 "configure"
10236 #include "confdefs.h"
10237 #include <math.h>
10238 int main() {
10239  __builtin_sin(0);
10240 ; return 0; }
10241 EOF
10242 if { (eval echo configure:10243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10243   rm -rf conftest*
10244   glibcpp_cv_func___builtin_sin_link=yes
10245 else
10246   echo "configure: failed program was:" >&5
10247   cat conftest.$ac_ext >&5
10248   rm -rf conftest*
10249   glibcpp_cv_func___builtin_sin_link=no
10250 fi
10251 rm -f conftest*
10252       
10253 fi
10254
10255     fi
10256     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
10257     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
10258       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10259       cat >> confdefs.h <<EOF
10260 #define ${ac_tr_func} 1
10261 EOF
10262
10263     fi
10264   fi
10265
10266   
10267   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
10268 echo "configure:10269: checking for __builtin_sinl declaration" >&5
10269   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
10270     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
10271   echo $ac_n "(cached) $ac_c" 1>&6
10272 else
10273   
10274       
10275       ac_ext=C
10276 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10277 ac_cpp='$CXXCPP $CPPFLAGS'
10278 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10279 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10280 cross_compiling=$ac_cv_prog_cxx_cross
10281
10282       cat > conftest.$ac_ext <<EOF
10283 #line 10284 "configure"
10284 #include "confdefs.h"
10285 #include <math.h>
10286 int main() {
10287  __builtin_sinl(0);
10288 ; return 0; }
10289 EOF
10290 if { (eval echo configure:10291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10291   rm -rf conftest*
10292   glibcpp_cv_func___builtin_sinl_use=yes
10293 else
10294   echo "configure: failed program was:" >&5
10295   cat conftest.$ac_ext >&5
10296   rm -rf conftest*
10297   glibcpp_cv_func___builtin_sinl_use=no
10298 fi
10299 rm -f conftest*
10300       ac_ext=c
10301 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10302 ac_cpp='$CPP $CPPFLAGS'
10303 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10304 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10305 cross_compiling=$ac_cv_prog_cc_cross
10306
10307     
10308 fi
10309
10310   fi
10311   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
10312   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
10313     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
10314 echo "configure:10315: checking for __builtin_sinl linkage" >&5
10315     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
10316       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
10317   echo $ac_n "(cached) $ac_c" 1>&6
10318 else
10319   
10320         cat > conftest.$ac_ext <<EOF
10321 #line 10322 "configure"
10322 #include "confdefs.h"
10323 #include <math.h>
10324 int main() {
10325  __builtin_sinl(0);
10326 ; return 0; }
10327 EOF
10328 if { (eval echo configure:10329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10329   rm -rf conftest*
10330   glibcpp_cv_func___builtin_sinl_link=yes
10331 else
10332   echo "configure: failed program was:" >&5
10333   cat conftest.$ac_ext >&5
10334   rm -rf conftest*
10335   glibcpp_cv_func___builtin_sinl_link=no
10336 fi
10337 rm -f conftest*
10338       
10339 fi
10340
10341     fi
10342     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
10343     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
10344       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10345       cat >> confdefs.h <<EOF
10346 #define ${ac_tr_func} 1
10347 EOF
10348
10349     fi
10350   fi
10351
10352
10353   
10354   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
10355 echo "configure:10356: checking for __builtin_cosf declaration" >&5
10356   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
10357     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
10358   echo $ac_n "(cached) $ac_c" 1>&6
10359 else
10360   
10361       
10362       ac_ext=C
10363 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10364 ac_cpp='$CXXCPP $CPPFLAGS'
10365 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10366 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10367 cross_compiling=$ac_cv_prog_cxx_cross
10368
10369       cat > conftest.$ac_ext <<EOF
10370 #line 10371 "configure"
10371 #include "confdefs.h"
10372 #include <math.h>
10373 int main() {
10374  __builtin_cosf(0);
10375 ; return 0; }
10376 EOF
10377 if { (eval echo configure:10378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10378   rm -rf conftest*
10379   glibcpp_cv_func___builtin_cosf_use=yes
10380 else
10381   echo "configure: failed program was:" >&5
10382   cat conftest.$ac_ext >&5
10383   rm -rf conftest*
10384   glibcpp_cv_func___builtin_cosf_use=no
10385 fi
10386 rm -f conftest*
10387       ac_ext=c
10388 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10389 ac_cpp='$CPP $CPPFLAGS'
10390 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10391 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10392 cross_compiling=$ac_cv_prog_cc_cross
10393
10394     
10395 fi
10396
10397   fi
10398   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
10399   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
10400     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
10401 echo "configure:10402: checking for __builtin_cosf linkage" >&5
10402     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
10403       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
10404   echo $ac_n "(cached) $ac_c" 1>&6
10405 else
10406   
10407         cat > conftest.$ac_ext <<EOF
10408 #line 10409 "configure"
10409 #include "confdefs.h"
10410 #include <math.h>
10411 int main() {
10412  __builtin_cosf(0);
10413 ; return 0; }
10414 EOF
10415 if { (eval echo configure:10416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10416   rm -rf conftest*
10417   glibcpp_cv_func___builtin_cosf_link=yes
10418 else
10419   echo "configure: failed program was:" >&5
10420   cat conftest.$ac_ext >&5
10421   rm -rf conftest*
10422   glibcpp_cv_func___builtin_cosf_link=no
10423 fi
10424 rm -f conftest*
10425       
10426 fi
10427
10428     fi
10429     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
10430     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
10431       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10432       cat >> confdefs.h <<EOF
10433 #define ${ac_tr_func} 1
10434 EOF
10435
10436     fi
10437   fi
10438
10439   
10440   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
10441 echo "configure:10442: checking for __builtin_cos declaration" >&5
10442   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
10443     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
10444   echo $ac_n "(cached) $ac_c" 1>&6
10445 else
10446   
10447       
10448       ac_ext=C
10449 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10450 ac_cpp='$CXXCPP $CPPFLAGS'
10451 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10452 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10453 cross_compiling=$ac_cv_prog_cxx_cross
10454
10455       cat > conftest.$ac_ext <<EOF
10456 #line 10457 "configure"
10457 #include "confdefs.h"
10458 #include <math.h>
10459 int main() {
10460  __builtin_cos(0);
10461 ; return 0; }
10462 EOF
10463 if { (eval echo configure:10464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10464   rm -rf conftest*
10465   glibcpp_cv_func___builtin_cos_use=yes
10466 else
10467   echo "configure: failed program was:" >&5
10468   cat conftest.$ac_ext >&5
10469   rm -rf conftest*
10470   glibcpp_cv_func___builtin_cos_use=no
10471 fi
10472 rm -f conftest*
10473       ac_ext=c
10474 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10475 ac_cpp='$CPP $CPPFLAGS'
10476 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10477 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10478 cross_compiling=$ac_cv_prog_cc_cross
10479
10480     
10481 fi
10482
10483   fi
10484   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
10485   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
10486     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
10487 echo "configure:10488: checking for __builtin_cos linkage" >&5
10488     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
10489       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
10490   echo $ac_n "(cached) $ac_c" 1>&6
10491 else
10492   
10493         cat > conftest.$ac_ext <<EOF
10494 #line 10495 "configure"
10495 #include "confdefs.h"
10496 #include <math.h>
10497 int main() {
10498  __builtin_cos(0);
10499 ; return 0; }
10500 EOF
10501 if { (eval echo configure:10502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10502   rm -rf conftest*
10503   glibcpp_cv_func___builtin_cos_link=yes
10504 else
10505   echo "configure: failed program was:" >&5
10506   cat conftest.$ac_ext >&5
10507   rm -rf conftest*
10508   glibcpp_cv_func___builtin_cos_link=no
10509 fi
10510 rm -f conftest*
10511       
10512 fi
10513
10514     fi
10515     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
10516     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
10517       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10518       cat >> confdefs.h <<EOF
10519 #define ${ac_tr_func} 1
10520 EOF
10521
10522     fi
10523   fi
10524
10525   
10526   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
10527 echo "configure:10528: checking for __builtin_cosl declaration" >&5
10528   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
10529     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
10530   echo $ac_n "(cached) $ac_c" 1>&6
10531 else
10532   
10533       
10534       ac_ext=C
10535 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10536 ac_cpp='$CXXCPP $CPPFLAGS'
10537 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10538 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10539 cross_compiling=$ac_cv_prog_cxx_cross
10540
10541       cat > conftest.$ac_ext <<EOF
10542 #line 10543 "configure"
10543 #include "confdefs.h"
10544 #include <math.h>
10545 int main() {
10546  __builtin_cosl(0);
10547 ; return 0; }
10548 EOF
10549 if { (eval echo configure:10550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10550   rm -rf conftest*
10551   glibcpp_cv_func___builtin_cosl_use=yes
10552 else
10553   echo "configure: failed program was:" >&5
10554   cat conftest.$ac_ext >&5
10555   rm -rf conftest*
10556   glibcpp_cv_func___builtin_cosl_use=no
10557 fi
10558 rm -f conftest*
10559       ac_ext=c
10560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10561 ac_cpp='$CPP $CPPFLAGS'
10562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10564 cross_compiling=$ac_cv_prog_cc_cross
10565
10566     
10567 fi
10568
10569   fi
10570   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
10571   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
10572     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
10573 echo "configure:10574: checking for __builtin_cosl linkage" >&5
10574     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
10575       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
10576   echo $ac_n "(cached) $ac_c" 1>&6
10577 else
10578   
10579         cat > conftest.$ac_ext <<EOF
10580 #line 10581 "configure"
10581 #include "confdefs.h"
10582 #include <math.h>
10583 int main() {
10584  __builtin_cosl(0);
10585 ; return 0; }
10586 EOF
10587 if { (eval echo configure:10588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10588   rm -rf conftest*
10589   glibcpp_cv_func___builtin_cosl_link=yes
10590 else
10591   echo "configure: failed program was:" >&5
10592   cat conftest.$ac_ext >&5
10593   rm -rf conftest*
10594   glibcpp_cv_func___builtin_cosl_link=no
10595 fi
10596 rm -f conftest*
10597       
10598 fi
10599
10600     fi
10601     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
10602     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
10603       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10604       cat >> confdefs.h <<EOF
10605 #define ${ac_tr_func} 1
10606 EOF
10607
10608     fi
10609   fi
10610
10611
10612               dummyvar=no
10613   if test x$dummyvar = x"yes"; then
10614     cat >> confdefs.h <<\EOF
10615 #define HAVE___BUILTIN_ABS 1
10616 EOF
10617
10618     cat >> confdefs.h <<\EOF
10619 #define HAVE___BUILTIN_LABS 1
10620 EOF
10621
10622     cat >> confdefs.h <<\EOF
10623 #define HAVE___BUILTIN_COS 1
10624 EOF
10625
10626     cat >> confdefs.h <<\EOF
10627 #define HAVE___BUILTIN_COSF 1
10628 EOF
10629
10630     cat >> confdefs.h <<\EOF
10631 #define HAVE___BUILTIN_COSL 1
10632 EOF
10633
10634     cat >> confdefs.h <<\EOF
10635 #define HAVE___BUILTIN_FABS 1
10636 EOF
10637
10638     cat >> confdefs.h <<\EOF
10639 #define HAVE___BUILTIN_FABSF 1
10640 EOF
10641
10642     cat >> confdefs.h <<\EOF
10643 #define HAVE___BUILTIN_FABSL 1
10644 EOF
10645
10646     cat >> confdefs.h <<\EOF
10647 #define HAVE___BUILTIN_SIN 1
10648 EOF
10649
10650     cat >> confdefs.h <<\EOF
10651 #define HAVE___BUILTIN_SINF 1
10652 EOF
10653
10654     cat >> confdefs.h <<\EOF
10655 #define HAVE___BUILTIN_SINL 1
10656 EOF
10657
10658     cat >> confdefs.h <<\EOF
10659 #define HAVE___BUILTIN_SQRT 1
10660 EOF
10661
10662     cat >> confdefs.h <<\EOF
10663 #define HAVE___BUILTIN_SQRTF 1
10664 EOF
10665
10666     cat >> confdefs.h <<\EOF
10667 #define HAVE___BUILTIN_SQRTL 1
10668 EOF
10669
10670   fi
10671
10672   
10673   ac_test_CXXFLAGS="${CXXFLAGS+set}"
10674   ac_save_CXXFLAGS="$CXXFLAGS"
10675   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
10676
10677     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10678 echo "configure:10679: checking for sin in -lm" >&5
10679 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10680 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10681   echo $ac_n "(cached) $ac_c" 1>&6
10682 else
10683   ac_save_LIBS="$LIBS"
10684 LIBS="-lm  $LIBS"
10685 cat > conftest.$ac_ext <<EOF
10686 #line 10687 "configure"
10687 #include "confdefs.h"
10688 /* Override any gcc2 internal prototype to avoid an error.  */
10689 /* We use char because int might match the return type of a gcc2
10690     builtin and then its argument prototype would still apply.  */
10691 char sin();
10692
10693 int main() {
10694 sin()
10695 ; return 0; }
10696 EOF
10697 if { (eval echo configure:10698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10698   rm -rf conftest*
10699   eval "ac_cv_lib_$ac_lib_var=yes"
10700 else
10701   echo "configure: failed program was:" >&5
10702   cat conftest.$ac_ext >&5
10703   rm -rf conftest*
10704   eval "ac_cv_lib_$ac_lib_var=no"
10705 fi
10706 rm -f conftest*
10707 LIBS="$ac_save_LIBS"
10708
10709 fi
10710 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10711   echo "$ac_t""yes" 1>&6
10712   libm="-lm"
10713 else
10714   echo "$ac_t""no" 1>&6
10715 fi
10716
10717   ac_save_LIBS="$LIBS"
10718   LIBS="$LIBS $libm"
10719
10720     
10721   
10722   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10723 echo "configure:10724: checking for isinf declaration" >&5
10724   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
10725     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
10726   echo $ac_n "(cached) $ac_c" 1>&6
10727 else
10728   
10729       
10730       ac_ext=C
10731 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10732 ac_cpp='$CXXCPP $CPPFLAGS'
10733 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10734 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10735 cross_compiling=$ac_cv_prog_cxx_cross
10736
10737       cat > conftest.$ac_ext <<EOF
10738 #line 10739 "configure"
10739 #include "confdefs.h"
10740 #include <math.h>
10741                       #ifdef HAVE_IEEEFP_H
10742                       #include <ieeefp.h>
10743                       #endif
10744                      
10745 int main() {
10746  isinf(0);
10747 ; return 0; }
10748 EOF
10749 if { (eval echo configure:10750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10750   rm -rf conftest*
10751   glibcpp_cv_func_isinf_use=yes
10752 else
10753   echo "configure: failed program was:" >&5
10754   cat conftest.$ac_ext >&5
10755   rm -rf conftest*
10756   glibcpp_cv_func_isinf_use=no
10757 fi
10758 rm -f conftest*
10759       ac_ext=c
10760 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10761 ac_cpp='$CPP $CPPFLAGS'
10762 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10763 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10764 cross_compiling=$ac_cv_prog_cc_cross
10765
10766     
10767 fi
10768
10769   fi
10770   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
10771
10772   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
10773     for ac_func in isinf
10774 do
10775 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10776 echo "configure:10777: checking for $ac_func" >&5
10777 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10778   echo $ac_n "(cached) $ac_c" 1>&6
10779 else
10780   cat > conftest.$ac_ext <<EOF
10781 #line 10782 "configure"
10782 #include "confdefs.h"
10783 /* System header to define __stub macros and hopefully few prototypes,
10784     which can conflict with char $ac_func(); below.  */
10785 #include <assert.h>
10786 /* Override any gcc2 internal prototype to avoid an error.  */
10787 /* We use char because int might match the return type of a gcc2
10788     builtin and then its argument prototype would still apply.  */
10789 char $ac_func();
10790
10791 int main() {
10792
10793 /* The GNU C library defines this for functions which it implements
10794     to always fail with ENOSYS.  Some functions are actually named
10795     something starting with __ and the normal name is an alias.  */
10796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10797 choke me
10798 #else
10799 $ac_func();
10800 #endif
10801
10802 ; return 0; }
10803 EOF
10804 if { (eval echo configure:10805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10805   rm -rf conftest*
10806   eval "ac_cv_func_$ac_func=yes"
10807 else
10808   echo "configure: failed program was:" >&5
10809   cat conftest.$ac_ext >&5
10810   rm -rf conftest*
10811   eval "ac_cv_func_$ac_func=no"
10812 fi
10813 rm -f conftest*
10814 fi
10815
10816 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10817   echo "$ac_t""yes" 1>&6
10818     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10819   cat >> confdefs.h <<EOF
10820 #define $ac_tr_func 1
10821 EOF
10822  
10823 else
10824   echo "$ac_t""no" 1>&6
10825 fi
10826 done
10827     
10828   else
10829     
10830   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
10831 echo "configure:10832: checking for _isinf declaration" >&5
10832   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
10833     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
10834   echo $ac_n "(cached) $ac_c" 1>&6
10835 else
10836   
10837       
10838       ac_ext=C
10839 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10840 ac_cpp='$CXXCPP $CPPFLAGS'
10841 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10842 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10843 cross_compiling=$ac_cv_prog_cxx_cross
10844
10845       cat > conftest.$ac_ext <<EOF
10846 #line 10847 "configure"
10847 #include "confdefs.h"
10848 #include <math.h>
10849                       #ifdef HAVE_IEEEFP_H
10850                       #include <ieeefp.h>
10851                       #endif
10852                      
10853 int main() {
10854  _isinf(0);
10855 ; return 0; }
10856 EOF
10857 if { (eval echo configure:10858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10858   rm -rf conftest*
10859   glibcpp_cv_func__isinf_use=yes
10860 else
10861   echo "configure: failed program was:" >&5
10862   cat conftest.$ac_ext >&5
10863   rm -rf conftest*
10864   glibcpp_cv_func__isinf_use=no
10865 fi
10866 rm -f conftest*
10867       ac_ext=c
10868 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10869 ac_cpp='$CPP $CPPFLAGS'
10870 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10871 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10872 cross_compiling=$ac_cv_prog_cc_cross
10873
10874     
10875 fi
10876
10877   fi
10878   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
10879
10880     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
10881       for ac_func in _isinf
10882 do
10883 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10884 echo "configure:10885: checking for $ac_func" >&5
10885 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10886   echo $ac_n "(cached) $ac_c" 1>&6
10887 else
10888   cat > conftest.$ac_ext <<EOF
10889 #line 10890 "configure"
10890 #include "confdefs.h"
10891 /* System header to define __stub macros and hopefully few prototypes,
10892     which can conflict with char $ac_func(); below.  */
10893 #include <assert.h>
10894 /* Override any gcc2 internal prototype to avoid an error.  */
10895 /* We use char because int might match the return type of a gcc2
10896     builtin and then its argument prototype would still apply.  */
10897 char $ac_func();
10898
10899 int main() {
10900
10901 /* The GNU C library defines this for functions which it implements
10902     to always fail with ENOSYS.  Some functions are actually named
10903     something starting with __ and the normal name is an alias.  */
10904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10905 choke me
10906 #else
10907 $ac_func();
10908 #endif
10909
10910 ; return 0; }
10911 EOF
10912 if { (eval echo configure:10913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10913   rm -rf conftest*
10914   eval "ac_cv_func_$ac_func=yes"
10915 else
10916   echo "configure: failed program was:" >&5
10917   cat conftest.$ac_ext >&5
10918   rm -rf conftest*
10919   eval "ac_cv_func_$ac_func=no"
10920 fi
10921 rm -f conftest*
10922 fi
10923
10924 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10925   echo "$ac_t""yes" 1>&6
10926     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10927   cat >> confdefs.h <<EOF
10928 #define $ac_tr_func 1
10929 EOF
10930  
10931 else
10932   echo "$ac_t""no" 1>&6
10933 fi
10934 done
10935     
10936     fi
10937   fi
10938
10939   
10940   
10941   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
10942 echo "configure:10943: checking for isnan declaration" >&5
10943   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
10944     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
10945   echo $ac_n "(cached) $ac_c" 1>&6
10946 else
10947   
10948       
10949       ac_ext=C
10950 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10951 ac_cpp='$CXXCPP $CPPFLAGS'
10952 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10953 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10954 cross_compiling=$ac_cv_prog_cxx_cross
10955
10956       cat > conftest.$ac_ext <<EOF
10957 #line 10958 "configure"
10958 #include "confdefs.h"
10959 #include <math.h>
10960                       #ifdef HAVE_IEEEFP_H
10961                       #include <ieeefp.h>
10962                       #endif
10963                      
10964 int main() {
10965  isnan(0);
10966 ; return 0; }
10967 EOF
10968 if { (eval echo configure:10969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10969   rm -rf conftest*
10970   glibcpp_cv_func_isnan_use=yes
10971 else
10972   echo "configure: failed program was:" >&5
10973   cat conftest.$ac_ext >&5
10974   rm -rf conftest*
10975   glibcpp_cv_func_isnan_use=no
10976 fi
10977 rm -f conftest*
10978       ac_ext=c
10979 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10980 ac_cpp='$CPP $CPPFLAGS'
10981 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10982 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10983 cross_compiling=$ac_cv_prog_cc_cross
10984
10985     
10986 fi
10987
10988   fi
10989   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
10990
10991   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
10992     for ac_func in isnan
10993 do
10994 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10995 echo "configure:10996: checking for $ac_func" >&5
10996 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10997   echo $ac_n "(cached) $ac_c" 1>&6
10998 else
10999   cat > conftest.$ac_ext <<EOF
11000 #line 11001 "configure"
11001 #include "confdefs.h"
11002 /* System header to define __stub macros and hopefully few prototypes,
11003     which can conflict with char $ac_func(); below.  */
11004 #include <assert.h>
11005 /* Override any gcc2 internal prototype to avoid an error.  */
11006 /* We use char because int might match the return type of a gcc2
11007     builtin and then its argument prototype would still apply.  */
11008 char $ac_func();
11009
11010 int main() {
11011
11012 /* The GNU C library defines this for functions which it implements
11013     to always fail with ENOSYS.  Some functions are actually named
11014     something starting with __ and the normal name is an alias.  */
11015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11016 choke me
11017 #else
11018 $ac_func();
11019 #endif
11020
11021 ; return 0; }
11022 EOF
11023 if { (eval echo configure:11024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11024   rm -rf conftest*
11025   eval "ac_cv_func_$ac_func=yes"
11026 else
11027   echo "configure: failed program was:" >&5
11028   cat conftest.$ac_ext >&5
11029   rm -rf conftest*
11030   eval "ac_cv_func_$ac_func=no"
11031 fi
11032 rm -f conftest*
11033 fi
11034
11035 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11036   echo "$ac_t""yes" 1>&6
11037     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11038   cat >> confdefs.h <<EOF
11039 #define $ac_tr_func 1
11040 EOF
11041  
11042 else
11043   echo "$ac_t""no" 1>&6
11044 fi
11045 done
11046     
11047   else
11048     
11049   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11050 echo "configure:11051: checking for _isnan declaration" >&5
11051   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
11052     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
11053   echo $ac_n "(cached) $ac_c" 1>&6
11054 else
11055   
11056       
11057       ac_ext=C
11058 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11059 ac_cpp='$CXXCPP $CPPFLAGS'
11060 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11061 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11062 cross_compiling=$ac_cv_prog_cxx_cross
11063
11064       cat > conftest.$ac_ext <<EOF
11065 #line 11066 "configure"
11066 #include "confdefs.h"
11067 #include <math.h>
11068                       #ifdef HAVE_IEEEFP_H
11069                       #include <ieeefp.h>
11070                       #endif
11071                      
11072 int main() {
11073  _isnan(0);
11074 ; return 0; }
11075 EOF
11076 if { (eval echo configure:11077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11077   rm -rf conftest*
11078   glibcpp_cv_func__isnan_use=yes
11079 else
11080   echo "configure: failed program was:" >&5
11081   cat conftest.$ac_ext >&5
11082   rm -rf conftest*
11083   glibcpp_cv_func__isnan_use=no
11084 fi
11085 rm -f conftest*
11086       ac_ext=c
11087 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11088 ac_cpp='$CPP $CPPFLAGS'
11089 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11090 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11091 cross_compiling=$ac_cv_prog_cc_cross
11092
11093     
11094 fi
11095
11096   fi
11097   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
11098
11099     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
11100       for ac_func in _isnan
11101 do
11102 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11103 echo "configure:11104: checking for $ac_func" >&5
11104 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11105   echo $ac_n "(cached) $ac_c" 1>&6
11106 else
11107   cat > conftest.$ac_ext <<EOF
11108 #line 11109 "configure"
11109 #include "confdefs.h"
11110 /* System header to define __stub macros and hopefully few prototypes,
11111     which can conflict with char $ac_func(); below.  */
11112 #include <assert.h>
11113 /* Override any gcc2 internal prototype to avoid an error.  */
11114 /* We use char because int might match the return type of a gcc2
11115     builtin and then its argument prototype would still apply.  */
11116 char $ac_func();
11117
11118 int main() {
11119
11120 /* The GNU C library defines this for functions which it implements
11121     to always fail with ENOSYS.  Some functions are actually named
11122     something starting with __ and the normal name is an alias.  */
11123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11124 choke me
11125 #else
11126 $ac_func();
11127 #endif
11128
11129 ; return 0; }
11130 EOF
11131 if { (eval echo configure:11132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11132   rm -rf conftest*
11133   eval "ac_cv_func_$ac_func=yes"
11134 else
11135   echo "configure: failed program was:" >&5
11136   cat conftest.$ac_ext >&5
11137   rm -rf conftest*
11138   eval "ac_cv_func_$ac_func=no"
11139 fi
11140 rm -f conftest*
11141 fi
11142
11143 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11144   echo "$ac_t""yes" 1>&6
11145     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11146   cat >> confdefs.h <<EOF
11147 #define $ac_tr_func 1
11148 EOF
11149  
11150 else
11151   echo "$ac_t""no" 1>&6
11152 fi
11153 done
11154     
11155     fi
11156   fi
11157
11158   
11159   
11160   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11161 echo "configure:11162: checking for finite declaration" >&5
11162   if test x${glibcpp_cv_func_finite_use+set} != xset; then
11163     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
11164   echo $ac_n "(cached) $ac_c" 1>&6
11165 else
11166   
11167       
11168       ac_ext=C
11169 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11170 ac_cpp='$CXXCPP $CPPFLAGS'
11171 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11172 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11173 cross_compiling=$ac_cv_prog_cxx_cross
11174
11175       cat > conftest.$ac_ext <<EOF
11176 #line 11177 "configure"
11177 #include "confdefs.h"
11178 #include <math.h>
11179                       #ifdef HAVE_IEEEFP_H
11180                       #include <ieeefp.h>
11181                       #endif
11182                      
11183 int main() {
11184  finite(0);
11185 ; return 0; }
11186 EOF
11187 if { (eval echo configure:11188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11188   rm -rf conftest*
11189   glibcpp_cv_func_finite_use=yes
11190 else
11191   echo "configure: failed program was:" >&5
11192   cat conftest.$ac_ext >&5
11193   rm -rf conftest*
11194   glibcpp_cv_func_finite_use=no
11195 fi
11196 rm -f conftest*
11197       ac_ext=c
11198 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11199 ac_cpp='$CPP $CPPFLAGS'
11200 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11201 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11202 cross_compiling=$ac_cv_prog_cc_cross
11203
11204     
11205 fi
11206
11207   fi
11208   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
11209
11210   if test x$glibcpp_cv_func_finite_use = x"yes"; then
11211     for ac_func in finite
11212 do
11213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11214 echo "configure:11215: checking for $ac_func" >&5
11215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11216   echo $ac_n "(cached) $ac_c" 1>&6
11217 else
11218   cat > conftest.$ac_ext <<EOF
11219 #line 11220 "configure"
11220 #include "confdefs.h"
11221 /* System header to define __stub macros and hopefully few prototypes,
11222     which can conflict with char $ac_func(); below.  */
11223 #include <assert.h>
11224 /* Override any gcc2 internal prototype to avoid an error.  */
11225 /* We use char because int might match the return type of a gcc2
11226     builtin and then its argument prototype would still apply.  */
11227 char $ac_func();
11228
11229 int main() {
11230
11231 /* The GNU C library defines this for functions which it implements
11232     to always fail with ENOSYS.  Some functions are actually named
11233     something starting with __ and the normal name is an alias.  */
11234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11235 choke me
11236 #else
11237 $ac_func();
11238 #endif
11239
11240 ; return 0; }
11241 EOF
11242 if { (eval echo configure:11243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11243   rm -rf conftest*
11244   eval "ac_cv_func_$ac_func=yes"
11245 else
11246   echo "configure: failed program was:" >&5
11247   cat conftest.$ac_ext >&5
11248   rm -rf conftest*
11249   eval "ac_cv_func_$ac_func=no"
11250 fi
11251 rm -f conftest*
11252 fi
11253
11254 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11255   echo "$ac_t""yes" 1>&6
11256     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11257   cat >> confdefs.h <<EOF
11258 #define $ac_tr_func 1
11259 EOF
11260  
11261 else
11262   echo "$ac_t""no" 1>&6
11263 fi
11264 done
11265     
11266   else
11267     
11268   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11269 echo "configure:11270: checking for _finite declaration" >&5
11270   if test x${glibcpp_cv_func__finite_use+set} != xset; then
11271     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
11272   echo $ac_n "(cached) $ac_c" 1>&6
11273 else
11274   
11275       
11276       ac_ext=C
11277 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11278 ac_cpp='$CXXCPP $CPPFLAGS'
11279 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11280 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11281 cross_compiling=$ac_cv_prog_cxx_cross
11282
11283       cat > conftest.$ac_ext <<EOF
11284 #line 11285 "configure"
11285 #include "confdefs.h"
11286 #include <math.h>
11287                       #ifdef HAVE_IEEEFP_H
11288                       #include <ieeefp.h>
11289                       #endif
11290                      
11291 int main() {
11292  _finite(0);
11293 ; return 0; }
11294 EOF
11295 if { (eval echo configure:11296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11296   rm -rf conftest*
11297   glibcpp_cv_func__finite_use=yes
11298 else
11299   echo "configure: failed program was:" >&5
11300   cat conftest.$ac_ext >&5
11301   rm -rf conftest*
11302   glibcpp_cv_func__finite_use=no
11303 fi
11304 rm -f conftest*
11305       ac_ext=c
11306 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11307 ac_cpp='$CPP $CPPFLAGS'
11308 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11309 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11310 cross_compiling=$ac_cv_prog_cc_cross
11311
11312     
11313 fi
11314
11315   fi
11316   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
11317
11318     if test x$glibcpp_cv_func__finite_use = x"yes"; then
11319       for ac_func in _finite
11320 do
11321 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11322 echo "configure:11323: checking for $ac_func" >&5
11323 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11324   echo $ac_n "(cached) $ac_c" 1>&6
11325 else
11326   cat > conftest.$ac_ext <<EOF
11327 #line 11328 "configure"
11328 #include "confdefs.h"
11329 /* System header to define __stub macros and hopefully few prototypes,
11330     which can conflict with char $ac_func(); below.  */
11331 #include <assert.h>
11332 /* Override any gcc2 internal prototype to avoid an error.  */
11333 /* We use char because int might match the return type of a gcc2
11334     builtin and then its argument prototype would still apply.  */
11335 char $ac_func();
11336
11337 int main() {
11338
11339 /* The GNU C library defines this for functions which it implements
11340     to always fail with ENOSYS.  Some functions are actually named
11341     something starting with __ and the normal name is an alias.  */
11342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11343 choke me
11344 #else
11345 $ac_func();
11346 #endif
11347
11348 ; return 0; }
11349 EOF
11350 if { (eval echo configure:11351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11351   rm -rf conftest*
11352   eval "ac_cv_func_$ac_func=yes"
11353 else
11354   echo "configure: failed program was:" >&5
11355   cat conftest.$ac_ext >&5
11356   rm -rf conftest*
11357   eval "ac_cv_func_$ac_func=no"
11358 fi
11359 rm -f conftest*
11360 fi
11361
11362 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11363   echo "$ac_t""yes" 1>&6
11364     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11365   cat >> confdefs.h <<EOF
11366 #define $ac_tr_func 1
11367 EOF
11368  
11369 else
11370   echo "$ac_t""no" 1>&6
11371 fi
11372 done
11373     
11374     fi
11375   fi
11376
11377   
11378   
11379   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11380 echo "configure:11381: checking for copysign declaration" >&5
11381   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
11382     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
11383   echo $ac_n "(cached) $ac_c" 1>&6
11384 else
11385   
11386       
11387       ac_ext=C
11388 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11389 ac_cpp='$CXXCPP $CPPFLAGS'
11390 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11391 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11392 cross_compiling=$ac_cv_prog_cxx_cross
11393
11394       cat > conftest.$ac_ext <<EOF
11395 #line 11396 "configure"
11396 #include "confdefs.h"
11397 #include <math.h>
11398 int main() {
11399  copysign(0, 0);
11400 ; return 0; }
11401 EOF
11402 if { (eval echo configure:11403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11403   rm -rf conftest*
11404   glibcpp_cv_func_copysign_use=yes
11405 else
11406   echo "configure: failed program was:" >&5
11407   cat conftest.$ac_ext >&5
11408   rm -rf conftest*
11409   glibcpp_cv_func_copysign_use=no
11410 fi
11411 rm -f conftest*
11412       ac_ext=c
11413 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11414 ac_cpp='$CPP $CPPFLAGS'
11415 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11416 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11417 cross_compiling=$ac_cv_prog_cc_cross
11418
11419     
11420 fi
11421
11422   fi
11423   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
11424
11425   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
11426     for ac_func in copysign
11427 do
11428 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11429 echo "configure:11430: checking for $ac_func" >&5
11430 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11431   echo $ac_n "(cached) $ac_c" 1>&6
11432 else
11433   cat > conftest.$ac_ext <<EOF
11434 #line 11435 "configure"
11435 #include "confdefs.h"
11436 /* System header to define __stub macros and hopefully few prototypes,
11437     which can conflict with char $ac_func(); below.  */
11438 #include <assert.h>
11439 /* Override any gcc2 internal prototype to avoid an error.  */
11440 /* We use char because int might match the return type of a gcc2
11441     builtin and then its argument prototype would still apply.  */
11442 char $ac_func();
11443
11444 int main() {
11445
11446 /* The GNU C library defines this for functions which it implements
11447     to always fail with ENOSYS.  Some functions are actually named
11448     something starting with __ and the normal name is an alias.  */
11449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11450 choke me
11451 #else
11452 $ac_func();
11453 #endif
11454
11455 ; return 0; }
11456 EOF
11457 if { (eval echo configure:11458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11458   rm -rf conftest*
11459   eval "ac_cv_func_$ac_func=yes"
11460 else
11461   echo "configure: failed program was:" >&5
11462   cat conftest.$ac_ext >&5
11463   rm -rf conftest*
11464   eval "ac_cv_func_$ac_func=no"
11465 fi
11466 rm -f conftest*
11467 fi
11468
11469 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11470   echo "$ac_t""yes" 1>&6
11471     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11472   cat >> confdefs.h <<EOF
11473 #define $ac_tr_func 1
11474 EOF
11475  
11476 else
11477   echo "$ac_t""no" 1>&6
11478 fi
11479 done
11480     
11481   else
11482     
11483   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11484 echo "configure:11485: checking for _copysign declaration" >&5
11485   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
11486     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
11487   echo $ac_n "(cached) $ac_c" 1>&6
11488 else
11489   
11490       
11491       ac_ext=C
11492 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11493 ac_cpp='$CXXCPP $CPPFLAGS'
11494 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11495 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11496 cross_compiling=$ac_cv_prog_cxx_cross
11497
11498       cat > conftest.$ac_ext <<EOF
11499 #line 11500 "configure"
11500 #include "confdefs.h"
11501 #include <math.h>
11502 int main() {
11503  _copysign(0, 0);
11504 ; return 0; }
11505 EOF
11506 if { (eval echo configure:11507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11507   rm -rf conftest*
11508   glibcpp_cv_func__copysign_use=yes
11509 else
11510   echo "configure: failed program was:" >&5
11511   cat conftest.$ac_ext >&5
11512   rm -rf conftest*
11513   glibcpp_cv_func__copysign_use=no
11514 fi
11515 rm -f conftest*
11516       ac_ext=c
11517 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11518 ac_cpp='$CPP $CPPFLAGS'
11519 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11520 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11521 cross_compiling=$ac_cv_prog_cc_cross
11522
11523     
11524 fi
11525
11526   fi
11527   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
11528
11529     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
11530       for ac_func in _copysign
11531 do
11532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11533 echo "configure:11534: checking for $ac_func" >&5
11534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11535   echo $ac_n "(cached) $ac_c" 1>&6
11536 else
11537   cat > conftest.$ac_ext <<EOF
11538 #line 11539 "configure"
11539 #include "confdefs.h"
11540 /* System header to define __stub macros and hopefully few prototypes,
11541     which can conflict with char $ac_func(); below.  */
11542 #include <assert.h>
11543 /* Override any gcc2 internal prototype to avoid an error.  */
11544 /* We use char because int might match the return type of a gcc2
11545     builtin and then its argument prototype would still apply.  */
11546 char $ac_func();
11547
11548 int main() {
11549
11550 /* The GNU C library defines this for functions which it implements
11551     to always fail with ENOSYS.  Some functions are actually named
11552     something starting with __ and the normal name is an alias.  */
11553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11554 choke me
11555 #else
11556 $ac_func();
11557 #endif
11558
11559 ; return 0; }
11560 EOF
11561 if { (eval echo configure:11562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11562   rm -rf conftest*
11563   eval "ac_cv_func_$ac_func=yes"
11564 else
11565   echo "configure: failed program was:" >&5
11566   cat conftest.$ac_ext >&5
11567   rm -rf conftest*
11568   eval "ac_cv_func_$ac_func=no"
11569 fi
11570 rm -f conftest*
11571 fi
11572
11573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11574   echo "$ac_t""yes" 1>&6
11575     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11576   cat >> confdefs.h <<EOF
11577 #define $ac_tr_func 1
11578 EOF
11579  
11580 else
11581   echo "$ac_t""no" 1>&6
11582 fi
11583 done
11584     
11585     fi
11586   fi
11587
11588   
11589   
11590   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11591 echo "configure:11592: checking for sincos declaration" >&5
11592   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
11593     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
11594   echo $ac_n "(cached) $ac_c" 1>&6
11595 else
11596   
11597       
11598       ac_ext=C
11599 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11600 ac_cpp='$CXXCPP $CPPFLAGS'
11601 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11602 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11603 cross_compiling=$ac_cv_prog_cxx_cross
11604
11605       cat > conftest.$ac_ext <<EOF
11606 #line 11607 "configure"
11607 #include "confdefs.h"
11608 #include <math.h>
11609 int main() {
11610  sincos(0, 0, 0);
11611 ; return 0; }
11612 EOF
11613 if { (eval echo configure:11614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11614   rm -rf conftest*
11615   glibcpp_cv_func_sincos_use=yes
11616 else
11617   echo "configure: failed program was:" >&5
11618   cat conftest.$ac_ext >&5
11619   rm -rf conftest*
11620   glibcpp_cv_func_sincos_use=no
11621 fi
11622 rm -f conftest*
11623       ac_ext=c
11624 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11625 ac_cpp='$CPP $CPPFLAGS'
11626 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11627 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11628 cross_compiling=$ac_cv_prog_cc_cross
11629
11630     
11631 fi
11632
11633   fi
11634   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
11635
11636   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
11637     for ac_func in sincos
11638 do
11639 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11640 echo "configure:11641: checking for $ac_func" >&5
11641 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11642   echo $ac_n "(cached) $ac_c" 1>&6
11643 else
11644   cat > conftest.$ac_ext <<EOF
11645 #line 11646 "configure"
11646 #include "confdefs.h"
11647 /* System header to define __stub macros and hopefully few prototypes,
11648     which can conflict with char $ac_func(); below.  */
11649 #include <assert.h>
11650 /* Override any gcc2 internal prototype to avoid an error.  */
11651 /* We use char because int might match the return type of a gcc2
11652     builtin and then its argument prototype would still apply.  */
11653 char $ac_func();
11654
11655 int main() {
11656
11657 /* The GNU C library defines this for functions which it implements
11658     to always fail with ENOSYS.  Some functions are actually named
11659     something starting with __ and the normal name is an alias.  */
11660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11661 choke me
11662 #else
11663 $ac_func();
11664 #endif
11665
11666 ; return 0; }
11667 EOF
11668 if { (eval echo configure:11669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11669   rm -rf conftest*
11670   eval "ac_cv_func_$ac_func=yes"
11671 else
11672   echo "configure: failed program was:" >&5
11673   cat conftest.$ac_ext >&5
11674   rm -rf conftest*
11675   eval "ac_cv_func_$ac_func=no"
11676 fi
11677 rm -f conftest*
11678 fi
11679
11680 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11681   echo "$ac_t""yes" 1>&6
11682     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11683   cat >> confdefs.h <<EOF
11684 #define $ac_tr_func 1
11685 EOF
11686  
11687 else
11688   echo "$ac_t""no" 1>&6
11689 fi
11690 done
11691     
11692   else
11693     
11694   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11695 echo "configure:11696: checking for _sincos declaration" >&5
11696   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
11697     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
11698   echo $ac_n "(cached) $ac_c" 1>&6
11699 else
11700   
11701       
11702       ac_ext=C
11703 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11704 ac_cpp='$CXXCPP $CPPFLAGS'
11705 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11706 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11707 cross_compiling=$ac_cv_prog_cxx_cross
11708
11709       cat > conftest.$ac_ext <<EOF
11710 #line 11711 "configure"
11711 #include "confdefs.h"
11712 #include <math.h>
11713 int main() {
11714  _sincos(0, 0, 0);
11715 ; return 0; }
11716 EOF
11717 if { (eval echo configure:11718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11718   rm -rf conftest*
11719   glibcpp_cv_func__sincos_use=yes
11720 else
11721   echo "configure: failed program was:" >&5
11722   cat conftest.$ac_ext >&5
11723   rm -rf conftest*
11724   glibcpp_cv_func__sincos_use=no
11725 fi
11726 rm -f conftest*
11727       ac_ext=c
11728 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11729 ac_cpp='$CPP $CPPFLAGS'
11730 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11731 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11732 cross_compiling=$ac_cv_prog_cc_cross
11733
11734     
11735 fi
11736
11737   fi
11738   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
11739
11740     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
11741       for ac_func in _sincos
11742 do
11743 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11744 echo "configure:11745: checking for $ac_func" >&5
11745 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11746   echo $ac_n "(cached) $ac_c" 1>&6
11747 else
11748   cat > conftest.$ac_ext <<EOF
11749 #line 11750 "configure"
11750 #include "confdefs.h"
11751 /* System header to define __stub macros and hopefully few prototypes,
11752     which can conflict with char $ac_func(); below.  */
11753 #include <assert.h>
11754 /* Override any gcc2 internal prototype to avoid an error.  */
11755 /* We use char because int might match the return type of a gcc2
11756     builtin and then its argument prototype would still apply.  */
11757 char $ac_func();
11758
11759 int main() {
11760
11761 /* The GNU C library defines this for functions which it implements
11762     to always fail with ENOSYS.  Some functions are actually named
11763     something starting with __ and the normal name is an alias.  */
11764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11765 choke me
11766 #else
11767 $ac_func();
11768 #endif
11769
11770 ; return 0; }
11771 EOF
11772 if { (eval echo configure:11773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11773   rm -rf conftest*
11774   eval "ac_cv_func_$ac_func=yes"
11775 else
11776   echo "configure: failed program was:" >&5
11777   cat conftest.$ac_ext >&5
11778   rm -rf conftest*
11779   eval "ac_cv_func_$ac_func=no"
11780 fi
11781 rm -f conftest*
11782 fi
11783
11784 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11785   echo "$ac_t""yes" 1>&6
11786     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11787   cat >> confdefs.h <<EOF
11788 #define $ac_tr_func 1
11789 EOF
11790  
11791 else
11792   echo "$ac_t""no" 1>&6
11793 fi
11794 done
11795     
11796     fi
11797   fi
11798
11799   
11800   
11801   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
11802 echo "configure:11803: checking for fpclass declaration" >&5
11803   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
11804     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
11805   echo $ac_n "(cached) $ac_c" 1>&6
11806 else
11807   
11808       
11809       ac_ext=C
11810 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11811 ac_cpp='$CXXCPP $CPPFLAGS'
11812 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11813 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11814 cross_compiling=$ac_cv_prog_cxx_cross
11815
11816       cat > conftest.$ac_ext <<EOF
11817 #line 11818 "configure"
11818 #include "confdefs.h"
11819 #include <math.h>
11820                       #ifdef HAVE_IEEEFP_H
11821                       #include <ieeefp.h>
11822                       #endif
11823                      
11824 int main() {
11825  fpclass(0);
11826 ; return 0; }
11827 EOF
11828 if { (eval echo configure:11829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11829   rm -rf conftest*
11830   glibcpp_cv_func_fpclass_use=yes
11831 else
11832   echo "configure: failed program was:" >&5
11833   cat conftest.$ac_ext >&5
11834   rm -rf conftest*
11835   glibcpp_cv_func_fpclass_use=no
11836 fi
11837 rm -f conftest*
11838       ac_ext=c
11839 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11840 ac_cpp='$CPP $CPPFLAGS'
11841 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11842 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11843 cross_compiling=$ac_cv_prog_cc_cross
11844
11845     
11846 fi
11847
11848   fi
11849   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
11850
11851   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
11852     for ac_func in fpclass
11853 do
11854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11855 echo "configure:11856: checking for $ac_func" >&5
11856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11857   echo $ac_n "(cached) $ac_c" 1>&6
11858 else
11859   cat > conftest.$ac_ext <<EOF
11860 #line 11861 "configure"
11861 #include "confdefs.h"
11862 /* System header to define __stub macros and hopefully few prototypes,
11863     which can conflict with char $ac_func(); below.  */
11864 #include <assert.h>
11865 /* Override any gcc2 internal prototype to avoid an error.  */
11866 /* We use char because int might match the return type of a gcc2
11867     builtin and then its argument prototype would still apply.  */
11868 char $ac_func();
11869
11870 int main() {
11871
11872 /* The GNU C library defines this for functions which it implements
11873     to always fail with ENOSYS.  Some functions are actually named
11874     something starting with __ and the normal name is an alias.  */
11875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11876 choke me
11877 #else
11878 $ac_func();
11879 #endif
11880
11881 ; return 0; }
11882 EOF
11883 if { (eval echo configure:11884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11884   rm -rf conftest*
11885   eval "ac_cv_func_$ac_func=yes"
11886 else
11887   echo "configure: failed program was:" >&5
11888   cat conftest.$ac_ext >&5
11889   rm -rf conftest*
11890   eval "ac_cv_func_$ac_func=no"
11891 fi
11892 rm -f conftest*
11893 fi
11894
11895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11896   echo "$ac_t""yes" 1>&6
11897     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11898   cat >> confdefs.h <<EOF
11899 #define $ac_tr_func 1
11900 EOF
11901  
11902 else
11903   echo "$ac_t""no" 1>&6
11904 fi
11905 done
11906     
11907   else
11908     
11909   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
11910 echo "configure:11911: checking for _fpclass declaration" >&5
11911   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
11912     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
11913   echo $ac_n "(cached) $ac_c" 1>&6
11914 else
11915   
11916       
11917       ac_ext=C
11918 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11919 ac_cpp='$CXXCPP $CPPFLAGS'
11920 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11921 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11922 cross_compiling=$ac_cv_prog_cxx_cross
11923
11924       cat > conftest.$ac_ext <<EOF
11925 #line 11926 "configure"
11926 #include "confdefs.h"
11927 #include <math.h>
11928                       #ifdef HAVE_IEEEFP_H
11929                       #include <ieeefp.h>
11930                       #endif
11931                      
11932 int main() {
11933  _fpclass(0);
11934 ; return 0; }
11935 EOF
11936 if { (eval echo configure:11937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11937   rm -rf conftest*
11938   glibcpp_cv_func__fpclass_use=yes
11939 else
11940   echo "configure: failed program was:" >&5
11941   cat conftest.$ac_ext >&5
11942   rm -rf conftest*
11943   glibcpp_cv_func__fpclass_use=no
11944 fi
11945 rm -f conftest*
11946       ac_ext=c
11947 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11948 ac_cpp='$CPP $CPPFLAGS'
11949 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11950 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11951 cross_compiling=$ac_cv_prog_cc_cross
11952
11953     
11954 fi
11955
11956   fi
11957   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
11958
11959     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
11960       for ac_func in _fpclass
11961 do
11962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11963 echo "configure:11964: checking for $ac_func" >&5
11964 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11965   echo $ac_n "(cached) $ac_c" 1>&6
11966 else
11967   cat > conftest.$ac_ext <<EOF
11968 #line 11969 "configure"
11969 #include "confdefs.h"
11970 /* System header to define __stub macros and hopefully few prototypes,
11971     which can conflict with char $ac_func(); below.  */
11972 #include <assert.h>
11973 /* Override any gcc2 internal prototype to avoid an error.  */
11974 /* We use char because int might match the return type of a gcc2
11975     builtin and then its argument prototype would still apply.  */
11976 char $ac_func();
11977
11978 int main() {
11979
11980 /* The GNU C library defines this for functions which it implements
11981     to always fail with ENOSYS.  Some functions are actually named
11982     something starting with __ and the normal name is an alias.  */
11983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11984 choke me
11985 #else
11986 $ac_func();
11987 #endif
11988
11989 ; return 0; }
11990 EOF
11991 if { (eval echo configure:11992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11992   rm -rf conftest*
11993   eval "ac_cv_func_$ac_func=yes"
11994 else
11995   echo "configure: failed program was:" >&5
11996   cat conftest.$ac_ext >&5
11997   rm -rf conftest*
11998   eval "ac_cv_func_$ac_func=no"
11999 fi
12000 rm -f conftest*
12001 fi
12002
12003 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12004   echo "$ac_t""yes" 1>&6
12005     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12006   cat >> confdefs.h <<EOF
12007 #define $ac_tr_func 1
12008 EOF
12009  
12010 else
12011   echo "$ac_t""no" 1>&6
12012 fi
12013 done
12014     
12015     fi
12016   fi
12017
12018   
12019   
12020   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
12021 echo "configure:12022: checking for qfpclass declaration" >&5
12022   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
12023     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
12024   echo $ac_n "(cached) $ac_c" 1>&6
12025 else
12026   
12027       
12028       ac_ext=C
12029 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12030 ac_cpp='$CXXCPP $CPPFLAGS'
12031 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12032 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12033 cross_compiling=$ac_cv_prog_cxx_cross
12034
12035       cat > conftest.$ac_ext <<EOF
12036 #line 12037 "configure"
12037 #include "confdefs.h"
12038 #include <math.h>
12039                       #ifdef HAVE_IEEEFP_H
12040                       #include <ieeefp.h>
12041                       #endif
12042                      
12043 int main() {
12044  qfpclass(0);
12045 ; return 0; }
12046 EOF
12047 if { (eval echo configure:12048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12048   rm -rf conftest*
12049   glibcpp_cv_func_qfpclass_use=yes
12050 else
12051   echo "configure: failed program was:" >&5
12052   cat conftest.$ac_ext >&5
12053   rm -rf conftest*
12054   glibcpp_cv_func_qfpclass_use=no
12055 fi
12056 rm -f conftest*
12057       ac_ext=c
12058 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12059 ac_cpp='$CPP $CPPFLAGS'
12060 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12061 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12062 cross_compiling=$ac_cv_prog_cc_cross
12063
12064     
12065 fi
12066
12067   fi
12068   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
12069
12070   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
12071     for ac_func in qfpclass
12072 do
12073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12074 echo "configure:12075: checking for $ac_func" >&5
12075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12076   echo $ac_n "(cached) $ac_c" 1>&6
12077 else
12078   cat > conftest.$ac_ext <<EOF
12079 #line 12080 "configure"
12080 #include "confdefs.h"
12081 /* System header to define __stub macros and hopefully few prototypes,
12082     which can conflict with char $ac_func(); below.  */
12083 #include <assert.h>
12084 /* Override any gcc2 internal prototype to avoid an error.  */
12085 /* We use char because int might match the return type of a gcc2
12086     builtin and then its argument prototype would still apply.  */
12087 char $ac_func();
12088
12089 int main() {
12090
12091 /* The GNU C library defines this for functions which it implements
12092     to always fail with ENOSYS.  Some functions are actually named
12093     something starting with __ and the normal name is an alias.  */
12094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12095 choke me
12096 #else
12097 $ac_func();
12098 #endif
12099
12100 ; return 0; }
12101 EOF
12102 if { (eval echo configure:12103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12103   rm -rf conftest*
12104   eval "ac_cv_func_$ac_func=yes"
12105 else
12106   echo "configure: failed program was:" >&5
12107   cat conftest.$ac_ext >&5
12108   rm -rf conftest*
12109   eval "ac_cv_func_$ac_func=no"
12110 fi
12111 rm -f conftest*
12112 fi
12113
12114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12115   echo "$ac_t""yes" 1>&6
12116     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12117   cat >> confdefs.h <<EOF
12118 #define $ac_tr_func 1
12119 EOF
12120  
12121 else
12122   echo "$ac_t""no" 1>&6
12123 fi
12124 done
12125     
12126   else
12127     
12128   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12129 echo "configure:12130: checking for _qfpclass declaration" >&5
12130   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
12131     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
12132   echo $ac_n "(cached) $ac_c" 1>&6
12133 else
12134   
12135       
12136       ac_ext=C
12137 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12138 ac_cpp='$CXXCPP $CPPFLAGS'
12139 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12140 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12141 cross_compiling=$ac_cv_prog_cxx_cross
12142
12143       cat > conftest.$ac_ext <<EOF
12144 #line 12145 "configure"
12145 #include "confdefs.h"
12146 #include <math.h>
12147                       #ifdef HAVE_IEEEFP_H
12148                       #include <ieeefp.h>
12149                       #endif
12150                      
12151 int main() {
12152  _qfpclass(0);
12153 ; return 0; }
12154 EOF
12155 if { (eval echo configure:12156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12156   rm -rf conftest*
12157   glibcpp_cv_func__qfpclass_use=yes
12158 else
12159   echo "configure: failed program was:" >&5
12160   cat conftest.$ac_ext >&5
12161   rm -rf conftest*
12162   glibcpp_cv_func__qfpclass_use=no
12163 fi
12164 rm -f conftest*
12165       ac_ext=c
12166 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12167 ac_cpp='$CPP $CPPFLAGS'
12168 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12169 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12170 cross_compiling=$ac_cv_prog_cc_cross
12171
12172     
12173 fi
12174
12175   fi
12176   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
12177
12178     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
12179       for ac_func in _qfpclass
12180 do
12181 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12182 echo "configure:12183: checking for $ac_func" >&5
12183 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12184   echo $ac_n "(cached) $ac_c" 1>&6
12185 else
12186   cat > conftest.$ac_ext <<EOF
12187 #line 12188 "configure"
12188 #include "confdefs.h"
12189 /* System header to define __stub macros and hopefully few prototypes,
12190     which can conflict with char $ac_func(); below.  */
12191 #include <assert.h>
12192 /* Override any gcc2 internal prototype to avoid an error.  */
12193 /* We use char because int might match the return type of a gcc2
12194     builtin and then its argument prototype would still apply.  */
12195 char $ac_func();
12196
12197 int main() {
12198
12199 /* The GNU C library defines this for functions which it implements
12200     to always fail with ENOSYS.  Some functions are actually named
12201     something starting with __ and the normal name is an alias.  */
12202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12203 choke me
12204 #else
12205 $ac_func();
12206 #endif
12207
12208 ; return 0; }
12209 EOF
12210 if { (eval echo configure:12211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12211   rm -rf conftest*
12212   eval "ac_cv_func_$ac_func=yes"
12213 else
12214   echo "configure: failed program was:" >&5
12215   cat conftest.$ac_ext >&5
12216   rm -rf conftest*
12217   eval "ac_cv_func_$ac_func=no"
12218 fi
12219 rm -f conftest*
12220 fi
12221
12222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12223   echo "$ac_t""yes" 1>&6
12224     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12225   cat >> confdefs.h <<EOF
12226 #define $ac_tr_func 1
12227 EOF
12228  
12229 else
12230   echo "$ac_t""no" 1>&6
12231 fi
12232 done
12233     
12234     fi
12235   fi
12236
12237   
12238   
12239   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12240 echo "configure:12241: checking for hypot declaration" >&5
12241   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
12242     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
12243   echo $ac_n "(cached) $ac_c" 1>&6
12244 else
12245   
12246       
12247       ac_ext=C
12248 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12249 ac_cpp='$CXXCPP $CPPFLAGS'
12250 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12251 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12252 cross_compiling=$ac_cv_prog_cxx_cross
12253
12254       cat > conftest.$ac_ext <<EOF
12255 #line 12256 "configure"
12256 #include "confdefs.h"
12257 #include <math.h>
12258 int main() {
12259  hypot(0, 0);
12260 ; return 0; }
12261 EOF
12262 if { (eval echo configure:12263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12263   rm -rf conftest*
12264   glibcpp_cv_func_hypot_use=yes
12265 else
12266   echo "configure: failed program was:" >&5
12267   cat conftest.$ac_ext >&5
12268   rm -rf conftest*
12269   glibcpp_cv_func_hypot_use=no
12270 fi
12271 rm -f conftest*
12272       ac_ext=c
12273 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12274 ac_cpp='$CPP $CPPFLAGS'
12275 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12276 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12277 cross_compiling=$ac_cv_prog_cc_cross
12278
12279     
12280 fi
12281
12282   fi
12283   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
12284
12285   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
12286     for ac_func in hypot
12287 do
12288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12289 echo "configure:12290: checking for $ac_func" >&5
12290 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12291   echo $ac_n "(cached) $ac_c" 1>&6
12292 else
12293   cat > conftest.$ac_ext <<EOF
12294 #line 12295 "configure"
12295 #include "confdefs.h"
12296 /* System header to define __stub macros and hopefully few prototypes,
12297     which can conflict with char $ac_func(); below.  */
12298 #include <assert.h>
12299 /* Override any gcc2 internal prototype to avoid an error.  */
12300 /* We use char because int might match the return type of a gcc2
12301     builtin and then its argument prototype would still apply.  */
12302 char $ac_func();
12303
12304 int main() {
12305
12306 /* The GNU C library defines this for functions which it implements
12307     to always fail with ENOSYS.  Some functions are actually named
12308     something starting with __ and the normal name is an alias.  */
12309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12310 choke me
12311 #else
12312 $ac_func();
12313 #endif
12314
12315 ; return 0; }
12316 EOF
12317 if { (eval echo configure:12318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12318   rm -rf conftest*
12319   eval "ac_cv_func_$ac_func=yes"
12320 else
12321   echo "configure: failed program was:" >&5
12322   cat conftest.$ac_ext >&5
12323   rm -rf conftest*
12324   eval "ac_cv_func_$ac_func=no"
12325 fi
12326 rm -f conftest*
12327 fi
12328
12329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12330   echo "$ac_t""yes" 1>&6
12331     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12332   cat >> confdefs.h <<EOF
12333 #define $ac_tr_func 1
12334 EOF
12335  
12336 else
12337   echo "$ac_t""no" 1>&6
12338 fi
12339 done
12340     
12341   else
12342     
12343   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12344 echo "configure:12345: checking for _hypot declaration" >&5
12345   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
12346     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
12347   echo $ac_n "(cached) $ac_c" 1>&6
12348 else
12349   
12350       
12351       ac_ext=C
12352 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12353 ac_cpp='$CXXCPP $CPPFLAGS'
12354 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12355 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12356 cross_compiling=$ac_cv_prog_cxx_cross
12357
12358       cat > conftest.$ac_ext <<EOF
12359 #line 12360 "configure"
12360 #include "confdefs.h"
12361 #include <math.h>
12362 int main() {
12363  _hypot(0, 0);
12364 ; return 0; }
12365 EOF
12366 if { (eval echo configure:12367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12367   rm -rf conftest*
12368   glibcpp_cv_func__hypot_use=yes
12369 else
12370   echo "configure: failed program was:" >&5
12371   cat conftest.$ac_ext >&5
12372   rm -rf conftest*
12373   glibcpp_cv_func__hypot_use=no
12374 fi
12375 rm -f conftest*
12376       ac_ext=c
12377 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12378 ac_cpp='$CPP $CPPFLAGS'
12379 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12380 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12381 cross_compiling=$ac_cv_prog_cc_cross
12382
12383     
12384 fi
12385
12386   fi
12387   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
12388
12389     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
12390       for ac_func in _hypot
12391 do
12392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12393 echo "configure:12394: checking for $ac_func" >&5
12394 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12395   echo $ac_n "(cached) $ac_c" 1>&6
12396 else
12397   cat > conftest.$ac_ext <<EOF
12398 #line 12399 "configure"
12399 #include "confdefs.h"
12400 /* System header to define __stub macros and hopefully few prototypes,
12401     which can conflict with char $ac_func(); below.  */
12402 #include <assert.h>
12403 /* Override any gcc2 internal prototype to avoid an error.  */
12404 /* We use char because int might match the return type of a gcc2
12405     builtin and then its argument prototype would still apply.  */
12406 char $ac_func();
12407
12408 int main() {
12409
12410 /* The GNU C library defines this for functions which it implements
12411     to always fail with ENOSYS.  Some functions are actually named
12412     something starting with __ and the normal name is an alias.  */
12413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12414 choke me
12415 #else
12416 $ac_func();
12417 #endif
12418
12419 ; return 0; }
12420 EOF
12421 if { (eval echo configure:12422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12422   rm -rf conftest*
12423   eval "ac_cv_func_$ac_func=yes"
12424 else
12425   echo "configure: failed program was:" >&5
12426   cat conftest.$ac_ext >&5
12427   rm -rf conftest*
12428   eval "ac_cv_func_$ac_func=no"
12429 fi
12430 rm -f conftest*
12431 fi
12432
12433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12434   echo "$ac_t""yes" 1>&6
12435     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12436   cat >> confdefs.h <<EOF
12437 #define $ac_tr_func 1
12438 EOF
12439  
12440 else
12441   echo "$ac_t""no" 1>&6
12442 fi
12443 done
12444     
12445     fi
12446   fi
12447
12448
12449     
12450   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12451 echo "configure:12452: checking for float trig functions" >&5
12452   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
12453   echo $ac_n "(cached) $ac_c" 1>&6
12454 else
12455   
12456     
12457     ac_ext=C
12458 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12459 ac_cpp='$CXXCPP $CPPFLAGS'
12460 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12461 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12462 cross_compiling=$ac_cv_prog_cxx_cross
12463
12464     cat > conftest.$ac_ext <<EOF
12465 #line 12466 "configure"
12466 #include "confdefs.h"
12467 #include <math.h>
12468 int main() {
12469  `for x in acosf asinf atanf \
12470                                           cosf sinf tanf \
12471                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
12472 ; return 0; }
12473 EOF
12474 if { (eval echo configure:12475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12475   rm -rf conftest*
12476   glibcpp_cv_func_float_trig_use=yes
12477 else
12478   echo "configure: failed program was:" >&5
12479   cat conftest.$ac_ext >&5
12480   rm -rf conftest*
12481   glibcpp_cv_func_float_trig_use=no
12482 fi
12483 rm -f conftest*
12484     ac_ext=c
12485 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12486 ac_cpp='$CPP $CPPFLAGS'
12487 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12488 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12489 cross_compiling=$ac_cv_prog_cc_cross
12490
12491 fi
12492
12493   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
12494   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
12495     for ac_func in acosf asinf atanf \
12496                                           cosf sinf tanf \
12497                                           coshf sinhf tanhf
12498 do
12499 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12500 echo "configure:12501: checking for $ac_func" >&5
12501 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12502   echo $ac_n "(cached) $ac_c" 1>&6
12503 else
12504   cat > conftest.$ac_ext <<EOF
12505 #line 12506 "configure"
12506 #include "confdefs.h"
12507 /* System header to define __stub macros and hopefully few prototypes,
12508     which can conflict with char $ac_func(); below.  */
12509 #include <assert.h>
12510 /* Override any gcc2 internal prototype to avoid an error.  */
12511 /* We use char because int might match the return type of a gcc2
12512     builtin and then its argument prototype would still apply.  */
12513 char $ac_func();
12514
12515 int main() {
12516
12517 /* The GNU C library defines this for functions which it implements
12518     to always fail with ENOSYS.  Some functions are actually named
12519     something starting with __ and the normal name is an alias.  */
12520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12521 choke me
12522 #else
12523 $ac_func();
12524 #endif
12525
12526 ; return 0; }
12527 EOF
12528 if { (eval echo configure:12529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12529   rm -rf conftest*
12530   eval "ac_cv_func_$ac_func=yes"
12531 else
12532   echo "configure: failed program was:" >&5
12533   cat conftest.$ac_ext >&5
12534   rm -rf conftest*
12535   eval "ac_cv_func_$ac_func=no"
12536 fi
12537 rm -f conftest*
12538 fi
12539
12540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12541   echo "$ac_t""yes" 1>&6
12542     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12543   cat >> confdefs.h <<EOF
12544 #define $ac_tr_func 1
12545 EOF
12546  
12547 else
12548   echo "$ac_t""no" 1>&6
12549 fi
12550 done
12551
12552   fi
12553
12554   
12555   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12556 echo "configure:12557: checking for float round functions" >&5
12557   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
12558   echo $ac_n "(cached) $ac_c" 1>&6
12559 else
12560   
12561     
12562     ac_ext=C
12563 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12564 ac_cpp='$CXXCPP $CPPFLAGS'
12565 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12566 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12567 cross_compiling=$ac_cv_prog_cxx_cross
12568
12569     cat > conftest.$ac_ext <<EOF
12570 #line 12571 "configure"
12571 #include "confdefs.h"
12572 #include <math.h>
12573 int main() {
12574  `for x in ceilf floorf; do echo "$x (0);"; done` 
12575 ; return 0; }
12576 EOF
12577 if { (eval echo configure:12578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12578   rm -rf conftest*
12579   glibcpp_cv_func_float_round_use=yes
12580 else
12581   echo "configure: failed program was:" >&5
12582   cat conftest.$ac_ext >&5
12583   rm -rf conftest*
12584   glibcpp_cv_func_float_round_use=no
12585 fi
12586 rm -f conftest*
12587     ac_ext=c
12588 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12589 ac_cpp='$CPP $CPPFLAGS'
12590 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12591 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12592 cross_compiling=$ac_cv_prog_cc_cross
12593
12594 fi
12595
12596   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
12597   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
12598     for ac_func in ceilf floorf
12599 do
12600 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12601 echo "configure:12602: checking for $ac_func" >&5
12602 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12603   echo $ac_n "(cached) $ac_c" 1>&6
12604 else
12605   cat > conftest.$ac_ext <<EOF
12606 #line 12607 "configure"
12607 #include "confdefs.h"
12608 /* System header to define __stub macros and hopefully few prototypes,
12609     which can conflict with char $ac_func(); below.  */
12610 #include <assert.h>
12611 /* Override any gcc2 internal prototype to avoid an error.  */
12612 /* We use char because int might match the return type of a gcc2
12613     builtin and then its argument prototype would still apply.  */
12614 char $ac_func();
12615
12616 int main() {
12617
12618 /* The GNU C library defines this for functions which it implements
12619     to always fail with ENOSYS.  Some functions are actually named
12620     something starting with __ and the normal name is an alias.  */
12621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12622 choke me
12623 #else
12624 $ac_func();
12625 #endif
12626
12627 ; return 0; }
12628 EOF
12629 if { (eval echo configure:12630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12630   rm -rf conftest*
12631   eval "ac_cv_func_$ac_func=yes"
12632 else
12633   echo "configure: failed program was:" >&5
12634   cat conftest.$ac_ext >&5
12635   rm -rf conftest*
12636   eval "ac_cv_func_$ac_func=no"
12637 fi
12638 rm -f conftest*
12639 fi
12640
12641 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12642   echo "$ac_t""yes" 1>&6
12643     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12644   cat >> confdefs.h <<EOF
12645 #define $ac_tr_func 1
12646 EOF
12647  
12648 else
12649   echo "$ac_t""no" 1>&6
12650 fi
12651 done
12652
12653   fi
12654
12655   
12656   
12657   echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12658 echo "configure:12659: checking for expf declaration" >&5
12659   if test x${glibcpp_cv_func_expf_use+set} != xset; then
12660     if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
12661   echo $ac_n "(cached) $ac_c" 1>&6
12662 else
12663   
12664       
12665       ac_ext=C
12666 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12667 ac_cpp='$CXXCPP $CPPFLAGS'
12668 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12669 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12670 cross_compiling=$ac_cv_prog_cxx_cross
12671
12672       cat > conftest.$ac_ext <<EOF
12673 #line 12674 "configure"
12674 #include "confdefs.h"
12675 #include <math.h>
12676                       #ifdef HAVE_IEEEFP_H
12677                       #include <ieeefp.h>
12678                       #endif
12679                      
12680 int main() {
12681  expf(0);
12682 ; return 0; }
12683 EOF
12684 if { (eval echo configure:12685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12685   rm -rf conftest*
12686   glibcpp_cv_func_expf_use=yes
12687 else
12688   echo "configure: failed program was:" >&5
12689   cat conftest.$ac_ext >&5
12690   rm -rf conftest*
12691   glibcpp_cv_func_expf_use=no
12692 fi
12693 rm -f conftest*
12694       ac_ext=c
12695 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12696 ac_cpp='$CPP $CPPFLAGS'
12697 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12698 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12699 cross_compiling=$ac_cv_prog_cc_cross
12700
12701     
12702 fi
12703
12704   fi
12705   echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
12706
12707   if test x$glibcpp_cv_func_expf_use = x"yes"; then
12708     for ac_func in expf
12709 do
12710 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12711 echo "configure:12712: checking for $ac_func" >&5
12712 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12713   echo $ac_n "(cached) $ac_c" 1>&6
12714 else
12715   cat > conftest.$ac_ext <<EOF
12716 #line 12717 "configure"
12717 #include "confdefs.h"
12718 /* System header to define __stub macros and hopefully few prototypes,
12719     which can conflict with char $ac_func(); below.  */
12720 #include <assert.h>
12721 /* Override any gcc2 internal prototype to avoid an error.  */
12722 /* We use char because int might match the return type of a gcc2
12723     builtin and then its argument prototype would still apply.  */
12724 char $ac_func();
12725
12726 int main() {
12727
12728 /* The GNU C library defines this for functions which it implements
12729     to always fail with ENOSYS.  Some functions are actually named
12730     something starting with __ and the normal name is an alias.  */
12731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12732 choke me
12733 #else
12734 $ac_func();
12735 #endif
12736
12737 ; return 0; }
12738 EOF
12739 if { (eval echo configure:12740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12740   rm -rf conftest*
12741   eval "ac_cv_func_$ac_func=yes"
12742 else
12743   echo "configure: failed program was:" >&5
12744   cat conftest.$ac_ext >&5
12745   rm -rf conftest*
12746   eval "ac_cv_func_$ac_func=no"
12747 fi
12748 rm -f conftest*
12749 fi
12750
12751 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12752   echo "$ac_t""yes" 1>&6
12753     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12754   cat >> confdefs.h <<EOF
12755 #define $ac_tr_func 1
12756 EOF
12757  
12758 else
12759   echo "$ac_t""no" 1>&6
12760 fi
12761 done
12762     
12763   else
12764     
12765   echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12766 echo "configure:12767: checking for _expf declaration" >&5
12767   if test x${glibcpp_cv_func__expf_use+set} != xset; then
12768     if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12769   echo $ac_n "(cached) $ac_c" 1>&6
12770 else
12771   
12772       
12773       ac_ext=C
12774 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12775 ac_cpp='$CXXCPP $CPPFLAGS'
12776 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12777 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12778 cross_compiling=$ac_cv_prog_cxx_cross
12779
12780       cat > conftest.$ac_ext <<EOF
12781 #line 12782 "configure"
12782 #include "confdefs.h"
12783 #include <math.h>
12784                       #ifdef HAVE_IEEEFP_H
12785                       #include <ieeefp.h>
12786                       #endif
12787                      
12788 int main() {
12789  _expf(0);
12790 ; return 0; }
12791 EOF
12792 if { (eval echo configure:12793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12793   rm -rf conftest*
12794   glibcpp_cv_func__expf_use=yes
12795 else
12796   echo "configure: failed program was:" >&5
12797   cat conftest.$ac_ext >&5
12798   rm -rf conftest*
12799   glibcpp_cv_func__expf_use=no
12800 fi
12801 rm -f conftest*
12802       ac_ext=c
12803 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12804 ac_cpp='$CPP $CPPFLAGS'
12805 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12806 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12807 cross_compiling=$ac_cv_prog_cc_cross
12808
12809     
12810 fi
12811
12812   fi
12813   echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
12814
12815     if test x$glibcpp_cv_func__expf_use = x"yes"; then
12816       for ac_func in _expf
12817 do
12818 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12819 echo "configure:12820: checking for $ac_func" >&5
12820 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12821   echo $ac_n "(cached) $ac_c" 1>&6
12822 else
12823   cat > conftest.$ac_ext <<EOF
12824 #line 12825 "configure"
12825 #include "confdefs.h"
12826 /* System header to define __stub macros and hopefully few prototypes,
12827     which can conflict with char $ac_func(); below.  */
12828 #include <assert.h>
12829 /* Override any gcc2 internal prototype to avoid an error.  */
12830 /* We use char because int might match the return type of a gcc2
12831     builtin and then its argument prototype would still apply.  */
12832 char $ac_func();
12833
12834 int main() {
12835
12836 /* The GNU C library defines this for functions which it implements
12837     to always fail with ENOSYS.  Some functions are actually named
12838     something starting with __ and the normal name is an alias.  */
12839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12840 choke me
12841 #else
12842 $ac_func();
12843 #endif
12844
12845 ; return 0; }
12846 EOF
12847 if { (eval echo configure:12848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12848   rm -rf conftest*
12849   eval "ac_cv_func_$ac_func=yes"
12850 else
12851   echo "configure: failed program was:" >&5
12852   cat conftest.$ac_ext >&5
12853   rm -rf conftest*
12854   eval "ac_cv_func_$ac_func=no"
12855 fi
12856 rm -f conftest*
12857 fi
12858
12859 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12860   echo "$ac_t""yes" 1>&6
12861     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12862   cat >> confdefs.h <<EOF
12863 #define $ac_tr_func 1
12864 EOF
12865  
12866 else
12867   echo "$ac_t""no" 1>&6
12868 fi
12869 done
12870     
12871     fi
12872   fi
12873
12874   
12875   
12876   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
12877 echo "configure:12878: checking for isnanf declaration" >&5
12878   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
12879     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
12880   echo $ac_n "(cached) $ac_c" 1>&6
12881 else
12882   
12883       
12884       ac_ext=C
12885 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12886 ac_cpp='$CXXCPP $CPPFLAGS'
12887 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12888 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12889 cross_compiling=$ac_cv_prog_cxx_cross
12890
12891       cat > conftest.$ac_ext <<EOF
12892 #line 12893 "configure"
12893 #include "confdefs.h"
12894 #include <math.h>
12895                       #ifdef HAVE_IEEEFP_H
12896                       #include <ieeefp.h>
12897                       #endif
12898                      
12899 int main() {
12900  isnanf(0);
12901 ; return 0; }
12902 EOF
12903 if { (eval echo configure:12904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12904   rm -rf conftest*
12905   glibcpp_cv_func_isnanf_use=yes
12906 else
12907   echo "configure: failed program was:" >&5
12908   cat conftest.$ac_ext >&5
12909   rm -rf conftest*
12910   glibcpp_cv_func_isnanf_use=no
12911 fi
12912 rm -f conftest*
12913       ac_ext=c
12914 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12915 ac_cpp='$CPP $CPPFLAGS'
12916 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12917 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12918 cross_compiling=$ac_cv_prog_cc_cross
12919
12920     
12921 fi
12922
12923   fi
12924   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
12925
12926   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
12927     for ac_func in isnanf
12928 do
12929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12930 echo "configure:12931: checking for $ac_func" >&5
12931 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12932   echo $ac_n "(cached) $ac_c" 1>&6
12933 else
12934   cat > conftest.$ac_ext <<EOF
12935 #line 12936 "configure"
12936 #include "confdefs.h"
12937 /* System header to define __stub macros and hopefully few prototypes,
12938     which can conflict with char $ac_func(); below.  */
12939 #include <assert.h>
12940 /* Override any gcc2 internal prototype to avoid an error.  */
12941 /* We use char because int might match the return type of a gcc2
12942     builtin and then its argument prototype would still apply.  */
12943 char $ac_func();
12944
12945 int main() {
12946
12947 /* The GNU C library defines this for functions which it implements
12948     to always fail with ENOSYS.  Some functions are actually named
12949     something starting with __ and the normal name is an alias.  */
12950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12951 choke me
12952 #else
12953 $ac_func();
12954 #endif
12955
12956 ; return 0; }
12957 EOF
12958 if { (eval echo configure:12959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12959   rm -rf conftest*
12960   eval "ac_cv_func_$ac_func=yes"
12961 else
12962   echo "configure: failed program was:" >&5
12963   cat conftest.$ac_ext >&5
12964   rm -rf conftest*
12965   eval "ac_cv_func_$ac_func=no"
12966 fi
12967 rm -f conftest*
12968 fi
12969
12970 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12971   echo "$ac_t""yes" 1>&6
12972     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12973   cat >> confdefs.h <<EOF
12974 #define $ac_tr_func 1
12975 EOF
12976  
12977 else
12978   echo "$ac_t""no" 1>&6
12979 fi
12980 done
12981     
12982   else
12983     
12984   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
12985 echo "configure:12986: checking for _isnanf declaration" >&5
12986   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
12987     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
12988   echo $ac_n "(cached) $ac_c" 1>&6
12989 else
12990   
12991       
12992       ac_ext=C
12993 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12994 ac_cpp='$CXXCPP $CPPFLAGS'
12995 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12996 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12997 cross_compiling=$ac_cv_prog_cxx_cross
12998
12999       cat > conftest.$ac_ext <<EOF
13000 #line 13001 "configure"
13001 #include "confdefs.h"
13002 #include <math.h>
13003                       #ifdef HAVE_IEEEFP_H
13004                       #include <ieeefp.h>
13005                       #endif
13006                      
13007 int main() {
13008  _isnanf(0);
13009 ; return 0; }
13010 EOF
13011 if { (eval echo configure:13012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13012   rm -rf conftest*
13013   glibcpp_cv_func__isnanf_use=yes
13014 else
13015   echo "configure: failed program was:" >&5
13016   cat conftest.$ac_ext >&5
13017   rm -rf conftest*
13018   glibcpp_cv_func__isnanf_use=no
13019 fi
13020 rm -f conftest*
13021       ac_ext=c
13022 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13023 ac_cpp='$CPP $CPPFLAGS'
13024 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13025 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13026 cross_compiling=$ac_cv_prog_cc_cross
13027
13028     
13029 fi
13030
13031   fi
13032   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
13033
13034     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
13035       for ac_func in _isnanf
13036 do
13037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13038 echo "configure:13039: checking for $ac_func" >&5
13039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13040   echo $ac_n "(cached) $ac_c" 1>&6
13041 else
13042   cat > conftest.$ac_ext <<EOF
13043 #line 13044 "configure"
13044 #include "confdefs.h"
13045 /* System header to define __stub macros and hopefully few prototypes,
13046     which can conflict with char $ac_func(); below.  */
13047 #include <assert.h>
13048 /* Override any gcc2 internal prototype to avoid an error.  */
13049 /* We use char because int might match the return type of a gcc2
13050     builtin and then its argument prototype would still apply.  */
13051 char $ac_func();
13052
13053 int main() {
13054
13055 /* The GNU C library defines this for functions which it implements
13056     to always fail with ENOSYS.  Some functions are actually named
13057     something starting with __ and the normal name is an alias.  */
13058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13059 choke me
13060 #else
13061 $ac_func();
13062 #endif
13063
13064 ; return 0; }
13065 EOF
13066 if { (eval echo configure:13067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13067   rm -rf conftest*
13068   eval "ac_cv_func_$ac_func=yes"
13069 else
13070   echo "configure: failed program was:" >&5
13071   cat conftest.$ac_ext >&5
13072   rm -rf conftest*
13073   eval "ac_cv_func_$ac_func=no"
13074 fi
13075 rm -f conftest*
13076 fi
13077
13078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13079   echo "$ac_t""yes" 1>&6
13080     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13081   cat >> confdefs.h <<EOF
13082 #define $ac_tr_func 1
13083 EOF
13084  
13085 else
13086   echo "$ac_t""no" 1>&6
13087 fi
13088 done
13089     
13090     fi
13091   fi
13092
13093   
13094   
13095   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13096 echo "configure:13097: checking for isinff declaration" >&5
13097   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
13098     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
13099   echo $ac_n "(cached) $ac_c" 1>&6
13100 else
13101   
13102       
13103       ac_ext=C
13104 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13105 ac_cpp='$CXXCPP $CPPFLAGS'
13106 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13107 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13108 cross_compiling=$ac_cv_prog_cxx_cross
13109
13110       cat > conftest.$ac_ext <<EOF
13111 #line 13112 "configure"
13112 #include "confdefs.h"
13113 #include <math.h>
13114                       #ifdef HAVE_IEEEFP_H
13115                       #include <ieeefp.h>
13116                       #endif
13117                      
13118 int main() {
13119  isinff(0);
13120 ; return 0; }
13121 EOF
13122 if { (eval echo configure:13123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13123   rm -rf conftest*
13124   glibcpp_cv_func_isinff_use=yes
13125 else
13126   echo "configure: failed program was:" >&5
13127   cat conftest.$ac_ext >&5
13128   rm -rf conftest*
13129   glibcpp_cv_func_isinff_use=no
13130 fi
13131 rm -f conftest*
13132       ac_ext=c
13133 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13134 ac_cpp='$CPP $CPPFLAGS'
13135 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13136 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13137 cross_compiling=$ac_cv_prog_cc_cross
13138
13139     
13140 fi
13141
13142   fi
13143   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
13144
13145   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
13146     for ac_func in isinff
13147 do
13148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13149 echo "configure:13150: checking for $ac_func" >&5
13150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13151   echo $ac_n "(cached) $ac_c" 1>&6
13152 else
13153   cat > conftest.$ac_ext <<EOF
13154 #line 13155 "configure"
13155 #include "confdefs.h"
13156 /* System header to define __stub macros and hopefully few prototypes,
13157     which can conflict with char $ac_func(); below.  */
13158 #include <assert.h>
13159 /* Override any gcc2 internal prototype to avoid an error.  */
13160 /* We use char because int might match the return type of a gcc2
13161     builtin and then its argument prototype would still apply.  */
13162 char $ac_func();
13163
13164 int main() {
13165
13166 /* The GNU C library defines this for functions which it implements
13167     to always fail with ENOSYS.  Some functions are actually named
13168     something starting with __ and the normal name is an alias.  */
13169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13170 choke me
13171 #else
13172 $ac_func();
13173 #endif
13174
13175 ; return 0; }
13176 EOF
13177 if { (eval echo configure:13178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13178   rm -rf conftest*
13179   eval "ac_cv_func_$ac_func=yes"
13180 else
13181   echo "configure: failed program was:" >&5
13182   cat conftest.$ac_ext >&5
13183   rm -rf conftest*
13184   eval "ac_cv_func_$ac_func=no"
13185 fi
13186 rm -f conftest*
13187 fi
13188
13189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13190   echo "$ac_t""yes" 1>&6
13191     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13192   cat >> confdefs.h <<EOF
13193 #define $ac_tr_func 1
13194 EOF
13195  
13196 else
13197   echo "$ac_t""no" 1>&6
13198 fi
13199 done
13200     
13201   else
13202     
13203   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13204 echo "configure:13205: checking for _isinff declaration" >&5
13205   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
13206     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
13207   echo $ac_n "(cached) $ac_c" 1>&6
13208 else
13209   
13210       
13211       ac_ext=C
13212 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13213 ac_cpp='$CXXCPP $CPPFLAGS'
13214 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13215 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13216 cross_compiling=$ac_cv_prog_cxx_cross
13217
13218       cat > conftest.$ac_ext <<EOF
13219 #line 13220 "configure"
13220 #include "confdefs.h"
13221 #include <math.h>
13222                       #ifdef HAVE_IEEEFP_H
13223                       #include <ieeefp.h>
13224                       #endif
13225                      
13226 int main() {
13227  _isinff(0);
13228 ; return 0; }
13229 EOF
13230 if { (eval echo configure:13231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13231   rm -rf conftest*
13232   glibcpp_cv_func__isinff_use=yes
13233 else
13234   echo "configure: failed program was:" >&5
13235   cat conftest.$ac_ext >&5
13236   rm -rf conftest*
13237   glibcpp_cv_func__isinff_use=no
13238 fi
13239 rm -f conftest*
13240       ac_ext=c
13241 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13242 ac_cpp='$CPP $CPPFLAGS'
13243 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13244 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13245 cross_compiling=$ac_cv_prog_cc_cross
13246
13247     
13248 fi
13249
13250   fi
13251   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
13252
13253     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
13254       for ac_func in _isinff
13255 do
13256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13257 echo "configure:13258: checking for $ac_func" >&5
13258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13259   echo $ac_n "(cached) $ac_c" 1>&6
13260 else
13261   cat > conftest.$ac_ext <<EOF
13262 #line 13263 "configure"
13263 #include "confdefs.h"
13264 /* System header to define __stub macros and hopefully few prototypes,
13265     which can conflict with char $ac_func(); below.  */
13266 #include <assert.h>
13267 /* Override any gcc2 internal prototype to avoid an error.  */
13268 /* We use char because int might match the return type of a gcc2
13269     builtin and then its argument prototype would still apply.  */
13270 char $ac_func();
13271
13272 int main() {
13273
13274 /* The GNU C library defines this for functions which it implements
13275     to always fail with ENOSYS.  Some functions are actually named
13276     something starting with __ and the normal name is an alias.  */
13277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13278 choke me
13279 #else
13280 $ac_func();
13281 #endif
13282
13283 ; return 0; }
13284 EOF
13285 if { (eval echo configure:13286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13286   rm -rf conftest*
13287   eval "ac_cv_func_$ac_func=yes"
13288 else
13289   echo "configure: failed program was:" >&5
13290   cat conftest.$ac_ext >&5
13291   rm -rf conftest*
13292   eval "ac_cv_func_$ac_func=no"
13293 fi
13294 rm -f conftest*
13295 fi
13296
13297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13298   echo "$ac_t""yes" 1>&6
13299     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13300   cat >> confdefs.h <<EOF
13301 #define $ac_tr_func 1
13302 EOF
13303  
13304 else
13305   echo "$ac_t""no" 1>&6
13306 fi
13307 done
13308     
13309     fi
13310   fi
13311
13312   
13313   
13314   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13315 echo "configure:13316: checking for atan2f declaration" >&5
13316   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
13317     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
13318   echo $ac_n "(cached) $ac_c" 1>&6
13319 else
13320   
13321       
13322       ac_ext=C
13323 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13324 ac_cpp='$CXXCPP $CPPFLAGS'
13325 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13326 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13327 cross_compiling=$ac_cv_prog_cxx_cross
13328
13329       cat > conftest.$ac_ext <<EOF
13330 #line 13331 "configure"
13331 #include "confdefs.h"
13332 #include <math.h>
13333 int main() {
13334  atan2f(0, 0);
13335 ; return 0; }
13336 EOF
13337 if { (eval echo configure:13338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13338   rm -rf conftest*
13339   glibcpp_cv_func_atan2f_use=yes
13340 else
13341   echo "configure: failed program was:" >&5
13342   cat conftest.$ac_ext >&5
13343   rm -rf conftest*
13344   glibcpp_cv_func_atan2f_use=no
13345 fi
13346 rm -f conftest*
13347       ac_ext=c
13348 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13349 ac_cpp='$CPP $CPPFLAGS'
13350 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13351 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13352 cross_compiling=$ac_cv_prog_cc_cross
13353
13354     
13355 fi
13356
13357   fi
13358   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
13359
13360   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
13361     for ac_func in atan2f
13362 do
13363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13364 echo "configure:13365: checking for $ac_func" >&5
13365 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13366   echo $ac_n "(cached) $ac_c" 1>&6
13367 else
13368   cat > conftest.$ac_ext <<EOF
13369 #line 13370 "configure"
13370 #include "confdefs.h"
13371 /* System header to define __stub macros and hopefully few prototypes,
13372     which can conflict with char $ac_func(); below.  */
13373 #include <assert.h>
13374 /* Override any gcc2 internal prototype to avoid an error.  */
13375 /* We use char because int might match the return type of a gcc2
13376     builtin and then its argument prototype would still apply.  */
13377 char $ac_func();
13378
13379 int main() {
13380
13381 /* The GNU C library defines this for functions which it implements
13382     to always fail with ENOSYS.  Some functions are actually named
13383     something starting with __ and the normal name is an alias.  */
13384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13385 choke me
13386 #else
13387 $ac_func();
13388 #endif
13389
13390 ; return 0; }
13391 EOF
13392 if { (eval echo configure:13393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13393   rm -rf conftest*
13394   eval "ac_cv_func_$ac_func=yes"
13395 else
13396   echo "configure: failed program was:" >&5
13397   cat conftest.$ac_ext >&5
13398   rm -rf conftest*
13399   eval "ac_cv_func_$ac_func=no"
13400 fi
13401 rm -f conftest*
13402 fi
13403
13404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13405   echo "$ac_t""yes" 1>&6
13406     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13407   cat >> confdefs.h <<EOF
13408 #define $ac_tr_func 1
13409 EOF
13410  
13411 else
13412   echo "$ac_t""no" 1>&6
13413 fi
13414 done
13415     
13416   else
13417     
13418   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13419 echo "configure:13420: checking for _atan2f declaration" >&5
13420   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
13421     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
13422   echo $ac_n "(cached) $ac_c" 1>&6
13423 else
13424   
13425       
13426       ac_ext=C
13427 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13428 ac_cpp='$CXXCPP $CPPFLAGS'
13429 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13430 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13431 cross_compiling=$ac_cv_prog_cxx_cross
13432
13433       cat > conftest.$ac_ext <<EOF
13434 #line 13435 "configure"
13435 #include "confdefs.h"
13436 #include <math.h>
13437 int main() {
13438  _atan2f(0, 0);
13439 ; return 0; }
13440 EOF
13441 if { (eval echo configure:13442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13442   rm -rf conftest*
13443   glibcpp_cv_func__atan2f_use=yes
13444 else
13445   echo "configure: failed program was:" >&5
13446   cat conftest.$ac_ext >&5
13447   rm -rf conftest*
13448   glibcpp_cv_func__atan2f_use=no
13449 fi
13450 rm -f conftest*
13451       ac_ext=c
13452 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13453 ac_cpp='$CPP $CPPFLAGS'
13454 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13455 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13456 cross_compiling=$ac_cv_prog_cc_cross
13457
13458     
13459 fi
13460
13461   fi
13462   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
13463
13464     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
13465       for ac_func in _atan2f
13466 do
13467 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13468 echo "configure:13469: checking for $ac_func" >&5
13469 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13470   echo $ac_n "(cached) $ac_c" 1>&6
13471 else
13472   cat > conftest.$ac_ext <<EOF
13473 #line 13474 "configure"
13474 #include "confdefs.h"
13475 /* System header to define __stub macros and hopefully few prototypes,
13476     which can conflict with char $ac_func(); below.  */
13477 #include <assert.h>
13478 /* Override any gcc2 internal prototype to avoid an error.  */
13479 /* We use char because int might match the return type of a gcc2
13480     builtin and then its argument prototype would still apply.  */
13481 char $ac_func();
13482
13483 int main() {
13484
13485 /* The GNU C library defines this for functions which it implements
13486     to always fail with ENOSYS.  Some functions are actually named
13487     something starting with __ and the normal name is an alias.  */
13488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13489 choke me
13490 #else
13491 $ac_func();
13492 #endif
13493
13494 ; return 0; }
13495 EOF
13496 if { (eval echo configure:13497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13497   rm -rf conftest*
13498   eval "ac_cv_func_$ac_func=yes"
13499 else
13500   echo "configure: failed program was:" >&5
13501   cat conftest.$ac_ext >&5
13502   rm -rf conftest*
13503   eval "ac_cv_func_$ac_func=no"
13504 fi
13505 rm -f conftest*
13506 fi
13507
13508 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13509   echo "$ac_t""yes" 1>&6
13510     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13511   cat >> confdefs.h <<EOF
13512 #define $ac_tr_func 1
13513 EOF
13514  
13515 else
13516   echo "$ac_t""no" 1>&6
13517 fi
13518 done
13519     
13520     fi
13521   fi
13522
13523   
13524   
13525   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13526 echo "configure:13527: checking for fabsf declaration" >&5
13527   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
13528     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
13529   echo $ac_n "(cached) $ac_c" 1>&6
13530 else
13531   
13532       
13533       ac_ext=C
13534 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13535 ac_cpp='$CXXCPP $CPPFLAGS'
13536 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13537 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13538 cross_compiling=$ac_cv_prog_cxx_cross
13539
13540       cat > conftest.$ac_ext <<EOF
13541 #line 13542 "configure"
13542 #include "confdefs.h"
13543 #include <math.h>
13544                       #ifdef HAVE_IEEEFP_H
13545                       #include <ieeefp.h>
13546                       #endif
13547                      
13548 int main() {
13549  fabsf(0);
13550 ; return 0; }
13551 EOF
13552 if { (eval echo configure:13553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13553   rm -rf conftest*
13554   glibcpp_cv_func_fabsf_use=yes
13555 else
13556   echo "configure: failed program was:" >&5
13557   cat conftest.$ac_ext >&5
13558   rm -rf conftest*
13559   glibcpp_cv_func_fabsf_use=no
13560 fi
13561 rm -f conftest*
13562       ac_ext=c
13563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13564 ac_cpp='$CPP $CPPFLAGS'
13565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13566 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13567 cross_compiling=$ac_cv_prog_cc_cross
13568
13569     
13570 fi
13571
13572   fi
13573   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
13574
13575   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
13576     for ac_func in fabsf
13577 do
13578 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13579 echo "configure:13580: checking for $ac_func" >&5
13580 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13581   echo $ac_n "(cached) $ac_c" 1>&6
13582 else
13583   cat > conftest.$ac_ext <<EOF
13584 #line 13585 "configure"
13585 #include "confdefs.h"
13586 /* System header to define __stub macros and hopefully few prototypes,
13587     which can conflict with char $ac_func(); below.  */
13588 #include <assert.h>
13589 /* Override any gcc2 internal prototype to avoid an error.  */
13590 /* We use char because int might match the return type of a gcc2
13591     builtin and then its argument prototype would still apply.  */
13592 char $ac_func();
13593
13594 int main() {
13595
13596 /* The GNU C library defines this for functions which it implements
13597     to always fail with ENOSYS.  Some functions are actually named
13598     something starting with __ and the normal name is an alias.  */
13599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13600 choke me
13601 #else
13602 $ac_func();
13603 #endif
13604
13605 ; return 0; }
13606 EOF
13607 if { (eval echo configure:13608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13608   rm -rf conftest*
13609   eval "ac_cv_func_$ac_func=yes"
13610 else
13611   echo "configure: failed program was:" >&5
13612   cat conftest.$ac_ext >&5
13613   rm -rf conftest*
13614   eval "ac_cv_func_$ac_func=no"
13615 fi
13616 rm -f conftest*
13617 fi
13618
13619 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13620   echo "$ac_t""yes" 1>&6
13621     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13622   cat >> confdefs.h <<EOF
13623 #define $ac_tr_func 1
13624 EOF
13625  
13626 else
13627   echo "$ac_t""no" 1>&6
13628 fi
13629 done
13630     
13631   else
13632     
13633   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13634 echo "configure:13635: checking for _fabsf declaration" >&5
13635   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
13636     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
13637   echo $ac_n "(cached) $ac_c" 1>&6
13638 else
13639   
13640       
13641       ac_ext=C
13642 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13643 ac_cpp='$CXXCPP $CPPFLAGS'
13644 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13645 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13646 cross_compiling=$ac_cv_prog_cxx_cross
13647
13648       cat > conftest.$ac_ext <<EOF
13649 #line 13650 "configure"
13650 #include "confdefs.h"
13651 #include <math.h>
13652                       #ifdef HAVE_IEEEFP_H
13653                       #include <ieeefp.h>
13654                       #endif
13655                      
13656 int main() {
13657  _fabsf(0);
13658 ; return 0; }
13659 EOF
13660 if { (eval echo configure:13661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13661   rm -rf conftest*
13662   glibcpp_cv_func__fabsf_use=yes
13663 else
13664   echo "configure: failed program was:" >&5
13665   cat conftest.$ac_ext >&5
13666   rm -rf conftest*
13667   glibcpp_cv_func__fabsf_use=no
13668 fi
13669 rm -f conftest*
13670       ac_ext=c
13671 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13672 ac_cpp='$CPP $CPPFLAGS'
13673 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13674 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13675 cross_compiling=$ac_cv_prog_cc_cross
13676
13677     
13678 fi
13679
13680   fi
13681   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
13682
13683     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
13684       for ac_func in _fabsf
13685 do
13686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13687 echo "configure:13688: checking for $ac_func" >&5
13688 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13689   echo $ac_n "(cached) $ac_c" 1>&6
13690 else
13691   cat > conftest.$ac_ext <<EOF
13692 #line 13693 "configure"
13693 #include "confdefs.h"
13694 /* System header to define __stub macros and hopefully few prototypes,
13695     which can conflict with char $ac_func(); below.  */
13696 #include <assert.h>
13697 /* Override any gcc2 internal prototype to avoid an error.  */
13698 /* We use char because int might match the return type of a gcc2
13699     builtin and then its argument prototype would still apply.  */
13700 char $ac_func();
13701
13702 int main() {
13703
13704 /* The GNU C library defines this for functions which it implements
13705     to always fail with ENOSYS.  Some functions are actually named
13706     something starting with __ and the normal name is an alias.  */
13707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13708 choke me
13709 #else
13710 $ac_func();
13711 #endif
13712
13713 ; return 0; }
13714 EOF
13715 if { (eval echo configure:13716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13716   rm -rf conftest*
13717   eval "ac_cv_func_$ac_func=yes"
13718 else
13719   echo "configure: failed program was:" >&5
13720   cat conftest.$ac_ext >&5
13721   rm -rf conftest*
13722   eval "ac_cv_func_$ac_func=no"
13723 fi
13724 rm -f conftest*
13725 fi
13726
13727 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13728   echo "$ac_t""yes" 1>&6
13729     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13730   cat >> confdefs.h <<EOF
13731 #define $ac_tr_func 1
13732 EOF
13733  
13734 else
13735   echo "$ac_t""no" 1>&6
13736 fi
13737 done
13738     
13739     fi
13740   fi
13741
13742   
13743   
13744   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13745 echo "configure:13746: checking for fmodf declaration" >&5
13746   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
13747     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
13748   echo $ac_n "(cached) $ac_c" 1>&6
13749 else
13750   
13751       
13752       ac_ext=C
13753 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13754 ac_cpp='$CXXCPP $CPPFLAGS'
13755 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13756 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13757 cross_compiling=$ac_cv_prog_cxx_cross
13758
13759       cat > conftest.$ac_ext <<EOF
13760 #line 13761 "configure"
13761 #include "confdefs.h"
13762 #include <math.h>
13763 int main() {
13764  fmodf(0, 0);
13765 ; return 0; }
13766 EOF
13767 if { (eval echo configure:13768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13768   rm -rf conftest*
13769   glibcpp_cv_func_fmodf_use=yes
13770 else
13771   echo "configure: failed program was:" >&5
13772   cat conftest.$ac_ext >&5
13773   rm -rf conftest*
13774   glibcpp_cv_func_fmodf_use=no
13775 fi
13776 rm -f conftest*
13777       ac_ext=c
13778 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13779 ac_cpp='$CPP $CPPFLAGS'
13780 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13781 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13782 cross_compiling=$ac_cv_prog_cc_cross
13783
13784     
13785 fi
13786
13787   fi
13788   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
13789
13790   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
13791     for ac_func in fmodf
13792 do
13793 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13794 echo "configure:13795: checking for $ac_func" >&5
13795 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13796   echo $ac_n "(cached) $ac_c" 1>&6
13797 else
13798   cat > conftest.$ac_ext <<EOF
13799 #line 13800 "configure"
13800 #include "confdefs.h"
13801 /* System header to define __stub macros and hopefully few prototypes,
13802     which can conflict with char $ac_func(); below.  */
13803 #include <assert.h>
13804 /* Override any gcc2 internal prototype to avoid an error.  */
13805 /* We use char because int might match the return type of a gcc2
13806     builtin and then its argument prototype would still apply.  */
13807 char $ac_func();
13808
13809 int main() {
13810
13811 /* The GNU C library defines this for functions which it implements
13812     to always fail with ENOSYS.  Some functions are actually named
13813     something starting with __ and the normal name is an alias.  */
13814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13815 choke me
13816 #else
13817 $ac_func();
13818 #endif
13819
13820 ; return 0; }
13821 EOF
13822 if { (eval echo configure:13823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13823   rm -rf conftest*
13824   eval "ac_cv_func_$ac_func=yes"
13825 else
13826   echo "configure: failed program was:" >&5
13827   cat conftest.$ac_ext >&5
13828   rm -rf conftest*
13829   eval "ac_cv_func_$ac_func=no"
13830 fi
13831 rm -f conftest*
13832 fi
13833
13834 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13835   echo "$ac_t""yes" 1>&6
13836     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13837   cat >> confdefs.h <<EOF
13838 #define $ac_tr_func 1
13839 EOF
13840  
13841 else
13842   echo "$ac_t""no" 1>&6
13843 fi
13844 done
13845     
13846   else
13847     
13848   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
13849 echo "configure:13850: checking for _fmodf declaration" >&5
13850   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
13851     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
13852   echo $ac_n "(cached) $ac_c" 1>&6
13853 else
13854   
13855       
13856       ac_ext=C
13857 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13858 ac_cpp='$CXXCPP $CPPFLAGS'
13859 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13860 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13861 cross_compiling=$ac_cv_prog_cxx_cross
13862
13863       cat > conftest.$ac_ext <<EOF
13864 #line 13865 "configure"
13865 #include "confdefs.h"
13866 #include <math.h>
13867 int main() {
13868  _fmodf(0, 0);
13869 ; return 0; }
13870 EOF
13871 if { (eval echo configure:13872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13872   rm -rf conftest*
13873   glibcpp_cv_func__fmodf_use=yes
13874 else
13875   echo "configure: failed program was:" >&5
13876   cat conftest.$ac_ext >&5
13877   rm -rf conftest*
13878   glibcpp_cv_func__fmodf_use=no
13879 fi
13880 rm -f conftest*
13881       ac_ext=c
13882 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13883 ac_cpp='$CPP $CPPFLAGS'
13884 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13885 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13886 cross_compiling=$ac_cv_prog_cc_cross
13887
13888     
13889 fi
13890
13891   fi
13892   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
13893
13894     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
13895       for ac_func in _fmodf
13896 do
13897 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13898 echo "configure:13899: checking for $ac_func" >&5
13899 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13900   echo $ac_n "(cached) $ac_c" 1>&6
13901 else
13902   cat > conftest.$ac_ext <<EOF
13903 #line 13904 "configure"
13904 #include "confdefs.h"
13905 /* System header to define __stub macros and hopefully few prototypes,
13906     which can conflict with char $ac_func(); below.  */
13907 #include <assert.h>
13908 /* Override any gcc2 internal prototype to avoid an error.  */
13909 /* We use char because int might match the return type of a gcc2
13910     builtin and then its argument prototype would still apply.  */
13911 char $ac_func();
13912
13913 int main() {
13914
13915 /* The GNU C library defines this for functions which it implements
13916     to always fail with ENOSYS.  Some functions are actually named
13917     something starting with __ and the normal name is an alias.  */
13918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13919 choke me
13920 #else
13921 $ac_func();
13922 #endif
13923
13924 ; return 0; }
13925 EOF
13926 if { (eval echo configure:13927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13927   rm -rf conftest*
13928   eval "ac_cv_func_$ac_func=yes"
13929 else
13930   echo "configure: failed program was:" >&5
13931   cat conftest.$ac_ext >&5
13932   rm -rf conftest*
13933   eval "ac_cv_func_$ac_func=no"
13934 fi
13935 rm -f conftest*
13936 fi
13937
13938 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13939   echo "$ac_t""yes" 1>&6
13940     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13941   cat >> confdefs.h <<EOF
13942 #define $ac_tr_func 1
13943 EOF
13944  
13945 else
13946   echo "$ac_t""no" 1>&6
13947 fi
13948 done
13949     
13950     fi
13951   fi
13952
13953   
13954   
13955   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
13956 echo "configure:13957: checking for frexpf declaration" >&5
13957   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
13958     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
13959   echo $ac_n "(cached) $ac_c" 1>&6
13960 else
13961   
13962       
13963       ac_ext=C
13964 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13965 ac_cpp='$CXXCPP $CPPFLAGS'
13966 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13967 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13968 cross_compiling=$ac_cv_prog_cxx_cross
13969
13970       cat > conftest.$ac_ext <<EOF
13971 #line 13972 "configure"
13972 #include "confdefs.h"
13973 #include <math.h>
13974 int main() {
13975  frexpf(0, 0);
13976 ; return 0; }
13977 EOF
13978 if { (eval echo configure:13979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13979   rm -rf conftest*
13980   glibcpp_cv_func_frexpf_use=yes
13981 else
13982   echo "configure: failed program was:" >&5
13983   cat conftest.$ac_ext >&5
13984   rm -rf conftest*
13985   glibcpp_cv_func_frexpf_use=no
13986 fi
13987 rm -f conftest*
13988       ac_ext=c
13989 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13990 ac_cpp='$CPP $CPPFLAGS'
13991 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13992 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13993 cross_compiling=$ac_cv_prog_cc_cross
13994
13995     
13996 fi
13997
13998   fi
13999   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
14000
14001   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
14002     for ac_func in frexpf
14003 do
14004 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14005 echo "configure:14006: checking for $ac_func" >&5
14006 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14007   echo $ac_n "(cached) $ac_c" 1>&6
14008 else
14009   cat > conftest.$ac_ext <<EOF
14010 #line 14011 "configure"
14011 #include "confdefs.h"
14012 /* System header to define __stub macros and hopefully few prototypes,
14013     which can conflict with char $ac_func(); below.  */
14014 #include <assert.h>
14015 /* Override any gcc2 internal prototype to avoid an error.  */
14016 /* We use char because int might match the return type of a gcc2
14017     builtin and then its argument prototype would still apply.  */
14018 char $ac_func();
14019
14020 int main() {
14021
14022 /* The GNU C library defines this for functions which it implements
14023     to always fail with ENOSYS.  Some functions are actually named
14024     something starting with __ and the normal name is an alias.  */
14025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14026 choke me
14027 #else
14028 $ac_func();
14029 #endif
14030
14031 ; return 0; }
14032 EOF
14033 if { (eval echo configure:14034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14034   rm -rf conftest*
14035   eval "ac_cv_func_$ac_func=yes"
14036 else
14037   echo "configure: failed program was:" >&5
14038   cat conftest.$ac_ext >&5
14039   rm -rf conftest*
14040   eval "ac_cv_func_$ac_func=no"
14041 fi
14042 rm -f conftest*
14043 fi
14044
14045 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14046   echo "$ac_t""yes" 1>&6
14047     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14048   cat >> confdefs.h <<EOF
14049 #define $ac_tr_func 1
14050 EOF
14051  
14052 else
14053   echo "$ac_t""no" 1>&6
14054 fi
14055 done
14056     
14057   else
14058     
14059   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14060 echo "configure:14061: checking for _frexpf declaration" >&5
14061   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
14062     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
14063   echo $ac_n "(cached) $ac_c" 1>&6
14064 else
14065   
14066       
14067       ac_ext=C
14068 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14069 ac_cpp='$CXXCPP $CPPFLAGS'
14070 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14071 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14072 cross_compiling=$ac_cv_prog_cxx_cross
14073
14074       cat > conftest.$ac_ext <<EOF
14075 #line 14076 "configure"
14076 #include "confdefs.h"
14077 #include <math.h>
14078 int main() {
14079  _frexpf(0, 0);
14080 ; return 0; }
14081 EOF
14082 if { (eval echo configure:14083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14083   rm -rf conftest*
14084   glibcpp_cv_func__frexpf_use=yes
14085 else
14086   echo "configure: failed program was:" >&5
14087   cat conftest.$ac_ext >&5
14088   rm -rf conftest*
14089   glibcpp_cv_func__frexpf_use=no
14090 fi
14091 rm -f conftest*
14092       ac_ext=c
14093 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14094 ac_cpp='$CPP $CPPFLAGS'
14095 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14096 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14097 cross_compiling=$ac_cv_prog_cc_cross
14098
14099     
14100 fi
14101
14102   fi
14103   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
14104
14105     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
14106       for ac_func in _frexpf
14107 do
14108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14109 echo "configure:14110: checking for $ac_func" >&5
14110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14111   echo $ac_n "(cached) $ac_c" 1>&6
14112 else
14113   cat > conftest.$ac_ext <<EOF
14114 #line 14115 "configure"
14115 #include "confdefs.h"
14116 /* System header to define __stub macros and hopefully few prototypes,
14117     which can conflict with char $ac_func(); below.  */
14118 #include <assert.h>
14119 /* Override any gcc2 internal prototype to avoid an error.  */
14120 /* We use char because int might match the return type of a gcc2
14121     builtin and then its argument prototype would still apply.  */
14122 char $ac_func();
14123
14124 int main() {
14125
14126 /* The GNU C library defines this for functions which it implements
14127     to always fail with ENOSYS.  Some functions are actually named
14128     something starting with __ and the normal name is an alias.  */
14129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14130 choke me
14131 #else
14132 $ac_func();
14133 #endif
14134
14135 ; return 0; }
14136 EOF
14137 if { (eval echo configure:14138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14138   rm -rf conftest*
14139   eval "ac_cv_func_$ac_func=yes"
14140 else
14141   echo "configure: failed program was:" >&5
14142   cat conftest.$ac_ext >&5
14143   rm -rf conftest*
14144   eval "ac_cv_func_$ac_func=no"
14145 fi
14146 rm -f conftest*
14147 fi
14148
14149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14150   echo "$ac_t""yes" 1>&6
14151     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14152   cat >> confdefs.h <<EOF
14153 #define $ac_tr_func 1
14154 EOF
14155  
14156 else
14157   echo "$ac_t""no" 1>&6
14158 fi
14159 done
14160     
14161     fi
14162   fi
14163
14164   
14165   
14166   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14167 echo "configure:14168: checking for hypotf declaration" >&5
14168   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
14169     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
14170   echo $ac_n "(cached) $ac_c" 1>&6
14171 else
14172   
14173       
14174       ac_ext=C
14175 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14176 ac_cpp='$CXXCPP $CPPFLAGS'
14177 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14178 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14179 cross_compiling=$ac_cv_prog_cxx_cross
14180
14181       cat > conftest.$ac_ext <<EOF
14182 #line 14183 "configure"
14183 #include "confdefs.h"
14184 #include <math.h>
14185 int main() {
14186  hypotf(0, 0);
14187 ; return 0; }
14188 EOF
14189 if { (eval echo configure:14190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14190   rm -rf conftest*
14191   glibcpp_cv_func_hypotf_use=yes
14192 else
14193   echo "configure: failed program was:" >&5
14194   cat conftest.$ac_ext >&5
14195   rm -rf conftest*
14196   glibcpp_cv_func_hypotf_use=no
14197 fi
14198 rm -f conftest*
14199       ac_ext=c
14200 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14201 ac_cpp='$CPP $CPPFLAGS'
14202 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14203 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14204 cross_compiling=$ac_cv_prog_cc_cross
14205
14206     
14207 fi
14208
14209   fi
14210   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
14211
14212   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
14213     for ac_func in hypotf
14214 do
14215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14216 echo "configure:14217: checking for $ac_func" >&5
14217 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14218   echo $ac_n "(cached) $ac_c" 1>&6
14219 else
14220   cat > conftest.$ac_ext <<EOF
14221 #line 14222 "configure"
14222 #include "confdefs.h"
14223 /* System header to define __stub macros and hopefully few prototypes,
14224     which can conflict with char $ac_func(); below.  */
14225 #include <assert.h>
14226 /* Override any gcc2 internal prototype to avoid an error.  */
14227 /* We use char because int might match the return type of a gcc2
14228     builtin and then its argument prototype would still apply.  */
14229 char $ac_func();
14230
14231 int main() {
14232
14233 /* The GNU C library defines this for functions which it implements
14234     to always fail with ENOSYS.  Some functions are actually named
14235     something starting with __ and the normal name is an alias.  */
14236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14237 choke me
14238 #else
14239 $ac_func();
14240 #endif
14241
14242 ; return 0; }
14243 EOF
14244 if { (eval echo configure:14245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14245   rm -rf conftest*
14246   eval "ac_cv_func_$ac_func=yes"
14247 else
14248   echo "configure: failed program was:" >&5
14249   cat conftest.$ac_ext >&5
14250   rm -rf conftest*
14251   eval "ac_cv_func_$ac_func=no"
14252 fi
14253 rm -f conftest*
14254 fi
14255
14256 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14257   echo "$ac_t""yes" 1>&6
14258     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14259   cat >> confdefs.h <<EOF
14260 #define $ac_tr_func 1
14261 EOF
14262  
14263 else
14264   echo "$ac_t""no" 1>&6
14265 fi
14266 done
14267     
14268   else
14269     
14270   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14271 echo "configure:14272: checking for _hypotf declaration" >&5
14272   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
14273     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
14274   echo $ac_n "(cached) $ac_c" 1>&6
14275 else
14276   
14277       
14278       ac_ext=C
14279 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14280 ac_cpp='$CXXCPP $CPPFLAGS'
14281 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14282 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14283 cross_compiling=$ac_cv_prog_cxx_cross
14284
14285       cat > conftest.$ac_ext <<EOF
14286 #line 14287 "configure"
14287 #include "confdefs.h"
14288 #include <math.h>
14289 int main() {
14290  _hypotf(0, 0);
14291 ; return 0; }
14292 EOF
14293 if { (eval echo configure:14294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14294   rm -rf conftest*
14295   glibcpp_cv_func__hypotf_use=yes
14296 else
14297   echo "configure: failed program was:" >&5
14298   cat conftest.$ac_ext >&5
14299   rm -rf conftest*
14300   glibcpp_cv_func__hypotf_use=no
14301 fi
14302 rm -f conftest*
14303       ac_ext=c
14304 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14305 ac_cpp='$CPP $CPPFLAGS'
14306 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14307 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14308 cross_compiling=$ac_cv_prog_cc_cross
14309
14310     
14311 fi
14312
14313   fi
14314   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
14315
14316     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
14317       for ac_func in _hypotf
14318 do
14319 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14320 echo "configure:14321: checking for $ac_func" >&5
14321 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14322   echo $ac_n "(cached) $ac_c" 1>&6
14323 else
14324   cat > conftest.$ac_ext <<EOF
14325 #line 14326 "configure"
14326 #include "confdefs.h"
14327 /* System header to define __stub macros and hopefully few prototypes,
14328     which can conflict with char $ac_func(); below.  */
14329 #include <assert.h>
14330 /* Override any gcc2 internal prototype to avoid an error.  */
14331 /* We use char because int might match the return type of a gcc2
14332     builtin and then its argument prototype would still apply.  */
14333 char $ac_func();
14334
14335 int main() {
14336
14337 /* The GNU C library defines this for functions which it implements
14338     to always fail with ENOSYS.  Some functions are actually named
14339     something starting with __ and the normal name is an alias.  */
14340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14341 choke me
14342 #else
14343 $ac_func();
14344 #endif
14345
14346 ; return 0; }
14347 EOF
14348 if { (eval echo configure:14349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14349   rm -rf conftest*
14350   eval "ac_cv_func_$ac_func=yes"
14351 else
14352   echo "configure: failed program was:" >&5
14353   cat conftest.$ac_ext >&5
14354   rm -rf conftest*
14355   eval "ac_cv_func_$ac_func=no"
14356 fi
14357 rm -f conftest*
14358 fi
14359
14360 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14361   echo "$ac_t""yes" 1>&6
14362     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14363   cat >> confdefs.h <<EOF
14364 #define $ac_tr_func 1
14365 EOF
14366  
14367 else
14368   echo "$ac_t""no" 1>&6
14369 fi
14370 done
14371     
14372     fi
14373   fi
14374
14375   
14376   
14377   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14378 echo "configure:14379: checking for ldexpf declaration" >&5
14379   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
14380     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
14381   echo $ac_n "(cached) $ac_c" 1>&6
14382 else
14383   
14384       
14385       ac_ext=C
14386 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14387 ac_cpp='$CXXCPP $CPPFLAGS'
14388 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14389 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14390 cross_compiling=$ac_cv_prog_cxx_cross
14391
14392       cat > conftest.$ac_ext <<EOF
14393 #line 14394 "configure"
14394 #include "confdefs.h"
14395 #include <math.h>
14396 int main() {
14397  ldexpf(0, 0);
14398 ; return 0; }
14399 EOF
14400 if { (eval echo configure:14401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14401   rm -rf conftest*
14402   glibcpp_cv_func_ldexpf_use=yes
14403 else
14404   echo "configure: failed program was:" >&5
14405   cat conftest.$ac_ext >&5
14406   rm -rf conftest*
14407   glibcpp_cv_func_ldexpf_use=no
14408 fi
14409 rm -f conftest*
14410       ac_ext=c
14411 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14412 ac_cpp='$CPP $CPPFLAGS'
14413 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14414 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14415 cross_compiling=$ac_cv_prog_cc_cross
14416
14417     
14418 fi
14419
14420   fi
14421   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
14422
14423   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
14424     for ac_func in ldexpf
14425 do
14426 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14427 echo "configure:14428: checking for $ac_func" >&5
14428 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14429   echo $ac_n "(cached) $ac_c" 1>&6
14430 else
14431   cat > conftest.$ac_ext <<EOF
14432 #line 14433 "configure"
14433 #include "confdefs.h"
14434 /* System header to define __stub macros and hopefully few prototypes,
14435     which can conflict with char $ac_func(); below.  */
14436 #include <assert.h>
14437 /* Override any gcc2 internal prototype to avoid an error.  */
14438 /* We use char because int might match the return type of a gcc2
14439     builtin and then its argument prototype would still apply.  */
14440 char $ac_func();
14441
14442 int main() {
14443
14444 /* The GNU C library defines this for functions which it implements
14445     to always fail with ENOSYS.  Some functions are actually named
14446     something starting with __ and the normal name is an alias.  */
14447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14448 choke me
14449 #else
14450 $ac_func();
14451 #endif
14452
14453 ; return 0; }
14454 EOF
14455 if { (eval echo configure:14456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14456   rm -rf conftest*
14457   eval "ac_cv_func_$ac_func=yes"
14458 else
14459   echo "configure: failed program was:" >&5
14460   cat conftest.$ac_ext >&5
14461   rm -rf conftest*
14462   eval "ac_cv_func_$ac_func=no"
14463 fi
14464 rm -f conftest*
14465 fi
14466
14467 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14468   echo "$ac_t""yes" 1>&6
14469     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14470   cat >> confdefs.h <<EOF
14471 #define $ac_tr_func 1
14472 EOF
14473  
14474 else
14475   echo "$ac_t""no" 1>&6
14476 fi
14477 done
14478     
14479   else
14480     
14481   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14482 echo "configure:14483: checking for _ldexpf declaration" >&5
14483   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
14484     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
14485   echo $ac_n "(cached) $ac_c" 1>&6
14486 else
14487   
14488       
14489       ac_ext=C
14490 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14491 ac_cpp='$CXXCPP $CPPFLAGS'
14492 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14493 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14494 cross_compiling=$ac_cv_prog_cxx_cross
14495
14496       cat > conftest.$ac_ext <<EOF
14497 #line 14498 "configure"
14498 #include "confdefs.h"
14499 #include <math.h>
14500 int main() {
14501  _ldexpf(0, 0);
14502 ; return 0; }
14503 EOF
14504 if { (eval echo configure:14505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14505   rm -rf conftest*
14506   glibcpp_cv_func__ldexpf_use=yes
14507 else
14508   echo "configure: failed program was:" >&5
14509   cat conftest.$ac_ext >&5
14510   rm -rf conftest*
14511   glibcpp_cv_func__ldexpf_use=no
14512 fi
14513 rm -f conftest*
14514       ac_ext=c
14515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14516 ac_cpp='$CPP $CPPFLAGS'
14517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14518 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14519 cross_compiling=$ac_cv_prog_cc_cross
14520
14521     
14522 fi
14523
14524   fi
14525   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
14526
14527     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
14528       for ac_func in _ldexpf
14529 do
14530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14531 echo "configure:14532: checking for $ac_func" >&5
14532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14533   echo $ac_n "(cached) $ac_c" 1>&6
14534 else
14535   cat > conftest.$ac_ext <<EOF
14536 #line 14537 "configure"
14537 #include "confdefs.h"
14538 /* System header to define __stub macros and hopefully few prototypes,
14539     which can conflict with char $ac_func(); below.  */
14540 #include <assert.h>
14541 /* Override any gcc2 internal prototype to avoid an error.  */
14542 /* We use char because int might match the return type of a gcc2
14543     builtin and then its argument prototype would still apply.  */
14544 char $ac_func();
14545
14546 int main() {
14547
14548 /* The GNU C library defines this for functions which it implements
14549     to always fail with ENOSYS.  Some functions are actually named
14550     something starting with __ and the normal name is an alias.  */
14551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14552 choke me
14553 #else
14554 $ac_func();
14555 #endif
14556
14557 ; return 0; }
14558 EOF
14559 if { (eval echo configure:14560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14560   rm -rf conftest*
14561   eval "ac_cv_func_$ac_func=yes"
14562 else
14563   echo "configure: failed program was:" >&5
14564   cat conftest.$ac_ext >&5
14565   rm -rf conftest*
14566   eval "ac_cv_func_$ac_func=no"
14567 fi
14568 rm -f conftest*
14569 fi
14570
14571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14572   echo "$ac_t""yes" 1>&6
14573     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14574   cat >> confdefs.h <<EOF
14575 #define $ac_tr_func 1
14576 EOF
14577  
14578 else
14579   echo "$ac_t""no" 1>&6
14580 fi
14581 done
14582     
14583     fi
14584   fi
14585
14586   
14587   
14588   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14589 echo "configure:14590: checking for logf declaration" >&5
14590   if test x${glibcpp_cv_func_logf_use+set} != xset; then
14591     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
14592   echo $ac_n "(cached) $ac_c" 1>&6
14593 else
14594   
14595       
14596       ac_ext=C
14597 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14598 ac_cpp='$CXXCPP $CPPFLAGS'
14599 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14600 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14601 cross_compiling=$ac_cv_prog_cxx_cross
14602
14603       cat > conftest.$ac_ext <<EOF
14604 #line 14605 "configure"
14605 #include "confdefs.h"
14606 #include <math.h>
14607                       #ifdef HAVE_IEEEFP_H
14608                       #include <ieeefp.h>
14609                       #endif
14610                      
14611 int main() {
14612  logf(0);
14613 ; return 0; }
14614 EOF
14615 if { (eval echo configure:14616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14616   rm -rf conftest*
14617   glibcpp_cv_func_logf_use=yes
14618 else
14619   echo "configure: failed program was:" >&5
14620   cat conftest.$ac_ext >&5
14621   rm -rf conftest*
14622   glibcpp_cv_func_logf_use=no
14623 fi
14624 rm -f conftest*
14625       ac_ext=c
14626 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14627 ac_cpp='$CPP $CPPFLAGS'
14628 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14629 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14630 cross_compiling=$ac_cv_prog_cc_cross
14631
14632     
14633 fi
14634
14635   fi
14636   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
14637
14638   if test x$glibcpp_cv_func_logf_use = x"yes"; then
14639     for ac_func in logf
14640 do
14641 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14642 echo "configure:14643: checking for $ac_func" >&5
14643 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14644   echo $ac_n "(cached) $ac_c" 1>&6
14645 else
14646   cat > conftest.$ac_ext <<EOF
14647 #line 14648 "configure"
14648 #include "confdefs.h"
14649 /* System header to define __stub macros and hopefully few prototypes,
14650     which can conflict with char $ac_func(); below.  */
14651 #include <assert.h>
14652 /* Override any gcc2 internal prototype to avoid an error.  */
14653 /* We use char because int might match the return type of a gcc2
14654     builtin and then its argument prototype would still apply.  */
14655 char $ac_func();
14656
14657 int main() {
14658
14659 /* The GNU C library defines this for functions which it implements
14660     to always fail with ENOSYS.  Some functions are actually named
14661     something starting with __ and the normal name is an alias.  */
14662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14663 choke me
14664 #else
14665 $ac_func();
14666 #endif
14667
14668 ; return 0; }
14669 EOF
14670 if { (eval echo configure:14671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14671   rm -rf conftest*
14672   eval "ac_cv_func_$ac_func=yes"
14673 else
14674   echo "configure: failed program was:" >&5
14675   cat conftest.$ac_ext >&5
14676   rm -rf conftest*
14677   eval "ac_cv_func_$ac_func=no"
14678 fi
14679 rm -f conftest*
14680 fi
14681
14682 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14683   echo "$ac_t""yes" 1>&6
14684     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14685   cat >> confdefs.h <<EOF
14686 #define $ac_tr_func 1
14687 EOF
14688  
14689 else
14690   echo "$ac_t""no" 1>&6
14691 fi
14692 done
14693     
14694   else
14695     
14696   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14697 echo "configure:14698: checking for _logf declaration" >&5
14698   if test x${glibcpp_cv_func__logf_use+set} != xset; then
14699     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
14700   echo $ac_n "(cached) $ac_c" 1>&6
14701 else
14702   
14703       
14704       ac_ext=C
14705 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14706 ac_cpp='$CXXCPP $CPPFLAGS'
14707 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14708 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14709 cross_compiling=$ac_cv_prog_cxx_cross
14710
14711       cat > conftest.$ac_ext <<EOF
14712 #line 14713 "configure"
14713 #include "confdefs.h"
14714 #include <math.h>
14715                       #ifdef HAVE_IEEEFP_H
14716                       #include <ieeefp.h>
14717                       #endif
14718                      
14719 int main() {
14720  _logf(0);
14721 ; return 0; }
14722 EOF
14723 if { (eval echo configure:14724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14724   rm -rf conftest*
14725   glibcpp_cv_func__logf_use=yes
14726 else
14727   echo "configure: failed program was:" >&5
14728   cat conftest.$ac_ext >&5
14729   rm -rf conftest*
14730   glibcpp_cv_func__logf_use=no
14731 fi
14732 rm -f conftest*
14733       ac_ext=c
14734 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14735 ac_cpp='$CPP $CPPFLAGS'
14736 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14737 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14738 cross_compiling=$ac_cv_prog_cc_cross
14739
14740     
14741 fi
14742
14743   fi
14744   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
14745
14746     if test x$glibcpp_cv_func__logf_use = x"yes"; then
14747       for ac_func in _logf
14748 do
14749 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14750 echo "configure:14751: checking for $ac_func" >&5
14751 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14752   echo $ac_n "(cached) $ac_c" 1>&6
14753 else
14754   cat > conftest.$ac_ext <<EOF
14755 #line 14756 "configure"
14756 #include "confdefs.h"
14757 /* System header to define __stub macros and hopefully few prototypes,
14758     which can conflict with char $ac_func(); below.  */
14759 #include <assert.h>
14760 /* Override any gcc2 internal prototype to avoid an error.  */
14761 /* We use char because int might match the return type of a gcc2
14762     builtin and then its argument prototype would still apply.  */
14763 char $ac_func();
14764
14765 int main() {
14766
14767 /* The GNU C library defines this for functions which it implements
14768     to always fail with ENOSYS.  Some functions are actually named
14769     something starting with __ and the normal name is an alias.  */
14770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14771 choke me
14772 #else
14773 $ac_func();
14774 #endif
14775
14776 ; return 0; }
14777 EOF
14778 if { (eval echo configure:14779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14779   rm -rf conftest*
14780   eval "ac_cv_func_$ac_func=yes"
14781 else
14782   echo "configure: failed program was:" >&5
14783   cat conftest.$ac_ext >&5
14784   rm -rf conftest*
14785   eval "ac_cv_func_$ac_func=no"
14786 fi
14787 rm -f conftest*
14788 fi
14789
14790 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14791   echo "$ac_t""yes" 1>&6
14792     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14793   cat >> confdefs.h <<EOF
14794 #define $ac_tr_func 1
14795 EOF
14796  
14797 else
14798   echo "$ac_t""no" 1>&6
14799 fi
14800 done
14801     
14802     fi
14803   fi
14804
14805   
14806   
14807   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
14808 echo "configure:14809: checking for log10f declaration" >&5
14809   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
14810     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
14811   echo $ac_n "(cached) $ac_c" 1>&6
14812 else
14813   
14814       
14815       ac_ext=C
14816 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14817 ac_cpp='$CXXCPP $CPPFLAGS'
14818 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14819 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14820 cross_compiling=$ac_cv_prog_cxx_cross
14821
14822       cat > conftest.$ac_ext <<EOF
14823 #line 14824 "configure"
14824 #include "confdefs.h"
14825 #include <math.h>
14826                       #ifdef HAVE_IEEEFP_H
14827                       #include <ieeefp.h>
14828                       #endif
14829                      
14830 int main() {
14831  log10f(0);
14832 ; return 0; }
14833 EOF
14834 if { (eval echo configure:14835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14835   rm -rf conftest*
14836   glibcpp_cv_func_log10f_use=yes
14837 else
14838   echo "configure: failed program was:" >&5
14839   cat conftest.$ac_ext >&5
14840   rm -rf conftest*
14841   glibcpp_cv_func_log10f_use=no
14842 fi
14843 rm -f conftest*
14844       ac_ext=c
14845 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14846 ac_cpp='$CPP $CPPFLAGS'
14847 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14848 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14849 cross_compiling=$ac_cv_prog_cc_cross
14850
14851     
14852 fi
14853
14854   fi
14855   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
14856
14857   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
14858     for ac_func in log10f
14859 do
14860 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14861 echo "configure:14862: checking for $ac_func" >&5
14862 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14863   echo $ac_n "(cached) $ac_c" 1>&6
14864 else
14865   cat > conftest.$ac_ext <<EOF
14866 #line 14867 "configure"
14867 #include "confdefs.h"
14868 /* System header to define __stub macros and hopefully few prototypes,
14869     which can conflict with char $ac_func(); below.  */
14870 #include <assert.h>
14871 /* Override any gcc2 internal prototype to avoid an error.  */
14872 /* We use char because int might match the return type of a gcc2
14873     builtin and then its argument prototype would still apply.  */
14874 char $ac_func();
14875
14876 int main() {
14877
14878 /* The GNU C library defines this for functions which it implements
14879     to always fail with ENOSYS.  Some functions are actually named
14880     something starting with __ and the normal name is an alias.  */
14881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14882 choke me
14883 #else
14884 $ac_func();
14885 #endif
14886
14887 ; return 0; }
14888 EOF
14889 if { (eval echo configure:14890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14890   rm -rf conftest*
14891   eval "ac_cv_func_$ac_func=yes"
14892 else
14893   echo "configure: failed program was:" >&5
14894   cat conftest.$ac_ext >&5
14895   rm -rf conftest*
14896   eval "ac_cv_func_$ac_func=no"
14897 fi
14898 rm -f conftest*
14899 fi
14900
14901 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14902   echo "$ac_t""yes" 1>&6
14903     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14904   cat >> confdefs.h <<EOF
14905 #define $ac_tr_func 1
14906 EOF
14907  
14908 else
14909   echo "$ac_t""no" 1>&6
14910 fi
14911 done
14912     
14913   else
14914     
14915   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
14916 echo "configure:14917: checking for _log10f declaration" >&5
14917   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
14918     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
14919   echo $ac_n "(cached) $ac_c" 1>&6
14920 else
14921   
14922       
14923       ac_ext=C
14924 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14925 ac_cpp='$CXXCPP $CPPFLAGS'
14926 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14927 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14928 cross_compiling=$ac_cv_prog_cxx_cross
14929
14930       cat > conftest.$ac_ext <<EOF
14931 #line 14932 "configure"
14932 #include "confdefs.h"
14933 #include <math.h>
14934                       #ifdef HAVE_IEEEFP_H
14935                       #include <ieeefp.h>
14936                       #endif
14937                      
14938 int main() {
14939  _log10f(0);
14940 ; return 0; }
14941 EOF
14942 if { (eval echo configure:14943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14943   rm -rf conftest*
14944   glibcpp_cv_func__log10f_use=yes
14945 else
14946   echo "configure: failed program was:" >&5
14947   cat conftest.$ac_ext >&5
14948   rm -rf conftest*
14949   glibcpp_cv_func__log10f_use=no
14950 fi
14951 rm -f conftest*
14952       ac_ext=c
14953 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14954 ac_cpp='$CPP $CPPFLAGS'
14955 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14956 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14957 cross_compiling=$ac_cv_prog_cc_cross
14958
14959     
14960 fi
14961
14962   fi
14963   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
14964
14965     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
14966       for ac_func in _log10f
14967 do
14968 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14969 echo "configure:14970: checking for $ac_func" >&5
14970 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14971   echo $ac_n "(cached) $ac_c" 1>&6
14972 else
14973   cat > conftest.$ac_ext <<EOF
14974 #line 14975 "configure"
14975 #include "confdefs.h"
14976 /* System header to define __stub macros and hopefully few prototypes,
14977     which can conflict with char $ac_func(); below.  */
14978 #include <assert.h>
14979 /* Override any gcc2 internal prototype to avoid an error.  */
14980 /* We use char because int might match the return type of a gcc2
14981     builtin and then its argument prototype would still apply.  */
14982 char $ac_func();
14983
14984 int main() {
14985
14986 /* The GNU C library defines this for functions which it implements
14987     to always fail with ENOSYS.  Some functions are actually named
14988     something starting with __ and the normal name is an alias.  */
14989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14990 choke me
14991 #else
14992 $ac_func();
14993 #endif
14994
14995 ; return 0; }
14996 EOF
14997 if { (eval echo configure:14998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14998   rm -rf conftest*
14999   eval "ac_cv_func_$ac_func=yes"
15000 else
15001   echo "configure: failed program was:" >&5
15002   cat conftest.$ac_ext >&5
15003   rm -rf conftest*
15004   eval "ac_cv_func_$ac_func=no"
15005 fi
15006 rm -f conftest*
15007 fi
15008
15009 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15010   echo "$ac_t""yes" 1>&6
15011     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15012   cat >> confdefs.h <<EOF
15013 #define $ac_tr_func 1
15014 EOF
15015  
15016 else
15017   echo "$ac_t""no" 1>&6
15018 fi
15019 done
15020     
15021     fi
15022   fi
15023
15024   
15025   
15026   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
15027 echo "configure:15028: checking for modff declaration" >&5
15028   if test x${glibcpp_cv_func_modff_use+set} != xset; then
15029     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
15030   echo $ac_n "(cached) $ac_c" 1>&6
15031 else
15032   
15033       
15034       ac_ext=C
15035 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15036 ac_cpp='$CXXCPP $CPPFLAGS'
15037 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15038 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15039 cross_compiling=$ac_cv_prog_cxx_cross
15040
15041       cat > conftest.$ac_ext <<EOF
15042 #line 15043 "configure"
15043 #include "confdefs.h"
15044 #include <math.h>
15045 int main() {
15046  modff(0, 0);
15047 ; return 0; }
15048 EOF
15049 if { (eval echo configure:15050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15050   rm -rf conftest*
15051   glibcpp_cv_func_modff_use=yes
15052 else
15053   echo "configure: failed program was:" >&5
15054   cat conftest.$ac_ext >&5
15055   rm -rf conftest*
15056   glibcpp_cv_func_modff_use=no
15057 fi
15058 rm -f conftest*
15059       ac_ext=c
15060 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15061 ac_cpp='$CPP $CPPFLAGS'
15062 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15063 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15064 cross_compiling=$ac_cv_prog_cc_cross
15065
15066     
15067 fi
15068
15069   fi
15070   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
15071
15072   if test x$glibcpp_cv_func_modff_use = x"yes"; then
15073     for ac_func in modff
15074 do
15075 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15076 echo "configure:15077: checking for $ac_func" >&5
15077 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15078   echo $ac_n "(cached) $ac_c" 1>&6
15079 else
15080   cat > conftest.$ac_ext <<EOF
15081 #line 15082 "configure"
15082 #include "confdefs.h"
15083 /* System header to define __stub macros and hopefully few prototypes,
15084     which can conflict with char $ac_func(); below.  */
15085 #include <assert.h>
15086 /* Override any gcc2 internal prototype to avoid an error.  */
15087 /* We use char because int might match the return type of a gcc2
15088     builtin and then its argument prototype would still apply.  */
15089 char $ac_func();
15090
15091 int main() {
15092
15093 /* The GNU C library defines this for functions which it implements
15094     to always fail with ENOSYS.  Some functions are actually named
15095     something starting with __ and the normal name is an alias.  */
15096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15097 choke me
15098 #else
15099 $ac_func();
15100 #endif
15101
15102 ; return 0; }
15103 EOF
15104 if { (eval echo configure:15105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15105   rm -rf conftest*
15106   eval "ac_cv_func_$ac_func=yes"
15107 else
15108   echo "configure: failed program was:" >&5
15109   cat conftest.$ac_ext >&5
15110   rm -rf conftest*
15111   eval "ac_cv_func_$ac_func=no"
15112 fi
15113 rm -f conftest*
15114 fi
15115
15116 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15117   echo "$ac_t""yes" 1>&6
15118     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15119   cat >> confdefs.h <<EOF
15120 #define $ac_tr_func 1
15121 EOF
15122  
15123 else
15124   echo "$ac_t""no" 1>&6
15125 fi
15126 done
15127     
15128   else
15129     
15130   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15131 echo "configure:15132: checking for _modff declaration" >&5
15132   if test x${glibcpp_cv_func__modff_use+set} != xset; then
15133     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
15134   echo $ac_n "(cached) $ac_c" 1>&6
15135 else
15136   
15137       
15138       ac_ext=C
15139 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15140 ac_cpp='$CXXCPP $CPPFLAGS'
15141 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15142 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15143 cross_compiling=$ac_cv_prog_cxx_cross
15144
15145       cat > conftest.$ac_ext <<EOF
15146 #line 15147 "configure"
15147 #include "confdefs.h"
15148 #include <math.h>
15149 int main() {
15150  _modff(0, 0);
15151 ; return 0; }
15152 EOF
15153 if { (eval echo configure:15154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15154   rm -rf conftest*
15155   glibcpp_cv_func__modff_use=yes
15156 else
15157   echo "configure: failed program was:" >&5
15158   cat conftest.$ac_ext >&5
15159   rm -rf conftest*
15160   glibcpp_cv_func__modff_use=no
15161 fi
15162 rm -f conftest*
15163       ac_ext=c
15164 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15165 ac_cpp='$CPP $CPPFLAGS'
15166 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15167 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15168 cross_compiling=$ac_cv_prog_cc_cross
15169
15170     
15171 fi
15172
15173   fi
15174   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
15175
15176     if test x$glibcpp_cv_func__modff_use = x"yes"; then
15177       for ac_func in _modff
15178 do
15179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15180 echo "configure:15181: checking for $ac_func" >&5
15181 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15182   echo $ac_n "(cached) $ac_c" 1>&6
15183 else
15184   cat > conftest.$ac_ext <<EOF
15185 #line 15186 "configure"
15186 #include "confdefs.h"
15187 /* System header to define __stub macros and hopefully few prototypes,
15188     which can conflict with char $ac_func(); below.  */
15189 #include <assert.h>
15190 /* Override any gcc2 internal prototype to avoid an error.  */
15191 /* We use char because int might match the return type of a gcc2
15192     builtin and then its argument prototype would still apply.  */
15193 char $ac_func();
15194
15195 int main() {
15196
15197 /* The GNU C library defines this for functions which it implements
15198     to always fail with ENOSYS.  Some functions are actually named
15199     something starting with __ and the normal name is an alias.  */
15200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15201 choke me
15202 #else
15203 $ac_func();
15204 #endif
15205
15206 ; return 0; }
15207 EOF
15208 if { (eval echo configure:15209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15209   rm -rf conftest*
15210   eval "ac_cv_func_$ac_func=yes"
15211 else
15212   echo "configure: failed program was:" >&5
15213   cat conftest.$ac_ext >&5
15214   rm -rf conftest*
15215   eval "ac_cv_func_$ac_func=no"
15216 fi
15217 rm -f conftest*
15218 fi
15219
15220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15221   echo "$ac_t""yes" 1>&6
15222     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15223   cat >> confdefs.h <<EOF
15224 #define $ac_tr_func 1
15225 EOF
15226  
15227 else
15228   echo "$ac_t""no" 1>&6
15229 fi
15230 done
15231     
15232     fi
15233   fi
15234
15235   
15236   
15237   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15238 echo "configure:15239: checking for powf declaration" >&5
15239   if test x${glibcpp_cv_func_powf_use+set} != xset; then
15240     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
15241   echo $ac_n "(cached) $ac_c" 1>&6
15242 else
15243   
15244       
15245       ac_ext=C
15246 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15247 ac_cpp='$CXXCPP $CPPFLAGS'
15248 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15249 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15250 cross_compiling=$ac_cv_prog_cxx_cross
15251
15252       cat > conftest.$ac_ext <<EOF
15253 #line 15254 "configure"
15254 #include "confdefs.h"
15255 #include <math.h>
15256 int main() {
15257  powf(0, 0);
15258 ; return 0; }
15259 EOF
15260 if { (eval echo configure:15261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15261   rm -rf conftest*
15262   glibcpp_cv_func_powf_use=yes
15263 else
15264   echo "configure: failed program was:" >&5
15265   cat conftest.$ac_ext >&5
15266   rm -rf conftest*
15267   glibcpp_cv_func_powf_use=no
15268 fi
15269 rm -f conftest*
15270       ac_ext=c
15271 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15272 ac_cpp='$CPP $CPPFLAGS'
15273 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15274 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15275 cross_compiling=$ac_cv_prog_cc_cross
15276
15277     
15278 fi
15279
15280   fi
15281   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
15282
15283   if test x$glibcpp_cv_func_powf_use = x"yes"; then
15284     for ac_func in powf
15285 do
15286 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15287 echo "configure:15288: checking for $ac_func" >&5
15288 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15289   echo $ac_n "(cached) $ac_c" 1>&6
15290 else
15291   cat > conftest.$ac_ext <<EOF
15292 #line 15293 "configure"
15293 #include "confdefs.h"
15294 /* System header to define __stub macros and hopefully few prototypes,
15295     which can conflict with char $ac_func(); below.  */
15296 #include <assert.h>
15297 /* Override any gcc2 internal prototype to avoid an error.  */
15298 /* We use char because int might match the return type of a gcc2
15299     builtin and then its argument prototype would still apply.  */
15300 char $ac_func();
15301
15302 int main() {
15303
15304 /* The GNU C library defines this for functions which it implements
15305     to always fail with ENOSYS.  Some functions are actually named
15306     something starting with __ and the normal name is an alias.  */
15307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15308 choke me
15309 #else
15310 $ac_func();
15311 #endif
15312
15313 ; return 0; }
15314 EOF
15315 if { (eval echo configure:15316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15316   rm -rf conftest*
15317   eval "ac_cv_func_$ac_func=yes"
15318 else
15319   echo "configure: failed program was:" >&5
15320   cat conftest.$ac_ext >&5
15321   rm -rf conftest*
15322   eval "ac_cv_func_$ac_func=no"
15323 fi
15324 rm -f conftest*
15325 fi
15326
15327 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15328   echo "$ac_t""yes" 1>&6
15329     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15330   cat >> confdefs.h <<EOF
15331 #define $ac_tr_func 1
15332 EOF
15333  
15334 else
15335   echo "$ac_t""no" 1>&6
15336 fi
15337 done
15338     
15339   else
15340     
15341   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15342 echo "configure:15343: checking for _powf declaration" >&5
15343   if test x${glibcpp_cv_func__powf_use+set} != xset; then
15344     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
15345   echo $ac_n "(cached) $ac_c" 1>&6
15346 else
15347   
15348       
15349       ac_ext=C
15350 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15351 ac_cpp='$CXXCPP $CPPFLAGS'
15352 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15353 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15354 cross_compiling=$ac_cv_prog_cxx_cross
15355
15356       cat > conftest.$ac_ext <<EOF
15357 #line 15358 "configure"
15358 #include "confdefs.h"
15359 #include <math.h>
15360 int main() {
15361  _powf(0, 0);
15362 ; return 0; }
15363 EOF
15364 if { (eval echo configure:15365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15365   rm -rf conftest*
15366   glibcpp_cv_func__powf_use=yes
15367 else
15368   echo "configure: failed program was:" >&5
15369   cat conftest.$ac_ext >&5
15370   rm -rf conftest*
15371   glibcpp_cv_func__powf_use=no
15372 fi
15373 rm -f conftest*
15374       ac_ext=c
15375 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15376 ac_cpp='$CPP $CPPFLAGS'
15377 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15378 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15379 cross_compiling=$ac_cv_prog_cc_cross
15380
15381     
15382 fi
15383
15384   fi
15385   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
15386
15387     if test x$glibcpp_cv_func__powf_use = x"yes"; then
15388       for ac_func in _powf
15389 do
15390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15391 echo "configure:15392: checking for $ac_func" >&5
15392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15393   echo $ac_n "(cached) $ac_c" 1>&6
15394 else
15395   cat > conftest.$ac_ext <<EOF
15396 #line 15397 "configure"
15397 #include "confdefs.h"
15398 /* System header to define __stub macros and hopefully few prototypes,
15399     which can conflict with char $ac_func(); below.  */
15400 #include <assert.h>
15401 /* Override any gcc2 internal prototype to avoid an error.  */
15402 /* We use char because int might match the return type of a gcc2
15403     builtin and then its argument prototype would still apply.  */
15404 char $ac_func();
15405
15406 int main() {
15407
15408 /* The GNU C library defines this for functions which it implements
15409     to always fail with ENOSYS.  Some functions are actually named
15410     something starting with __ and the normal name is an alias.  */
15411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15412 choke me
15413 #else
15414 $ac_func();
15415 #endif
15416
15417 ; return 0; }
15418 EOF
15419 if { (eval echo configure:15420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15420   rm -rf conftest*
15421   eval "ac_cv_func_$ac_func=yes"
15422 else
15423   echo "configure: failed program was:" >&5
15424   cat conftest.$ac_ext >&5
15425   rm -rf conftest*
15426   eval "ac_cv_func_$ac_func=no"
15427 fi
15428 rm -f conftest*
15429 fi
15430
15431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15432   echo "$ac_t""yes" 1>&6
15433     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15434   cat >> confdefs.h <<EOF
15435 #define $ac_tr_func 1
15436 EOF
15437  
15438 else
15439   echo "$ac_t""no" 1>&6
15440 fi
15441 done
15442     
15443     fi
15444   fi
15445
15446   
15447   
15448   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15449 echo "configure:15450: checking for sqrtf declaration" >&5
15450   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
15451     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
15452   echo $ac_n "(cached) $ac_c" 1>&6
15453 else
15454   
15455       
15456       ac_ext=C
15457 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15458 ac_cpp='$CXXCPP $CPPFLAGS'
15459 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15460 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15461 cross_compiling=$ac_cv_prog_cxx_cross
15462
15463       cat > conftest.$ac_ext <<EOF
15464 #line 15465 "configure"
15465 #include "confdefs.h"
15466 #include <math.h>
15467                       #ifdef HAVE_IEEEFP_H
15468                       #include <ieeefp.h>
15469                       #endif
15470                      
15471 int main() {
15472  sqrtf(0);
15473 ; return 0; }
15474 EOF
15475 if { (eval echo configure:15476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15476   rm -rf conftest*
15477   glibcpp_cv_func_sqrtf_use=yes
15478 else
15479   echo "configure: failed program was:" >&5
15480   cat conftest.$ac_ext >&5
15481   rm -rf conftest*
15482   glibcpp_cv_func_sqrtf_use=no
15483 fi
15484 rm -f conftest*
15485       ac_ext=c
15486 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15487 ac_cpp='$CPP $CPPFLAGS'
15488 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15489 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15490 cross_compiling=$ac_cv_prog_cc_cross
15491
15492     
15493 fi
15494
15495   fi
15496   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
15497
15498   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
15499     for ac_func in sqrtf
15500 do
15501 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15502 echo "configure:15503: checking for $ac_func" >&5
15503 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15504   echo $ac_n "(cached) $ac_c" 1>&6
15505 else
15506   cat > conftest.$ac_ext <<EOF
15507 #line 15508 "configure"
15508 #include "confdefs.h"
15509 /* System header to define __stub macros and hopefully few prototypes,
15510     which can conflict with char $ac_func(); below.  */
15511 #include <assert.h>
15512 /* Override any gcc2 internal prototype to avoid an error.  */
15513 /* We use char because int might match the return type of a gcc2
15514     builtin and then its argument prototype would still apply.  */
15515 char $ac_func();
15516
15517 int main() {
15518
15519 /* The GNU C library defines this for functions which it implements
15520     to always fail with ENOSYS.  Some functions are actually named
15521     something starting with __ and the normal name is an alias.  */
15522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15523 choke me
15524 #else
15525 $ac_func();
15526 #endif
15527
15528 ; return 0; }
15529 EOF
15530 if { (eval echo configure:15531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15531   rm -rf conftest*
15532   eval "ac_cv_func_$ac_func=yes"
15533 else
15534   echo "configure: failed program was:" >&5
15535   cat conftest.$ac_ext >&5
15536   rm -rf conftest*
15537   eval "ac_cv_func_$ac_func=no"
15538 fi
15539 rm -f conftest*
15540 fi
15541
15542 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15543   echo "$ac_t""yes" 1>&6
15544     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15545   cat >> confdefs.h <<EOF
15546 #define $ac_tr_func 1
15547 EOF
15548  
15549 else
15550   echo "$ac_t""no" 1>&6
15551 fi
15552 done
15553     
15554   else
15555     
15556   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15557 echo "configure:15558: checking for _sqrtf declaration" >&5
15558   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
15559     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
15560   echo $ac_n "(cached) $ac_c" 1>&6
15561 else
15562   
15563       
15564       ac_ext=C
15565 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15566 ac_cpp='$CXXCPP $CPPFLAGS'
15567 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15568 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15569 cross_compiling=$ac_cv_prog_cxx_cross
15570
15571       cat > conftest.$ac_ext <<EOF
15572 #line 15573 "configure"
15573 #include "confdefs.h"
15574 #include <math.h>
15575                       #ifdef HAVE_IEEEFP_H
15576                       #include <ieeefp.h>
15577                       #endif
15578                      
15579 int main() {
15580  _sqrtf(0);
15581 ; return 0; }
15582 EOF
15583 if { (eval echo configure:15584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15584   rm -rf conftest*
15585   glibcpp_cv_func__sqrtf_use=yes
15586 else
15587   echo "configure: failed program was:" >&5
15588   cat conftest.$ac_ext >&5
15589   rm -rf conftest*
15590   glibcpp_cv_func__sqrtf_use=no
15591 fi
15592 rm -f conftest*
15593       ac_ext=c
15594 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15595 ac_cpp='$CPP $CPPFLAGS'
15596 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15597 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15598 cross_compiling=$ac_cv_prog_cc_cross
15599
15600     
15601 fi
15602
15603   fi
15604   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
15605
15606     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
15607       for ac_func in _sqrtf
15608 do
15609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15610 echo "configure:15611: checking for $ac_func" >&5
15611 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15612   echo $ac_n "(cached) $ac_c" 1>&6
15613 else
15614   cat > conftest.$ac_ext <<EOF
15615 #line 15616 "configure"
15616 #include "confdefs.h"
15617 /* System header to define __stub macros and hopefully few prototypes,
15618     which can conflict with char $ac_func(); below.  */
15619 #include <assert.h>
15620 /* Override any gcc2 internal prototype to avoid an error.  */
15621 /* We use char because int might match the return type of a gcc2
15622     builtin and then its argument prototype would still apply.  */
15623 char $ac_func();
15624
15625 int main() {
15626
15627 /* The GNU C library defines this for functions which it implements
15628     to always fail with ENOSYS.  Some functions are actually named
15629     something starting with __ and the normal name is an alias.  */
15630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15631 choke me
15632 #else
15633 $ac_func();
15634 #endif
15635
15636 ; return 0; }
15637 EOF
15638 if { (eval echo configure:15639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15639   rm -rf conftest*
15640   eval "ac_cv_func_$ac_func=yes"
15641 else
15642   echo "configure: failed program was:" >&5
15643   cat conftest.$ac_ext >&5
15644   rm -rf conftest*
15645   eval "ac_cv_func_$ac_func=no"
15646 fi
15647 rm -f conftest*
15648 fi
15649
15650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15651   echo "$ac_t""yes" 1>&6
15652     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15653   cat >> confdefs.h <<EOF
15654 #define $ac_tr_func 1
15655 EOF
15656  
15657 else
15658   echo "$ac_t""no" 1>&6
15659 fi
15660 done
15661     
15662     fi
15663   fi
15664
15665   
15666   
15667   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15668 echo "configure:15669: checking for sincosf declaration" >&5
15669   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
15670     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
15671   echo $ac_n "(cached) $ac_c" 1>&6
15672 else
15673   
15674       
15675       ac_ext=C
15676 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15677 ac_cpp='$CXXCPP $CPPFLAGS'
15678 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15679 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15680 cross_compiling=$ac_cv_prog_cxx_cross
15681
15682       cat > conftest.$ac_ext <<EOF
15683 #line 15684 "configure"
15684 #include "confdefs.h"
15685 #include <math.h>
15686 int main() {
15687  sincosf(0, 0, 0);
15688 ; return 0; }
15689 EOF
15690 if { (eval echo configure:15691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15691   rm -rf conftest*
15692   glibcpp_cv_func_sincosf_use=yes
15693 else
15694   echo "configure: failed program was:" >&5
15695   cat conftest.$ac_ext >&5
15696   rm -rf conftest*
15697   glibcpp_cv_func_sincosf_use=no
15698 fi
15699 rm -f conftest*
15700       ac_ext=c
15701 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15702 ac_cpp='$CPP $CPPFLAGS'
15703 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15704 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15705 cross_compiling=$ac_cv_prog_cc_cross
15706
15707     
15708 fi
15709
15710   fi
15711   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
15712
15713   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
15714     for ac_func in sincosf
15715 do
15716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15717 echo "configure:15718: checking for $ac_func" >&5
15718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15719   echo $ac_n "(cached) $ac_c" 1>&6
15720 else
15721   cat > conftest.$ac_ext <<EOF
15722 #line 15723 "configure"
15723 #include "confdefs.h"
15724 /* System header to define __stub macros and hopefully few prototypes,
15725     which can conflict with char $ac_func(); below.  */
15726 #include <assert.h>
15727 /* Override any gcc2 internal prototype to avoid an error.  */
15728 /* We use char because int might match the return type of a gcc2
15729     builtin and then its argument prototype would still apply.  */
15730 char $ac_func();
15731
15732 int main() {
15733
15734 /* The GNU C library defines this for functions which it implements
15735     to always fail with ENOSYS.  Some functions are actually named
15736     something starting with __ and the normal name is an alias.  */
15737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15738 choke me
15739 #else
15740 $ac_func();
15741 #endif
15742
15743 ; return 0; }
15744 EOF
15745 if { (eval echo configure:15746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15746   rm -rf conftest*
15747   eval "ac_cv_func_$ac_func=yes"
15748 else
15749   echo "configure: failed program was:" >&5
15750   cat conftest.$ac_ext >&5
15751   rm -rf conftest*
15752   eval "ac_cv_func_$ac_func=no"
15753 fi
15754 rm -f conftest*
15755 fi
15756
15757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15758   echo "$ac_t""yes" 1>&6
15759     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15760   cat >> confdefs.h <<EOF
15761 #define $ac_tr_func 1
15762 EOF
15763  
15764 else
15765   echo "$ac_t""no" 1>&6
15766 fi
15767 done
15768     
15769   else
15770     
15771   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15772 echo "configure:15773: checking for _sincosf declaration" >&5
15773   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
15774     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
15775   echo $ac_n "(cached) $ac_c" 1>&6
15776 else
15777   
15778       
15779       ac_ext=C
15780 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15781 ac_cpp='$CXXCPP $CPPFLAGS'
15782 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15783 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15784 cross_compiling=$ac_cv_prog_cxx_cross
15785
15786       cat > conftest.$ac_ext <<EOF
15787 #line 15788 "configure"
15788 #include "confdefs.h"
15789 #include <math.h>
15790 int main() {
15791  _sincosf(0, 0, 0);
15792 ; return 0; }
15793 EOF
15794 if { (eval echo configure:15795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15795   rm -rf conftest*
15796   glibcpp_cv_func__sincosf_use=yes
15797 else
15798   echo "configure: failed program was:" >&5
15799   cat conftest.$ac_ext >&5
15800   rm -rf conftest*
15801   glibcpp_cv_func__sincosf_use=no
15802 fi
15803 rm -f conftest*
15804       ac_ext=c
15805 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15806 ac_cpp='$CPP $CPPFLAGS'
15807 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15808 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15809 cross_compiling=$ac_cv_prog_cc_cross
15810
15811     
15812 fi
15813
15814   fi
15815   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
15816
15817     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
15818       for ac_func in _sincosf
15819 do
15820 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15821 echo "configure:15822: checking for $ac_func" >&5
15822 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15823   echo $ac_n "(cached) $ac_c" 1>&6
15824 else
15825   cat > conftest.$ac_ext <<EOF
15826 #line 15827 "configure"
15827 #include "confdefs.h"
15828 /* System header to define __stub macros and hopefully few prototypes,
15829     which can conflict with char $ac_func(); below.  */
15830 #include <assert.h>
15831 /* Override any gcc2 internal prototype to avoid an error.  */
15832 /* We use char because int might match the return type of a gcc2
15833     builtin and then its argument prototype would still apply.  */
15834 char $ac_func();
15835
15836 int main() {
15837
15838 /* The GNU C library defines this for functions which it implements
15839     to always fail with ENOSYS.  Some functions are actually named
15840     something starting with __ and the normal name is an alias.  */
15841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15842 choke me
15843 #else
15844 $ac_func();
15845 #endif
15846
15847 ; return 0; }
15848 EOF
15849 if { (eval echo configure:15850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15850   rm -rf conftest*
15851   eval "ac_cv_func_$ac_func=yes"
15852 else
15853   echo "configure: failed program was:" >&5
15854   cat conftest.$ac_ext >&5
15855   rm -rf conftest*
15856   eval "ac_cv_func_$ac_func=no"
15857 fi
15858 rm -f conftest*
15859 fi
15860
15861 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15862   echo "$ac_t""yes" 1>&6
15863     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15864   cat >> confdefs.h <<EOF
15865 #define $ac_tr_func 1
15866 EOF
15867  
15868 else
15869   echo "$ac_t""no" 1>&6
15870 fi
15871 done
15872     
15873     fi
15874   fi
15875
15876   
15877   
15878   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
15879 echo "configure:15880: checking for finitef declaration" >&5
15880   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
15881     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
15882   echo $ac_n "(cached) $ac_c" 1>&6
15883 else
15884   
15885       
15886       ac_ext=C
15887 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15888 ac_cpp='$CXXCPP $CPPFLAGS'
15889 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15890 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15891 cross_compiling=$ac_cv_prog_cxx_cross
15892
15893       cat > conftest.$ac_ext <<EOF
15894 #line 15895 "configure"
15895 #include "confdefs.h"
15896 #include <math.h>
15897                       #ifdef HAVE_IEEEFP_H
15898                       #include <ieeefp.h>
15899                       #endif
15900                      
15901 int main() {
15902  finitef(0);
15903 ; return 0; }
15904 EOF
15905 if { (eval echo configure:15906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15906   rm -rf conftest*
15907   glibcpp_cv_func_finitef_use=yes
15908 else
15909   echo "configure: failed program was:" >&5
15910   cat conftest.$ac_ext >&5
15911   rm -rf conftest*
15912   glibcpp_cv_func_finitef_use=no
15913 fi
15914 rm -f conftest*
15915       ac_ext=c
15916 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15917 ac_cpp='$CPP $CPPFLAGS'
15918 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15919 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15920 cross_compiling=$ac_cv_prog_cc_cross
15921
15922     
15923 fi
15924
15925   fi
15926   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
15927
15928   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
15929     for ac_func in finitef
15930 do
15931 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15932 echo "configure:15933: checking for $ac_func" >&5
15933 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15934   echo $ac_n "(cached) $ac_c" 1>&6
15935 else
15936   cat > conftest.$ac_ext <<EOF
15937 #line 15938 "configure"
15938 #include "confdefs.h"
15939 /* System header to define __stub macros and hopefully few prototypes,
15940     which can conflict with char $ac_func(); below.  */
15941 #include <assert.h>
15942 /* Override any gcc2 internal prototype to avoid an error.  */
15943 /* We use char because int might match the return type of a gcc2
15944     builtin and then its argument prototype would still apply.  */
15945 char $ac_func();
15946
15947 int main() {
15948
15949 /* The GNU C library defines this for functions which it implements
15950     to always fail with ENOSYS.  Some functions are actually named
15951     something starting with __ and the normal name is an alias.  */
15952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15953 choke me
15954 #else
15955 $ac_func();
15956 #endif
15957
15958 ; return 0; }
15959 EOF
15960 if { (eval echo configure:15961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15961   rm -rf conftest*
15962   eval "ac_cv_func_$ac_func=yes"
15963 else
15964   echo "configure: failed program was:" >&5
15965   cat conftest.$ac_ext >&5
15966   rm -rf conftest*
15967   eval "ac_cv_func_$ac_func=no"
15968 fi
15969 rm -f conftest*
15970 fi
15971
15972 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15973   echo "$ac_t""yes" 1>&6
15974     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15975   cat >> confdefs.h <<EOF
15976 #define $ac_tr_func 1
15977 EOF
15978  
15979 else
15980   echo "$ac_t""no" 1>&6
15981 fi
15982 done
15983     
15984   else
15985     
15986   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
15987 echo "configure:15988: checking for _finitef declaration" >&5
15988   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
15989     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
15990   echo $ac_n "(cached) $ac_c" 1>&6
15991 else
15992   
15993       
15994       ac_ext=C
15995 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15996 ac_cpp='$CXXCPP $CPPFLAGS'
15997 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15998 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15999 cross_compiling=$ac_cv_prog_cxx_cross
16000
16001       cat > conftest.$ac_ext <<EOF
16002 #line 16003 "configure"
16003 #include "confdefs.h"
16004 #include <math.h>
16005                       #ifdef HAVE_IEEEFP_H
16006                       #include <ieeefp.h>
16007                       #endif
16008                      
16009 int main() {
16010  _finitef(0);
16011 ; return 0; }
16012 EOF
16013 if { (eval echo configure:16014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16014   rm -rf conftest*
16015   glibcpp_cv_func__finitef_use=yes
16016 else
16017   echo "configure: failed program was:" >&5
16018   cat conftest.$ac_ext >&5
16019   rm -rf conftest*
16020   glibcpp_cv_func__finitef_use=no
16021 fi
16022 rm -f conftest*
16023       ac_ext=c
16024 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16025 ac_cpp='$CPP $CPPFLAGS'
16026 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16027 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16028 cross_compiling=$ac_cv_prog_cc_cross
16029
16030     
16031 fi
16032
16033   fi
16034   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
16035
16036     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
16037       for ac_func in _finitef
16038 do
16039 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16040 echo "configure:16041: checking for $ac_func" >&5
16041 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16042   echo $ac_n "(cached) $ac_c" 1>&6
16043 else
16044   cat > conftest.$ac_ext <<EOF
16045 #line 16046 "configure"
16046 #include "confdefs.h"
16047 /* System header to define __stub macros and hopefully few prototypes,
16048     which can conflict with char $ac_func(); below.  */
16049 #include <assert.h>
16050 /* Override any gcc2 internal prototype to avoid an error.  */
16051 /* We use char because int might match the return type of a gcc2
16052     builtin and then its argument prototype would still apply.  */
16053 char $ac_func();
16054
16055 int main() {
16056
16057 /* The GNU C library defines this for functions which it implements
16058     to always fail with ENOSYS.  Some functions are actually named
16059     something starting with __ and the normal name is an alias.  */
16060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16061 choke me
16062 #else
16063 $ac_func();
16064 #endif
16065
16066 ; return 0; }
16067 EOF
16068 if { (eval echo configure:16069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16069   rm -rf conftest*
16070   eval "ac_cv_func_$ac_func=yes"
16071 else
16072   echo "configure: failed program was:" >&5
16073   cat conftest.$ac_ext >&5
16074   rm -rf conftest*
16075   eval "ac_cv_func_$ac_func=no"
16076 fi
16077 rm -f conftest*
16078 fi
16079
16080 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16081   echo "$ac_t""yes" 1>&6
16082     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16083   cat >> confdefs.h <<EOF
16084 #define $ac_tr_func 1
16085 EOF
16086  
16087 else
16088   echo "$ac_t""no" 1>&6
16089 fi
16090 done
16091     
16092     fi
16093   fi
16094
16095
16096     
16097   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16098 echo "configure:16099: checking for long double trig functions" >&5
16099   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
16100   echo $ac_n "(cached) $ac_c" 1>&6
16101 else
16102   
16103     
16104     ac_ext=C
16105 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16106 ac_cpp='$CXXCPP $CPPFLAGS'
16107 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16108 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16109 cross_compiling=$ac_cv_prog_cxx_cross
16110
16111     cat > conftest.$ac_ext <<EOF
16112 #line 16113 "configure"
16113 #include "confdefs.h"
16114 #include <math.h>
16115 int main() {
16116  `for x in acosl asinl atanl \
16117                                           cosl sinl tanl \
16118                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
16119 ; return 0; }
16120 EOF
16121 if { (eval echo configure:16122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16122   rm -rf conftest*
16123   glibcpp_cv_func_long_double_trig_use=yes
16124 else
16125   echo "configure: failed program was:" >&5
16126   cat conftest.$ac_ext >&5
16127   rm -rf conftest*
16128   glibcpp_cv_func_long_double_trig_use=no
16129 fi
16130 rm -f conftest*
16131     ac_ext=c
16132 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16133 ac_cpp='$CPP $CPPFLAGS'
16134 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16135 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16136 cross_compiling=$ac_cv_prog_cc_cross
16137
16138 fi
16139
16140   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
16141   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
16142     for ac_func in acosl asinl atanl \
16143                                           cosl sinl tanl \
16144                                           coshl sinhl tanhl
16145 do
16146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16147 echo "configure:16148: checking for $ac_func" >&5
16148 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16149   echo $ac_n "(cached) $ac_c" 1>&6
16150 else
16151   cat > conftest.$ac_ext <<EOF
16152 #line 16153 "configure"
16153 #include "confdefs.h"
16154 /* System header to define __stub macros and hopefully few prototypes,
16155     which can conflict with char $ac_func(); below.  */
16156 #include <assert.h>
16157 /* Override any gcc2 internal prototype to avoid an error.  */
16158 /* We use char because int might match the return type of a gcc2
16159     builtin and then its argument prototype would still apply.  */
16160 char $ac_func();
16161
16162 int main() {
16163
16164 /* The GNU C library defines this for functions which it implements
16165     to always fail with ENOSYS.  Some functions are actually named
16166     something starting with __ and the normal name is an alias.  */
16167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16168 choke me
16169 #else
16170 $ac_func();
16171 #endif
16172
16173 ; return 0; }
16174 EOF
16175 if { (eval echo configure:16176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16176   rm -rf conftest*
16177   eval "ac_cv_func_$ac_func=yes"
16178 else
16179   echo "configure: failed program was:" >&5
16180   cat conftest.$ac_ext >&5
16181   rm -rf conftest*
16182   eval "ac_cv_func_$ac_func=no"
16183 fi
16184 rm -f conftest*
16185 fi
16186
16187 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16188   echo "$ac_t""yes" 1>&6
16189     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16190   cat >> confdefs.h <<EOF
16191 #define $ac_tr_func 1
16192 EOF
16193  
16194 else
16195   echo "$ac_t""no" 1>&6
16196 fi
16197 done
16198
16199   fi
16200
16201   
16202   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16203 echo "configure:16204: checking for long double round functions" >&5
16204   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
16205   echo $ac_n "(cached) $ac_c" 1>&6
16206 else
16207   
16208     
16209     ac_ext=C
16210 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16211 ac_cpp='$CXXCPP $CPPFLAGS'
16212 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16213 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16214 cross_compiling=$ac_cv_prog_cxx_cross
16215
16216     cat > conftest.$ac_ext <<EOF
16217 #line 16218 "configure"
16218 #include "confdefs.h"
16219 #include <math.h>
16220 int main() {
16221  `for x in ceill floorl; do echo "$x (0);"; done` 
16222 ; return 0; }
16223 EOF
16224 if { (eval echo configure:16225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16225   rm -rf conftest*
16226   glibcpp_cv_func_long_double_round_use=yes
16227 else
16228   echo "configure: failed program was:" >&5
16229   cat conftest.$ac_ext >&5
16230   rm -rf conftest*
16231   glibcpp_cv_func_long_double_round_use=no
16232 fi
16233 rm -f conftest*
16234     ac_ext=c
16235 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16236 ac_cpp='$CPP $CPPFLAGS'
16237 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16238 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16239 cross_compiling=$ac_cv_prog_cc_cross
16240
16241 fi
16242
16243   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
16244   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
16245     for ac_func in ceill floorl
16246 do
16247 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16248 echo "configure:16249: checking for $ac_func" >&5
16249 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16250   echo $ac_n "(cached) $ac_c" 1>&6
16251 else
16252   cat > conftest.$ac_ext <<EOF
16253 #line 16254 "configure"
16254 #include "confdefs.h"
16255 /* System header to define __stub macros and hopefully few prototypes,
16256     which can conflict with char $ac_func(); below.  */
16257 #include <assert.h>
16258 /* Override any gcc2 internal prototype to avoid an error.  */
16259 /* We use char because int might match the return type of a gcc2
16260     builtin and then its argument prototype would still apply.  */
16261 char $ac_func();
16262
16263 int main() {
16264
16265 /* The GNU C library defines this for functions which it implements
16266     to always fail with ENOSYS.  Some functions are actually named
16267     something starting with __ and the normal name is an alias.  */
16268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16269 choke me
16270 #else
16271 $ac_func();
16272 #endif
16273
16274 ; return 0; }
16275 EOF
16276 if { (eval echo configure:16277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16277   rm -rf conftest*
16278   eval "ac_cv_func_$ac_func=yes"
16279 else
16280   echo "configure: failed program was:" >&5
16281   cat conftest.$ac_ext >&5
16282   rm -rf conftest*
16283   eval "ac_cv_func_$ac_func=no"
16284 fi
16285 rm -f conftest*
16286 fi
16287
16288 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16289   echo "$ac_t""yes" 1>&6
16290     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16291   cat >> confdefs.h <<EOF
16292 #define $ac_tr_func 1
16293 EOF
16294  
16295 else
16296   echo "$ac_t""no" 1>&6
16297 fi
16298 done
16299
16300   fi
16301
16302   
16303   
16304   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16305 echo "configure:16306: checking for isnanl declaration" >&5
16306   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
16307     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
16308   echo $ac_n "(cached) $ac_c" 1>&6
16309 else
16310   
16311       
16312       ac_ext=C
16313 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16314 ac_cpp='$CXXCPP $CPPFLAGS'
16315 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16316 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16317 cross_compiling=$ac_cv_prog_cxx_cross
16318
16319       cat > conftest.$ac_ext <<EOF
16320 #line 16321 "configure"
16321 #include "confdefs.h"
16322 #include <math.h>
16323                       #ifdef HAVE_IEEEFP_H
16324                       #include <ieeefp.h>
16325                       #endif
16326                      
16327 int main() {
16328  isnanl(0);
16329 ; return 0; }
16330 EOF
16331 if { (eval echo configure:16332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16332   rm -rf conftest*
16333   glibcpp_cv_func_isnanl_use=yes
16334 else
16335   echo "configure: failed program was:" >&5
16336   cat conftest.$ac_ext >&5
16337   rm -rf conftest*
16338   glibcpp_cv_func_isnanl_use=no
16339 fi
16340 rm -f conftest*
16341       ac_ext=c
16342 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16343 ac_cpp='$CPP $CPPFLAGS'
16344 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16345 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16346 cross_compiling=$ac_cv_prog_cc_cross
16347
16348     
16349 fi
16350
16351   fi
16352   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
16353
16354   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
16355     for ac_func in isnanl
16356 do
16357 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16358 echo "configure:16359: checking for $ac_func" >&5
16359 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16360   echo $ac_n "(cached) $ac_c" 1>&6
16361 else
16362   cat > conftest.$ac_ext <<EOF
16363 #line 16364 "configure"
16364 #include "confdefs.h"
16365 /* System header to define __stub macros and hopefully few prototypes,
16366     which can conflict with char $ac_func(); below.  */
16367 #include <assert.h>
16368 /* Override any gcc2 internal prototype to avoid an error.  */
16369 /* We use char because int might match the return type of a gcc2
16370     builtin and then its argument prototype would still apply.  */
16371 char $ac_func();
16372
16373 int main() {
16374
16375 /* The GNU C library defines this for functions which it implements
16376     to always fail with ENOSYS.  Some functions are actually named
16377     something starting with __ and the normal name is an alias.  */
16378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16379 choke me
16380 #else
16381 $ac_func();
16382 #endif
16383
16384 ; return 0; }
16385 EOF
16386 if { (eval echo configure:16387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16387   rm -rf conftest*
16388   eval "ac_cv_func_$ac_func=yes"
16389 else
16390   echo "configure: failed program was:" >&5
16391   cat conftest.$ac_ext >&5
16392   rm -rf conftest*
16393   eval "ac_cv_func_$ac_func=no"
16394 fi
16395 rm -f conftest*
16396 fi
16397
16398 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16399   echo "$ac_t""yes" 1>&6
16400     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16401   cat >> confdefs.h <<EOF
16402 #define $ac_tr_func 1
16403 EOF
16404  
16405 else
16406   echo "$ac_t""no" 1>&6
16407 fi
16408 done
16409     
16410   else
16411     
16412   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16413 echo "configure:16414: checking for _isnanl declaration" >&5
16414   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
16415     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
16416   echo $ac_n "(cached) $ac_c" 1>&6
16417 else
16418   
16419       
16420       ac_ext=C
16421 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16422 ac_cpp='$CXXCPP $CPPFLAGS'
16423 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16424 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16425 cross_compiling=$ac_cv_prog_cxx_cross
16426
16427       cat > conftest.$ac_ext <<EOF
16428 #line 16429 "configure"
16429 #include "confdefs.h"
16430 #include <math.h>
16431                       #ifdef HAVE_IEEEFP_H
16432                       #include <ieeefp.h>
16433                       #endif
16434                      
16435 int main() {
16436  _isnanl(0);
16437 ; return 0; }
16438 EOF
16439 if { (eval echo configure:16440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16440   rm -rf conftest*
16441   glibcpp_cv_func__isnanl_use=yes
16442 else
16443   echo "configure: failed program was:" >&5
16444   cat conftest.$ac_ext >&5
16445   rm -rf conftest*
16446   glibcpp_cv_func__isnanl_use=no
16447 fi
16448 rm -f conftest*
16449       ac_ext=c
16450 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16451 ac_cpp='$CPP $CPPFLAGS'
16452 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16453 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16454 cross_compiling=$ac_cv_prog_cc_cross
16455
16456     
16457 fi
16458
16459   fi
16460   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
16461
16462     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
16463       for ac_func in _isnanl
16464 do
16465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16466 echo "configure:16467: checking for $ac_func" >&5
16467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16468   echo $ac_n "(cached) $ac_c" 1>&6
16469 else
16470   cat > conftest.$ac_ext <<EOF
16471 #line 16472 "configure"
16472 #include "confdefs.h"
16473 /* System header to define __stub macros and hopefully few prototypes,
16474     which can conflict with char $ac_func(); below.  */
16475 #include <assert.h>
16476 /* Override any gcc2 internal prototype to avoid an error.  */
16477 /* We use char because int might match the return type of a gcc2
16478     builtin and then its argument prototype would still apply.  */
16479 char $ac_func();
16480
16481 int main() {
16482
16483 /* The GNU C library defines this for functions which it implements
16484     to always fail with ENOSYS.  Some functions are actually named
16485     something starting with __ and the normal name is an alias.  */
16486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16487 choke me
16488 #else
16489 $ac_func();
16490 #endif
16491
16492 ; return 0; }
16493 EOF
16494 if { (eval echo configure:16495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16495   rm -rf conftest*
16496   eval "ac_cv_func_$ac_func=yes"
16497 else
16498   echo "configure: failed program was:" >&5
16499   cat conftest.$ac_ext >&5
16500   rm -rf conftest*
16501   eval "ac_cv_func_$ac_func=no"
16502 fi
16503 rm -f conftest*
16504 fi
16505
16506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16507   echo "$ac_t""yes" 1>&6
16508     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16509   cat >> confdefs.h <<EOF
16510 #define $ac_tr_func 1
16511 EOF
16512  
16513 else
16514   echo "$ac_t""no" 1>&6
16515 fi
16516 done
16517     
16518     fi
16519   fi
16520
16521   
16522   
16523   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16524 echo "configure:16525: checking for isinfl declaration" >&5
16525   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
16526     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
16527   echo $ac_n "(cached) $ac_c" 1>&6
16528 else
16529   
16530       
16531       ac_ext=C
16532 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16533 ac_cpp='$CXXCPP $CPPFLAGS'
16534 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16535 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16536 cross_compiling=$ac_cv_prog_cxx_cross
16537
16538       cat > conftest.$ac_ext <<EOF
16539 #line 16540 "configure"
16540 #include "confdefs.h"
16541 #include <math.h>
16542                       #ifdef HAVE_IEEEFP_H
16543                       #include <ieeefp.h>
16544                       #endif
16545                      
16546 int main() {
16547  isinfl(0);
16548 ; return 0; }
16549 EOF
16550 if { (eval echo configure:16551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16551   rm -rf conftest*
16552   glibcpp_cv_func_isinfl_use=yes
16553 else
16554   echo "configure: failed program was:" >&5
16555   cat conftest.$ac_ext >&5
16556   rm -rf conftest*
16557   glibcpp_cv_func_isinfl_use=no
16558 fi
16559 rm -f conftest*
16560       ac_ext=c
16561 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16562 ac_cpp='$CPP $CPPFLAGS'
16563 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16564 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16565 cross_compiling=$ac_cv_prog_cc_cross
16566
16567     
16568 fi
16569
16570   fi
16571   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
16572
16573   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
16574     for ac_func in isinfl
16575 do
16576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16577 echo "configure:16578: checking for $ac_func" >&5
16578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16579   echo $ac_n "(cached) $ac_c" 1>&6
16580 else
16581   cat > conftest.$ac_ext <<EOF
16582 #line 16583 "configure"
16583 #include "confdefs.h"
16584 /* System header to define __stub macros and hopefully few prototypes,
16585     which can conflict with char $ac_func(); below.  */
16586 #include <assert.h>
16587 /* Override any gcc2 internal prototype to avoid an error.  */
16588 /* We use char because int might match the return type of a gcc2
16589     builtin and then its argument prototype would still apply.  */
16590 char $ac_func();
16591
16592 int main() {
16593
16594 /* The GNU C library defines this for functions which it implements
16595     to always fail with ENOSYS.  Some functions are actually named
16596     something starting with __ and the normal name is an alias.  */
16597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16598 choke me
16599 #else
16600 $ac_func();
16601 #endif
16602
16603 ; return 0; }
16604 EOF
16605 if { (eval echo configure:16606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16606   rm -rf conftest*
16607   eval "ac_cv_func_$ac_func=yes"
16608 else
16609   echo "configure: failed program was:" >&5
16610   cat conftest.$ac_ext >&5
16611   rm -rf conftest*
16612   eval "ac_cv_func_$ac_func=no"
16613 fi
16614 rm -f conftest*
16615 fi
16616
16617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16618   echo "$ac_t""yes" 1>&6
16619     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16620   cat >> confdefs.h <<EOF
16621 #define $ac_tr_func 1
16622 EOF
16623  
16624 else
16625   echo "$ac_t""no" 1>&6
16626 fi
16627 done
16628     
16629   else
16630     
16631   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16632 echo "configure:16633: checking for _isinfl declaration" >&5
16633   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
16634     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
16635   echo $ac_n "(cached) $ac_c" 1>&6
16636 else
16637   
16638       
16639       ac_ext=C
16640 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16641 ac_cpp='$CXXCPP $CPPFLAGS'
16642 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16643 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16644 cross_compiling=$ac_cv_prog_cxx_cross
16645
16646       cat > conftest.$ac_ext <<EOF
16647 #line 16648 "configure"
16648 #include "confdefs.h"
16649 #include <math.h>
16650                       #ifdef HAVE_IEEEFP_H
16651                       #include <ieeefp.h>
16652                       #endif
16653                      
16654 int main() {
16655  _isinfl(0);
16656 ; return 0; }
16657 EOF
16658 if { (eval echo configure:16659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16659   rm -rf conftest*
16660   glibcpp_cv_func__isinfl_use=yes
16661 else
16662   echo "configure: failed program was:" >&5
16663   cat conftest.$ac_ext >&5
16664   rm -rf conftest*
16665   glibcpp_cv_func__isinfl_use=no
16666 fi
16667 rm -f conftest*
16668       ac_ext=c
16669 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16670 ac_cpp='$CPP $CPPFLAGS'
16671 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16672 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16673 cross_compiling=$ac_cv_prog_cc_cross
16674
16675     
16676 fi
16677
16678   fi
16679   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
16680
16681     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
16682       for ac_func in _isinfl
16683 do
16684 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16685 echo "configure:16686: checking for $ac_func" >&5
16686 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16687   echo $ac_n "(cached) $ac_c" 1>&6
16688 else
16689   cat > conftest.$ac_ext <<EOF
16690 #line 16691 "configure"
16691 #include "confdefs.h"
16692 /* System header to define __stub macros and hopefully few prototypes,
16693     which can conflict with char $ac_func(); below.  */
16694 #include <assert.h>
16695 /* Override any gcc2 internal prototype to avoid an error.  */
16696 /* We use char because int might match the return type of a gcc2
16697     builtin and then its argument prototype would still apply.  */
16698 char $ac_func();
16699
16700 int main() {
16701
16702 /* The GNU C library defines this for functions which it implements
16703     to always fail with ENOSYS.  Some functions are actually named
16704     something starting with __ and the normal name is an alias.  */
16705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16706 choke me
16707 #else
16708 $ac_func();
16709 #endif
16710
16711 ; return 0; }
16712 EOF
16713 if { (eval echo configure:16714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16714   rm -rf conftest*
16715   eval "ac_cv_func_$ac_func=yes"
16716 else
16717   echo "configure: failed program was:" >&5
16718   cat conftest.$ac_ext >&5
16719   rm -rf conftest*
16720   eval "ac_cv_func_$ac_func=no"
16721 fi
16722 rm -f conftest*
16723 fi
16724
16725 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16726   echo "$ac_t""yes" 1>&6
16727     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16728   cat >> confdefs.h <<EOF
16729 #define $ac_tr_func 1
16730 EOF
16731  
16732 else
16733   echo "$ac_t""no" 1>&6
16734 fi
16735 done
16736     
16737     fi
16738   fi
16739
16740   
16741   
16742   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16743 echo "configure:16744: checking for copysignl declaration" >&5
16744   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
16745     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
16746   echo $ac_n "(cached) $ac_c" 1>&6
16747 else
16748   
16749       
16750       ac_ext=C
16751 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16752 ac_cpp='$CXXCPP $CPPFLAGS'
16753 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16754 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16755 cross_compiling=$ac_cv_prog_cxx_cross
16756
16757       cat > conftest.$ac_ext <<EOF
16758 #line 16759 "configure"
16759 #include "confdefs.h"
16760 #include <math.h>
16761 int main() {
16762  copysignl(0, 0);
16763 ; return 0; }
16764 EOF
16765 if { (eval echo configure:16766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16766   rm -rf conftest*
16767   glibcpp_cv_func_copysignl_use=yes
16768 else
16769   echo "configure: failed program was:" >&5
16770   cat conftest.$ac_ext >&5
16771   rm -rf conftest*
16772   glibcpp_cv_func_copysignl_use=no
16773 fi
16774 rm -f conftest*
16775       ac_ext=c
16776 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16777 ac_cpp='$CPP $CPPFLAGS'
16778 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16779 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16780 cross_compiling=$ac_cv_prog_cc_cross
16781
16782     
16783 fi
16784
16785   fi
16786   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
16787
16788   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
16789     for ac_func in copysignl
16790 do
16791 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16792 echo "configure:16793: checking for $ac_func" >&5
16793 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16794   echo $ac_n "(cached) $ac_c" 1>&6
16795 else
16796   cat > conftest.$ac_ext <<EOF
16797 #line 16798 "configure"
16798 #include "confdefs.h"
16799 /* System header to define __stub macros and hopefully few prototypes,
16800     which can conflict with char $ac_func(); below.  */
16801 #include <assert.h>
16802 /* Override any gcc2 internal prototype to avoid an error.  */
16803 /* We use char because int might match the return type of a gcc2
16804     builtin and then its argument prototype would still apply.  */
16805 char $ac_func();
16806
16807 int main() {
16808
16809 /* The GNU C library defines this for functions which it implements
16810     to always fail with ENOSYS.  Some functions are actually named
16811     something starting with __ and the normal name is an alias.  */
16812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16813 choke me
16814 #else
16815 $ac_func();
16816 #endif
16817
16818 ; return 0; }
16819 EOF
16820 if { (eval echo configure:16821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16821   rm -rf conftest*
16822   eval "ac_cv_func_$ac_func=yes"
16823 else
16824   echo "configure: failed program was:" >&5
16825   cat conftest.$ac_ext >&5
16826   rm -rf conftest*
16827   eval "ac_cv_func_$ac_func=no"
16828 fi
16829 rm -f conftest*
16830 fi
16831
16832 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16833   echo "$ac_t""yes" 1>&6
16834     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16835   cat >> confdefs.h <<EOF
16836 #define $ac_tr_func 1
16837 EOF
16838  
16839 else
16840   echo "$ac_t""no" 1>&6
16841 fi
16842 done
16843     
16844   else
16845     
16846   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
16847 echo "configure:16848: checking for _copysignl declaration" >&5
16848   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
16849     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
16850   echo $ac_n "(cached) $ac_c" 1>&6
16851 else
16852   
16853       
16854       ac_ext=C
16855 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16856 ac_cpp='$CXXCPP $CPPFLAGS'
16857 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16858 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16859 cross_compiling=$ac_cv_prog_cxx_cross
16860
16861       cat > conftest.$ac_ext <<EOF
16862 #line 16863 "configure"
16863 #include "confdefs.h"
16864 #include <math.h>
16865 int main() {
16866  _copysignl(0, 0);
16867 ; return 0; }
16868 EOF
16869 if { (eval echo configure:16870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16870   rm -rf conftest*
16871   glibcpp_cv_func__copysignl_use=yes
16872 else
16873   echo "configure: failed program was:" >&5
16874   cat conftest.$ac_ext >&5
16875   rm -rf conftest*
16876   glibcpp_cv_func__copysignl_use=no
16877 fi
16878 rm -f conftest*
16879       ac_ext=c
16880 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16881 ac_cpp='$CPP $CPPFLAGS'
16882 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16883 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16884 cross_compiling=$ac_cv_prog_cc_cross
16885
16886     
16887 fi
16888
16889   fi
16890   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
16891
16892     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
16893       for ac_func in _copysignl
16894 do
16895 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16896 echo "configure:16897: checking for $ac_func" >&5
16897 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16898   echo $ac_n "(cached) $ac_c" 1>&6
16899 else
16900   cat > conftest.$ac_ext <<EOF
16901 #line 16902 "configure"
16902 #include "confdefs.h"
16903 /* System header to define __stub macros and hopefully few prototypes,
16904     which can conflict with char $ac_func(); below.  */
16905 #include <assert.h>
16906 /* Override any gcc2 internal prototype to avoid an error.  */
16907 /* We use char because int might match the return type of a gcc2
16908     builtin and then its argument prototype would still apply.  */
16909 char $ac_func();
16910
16911 int main() {
16912
16913 /* The GNU C library defines this for functions which it implements
16914     to always fail with ENOSYS.  Some functions are actually named
16915     something starting with __ and the normal name is an alias.  */
16916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16917 choke me
16918 #else
16919 $ac_func();
16920 #endif
16921
16922 ; return 0; }
16923 EOF
16924 if { (eval echo configure:16925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16925   rm -rf conftest*
16926   eval "ac_cv_func_$ac_func=yes"
16927 else
16928   echo "configure: failed program was:" >&5
16929   cat conftest.$ac_ext >&5
16930   rm -rf conftest*
16931   eval "ac_cv_func_$ac_func=no"
16932 fi
16933 rm -f conftest*
16934 fi
16935
16936 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16937   echo "$ac_t""yes" 1>&6
16938     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16939   cat >> confdefs.h <<EOF
16940 #define $ac_tr_func 1
16941 EOF
16942  
16943 else
16944   echo "$ac_t""no" 1>&6
16945 fi
16946 done
16947     
16948     fi
16949   fi
16950
16951   
16952   
16953   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
16954 echo "configure:16955: checking for atan2l declaration" >&5
16955   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
16956     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
16957   echo $ac_n "(cached) $ac_c" 1>&6
16958 else
16959   
16960       
16961       ac_ext=C
16962 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16963 ac_cpp='$CXXCPP $CPPFLAGS'
16964 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16965 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16966 cross_compiling=$ac_cv_prog_cxx_cross
16967
16968       cat > conftest.$ac_ext <<EOF
16969 #line 16970 "configure"
16970 #include "confdefs.h"
16971 #include <math.h>
16972 int main() {
16973  atan2l(0, 0);
16974 ; return 0; }
16975 EOF
16976 if { (eval echo configure:16977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16977   rm -rf conftest*
16978   glibcpp_cv_func_atan2l_use=yes
16979 else
16980   echo "configure: failed program was:" >&5
16981   cat conftest.$ac_ext >&5
16982   rm -rf conftest*
16983   glibcpp_cv_func_atan2l_use=no
16984 fi
16985 rm -f conftest*
16986       ac_ext=c
16987 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16988 ac_cpp='$CPP $CPPFLAGS'
16989 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16990 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16991 cross_compiling=$ac_cv_prog_cc_cross
16992
16993     
16994 fi
16995
16996   fi
16997   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
16998
16999   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
17000     for ac_func in atan2l
17001 do
17002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17003 echo "configure:17004: checking for $ac_func" >&5
17004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17005   echo $ac_n "(cached) $ac_c" 1>&6
17006 else
17007   cat > conftest.$ac_ext <<EOF
17008 #line 17009 "configure"
17009 #include "confdefs.h"
17010 /* System header to define __stub macros and hopefully few prototypes,
17011     which can conflict with char $ac_func(); below.  */
17012 #include <assert.h>
17013 /* Override any gcc2 internal prototype to avoid an error.  */
17014 /* We use char because int might match the return type of a gcc2
17015     builtin and then its argument prototype would still apply.  */
17016 char $ac_func();
17017
17018 int main() {
17019
17020 /* The GNU C library defines this for functions which it implements
17021     to always fail with ENOSYS.  Some functions are actually named
17022     something starting with __ and the normal name is an alias.  */
17023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17024 choke me
17025 #else
17026 $ac_func();
17027 #endif
17028
17029 ; return 0; }
17030 EOF
17031 if { (eval echo configure:17032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17032   rm -rf conftest*
17033   eval "ac_cv_func_$ac_func=yes"
17034 else
17035   echo "configure: failed program was:" >&5
17036   cat conftest.$ac_ext >&5
17037   rm -rf conftest*
17038   eval "ac_cv_func_$ac_func=no"
17039 fi
17040 rm -f conftest*
17041 fi
17042
17043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17044   echo "$ac_t""yes" 1>&6
17045     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17046   cat >> confdefs.h <<EOF
17047 #define $ac_tr_func 1
17048 EOF
17049  
17050 else
17051   echo "$ac_t""no" 1>&6
17052 fi
17053 done
17054     
17055   else
17056     
17057   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17058 echo "configure:17059: checking for _atan2l declaration" >&5
17059   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
17060     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
17061   echo $ac_n "(cached) $ac_c" 1>&6
17062 else
17063   
17064       
17065       ac_ext=C
17066 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17067 ac_cpp='$CXXCPP $CPPFLAGS'
17068 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17069 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17070 cross_compiling=$ac_cv_prog_cxx_cross
17071
17072       cat > conftest.$ac_ext <<EOF
17073 #line 17074 "configure"
17074 #include "confdefs.h"
17075 #include <math.h>
17076 int main() {
17077  _atan2l(0, 0);
17078 ; return 0; }
17079 EOF
17080 if { (eval echo configure:17081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17081   rm -rf conftest*
17082   glibcpp_cv_func__atan2l_use=yes
17083 else
17084   echo "configure: failed program was:" >&5
17085   cat conftest.$ac_ext >&5
17086   rm -rf conftest*
17087   glibcpp_cv_func__atan2l_use=no
17088 fi
17089 rm -f conftest*
17090       ac_ext=c
17091 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17092 ac_cpp='$CPP $CPPFLAGS'
17093 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17094 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17095 cross_compiling=$ac_cv_prog_cc_cross
17096
17097     
17098 fi
17099
17100   fi
17101   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
17102
17103     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
17104       for ac_func in _atan2l
17105 do
17106 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17107 echo "configure:17108: checking for $ac_func" >&5
17108 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17109   echo $ac_n "(cached) $ac_c" 1>&6
17110 else
17111   cat > conftest.$ac_ext <<EOF
17112 #line 17113 "configure"
17113 #include "confdefs.h"
17114 /* System header to define __stub macros and hopefully few prototypes,
17115     which can conflict with char $ac_func(); below.  */
17116 #include <assert.h>
17117 /* Override any gcc2 internal prototype to avoid an error.  */
17118 /* We use char because int might match the return type of a gcc2
17119     builtin and then its argument prototype would still apply.  */
17120 char $ac_func();
17121
17122 int main() {
17123
17124 /* The GNU C library defines this for functions which it implements
17125     to always fail with ENOSYS.  Some functions are actually named
17126     something starting with __ and the normal name is an alias.  */
17127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17128 choke me
17129 #else
17130 $ac_func();
17131 #endif
17132
17133 ; return 0; }
17134 EOF
17135 if { (eval echo configure:17136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17136   rm -rf conftest*
17137   eval "ac_cv_func_$ac_func=yes"
17138 else
17139   echo "configure: failed program was:" >&5
17140   cat conftest.$ac_ext >&5
17141   rm -rf conftest*
17142   eval "ac_cv_func_$ac_func=no"
17143 fi
17144 rm -f conftest*
17145 fi
17146
17147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17148   echo "$ac_t""yes" 1>&6
17149     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17150   cat >> confdefs.h <<EOF
17151 #define $ac_tr_func 1
17152 EOF
17153  
17154 else
17155   echo "$ac_t""no" 1>&6
17156 fi
17157 done
17158     
17159     fi
17160   fi
17161
17162   
17163   
17164   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17165 echo "configure:17166: checking for expl declaration" >&5
17166   if test x${glibcpp_cv_func_expl_use+set} != xset; then
17167     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
17168   echo $ac_n "(cached) $ac_c" 1>&6
17169 else
17170   
17171       
17172       ac_ext=C
17173 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17174 ac_cpp='$CXXCPP $CPPFLAGS'
17175 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17176 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17177 cross_compiling=$ac_cv_prog_cxx_cross
17178
17179       cat > conftest.$ac_ext <<EOF
17180 #line 17181 "configure"
17181 #include "confdefs.h"
17182 #include <math.h>
17183                       #ifdef HAVE_IEEEFP_H
17184                       #include <ieeefp.h>
17185                       #endif
17186                      
17187 int main() {
17188  expl(0);
17189 ; return 0; }
17190 EOF
17191 if { (eval echo configure:17192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17192   rm -rf conftest*
17193   glibcpp_cv_func_expl_use=yes
17194 else
17195   echo "configure: failed program was:" >&5
17196   cat conftest.$ac_ext >&5
17197   rm -rf conftest*
17198   glibcpp_cv_func_expl_use=no
17199 fi
17200 rm -f conftest*
17201       ac_ext=c
17202 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17203 ac_cpp='$CPP $CPPFLAGS'
17204 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17205 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17206 cross_compiling=$ac_cv_prog_cc_cross
17207
17208     
17209 fi
17210
17211   fi
17212   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
17213
17214   if test x$glibcpp_cv_func_expl_use = x"yes"; then
17215     for ac_func in expl
17216 do
17217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17218 echo "configure:17219: checking for $ac_func" >&5
17219 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17220   echo $ac_n "(cached) $ac_c" 1>&6
17221 else
17222   cat > conftest.$ac_ext <<EOF
17223 #line 17224 "configure"
17224 #include "confdefs.h"
17225 /* System header to define __stub macros and hopefully few prototypes,
17226     which can conflict with char $ac_func(); below.  */
17227 #include <assert.h>
17228 /* Override any gcc2 internal prototype to avoid an error.  */
17229 /* We use char because int might match the return type of a gcc2
17230     builtin and then its argument prototype would still apply.  */
17231 char $ac_func();
17232
17233 int main() {
17234
17235 /* The GNU C library defines this for functions which it implements
17236     to always fail with ENOSYS.  Some functions are actually named
17237     something starting with __ and the normal name is an alias.  */
17238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17239 choke me
17240 #else
17241 $ac_func();
17242 #endif
17243
17244 ; return 0; }
17245 EOF
17246 if { (eval echo configure:17247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17247   rm -rf conftest*
17248   eval "ac_cv_func_$ac_func=yes"
17249 else
17250   echo "configure: failed program was:" >&5
17251   cat conftest.$ac_ext >&5
17252   rm -rf conftest*
17253   eval "ac_cv_func_$ac_func=no"
17254 fi
17255 rm -f conftest*
17256 fi
17257
17258 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17259   echo "$ac_t""yes" 1>&6
17260     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17261   cat >> confdefs.h <<EOF
17262 #define $ac_tr_func 1
17263 EOF
17264  
17265 else
17266   echo "$ac_t""no" 1>&6
17267 fi
17268 done
17269     
17270   else
17271     
17272   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17273 echo "configure:17274: checking for _expl declaration" >&5
17274   if test x${glibcpp_cv_func__expl_use+set} != xset; then
17275     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
17276   echo $ac_n "(cached) $ac_c" 1>&6
17277 else
17278   
17279       
17280       ac_ext=C
17281 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17282 ac_cpp='$CXXCPP $CPPFLAGS'
17283 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17284 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17285 cross_compiling=$ac_cv_prog_cxx_cross
17286
17287       cat > conftest.$ac_ext <<EOF
17288 #line 17289 "configure"
17289 #include "confdefs.h"
17290 #include <math.h>
17291                       #ifdef HAVE_IEEEFP_H
17292                       #include <ieeefp.h>
17293                       #endif
17294                      
17295 int main() {
17296  _expl(0);
17297 ; return 0; }
17298 EOF
17299 if { (eval echo configure:17300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17300   rm -rf conftest*
17301   glibcpp_cv_func__expl_use=yes
17302 else
17303   echo "configure: failed program was:" >&5
17304   cat conftest.$ac_ext >&5
17305   rm -rf conftest*
17306   glibcpp_cv_func__expl_use=no
17307 fi
17308 rm -f conftest*
17309       ac_ext=c
17310 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17311 ac_cpp='$CPP $CPPFLAGS'
17312 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17313 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17314 cross_compiling=$ac_cv_prog_cc_cross
17315
17316     
17317 fi
17318
17319   fi
17320   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
17321
17322     if test x$glibcpp_cv_func__expl_use = x"yes"; then
17323       for ac_func in _expl
17324 do
17325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17326 echo "configure:17327: checking for $ac_func" >&5
17327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17328   echo $ac_n "(cached) $ac_c" 1>&6
17329 else
17330   cat > conftest.$ac_ext <<EOF
17331 #line 17332 "configure"
17332 #include "confdefs.h"
17333 /* System header to define __stub macros and hopefully few prototypes,
17334     which can conflict with char $ac_func(); below.  */
17335 #include <assert.h>
17336 /* Override any gcc2 internal prototype to avoid an error.  */
17337 /* We use char because int might match the return type of a gcc2
17338     builtin and then its argument prototype would still apply.  */
17339 char $ac_func();
17340
17341 int main() {
17342
17343 /* The GNU C library defines this for functions which it implements
17344     to always fail with ENOSYS.  Some functions are actually named
17345     something starting with __ and the normal name is an alias.  */
17346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17347 choke me
17348 #else
17349 $ac_func();
17350 #endif
17351
17352 ; return 0; }
17353 EOF
17354 if { (eval echo configure:17355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17355   rm -rf conftest*
17356   eval "ac_cv_func_$ac_func=yes"
17357 else
17358   echo "configure: failed program was:" >&5
17359   cat conftest.$ac_ext >&5
17360   rm -rf conftest*
17361   eval "ac_cv_func_$ac_func=no"
17362 fi
17363 rm -f conftest*
17364 fi
17365
17366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17367   echo "$ac_t""yes" 1>&6
17368     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17369   cat >> confdefs.h <<EOF
17370 #define $ac_tr_func 1
17371 EOF
17372  
17373 else
17374   echo "$ac_t""no" 1>&6
17375 fi
17376 done
17377     
17378     fi
17379   fi
17380
17381   
17382   
17383   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17384 echo "configure:17385: checking for fabsl declaration" >&5
17385   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
17386     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
17387   echo $ac_n "(cached) $ac_c" 1>&6
17388 else
17389   
17390       
17391       ac_ext=C
17392 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17393 ac_cpp='$CXXCPP $CPPFLAGS'
17394 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17395 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17396 cross_compiling=$ac_cv_prog_cxx_cross
17397
17398       cat > conftest.$ac_ext <<EOF
17399 #line 17400 "configure"
17400 #include "confdefs.h"
17401 #include <math.h>
17402                       #ifdef HAVE_IEEEFP_H
17403                       #include <ieeefp.h>
17404                       #endif
17405                      
17406 int main() {
17407  fabsl(0);
17408 ; return 0; }
17409 EOF
17410 if { (eval echo configure:17411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17411   rm -rf conftest*
17412   glibcpp_cv_func_fabsl_use=yes
17413 else
17414   echo "configure: failed program was:" >&5
17415   cat conftest.$ac_ext >&5
17416   rm -rf conftest*
17417   glibcpp_cv_func_fabsl_use=no
17418 fi
17419 rm -f conftest*
17420       ac_ext=c
17421 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17422 ac_cpp='$CPP $CPPFLAGS'
17423 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17424 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17425 cross_compiling=$ac_cv_prog_cc_cross
17426
17427     
17428 fi
17429
17430   fi
17431   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
17432
17433   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
17434     for ac_func in fabsl
17435 do
17436 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17437 echo "configure:17438: checking for $ac_func" >&5
17438 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17439   echo $ac_n "(cached) $ac_c" 1>&6
17440 else
17441   cat > conftest.$ac_ext <<EOF
17442 #line 17443 "configure"
17443 #include "confdefs.h"
17444 /* System header to define __stub macros and hopefully few prototypes,
17445     which can conflict with char $ac_func(); below.  */
17446 #include <assert.h>
17447 /* Override any gcc2 internal prototype to avoid an error.  */
17448 /* We use char because int might match the return type of a gcc2
17449     builtin and then its argument prototype would still apply.  */
17450 char $ac_func();
17451
17452 int main() {
17453
17454 /* The GNU C library defines this for functions which it implements
17455     to always fail with ENOSYS.  Some functions are actually named
17456     something starting with __ and the normal name is an alias.  */
17457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17458 choke me
17459 #else
17460 $ac_func();
17461 #endif
17462
17463 ; return 0; }
17464 EOF
17465 if { (eval echo configure:17466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17466   rm -rf conftest*
17467   eval "ac_cv_func_$ac_func=yes"
17468 else
17469   echo "configure: failed program was:" >&5
17470   cat conftest.$ac_ext >&5
17471   rm -rf conftest*
17472   eval "ac_cv_func_$ac_func=no"
17473 fi
17474 rm -f conftest*
17475 fi
17476
17477 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17478   echo "$ac_t""yes" 1>&6
17479     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17480   cat >> confdefs.h <<EOF
17481 #define $ac_tr_func 1
17482 EOF
17483  
17484 else
17485   echo "$ac_t""no" 1>&6
17486 fi
17487 done
17488     
17489   else
17490     
17491   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17492 echo "configure:17493: checking for _fabsl declaration" >&5
17493   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
17494     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
17495   echo $ac_n "(cached) $ac_c" 1>&6
17496 else
17497   
17498       
17499       ac_ext=C
17500 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17501 ac_cpp='$CXXCPP $CPPFLAGS'
17502 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17503 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17504 cross_compiling=$ac_cv_prog_cxx_cross
17505
17506       cat > conftest.$ac_ext <<EOF
17507 #line 17508 "configure"
17508 #include "confdefs.h"
17509 #include <math.h>
17510                       #ifdef HAVE_IEEEFP_H
17511                       #include <ieeefp.h>
17512                       #endif
17513                      
17514 int main() {
17515  _fabsl(0);
17516 ; return 0; }
17517 EOF
17518 if { (eval echo configure:17519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17519   rm -rf conftest*
17520   glibcpp_cv_func__fabsl_use=yes
17521 else
17522   echo "configure: failed program was:" >&5
17523   cat conftest.$ac_ext >&5
17524   rm -rf conftest*
17525   glibcpp_cv_func__fabsl_use=no
17526 fi
17527 rm -f conftest*
17528       ac_ext=c
17529 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17530 ac_cpp='$CPP $CPPFLAGS'
17531 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17532 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17533 cross_compiling=$ac_cv_prog_cc_cross
17534
17535     
17536 fi
17537
17538   fi
17539   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
17540
17541     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
17542       for ac_func in _fabsl
17543 do
17544 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17545 echo "configure:17546: checking for $ac_func" >&5
17546 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17547   echo $ac_n "(cached) $ac_c" 1>&6
17548 else
17549   cat > conftest.$ac_ext <<EOF
17550 #line 17551 "configure"
17551 #include "confdefs.h"
17552 /* System header to define __stub macros and hopefully few prototypes,
17553     which can conflict with char $ac_func(); below.  */
17554 #include <assert.h>
17555 /* Override any gcc2 internal prototype to avoid an error.  */
17556 /* We use char because int might match the return type of a gcc2
17557     builtin and then its argument prototype would still apply.  */
17558 char $ac_func();
17559
17560 int main() {
17561
17562 /* The GNU C library defines this for functions which it implements
17563     to always fail with ENOSYS.  Some functions are actually named
17564     something starting with __ and the normal name is an alias.  */
17565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17566 choke me
17567 #else
17568 $ac_func();
17569 #endif
17570
17571 ; return 0; }
17572 EOF
17573 if { (eval echo configure:17574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17574   rm -rf conftest*
17575   eval "ac_cv_func_$ac_func=yes"
17576 else
17577   echo "configure: failed program was:" >&5
17578   cat conftest.$ac_ext >&5
17579   rm -rf conftest*
17580   eval "ac_cv_func_$ac_func=no"
17581 fi
17582 rm -f conftest*
17583 fi
17584
17585 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17586   echo "$ac_t""yes" 1>&6
17587     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17588   cat >> confdefs.h <<EOF
17589 #define $ac_tr_func 1
17590 EOF
17591  
17592 else
17593   echo "$ac_t""no" 1>&6
17594 fi
17595 done
17596     
17597     fi
17598   fi
17599
17600   
17601   
17602   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17603 echo "configure:17604: checking for fmodl declaration" >&5
17604   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
17605     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
17606   echo $ac_n "(cached) $ac_c" 1>&6
17607 else
17608   
17609       
17610       ac_ext=C
17611 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17612 ac_cpp='$CXXCPP $CPPFLAGS'
17613 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17614 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17615 cross_compiling=$ac_cv_prog_cxx_cross
17616
17617       cat > conftest.$ac_ext <<EOF
17618 #line 17619 "configure"
17619 #include "confdefs.h"
17620 #include <math.h>
17621 int main() {
17622  fmodl(0, 0);
17623 ; return 0; }
17624 EOF
17625 if { (eval echo configure:17626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17626   rm -rf conftest*
17627   glibcpp_cv_func_fmodl_use=yes
17628 else
17629   echo "configure: failed program was:" >&5
17630   cat conftest.$ac_ext >&5
17631   rm -rf conftest*
17632   glibcpp_cv_func_fmodl_use=no
17633 fi
17634 rm -f conftest*
17635       ac_ext=c
17636 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17637 ac_cpp='$CPP $CPPFLAGS'
17638 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17639 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17640 cross_compiling=$ac_cv_prog_cc_cross
17641
17642     
17643 fi
17644
17645   fi
17646   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
17647
17648   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
17649     for ac_func in fmodl
17650 do
17651 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17652 echo "configure:17653: checking for $ac_func" >&5
17653 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17654   echo $ac_n "(cached) $ac_c" 1>&6
17655 else
17656   cat > conftest.$ac_ext <<EOF
17657 #line 17658 "configure"
17658 #include "confdefs.h"
17659 /* System header to define __stub macros and hopefully few prototypes,
17660     which can conflict with char $ac_func(); below.  */
17661 #include <assert.h>
17662 /* Override any gcc2 internal prototype to avoid an error.  */
17663 /* We use char because int might match the return type of a gcc2
17664     builtin and then its argument prototype would still apply.  */
17665 char $ac_func();
17666
17667 int main() {
17668
17669 /* The GNU C library defines this for functions which it implements
17670     to always fail with ENOSYS.  Some functions are actually named
17671     something starting with __ and the normal name is an alias.  */
17672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17673 choke me
17674 #else
17675 $ac_func();
17676 #endif
17677
17678 ; return 0; }
17679 EOF
17680 if { (eval echo configure:17681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17681   rm -rf conftest*
17682   eval "ac_cv_func_$ac_func=yes"
17683 else
17684   echo "configure: failed program was:" >&5
17685   cat conftest.$ac_ext >&5
17686   rm -rf conftest*
17687   eval "ac_cv_func_$ac_func=no"
17688 fi
17689 rm -f conftest*
17690 fi
17691
17692 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17693   echo "$ac_t""yes" 1>&6
17694     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17695   cat >> confdefs.h <<EOF
17696 #define $ac_tr_func 1
17697 EOF
17698  
17699 else
17700   echo "$ac_t""no" 1>&6
17701 fi
17702 done
17703     
17704   else
17705     
17706   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17707 echo "configure:17708: checking for _fmodl declaration" >&5
17708   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
17709     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
17710   echo $ac_n "(cached) $ac_c" 1>&6
17711 else
17712   
17713       
17714       ac_ext=C
17715 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17716 ac_cpp='$CXXCPP $CPPFLAGS'
17717 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17718 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17719 cross_compiling=$ac_cv_prog_cxx_cross
17720
17721       cat > conftest.$ac_ext <<EOF
17722 #line 17723 "configure"
17723 #include "confdefs.h"
17724 #include <math.h>
17725 int main() {
17726  _fmodl(0, 0);
17727 ; return 0; }
17728 EOF
17729 if { (eval echo configure:17730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17730   rm -rf conftest*
17731   glibcpp_cv_func__fmodl_use=yes
17732 else
17733   echo "configure: failed program was:" >&5
17734   cat conftest.$ac_ext >&5
17735   rm -rf conftest*
17736   glibcpp_cv_func__fmodl_use=no
17737 fi
17738 rm -f conftest*
17739       ac_ext=c
17740 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17741 ac_cpp='$CPP $CPPFLAGS'
17742 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17743 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17744 cross_compiling=$ac_cv_prog_cc_cross
17745
17746     
17747 fi
17748
17749   fi
17750   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
17751
17752     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
17753       for ac_func in _fmodl
17754 do
17755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17756 echo "configure:17757: checking for $ac_func" >&5
17757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17758   echo $ac_n "(cached) $ac_c" 1>&6
17759 else
17760   cat > conftest.$ac_ext <<EOF
17761 #line 17762 "configure"
17762 #include "confdefs.h"
17763 /* System header to define __stub macros and hopefully few prototypes,
17764     which can conflict with char $ac_func(); below.  */
17765 #include <assert.h>
17766 /* Override any gcc2 internal prototype to avoid an error.  */
17767 /* We use char because int might match the return type of a gcc2
17768     builtin and then its argument prototype would still apply.  */
17769 char $ac_func();
17770
17771 int main() {
17772
17773 /* The GNU C library defines this for functions which it implements
17774     to always fail with ENOSYS.  Some functions are actually named
17775     something starting with __ and the normal name is an alias.  */
17776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17777 choke me
17778 #else
17779 $ac_func();
17780 #endif
17781
17782 ; return 0; }
17783 EOF
17784 if { (eval echo configure:17785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17785   rm -rf conftest*
17786   eval "ac_cv_func_$ac_func=yes"
17787 else
17788   echo "configure: failed program was:" >&5
17789   cat conftest.$ac_ext >&5
17790   rm -rf conftest*
17791   eval "ac_cv_func_$ac_func=no"
17792 fi
17793 rm -f conftest*
17794 fi
17795
17796 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17797   echo "$ac_t""yes" 1>&6
17798     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17799   cat >> confdefs.h <<EOF
17800 #define $ac_tr_func 1
17801 EOF
17802  
17803 else
17804   echo "$ac_t""no" 1>&6
17805 fi
17806 done
17807     
17808     fi
17809   fi
17810
17811   
17812   
17813   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
17814 echo "configure:17815: checking for frexpl declaration" >&5
17815   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
17816     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
17817   echo $ac_n "(cached) $ac_c" 1>&6
17818 else
17819   
17820       
17821       ac_ext=C
17822 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17823 ac_cpp='$CXXCPP $CPPFLAGS'
17824 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17825 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17826 cross_compiling=$ac_cv_prog_cxx_cross
17827
17828       cat > conftest.$ac_ext <<EOF
17829 #line 17830 "configure"
17830 #include "confdefs.h"
17831 #include <math.h>
17832 int main() {
17833  frexpl(0, 0);
17834 ; return 0; }
17835 EOF
17836 if { (eval echo configure:17837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17837   rm -rf conftest*
17838   glibcpp_cv_func_frexpl_use=yes
17839 else
17840   echo "configure: failed program was:" >&5
17841   cat conftest.$ac_ext >&5
17842   rm -rf conftest*
17843   glibcpp_cv_func_frexpl_use=no
17844 fi
17845 rm -f conftest*
17846       ac_ext=c
17847 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17848 ac_cpp='$CPP $CPPFLAGS'
17849 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17850 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17851 cross_compiling=$ac_cv_prog_cc_cross
17852
17853     
17854 fi
17855
17856   fi
17857   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
17858
17859   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
17860     for ac_func in frexpl
17861 do
17862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17863 echo "configure:17864: checking for $ac_func" >&5
17864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17865   echo $ac_n "(cached) $ac_c" 1>&6
17866 else
17867   cat > conftest.$ac_ext <<EOF
17868 #line 17869 "configure"
17869 #include "confdefs.h"
17870 /* System header to define __stub macros and hopefully few prototypes,
17871     which can conflict with char $ac_func(); below.  */
17872 #include <assert.h>
17873 /* Override any gcc2 internal prototype to avoid an error.  */
17874 /* We use char because int might match the return type of a gcc2
17875     builtin and then its argument prototype would still apply.  */
17876 char $ac_func();
17877
17878 int main() {
17879
17880 /* The GNU C library defines this for functions which it implements
17881     to always fail with ENOSYS.  Some functions are actually named
17882     something starting with __ and the normal name is an alias.  */
17883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17884 choke me
17885 #else
17886 $ac_func();
17887 #endif
17888
17889 ; return 0; }
17890 EOF
17891 if { (eval echo configure:17892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17892   rm -rf conftest*
17893   eval "ac_cv_func_$ac_func=yes"
17894 else
17895   echo "configure: failed program was:" >&5
17896   cat conftest.$ac_ext >&5
17897   rm -rf conftest*
17898   eval "ac_cv_func_$ac_func=no"
17899 fi
17900 rm -f conftest*
17901 fi
17902
17903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17904   echo "$ac_t""yes" 1>&6
17905     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17906   cat >> confdefs.h <<EOF
17907 #define $ac_tr_func 1
17908 EOF
17909  
17910 else
17911   echo "$ac_t""no" 1>&6
17912 fi
17913 done
17914     
17915   else
17916     
17917   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
17918 echo "configure:17919: checking for _frexpl declaration" >&5
17919   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
17920     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
17921   echo $ac_n "(cached) $ac_c" 1>&6
17922 else
17923   
17924       
17925       ac_ext=C
17926 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17927 ac_cpp='$CXXCPP $CPPFLAGS'
17928 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17929 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17930 cross_compiling=$ac_cv_prog_cxx_cross
17931
17932       cat > conftest.$ac_ext <<EOF
17933 #line 17934 "configure"
17934 #include "confdefs.h"
17935 #include <math.h>
17936 int main() {
17937  _frexpl(0, 0);
17938 ; return 0; }
17939 EOF
17940 if { (eval echo configure:17941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17941   rm -rf conftest*
17942   glibcpp_cv_func__frexpl_use=yes
17943 else
17944   echo "configure: failed program was:" >&5
17945   cat conftest.$ac_ext >&5
17946   rm -rf conftest*
17947   glibcpp_cv_func__frexpl_use=no
17948 fi
17949 rm -f conftest*
17950       ac_ext=c
17951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17952 ac_cpp='$CPP $CPPFLAGS'
17953 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17954 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17955 cross_compiling=$ac_cv_prog_cc_cross
17956
17957     
17958 fi
17959
17960   fi
17961   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
17962
17963     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
17964       for ac_func in _frexpl
17965 do
17966 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17967 echo "configure:17968: checking for $ac_func" >&5
17968 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17969   echo $ac_n "(cached) $ac_c" 1>&6
17970 else
17971   cat > conftest.$ac_ext <<EOF
17972 #line 17973 "configure"
17973 #include "confdefs.h"
17974 /* System header to define __stub macros and hopefully few prototypes,
17975     which can conflict with char $ac_func(); below.  */
17976 #include <assert.h>
17977 /* Override any gcc2 internal prototype to avoid an error.  */
17978 /* We use char because int might match the return type of a gcc2
17979     builtin and then its argument prototype would still apply.  */
17980 char $ac_func();
17981
17982 int main() {
17983
17984 /* The GNU C library defines this for functions which it implements
17985     to always fail with ENOSYS.  Some functions are actually named
17986     something starting with __ and the normal name is an alias.  */
17987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17988 choke me
17989 #else
17990 $ac_func();
17991 #endif
17992
17993 ; return 0; }
17994 EOF
17995 if { (eval echo configure:17996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17996   rm -rf conftest*
17997   eval "ac_cv_func_$ac_func=yes"
17998 else
17999   echo "configure: failed program was:" >&5
18000   cat conftest.$ac_ext >&5
18001   rm -rf conftest*
18002   eval "ac_cv_func_$ac_func=no"
18003 fi
18004 rm -f conftest*
18005 fi
18006
18007 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18008   echo "$ac_t""yes" 1>&6
18009     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18010   cat >> confdefs.h <<EOF
18011 #define $ac_tr_func 1
18012 EOF
18013  
18014 else
18015   echo "$ac_t""no" 1>&6
18016 fi
18017 done
18018     
18019     fi
18020   fi
18021
18022   
18023   
18024   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
18025 echo "configure:18026: checking for hypotl declaration" >&5
18026   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
18027     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
18028   echo $ac_n "(cached) $ac_c" 1>&6
18029 else
18030   
18031       
18032       ac_ext=C
18033 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18034 ac_cpp='$CXXCPP $CPPFLAGS'
18035 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18036 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18037 cross_compiling=$ac_cv_prog_cxx_cross
18038
18039       cat > conftest.$ac_ext <<EOF
18040 #line 18041 "configure"
18041 #include "confdefs.h"
18042 #include <math.h>
18043 int main() {
18044  hypotl(0, 0);
18045 ; return 0; }
18046 EOF
18047 if { (eval echo configure:18048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18048   rm -rf conftest*
18049   glibcpp_cv_func_hypotl_use=yes
18050 else
18051   echo "configure: failed program was:" >&5
18052   cat conftest.$ac_ext >&5
18053   rm -rf conftest*
18054   glibcpp_cv_func_hypotl_use=no
18055 fi
18056 rm -f conftest*
18057       ac_ext=c
18058 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18059 ac_cpp='$CPP $CPPFLAGS'
18060 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18061 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18062 cross_compiling=$ac_cv_prog_cc_cross
18063
18064     
18065 fi
18066
18067   fi
18068   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
18069
18070   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
18071     for ac_func in hypotl
18072 do
18073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18074 echo "configure:18075: checking for $ac_func" >&5
18075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18076   echo $ac_n "(cached) $ac_c" 1>&6
18077 else
18078   cat > conftest.$ac_ext <<EOF
18079 #line 18080 "configure"
18080 #include "confdefs.h"
18081 /* System header to define __stub macros and hopefully few prototypes,
18082     which can conflict with char $ac_func(); below.  */
18083 #include <assert.h>
18084 /* Override any gcc2 internal prototype to avoid an error.  */
18085 /* We use char because int might match the return type of a gcc2
18086     builtin and then its argument prototype would still apply.  */
18087 char $ac_func();
18088
18089 int main() {
18090
18091 /* The GNU C library defines this for functions which it implements
18092     to always fail with ENOSYS.  Some functions are actually named
18093     something starting with __ and the normal name is an alias.  */
18094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18095 choke me
18096 #else
18097 $ac_func();
18098 #endif
18099
18100 ; return 0; }
18101 EOF
18102 if { (eval echo configure:18103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18103   rm -rf conftest*
18104   eval "ac_cv_func_$ac_func=yes"
18105 else
18106   echo "configure: failed program was:" >&5
18107   cat conftest.$ac_ext >&5
18108   rm -rf conftest*
18109   eval "ac_cv_func_$ac_func=no"
18110 fi
18111 rm -f conftest*
18112 fi
18113
18114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18115   echo "$ac_t""yes" 1>&6
18116     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18117   cat >> confdefs.h <<EOF
18118 #define $ac_tr_func 1
18119 EOF
18120  
18121 else
18122   echo "$ac_t""no" 1>&6
18123 fi
18124 done
18125     
18126   else
18127     
18128   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18129 echo "configure:18130: checking for _hypotl declaration" >&5
18130   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
18131     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
18132   echo $ac_n "(cached) $ac_c" 1>&6
18133 else
18134   
18135       
18136       ac_ext=C
18137 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18138 ac_cpp='$CXXCPP $CPPFLAGS'
18139 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18140 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18141 cross_compiling=$ac_cv_prog_cxx_cross
18142
18143       cat > conftest.$ac_ext <<EOF
18144 #line 18145 "configure"
18145 #include "confdefs.h"
18146 #include <math.h>
18147 int main() {
18148  _hypotl(0, 0);
18149 ; return 0; }
18150 EOF
18151 if { (eval echo configure:18152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18152   rm -rf conftest*
18153   glibcpp_cv_func__hypotl_use=yes
18154 else
18155   echo "configure: failed program was:" >&5
18156   cat conftest.$ac_ext >&5
18157   rm -rf conftest*
18158   glibcpp_cv_func__hypotl_use=no
18159 fi
18160 rm -f conftest*
18161       ac_ext=c
18162 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18163 ac_cpp='$CPP $CPPFLAGS'
18164 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18165 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18166 cross_compiling=$ac_cv_prog_cc_cross
18167
18168     
18169 fi
18170
18171   fi
18172   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
18173
18174     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
18175       for ac_func in _hypotl
18176 do
18177 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18178 echo "configure:18179: checking for $ac_func" >&5
18179 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18180   echo $ac_n "(cached) $ac_c" 1>&6
18181 else
18182   cat > conftest.$ac_ext <<EOF
18183 #line 18184 "configure"
18184 #include "confdefs.h"
18185 /* System header to define __stub macros and hopefully few prototypes,
18186     which can conflict with char $ac_func(); below.  */
18187 #include <assert.h>
18188 /* Override any gcc2 internal prototype to avoid an error.  */
18189 /* We use char because int might match the return type of a gcc2
18190     builtin and then its argument prototype would still apply.  */
18191 char $ac_func();
18192
18193 int main() {
18194
18195 /* The GNU C library defines this for functions which it implements
18196     to always fail with ENOSYS.  Some functions are actually named
18197     something starting with __ and the normal name is an alias.  */
18198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18199 choke me
18200 #else
18201 $ac_func();
18202 #endif
18203
18204 ; return 0; }
18205 EOF
18206 if { (eval echo configure:18207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18207   rm -rf conftest*
18208   eval "ac_cv_func_$ac_func=yes"
18209 else
18210   echo "configure: failed program was:" >&5
18211   cat conftest.$ac_ext >&5
18212   rm -rf conftest*
18213   eval "ac_cv_func_$ac_func=no"
18214 fi
18215 rm -f conftest*
18216 fi
18217
18218 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18219   echo "$ac_t""yes" 1>&6
18220     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18221   cat >> confdefs.h <<EOF
18222 #define $ac_tr_func 1
18223 EOF
18224  
18225 else
18226   echo "$ac_t""no" 1>&6
18227 fi
18228 done
18229     
18230     fi
18231   fi
18232
18233   
18234   
18235   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18236 echo "configure:18237: checking for ldexpl declaration" >&5
18237   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
18238     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
18239   echo $ac_n "(cached) $ac_c" 1>&6
18240 else
18241   
18242       
18243       ac_ext=C
18244 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18245 ac_cpp='$CXXCPP $CPPFLAGS'
18246 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18247 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18248 cross_compiling=$ac_cv_prog_cxx_cross
18249
18250       cat > conftest.$ac_ext <<EOF
18251 #line 18252 "configure"
18252 #include "confdefs.h"
18253 #include <math.h>
18254 int main() {
18255  ldexpl(0, 0);
18256 ; return 0; }
18257 EOF
18258 if { (eval echo configure:18259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18259   rm -rf conftest*
18260   glibcpp_cv_func_ldexpl_use=yes
18261 else
18262   echo "configure: failed program was:" >&5
18263   cat conftest.$ac_ext >&5
18264   rm -rf conftest*
18265   glibcpp_cv_func_ldexpl_use=no
18266 fi
18267 rm -f conftest*
18268       ac_ext=c
18269 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18270 ac_cpp='$CPP $CPPFLAGS'
18271 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18272 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18273 cross_compiling=$ac_cv_prog_cc_cross
18274
18275     
18276 fi
18277
18278   fi
18279   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
18280
18281   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
18282     for ac_func in ldexpl
18283 do
18284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18285 echo "configure:18286: checking for $ac_func" >&5
18286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18287   echo $ac_n "(cached) $ac_c" 1>&6
18288 else
18289   cat > conftest.$ac_ext <<EOF
18290 #line 18291 "configure"
18291 #include "confdefs.h"
18292 /* System header to define __stub macros and hopefully few prototypes,
18293     which can conflict with char $ac_func(); below.  */
18294 #include <assert.h>
18295 /* Override any gcc2 internal prototype to avoid an error.  */
18296 /* We use char because int might match the return type of a gcc2
18297     builtin and then its argument prototype would still apply.  */
18298 char $ac_func();
18299
18300 int main() {
18301
18302 /* The GNU C library defines this for functions which it implements
18303     to always fail with ENOSYS.  Some functions are actually named
18304     something starting with __ and the normal name is an alias.  */
18305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18306 choke me
18307 #else
18308 $ac_func();
18309 #endif
18310
18311 ; return 0; }
18312 EOF
18313 if { (eval echo configure:18314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18314   rm -rf conftest*
18315   eval "ac_cv_func_$ac_func=yes"
18316 else
18317   echo "configure: failed program was:" >&5
18318   cat conftest.$ac_ext >&5
18319   rm -rf conftest*
18320   eval "ac_cv_func_$ac_func=no"
18321 fi
18322 rm -f conftest*
18323 fi
18324
18325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18326   echo "$ac_t""yes" 1>&6
18327     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18328   cat >> confdefs.h <<EOF
18329 #define $ac_tr_func 1
18330 EOF
18331  
18332 else
18333   echo "$ac_t""no" 1>&6
18334 fi
18335 done
18336     
18337   else
18338     
18339   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18340 echo "configure:18341: checking for _ldexpl declaration" >&5
18341   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
18342     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
18343   echo $ac_n "(cached) $ac_c" 1>&6
18344 else
18345   
18346       
18347       ac_ext=C
18348 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18349 ac_cpp='$CXXCPP $CPPFLAGS'
18350 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18351 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18352 cross_compiling=$ac_cv_prog_cxx_cross
18353
18354       cat > conftest.$ac_ext <<EOF
18355 #line 18356 "configure"
18356 #include "confdefs.h"
18357 #include <math.h>
18358 int main() {
18359  _ldexpl(0, 0);
18360 ; return 0; }
18361 EOF
18362 if { (eval echo configure:18363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18363   rm -rf conftest*
18364   glibcpp_cv_func__ldexpl_use=yes
18365 else
18366   echo "configure: failed program was:" >&5
18367   cat conftest.$ac_ext >&5
18368   rm -rf conftest*
18369   glibcpp_cv_func__ldexpl_use=no
18370 fi
18371 rm -f conftest*
18372       ac_ext=c
18373 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18374 ac_cpp='$CPP $CPPFLAGS'
18375 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18376 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18377 cross_compiling=$ac_cv_prog_cc_cross
18378
18379     
18380 fi
18381
18382   fi
18383   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
18384
18385     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
18386       for ac_func in _ldexpl
18387 do
18388 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18389 echo "configure:18390: checking for $ac_func" >&5
18390 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18391   echo $ac_n "(cached) $ac_c" 1>&6
18392 else
18393   cat > conftest.$ac_ext <<EOF
18394 #line 18395 "configure"
18395 #include "confdefs.h"
18396 /* System header to define __stub macros and hopefully few prototypes,
18397     which can conflict with char $ac_func(); below.  */
18398 #include <assert.h>
18399 /* Override any gcc2 internal prototype to avoid an error.  */
18400 /* We use char because int might match the return type of a gcc2
18401     builtin and then its argument prototype would still apply.  */
18402 char $ac_func();
18403
18404 int main() {
18405
18406 /* The GNU C library defines this for functions which it implements
18407     to always fail with ENOSYS.  Some functions are actually named
18408     something starting with __ and the normal name is an alias.  */
18409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18410 choke me
18411 #else
18412 $ac_func();
18413 #endif
18414
18415 ; return 0; }
18416 EOF
18417 if { (eval echo configure:18418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18418   rm -rf conftest*
18419   eval "ac_cv_func_$ac_func=yes"
18420 else
18421   echo "configure: failed program was:" >&5
18422   cat conftest.$ac_ext >&5
18423   rm -rf conftest*
18424   eval "ac_cv_func_$ac_func=no"
18425 fi
18426 rm -f conftest*
18427 fi
18428
18429 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18430   echo "$ac_t""yes" 1>&6
18431     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18432   cat >> confdefs.h <<EOF
18433 #define $ac_tr_func 1
18434 EOF
18435  
18436 else
18437   echo "$ac_t""no" 1>&6
18438 fi
18439 done
18440     
18441     fi
18442   fi
18443
18444   
18445   
18446   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18447 echo "configure:18448: checking for logl declaration" >&5
18448   if test x${glibcpp_cv_func_logl_use+set} != xset; then
18449     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
18450   echo $ac_n "(cached) $ac_c" 1>&6
18451 else
18452   
18453       
18454       ac_ext=C
18455 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18456 ac_cpp='$CXXCPP $CPPFLAGS'
18457 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18458 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18459 cross_compiling=$ac_cv_prog_cxx_cross
18460
18461       cat > conftest.$ac_ext <<EOF
18462 #line 18463 "configure"
18463 #include "confdefs.h"
18464 #include <math.h>
18465                       #ifdef HAVE_IEEEFP_H
18466                       #include <ieeefp.h>
18467                       #endif
18468                      
18469 int main() {
18470  logl(0);
18471 ; return 0; }
18472 EOF
18473 if { (eval echo configure:18474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18474   rm -rf conftest*
18475   glibcpp_cv_func_logl_use=yes
18476 else
18477   echo "configure: failed program was:" >&5
18478   cat conftest.$ac_ext >&5
18479   rm -rf conftest*
18480   glibcpp_cv_func_logl_use=no
18481 fi
18482 rm -f conftest*
18483       ac_ext=c
18484 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18485 ac_cpp='$CPP $CPPFLAGS'
18486 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18487 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18488 cross_compiling=$ac_cv_prog_cc_cross
18489
18490     
18491 fi
18492
18493   fi
18494   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
18495
18496   if test x$glibcpp_cv_func_logl_use = x"yes"; then
18497     for ac_func in logl
18498 do
18499 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18500 echo "configure:18501: checking for $ac_func" >&5
18501 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18502   echo $ac_n "(cached) $ac_c" 1>&6
18503 else
18504   cat > conftest.$ac_ext <<EOF
18505 #line 18506 "configure"
18506 #include "confdefs.h"
18507 /* System header to define __stub macros and hopefully few prototypes,
18508     which can conflict with char $ac_func(); below.  */
18509 #include <assert.h>
18510 /* Override any gcc2 internal prototype to avoid an error.  */
18511 /* We use char because int might match the return type of a gcc2
18512     builtin and then its argument prototype would still apply.  */
18513 char $ac_func();
18514
18515 int main() {
18516
18517 /* The GNU C library defines this for functions which it implements
18518     to always fail with ENOSYS.  Some functions are actually named
18519     something starting with __ and the normal name is an alias.  */
18520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18521 choke me
18522 #else
18523 $ac_func();
18524 #endif
18525
18526 ; return 0; }
18527 EOF
18528 if { (eval echo configure:18529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18529   rm -rf conftest*
18530   eval "ac_cv_func_$ac_func=yes"
18531 else
18532   echo "configure: failed program was:" >&5
18533   cat conftest.$ac_ext >&5
18534   rm -rf conftest*
18535   eval "ac_cv_func_$ac_func=no"
18536 fi
18537 rm -f conftest*
18538 fi
18539
18540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18541   echo "$ac_t""yes" 1>&6
18542     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18543   cat >> confdefs.h <<EOF
18544 #define $ac_tr_func 1
18545 EOF
18546  
18547 else
18548   echo "$ac_t""no" 1>&6
18549 fi
18550 done
18551     
18552   else
18553     
18554   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18555 echo "configure:18556: checking for _logl declaration" >&5
18556   if test x${glibcpp_cv_func__logl_use+set} != xset; then
18557     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
18558   echo $ac_n "(cached) $ac_c" 1>&6
18559 else
18560   
18561       
18562       ac_ext=C
18563 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18564 ac_cpp='$CXXCPP $CPPFLAGS'
18565 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18566 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18567 cross_compiling=$ac_cv_prog_cxx_cross
18568
18569       cat > conftest.$ac_ext <<EOF
18570 #line 18571 "configure"
18571 #include "confdefs.h"
18572 #include <math.h>
18573                       #ifdef HAVE_IEEEFP_H
18574                       #include <ieeefp.h>
18575                       #endif
18576                      
18577 int main() {
18578  _logl(0);
18579 ; return 0; }
18580 EOF
18581 if { (eval echo configure:18582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18582   rm -rf conftest*
18583   glibcpp_cv_func__logl_use=yes
18584 else
18585   echo "configure: failed program was:" >&5
18586   cat conftest.$ac_ext >&5
18587   rm -rf conftest*
18588   glibcpp_cv_func__logl_use=no
18589 fi
18590 rm -f conftest*
18591       ac_ext=c
18592 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18593 ac_cpp='$CPP $CPPFLAGS'
18594 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18595 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18596 cross_compiling=$ac_cv_prog_cc_cross
18597
18598     
18599 fi
18600
18601   fi
18602   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
18603
18604     if test x$glibcpp_cv_func__logl_use = x"yes"; then
18605       for ac_func in _logl
18606 do
18607 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18608 echo "configure:18609: checking for $ac_func" >&5
18609 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18610   echo $ac_n "(cached) $ac_c" 1>&6
18611 else
18612   cat > conftest.$ac_ext <<EOF
18613 #line 18614 "configure"
18614 #include "confdefs.h"
18615 /* System header to define __stub macros and hopefully few prototypes,
18616     which can conflict with char $ac_func(); below.  */
18617 #include <assert.h>
18618 /* Override any gcc2 internal prototype to avoid an error.  */
18619 /* We use char because int might match the return type of a gcc2
18620     builtin and then its argument prototype would still apply.  */
18621 char $ac_func();
18622
18623 int main() {
18624
18625 /* The GNU C library defines this for functions which it implements
18626     to always fail with ENOSYS.  Some functions are actually named
18627     something starting with __ and the normal name is an alias.  */
18628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18629 choke me
18630 #else
18631 $ac_func();
18632 #endif
18633
18634 ; return 0; }
18635 EOF
18636 if { (eval echo configure:18637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18637   rm -rf conftest*
18638   eval "ac_cv_func_$ac_func=yes"
18639 else
18640   echo "configure: failed program was:" >&5
18641   cat conftest.$ac_ext >&5
18642   rm -rf conftest*
18643   eval "ac_cv_func_$ac_func=no"
18644 fi
18645 rm -f conftest*
18646 fi
18647
18648 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18649   echo "$ac_t""yes" 1>&6
18650     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18651   cat >> confdefs.h <<EOF
18652 #define $ac_tr_func 1
18653 EOF
18654  
18655 else
18656   echo "$ac_t""no" 1>&6
18657 fi
18658 done
18659     
18660     fi
18661   fi
18662
18663   
18664   
18665   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18666 echo "configure:18667: checking for log10l declaration" >&5
18667   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
18668     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
18669   echo $ac_n "(cached) $ac_c" 1>&6
18670 else
18671   
18672       
18673       ac_ext=C
18674 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18675 ac_cpp='$CXXCPP $CPPFLAGS'
18676 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18677 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18678 cross_compiling=$ac_cv_prog_cxx_cross
18679
18680       cat > conftest.$ac_ext <<EOF
18681 #line 18682 "configure"
18682 #include "confdefs.h"
18683 #include <math.h>
18684                       #ifdef HAVE_IEEEFP_H
18685                       #include <ieeefp.h>
18686                       #endif
18687                      
18688 int main() {
18689  log10l(0);
18690 ; return 0; }
18691 EOF
18692 if { (eval echo configure:18693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18693   rm -rf conftest*
18694   glibcpp_cv_func_log10l_use=yes
18695 else
18696   echo "configure: failed program was:" >&5
18697   cat conftest.$ac_ext >&5
18698   rm -rf conftest*
18699   glibcpp_cv_func_log10l_use=no
18700 fi
18701 rm -f conftest*
18702       ac_ext=c
18703 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18704 ac_cpp='$CPP $CPPFLAGS'
18705 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18706 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18707 cross_compiling=$ac_cv_prog_cc_cross
18708
18709     
18710 fi
18711
18712   fi
18713   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
18714
18715   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
18716     for ac_func in log10l
18717 do
18718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18719 echo "configure:18720: checking for $ac_func" >&5
18720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18721   echo $ac_n "(cached) $ac_c" 1>&6
18722 else
18723   cat > conftest.$ac_ext <<EOF
18724 #line 18725 "configure"
18725 #include "confdefs.h"
18726 /* System header to define __stub macros and hopefully few prototypes,
18727     which can conflict with char $ac_func(); below.  */
18728 #include <assert.h>
18729 /* Override any gcc2 internal prototype to avoid an error.  */
18730 /* We use char because int might match the return type of a gcc2
18731     builtin and then its argument prototype would still apply.  */
18732 char $ac_func();
18733
18734 int main() {
18735
18736 /* The GNU C library defines this for functions which it implements
18737     to always fail with ENOSYS.  Some functions are actually named
18738     something starting with __ and the normal name is an alias.  */
18739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18740 choke me
18741 #else
18742 $ac_func();
18743 #endif
18744
18745 ; return 0; }
18746 EOF
18747 if { (eval echo configure:18748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18748   rm -rf conftest*
18749   eval "ac_cv_func_$ac_func=yes"
18750 else
18751   echo "configure: failed program was:" >&5
18752   cat conftest.$ac_ext >&5
18753   rm -rf conftest*
18754   eval "ac_cv_func_$ac_func=no"
18755 fi
18756 rm -f conftest*
18757 fi
18758
18759 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18760   echo "$ac_t""yes" 1>&6
18761     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18762   cat >> confdefs.h <<EOF
18763 #define $ac_tr_func 1
18764 EOF
18765  
18766 else
18767   echo "$ac_t""no" 1>&6
18768 fi
18769 done
18770     
18771   else
18772     
18773   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18774 echo "configure:18775: checking for _log10l declaration" >&5
18775   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
18776     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
18777   echo $ac_n "(cached) $ac_c" 1>&6
18778 else
18779   
18780       
18781       ac_ext=C
18782 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18783 ac_cpp='$CXXCPP $CPPFLAGS'
18784 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18785 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18786 cross_compiling=$ac_cv_prog_cxx_cross
18787
18788       cat > conftest.$ac_ext <<EOF
18789 #line 18790 "configure"
18790 #include "confdefs.h"
18791 #include <math.h>
18792                       #ifdef HAVE_IEEEFP_H
18793                       #include <ieeefp.h>
18794                       #endif
18795                      
18796 int main() {
18797  _log10l(0);
18798 ; return 0; }
18799 EOF
18800 if { (eval echo configure:18801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18801   rm -rf conftest*
18802   glibcpp_cv_func__log10l_use=yes
18803 else
18804   echo "configure: failed program was:" >&5
18805   cat conftest.$ac_ext >&5
18806   rm -rf conftest*
18807   glibcpp_cv_func__log10l_use=no
18808 fi
18809 rm -f conftest*
18810       ac_ext=c
18811 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18812 ac_cpp='$CPP $CPPFLAGS'
18813 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18814 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18815 cross_compiling=$ac_cv_prog_cc_cross
18816
18817     
18818 fi
18819
18820   fi
18821   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
18822
18823     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
18824       for ac_func in _log10l
18825 do
18826 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18827 echo "configure:18828: checking for $ac_func" >&5
18828 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18829   echo $ac_n "(cached) $ac_c" 1>&6
18830 else
18831   cat > conftest.$ac_ext <<EOF
18832 #line 18833 "configure"
18833 #include "confdefs.h"
18834 /* System header to define __stub macros and hopefully few prototypes,
18835     which can conflict with char $ac_func(); below.  */
18836 #include <assert.h>
18837 /* Override any gcc2 internal prototype to avoid an error.  */
18838 /* We use char because int might match the return type of a gcc2
18839     builtin and then its argument prototype would still apply.  */
18840 char $ac_func();
18841
18842 int main() {
18843
18844 /* The GNU C library defines this for functions which it implements
18845     to always fail with ENOSYS.  Some functions are actually named
18846     something starting with __ and the normal name is an alias.  */
18847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18848 choke me
18849 #else
18850 $ac_func();
18851 #endif
18852
18853 ; return 0; }
18854 EOF
18855 if { (eval echo configure:18856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18856   rm -rf conftest*
18857   eval "ac_cv_func_$ac_func=yes"
18858 else
18859   echo "configure: failed program was:" >&5
18860   cat conftest.$ac_ext >&5
18861   rm -rf conftest*
18862   eval "ac_cv_func_$ac_func=no"
18863 fi
18864 rm -f conftest*
18865 fi
18866
18867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18868   echo "$ac_t""yes" 1>&6
18869     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18870   cat >> confdefs.h <<EOF
18871 #define $ac_tr_func 1
18872 EOF
18873  
18874 else
18875   echo "$ac_t""no" 1>&6
18876 fi
18877 done
18878     
18879     fi
18880   fi
18881
18882   
18883   
18884   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
18885 echo "configure:18886: checking for modfl declaration" >&5
18886   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
18887     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
18888   echo $ac_n "(cached) $ac_c" 1>&6
18889 else
18890   
18891       
18892       ac_ext=C
18893 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18894 ac_cpp='$CXXCPP $CPPFLAGS'
18895 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18896 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18897 cross_compiling=$ac_cv_prog_cxx_cross
18898
18899       cat > conftest.$ac_ext <<EOF
18900 #line 18901 "configure"
18901 #include "confdefs.h"
18902 #include <math.h>
18903 int main() {
18904  modfl(0, 0);
18905 ; return 0; }
18906 EOF
18907 if { (eval echo configure:18908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18908   rm -rf conftest*
18909   glibcpp_cv_func_modfl_use=yes
18910 else
18911   echo "configure: failed program was:" >&5
18912   cat conftest.$ac_ext >&5
18913   rm -rf conftest*
18914   glibcpp_cv_func_modfl_use=no
18915 fi
18916 rm -f conftest*
18917       ac_ext=c
18918 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18919 ac_cpp='$CPP $CPPFLAGS'
18920 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18921 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18922 cross_compiling=$ac_cv_prog_cc_cross
18923
18924     
18925 fi
18926
18927   fi
18928   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
18929
18930   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
18931     for ac_func in modfl
18932 do
18933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18934 echo "configure:18935: checking for $ac_func" >&5
18935 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18936   echo $ac_n "(cached) $ac_c" 1>&6
18937 else
18938   cat > conftest.$ac_ext <<EOF
18939 #line 18940 "configure"
18940 #include "confdefs.h"
18941 /* System header to define __stub macros and hopefully few prototypes,
18942     which can conflict with char $ac_func(); below.  */
18943 #include <assert.h>
18944 /* Override any gcc2 internal prototype to avoid an error.  */
18945 /* We use char because int might match the return type of a gcc2
18946     builtin and then its argument prototype would still apply.  */
18947 char $ac_func();
18948
18949 int main() {
18950
18951 /* The GNU C library defines this for functions which it implements
18952     to always fail with ENOSYS.  Some functions are actually named
18953     something starting with __ and the normal name is an alias.  */
18954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18955 choke me
18956 #else
18957 $ac_func();
18958 #endif
18959
18960 ; return 0; }
18961 EOF
18962 if { (eval echo configure:18963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18963   rm -rf conftest*
18964   eval "ac_cv_func_$ac_func=yes"
18965 else
18966   echo "configure: failed program was:" >&5
18967   cat conftest.$ac_ext >&5
18968   rm -rf conftest*
18969   eval "ac_cv_func_$ac_func=no"
18970 fi
18971 rm -f conftest*
18972 fi
18973
18974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18975   echo "$ac_t""yes" 1>&6
18976     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18977   cat >> confdefs.h <<EOF
18978 #define $ac_tr_func 1
18979 EOF
18980  
18981 else
18982   echo "$ac_t""no" 1>&6
18983 fi
18984 done
18985     
18986   else
18987     
18988   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
18989 echo "configure:18990: checking for _modfl declaration" >&5
18990   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
18991     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
18992   echo $ac_n "(cached) $ac_c" 1>&6
18993 else
18994   
18995       
18996       ac_ext=C
18997 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18998 ac_cpp='$CXXCPP $CPPFLAGS'
18999 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19000 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19001 cross_compiling=$ac_cv_prog_cxx_cross
19002
19003       cat > conftest.$ac_ext <<EOF
19004 #line 19005 "configure"
19005 #include "confdefs.h"
19006 #include <math.h>
19007 int main() {
19008  _modfl(0, 0);
19009 ; return 0; }
19010 EOF
19011 if { (eval echo configure:19012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19012   rm -rf conftest*
19013   glibcpp_cv_func__modfl_use=yes
19014 else
19015   echo "configure: failed program was:" >&5
19016   cat conftest.$ac_ext >&5
19017   rm -rf conftest*
19018   glibcpp_cv_func__modfl_use=no
19019 fi
19020 rm -f conftest*
19021       ac_ext=c
19022 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19023 ac_cpp='$CPP $CPPFLAGS'
19024 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19025 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19026 cross_compiling=$ac_cv_prog_cc_cross
19027
19028     
19029 fi
19030
19031   fi
19032   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
19033
19034     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
19035       for ac_func in _modfl
19036 do
19037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19038 echo "configure:19039: checking for $ac_func" >&5
19039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19040   echo $ac_n "(cached) $ac_c" 1>&6
19041 else
19042   cat > conftest.$ac_ext <<EOF
19043 #line 19044 "configure"
19044 #include "confdefs.h"
19045 /* System header to define __stub macros and hopefully few prototypes,
19046     which can conflict with char $ac_func(); below.  */
19047 #include <assert.h>
19048 /* Override any gcc2 internal prototype to avoid an error.  */
19049 /* We use char because int might match the return type of a gcc2
19050     builtin and then its argument prototype would still apply.  */
19051 char $ac_func();
19052
19053 int main() {
19054
19055 /* The GNU C library defines this for functions which it implements
19056     to always fail with ENOSYS.  Some functions are actually named
19057     something starting with __ and the normal name is an alias.  */
19058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19059 choke me
19060 #else
19061 $ac_func();
19062 #endif
19063
19064 ; return 0; }
19065 EOF
19066 if { (eval echo configure:19067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19067   rm -rf conftest*
19068   eval "ac_cv_func_$ac_func=yes"
19069 else
19070   echo "configure: failed program was:" >&5
19071   cat conftest.$ac_ext >&5
19072   rm -rf conftest*
19073   eval "ac_cv_func_$ac_func=no"
19074 fi
19075 rm -f conftest*
19076 fi
19077
19078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19079   echo "$ac_t""yes" 1>&6
19080     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19081   cat >> confdefs.h <<EOF
19082 #define $ac_tr_func 1
19083 EOF
19084  
19085 else
19086   echo "$ac_t""no" 1>&6
19087 fi
19088 done
19089     
19090     fi
19091   fi
19092
19093   
19094   
19095   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19096 echo "configure:19097: checking for powl declaration" >&5
19097   if test x${glibcpp_cv_func_powl_use+set} != xset; then
19098     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
19099   echo $ac_n "(cached) $ac_c" 1>&6
19100 else
19101   
19102       
19103       ac_ext=C
19104 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19105 ac_cpp='$CXXCPP $CPPFLAGS'
19106 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19107 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19108 cross_compiling=$ac_cv_prog_cxx_cross
19109
19110       cat > conftest.$ac_ext <<EOF
19111 #line 19112 "configure"
19112 #include "confdefs.h"
19113 #include <math.h>
19114 int main() {
19115  powl(0, 0);
19116 ; return 0; }
19117 EOF
19118 if { (eval echo configure:19119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19119   rm -rf conftest*
19120   glibcpp_cv_func_powl_use=yes
19121 else
19122   echo "configure: failed program was:" >&5
19123   cat conftest.$ac_ext >&5
19124   rm -rf conftest*
19125   glibcpp_cv_func_powl_use=no
19126 fi
19127 rm -f conftest*
19128       ac_ext=c
19129 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19130 ac_cpp='$CPP $CPPFLAGS'
19131 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19132 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19133 cross_compiling=$ac_cv_prog_cc_cross
19134
19135     
19136 fi
19137
19138   fi
19139   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
19140
19141   if test x$glibcpp_cv_func_powl_use = x"yes"; then
19142     for ac_func in powl
19143 do
19144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19145 echo "configure:19146: checking for $ac_func" >&5
19146 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19147   echo $ac_n "(cached) $ac_c" 1>&6
19148 else
19149   cat > conftest.$ac_ext <<EOF
19150 #line 19151 "configure"
19151 #include "confdefs.h"
19152 /* System header to define __stub macros and hopefully few prototypes,
19153     which can conflict with char $ac_func(); below.  */
19154 #include <assert.h>
19155 /* Override any gcc2 internal prototype to avoid an error.  */
19156 /* We use char because int might match the return type of a gcc2
19157     builtin and then its argument prototype would still apply.  */
19158 char $ac_func();
19159
19160 int main() {
19161
19162 /* The GNU C library defines this for functions which it implements
19163     to always fail with ENOSYS.  Some functions are actually named
19164     something starting with __ and the normal name is an alias.  */
19165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19166 choke me
19167 #else
19168 $ac_func();
19169 #endif
19170
19171 ; return 0; }
19172 EOF
19173 if { (eval echo configure:19174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19174   rm -rf conftest*
19175   eval "ac_cv_func_$ac_func=yes"
19176 else
19177   echo "configure: failed program was:" >&5
19178   cat conftest.$ac_ext >&5
19179   rm -rf conftest*
19180   eval "ac_cv_func_$ac_func=no"
19181 fi
19182 rm -f conftest*
19183 fi
19184
19185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19186   echo "$ac_t""yes" 1>&6
19187     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19188   cat >> confdefs.h <<EOF
19189 #define $ac_tr_func 1
19190 EOF
19191  
19192 else
19193   echo "$ac_t""no" 1>&6
19194 fi
19195 done
19196     
19197   else
19198     
19199   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19200 echo "configure:19201: checking for _powl declaration" >&5
19201   if test x${glibcpp_cv_func__powl_use+set} != xset; then
19202     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
19203   echo $ac_n "(cached) $ac_c" 1>&6
19204 else
19205   
19206       
19207       ac_ext=C
19208 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19209 ac_cpp='$CXXCPP $CPPFLAGS'
19210 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19211 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19212 cross_compiling=$ac_cv_prog_cxx_cross
19213
19214       cat > conftest.$ac_ext <<EOF
19215 #line 19216 "configure"
19216 #include "confdefs.h"
19217 #include <math.h>
19218 int main() {
19219  _powl(0, 0);
19220 ; return 0; }
19221 EOF
19222 if { (eval echo configure:19223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19223   rm -rf conftest*
19224   glibcpp_cv_func__powl_use=yes
19225 else
19226   echo "configure: failed program was:" >&5
19227   cat conftest.$ac_ext >&5
19228   rm -rf conftest*
19229   glibcpp_cv_func__powl_use=no
19230 fi
19231 rm -f conftest*
19232       ac_ext=c
19233 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19234 ac_cpp='$CPP $CPPFLAGS'
19235 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19236 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19237 cross_compiling=$ac_cv_prog_cc_cross
19238
19239     
19240 fi
19241
19242   fi
19243   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
19244
19245     if test x$glibcpp_cv_func__powl_use = x"yes"; then
19246       for ac_func in _powl
19247 do
19248 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19249 echo "configure:19250: checking for $ac_func" >&5
19250 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19251   echo $ac_n "(cached) $ac_c" 1>&6
19252 else
19253   cat > conftest.$ac_ext <<EOF
19254 #line 19255 "configure"
19255 #include "confdefs.h"
19256 /* System header to define __stub macros and hopefully few prototypes,
19257     which can conflict with char $ac_func(); below.  */
19258 #include <assert.h>
19259 /* Override any gcc2 internal prototype to avoid an error.  */
19260 /* We use char because int might match the return type of a gcc2
19261     builtin and then its argument prototype would still apply.  */
19262 char $ac_func();
19263
19264 int main() {
19265
19266 /* The GNU C library defines this for functions which it implements
19267     to always fail with ENOSYS.  Some functions are actually named
19268     something starting with __ and the normal name is an alias.  */
19269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19270 choke me
19271 #else
19272 $ac_func();
19273 #endif
19274
19275 ; return 0; }
19276 EOF
19277 if { (eval echo configure:19278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19278   rm -rf conftest*
19279   eval "ac_cv_func_$ac_func=yes"
19280 else
19281   echo "configure: failed program was:" >&5
19282   cat conftest.$ac_ext >&5
19283   rm -rf conftest*
19284   eval "ac_cv_func_$ac_func=no"
19285 fi
19286 rm -f conftest*
19287 fi
19288
19289 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19290   echo "$ac_t""yes" 1>&6
19291     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19292   cat >> confdefs.h <<EOF
19293 #define $ac_tr_func 1
19294 EOF
19295  
19296 else
19297   echo "$ac_t""no" 1>&6
19298 fi
19299 done
19300     
19301     fi
19302   fi
19303
19304   
19305   
19306   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19307 echo "configure:19308: checking for sqrtl declaration" >&5
19308   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
19309     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
19310   echo $ac_n "(cached) $ac_c" 1>&6
19311 else
19312   
19313       
19314       ac_ext=C
19315 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19316 ac_cpp='$CXXCPP $CPPFLAGS'
19317 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19318 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19319 cross_compiling=$ac_cv_prog_cxx_cross
19320
19321       cat > conftest.$ac_ext <<EOF
19322 #line 19323 "configure"
19323 #include "confdefs.h"
19324 #include <math.h>
19325                       #ifdef HAVE_IEEEFP_H
19326                       #include <ieeefp.h>
19327                       #endif
19328                      
19329 int main() {
19330  sqrtl(0);
19331 ; return 0; }
19332 EOF
19333 if { (eval echo configure:19334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19334   rm -rf conftest*
19335   glibcpp_cv_func_sqrtl_use=yes
19336 else
19337   echo "configure: failed program was:" >&5
19338   cat conftest.$ac_ext >&5
19339   rm -rf conftest*
19340   glibcpp_cv_func_sqrtl_use=no
19341 fi
19342 rm -f conftest*
19343       ac_ext=c
19344 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19345 ac_cpp='$CPP $CPPFLAGS'
19346 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19347 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19348 cross_compiling=$ac_cv_prog_cc_cross
19349
19350     
19351 fi
19352
19353   fi
19354   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
19355
19356   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
19357     for ac_func in sqrtl
19358 do
19359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19360 echo "configure:19361: checking for $ac_func" >&5
19361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19362   echo $ac_n "(cached) $ac_c" 1>&6
19363 else
19364   cat > conftest.$ac_ext <<EOF
19365 #line 19366 "configure"
19366 #include "confdefs.h"
19367 /* System header to define __stub macros and hopefully few prototypes,
19368     which can conflict with char $ac_func(); below.  */
19369 #include <assert.h>
19370 /* Override any gcc2 internal prototype to avoid an error.  */
19371 /* We use char because int might match the return type of a gcc2
19372     builtin and then its argument prototype would still apply.  */
19373 char $ac_func();
19374
19375 int main() {
19376
19377 /* The GNU C library defines this for functions which it implements
19378     to always fail with ENOSYS.  Some functions are actually named
19379     something starting with __ and the normal name is an alias.  */
19380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19381 choke me
19382 #else
19383 $ac_func();
19384 #endif
19385
19386 ; return 0; }
19387 EOF
19388 if { (eval echo configure:19389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19389   rm -rf conftest*
19390   eval "ac_cv_func_$ac_func=yes"
19391 else
19392   echo "configure: failed program was:" >&5
19393   cat conftest.$ac_ext >&5
19394   rm -rf conftest*
19395   eval "ac_cv_func_$ac_func=no"
19396 fi
19397 rm -f conftest*
19398 fi
19399
19400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19401   echo "$ac_t""yes" 1>&6
19402     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19403   cat >> confdefs.h <<EOF
19404 #define $ac_tr_func 1
19405 EOF
19406  
19407 else
19408   echo "$ac_t""no" 1>&6
19409 fi
19410 done
19411     
19412   else
19413     
19414   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19415 echo "configure:19416: checking for _sqrtl declaration" >&5
19416   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
19417     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
19418   echo $ac_n "(cached) $ac_c" 1>&6
19419 else
19420   
19421       
19422       ac_ext=C
19423 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19424 ac_cpp='$CXXCPP $CPPFLAGS'
19425 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19426 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19427 cross_compiling=$ac_cv_prog_cxx_cross
19428
19429       cat > conftest.$ac_ext <<EOF
19430 #line 19431 "configure"
19431 #include "confdefs.h"
19432 #include <math.h>
19433                       #ifdef HAVE_IEEEFP_H
19434                       #include <ieeefp.h>
19435                       #endif
19436                      
19437 int main() {
19438  _sqrtl(0);
19439 ; return 0; }
19440 EOF
19441 if { (eval echo configure:19442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19442   rm -rf conftest*
19443   glibcpp_cv_func__sqrtl_use=yes
19444 else
19445   echo "configure: failed program was:" >&5
19446   cat conftest.$ac_ext >&5
19447   rm -rf conftest*
19448   glibcpp_cv_func__sqrtl_use=no
19449 fi
19450 rm -f conftest*
19451       ac_ext=c
19452 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19453 ac_cpp='$CPP $CPPFLAGS'
19454 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19455 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19456 cross_compiling=$ac_cv_prog_cc_cross
19457
19458     
19459 fi
19460
19461   fi
19462   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
19463
19464     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
19465       for ac_func in _sqrtl
19466 do
19467 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19468 echo "configure:19469: checking for $ac_func" >&5
19469 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19470   echo $ac_n "(cached) $ac_c" 1>&6
19471 else
19472   cat > conftest.$ac_ext <<EOF
19473 #line 19474 "configure"
19474 #include "confdefs.h"
19475 /* System header to define __stub macros and hopefully few prototypes,
19476     which can conflict with char $ac_func(); below.  */
19477 #include <assert.h>
19478 /* Override any gcc2 internal prototype to avoid an error.  */
19479 /* We use char because int might match the return type of a gcc2
19480     builtin and then its argument prototype would still apply.  */
19481 char $ac_func();
19482
19483 int main() {
19484
19485 /* The GNU C library defines this for functions which it implements
19486     to always fail with ENOSYS.  Some functions are actually named
19487     something starting with __ and the normal name is an alias.  */
19488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19489 choke me
19490 #else
19491 $ac_func();
19492 #endif
19493
19494 ; return 0; }
19495 EOF
19496 if { (eval echo configure:19497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19497   rm -rf conftest*
19498   eval "ac_cv_func_$ac_func=yes"
19499 else
19500   echo "configure: failed program was:" >&5
19501   cat conftest.$ac_ext >&5
19502   rm -rf conftest*
19503   eval "ac_cv_func_$ac_func=no"
19504 fi
19505 rm -f conftest*
19506 fi
19507
19508 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19509   echo "$ac_t""yes" 1>&6
19510     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19511   cat >> confdefs.h <<EOF
19512 #define $ac_tr_func 1
19513 EOF
19514  
19515 else
19516   echo "$ac_t""no" 1>&6
19517 fi
19518 done
19519     
19520     fi
19521   fi
19522
19523   
19524   
19525   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19526 echo "configure:19527: checking for sincosl declaration" >&5
19527   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
19528     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
19529   echo $ac_n "(cached) $ac_c" 1>&6
19530 else
19531   
19532       
19533       ac_ext=C
19534 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19535 ac_cpp='$CXXCPP $CPPFLAGS'
19536 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19537 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19538 cross_compiling=$ac_cv_prog_cxx_cross
19539
19540       cat > conftest.$ac_ext <<EOF
19541 #line 19542 "configure"
19542 #include "confdefs.h"
19543 #include <math.h>
19544 int main() {
19545  sincosl(0, 0, 0);
19546 ; return 0; }
19547 EOF
19548 if { (eval echo configure:19549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19549   rm -rf conftest*
19550   glibcpp_cv_func_sincosl_use=yes
19551 else
19552   echo "configure: failed program was:" >&5
19553   cat conftest.$ac_ext >&5
19554   rm -rf conftest*
19555   glibcpp_cv_func_sincosl_use=no
19556 fi
19557 rm -f conftest*
19558       ac_ext=c
19559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19560 ac_cpp='$CPP $CPPFLAGS'
19561 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19562 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19563 cross_compiling=$ac_cv_prog_cc_cross
19564
19565     
19566 fi
19567
19568   fi
19569   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
19570
19571   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
19572     for ac_func in sincosl
19573 do
19574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19575 echo "configure:19576: checking for $ac_func" >&5
19576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19577   echo $ac_n "(cached) $ac_c" 1>&6
19578 else
19579   cat > conftest.$ac_ext <<EOF
19580 #line 19581 "configure"
19581 #include "confdefs.h"
19582 /* System header to define __stub macros and hopefully few prototypes,
19583     which can conflict with char $ac_func(); below.  */
19584 #include <assert.h>
19585 /* Override any gcc2 internal prototype to avoid an error.  */
19586 /* We use char because int might match the return type of a gcc2
19587     builtin and then its argument prototype would still apply.  */
19588 char $ac_func();
19589
19590 int main() {
19591
19592 /* The GNU C library defines this for functions which it implements
19593     to always fail with ENOSYS.  Some functions are actually named
19594     something starting with __ and the normal name is an alias.  */
19595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19596 choke me
19597 #else
19598 $ac_func();
19599 #endif
19600
19601 ; return 0; }
19602 EOF
19603 if { (eval echo configure:19604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19604   rm -rf conftest*
19605   eval "ac_cv_func_$ac_func=yes"
19606 else
19607   echo "configure: failed program was:" >&5
19608   cat conftest.$ac_ext >&5
19609   rm -rf conftest*
19610   eval "ac_cv_func_$ac_func=no"
19611 fi
19612 rm -f conftest*
19613 fi
19614
19615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19616   echo "$ac_t""yes" 1>&6
19617     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19618   cat >> confdefs.h <<EOF
19619 #define $ac_tr_func 1
19620 EOF
19621  
19622 else
19623   echo "$ac_t""no" 1>&6
19624 fi
19625 done
19626     
19627   else
19628     
19629   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19630 echo "configure:19631: checking for _sincosl declaration" >&5
19631   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
19632     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
19633   echo $ac_n "(cached) $ac_c" 1>&6
19634 else
19635   
19636       
19637       ac_ext=C
19638 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19639 ac_cpp='$CXXCPP $CPPFLAGS'
19640 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19641 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19642 cross_compiling=$ac_cv_prog_cxx_cross
19643
19644       cat > conftest.$ac_ext <<EOF
19645 #line 19646 "configure"
19646 #include "confdefs.h"
19647 #include <math.h>
19648 int main() {
19649  _sincosl(0, 0, 0);
19650 ; return 0; }
19651 EOF
19652 if { (eval echo configure:19653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19653   rm -rf conftest*
19654   glibcpp_cv_func__sincosl_use=yes
19655 else
19656   echo "configure: failed program was:" >&5
19657   cat conftest.$ac_ext >&5
19658   rm -rf conftest*
19659   glibcpp_cv_func__sincosl_use=no
19660 fi
19661 rm -f conftest*
19662       ac_ext=c
19663 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19664 ac_cpp='$CPP $CPPFLAGS'
19665 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19666 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19667 cross_compiling=$ac_cv_prog_cc_cross
19668
19669     
19670 fi
19671
19672   fi
19673   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
19674
19675     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
19676       for ac_func in _sincosl
19677 do
19678 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19679 echo "configure:19680: checking for $ac_func" >&5
19680 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19681   echo $ac_n "(cached) $ac_c" 1>&6
19682 else
19683   cat > conftest.$ac_ext <<EOF
19684 #line 19685 "configure"
19685 #include "confdefs.h"
19686 /* System header to define __stub macros and hopefully few prototypes,
19687     which can conflict with char $ac_func(); below.  */
19688 #include <assert.h>
19689 /* Override any gcc2 internal prototype to avoid an error.  */
19690 /* We use char because int might match the return type of a gcc2
19691     builtin and then its argument prototype would still apply.  */
19692 char $ac_func();
19693
19694 int main() {
19695
19696 /* The GNU C library defines this for functions which it implements
19697     to always fail with ENOSYS.  Some functions are actually named
19698     something starting with __ and the normal name is an alias.  */
19699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19700 choke me
19701 #else
19702 $ac_func();
19703 #endif
19704
19705 ; return 0; }
19706 EOF
19707 if { (eval echo configure:19708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19708   rm -rf conftest*
19709   eval "ac_cv_func_$ac_func=yes"
19710 else
19711   echo "configure: failed program was:" >&5
19712   cat conftest.$ac_ext >&5
19713   rm -rf conftest*
19714   eval "ac_cv_func_$ac_func=no"
19715 fi
19716 rm -f conftest*
19717 fi
19718
19719 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19720   echo "$ac_t""yes" 1>&6
19721     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19722   cat >> confdefs.h <<EOF
19723 #define $ac_tr_func 1
19724 EOF
19725  
19726 else
19727   echo "$ac_t""no" 1>&6
19728 fi
19729 done
19730     
19731     fi
19732   fi
19733
19734   
19735   
19736   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19737 echo "configure:19738: checking for finitel declaration" >&5
19738   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
19739     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
19740   echo $ac_n "(cached) $ac_c" 1>&6
19741 else
19742   
19743       
19744       ac_ext=C
19745 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19746 ac_cpp='$CXXCPP $CPPFLAGS'
19747 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19748 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19749 cross_compiling=$ac_cv_prog_cxx_cross
19750
19751       cat > conftest.$ac_ext <<EOF
19752 #line 19753 "configure"
19753 #include "confdefs.h"
19754 #include <math.h>
19755                       #ifdef HAVE_IEEEFP_H
19756                       #include <ieeefp.h>
19757                       #endif
19758                      
19759 int main() {
19760  finitel(0);
19761 ; return 0; }
19762 EOF
19763 if { (eval echo configure:19764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19764   rm -rf conftest*
19765   glibcpp_cv_func_finitel_use=yes
19766 else
19767   echo "configure: failed program was:" >&5
19768   cat conftest.$ac_ext >&5
19769   rm -rf conftest*
19770   glibcpp_cv_func_finitel_use=no
19771 fi
19772 rm -f conftest*
19773       ac_ext=c
19774 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19775 ac_cpp='$CPP $CPPFLAGS'
19776 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19777 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19778 cross_compiling=$ac_cv_prog_cc_cross
19779
19780     
19781 fi
19782
19783   fi
19784   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
19785
19786   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
19787     for ac_func in finitel
19788 do
19789 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19790 echo "configure:19791: checking for $ac_func" >&5
19791 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19792   echo $ac_n "(cached) $ac_c" 1>&6
19793 else
19794   cat > conftest.$ac_ext <<EOF
19795 #line 19796 "configure"
19796 #include "confdefs.h"
19797 /* System header to define __stub macros and hopefully few prototypes,
19798     which can conflict with char $ac_func(); below.  */
19799 #include <assert.h>
19800 /* Override any gcc2 internal prototype to avoid an error.  */
19801 /* We use char because int might match the return type of a gcc2
19802     builtin and then its argument prototype would still apply.  */
19803 char $ac_func();
19804
19805 int main() {
19806
19807 /* The GNU C library defines this for functions which it implements
19808     to always fail with ENOSYS.  Some functions are actually named
19809     something starting with __ and the normal name is an alias.  */
19810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19811 choke me
19812 #else
19813 $ac_func();
19814 #endif
19815
19816 ; return 0; }
19817 EOF
19818 if { (eval echo configure:19819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19819   rm -rf conftest*
19820   eval "ac_cv_func_$ac_func=yes"
19821 else
19822   echo "configure: failed program was:" >&5
19823   cat conftest.$ac_ext >&5
19824   rm -rf conftest*
19825   eval "ac_cv_func_$ac_func=no"
19826 fi
19827 rm -f conftest*
19828 fi
19829
19830 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19831   echo "$ac_t""yes" 1>&6
19832     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19833   cat >> confdefs.h <<EOF
19834 #define $ac_tr_func 1
19835 EOF
19836  
19837 else
19838   echo "$ac_t""no" 1>&6
19839 fi
19840 done
19841     
19842   else
19843     
19844   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
19845 echo "configure:19846: checking for _finitel declaration" >&5
19846   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
19847     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
19848   echo $ac_n "(cached) $ac_c" 1>&6
19849 else
19850   
19851       
19852       ac_ext=C
19853 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19854 ac_cpp='$CXXCPP $CPPFLAGS'
19855 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19856 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19857 cross_compiling=$ac_cv_prog_cxx_cross
19858
19859       cat > conftest.$ac_ext <<EOF
19860 #line 19861 "configure"
19861 #include "confdefs.h"
19862 #include <math.h>
19863                       #ifdef HAVE_IEEEFP_H
19864                       #include <ieeefp.h>
19865                       #endif
19866                      
19867 int main() {
19868  _finitel(0);
19869 ; return 0; }
19870 EOF
19871 if { (eval echo configure:19872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19872   rm -rf conftest*
19873   glibcpp_cv_func__finitel_use=yes
19874 else
19875   echo "configure: failed program was:" >&5
19876   cat conftest.$ac_ext >&5
19877   rm -rf conftest*
19878   glibcpp_cv_func__finitel_use=no
19879 fi
19880 rm -f conftest*
19881       ac_ext=c
19882 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19883 ac_cpp='$CPP $CPPFLAGS'
19884 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19885 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19886 cross_compiling=$ac_cv_prog_cc_cross
19887
19888     
19889 fi
19890
19891   fi
19892   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
19893
19894     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
19895       for ac_func in _finitel
19896 do
19897 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19898 echo "configure:19899: checking for $ac_func" >&5
19899 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19900   echo $ac_n "(cached) $ac_c" 1>&6
19901 else
19902   cat > conftest.$ac_ext <<EOF
19903 #line 19904 "configure"
19904 #include "confdefs.h"
19905 /* System header to define __stub macros and hopefully few prototypes,
19906     which can conflict with char $ac_func(); below.  */
19907 #include <assert.h>
19908 /* Override any gcc2 internal prototype to avoid an error.  */
19909 /* We use char because int might match the return type of a gcc2
19910     builtin and then its argument prototype would still apply.  */
19911 char $ac_func();
19912
19913 int main() {
19914
19915 /* The GNU C library defines this for functions which it implements
19916     to always fail with ENOSYS.  Some functions are actually named
19917     something starting with __ and the normal name is an alias.  */
19918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19919 choke me
19920 #else
19921 $ac_func();
19922 #endif
19923
19924 ; return 0; }
19925 EOF
19926 if { (eval echo configure:19927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19927   rm -rf conftest*
19928   eval "ac_cv_func_$ac_func=yes"
19929 else
19930   echo "configure: failed program was:" >&5
19931   cat conftest.$ac_ext >&5
19932   rm -rf conftest*
19933   eval "ac_cv_func_$ac_func=no"
19934 fi
19935 rm -f conftest*
19936 fi
19937
19938 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19939   echo "$ac_t""yes" 1>&6
19940     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19941   cat >> confdefs.h <<EOF
19942 #define $ac_tr_func 1
19943 EOF
19944  
19945 else
19946   echo "$ac_t""no" 1>&6
19947 fi
19948 done
19949     
19950     fi
19951   fi
19952
19953
19954         
19955     
19956   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
19957 echo "configure:19958: checking for _float trig functions" >&5
19958   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
19959   echo $ac_n "(cached) $ac_c" 1>&6
19960 else
19961   
19962     
19963     ac_ext=C
19964 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19965 ac_cpp='$CXXCPP $CPPFLAGS'
19966 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19967 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19968 cross_compiling=$ac_cv_prog_cxx_cross
19969
19970     cat > conftest.$ac_ext <<EOF
19971 #line 19972 "configure"
19972 #include "confdefs.h"
19973 #include <math.h>
19974 int main() {
19975  `for x in _acosf _asinf _atanf \
19976                                           _cosf _sinf _tanf \
19977                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
19978 ; return 0; }
19979 EOF
19980 if { (eval echo configure:19981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19981   rm -rf conftest*
19982   glibcpp_cv_func__float_trig_use=yes
19983 else
19984   echo "configure: failed program was:" >&5
19985   cat conftest.$ac_ext >&5
19986   rm -rf conftest*
19987   glibcpp_cv_func__float_trig_use=no
19988 fi
19989 rm -f conftest*
19990     ac_ext=c
19991 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19992 ac_cpp='$CPP $CPPFLAGS'
19993 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19994 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19995 cross_compiling=$ac_cv_prog_cc_cross
19996
19997 fi
19998
19999   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
20000   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
20001     for ac_func in _acosf _asinf _atanf \
20002                                           _cosf _sinf _tanf \
20003                                           _coshf _sinhf _tanhf
20004 do
20005 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20006 echo "configure:20007: checking for $ac_func" >&5
20007 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20008   echo $ac_n "(cached) $ac_c" 1>&6
20009 else
20010   cat > conftest.$ac_ext <<EOF
20011 #line 20012 "configure"
20012 #include "confdefs.h"
20013 /* System header to define __stub macros and hopefully few prototypes,
20014     which can conflict with char $ac_func(); below.  */
20015 #include <assert.h>
20016 /* Override any gcc2 internal prototype to avoid an error.  */
20017 /* We use char because int might match the return type of a gcc2
20018     builtin and then its argument prototype would still apply.  */
20019 char $ac_func();
20020
20021 int main() {
20022
20023 /* The GNU C library defines this for functions which it implements
20024     to always fail with ENOSYS.  Some functions are actually named
20025     something starting with __ and the normal name is an alias.  */
20026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20027 choke me
20028 #else
20029 $ac_func();
20030 #endif
20031
20032 ; return 0; }
20033 EOF
20034 if { (eval echo configure:20035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20035   rm -rf conftest*
20036   eval "ac_cv_func_$ac_func=yes"
20037 else
20038   echo "configure: failed program was:" >&5
20039   cat conftest.$ac_ext >&5
20040   rm -rf conftest*
20041   eval "ac_cv_func_$ac_func=no"
20042 fi
20043 rm -f conftest*
20044 fi
20045
20046 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20047   echo "$ac_t""yes" 1>&6
20048     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20049   cat >> confdefs.h <<EOF
20050 #define $ac_tr_func 1
20051 EOF
20052  
20053 else
20054   echo "$ac_t""no" 1>&6
20055 fi
20056 done
20057
20058   fi
20059
20060   
20061   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20062 echo "configure:20063: checking for _float round functions" >&5
20063   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
20064   echo $ac_n "(cached) $ac_c" 1>&6
20065 else
20066   
20067     
20068     ac_ext=C
20069 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20070 ac_cpp='$CXXCPP $CPPFLAGS'
20071 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20072 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20073 cross_compiling=$ac_cv_prog_cxx_cross
20074
20075     cat > conftest.$ac_ext <<EOF
20076 #line 20077 "configure"
20077 #include "confdefs.h"
20078 #include <math.h>
20079 int main() {
20080  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
20081 ; return 0; }
20082 EOF
20083 if { (eval echo configure:20084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20084   rm -rf conftest*
20085   glibcpp_cv_func__float_round_use=yes
20086 else
20087   echo "configure: failed program was:" >&5
20088   cat conftest.$ac_ext >&5
20089   rm -rf conftest*
20090   glibcpp_cv_func__float_round_use=no
20091 fi
20092 rm -f conftest*
20093     ac_ext=c
20094 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20095 ac_cpp='$CPP $CPPFLAGS'
20096 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20097 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20098 cross_compiling=$ac_cv_prog_cc_cross
20099
20100 fi
20101
20102   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
20103   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
20104     for ac_func in _ceilf _floorf
20105 do
20106 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20107 echo "configure:20108: checking for $ac_func" >&5
20108 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20109   echo $ac_n "(cached) $ac_c" 1>&6
20110 else
20111   cat > conftest.$ac_ext <<EOF
20112 #line 20113 "configure"
20113 #include "confdefs.h"
20114 /* System header to define __stub macros and hopefully few prototypes,
20115     which can conflict with char $ac_func(); below.  */
20116 #include <assert.h>
20117 /* Override any gcc2 internal prototype to avoid an error.  */
20118 /* We use char because int might match the return type of a gcc2
20119     builtin and then its argument prototype would still apply.  */
20120 char $ac_func();
20121
20122 int main() {
20123
20124 /* The GNU C library defines this for functions which it implements
20125     to always fail with ENOSYS.  Some functions are actually named
20126     something starting with __ and the normal name is an alias.  */
20127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20128 choke me
20129 #else
20130 $ac_func();
20131 #endif
20132
20133 ; return 0; }
20134 EOF
20135 if { (eval echo configure:20136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20136   rm -rf conftest*
20137   eval "ac_cv_func_$ac_func=yes"
20138 else
20139   echo "configure: failed program was:" >&5
20140   cat conftest.$ac_ext >&5
20141   rm -rf conftest*
20142   eval "ac_cv_func_$ac_func=no"
20143 fi
20144 rm -f conftest*
20145 fi
20146
20147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20148   echo "$ac_t""yes" 1>&6
20149     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20150   cat >> confdefs.h <<EOF
20151 #define $ac_tr_func 1
20152 EOF
20153  
20154 else
20155   echo "$ac_t""no" 1>&6
20156 fi
20157 done
20158
20159   fi
20160
20161
20162     
20163   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20164 echo "configure:20165: checking for _long double trig functions" >&5
20165   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
20166   echo $ac_n "(cached) $ac_c" 1>&6
20167 else
20168   
20169     
20170     ac_ext=C
20171 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20172 ac_cpp='$CXXCPP $CPPFLAGS'
20173 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20174 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20175 cross_compiling=$ac_cv_prog_cxx_cross
20176
20177     cat > conftest.$ac_ext <<EOF
20178 #line 20179 "configure"
20179 #include "confdefs.h"
20180 #include <math.h>
20181 int main() {
20182  `for x in _acosl _asinl _atanl \
20183                                           _cosl _sinl _tanl \
20184                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
20185 ; return 0; }
20186 EOF
20187 if { (eval echo configure:20188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20188   rm -rf conftest*
20189   glibcpp_cv_func__long_double_trig_use=yes
20190 else
20191   echo "configure: failed program was:" >&5
20192   cat conftest.$ac_ext >&5
20193   rm -rf conftest*
20194   glibcpp_cv_func__long_double_trig_use=no
20195 fi
20196 rm -f conftest*
20197     ac_ext=c
20198 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20199 ac_cpp='$CPP $CPPFLAGS'
20200 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20201 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20202 cross_compiling=$ac_cv_prog_cc_cross
20203
20204 fi
20205
20206   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
20207   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
20208     for ac_func in _acosl _asinl _atanl \
20209                                           _cosl _sinl _tanl \
20210                                           _coshl _sinhl _tanhl
20211 do
20212 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20213 echo "configure:20214: checking for $ac_func" >&5
20214 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20215   echo $ac_n "(cached) $ac_c" 1>&6
20216 else
20217   cat > conftest.$ac_ext <<EOF
20218 #line 20219 "configure"
20219 #include "confdefs.h"
20220 /* System header to define __stub macros and hopefully few prototypes,
20221     which can conflict with char $ac_func(); below.  */
20222 #include <assert.h>
20223 /* Override any gcc2 internal prototype to avoid an error.  */
20224 /* We use char because int might match the return type of a gcc2
20225     builtin and then its argument prototype would still apply.  */
20226 char $ac_func();
20227
20228 int main() {
20229
20230 /* The GNU C library defines this for functions which it implements
20231     to always fail with ENOSYS.  Some functions are actually named
20232     something starting with __ and the normal name is an alias.  */
20233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20234 choke me
20235 #else
20236 $ac_func();
20237 #endif
20238
20239 ; return 0; }
20240 EOF
20241 if { (eval echo configure:20242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20242   rm -rf conftest*
20243   eval "ac_cv_func_$ac_func=yes"
20244 else
20245   echo "configure: failed program was:" >&5
20246   cat conftest.$ac_ext >&5
20247   rm -rf conftest*
20248   eval "ac_cv_func_$ac_func=no"
20249 fi
20250 rm -f conftest*
20251 fi
20252
20253 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20254   echo "$ac_t""yes" 1>&6
20255     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20256   cat >> confdefs.h <<EOF
20257 #define $ac_tr_func 1
20258 EOF
20259  
20260 else
20261   echo "$ac_t""no" 1>&6
20262 fi
20263 done
20264
20265   fi
20266
20267   
20268   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20269 echo "configure:20270: checking for _long double round functions" >&5
20270   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
20271   echo $ac_n "(cached) $ac_c" 1>&6
20272 else
20273   
20274     
20275     ac_ext=C
20276 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20277 ac_cpp='$CXXCPP $CPPFLAGS'
20278 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20279 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20280 cross_compiling=$ac_cv_prog_cxx_cross
20281
20282     cat > conftest.$ac_ext <<EOF
20283 #line 20284 "configure"
20284 #include "confdefs.h"
20285 #include <math.h>
20286 int main() {
20287  `for x in _ceill _floorl; do echo "$x (0);"; done` 
20288 ; return 0; }
20289 EOF
20290 if { (eval echo configure:20291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20291   rm -rf conftest*
20292   glibcpp_cv_func__long_double_round_use=yes
20293 else
20294   echo "configure: failed program was:" >&5
20295   cat conftest.$ac_ext >&5
20296   rm -rf conftest*
20297   glibcpp_cv_func__long_double_round_use=no
20298 fi
20299 rm -f conftest*
20300     ac_ext=c
20301 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20302 ac_cpp='$CPP $CPPFLAGS'
20303 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20304 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20305 cross_compiling=$ac_cv_prog_cc_cross
20306
20307 fi
20308
20309   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
20310   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
20311     for ac_func in _ceill _floorl
20312 do
20313 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20314 echo "configure:20315: checking for $ac_func" >&5
20315 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20316   echo $ac_n "(cached) $ac_c" 1>&6
20317 else
20318   cat > conftest.$ac_ext <<EOF
20319 #line 20320 "configure"
20320 #include "confdefs.h"
20321 /* System header to define __stub macros and hopefully few prototypes,
20322     which can conflict with char $ac_func(); below.  */
20323 #include <assert.h>
20324 /* Override any gcc2 internal prototype to avoid an error.  */
20325 /* We use char because int might match the return type of a gcc2
20326     builtin and then its argument prototype would still apply.  */
20327 char $ac_func();
20328
20329 int main() {
20330
20331 /* The GNU C library defines this for functions which it implements
20332     to always fail with ENOSYS.  Some functions are actually named
20333     something starting with __ and the normal name is an alias.  */
20334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20335 choke me
20336 #else
20337 $ac_func();
20338 #endif
20339
20340 ; return 0; }
20341 EOF
20342 if { (eval echo configure:20343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20343   rm -rf conftest*
20344   eval "ac_cv_func_$ac_func=yes"
20345 else
20346   echo "configure: failed program was:" >&5
20347   cat conftest.$ac_ext >&5
20348   rm -rf conftest*
20349   eval "ac_cv_func_$ac_func=no"
20350 fi
20351 rm -f conftest*
20352 fi
20353
20354 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20355   echo "$ac_t""yes" 1>&6
20356     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20357   cat >> confdefs.h <<EOF
20358 #define $ac_tr_func 1
20359 EOF
20360  
20361 else
20362   echo "$ac_t""no" 1>&6
20363 fi
20364 done
20365
20366   fi
20367
20368
20369   LIBS="$ac_save_LIBS"
20370   CXXFLAGS="$ac_save_CXXFLAGS"
20371
20372   
20373     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
20374 echo "configure:20375: checking for main in -lm" >&5
20375 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
20376 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20377   echo $ac_n "(cached) $ac_c" 1>&6
20378 else
20379   ac_save_LIBS="$LIBS"
20380 LIBS="-lm  $LIBS"
20381 cat > conftest.$ac_ext <<EOF
20382 #line 20383 "configure"
20383 #include "confdefs.h"
20384
20385 int main() {
20386 main()
20387 ; return 0; }
20388 EOF
20389 if { (eval echo configure:20390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20390   rm -rf conftest*
20391   eval "ac_cv_lib_$ac_lib_var=yes"
20392 else
20393   echo "configure: failed program was:" >&5
20394   cat conftest.$ac_ext >&5
20395   rm -rf conftest*
20396   eval "ac_cv_lib_$ac_lib_var=no"
20397 fi
20398 rm -f conftest*
20399 LIBS="$ac_save_LIBS"
20400
20401 fi
20402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20403   echo "$ac_t""yes" 1>&6
20404     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
20405     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
20406   cat >> confdefs.h <<EOF
20407 #define $ac_tr_lib 1
20408 EOF
20409
20410   LIBS="-lm $LIBS"
20411
20412 else
20413   echo "$ac_t""no" 1>&6
20414 fi
20415
20416   for ac_func in nan copysignf
20417 do
20418 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20419 echo "configure:20420: checking for $ac_func" >&5
20420 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20421   echo $ac_n "(cached) $ac_c" 1>&6
20422 else
20423   cat > conftest.$ac_ext <<EOF
20424 #line 20425 "configure"
20425 #include "confdefs.h"
20426 /* System header to define __stub macros and hopefully few prototypes,
20427     which can conflict with char $ac_func(); below.  */
20428 #include <assert.h>
20429 /* Override any gcc2 internal prototype to avoid an error.  */
20430 /* We use char because int might match the return type of a gcc2
20431     builtin and then its argument prototype would still apply.  */
20432 char $ac_func();
20433
20434 int main() {
20435
20436 /* The GNU C library defines this for functions which it implements
20437     to always fail with ENOSYS.  Some functions are actually named
20438     something starting with __ and the normal name is an alias.  */
20439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20440 choke me
20441 #else
20442 $ac_func();
20443 #endif
20444
20445 ; return 0; }
20446 EOF
20447 if { (eval echo configure:20448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20448   rm -rf conftest*
20449   eval "ac_cv_func_$ac_func=yes"
20450 else
20451   echo "configure: failed program was:" >&5
20452   cat conftest.$ac_ext >&5
20453   rm -rf conftest*
20454   eval "ac_cv_func_$ac_func=no"
20455 fi
20456 rm -f conftest*
20457 fi
20458
20459 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20460   echo "$ac_t""yes" 1>&6
20461     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20462   cat >> confdefs.h <<EOF
20463 #define $ac_tr_func 1
20464 EOF
20465  
20466 else
20467   echo "$ac_t""no" 1>&6
20468 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
20469 fi
20470 done
20471
20472
20473     for ac_func in __signbit
20474 do
20475 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20476 echo "configure:20477: checking for $ac_func" >&5
20477 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20478   echo $ac_n "(cached) $ac_c" 1>&6
20479 else
20480   cat > conftest.$ac_ext <<EOF
20481 #line 20482 "configure"
20482 #include "confdefs.h"
20483 /* System header to define __stub macros and hopefully few prototypes,
20484     which can conflict with char $ac_func(); below.  */
20485 #include <assert.h>
20486 /* Override any gcc2 internal prototype to avoid an error.  */
20487 /* We use char because int might match the return type of a gcc2
20488     builtin and then its argument prototype would still apply.  */
20489 char $ac_func();
20490
20491 int main() {
20492
20493 /* The GNU C library defines this for functions which it implements
20494     to always fail with ENOSYS.  Some functions are actually named
20495     something starting with __ and the normal name is an alias.  */
20496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20497 choke me
20498 #else
20499 $ac_func();
20500 #endif
20501
20502 ; return 0; }
20503 EOF
20504 if { (eval echo configure:20505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20505   rm -rf conftest*
20506   eval "ac_cv_func_$ac_func=yes"
20507 else
20508   echo "configure: failed program was:" >&5
20509   cat conftest.$ac_ext >&5
20510   rm -rf conftest*
20511   eval "ac_cv_func_$ac_func=no"
20512 fi
20513 rm -f conftest*
20514 fi
20515
20516 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20517   echo "$ac_t""yes" 1>&6
20518     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20519   cat >> confdefs.h <<EOF
20520 #define $ac_tr_func 1
20521 EOF
20522  
20523 else
20524   echo "$ac_t""no" 1>&6
20525 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
20526 fi
20527 done
20528
20529   for ac_func in __signbitf
20530 do
20531 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20532 echo "configure:20533: checking for $ac_func" >&5
20533 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20534   echo $ac_n "(cached) $ac_c" 1>&6
20535 else
20536   cat > conftest.$ac_ext <<EOF
20537 #line 20538 "configure"
20538 #include "confdefs.h"
20539 /* System header to define __stub macros and hopefully few prototypes,
20540     which can conflict with char $ac_func(); below.  */
20541 #include <assert.h>
20542 /* Override any gcc2 internal prototype to avoid an error.  */
20543 /* We use char because int might match the return type of a gcc2
20544     builtin and then its argument prototype would still apply.  */
20545 char $ac_func();
20546
20547 int main() {
20548
20549 /* The GNU C library defines this for functions which it implements
20550     to always fail with ENOSYS.  Some functions are actually named
20551     something starting with __ and the normal name is an alias.  */
20552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20553 choke me
20554 #else
20555 $ac_func();
20556 #endif
20557
20558 ; return 0; }
20559 EOF
20560 if { (eval echo configure:20561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20561   rm -rf conftest*
20562   eval "ac_cv_func_$ac_func=yes"
20563 else
20564   echo "configure: failed program was:" >&5
20565   cat conftest.$ac_ext >&5
20566   rm -rf conftest*
20567   eval "ac_cv_func_$ac_func=no"
20568 fi
20569 rm -f conftest*
20570 fi
20571
20572 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20573   echo "$ac_t""yes" 1>&6
20574     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20575   cat >> confdefs.h <<EOF
20576 #define $ac_tr_func 1
20577 EOF
20578  
20579 else
20580   echo "$ac_t""no" 1>&6
20581 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
20582 fi
20583 done
20584
20585
20586           if test x$ac_cv_func_copysignl = x"yes"; then
20587     for ac_func in __signbitl
20588 do
20589 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20590 echo "configure:20591: checking for $ac_func" >&5
20591 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20592   echo $ac_n "(cached) $ac_c" 1>&6
20593 else
20594   cat > conftest.$ac_ext <<EOF
20595 #line 20596 "configure"
20596 #include "confdefs.h"
20597 /* System header to define __stub macros and hopefully few prototypes,
20598     which can conflict with char $ac_func(); below.  */
20599 #include <assert.h>
20600 /* Override any gcc2 internal prototype to avoid an error.  */
20601 /* We use char because int might match the return type of a gcc2
20602     builtin and then its argument prototype would still apply.  */
20603 char $ac_func();
20604
20605 int main() {
20606
20607 /* The GNU C library defines this for functions which it implements
20608     to always fail with ENOSYS.  Some functions are actually named
20609     something starting with __ and the normal name is an alias.  */
20610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20611 choke me
20612 #else
20613 $ac_func();
20614 #endif
20615
20616 ; return 0; }
20617 EOF
20618 if { (eval echo configure:20619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20619   rm -rf conftest*
20620   eval "ac_cv_func_$ac_func=yes"
20621 else
20622   echo "configure: failed program was:" >&5
20623   cat conftest.$ac_ext >&5
20624   rm -rf conftest*
20625   eval "ac_cv_func_$ac_func=no"
20626 fi
20627 rm -f conftest*
20628 fi
20629
20630 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20631   echo "$ac_t""yes" 1>&6
20632     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20633   cat >> confdefs.h <<EOF
20634 #define $ac_tr_func 1
20635 EOF
20636  
20637 else
20638   echo "$ac_t""no" 1>&6
20639 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
20640 fi
20641 done
20642
20643   fi
20644
20645   
20646
20647   
20648
20649       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
20650 echo "configure:20651: checking for mbstate_t" >&5
20651   cat > conftest.$ac_ext <<EOF
20652 #line 20653 "configure"
20653 #include "confdefs.h"
20654 #include <wchar.h>
20655 int main() {
20656 mbstate_t teststate;
20657 ; return 0; }
20658 EOF
20659 if { (eval echo configure:20660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20660   rm -rf conftest*
20661   have_mbstate_t=yes
20662 else
20663   echo "configure: failed program was:" >&5
20664   cat conftest.$ac_ext >&5
20665   rm -rf conftest*
20666   have_mbstate_t=no
20667 fi
20668 rm -f conftest*
20669   echo "$ac_t""$have_mbstate_t" 1>&6
20670   if test x"$have_mbstate_t" = xyes; then
20671     cat >> confdefs.h <<\EOF
20672 #define HAVE_MBSTATE_T 1
20673 EOF
20674
20675   fi
20676
20677     for ac_hdr in wchar.h
20678 do
20679 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20680 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20681 echo "configure:20682: checking for $ac_hdr" >&5
20682 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20683   echo $ac_n "(cached) $ac_c" 1>&6
20684 else
20685   cat > conftest.$ac_ext <<EOF
20686 #line 20687 "configure"
20687 #include "confdefs.h"
20688 #include <$ac_hdr>
20689 EOF
20690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20691 { (eval echo configure:20692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20693 if test -z "$ac_err"; then
20694   rm -rf conftest*
20695   eval "ac_cv_header_$ac_safe=yes"
20696 else
20697   echo "$ac_err" >&5
20698   echo "configure: failed program was:" >&5
20699   cat conftest.$ac_ext >&5
20700   rm -rf conftest*
20701   eval "ac_cv_header_$ac_safe=no"
20702 fi
20703 rm -f conftest*
20704 fi
20705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20706   echo "$ac_t""yes" 1>&6
20707     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20708   cat >> confdefs.h <<EOF
20709 #define $ac_tr_hdr 1
20710 EOF
20711  ac_has_wchar_h=yes
20712 else
20713   echo "$ac_t""no" 1>&6
20714 ac_has_wchar_h=no
20715 fi
20716 done
20717
20718   for ac_hdr in wctype.h
20719 do
20720 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20721 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20722 echo "configure:20723: checking for $ac_hdr" >&5
20723 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20724   echo $ac_n "(cached) $ac_c" 1>&6
20725 else
20726   cat > conftest.$ac_ext <<EOF
20727 #line 20728 "configure"
20728 #include "confdefs.h"
20729 #include <$ac_hdr>
20730 EOF
20731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20732 { (eval echo configure:20733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20734 if test -z "$ac_err"; then
20735   rm -rf conftest*
20736   eval "ac_cv_header_$ac_safe=yes"
20737 else
20738   echo "$ac_err" >&5
20739   echo "configure: failed program was:" >&5
20740   cat conftest.$ac_ext >&5
20741   rm -rf conftest*
20742   eval "ac_cv_header_$ac_safe=no"
20743 fi
20744 rm -f conftest*
20745 fi
20746 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20747   echo "$ac_t""yes" 1>&6
20748     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20749   cat >> confdefs.h <<EOF
20750 #define $ac_tr_hdr 1
20751 EOF
20752  ac_has_wctype_h=yes
20753 else
20754   echo "$ac_t""no" 1>&6
20755 ac_has_wctype_h=no
20756 fi
20757 done
20758
20759   
20760     if test x"$ac_has_wchar_h" = xyes &&
20761      test x"$ac_has_wctype_h" = xyes &&
20762      test x"$enable_c_mbchar" != xno; then
20763       
20764             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
20765 echo "configure:20766: checking for WCHAR_MIN and WCHAR_MAX" >&5
20766     cat > conftest.$ac_ext <<EOF
20767 #line 20768 "configure"
20768 #include "confdefs.h"
20769 #include <wchar.h>
20770 int main() {
20771 int i = WCHAR_MIN; int j = WCHAR_MAX;
20772 ; return 0; }
20773 EOF
20774 if { (eval echo configure:20775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20775   rm -rf conftest*
20776   has_wchar_minmax=yes
20777 else
20778   echo "configure: failed program was:" >&5
20779   cat conftest.$ac_ext >&5
20780   rm -rf conftest*
20781   has_wchar_minmax=no
20782 fi
20783 rm -f conftest*
20784     echo "$ac_t""$has_wchar_minmax" 1>&6
20785     
20786             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
20787 echo "configure:20788: checking for WEOF" >&5
20788     cat > conftest.$ac_ext <<EOF
20789 #line 20790 "configure"
20790 #include "confdefs.h"
20791
20792       #include <wchar.h>
20793       #include <stddef.h>
20794 int main() {
20795 wint_t i = WEOF;
20796 ; return 0; }
20797 EOF
20798 if { (eval echo configure:20799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20799   rm -rf conftest*
20800   has_weof=yes
20801 else
20802   echo "configure: failed program was:" >&5
20803   cat conftest.$ac_ext >&5
20804   rm -rf conftest*
20805   has_weof=no
20806 fi
20807 rm -f conftest*
20808     echo "$ac_t""$has_weof" 1>&6
20809   
20810         ac_wfuncs=yes
20811     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
20812 do
20813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20814 echo "configure:20815: checking for $ac_func" >&5
20815 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20816   echo $ac_n "(cached) $ac_c" 1>&6
20817 else
20818   cat > conftest.$ac_ext <<EOF
20819 #line 20820 "configure"
20820 #include "confdefs.h"
20821 /* System header to define __stub macros and hopefully few prototypes,
20822     which can conflict with char $ac_func(); below.  */
20823 #include <assert.h>
20824 /* Override any gcc2 internal prototype to avoid an error.  */
20825 /* We use char because int might match the return type of a gcc2
20826     builtin and then its argument prototype would still apply.  */
20827 char $ac_func();
20828
20829 int main() {
20830
20831 /* The GNU C library defines this for functions which it implements
20832     to always fail with ENOSYS.  Some functions are actually named
20833     something starting with __ and the normal name is an alias.  */
20834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20835 choke me
20836 #else
20837 $ac_func();
20838 #endif
20839
20840 ; return 0; }
20841 EOF
20842 if { (eval echo configure:20843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20843   rm -rf conftest*
20844   eval "ac_cv_func_$ac_func=yes"
20845 else
20846   echo "configure: failed program was:" >&5
20847   cat conftest.$ac_ext >&5
20848   rm -rf conftest*
20849   eval "ac_cv_func_$ac_func=no"
20850 fi
20851 rm -f conftest*
20852 fi
20853
20854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20855   echo "$ac_t""yes" 1>&6
20856     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20857   cat >> confdefs.h <<EOF
20858 #define $ac_tr_func 1
20859 EOF
20860  
20861 else
20862   echo "$ac_t""no" 1>&6
20863 \
20864     ac_wfuncs=no
20865 fi
20866 done
20867
20868   
20869         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
20870     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
20871     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
20872     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
20873     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
20874     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
20875 do
20876 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20877 echo "configure:20878: checking for $ac_func" >&5
20878 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20879   echo $ac_n "(cached) $ac_c" 1>&6
20880 else
20881   cat > conftest.$ac_ext <<EOF
20882 #line 20883 "configure"
20883 #include "confdefs.h"
20884 /* System header to define __stub macros and hopefully few prototypes,
20885     which can conflict with char $ac_func(); below.  */
20886 #include <assert.h>
20887 /* Override any gcc2 internal prototype to avoid an error.  */
20888 /* We use char because int might match the return type of a gcc2
20889     builtin and then its argument prototype would still apply.  */
20890 char $ac_func();
20891
20892 int main() {
20893
20894 /* The GNU C library defines this for functions which it implements
20895     to always fail with ENOSYS.  Some functions are actually named
20896     something starting with __ and the normal name is an alias.  */
20897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20898 choke me
20899 #else
20900 $ac_func();
20901 #endif
20902
20903 ; return 0; }
20904 EOF
20905 if { (eval echo configure:20906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20906   rm -rf conftest*
20907   eval "ac_cv_func_$ac_func=yes"
20908 else
20909   echo "configure: failed program was:" >&5
20910   cat conftest.$ac_ext >&5
20911   rm -rf conftest*
20912   eval "ac_cv_func_$ac_func=no"
20913 fi
20914 rm -f conftest*
20915 fi
20916
20917 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20918   echo "$ac_t""yes" 1>&6
20919     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20920   cat >> confdefs.h <<EOF
20921 #define $ac_tr_func 1
20922 EOF
20923  
20924 else
20925   echo "$ac_t""no" 1>&6
20926 \
20927     ac_wfuncs=no
20928 fi
20929 done
20930
20931
20932     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
20933 echo "configure:20934: checking for ISO C99 wchar_t support" >&5
20934     if test x"$has_weof" = xyes &&
20935        test x"$has_wchar_minmax" = xyes &&
20936        test x"$ac_wfuncs" = xyes; then
20937       ac_isoC99_wchar_t=yes
20938     else
20939       ac_isoC99_wchar_t=no
20940     fi
20941     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
20942   
20943             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
20944 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
20945 echo "configure:20946: checking for iconv.h" >&5
20946 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20947   echo $ac_n "(cached) $ac_c" 1>&6
20948 else
20949   cat > conftest.$ac_ext <<EOF
20950 #line 20951 "configure"
20951 #include "confdefs.h"
20952 #include <iconv.h>
20953 EOF
20954 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20955 { (eval echo configure:20956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20956 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20957 if test -z "$ac_err"; then
20958   rm -rf conftest*
20959   eval "ac_cv_header_$ac_safe=yes"
20960 else
20961   echo "$ac_err" >&5
20962   echo "configure: failed program was:" >&5
20963   cat conftest.$ac_ext >&5
20964   rm -rf conftest*
20965   eval "ac_cv_header_$ac_safe=no"
20966 fi
20967 rm -f conftest*
20968 fi
20969 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20970   echo "$ac_t""yes" 1>&6
20971   ac_has_iconv_h=yes
20972 else
20973   echo "$ac_t""no" 1>&6
20974 ac_has_iconv_h=no
20975 fi
20976
20977     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
20978 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
20979 echo "configure:20980: checking for langinfo.h" >&5
20980 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20981   echo $ac_n "(cached) $ac_c" 1>&6
20982 else
20983   cat > conftest.$ac_ext <<EOF
20984 #line 20985 "configure"
20985 #include "confdefs.h"
20986 #include <langinfo.h>
20987 EOF
20988 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20989 { (eval echo configure:20990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20990 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20991 if test -z "$ac_err"; then
20992   rm -rf conftest*
20993   eval "ac_cv_header_$ac_safe=yes"
20994 else
20995   echo "$ac_err" >&5
20996   echo "configure: failed program was:" >&5
20997   cat conftest.$ac_ext >&5
20998   rm -rf conftest*
20999   eval "ac_cv_header_$ac_safe=no"
21000 fi
21001 rm -f conftest*
21002 fi
21003 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21004   echo "$ac_t""yes" 1>&6
21005   ac_has_langinfo_h=yes
21006 else
21007   echo "$ac_t""no" 1>&6
21008 ac_has_langinfo_h=no
21009 fi
21010
21011
21012         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
21013 echo "configure:21014: checking for iconv in -liconv" >&5
21014 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
21015 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21016   echo $ac_n "(cached) $ac_c" 1>&6
21017 else
21018   ac_save_LIBS="$LIBS"
21019 LIBS="-liconv  $LIBS"
21020 cat > conftest.$ac_ext <<EOF
21021 #line 21022 "configure"
21022 #include "confdefs.h"
21023 /* Override any gcc2 internal prototype to avoid an error.  */
21024 /* We use char because int might match the return type of a gcc2
21025     builtin and then its argument prototype would still apply.  */
21026 char iconv();
21027
21028 int main() {
21029 iconv()
21030 ; return 0; }
21031 EOF
21032 if { (eval echo configure:21033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21033   rm -rf conftest*
21034   eval "ac_cv_lib_$ac_lib_var=yes"
21035 else
21036   echo "configure: failed program was:" >&5
21037   cat conftest.$ac_ext >&5
21038   rm -rf conftest*
21039   eval "ac_cv_lib_$ac_lib_var=no"
21040 fi
21041 rm -f conftest*
21042 LIBS="$ac_save_LIBS"
21043
21044 fi
21045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21046   echo "$ac_t""yes" 1>&6
21047   libiconv="-liconv"
21048 else
21049   echo "$ac_t""no" 1>&6
21050 fi
21051
21052     ac_save_LIBS="$LIBS"
21053     LIBS="$LIBS $libiconv"
21054
21055     for ac_func in iconv_open iconv_close iconv nl_langinfo
21056 do
21057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21058 echo "configure:21059: checking for $ac_func" >&5
21059 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21060   echo $ac_n "(cached) $ac_c" 1>&6
21061 else
21062   cat > conftest.$ac_ext <<EOF
21063 #line 21064 "configure"
21064 #include "confdefs.h"
21065 /* System header to define __stub macros and hopefully few prototypes,
21066     which can conflict with char $ac_func(); below.  */
21067 #include <assert.h>
21068 /* Override any gcc2 internal prototype to avoid an error.  */
21069 /* We use char because int might match the return type of a gcc2
21070     builtin and then its argument prototype would still apply.  */
21071 char $ac_func();
21072
21073 int main() {
21074
21075 /* The GNU C library defines this for functions which it implements
21076     to always fail with ENOSYS.  Some functions are actually named
21077     something starting with __ and the normal name is an alias.  */
21078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21079 choke me
21080 #else
21081 $ac_func();
21082 #endif
21083
21084 ; return 0; }
21085 EOF
21086 if { (eval echo configure:21087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21087   rm -rf conftest*
21088   eval "ac_cv_func_$ac_func=yes"
21089 else
21090   echo "configure: failed program was:" >&5
21091   cat conftest.$ac_ext >&5
21092   rm -rf conftest*
21093   eval "ac_cv_func_$ac_func=no"
21094 fi
21095 rm -f conftest*
21096 fi
21097
21098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21099   echo "$ac_t""yes" 1>&6
21100     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21101   cat >> confdefs.h <<EOF
21102 #define $ac_tr_func 1
21103 EOF
21104  \
21105     ac_XPG2funcs=yes
21106 else
21107   echo "$ac_t""no" 1>&6
21108 ac_XPG2funcs=no
21109 fi
21110 done
21111
21112   
21113     LIBS="$ac_save_LIBS"
21114
21115     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
21116 echo "configure:21117: checking for XPG2 wchar_t support" >&5
21117     if test x"$ac_has_iconv_h" = xyes &&
21118        test x"$ac_has_langinfo_h" = xyes &&
21119        test x"$ac_XPG2funcs" = xyes; then
21120       ac_XPG2_wchar_t=yes
21121     else
21122       ac_XPG2_wchar_t=no
21123     fi
21124     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
21125   
21126             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
21127 echo "configure:21128: checking for enabled wchar_t specializations" >&5
21128     if test x"$ac_isoC99_wchar_t" = xyes &&
21129        test x"$ac_XPG2_wchar_t" = xyes; then
21130       cat >> confdefs.h <<\EOF
21131 #define _GLIBCPP_USE_WCHAR_T 1
21132 EOF
21133
21134       echo "$ac_t"""yes"" 1>&6
21135     else
21136       echo "$ac_t"""no"" 1>&6
21137     fi
21138   else
21139         echo "configure: warning: wchar_t support disabled." 1>&2
21140   fi
21141
21142   
21143   ac_test_CXXFLAGS="${CXXFLAGS+set}"
21144   ac_save_CXXFLAGS="$CXXFLAGS"
21145   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
21146
21147   
21148   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
21149 echo "configure:21150: checking for strtold declaration" >&5
21150   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
21151     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
21152   echo $ac_n "(cached) $ac_c" 1>&6
21153 else
21154   
21155       
21156       ac_ext=C
21157 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21158 ac_cpp='$CXXCPP $CPPFLAGS'
21159 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21160 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21161 cross_compiling=$ac_cv_prog_cxx_cross
21162
21163       cat > conftest.$ac_ext <<EOF
21164 #line 21165 "configure"
21165 #include "confdefs.h"
21166 #include <stdlib.h>
21167 int main() {
21168  strtold(0, 0);
21169 ; return 0; }
21170 EOF
21171 if { (eval echo configure:21172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21172   rm -rf conftest*
21173   glibcpp_cv_func_strtold_use=yes
21174 else
21175   echo "configure: failed program was:" >&5
21176   cat conftest.$ac_ext >&5
21177   rm -rf conftest*
21178   glibcpp_cv_func_strtold_use=no
21179 fi
21180 rm -f conftest*
21181       ac_ext=c
21182 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21183 ac_cpp='$CPP $CPPFLAGS'
21184 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21185 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21186 cross_compiling=$ac_cv_prog_cc_cross
21187
21188     
21189 fi
21190
21191   fi
21192   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
21193   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
21194     for ac_func in strtold
21195 do
21196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21197 echo "configure:21198: checking for $ac_func" >&5
21198 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21199   echo $ac_n "(cached) $ac_c" 1>&6
21200 else
21201   cat > conftest.$ac_ext <<EOF
21202 #line 21203 "configure"
21203 #include "confdefs.h"
21204 /* System header to define __stub macros and hopefully few prototypes,
21205     which can conflict with char $ac_func(); below.  */
21206 #include <assert.h>
21207 /* Override any gcc2 internal prototype to avoid an error.  */
21208 /* We use char because int might match the return type of a gcc2
21209     builtin and then its argument prototype would still apply.  */
21210 char $ac_func();
21211
21212 int main() {
21213
21214 /* The GNU C library defines this for functions which it implements
21215     to always fail with ENOSYS.  Some functions are actually named
21216     something starting with __ and the normal name is an alias.  */
21217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21218 choke me
21219 #else
21220 $ac_func();
21221 #endif
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   eval "ac_cv_func_$ac_func=yes"
21228 else
21229   echo "configure: failed program was:" >&5
21230   cat conftest.$ac_ext >&5
21231   rm -rf conftest*
21232   eval "ac_cv_func_$ac_func=no"
21233 fi
21234 rm -f conftest*
21235 fi
21236
21237 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21238   echo "$ac_t""yes" 1>&6
21239     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21240   cat >> confdefs.h <<EOF
21241 #define $ac_tr_func 1
21242 EOF
21243  
21244 else
21245   echo "$ac_t""no" 1>&6
21246 fi
21247 done
21248     
21249   fi
21250
21251   
21252   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
21253 echo "configure:21254: checking for strtof declaration" >&5
21254   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
21255     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
21256   echo $ac_n "(cached) $ac_c" 1>&6
21257 else
21258   
21259       
21260       ac_ext=C
21261 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21262 ac_cpp='$CXXCPP $CPPFLAGS'
21263 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21264 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21265 cross_compiling=$ac_cv_prog_cxx_cross
21266
21267       cat > conftest.$ac_ext <<EOF
21268 #line 21269 "configure"
21269 #include "confdefs.h"
21270 #include <stdlib.h>
21271 int main() {
21272  strtof(0, 0);
21273 ; return 0; }
21274 EOF
21275 if { (eval echo configure:21276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21276   rm -rf conftest*
21277   glibcpp_cv_func_strtof_use=yes
21278 else
21279   echo "configure: failed program was:" >&5
21280   cat conftest.$ac_ext >&5
21281   rm -rf conftest*
21282   glibcpp_cv_func_strtof_use=no
21283 fi
21284 rm -f conftest*
21285       ac_ext=c
21286 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21287 ac_cpp='$CPP $CPPFLAGS'
21288 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21289 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21290 cross_compiling=$ac_cv_prog_cc_cross
21291
21292     
21293 fi
21294
21295   fi
21296   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
21297   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
21298     for ac_func in strtof
21299 do
21300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21301 echo "configure:21302: checking for $ac_func" >&5
21302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21303   echo $ac_n "(cached) $ac_c" 1>&6
21304 else
21305   cat > conftest.$ac_ext <<EOF
21306 #line 21307 "configure"
21307 #include "confdefs.h"
21308 /* System header to define __stub macros and hopefully few prototypes,
21309     which can conflict with char $ac_func(); below.  */
21310 #include <assert.h>
21311 /* Override any gcc2 internal prototype to avoid an error.  */
21312 /* We use char because int might match the return type of a gcc2
21313     builtin and then its argument prototype would still apply.  */
21314 char $ac_func();
21315
21316 int main() {
21317
21318 /* The GNU C library defines this for functions which it implements
21319     to always fail with ENOSYS.  Some functions are actually named
21320     something starting with __ and the normal name is an alias.  */
21321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21322 choke me
21323 #else
21324 $ac_func();
21325 #endif
21326
21327 ; return 0; }
21328 EOF
21329 if { (eval echo configure:21330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21330   rm -rf conftest*
21331   eval "ac_cv_func_$ac_func=yes"
21332 else
21333   echo "configure: failed program was:" >&5
21334   cat conftest.$ac_ext >&5
21335   rm -rf conftest*
21336   eval "ac_cv_func_$ac_func=no"
21337 fi
21338 rm -f conftest*
21339 fi
21340
21341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21342   echo "$ac_t""yes" 1>&6
21343     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21344   cat >> confdefs.h <<EOF
21345 #define $ac_tr_func 1
21346 EOF
21347  
21348 else
21349   echo "$ac_t""no" 1>&6
21350 fi
21351 done
21352     
21353   fi
21354
21355   for ac_func in drand48
21356 do
21357 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21358 echo "configure:21359: checking for $ac_func" >&5
21359 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21360   echo $ac_n "(cached) $ac_c" 1>&6
21361 else
21362   cat > conftest.$ac_ext <<EOF
21363 #line 21364 "configure"
21364 #include "confdefs.h"
21365 /* System header to define __stub macros and hopefully few prototypes,
21366     which can conflict with char $ac_func(); below.  */
21367 #include <assert.h>
21368 /* Override any gcc2 internal prototype to avoid an error.  */
21369 /* We use char because int might match the return type of a gcc2
21370     builtin and then its argument prototype would still apply.  */
21371 char $ac_func();
21372
21373 int main() {
21374
21375 /* The GNU C library defines this for functions which it implements
21376     to always fail with ENOSYS.  Some functions are actually named
21377     something starting with __ and the normal name is an alias.  */
21378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21379 choke me
21380 #else
21381 $ac_func();
21382 #endif
21383
21384 ; return 0; }
21385 EOF
21386 if { (eval echo configure:21387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21387   rm -rf conftest*
21388   eval "ac_cv_func_$ac_func=yes"
21389 else
21390   echo "configure: failed program was:" >&5
21391   cat conftest.$ac_ext >&5
21392   rm -rf conftest*
21393   eval "ac_cv_func_$ac_func=no"
21394 fi
21395 rm -f conftest*
21396 fi
21397
21398 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21399   echo "$ac_t""yes" 1>&6
21400     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21401   cat >> confdefs.h <<EOF
21402 #define $ac_tr_func 1
21403 EOF
21404  
21405 else
21406   echo "$ac_t""no" 1>&6
21407 fi
21408 done
21409
21410
21411   CXXFLAGS="$ac_save_CXXFLAGS"
21412
21413   
21414   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
21415 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
21416 echo "configure:21417: checking for locale.h" >&5
21417 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21418   echo $ac_n "(cached) $ac_c" 1>&6
21419 else
21420   cat > conftest.$ac_ext <<EOF
21421 #line 21422 "configure"
21422 #include "confdefs.h"
21423 #include <locale.h>
21424 EOF
21425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21426 { (eval echo configure:21427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21428 if test -z "$ac_err"; then
21429   rm -rf conftest*
21430   eval "ac_cv_header_$ac_safe=yes"
21431 else
21432   echo "$ac_err" >&5
21433   echo "configure: failed program was:" >&5
21434   cat conftest.$ac_ext >&5
21435   rm -rf conftest*
21436   eval "ac_cv_header_$ac_safe=no"
21437 fi
21438 rm -f conftest*
21439 fi
21440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21441   echo "$ac_t""yes" 1>&6
21442   
21443     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
21444 echo "configure:21445: checking for LC_MESSAGES" >&5
21445 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
21446   echo $ac_n "(cached) $ac_c" 1>&6
21447 else
21448   cat > conftest.$ac_ext <<EOF
21449 #line 21450 "configure"
21450 #include "confdefs.h"
21451 #include <locale.h>
21452 int main() {
21453 return LC_MESSAGES
21454 ; return 0; }
21455 EOF
21456 if { (eval echo configure:21457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21457   rm -rf conftest*
21458   ac_cv_val_LC_MESSAGES=yes
21459 else
21460   echo "configure: failed program was:" >&5
21461   cat conftest.$ac_ext >&5
21462   rm -rf conftest*
21463   ac_cv_val_LC_MESSAGES=no
21464 fi
21465 rm -f conftest*
21466 fi
21467
21468 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
21469     if test $ac_cv_val_LC_MESSAGES = yes; then
21470       cat >> confdefs.h <<\EOF
21471 #define HAVE_LC_MESSAGES 1
21472 EOF
21473
21474     fi
21475   
21476 else
21477   echo "$ac_t""no" 1>&6
21478 fi
21479
21480
21481
21482   cat > conftest.$ac_ext <<EOF
21483 #line 21484 "configure"
21484 #include "confdefs.h"
21485
21486   #include <setjmp.h>
21487   
21488 int main() {
21489 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
21490 ; return 0; }
21491 EOF
21492 if { (eval echo configure:21493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21493   rm -rf conftest*
21494   cat >> confdefs.h <<\EOF
21495 #define HAVE_SIGSETJMP 1
21496 EOF
21497
21498   
21499 else
21500   echo "configure: failed program was:" >&5
21501   cat conftest.$ac_ext >&5
21502 fi
21503 rm -f conftest*
21504
21505   for ac_hdr in unistd.h
21506 do
21507 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21508 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21509 echo "configure:21510: checking for $ac_hdr" >&5
21510 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21511   echo $ac_n "(cached) $ac_c" 1>&6
21512 else
21513   cat > conftest.$ac_ext <<EOF
21514 #line 21515 "configure"
21515 #include "confdefs.h"
21516 #include <$ac_hdr>
21517 EOF
21518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21519 { (eval echo configure:21520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21521 if test -z "$ac_err"; then
21522   rm -rf conftest*
21523   eval "ac_cv_header_$ac_safe=yes"
21524 else
21525   echo "$ac_err" >&5
21526   echo "configure: failed program was:" >&5
21527   cat conftest.$ac_ext >&5
21528   rm -rf conftest*
21529   eval "ac_cv_header_$ac_safe=no"
21530 fi
21531 rm -f conftest*
21532 fi
21533 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21534   echo "$ac_t""yes" 1>&6
21535     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21536   cat >> confdefs.h <<EOF
21537 #define $ac_tr_hdr 1
21538 EOF
21539  
21540 else
21541   echo "$ac_t""no" 1>&6
21542 fi
21543 done
21544
21545 for ac_func in getpagesize
21546 do
21547 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21548 echo "configure:21549: checking for $ac_func" >&5
21549 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21550   echo $ac_n "(cached) $ac_c" 1>&6
21551 else
21552   cat > conftest.$ac_ext <<EOF
21553 #line 21554 "configure"
21554 #include "confdefs.h"
21555 /* System header to define __stub macros and hopefully few prototypes,
21556     which can conflict with char $ac_func(); below.  */
21557 #include <assert.h>
21558 /* Override any gcc2 internal prototype to avoid an error.  */
21559 /* We use char because int might match the return type of a gcc2
21560     builtin and then its argument prototype would still apply.  */
21561 char $ac_func();
21562
21563 int main() {
21564
21565 /* The GNU C library defines this for functions which it implements
21566     to always fail with ENOSYS.  Some functions are actually named
21567     something starting with __ and the normal name is an alias.  */
21568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21569 choke me
21570 #else
21571 $ac_func();
21572 #endif
21573
21574 ; return 0; }
21575 EOF
21576 if { (eval echo configure:21577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21577   rm -rf conftest*
21578   eval "ac_cv_func_$ac_func=yes"
21579 else
21580   echo "configure: failed program was:" >&5
21581   cat conftest.$ac_ext >&5
21582   rm -rf conftest*
21583   eval "ac_cv_func_$ac_func=no"
21584 fi
21585 rm -f conftest*
21586 fi
21587
21588 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21589   echo "$ac_t""yes" 1>&6
21590     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21591   cat >> confdefs.h <<EOF
21592 #define $ac_tr_func 1
21593 EOF
21594  
21595 else
21596   echo "$ac_t""no" 1>&6
21597 fi
21598 done
21599
21600 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
21601 echo "configure:21602: checking for working mmap" >&5
21602 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
21603   echo $ac_n "(cached) $ac_c" 1>&6
21604 else
21605   if test "$cross_compiling" = yes; then
21606   ac_cv_func_mmap_fixed_mapped=no
21607 else
21608   cat > conftest.$ac_ext <<EOF
21609 #line 21610 "configure"
21610 #include "confdefs.h"
21611
21612 /* Thanks to Mike Haertel and Jim Avera for this test.
21613    Here is a matrix of mmap possibilities:
21614         mmap private not fixed
21615         mmap private fixed at somewhere currently unmapped
21616         mmap private fixed at somewhere already mapped
21617         mmap shared not fixed
21618         mmap shared fixed at somewhere currently unmapped
21619         mmap shared fixed at somewhere already mapped
21620    For private mappings, we should verify that changes cannot be read()
21621    back from the file, nor mmap's back from the file at a different
21622    address.  (There have been systems where private was not correctly
21623    implemented like the infamous i386 svr4.0, and systems where the
21624    VM page cache was not coherent with the filesystem buffer cache
21625    like early versions of FreeBSD and possibly contemporary NetBSD.)
21626    For shared mappings, we should conversely verify that changes get
21627    propogated back to all the places they're supposed to be.
21628
21629    Grep wants private fixed already mapped.
21630    The main things grep needs to know about mmap are:
21631    * does it exist and is it safe to write into the mmap'd area
21632    * how to use it (BSD variants)  */
21633 #include <sys/types.h>
21634 #include <fcntl.h>
21635 #include <sys/mman.h>
21636
21637 /* This mess was copied from the GNU getpagesize.h.  */
21638 #ifndef HAVE_GETPAGESIZE
21639 # ifdef HAVE_UNISTD_H
21640 #  include <unistd.h>
21641 # endif
21642
21643 /* Assume that all systems that can run configure have sys/param.h.  */
21644 # ifndef HAVE_SYS_PARAM_H
21645 #  define HAVE_SYS_PARAM_H 1
21646 # endif
21647
21648 # ifdef _SC_PAGESIZE
21649 #  define getpagesize() sysconf(_SC_PAGESIZE)
21650 # else /* no _SC_PAGESIZE */
21651 #  ifdef HAVE_SYS_PARAM_H
21652 #   include <sys/param.h>
21653 #   ifdef EXEC_PAGESIZE
21654 #    define getpagesize() EXEC_PAGESIZE
21655 #   else /* no EXEC_PAGESIZE */
21656 #    ifdef NBPG
21657 #     define getpagesize() NBPG * CLSIZE
21658 #     ifndef CLSIZE
21659 #      define CLSIZE 1
21660 #     endif /* no CLSIZE */
21661 #    else /* no NBPG */
21662 #     ifdef NBPC
21663 #      define getpagesize() NBPC
21664 #     else /* no NBPC */
21665 #      ifdef PAGESIZE
21666 #       define getpagesize() PAGESIZE
21667 #      endif /* PAGESIZE */
21668 #     endif /* no NBPC */
21669 #    endif /* no NBPG */
21670 #   endif /* no EXEC_PAGESIZE */
21671 #  else /* no HAVE_SYS_PARAM_H */
21672 #   define getpagesize() 8192   /* punt totally */
21673 #  endif /* no HAVE_SYS_PARAM_H */
21674 # endif /* no _SC_PAGESIZE */
21675
21676 #endif /* no HAVE_GETPAGESIZE */
21677
21678 #ifdef __cplusplus
21679 extern "C" { void *malloc(unsigned); }
21680 #else
21681 char *malloc();
21682 #endif
21683
21684 int
21685 main()
21686 {
21687         char *data, *data2, *data3;
21688         int i, pagesize;
21689         int fd;
21690
21691         pagesize = getpagesize();
21692
21693         /*
21694          * First, make a file with some known garbage in it.
21695          */
21696         data = malloc(pagesize);
21697         if (!data)
21698                 exit(1);
21699         for (i = 0; i < pagesize; ++i)
21700                 *(data + i) = rand();
21701         umask(0);
21702         fd = creat("conftestmmap", 0600);
21703         if (fd < 0)
21704                 exit(1);
21705         if (write(fd, data, pagesize) != pagesize)
21706                 exit(1);
21707         close(fd);
21708
21709         /*
21710          * Next, try to mmap the file at a fixed address which
21711          * already has something else allocated at it.  If we can,
21712          * also make sure that we see the same garbage.
21713          */
21714         fd = open("conftestmmap", O_RDWR);
21715         if (fd < 0)
21716                 exit(1);
21717         data2 = malloc(2 * pagesize);
21718         if (!data2)
21719                 exit(1);
21720         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21721         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
21722             MAP_PRIVATE | MAP_FIXED, fd, 0L))
21723                 exit(1);
21724         for (i = 0; i < pagesize; ++i)
21725                 if (*(data + i) != *(data2 + i))
21726                         exit(1);
21727
21728         /*
21729          * Finally, make sure that changes to the mapped area
21730          * do not percolate back to the file as seen by read().
21731          * (This is a bug on some variants of i386 svr4.0.)
21732          */
21733         for (i = 0; i < pagesize; ++i)
21734                 *(data2 + i) = *(data2 + i) + 1;
21735         data3 = malloc(pagesize);
21736         if (!data3)
21737                 exit(1);
21738         if (read(fd, data3, pagesize) != pagesize)
21739                 exit(1);
21740         for (i = 0; i < pagesize; ++i)
21741                 if (*(data + i) != *(data3 + i))
21742                         exit(1);
21743         close(fd);
21744         unlink("conftestmmap");
21745         exit(0);
21746 }
21747
21748 EOF
21749 if { (eval echo configure:21750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21750 then
21751   ac_cv_func_mmap_fixed_mapped=yes
21752 else
21753   echo "configure: failed program was:" >&5
21754   cat conftest.$ac_ext >&5
21755   rm -fr conftest*
21756   ac_cv_func_mmap_fixed_mapped=no
21757 fi
21758 rm -fr conftest*
21759 fi
21760
21761 fi
21762
21763 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
21764 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21765   cat >> confdefs.h <<\EOF
21766 #define HAVE_MMAP 1
21767 EOF
21768
21769 fi
21770
21771
21772   # Establish limits on memory usage during 'make check'
21773   
21774   
21775   setrlimit_have_headers=yes
21776   for ac_hdr in unistd.h sys/time.h sys/resource.h
21777 do
21778 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21779 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21780 echo "configure:21781: checking for $ac_hdr" >&5
21781 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21782   echo $ac_n "(cached) $ac_c" 1>&6
21783 else
21784   cat > conftest.$ac_ext <<EOF
21785 #line 21786 "configure"
21786 #include "confdefs.h"
21787 #include <$ac_hdr>
21788 EOF
21789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21790 { (eval echo configure:21791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21791 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21792 if test -z "$ac_err"; then
21793   rm -rf conftest*
21794   eval "ac_cv_header_$ac_safe=yes"
21795 else
21796   echo "$ac_err" >&5
21797   echo "configure: failed program was:" >&5
21798   cat conftest.$ac_ext >&5
21799   rm -rf conftest*
21800   eval "ac_cv_header_$ac_safe=no"
21801 fi
21802 rm -f conftest*
21803 fi
21804 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21805   echo "$ac_t""yes" 1>&6
21806     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21807   cat >> confdefs.h <<EOF
21808 #define $ac_tr_hdr 1
21809 EOF
21810  
21811 else
21812   echo "$ac_t""no" 1>&6
21813 setrlimit_have_headers=no
21814 fi
21815 done
21816
21817   # If don't have the headers, then we can't run the tests now, and we
21818   # won't be seeing any of these during testsuite compilation.
21819   if test $setrlimit_have_headers = yes; then
21820     # Can't do these in a loop, else the resulting syntax is wrong.
21821     
21822   cat > conftest.$ac_ext <<EOF
21823 #line 21824 "configure"
21824 #include "confdefs.h"
21825 #include <unistd.h>
21826                   #include <sys/time.h>
21827                   #include <sys/resource.h>
21828                  
21829 int main() {
21830  int f = RLIMIT_DATA ; 
21831 ; return 0; }
21832 EOF
21833 if { (eval echo configure:21834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21834   rm -rf conftest*
21835   glibcpp_mresult=1
21836 else
21837   echo "configure: failed program was:" >&5
21838   cat conftest.$ac_ext >&5
21839   rm -rf conftest*
21840   glibcpp_mresult=0
21841 fi
21842 rm -f conftest*
21843   cat >> confdefs.h <<EOF
21844 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
21845 EOF
21846
21847
21848     
21849   cat > conftest.$ac_ext <<EOF
21850 #line 21851 "configure"
21851 #include "confdefs.h"
21852 #include <unistd.h>
21853                   #include <sys/time.h>
21854                   #include <sys/resource.h>
21855                  
21856 int main() {
21857  int f = RLIMIT_RSS ; 
21858 ; return 0; }
21859 EOF
21860 if { (eval echo configure:21861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21861   rm -rf conftest*
21862   glibcpp_mresult=1
21863 else
21864   echo "configure: failed program was:" >&5
21865   cat conftest.$ac_ext >&5
21866   rm -rf conftest*
21867   glibcpp_mresult=0
21868 fi
21869 rm -f conftest*
21870   cat >> confdefs.h <<EOF
21871 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
21872 EOF
21873
21874
21875     
21876   cat > conftest.$ac_ext <<EOF
21877 #line 21878 "configure"
21878 #include "confdefs.h"
21879 #include <unistd.h>
21880                   #include <sys/time.h>
21881                   #include <sys/resource.h>
21882                  
21883 int main() {
21884  int f = RLIMIT_VMEM ; 
21885 ; return 0; }
21886 EOF
21887 if { (eval echo configure:21888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21888   rm -rf conftest*
21889   glibcpp_mresult=1
21890 else
21891   echo "configure: failed program was:" >&5
21892   cat conftest.$ac_ext >&5
21893   rm -rf conftest*
21894   glibcpp_mresult=0
21895 fi
21896 rm -f conftest*
21897   cat >> confdefs.h <<EOF
21898 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
21899 EOF
21900
21901
21902     
21903   cat > conftest.$ac_ext <<EOF
21904 #line 21905 "configure"
21905 #include "confdefs.h"
21906 #include <unistd.h>
21907                   #include <sys/time.h>
21908                   #include <sys/resource.h>
21909                  
21910 int main() {
21911  int f = RLIMIT_AS ; 
21912 ; return 0; }
21913 EOF
21914 if { (eval echo configure:21915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21915   rm -rf conftest*
21916   glibcpp_mresult=1
21917 else
21918   echo "configure: failed program was:" >&5
21919   cat conftest.$ac_ext >&5
21920   rm -rf conftest*
21921   glibcpp_mresult=0
21922 fi
21923 rm -f conftest*
21924   cat >> confdefs.h <<EOF
21925 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
21926 EOF
21927
21928
21929
21930     # Check for rlimit, setrlimit.
21931     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
21932   echo $ac_n "(cached) $ac_c" 1>&6
21933 else
21934   
21935       cat > conftest.$ac_ext <<EOF
21936 #line 21937 "configure"
21937 #include "confdefs.h"
21938 #include <unistd.h>
21939                   #include <sys/time.h>
21940                   #include <sys/resource.h>
21941                      
21942 int main() {
21943  struct rlimit r; setrlimit(0, &r);
21944 ; return 0; }
21945 EOF
21946 if { (eval echo configure:21947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21947   rm -rf conftest*
21948   ac_setrlimit=yes
21949 else
21950   echo "configure: failed program was:" >&5
21951   cat conftest.$ac_ext >&5
21952   rm -rf conftest*
21953   ac_setrlimit=no
21954 fi
21955 rm -f conftest*
21956     
21957 fi
21958
21959   fi
21960
21961   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
21962 echo "configure:21963: checking for testsuite memory limit support" >&5
21963   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
21964     ac_mem_limits=yes
21965     cat >> confdefs.h <<\EOF
21966 #define _GLIBCPP_MEM_LIMITS 1
21967 EOF
21968
21969   else
21970     ac_mem_limits=no
21971   fi
21972   echo "$ac_t""$ac_mem_limits" 1>&6
21973
21974
21975   # Look for setenv, so that extended locale tests can be performed.
21976   
21977   echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
21978 echo "configure:21979: checking for setenv declaration" >&5
21979   if test x${glibcpp_cv_func_setenv_use+set} != xset; then
21980     if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
21981   echo $ac_n "(cached) $ac_c" 1>&6
21982 else
21983   
21984       
21985       ac_ext=C
21986 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21987 ac_cpp='$CXXCPP $CPPFLAGS'
21988 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21989 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21990 cross_compiling=$ac_cv_prog_cxx_cross
21991
21992       cat > conftest.$ac_ext <<EOF
21993 #line 21994 "configure"
21994 #include "confdefs.h"
21995 #include <stdlib.h>
21996 int main() {
21997  setenv(0, 0, 0);
21998 ; return 0; }
21999 EOF
22000 if { (eval echo configure:22001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22001   rm -rf conftest*
22002   glibcpp_cv_func_setenv_use=yes
22003 else
22004   echo "configure: failed program was:" >&5
22005   cat conftest.$ac_ext >&5
22006   rm -rf conftest*
22007   glibcpp_cv_func_setenv_use=no
22008 fi
22009 rm -f conftest*
22010       ac_ext=c
22011 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22012 ac_cpp='$CPP $CPPFLAGS'
22013 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22014 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22015 cross_compiling=$ac_cv_prog_cc_cross
22016
22017     
22018 fi
22019
22020   fi
22021   echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
22022   if test x$glibcpp_cv_func_setenv_use = x"yes"; then
22023     for ac_func in setenv
22024 do
22025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22026 echo "configure:22027: checking for $ac_func" >&5
22027 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22028   echo $ac_n "(cached) $ac_c" 1>&6
22029 else
22030   cat > conftest.$ac_ext <<EOF
22031 #line 22032 "configure"
22032 #include "confdefs.h"
22033 /* System header to define __stub macros and hopefully few prototypes,
22034     which can conflict with char $ac_func(); below.  */
22035 #include <assert.h>
22036 /* Override any gcc2 internal prototype to avoid an error.  */
22037 /* We use char because int might match the return type of a gcc2
22038     builtin and then its argument prototype would still apply.  */
22039 char $ac_func();
22040
22041 int main() {
22042
22043 /* The GNU C library defines this for functions which it implements
22044     to always fail with ENOSYS.  Some functions are actually named
22045     something starting with __ and the normal name is an alias.  */
22046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22047 choke me
22048 #else
22049 $ac_func();
22050 #endif
22051
22052 ; return 0; }
22053 EOF
22054 if { (eval echo configure:22055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22055   rm -rf conftest*
22056   eval "ac_cv_func_$ac_func=yes"
22057 else
22058   echo "configure: failed program was:" >&5
22059   cat conftest.$ac_ext >&5
22060   rm -rf conftest*
22061   eval "ac_cv_func_$ac_func=no"
22062 fi
22063 rm -f conftest*
22064 fi
22065
22066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22067   echo "$ac_t""yes" 1>&6
22068     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22069   cat >> confdefs.h <<EOF
22070 #define $ac_tr_func 1
22071 EOF
22072  
22073 else
22074   echo "$ac_t""no" 1>&6
22075 fi
22076 done
22077     
22078   fi
22079
22080
22081 fi
22082
22083 # This depends on the possibly-skipped linker test above.
22084 # Check whether --enable-symvers or --disable-symvers was given.
22085 if test "${enable_symvers+set}" = set; then
22086   enableval="$enable_symvers"
22087   case "$enableval" in
22088  yes) enable_symvers=yes ;;
22089  no)  enable_symvers=no ;;
22090  # other names here, just as sanity checks
22091  #gnu|sun|etcetera) enable_symvers=$enableval ;;
22092  gnu) enable_symvers=$enableval ;;
22093  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
22094  esac
22095 else
22096   enable_symvers=yes
22097 fi
22098
22099 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
22100 # don't know enough about $LD to do tricks... 
22101 if test x$enable_shared = xno || 
22102         test "x$LD" = x || 
22103         test x$glibcpp_gnu_ld_version = x; then
22104   enable_symvers=no
22105 fi
22106
22107 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
22108 if test $enable_symvers != no; then
22109   echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
22110 echo "configure:22111: checking for shared libgcc" >&5
22111   ac_save_CFLAGS="$CFLAGS"
22112   CFLAGS=' -lgcc_s'
22113   cat > conftest.$ac_ext <<EOF
22114 #line 22115 "configure"
22115 #include "confdefs.h"
22116
22117 int main() {
22118 return 0
22119 ; return 0; }
22120 EOF
22121 if { (eval echo configure:22122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22122   rm -rf conftest*
22123   glibcpp_shared_libgcc=yes
22124 else
22125   echo "configure: failed program was:" >&5
22126   cat conftest.$ac_ext >&5
22127   rm -rf conftest*
22128   glibcpp_shared_libgcc=no
22129 fi
22130 rm -f conftest*
22131   CFLAGS="$ac_save_CFLAGS"
22132   echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
22133 fi
22134
22135 # For GNU ld, we need at least this version.  It's 2.12 in the same format
22136 # as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
22137 glibcpp_min_gnu_ld_version=21200
22138
22139 # Check to see if unspecified "yes" value can win, given results
22140 # above.  
22141 if test $enable_symvers = yes ; then
22142   if test $with_gnu_ld = yes &&
22143     test $glibcpp_shared_libgcc = yes ;
22144   then
22145     if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
22146         enable_symvers=gnu
22147     else
22148       ac_test_CFLAGS="${CFLAGS+set}"
22149       ac_save_CFLAGS="$CFLAGS"
22150       CFLAGS='-shared -Wl,--version-script,conftest.map'
22151       enable_symvers=no
22152       
22153       echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
22154       
22155       cat > conftest.$ac_ext <<EOF
22156 #line 22157 "configure"
22157 #include "confdefs.h"
22158 int foo;
22159 int main() {
22160
22161 ; return 0; }
22162 EOF
22163 if { (eval echo configure:22164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22164   rm -rf conftest*
22165   enable_symvers=gnu
22166 else
22167   echo "configure: failed program was:" >&5
22168   cat conftest.$ac_ext >&5
22169 fi
22170 rm -f conftest*
22171       if test "$ac_test_CFLAGS" = set; then
22172         CFLAGS="$ac_save_CFLAGS"
22173       else
22174         # this is the suspicious part
22175         CFLAGS=''
22176       fi
22177       rm -f conftest.map
22178     fi
22179   else
22180     # just fail for now
22181     enable_symvers=no
22182   fi
22183 fi
22184
22185 case $enable_symvers in
22186   no)
22187       LINKER_MAP=config/linker-map.dummy
22188       ;;
22189   gnu)
22190       LINKER_MAP=config/linker-map.gnu
22191       ;;
22192 esac
22193
22194
22195
22196
22197 if test $enable_symvers != no; then
22198   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
22199   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
22200 else
22201   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
22202   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
22203 fi
22204 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
22205 echo "configure:22206: checking versioning on shared library symbols" >&5
22206 echo "$ac_t""$enable_symvers" 1>&6
22207
22208
22209 # Propagate the target-specific source directories through the build chain.
22210 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH and
22211 # CPULIMITSH [might] use it, and they only get used here.)
22212 OS_INC_SRCDIR=config/${os_include_dir}
22213 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
22214 CPU_LIMITS_INC_SRCDIR=config/${CPULIMITSH}
22215
22216
22217
22218
22219 # Set up cross-compile flags
22220   
22221
22222 if test "$CANADIAN" = yes; then
22223   CANADIAN_TRUE=
22224   CANADIAN_FALSE='#'
22225 else
22226   CANADIAN_TRUE='#'
22227   CANADIAN_FALSE=
22228 fi
22229  
22230 cat > confcache <<\EOF
22231 # This file is a shell script that caches the results of configure
22232 # tests run on this system so they can be shared between configure
22233 # scripts and configure runs.  It is not useful on other systems.
22234 # If it contains results you don't want to keep, you may remove or edit it.
22235 #
22236 # By default, configure uses ./config.cache as the cache file,
22237 # creating it if it does not exist already.  You can give configure
22238 # the --cache-file=FILE option to use a different cache file; that is
22239 # what configure does when it calls configure scripts in
22240 # subdirectories, so they share the cache.
22241 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22242 # config.status only pays attention to the cache file if you give it the
22243 # --recheck option to rerun configure.
22244 #
22245 EOF
22246 # The following way of writing the cache mishandles newlines in values,
22247 # but we know of no workaround that is simple, portable, and efficient.
22248 # So, don't put newlines in cache variables' values.
22249 # Ultrix sh set writes to stderr and can't be redirected directly,
22250 # and sets the high bit in the cache file unless we assign to the vars.
22251 (set) 2>&1 |
22252   case `(ac_space=' '; set | grep ac_space) 2>&1` in
22253   *ac_space=\ *)
22254     # `set' does not quote correctly, so add quotes (double-quote substitution
22255     # turns \\\\ into \\, and sed turns \\ into \).
22256     sed -n \
22257       -e "s/'/'\\\\''/g" \
22258       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22259     ;;
22260   *)
22261     # `set' quotes correctly as required by POSIX, so do not add quotes.
22262     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22263     ;;
22264   esac >> confcache
22265 if cmp -s $cache_file confcache; then
22266   :
22267 else
22268   if test -w $cache_file; then
22269     echo "updating cache $cache_file"
22270     cat confcache > $cache_file
22271   else
22272     echo "not updating unwritable cache $cache_file"
22273   fi
22274 fi
22275 rm -f confcache
22276
22277
22278 if test "${multilib}" = "yes"; then
22279   multilib_arg="--enable-multilib"
22280 else
22281   multilib_arg=
22282 fi
22283
22284 # Export all the install information
22285
22286 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
22287 # exported correctly in GLIBCPP_CONFIGURE.
22288 glibcpp_toolexecdir=no
22289 glibcpp_toolexeclibdir=no
22290 glibcpp_prefixdir=${prefix}
22291
22292 # Process the option --with-gxx-include-dir=<path to include-files directory>
22293 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
22294 echo "configure:22295: checking for --with-gxx-include-dir" >&5
22295 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
22296 if test "${with_gxx_include_dir+set}" = set; then
22297   withval="$with_gxx_include_dir"
22298   case "${withval}" in
22299   yes)
22300     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
22301     gxx_include_dir=no
22302     ;;
22303   no)
22304     gxx_include_dir=no
22305     ;;
22306   *)
22307     gxx_include_dir=${withval}
22308     ;;
22309 esac
22310 else
22311   gxx_include_dir=no
22312 fi
22313
22314 echo "$ac_t""$gxx_include_dir" 1>&6
22315
22316 # Process the option "--enable-version-specific-runtime-libs"
22317 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
22318 echo "configure:22319: checking for --enable-version-specific-runtime-libs" >&5
22319 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
22320 if test "${enable_version_specific_runtime_libs+set}" = set; then
22321   enableval="$enable_version_specific_runtime_libs"
22322   case "$enableval" in
22323  yes) version_specific_libs=yes ;;
22324  no)  version_specific_libs=no ;;
22325  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
22326  esac
22327 else
22328   version_specific_libs=no
22329 fi
22330 # Option set, now we can test it.
22331 echo "$ac_t""$version_specific_libs" 1>&6
22332
22333 # Default case for install directory for include files.
22334 if test $version_specific_libs = no && test $gxx_include_dir = no; then
22335   gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
22336 fi
22337
22338 # Version-specific runtime libs processing.
22339 if test $version_specific_libs = yes; then
22340   # Need the gcc compiler version to know where to install libraries
22341   # and header files if --enable-version-specific-runtime-libs option
22342   # is selected.
22343   if test x"$gxx_include_dir" = x"no"; then
22344     gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
22345   fi
22346   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22347   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
22348 fi
22349
22350 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
22351 # Install a library built with a cross compiler in tooldir, not libdir.
22352 if test x"$glibcpp_toolexecdir" = x"no"; then 
22353   if test -n "$with_cross_host" &&
22354      test x"$with_cross_host" != x"no"; then
22355     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
22356     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
22357   else
22358     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22359     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
22360   fi
22361 fi
22362
22363 echo $ac_n "checking for install location""... $ac_c" 1>&6
22364 echo "configure:22365: checking for install location" >&5
22365 echo "$ac_t""$gxx_include_dir" 1>&6
22366
22367
22368
22369
22370
22371
22372
22373 # Export all the include and flag information to makefiles.
22374
22375   # Root level of the build directory include sources.
22376   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
22377
22378   # Passed down for canadian crosses.
22379   if test x"$CANADIAN" = xyes; then
22380     TOPLEVEL_INCLUDES='-I$(includedir)'
22381   fi
22382
22383   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
22384
22385   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
22386
22387   if test x"$need_libio" = xyes; then
22388     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
22389     
22390   fi
22391
22392   # Now, export this to all the little Makefiles....
22393   
22394   
22395   
22396   
22397
22398
22399   # Optimization flags that are probably a good idea for thrill-seekers. Just
22400   # uncomment the lines below and make, everything else is ready to go... 
22401   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
22402   OPTIMIZE_CXXFLAGS=
22403   
22404
22405   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
22406   
22407
22408
22409 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
22410    grep "enable shared" > /dev/null; then
22411   LIBSUPCXX_PICFLAGS=-prefer-pic
22412 else
22413   LIBSUPCXX_PICFLAGS=
22414 fi
22415
22416
22417 # Generate the various Makefiles, include files, and scripts.
22418 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
22419 # and libsupc++/Makefile.am so that multilib installs will end up
22420 # installed in the correct place. To work around this not being passed
22421 # down from config-ml.in -> top_srcdir/Makefile.am ->
22422 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
22423 trap '' 1 2 15
22424 cat > confcache <<\EOF
22425 # This file is a shell script that caches the results of configure
22426 # tests run on this system so they can be shared between configure
22427 # scripts and configure runs.  It is not useful on other systems.
22428 # If it contains results you don't want to keep, you may remove or edit it.
22429 #
22430 # By default, configure uses ./config.cache as the cache file,
22431 # creating it if it does not exist already.  You can give configure
22432 # the --cache-file=FILE option to use a different cache file; that is
22433 # what configure does when it calls configure scripts in
22434 # subdirectories, so they share the cache.
22435 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22436 # config.status only pays attention to the cache file if you give it the
22437 # --recheck option to rerun configure.
22438 #
22439 EOF
22440 # The following way of writing the cache mishandles newlines in values,
22441 # but we know of no workaround that is simple, portable, and efficient.
22442 # So, don't put newlines in cache variables' values.
22443 # Ultrix sh set writes to stderr and can't be redirected directly,
22444 # and sets the high bit in the cache file unless we assign to the vars.
22445 (set) 2>&1 |
22446   case `(ac_space=' '; set | grep ac_space) 2>&1` in
22447   *ac_space=\ *)
22448     # `set' does not quote correctly, so add quotes (double-quote substitution
22449     # turns \\\\ into \\, and sed turns \\ into \).
22450     sed -n \
22451       -e "s/'/'\\\\''/g" \
22452       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22453     ;;
22454   *)
22455     # `set' quotes correctly as required by POSIX, so do not add quotes.
22456     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22457     ;;
22458   esac >> confcache
22459 if cmp -s $cache_file confcache; then
22460   :
22461 else
22462   if test -w $cache_file; then
22463     echo "updating cache $cache_file"
22464     cat confcache > $cache_file
22465   else
22466     echo "not updating unwritable cache $cache_file"
22467   fi
22468 fi
22469 rm -f confcache
22470
22471 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22472
22473 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22474 # Let make expand exec_prefix.
22475 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22476
22477 # Any assignment to VPATH causes Sun make to only execute
22478 # the first set of double-colon rules, so remove it if not needed.
22479 # If there is a colon in the path, we need to keep it.
22480 if test "x$srcdir" = x.; then
22481   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
22482 fi
22483
22484 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22485
22486 DEFS=-DHAVE_CONFIG_H
22487
22488 # Without the "./", some shells look in PATH for config.status.
22489 : ${CONFIG_STATUS=./config.status}
22490
22491 echo creating $CONFIG_STATUS
22492 rm -f $CONFIG_STATUS
22493 cat > $CONFIG_STATUS <<EOF
22494 #! /bin/sh
22495 # Generated automatically by configure.
22496 # Run this file to recreate the current configuration.
22497 # This directory was configured as follows,
22498 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22499 #
22500 # $0 $ac_configure_args
22501 #
22502 # Compiler output produced by configure, useful for debugging
22503 # configure, is in ./config.log if it exists.
22504
22505 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22506 for ac_option
22507 do
22508   case "\$ac_option" in
22509   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22510     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22511     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22512   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22513     echo "$CONFIG_STATUS generated by autoconf version 2.13"
22514     exit 0 ;;
22515   -help | --help | --hel | --he | --h)
22516     echo "\$ac_cs_usage"; exit 0 ;;
22517   *) echo "\$ac_cs_usage"; exit 1 ;;
22518   esac
22519 done
22520
22521 ac_given_srcdir=$srcdir
22522 ac_given_INSTALL="$INSTALL"
22523
22524 trap 'rm -fr `echo "Makefile \
22525     include/Makefile src/Makefile \
22526     libmath/Makefile libio/Makefile libsupc++/Makefile \
22527     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22528 EOF
22529 cat >> $CONFIG_STATUS <<EOF
22530
22531 # Protect against being on the right side of a sed subst in config.status.
22532 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22533  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22534 $ac_vpsub
22535 $extrasub
22536 s%@SHELL@%$SHELL%g
22537 s%@CFLAGS@%$CFLAGS%g
22538 s%@CPPFLAGS@%$CPPFLAGS%g
22539 s%@CXXFLAGS@%$CXXFLAGS%g
22540 s%@FFLAGS@%$FFLAGS%g
22541 s%@DEFS@%$DEFS%g
22542 s%@LDFLAGS@%$LDFLAGS%g
22543 s%@LIBS@%$LIBS%g
22544 s%@exec_prefix@%$exec_prefix%g
22545 s%@prefix@%$prefix%g
22546 s%@program_transform_name@%$program_transform_name%g
22547 s%@bindir@%$bindir%g
22548 s%@sbindir@%$sbindir%g
22549 s%@libexecdir@%$libexecdir%g
22550 s%@datadir@%$datadir%g
22551 s%@sysconfdir@%$sysconfdir%g
22552 s%@sharedstatedir@%$sharedstatedir%g
22553 s%@localstatedir@%$localstatedir%g
22554 s%@libdir@%$libdir%g
22555 s%@includedir@%$includedir%g
22556 s%@oldincludedir@%$oldincludedir%g
22557 s%@infodir@%$infodir%g
22558 s%@mandir@%$mandir%g
22559 s%@PACKAGE@%$PACKAGE%g
22560 s%@libtool_VERSION@%$libtool_VERSION%g
22561 s%@toplevel_srcdir@%$toplevel_srcdir%g
22562 s%@host@%$host%g
22563 s%@host_alias@%$host_alias%g
22564 s%@host_cpu@%$host_cpu%g
22565 s%@host_vendor@%$host_vendor%g
22566 s%@host_os@%$host_os%g
22567 s%@target@%$target%g
22568 s%@target_alias@%$target_alias%g
22569 s%@target_cpu@%$target_cpu%g
22570 s%@target_vendor@%$target_vendor%g
22571 s%@target_os@%$target_os%g
22572 s%@build@%$build%g
22573 s%@build_alias@%$build_alias%g
22574 s%@build_cpu@%$build_cpu%g
22575 s%@build_vendor@%$build_vendor%g
22576 s%@build_os@%$build_os%g
22577 s%@glibcpp_builddir@%$glibcpp_builddir%g
22578 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
22579 s%@AWK@%$AWK%g
22580 s%@LN_S@%$LN_S%g
22581 s%@glibcpp_basedir@%$glibcpp_basedir%g
22582 s%@CC@%$CC%g
22583 s%@glibcpp_CXX@%$glibcpp_CXX%g
22584 s%@AS@%$AS%g
22585 s%@AR@%$AR%g
22586 s%@RANLIB@%$RANLIB%g
22587 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22588 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22589 s%@INSTALL_DATA@%$INSTALL_DATA%g
22590 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
22591 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
22592 s%@MAINT@%$MAINT%g
22593 s%@EXEEXT@%$EXEEXT%g
22594 s%@VERSION@%$VERSION%g
22595 s%@ACLOCAL@%$ACLOCAL%g
22596 s%@AUTOCONF@%$AUTOCONF%g
22597 s%@AUTOMAKE@%$AUTOMAKE%g
22598 s%@AUTOHEADER@%$AUTOHEADER%g
22599 s%@MAKEINFO@%$MAKEINFO%g
22600 s%@SET_MAKE@%$SET_MAKE%g
22601 s%@OBJEXT@%$OBJEXT%g
22602 s%@STRIP@%$STRIP%g
22603 s%@LIBTOOL@%$LIBTOOL%g
22604 s%@CXXCPP@%$CXXCPP%g
22605 s%@enable_shared@%$enable_shared%g
22606 s%@enable_static@%$enable_static%g
22607 s%@ifGNUmake@%$ifGNUmake%g
22608 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
22609 s%@CPP@%$CPP%g
22610 s%@CSTDIO_H@%$CSTDIO_H%g
22611 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
22612 s%@CCODECVT_C@%$CCODECVT_C%g
22613 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
22614 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
22615 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
22616 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
22617 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
22618 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
22619 s%@libio_la@%$libio_la%g
22620 s%@check_msgfmt@%$check_msgfmt%g
22621 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
22622 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
22623 s%@glibcpp_localedir@%$glibcpp_localedir%g
22624 s%@USE_NLS@%$USE_NLS%g
22625 s%@CLOCALE_H@%$CLOCALE_H%g
22626 s%@CCODECVT_H@%$CCODECVT_H%g
22627 s%@CMESSAGES_H@%$CMESSAGES_H%g
22628 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
22629 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
22630 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
22631 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
22632 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
22633 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
22634 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
22635 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
22636 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
22637 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
22638 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
22639 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
22640 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
22641 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
22642 s%@WERROR@%$WERROR%g
22643 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
22644 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
22645 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
22646 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
22647 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
22648 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
22649 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
22650 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
22651 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
22652 s%@gxx_include_dir@%$gxx_include_dir%g
22653 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
22654 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
22655 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
22656 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
22657 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
22658 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
22659 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
22660 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
22661 s%@WARN_FLAGS@%$WARN_FLAGS%g
22662 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
22663
22664 CEOF
22665 EOF
22666
22667 cat >> $CONFIG_STATUS <<\EOF
22668
22669 # Split the substitutions into bite-sized pieces for seds with
22670 # small command number limits, like on Digital OSF/1 and HP-UX.
22671 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22672 ac_file=1 # Number of current file.
22673 ac_beg=1 # First line for current file.
22674 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22675 ac_more_lines=:
22676 ac_sed_cmds=""
22677 while $ac_more_lines; do
22678   if test $ac_beg -gt 1; then
22679     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22680   else
22681     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22682   fi
22683   if test ! -s conftest.s$ac_file; then
22684     ac_more_lines=false
22685     rm -f conftest.s$ac_file
22686   else
22687     if test -z "$ac_sed_cmds"; then
22688       ac_sed_cmds="sed -f conftest.s$ac_file"
22689     else
22690       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22691     fi
22692     ac_file=`expr $ac_file + 1`
22693     ac_beg=$ac_end
22694     ac_end=`expr $ac_end + $ac_max_sed_cmds`
22695   fi
22696 done
22697 if test -z "$ac_sed_cmds"; then
22698   ac_sed_cmds=cat
22699 fi
22700 EOF
22701
22702 cat >> $CONFIG_STATUS <<EOF
22703
22704 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
22705     include/Makefile src/Makefile \
22706     libmath/Makefile libio/Makefile libsupc++/Makefile \
22707     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
22708 EOF
22709 cat >> $CONFIG_STATUS <<\EOF
22710 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22711   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22712   case "$ac_file" in
22713   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22714        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22715   *) ac_file_in="${ac_file}.in" ;;
22716   esac
22717
22718   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22719
22720   # Remove last slash and all that follows it.  Not all systems have dirname.
22721   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22722   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22723     # The file is in a subdirectory.
22724     test ! -d "$ac_dir" && mkdir "$ac_dir"
22725     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22726     # A "../" for each directory in $ac_dir_suffix.
22727     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22728   else
22729     ac_dir_suffix= ac_dots=
22730   fi
22731
22732   case "$ac_given_srcdir" in
22733   .)  srcdir=.
22734       if test -z "$ac_dots"; then top_srcdir=.
22735       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22736   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22737   *) # Relative path.
22738     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22739     top_srcdir="$ac_dots$ac_given_srcdir" ;;
22740   esac
22741
22742   case "$ac_given_INSTALL" in
22743   [/$]*) INSTALL="$ac_given_INSTALL" ;;
22744   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22745   esac
22746
22747   echo creating "$ac_file"
22748   rm -f "$ac_file"
22749   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22750   case "$ac_file" in
22751   *Makefile*) ac_comsub="1i\\
22752 # $configure_input" ;;
22753   *) ac_comsub= ;;
22754   esac
22755
22756   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22757   sed -e "$ac_comsub
22758 s%@configure_input@%$configure_input%g
22759 s%@srcdir@%$srcdir%g
22760 s%@top_srcdir@%$top_srcdir%g
22761 s%@INSTALL@%$INSTALL%g
22762 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22763 fi; done
22764 rm -f conftest.s*
22765
22766 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22767 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22768 #
22769 # ac_d sets the value in "#define NAME VALUE" lines.
22770 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
22771 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
22772 ac_dC='\3'
22773 ac_dD='%g'
22774 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22775 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22776 ac_uB='\([      ]\)%\1#\2define\3'
22777 ac_uC=' '
22778 ac_uD='\4%g'
22779 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22780 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22781 ac_eB='$%\1#\2define\3'
22782 ac_eC=' '
22783 ac_eD='%g'
22784
22785 if test "${CONFIG_HEADERS+set}" != set; then
22786 EOF
22787 cat >> $CONFIG_STATUS <<EOF
22788   CONFIG_HEADERS="config.h"
22789 EOF
22790 cat >> $CONFIG_STATUS <<\EOF
22791 fi
22792 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22793   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22794   case "$ac_file" in
22795   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22796        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22797   *) ac_file_in="${ac_file}.in" ;;
22798   esac
22799
22800   echo creating $ac_file
22801
22802   rm -f conftest.frag conftest.in conftest.out
22803   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22804   cat $ac_file_inputs > conftest.in
22805
22806 EOF
22807
22808 # Transform confdefs.h into a sed script conftest.vals that substitutes
22809 # the proper values into config.h.in to produce config.h.  And first:
22810 # Protect against being on the right side of a sed subst in config.status.
22811 # Protect against being in an unquoted here document in config.status.
22812 rm -f conftest.vals
22813 cat > conftest.hdr <<\EOF
22814 s/[\\&%]/\\&/g
22815 s%[\\$`]%\\&%g
22816 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22817 s%ac_d%ac_u%gp
22818 s%ac_u%ac_e%gp
22819 EOF
22820 sed -n -f conftest.hdr confdefs.h > conftest.vals
22821 rm -f conftest.hdr
22822
22823 # This sed command replaces #undef with comments.  This is necessary, for
22824 # example, in the case of _POSIX_SOURCE, which is predefined and required
22825 # on some systems where configure will not decide to define it.
22826 cat >> conftest.vals <<\EOF
22827 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22828 EOF
22829
22830 # Break up conftest.vals because some shells have a limit on
22831 # the size of here documents, and old seds have small limits too.
22832
22833 rm -f conftest.tail
22834 while :
22835 do
22836   ac_lines=`grep -c . conftest.vals`
22837   # grep -c gives empty output for an empty file on some AIX systems.
22838   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22839   # Write a limited-size here document to conftest.frag.
22840   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22841   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22842   echo 'CEOF
22843   sed -f conftest.frag conftest.in > conftest.out
22844   rm -f conftest.in
22845   mv conftest.out conftest.in
22846 ' >> $CONFIG_STATUS
22847   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22848   rm -f conftest.vals
22849   mv conftest.tail conftest.vals
22850 done
22851 rm -f conftest.vals
22852
22853 cat >> $CONFIG_STATUS <<\EOF
22854   rm -f conftest.frag conftest.h
22855   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
22856   cat conftest.in >> conftest.h
22857   rm -f conftest.in
22858   if cmp -s $ac_file conftest.h 2>/dev/null; then
22859     echo "$ac_file is unchanged"
22860     rm -f conftest.h
22861   else
22862     # Remove last slash and all that follows it.  Not all systems have dirname.
22863       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22864       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22865       # The file is in a subdirectory.
22866       test ! -d "$ac_dir" && mkdir "$ac_dir"
22867     fi
22868     rm -f $ac_file
22869     mv conftest.h $ac_file
22870   fi
22871 fi; done
22872
22873 EOF
22874
22875 cat >> $CONFIG_STATUS <<EOF
22876 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $LINKER_MAP"
22877 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"
22878 EOF
22879
22880 cat >> $CONFIG_STATUS <<\EOF
22881 srcdir=$ac_given_srcdir
22882 while test -n "$ac_sources"; do
22883   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22884   set $ac_sources; ac_source=$1; shift; ac_sources=$*
22885
22886   echo "linking $srcdir/$ac_source to $ac_dest"
22887
22888   if test ! -r $srcdir/$ac_source; then
22889     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
22890   fi
22891   rm -f $ac_dest
22892
22893   # Make relative symlinks.
22894   # Remove last slash and all that follows it.  Not all systems have dirname.
22895   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
22896   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
22897     # The dest file is in a subdirectory.
22898     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
22899     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
22900     # A "../" for each directory in $ac_dest_dir_suffix.
22901     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
22902   else
22903     ac_dest_dir_suffix= ac_dots=
22904   fi
22905
22906   case "$srcdir" in
22907   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
22908   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
22909   esac
22910
22911   # Make a symlink if possible; otherwise try a hard link.
22912   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22913     ln $srcdir/$ac_source $ac_dest; then :
22914   else
22915     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
22916   fi
22917 done
22918 EOF
22919 cat >> $CONFIG_STATUS <<EOF
22920
22921 srcdir=${srcdir}
22922 host=${host}
22923 target=${target}
22924 with_multisubdir=${with_multisubdir}
22925 ac_configure_args="${multilib_arg} ${ac_configure_args}"
22926 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
22927 glibcpp_basedir=${glibcpp_basedir}
22928 CC="${CC}"
22929 CXX="${CXX}"
22930
22931 EOF
22932 cat >> $CONFIG_STATUS <<\EOF
22933 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
22934 if test -n "$CONFIG_FILES"; then
22935   LD="${ORIGINAL_LD_FOR_MULTILIBS}"
22936   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
22937   grep '^MULTISUBDIR =' Makefile >> src/Makefile
22938   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
22939 fi
22940 chmod +x mkcheck
22941 chmod +x testsuite_flags
22942
22943 exit 0
22944 EOF
22945 chmod +x $CONFIG_STATUS
22946 rm -fr confdefs* $ac_clean_files
22947 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
22948
22949
22950
22951 # Sanity checking & User-visible messages.
22952 # Checks down here, otherwise they get scrolled off before
22953 # the user will notice.
22954
22955 # Trying to get more people to read documentation.  Possibly remove
22956 # check and warn all the time. There is no "informational" AC_MSG_
22957 # macro, so these are going to be printed even when --quiet/--silent
22958 # is given.
22959 if test ! -f stamp-sanity-warned; then
22960   touch stamp-sanity-warned
22961   echo ""
22962   echo "Please make certain that you read the installation information here:"
22963   echo "  faster => ${srcdir}/docs/html/install.html"
22964   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
22965   echo ""
22966   echo "and the configuration information here:"
22967   echo "  faster => ${srcdir}/docs/html/configopts.html"
22968   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
22969   echo ""
22970   echo "before proceeding with ${_cv_gnu_make_command}."
22971   echo ""
22972 fi