OSDN Git Service

2002-06-19 Steve Ellcey <sje@cup.hp.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-multilib       build hella library versions (default)"
16 ac_help="$ac_help
17   --with-target-subdir=SUBDIR
18                           configuring in a subdirectory"
19 ac_help="$ac_help
20   --with-cross-host=HOST  configuring with a cross compiler"
21 ac_help="$ac_help
22   --enable-maintainer-mode enable make rules and dependencies not useful
23                           (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25   --enable-shared[=PKGS]  build shared libraries [default=yes]"
26 ac_help="$ac_help
27   --enable-static[=PKGS]  build static libraries [default=yes]"
28 ac_help="$ac_help
29   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33   --disable-libtool-lock  avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37   --enable-debug          extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39   --enable-cstdio         enable stdio for target io package. 
40   --enable-cstdio=LIB     use LIB target-speific io package. [default=stdio]
41   "
42 ac_help="$ac_help
43   --enable-clocale        enable model for target locale package. 
44   --enable-clocale=MODEL  use MODEL target-speific locale package. [default=generic]
45   "
46 ac_help="$ac_help
47   --enable-nls            use Native Language Support (default)"
48 ac_help="$ac_help
49   --enable-c-mbchar       enable multibyte (wide) characters [default=yes]"
50 ac_help="$ac_help
51   --enable-c99            turns on 'ISO/IEC 9899:1999 support' [default=yes]"
52 ac_help="$ac_help
53   --enable-long-long      turns on 'long long' [default=yes]"
54 ac_help="$ac_help
55   --enable-cheaders       construct "C" header files for g++ [default=c_std]"
56 ac_help="$ac_help
57   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
58                                 [default=none]"
59 ac_help="$ac_help
60   --enable-sjlj-exceptions  force use of builtin_setjmp for exceptions"
61 ac_help="$ac_help
62   --enable-libunwind-exceptions  force use of libunwind for exceptions"
63 ac_help="$ac_help
64   --enable-concept-checks use Boost-derived template checks [default=no]"
65 ac_help="$ac_help
66   --enable-symvers=style  enables symbol versioning of the shared library [default=yes]"
67 ac_help="$ac_help
68   --with-gxx-include-dir  the installation directory for include files"
69 ac_help="$ac_help
70   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
71
72 # Initialize some variables set by options.
73 # The variables have the same names as the options, with
74 # dashes changed to underlines.
75 build=NONE
76 cache_file=./config.cache
77 exec_prefix=NONE
78 host=NONE
79 no_create=
80 nonopt=NONE
81 no_recursion=
82 prefix=NONE
83 program_prefix=NONE
84 program_suffix=NONE
85 program_transform_name=s,x,x,
86 silent=
87 site=
88 sitefile=
89 srcdir=
90 target=NONE
91 verbose=
92 x_includes=NONE
93 x_libraries=NONE
94 bindir='${exec_prefix}/bin'
95 sbindir='${exec_prefix}/sbin'
96 libexecdir='${exec_prefix}/libexec'
97 datadir='${prefix}/share'
98 sysconfdir='${prefix}/etc'
99 sharedstatedir='${prefix}/com'
100 localstatedir='${prefix}/var'
101 libdir='${exec_prefix}/lib'
102 includedir='${prefix}/include'
103 oldincludedir='/usr/include'
104 infodir='${prefix}/info'
105 mandir='${prefix}/man'
106
107 # Initialize some other variables.
108 subdirs=
109 MFLAGS= MAKEFLAGS=
110 SHELL=${CONFIG_SHELL-/bin/sh}
111 # Maximum number of lines to put in a shell here document.
112 ac_max_here_lines=12
113
114 ac_prev=
115 for ac_option
116 do
117
118   # If the previous option needs an argument, assign it.
119   if test -n "$ac_prev"; then
120     eval "$ac_prev=\$ac_option"
121     ac_prev=
122     continue
123   fi
124
125   case "$ac_option" in
126   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
127   *) ac_optarg= ;;
128   esac
129
130   # Accept the important Cygnus configure options, so we can diagnose typos.
131
132   case "$ac_option" in
133
134   -bindir | --bindir | --bindi | --bind | --bin | --bi)
135     ac_prev=bindir ;;
136   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
137     bindir="$ac_optarg" ;;
138
139   -build | --build | --buil | --bui | --bu)
140     ac_prev=build ;;
141   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
142     build="$ac_optarg" ;;
143
144   -cache-file | --cache-file | --cache-fil | --cache-fi \
145   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
146     ac_prev=cache_file ;;
147   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
148   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
149     cache_file="$ac_optarg" ;;
150
151   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
152     ac_prev=datadir ;;
153   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
154   | --da=*)
155     datadir="$ac_optarg" ;;
156
157   -disable-* | --disable-*)
158     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
159     # Reject names that are not valid shell variable names.
160     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
161       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162     fi
163     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
164     eval "enable_${ac_feature}=no" ;;
165
166   -enable-* | --enable-*)
167     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
168     # Reject names that are not valid shell variable names.
169     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
170       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171     fi
172     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
173     case "$ac_option" in
174       *=*) ;;
175       *) ac_optarg=yes ;;
176     esac
177     eval "enable_${ac_feature}='$ac_optarg'" ;;
178
179   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
180   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
181   | --exec | --exe | --ex)
182     ac_prev=exec_prefix ;;
183   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
184   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
185   | --exec=* | --exe=* | --ex=*)
186     exec_prefix="$ac_optarg" ;;
187
188   -gas | --gas | --ga | --g)
189     # Obsolete; use --with-gas.
190     with_gas=yes ;;
191
192   -help | --help | --hel | --he)
193     # Omit some internal or obsolete options to make the list less imposing.
194     # This message is too long to be a string in the A/UX 3.1 sh.
195     cat << EOF
196 Usage: configure [options] [host]
197 Options: [defaults in brackets after descriptions]
198 Configuration:
199   --cache-file=FILE       cache test results in FILE
200   --help                  print this message
201   --no-create             do not create output files
202   --quiet, --silent       do not print \`checking...' messages
203   --site-file=FILE        use FILE as the site file
204   --version               print the version of autoconf that created configure
205 Directory and file names:
206   --prefix=PREFIX         install architecture-independent files in PREFIX
207                           [$ac_default_prefix]
208   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
209                           [same as prefix]
210   --bindir=DIR            user executables in DIR [EPREFIX/bin]
211   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
212   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
213   --datadir=DIR           read-only architecture-independent data in DIR
214                           [PREFIX/share]
215   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
216   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
217                           [PREFIX/com]
218   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
219   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
220   --includedir=DIR        C header files in DIR [PREFIX/include]
221   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
222   --infodir=DIR           info documentation in DIR [PREFIX/info]
223   --mandir=DIR            man documentation in DIR [PREFIX/man]
224   --srcdir=DIR            find the sources in DIR [configure dir or ..]
225   --program-prefix=PREFIX prepend PREFIX to installed program names
226   --program-suffix=SUFFIX append SUFFIX to installed program names
227   --program-transform-name=PROGRAM
228                           run sed PROGRAM on installed program names
229 EOF
230     cat << EOF
231 Host type:
232   --build=BUILD           configure for building on BUILD [BUILD=HOST]
233   --host=HOST             configure for HOST [guessed]
234   --target=TARGET         configure for TARGET [TARGET=HOST]
235 Features and packages:
236   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
237   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
238   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
239   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
240   --x-includes=DIR        X include files are in DIR
241   --x-libraries=DIR       X library files are in DIR
242 EOF
243     if test -n "$ac_help"; then
244       echo "--enable and --with options recognized:$ac_help"
245     fi
246     exit 0 ;;
247
248   -host | --host | --hos | --ho)
249     ac_prev=host ;;
250   -host=* | --host=* | --hos=* | --ho=*)
251     host="$ac_optarg" ;;
252
253   -includedir | --includedir | --includedi | --included | --include \
254   | --includ | --inclu | --incl | --inc)
255     ac_prev=includedir ;;
256   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
257   | --includ=* | --inclu=* | --incl=* | --inc=*)
258     includedir="$ac_optarg" ;;
259
260   -infodir | --infodir | --infodi | --infod | --info | --inf)
261     ac_prev=infodir ;;
262   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
263     infodir="$ac_optarg" ;;
264
265   -libdir | --libdir | --libdi | --libd)
266     ac_prev=libdir ;;
267   -libdir=* | --libdir=* | --libdi=* | --libd=*)
268     libdir="$ac_optarg" ;;
269
270   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
271   | --libexe | --libex | --libe)
272     ac_prev=libexecdir ;;
273   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
274   | --libexe=* | --libex=* | --libe=*)
275     libexecdir="$ac_optarg" ;;
276
277   -localstatedir | --localstatedir | --localstatedi | --localstated \
278   | --localstate | --localstat | --localsta | --localst \
279   | --locals | --local | --loca | --loc | --lo)
280     ac_prev=localstatedir ;;
281   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
282   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
283   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
284     localstatedir="$ac_optarg" ;;
285
286   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
287     ac_prev=mandir ;;
288   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
289     mandir="$ac_optarg" ;;
290
291   -nfp | --nfp | --nf)
292     # Obsolete; use --without-fp.
293     with_fp=no ;;
294
295   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
296   | --no-cr | --no-c)
297     no_create=yes ;;
298
299   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
300   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
301     no_recursion=yes ;;
302
303   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
304   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
305   | --oldin | --oldi | --old | --ol | --o)
306     ac_prev=oldincludedir ;;
307   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
308   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
309   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
310     oldincludedir="$ac_optarg" ;;
311
312   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
313     ac_prev=prefix ;;
314   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
315     prefix="$ac_optarg" ;;
316
317   -program-prefix | --program-prefix | --program-prefi | --program-pref \
318   | --program-pre | --program-pr | --program-p)
319     ac_prev=program_prefix ;;
320   -program-prefix=* | --program-prefix=* | --program-prefi=* \
321   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
322     program_prefix="$ac_optarg" ;;
323
324   -program-suffix | --program-suffix | --program-suffi | --program-suff \
325   | --program-suf | --program-su | --program-s)
326     ac_prev=program_suffix ;;
327   -program-suffix=* | --program-suffix=* | --program-suffi=* \
328   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
329     program_suffix="$ac_optarg" ;;
330
331   -program-transform-name | --program-transform-name \
332   | --program-transform-nam | --program-transform-na \
333   | --program-transform-n | --program-transform- \
334   | --program-transform | --program-transfor \
335   | --program-transfo | --program-transf \
336   | --program-trans | --program-tran \
337   | --progr-tra | --program-tr | --program-t)
338     ac_prev=program_transform_name ;;
339   -program-transform-name=* | --program-transform-name=* \
340   | --program-transform-nam=* | --program-transform-na=* \
341   | --program-transform-n=* | --program-transform-=* \
342   | --program-transform=* | --program-transfor=* \
343   | --program-transfo=* | --program-transf=* \
344   | --program-trans=* | --program-tran=* \
345   | --progr-tra=* | --program-tr=* | --program-t=*)
346     program_transform_name="$ac_optarg" ;;
347
348   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
349   | -silent | --silent | --silen | --sile | --sil)
350     silent=yes ;;
351
352   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
353     ac_prev=sbindir ;;
354   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
355   | --sbi=* | --sb=*)
356     sbindir="$ac_optarg" ;;
357
358   -sharedstatedir | --sharedstatedir | --sharedstatedi \
359   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
360   | --sharedst | --shareds | --shared | --share | --shar \
361   | --sha | --sh)
362     ac_prev=sharedstatedir ;;
363   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
364   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
365   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
366   | --sha=* | --sh=*)
367     sharedstatedir="$ac_optarg" ;;
368
369   -site | --site | --sit)
370     ac_prev=site ;;
371   -site=* | --site=* | --sit=*)
372     site="$ac_optarg" ;;
373
374   -site-file | --site-file | --site-fil | --site-fi | --site-f)
375     ac_prev=sitefile ;;
376   -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
377     sitefile="$ac_optarg" ;;
378
379   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
380     ac_prev=srcdir ;;
381   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
382     srcdir="$ac_optarg" ;;
383
384   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
385   | --syscon | --sysco | --sysc | --sys | --sy)
386     ac_prev=sysconfdir ;;
387   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
388   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
389     sysconfdir="$ac_optarg" ;;
390
391   -target | --target | --targe | --targ | --tar | --ta | --t)
392     ac_prev=target ;;
393   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
394     target="$ac_optarg" ;;
395
396   -v | -verbose | --verbose | --verbos | --verbo | --verb)
397     verbose=yes ;;
398
399   -version | --version | --versio | --versi | --vers)
400     echo "configure generated by autoconf version 2.13"
401     exit 0 ;;
402
403   -with-* | --with-*)
404     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
405     # Reject names that are not valid shell variable names.
406     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
407       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408     fi
409     ac_package=`echo $ac_package| sed 's/-/_/g'`
410     case "$ac_option" in
411       *=*) ;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "with_${ac_package}='$ac_optarg'" ;;
415
416   -without-* | --without-*)
417     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
418     # Reject names that are not valid shell variable names.
419     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
420       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
421     fi
422     ac_package=`echo $ac_package| sed 's/-/_/g'`
423     eval "with_${ac_package}=no" ;;
424
425   --x)
426     # Obsolete; use --with-x.
427     with_x=yes ;;
428
429   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
430   | --x-incl | --x-inc | --x-in | --x-i)
431     ac_prev=x_includes ;;
432   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
433   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
434     x_includes="$ac_optarg" ;;
435
436   -x-libraries | --x-libraries | --x-librarie | --x-librari \
437   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
438     ac_prev=x_libraries ;;
439   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
440   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
441     x_libraries="$ac_optarg" ;;
442
443   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
444     ;;
445
446   *)
447     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
448       echo "configure: warning: $ac_option: invalid host type" 1>&2
449     fi
450     if test "x$nonopt" != xNONE; then
451       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
452     fi
453     nonopt="$ac_option"
454     ;;
455
456   esac
457 done
458
459 if test -n "$ac_prev"; then
460   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
461 fi
462
463 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
464
465 # File descriptor usage:
466 # 0 standard input
467 # 1 file creation
468 # 2 errors and warnings
469 # 3 some systems may open it to /dev/tty
470 # 4 used on the Kubota Titan
471 # 6 checking for... messages and results
472 # 5 compiler messages saved in config.log
473 if test "$silent" = yes; then
474   exec 6>/dev/null
475 else
476   exec 6>&1
477 fi
478 exec 5>./config.log
479
480 echo "\
481 This file contains any messages produced by compilers while
482 running configure, to aid debugging if configure makes a mistake.
483 " 1>&5
484
485 # Strip out --no-create and --no-recursion so they do not pile up.
486 # Also quote any args containing shell metacharacters.
487 ac_configure_args=
488 for ac_arg
489 do
490   case "$ac_arg" in
491   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
492   | --no-cr | --no-c) ;;
493   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
495   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
496   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
497   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
498   esac
499 done
500
501 # NLS nuisances.
502 # Only set these to C if already set.  These must not be set unconditionally
503 # because not all systems understand e.g. LANG=C (notably SCO).
504 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
505 # Non-C LC_CTYPE values break the ctype check.
506 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
507 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
508 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
509 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
510
511 # confdefs.h avoids OS command line length limits that DEFS can exceed.
512 rm -rf conftest* confdefs.h
513 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
514 echo > confdefs.h
515
516 # A filename unique to this package, relative to the directory that
517 # configure is in, which we can look for to find out if srcdir is correct.
518 ac_unique_file=src/ios.cc
519
520 # Find the source files, if location was not specified.
521 if test -z "$srcdir"; then
522   ac_srcdir_defaulted=yes
523   # Try the directory containing this script, then its parent.
524   ac_prog=$0
525   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
526   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
527   srcdir=$ac_confdir
528   if test ! -r $srcdir/$ac_unique_file; then
529     srcdir=..
530   fi
531 else
532   ac_srcdir_defaulted=no
533 fi
534 if test ! -r $srcdir/$ac_unique_file; then
535   if test "$ac_srcdir_defaulted" = yes; then
536     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
537   else
538     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
539   fi
540 fi
541 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
542
543 # Prefer explicitly selected file to automatically selected ones.
544 if test -z "$sitefile"; then
545   if test -z "$CONFIG_SITE"; then
546     if test "x$prefix" != xNONE; then
547       CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
548     else
549       CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
550     fi
551   fi
552 else
553   CONFIG_SITE="$sitefile"
554 fi
555 for ac_site_file in $CONFIG_SITE; do
556   if test -r "$ac_site_file"; then
557     echo "loading site script $ac_site_file"
558     . "$ac_site_file"
559   fi
560 done
561
562 if test -r "$cache_file"; then
563   echo "loading cache $cache_file"
564   . $cache_file
565 else
566   echo "creating cache $cache_file"
567   > $cache_file
568 fi
569
570 ac_ext=c
571 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
572 ac_cpp='$CPP $CPPFLAGS'
573 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
574 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
575 cross_compiling=$ac_cv_prog_cc_cross
576
577 ac_exeext=
578 ac_objext=o
579 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
580   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
581   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
582     ac_n= ac_c='
583 ' ac_t='        '
584   else
585     ac_n=-n ac_c= ac_t=
586   fi
587 else
588   ac_n= ac_c='\c' ac_t=
589 fi
590
591
592
593 # This works around the fact that libtool configuration may change LD
594 # for this particular configuration, but some shells, instead of
595 # keeping the changes in LD private, export them just because LD is
596 # exported.  Only used at the end of this file.
597 ORIGINAL_LD_FOR_MULTILIBS=$LD
598
599 PACKAGE=libstdc++
600
601 # For typical GNU versioning info, format is MAJOR.MINOR.MICRO
602 release_VERSION=3.1.1
603
604 # For libtool versioning info, format is CURRENT:REVISION:AGE
605 libtool_VERSION=4:1:0
606
607
608 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
609 #
610 # You will slowly go insane if you do not grok the following fact:  when
611 # building v3 as part of the compiler, the top-level /target/ becomes the
612 # library's /host/.  `configure' then causes --target to default to --host,
613 # exactly like any other package using autoconf.  Therefore, 'target' and
614 # 'host' will always be the same.  This makes sense both for native and
615 # cross compilers, just think about it for a little while.  :-)
616 #
617 # Also, if v3 is being configured as part of a cross compiler, the top-level
618 # configure script will pass the "real" host as $with_cross_host.
619 #
620 # AC 2.5x sets target_alias iff the user specified --target, but we use it
621 # everywhere, so we set it here just to be sure.  In AC 2.13
622 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
623 ac_aux_dir=
624 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
625   if test -f $ac_dir/install-sh; then
626     ac_aux_dir=$ac_dir
627     ac_install_sh="$ac_aux_dir/install-sh -c"
628     break
629   elif test -f $ac_dir/install.sh; then
630     ac_aux_dir=$ac_dir
631     ac_install_sh="$ac_aux_dir/install.sh -c"
632     break
633   fi
634 done
635 if test -z "$ac_aux_dir"; then
636   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
637 fi
638 ac_config_guess=$ac_aux_dir/config.guess
639 ac_config_sub=$ac_aux_dir/config.sub
640 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
641
642
643 # Do some error checking and defaulting for the host and target type.
644 # The inputs are:
645 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
646 #
647 # The rules are:
648 # 1. You are not allowed to specify --host, --target, and nonopt at the
649 #    same time.
650 # 2. Host defaults to nonopt.
651 # 3. If nonopt is not specified, then host defaults to the current host,
652 #    as determined by config.guess.
653 # 4. Target and build default to nonopt.
654 # 5. If nonopt is not specified, then target and build default to host.
655
656 # The aliases save the names the user supplied, while $host etc.
657 # will get canonicalized.
658 case $host---$target---$nonopt in
659 NONE---*---* | *---NONE---* | *---*---NONE) ;;
660 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
661 esac
662
663
664 # Make sure we can run config.sub.
665 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
666 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
667 fi
668
669 echo $ac_n "checking host system type""... $ac_c" 1>&6
670 echo "configure:671: checking host system type" >&5
671
672 host_alias=$host
673 case "$host_alias" in
674 NONE)
675   case $nonopt in
676   NONE)
677     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
678     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
679     fi ;;
680   *) host_alias=$nonopt ;;
681   esac ;;
682 esac
683
684 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
685 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
686 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
687 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
688 echo "$ac_t""$host" 1>&6
689
690 echo $ac_n "checking target system type""... $ac_c" 1>&6
691 echo "configure:692: checking target system type" >&5
692
693 target_alias=$target
694 case "$target_alias" in
695 NONE)
696   case $nonopt in
697   NONE) target_alias=$host_alias ;;
698   *) target_alias=$nonopt ;;
699   esac ;;
700 esac
701
702 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
703 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
704 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
705 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
706 echo "$ac_t""$target" 1>&6
707
708 echo $ac_n "checking build system type""... $ac_c" 1>&6
709 echo "configure:710: checking build system type" >&5
710
711 build_alias=$build
712 case "$build_alias" in
713 NONE)
714   case $nonopt in
715   NONE) build_alias=$host_alias ;;
716   *) build_alias=$nonopt ;;
717   esac ;;
718 esac
719
720 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
721 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
722 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
723 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
724 echo "$ac_t""$build" 1>&6
725
726 test "$host_alias" != "$target_alias" &&
727   test "$program_prefix$program_suffix$program_transform_name" = \
728     NONENONEs,x,x, &&
729   program_prefix=${target_alias}-
730
731 target_alias=${target_alias-$target}
732
733
734 # Find a good install program.  We prefer a C program (faster),
735 # so one script is as good as another.  But avoid the broken or
736 # incompatible versions:
737 # SysV /etc/install, /usr/sbin/install
738 # SunOS /usr/etc/install
739 # IRIX /sbin/install
740 # AIX /bin/install
741 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
742 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
743 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
744 # ./install, which can be erroneously created by make from ./install.sh.
745 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
746 echo "configure:747: checking for a BSD compatible install" >&5
747 if test -z "$INSTALL"; then
748 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
749   echo $ac_n "(cached) $ac_c" 1>&6
750 else
751     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
752   for ac_dir in $PATH; do
753     # Account for people who put trailing slashes in PATH elements.
754     case "$ac_dir/" in
755     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
756     *)
757       # OSF1 and SCO ODT 3.0 have their own names for install.
758       # Don't use installbsd from OSF since it installs stuff as root
759       # by default.
760       for ac_prog in ginstall scoinst install; do
761         if test -f $ac_dir/$ac_prog; then
762           if test $ac_prog = install &&
763             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
764             # AIX install.  It has an incompatible calling convention.
765             :
766           else
767             ac_cv_path_install="$ac_dir/$ac_prog -c"
768             break 2
769           fi
770         fi
771       done
772       ;;
773     esac
774   done
775   IFS="$ac_save_IFS"
776
777 fi
778   if test "${ac_cv_path_install+set}" = set; then
779     INSTALL="$ac_cv_path_install"
780   else
781     # As a last resort, use the slow shell script.  We don't cache a
782     # path for INSTALL within a source directory, because that will
783     # break other packages using the cache if that directory is
784     # removed, or if the path is relative.
785     INSTALL="$ac_install_sh"
786   fi
787 fi
788 echo "$ac_t""$INSTALL" 1>&6
789
790 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
791 # It thinks the first close brace ends the variable substitution.
792 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
793
794 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
795
796 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
797
798 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
799 echo "configure:800: checking whether build environment is sane" >&5
800 # Just in case
801 sleep 1
802 echo timestamp > conftestfile
803 # Do `set' in a subshell so we don't clobber the current shell's
804 # arguments.  Must try -L first in case configure is actually a
805 # symlink; some systems play weird games with the mod time of symlinks
806 # (eg FreeBSD returns the mod time of the symlink's containing
807 # directory).
808 if (
809    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
810    if test "$*" = "X"; then
811       # -L didn't work.
812       set X `ls -t $srcdir/configure conftestfile`
813    fi
814    if test "$*" != "X $srcdir/configure conftestfile" \
815       && test "$*" != "X conftestfile $srcdir/configure"; then
816
817       # If neither matched, then we have a broken ls.  This can happen
818       # if, for instance, CONFIG_SHELL is bash and it inherits a
819       # broken ls alias from the environment.  This has actually
820       # happened.  Such a system could not be considered "sane".
821       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
822 alias in your environment" 1>&2; exit 1; }
823    fi
824
825    test "$2" = conftestfile
826    )
827 then
828    # Ok.
829    :
830 else
831    { echo "configure: error: newly created file is older than distributed files!
832 Check your system clock" 1>&2; exit 1; }
833 fi
834 rm -f conftest*
835 echo "$ac_t""yes" 1>&6
836 if test "$program_transform_name" = s,x,x,; then
837   program_transform_name=
838 else
839   # Double any \ or $.  echo might interpret backslashes.
840   cat <<\EOF_SED > conftestsed
841 s,\\,\\\\,g; s,\$,$$,g
842 EOF_SED
843   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
844   rm -f conftestsed
845 fi
846 test "$program_prefix" != NONE &&
847   program_transform_name="s,^,${program_prefix},; $program_transform_name"
848 # Use a double $ so make ignores it.
849 test "$program_suffix" != NONE &&
850   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
851
852 # sed with no file args requires a program.
853 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
854
855 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
856 echo "configure:857: checking whether ${MAKE-make} sets \${MAKE}" >&5
857 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
858 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
859   echo $ac_n "(cached) $ac_c" 1>&6
860 else
861   cat > conftestmake <<\EOF
862 all:
863         @echo 'ac_maketemp="${MAKE}"'
864 EOF
865 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
866 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
867 if test -n "$ac_maketemp"; then
868   eval ac_cv_prog_make_${ac_make}_set=yes
869 else
870   eval ac_cv_prog_make_${ac_make}_set=no
871 fi
872 rm -f conftestmake
873 fi
874 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
875   echo "$ac_t""yes" 1>&6
876   SET_MAKE=
877 else
878   echo "$ac_t""no" 1>&6
879   SET_MAKE="MAKE=${MAKE-make}"
880 fi
881
882
883 PACKAGE=$PACKAGE
884
885 VERSION=$release_VERSION
886
887 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
888   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
889 fi
890 cat >> confdefs.h <<EOF
891 #define PACKAGE "$PACKAGE"
892 EOF
893
894 cat >> confdefs.h <<EOF
895 #define VERSION "$VERSION"
896 EOF
897
898
899
900 missing_dir=`cd $ac_aux_dir && pwd`
901 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
902 echo "configure:903: checking for working aclocal" >&5
903 # Run test in a subshell; some versions of sh will print an error if
904 # an executable is not found, even if stderr is redirected.
905 # Redirect stdin to placate older versions of autoconf.  Sigh.
906 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
907    ACLOCAL=aclocal
908    echo "$ac_t""found" 1>&6
909 else
910    ACLOCAL="$missing_dir/missing aclocal"
911    echo "$ac_t""missing" 1>&6
912 fi
913
914 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
915 echo "configure:916: checking for working autoconf" >&5
916 # Run test in a subshell; some versions of sh will print an error if
917 # an executable is not found, even if stderr is redirected.
918 # Redirect stdin to placate older versions of autoconf.  Sigh.
919 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
920    AUTOCONF=autoconf
921    echo "$ac_t""found" 1>&6
922 else
923    AUTOCONF="$missing_dir/missing autoconf"
924    echo "$ac_t""missing" 1>&6
925 fi
926
927 echo $ac_n "checking for working automake""... $ac_c" 1>&6
928 echo "configure:929: checking for working automake" >&5
929 # Run test in a subshell; some versions of sh will print an error if
930 # an executable is not found, even if stderr is redirected.
931 # Redirect stdin to placate older versions of autoconf.  Sigh.
932 if (automake --version) < /dev/null > /dev/null 2>&1; then
933    AUTOMAKE=automake
934    echo "$ac_t""found" 1>&6
935 else
936    AUTOMAKE="$missing_dir/missing automake"
937    echo "$ac_t""missing" 1>&6
938 fi
939
940 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
941 echo "configure:942: checking for working autoheader" >&5
942 # Run test in a subshell; some versions of sh will print an error if
943 # an executable is not found, even if stderr is redirected.
944 # Redirect stdin to placate older versions of autoconf.  Sigh.
945 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
946    AUTOHEADER=autoheader
947    echo "$ac_t""found" 1>&6
948 else
949    AUTOHEADER="$missing_dir/missing autoheader"
950    echo "$ac_t""missing" 1>&6
951 fi
952
953 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
954 echo "configure:955: checking for working makeinfo" >&5
955 # Run test in a subshell; some versions of sh will print an error if
956 # an executable is not found, even if stderr is redirected.
957 # Redirect stdin to placate older versions of autoconf.  Sigh.
958 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
959    MAKEINFO=makeinfo
960    echo "$ac_t""found" 1>&6
961 else
962    MAKEINFO="$missing_dir/missing makeinfo"
963    echo "$ac_t""missing" 1>&6
964 fi
965
966
967
968
969
970
971 # Runs configure.target, finds CC, CXX and assorted other critical bits.
972 # Must run this before the GLIBCPP_ENABLE_* macros below.
973 if test $host != $build; then
974   ac_tool_prefix=${host_alias}-
975 else
976   ac_tool_prefix=
977 fi
978
979 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
980 echo "configure:981: checking for Cygwin environment" >&5
981 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
982   echo $ac_n "(cached) $ac_c" 1>&6
983 else
984   cat > conftest.$ac_ext <<EOF
985 #line 986 "configure"
986 #include "confdefs.h"
987
988 int main() {
989
990 #ifndef __CYGWIN__
991 #define __CYGWIN__ __CYGWIN32__
992 #endif
993 return __CYGWIN__;
994 ; return 0; }
995 EOF
996 if { (eval echo configure:997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
997   rm -rf conftest*
998   ac_cv_cygwin=yes
999 else
1000   echo "configure: failed program was:" >&5
1001   cat conftest.$ac_ext >&5
1002   rm -rf conftest*
1003   ac_cv_cygwin=no
1004 fi
1005 rm -f conftest*
1006 rm -f conftest*
1007 fi
1008
1009 echo "$ac_t""$ac_cv_cygwin" 1>&6
1010 CYGWIN=
1011 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1012 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1013 echo "configure:1014: checking for mingw32 environment" >&5
1014 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1015   echo $ac_n "(cached) $ac_c" 1>&6
1016 else
1017   cat > conftest.$ac_ext <<EOF
1018 #line 1019 "configure"
1019 #include "confdefs.h"
1020
1021 int main() {
1022 return __MINGW32__;
1023 ; return 0; }
1024 EOF
1025 if { (eval echo configure:1026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1026   rm -rf conftest*
1027   ac_cv_mingw32=yes
1028 else
1029   echo "configure: failed program was:" >&5
1030   cat conftest.$ac_ext >&5
1031   rm -rf conftest*
1032   ac_cv_mingw32=no
1033 fi
1034 rm -f conftest*
1035 rm -f conftest*
1036 fi
1037
1038 echo "$ac_t""$ac_cv_mingw32" 1>&6
1039 MINGW32=
1040 test "$ac_cv_mingw32" = yes && MINGW32=yes
1041
1042       # Check whether --enable-multilib or --disable-multilib was given.
1043 if test "${enable_multilib+set}" = set; then
1044   enableval="$enable_multilib"
1045   case "${enableval}" in
1046     yes) multilib=yes ;;
1047     no)  multilib=no ;;
1048     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1049    esac
1050 else
1051   multilib=yes
1052 fi
1053
1054   # When building with srcdir == objdir, links to the source files will
1055   # be created in directories within the target_subdir.  We have to
1056   # adjust toplevel_srcdir accordingly, so that configure finds
1057   # install-sh and other auxiliary files that live in the top-level
1058   # source directory.
1059   if test "${srcdir}" = "."; then
1060     if test -z "${with_target_subdir}"; then
1061       toprel=".."
1062     else
1063       if test "${with_target_subdir}" != "."; then
1064         toprel="${with_multisrctop}../.."
1065       else
1066         toprel="${with_multisrctop}.."
1067       fi
1068     fi
1069   else
1070     toprel=".."
1071   fi
1072   ac_aux_dir=
1073 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1074   if test -f $ac_dir/install-sh; then
1075     ac_aux_dir=$ac_dir
1076     ac_install_sh="$ac_aux_dir/install-sh -c"
1077     break
1078   elif test -f $ac_dir/install.sh; then
1079     ac_aux_dir=$ac_dir
1080     ac_install_sh="$ac_aux_dir/install.sh -c"
1081     break
1082   fi
1083 done
1084 if test -z "$ac_aux_dir"; then
1085   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
1086 fi
1087 ac_config_guess=$ac_aux_dir/config.guess
1088 ac_config_sub=$ac_aux_dir/config.sub
1089 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1090
1091   toplevel_srcdir=\${top_srcdir}/$toprel
1092   
1093
1094 #possibly test for the presence of the compiler sources here?
1095
1096   # Export build and source directories.
1097   # These need to be absolute paths, yet at the same time need to
1098   # canonicalize only relative paths, because then amd will not unmount
1099   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1100   glibcpp_builddir=`${PWDCMD-pwd}`
1101   case $srcdir in
1102   \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1103   *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1104   esac
1105   
1106   
1107
1108     
1109
1110   for ac_prog in mawk gawk nawk awk
1111 do
1112 # Extract the first word of "$ac_prog", so it can be a program name with args.
1113 set dummy $ac_prog; ac_word=$2
1114 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1115 echo "configure:1116: checking for $ac_word" >&5
1116 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1117   echo $ac_n "(cached) $ac_c" 1>&6
1118 else
1119   if test -n "$AWK"; then
1120   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1121 else
1122   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1123   ac_dummy="$PATH"
1124   for ac_dir in $ac_dummy; do
1125     test -z "$ac_dir" && ac_dir=.
1126     if test -f $ac_dir/$ac_word; then
1127       ac_cv_prog_AWK="$ac_prog"
1128       break
1129     fi
1130   done
1131   IFS="$ac_save_ifs"
1132 fi
1133 fi
1134 AWK="$ac_cv_prog_AWK"
1135 if test -n "$AWK"; then
1136   echo "$ac_t""$AWK" 1>&6
1137 else
1138   echo "$ac_t""no" 1>&6
1139 fi
1140
1141 test -n "$AWK" && break
1142 done
1143
1144   # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.5x, can also
1145   # be 'cp -p' if linking isn't available.  Uncomment the next line to
1146   # force a particular method.
1147   #ac_cv_prog_LN_S='cp -p'
1148   echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1149 echo "configure:1150: checking whether ln -s works" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1151   echo $ac_n "(cached) $ac_c" 1>&6
1152 else
1153   rm -f conftestdata
1154 if ln -s X conftestdata 2>/dev/null
1155 then
1156   rm -f conftestdata
1157   ac_cv_prog_LN_S="ln -s"
1158 else
1159   ac_cv_prog_LN_S=ln
1160 fi
1161 fi
1162 LN_S="$ac_cv_prog_LN_S"
1163 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1164   echo "$ac_t""yes" 1>&6
1165 else
1166   echo "$ac_t""no" 1>&6
1167 fi
1168
1169
1170   # We use these options to decide which functions to include.
1171   # Check whether --with-target-subdir or --without-target-subdir was given.
1172 if test "${with_target_subdir+set}" = set; then
1173   withval="$with_target_subdir"
1174   :
1175 fi
1176
1177   # Check whether --with-cross-host or --without-cross-host was given.
1178 if test "${with_cross_host+set}" = set; then
1179   withval="$with_cross_host"
1180   :
1181 fi
1182
1183
1184   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
1185   
1186
1187   # Never versions of autoconf add an underscore to these functions.
1188   # Prevent future problems ...
1189   
1190   
1191   
1192   
1193
1194   # AC_PROG_CC
1195   # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1196   # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1197   # are probably using a cross compiler, which will not be able to fully
1198   # link an executable.  This is addressed in later versions of autoconf.
1199
1200   
1201
1202       
1203   # Extract the first word of "gcc", so it can be a program name with args.
1204 set dummy gcc; ac_word=$2
1205 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1206 echo "configure:1207: checking for $ac_word" >&5
1207 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1208   echo $ac_n "(cached) $ac_c" 1>&6
1209 else
1210   if test -n "$CC"; then
1211   ac_cv_prog_CC="$CC" # Let the user override the test.
1212 else
1213   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1214   ac_dummy="$PATH"
1215   for ac_dir in $ac_dummy; do
1216     test -z "$ac_dir" && ac_dir=.
1217     if test -f $ac_dir/$ac_word; then
1218       ac_cv_prog_CC="gcc"
1219       break
1220     fi
1221   done
1222   IFS="$ac_save_ifs"
1223 fi
1224 fi
1225 CC="$ac_cv_prog_CC"
1226 if test -n "$CC"; then
1227   echo "$ac_t""$CC" 1>&6
1228 else
1229   echo "$ac_t""no" 1>&6
1230 fi
1231
1232   if test -z "$CC"; then
1233     # Extract the first word of "cc", so it can be a program name with args.
1234 set dummy cc; ac_word=$2
1235 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1236 echo "configure:1237: checking for $ac_word" >&5
1237 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1238   echo $ac_n "(cached) $ac_c" 1>&6
1239 else
1240   if test -n "$CC"; then
1241   ac_cv_prog_CC="$CC" # Let the user override the test.
1242 else
1243   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1244   ac_prog_rejected=no
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       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1250         ac_prog_rejected=yes
1251         continue
1252       fi
1253       ac_cv_prog_CC="cc"
1254       break
1255     fi
1256   done
1257   IFS="$ac_save_ifs"
1258 if test $ac_prog_rejected = yes; then
1259   # We found a bogon in the path, so make sure we never use it.
1260   set dummy $ac_cv_prog_CC
1261   shift
1262   if test $# -gt 0; then
1263     # We chose a different compiler from the bogus one.
1264     # However, it has the same basename, so the bogon will be chosen
1265     # first if we set CC to just the basename; use the full file name.
1266     shift
1267     set dummy "$ac_dir/$ac_word" "$@"
1268     shift
1269     ac_cv_prog_CC="$@"
1270   fi
1271 fi
1272 fi
1273 fi
1274 CC="$ac_cv_prog_CC"
1275 if test -n "$CC"; then
1276   echo "$ac_t""$CC" 1>&6
1277 else
1278   echo "$ac_t""no" 1>&6
1279 fi
1280
1281     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1282   fi
1283
1284   echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1285 echo "configure:1286: checking whether we are using GNU C" >&5
1286 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1287   echo $ac_n "(cached) $ac_c" 1>&6
1288 else
1289   cat > conftest.c <<EOF
1290 #ifdef __GNUC__
1291   yes;
1292 #endif
1293 EOF
1294 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1295   ac_cv_prog_gcc=yes
1296 else
1297   ac_cv_prog_gcc=no
1298 fi
1299 fi
1300
1301 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1302
1303   if test $ac_cv_prog_gcc = yes; then
1304     GCC=yes
1305           ac_test_CFLAGS="${CFLAGS+set}"
1306     ac_save_CFLAGS="$CFLAGS"
1307     CFLAGS=
1308     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1309 echo "configure:1310: checking whether ${CC-cc} accepts -g" >&5
1310 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1311   echo $ac_n "(cached) $ac_c" 1>&6
1312 else
1313   echo 'void f(){}' > conftest.c
1314 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1315   ac_cv_prog_cc_g=yes
1316 else
1317   ac_cv_prog_cc_g=no
1318 fi
1319 rm -f conftest*
1320
1321 fi
1322
1323 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1324     if test "$ac_test_CFLAGS" = set; then
1325       CFLAGS="$ac_save_CFLAGS"
1326     elif test $ac_cv_prog_cc_g = yes; then
1327       CFLAGS="-g -O2"
1328     else
1329       CFLAGS="-O2"
1330     fi
1331   else
1332     GCC=
1333     test "${CFLAGS+set}" = set || CFLAGS="-g"
1334   fi
1335   
1336
1337   # Likewise for AC_PROG_CXX.  We can't just call it directly because g++
1338   # will try to link in libstdc++.
1339   
1340
1341       
1342   # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1343   # flags that come in CXX while configuring libstdc++.  They're different
1344   # from those used for all other target libraries.  If CXX is set in
1345   # the environment, respect that here.
1346   glibcpp_CXX=$CXX
1347   for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1348 do
1349 # Extract the first word of "$ac_prog", so it can be a program name with args.
1350 set dummy $ac_prog; ac_word=$2
1351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1352 echo "configure:1353: checking for $ac_word" >&5
1353 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1354   echo $ac_n "(cached) $ac_c" 1>&6
1355 else
1356   if test -n "$glibcpp_CXX"; then
1357   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1358 else
1359   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1360   ac_dummy="$PATH"
1361   for ac_dir in $ac_dummy; do
1362     test -z "$ac_dir" && ac_dir=.
1363     if test -f $ac_dir/$ac_word; then
1364       ac_cv_prog_glibcpp_CXX="$ac_prog"
1365       break
1366     fi
1367   done
1368   IFS="$ac_save_ifs"
1369 fi
1370 fi
1371 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1372 if test -n "$glibcpp_CXX"; then
1373   echo "$ac_t""$glibcpp_CXX" 1>&6
1374 else
1375   echo "$ac_t""no" 1>&6
1376 fi
1377
1378 test -n "$glibcpp_CXX" && break
1379 done
1380 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1381
1382   
1383   CXX=$glibcpp_CXX
1384   test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1385
1386   echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1387 echo "configure:1388: checking whether we are using GNU C++" >&5
1388 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1389   echo $ac_n "(cached) $ac_c" 1>&6
1390 else
1391   cat > conftest.C <<EOF
1392 #ifdef __GNUC__
1393   yes;
1394 #endif
1395 EOF
1396 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1397   ac_cv_prog_gxx=yes
1398 else
1399   ac_cv_prog_gxx=no
1400 fi
1401 fi
1402
1403 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1404
1405   if test $ac_cv_prog_gxx = yes; then
1406     GXX=yes
1407                 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1408     ac_save_CXXFLAGS="$CXXFLAGS"
1409     CXXFLAGS=
1410     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1411 echo "configure:1412: checking whether ${CXX-g++} accepts -g" >&5
1412 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1413   echo $ac_n "(cached) $ac_c" 1>&6
1414 else
1415   echo 'void f(){}' > conftest.cc
1416 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1417   ac_cv_prog_cxx_g=yes
1418 else
1419   ac_cv_prog_cxx_g=no
1420 fi
1421 rm -f conftest*
1422
1423 fi
1424
1425 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1426     if test "$ac_test_CXXFLAGS" = set; then
1427       CXXFLAGS="$ac_save_CXXFLAGS"
1428     elif test $ac_cv_prog_cxx_g = yes; then
1429       CXXFLAGS="-g -O2"
1430     else
1431       CXXFLAGS="-O2"
1432     fi
1433   else
1434     GXX=
1435     test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1436   fi
1437   
1438
1439   # For some reason, gettext needs this.
1440   
1441         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1442 echo "configure:1443: checking for strerror in -lcposix" >&5
1443 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1444 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1445   echo $ac_n "(cached) $ac_c" 1>&6
1446 else
1447   ac_save_LIBS="$LIBS"
1448 LIBS="-lcposix  $LIBS"
1449 cat > conftest.$ac_ext <<EOF
1450 #line 1451 "configure"
1451 #include "confdefs.h"
1452 /* Override any gcc2 internal prototype to avoid an error.  */
1453 /* We use char because int might match the return type of a gcc2
1454     builtin and then its argument prototype would still apply.  */
1455 char strerror();
1456
1457 int main() {
1458 strerror()
1459 ; return 0; }
1460 EOF
1461 if { (eval echo configure:1462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1462   rm -rf conftest*
1463   eval "ac_cv_lib_$ac_lib_var=yes"
1464 else
1465   echo "configure: failed program was:" >&5
1466   cat conftest.$ac_ext >&5
1467   rm -rf conftest*
1468   eval "ac_cv_lib_$ac_lib_var=no"
1469 fi
1470 rm -f conftest*
1471 LIBS="$ac_save_LIBS"
1472
1473 fi
1474 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1475   echo "$ac_t""yes" 1>&6
1476   LIBS="$LIBS -lcposix"
1477 else
1478   echo "$ac_t""no" 1>&6
1479 fi
1480
1481   
1482
1483
1484   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1485 set dummy ${ac_tool_prefix}as; ac_word=$2
1486 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1487 echo "configure:1488: checking for $ac_word" >&5
1488 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1489   echo $ac_n "(cached) $ac_c" 1>&6
1490 else
1491   if test -n "$AS"; then
1492   ac_cv_prog_AS="$AS" # Let the user override the test.
1493 else
1494   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1495   ac_dummy="$PATH"
1496   for ac_dir in $ac_dummy; do
1497     test -z "$ac_dir" && ac_dir=.
1498     if test -f $ac_dir/$ac_word; then
1499       ac_cv_prog_AS="${ac_tool_prefix}as"
1500       break
1501     fi
1502   done
1503   IFS="$ac_save_ifs"
1504   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1505 fi
1506 fi
1507 AS="$ac_cv_prog_AS"
1508 if test -n "$AS"; then
1509   echo "$ac_t""$AS" 1>&6
1510 else
1511   echo "$ac_t""no" 1>&6
1512 fi
1513
1514
1515
1516   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1517 set dummy ${ac_tool_prefix}ar; ac_word=$2
1518 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1519 echo "configure:1520: checking for $ac_word" >&5
1520 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1521   echo $ac_n "(cached) $ac_c" 1>&6
1522 else
1523   if test -n "$AR"; then
1524   ac_cv_prog_AR="$AR" # Let the user override the test.
1525 else
1526   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1527   ac_dummy="$PATH"
1528   for ac_dir in $ac_dummy; do
1529     test -z "$ac_dir" && ac_dir=.
1530     if test -f $ac_dir/$ac_word; then
1531       ac_cv_prog_AR="${ac_tool_prefix}ar"
1532       break
1533     fi
1534   done
1535   IFS="$ac_save_ifs"
1536   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1537 fi
1538 fi
1539 AR="$ac_cv_prog_AR"
1540 if test -n "$AR"; then
1541   echo "$ac_t""$AR" 1>&6
1542 else
1543   echo "$ac_t""no" 1>&6
1544 fi
1545
1546
1547
1548   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1549 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1550 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1551 echo "configure:1552: checking for $ac_word" >&5
1552 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1553   echo $ac_n "(cached) $ac_c" 1>&6
1554 else
1555   if test -n "$RANLIB"; then
1556   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1557 else
1558   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1559   ac_dummy="$PATH"
1560   for ac_dir in $ac_dummy; do
1561     test -z "$ac_dir" && ac_dir=.
1562     if test -f $ac_dir/$ac_word; then
1563       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1564       break
1565     fi
1566   done
1567   IFS="$ac_save_ifs"
1568 fi
1569 fi
1570 RANLIB="$ac_cv_prog_RANLIB"
1571 if test -n "$RANLIB"; then
1572   echo "$ac_t""$RANLIB" 1>&6
1573 else
1574   echo "$ac_t""no" 1>&6
1575 fi
1576
1577
1578 if test -z "$ac_cv_prog_RANLIB"; then
1579 if test -n "$ac_tool_prefix"; then
1580   # Extract the first word of "ranlib", so it can be a program name with args.
1581 set dummy ranlib; ac_word=$2
1582 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1583 echo "configure:1584: checking for $ac_word" >&5
1584 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1585   echo $ac_n "(cached) $ac_c" 1>&6
1586 else
1587   if test -n "$RANLIB"; then
1588   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1589 else
1590   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1591   ac_dummy="$PATH"
1592   for ac_dir in $ac_dummy; do
1593     test -z "$ac_dir" && ac_dir=.
1594     if test -f $ac_dir/$ac_word; then
1595       ac_cv_prog_RANLIB="ranlib"
1596       break
1597     fi
1598   done
1599   IFS="$ac_save_ifs"
1600   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1601 fi
1602 fi
1603 RANLIB="$ac_cv_prog_RANLIB"
1604 if test -n "$RANLIB"; then
1605   echo "$ac_t""$RANLIB" 1>&6
1606 else
1607   echo "$ac_t""no" 1>&6
1608 fi
1609
1610 else
1611   RANLIB="ranlib-not-found-in-path-error"
1612 fi
1613 fi
1614
1615   # Find a good install program.  We prefer a C program (faster),
1616 # so one script is as good as another.  But avoid the broken or
1617 # incompatible versions:
1618 # SysV /etc/install, /usr/sbin/install
1619 # SunOS /usr/etc/install
1620 # IRIX /sbin/install
1621 # AIX /bin/install
1622 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1623 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1624 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1625 # ./install, which can be erroneously created by make from ./install.sh.
1626 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1627 echo "configure:1628: checking for a BSD compatible install" >&5
1628 if test -z "$INSTALL"; then
1629 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1630   echo $ac_n "(cached) $ac_c" 1>&6
1631 else
1632     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1633   for ac_dir in $PATH; do
1634     # Account for people who put trailing slashes in PATH elements.
1635     case "$ac_dir/" in
1636     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1637     *)
1638       # OSF1 and SCO ODT 3.0 have their own names for install.
1639       # Don't use installbsd from OSF since it installs stuff as root
1640       # by default.
1641       for ac_prog in ginstall scoinst install; do
1642         if test -f $ac_dir/$ac_prog; then
1643           if test $ac_prog = install &&
1644             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1645             # AIX install.  It has an incompatible calling convention.
1646             :
1647           else
1648             ac_cv_path_install="$ac_dir/$ac_prog -c"
1649             break 2
1650           fi
1651         fi
1652       done
1653       ;;
1654     esac
1655   done
1656   IFS="$ac_save_IFS"
1657
1658 fi
1659   if test "${ac_cv_path_install+set}" = set; then
1660     INSTALL="$ac_cv_path_install"
1661   else
1662     # As a last resort, use the slow shell script.  We don't cache a
1663     # path for INSTALL within a source directory, because that will
1664     # break other packages using the cache if that directory is
1665     # removed, or if the path is relative.
1666     INSTALL="$ac_install_sh"
1667   fi
1668 fi
1669 echo "$ac_t""$INSTALL" 1>&6
1670
1671 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1672 # It thinks the first close brace ends the variable substitution.
1673 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1674
1675 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1676
1677 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1678
1679
1680   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1681 echo "configure:1682: checking whether to enable maintainer-specific portions of Makefiles" >&5
1682     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1683 if test "${enable_maintainer_mode+set}" = set; then
1684   enableval="$enable_maintainer_mode"
1685   USE_MAINTAINER_MODE=$enableval
1686 else
1687   USE_MAINTAINER_MODE=no
1688 fi
1689
1690   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1691   
1692
1693 if test $USE_MAINTAINER_MODE = yes; then
1694   MAINTAINER_MODE_TRUE=
1695   MAINTAINER_MODE_FALSE='#'
1696 else
1697   MAINTAINER_MODE_TRUE='#'
1698   MAINTAINER_MODE_FALSE=
1699 fi
1700   MAINT=$MAINTAINER_MODE_TRUE
1701   
1702
1703
1704   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1705   # at least currently, we never actually build a program, so we never
1706   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1707   # fails, because we are probably configuring with a cross compiler
1708   # which can't create executables.  So we include AC_EXEEXT to keep
1709   # automake happy, but we don't execute it, since we don't care about
1710   # the result.
1711   if false; then
1712     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1713     # to nothing, so nothing would remain between `then' and `fi' if it
1714     # were not for the `:' below.
1715     :
1716     
1717
1718 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1719 echo "configure:1720: checking for executable suffix" >&5
1720 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1721   echo $ac_n "(cached) $ac_c" 1>&6
1722 else
1723   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1724   ac_cv_exeext=.exe
1725 else
1726   rm -f conftest*
1727   echo 'int main () { return 0; }' > conftest.$ac_ext
1728   ac_cv_exeext=
1729   if { (eval echo configure:1730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1730     for file in conftest.*; do
1731       case $file in
1732       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1733       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1734       esac
1735     done
1736   else
1737     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1738   fi
1739   rm -f conftest*
1740   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1741 fi
1742 fi
1743
1744 EXEEXT=""
1745 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1746 echo "$ac_t""${ac_cv_exeext}" 1>&6
1747 ac_exeext=$EXEEXT
1748
1749   fi
1750
1751   case ${glibcpp_basedir} in
1752     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1753     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1754   esac
1755
1756   # Find platform-specific directories containing configuration info.  In
1757   # addition to possibly modifying the same flags, it also sets up symlinks.
1758   
1759     . ${glibcpp_basedir}/configure.target
1760     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1761     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1762
1763
1764
1765
1766
1767 # Check whether --enable-shared or --disable-shared was given.
1768 if test "${enable_shared+set}" = set; then
1769   enableval="$enable_shared"
1770   p=${PACKAGE-default}
1771 case $enableval in
1772 yes) enable_shared=yes ;;
1773 no) enable_shared=no ;;
1774 *)
1775   enable_shared=no
1776   # Look at the argument we got.  We use all the common list separators.
1777   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1778   for pkg in $enableval; do
1779     if test "X$pkg" = "X$p"; then
1780       enable_shared=yes
1781     fi
1782   done
1783   IFS="$ac_save_ifs"
1784   ;;
1785 esac
1786 else
1787   enable_shared=yes
1788 fi
1789
1790 # Check whether --enable-static or --disable-static was given.
1791 if test "${enable_static+set}" = set; then
1792   enableval="$enable_static"
1793   p=${PACKAGE-default}
1794 case $enableval in
1795 yes) enable_static=yes ;;
1796 no) enable_static=no ;;
1797 *)
1798   enable_static=no
1799   # Look at the argument we got.  We use all the common list separators.
1800   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1801   for pkg in $enableval; do
1802     if test "X$pkg" = "X$p"; then
1803       enable_static=yes
1804     fi
1805   done
1806   IFS="$ac_save_ifs"
1807   ;;
1808 esac
1809 else
1810   enable_static=yes
1811 fi
1812
1813 # Check whether --enable-fast-install or --disable-fast-install was given.
1814 if test "${enable_fast_install+set}" = set; then
1815   enableval="$enable_fast_install"
1816   p=${PACKAGE-default}
1817 case $enableval in
1818 yes) enable_fast_install=yes ;;
1819 no) enable_fast_install=no ;;
1820 *)
1821   enable_fast_install=no
1822   # Look at the argument we got.  We use all the common list separators.
1823   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1824   for pkg in $enableval; do
1825     if test "X$pkg" = "X$p"; then
1826       enable_fast_install=yes
1827     fi
1828   done
1829   IFS="$ac_save_ifs"
1830   ;;
1831 esac
1832 else
1833   enable_fast_install=yes
1834 fi
1835
1836 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1837 if test "${with_gnu_ld+set}" = set; then
1838   withval="$with_gnu_ld"
1839   test "$withval" = no || with_gnu_ld=yes
1840 else
1841   with_gnu_ld=no
1842 fi
1843
1844 ac_prog=ld
1845 if test "$GCC" = yes; then
1846   # Check if gcc -print-prog-name=ld gives a path.
1847   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1848 echo "configure:1849: checking for ld used by GCC" >&5
1849   case $host in
1850   *-*-mingw*)
1851     # gcc leaves a trailing carriage return which upsets mingw
1852     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1853   *)
1854     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1855   esac
1856   case $ac_prog in
1857     # Accept absolute paths.
1858     [\\/]* | [A-Za-z]:[\\/]*)
1859       re_direlt='/[^/][^/]*/\.\./'
1860       # Canonicalize the path of ld
1861       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1862       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1863         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1864       done
1865       test -z "$LD" && LD="$ac_prog"
1866       ;;
1867   "")
1868     # If it fails, then pretend we aren't using GCC.
1869     ac_prog=ld
1870     ;;
1871   *)
1872     # If it is relative, then search for the first ld in PATH.
1873     with_gnu_ld=unknown
1874     ;;
1875   esac
1876 elif test "$with_gnu_ld" = yes; then
1877   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1878 echo "configure:1879: checking for GNU ld" >&5
1879 else
1880   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1881 echo "configure:1882: checking for non-GNU ld" >&5
1882 fi
1883 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1884   echo $ac_n "(cached) $ac_c" 1>&6
1885 else
1886   if test -z "$LD"; then
1887   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1888   for ac_dir in $PATH; do
1889     test -z "$ac_dir" && ac_dir=.
1890     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1891       lt_cv_path_LD="$ac_dir/$ac_prog"
1892       # Check to see if the program is GNU ld.  I'd rather use --version,
1893       # but apparently some GNU ld's only accept -v.
1894       # Break only if it was the GNU/non-GNU ld that we prefer.
1895       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1896         test "$with_gnu_ld" != no && break
1897       else
1898         test "$with_gnu_ld" != yes && break
1899       fi
1900     fi
1901   done
1902   IFS="$ac_save_ifs"
1903 else
1904   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1905 fi
1906 fi
1907
1908 LD="$lt_cv_path_LD"
1909 if test -n "$LD"; then
1910   echo "$ac_t""$LD" 1>&6
1911 else
1912   echo "$ac_t""no" 1>&6
1913 fi
1914 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1915 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1916 echo "configure:1917: checking if the linker ($LD) is GNU ld" >&5
1917 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1918   echo $ac_n "(cached) $ac_c" 1>&6
1919 else
1920   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1921 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1922   lt_cv_prog_gnu_ld=yes
1923 else
1924   lt_cv_prog_gnu_ld=no
1925 fi
1926 fi
1927
1928 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1929 with_gnu_ld=$lt_cv_prog_gnu_ld
1930
1931
1932 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1933 echo "configure:1934: checking for $LD option to reload object files" >&5
1934 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1935   echo $ac_n "(cached) $ac_c" 1>&6
1936 else
1937   lt_cv_ld_reload_flag='-r'
1938 fi
1939
1940 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1941 reload_flag=$lt_cv_ld_reload_flag
1942 test -n "$reload_flag" && reload_flag=" $reload_flag"
1943
1944 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1945 echo "configure:1946: checking for BSD-compatible nm" >&5
1946 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1947   echo $ac_n "(cached) $ac_c" 1>&6
1948 else
1949   if test -n "$NM"; then
1950   # Let the user override the test.
1951   lt_cv_path_NM="$NM"
1952 else
1953   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1954   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1955     test -z "$ac_dir" && ac_dir=.
1956     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1957     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1958       # Check to see if the nm accepts a BSD-compat flag.
1959       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1960       #   nm: unknown option "B" ignored
1961       # Tru64's nm complains that /dev/null is an invalid object file
1962       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1963         lt_cv_path_NM="$tmp_nm -B"
1964         break
1965       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1966         lt_cv_path_NM="$tmp_nm -p"
1967         break
1968       else
1969         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1970         continue # so that we can try to find one that supports BSD flags
1971       fi
1972     fi
1973   done
1974   IFS="$ac_save_ifs"
1975   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1976 fi
1977 fi
1978
1979 NM="$lt_cv_path_NM"
1980 echo "$ac_t""$NM" 1>&6
1981
1982 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1983 echo "configure:1984: checking how to recognise dependant libraries" >&5
1984 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1985   echo $ac_n "(cached) $ac_c" 1>&6
1986 else
1987   lt_cv_file_magic_cmd='$MAGIC_CMD'
1988 lt_cv_file_magic_test_file=
1989 lt_cv_deplibs_check_method='unknown'
1990 # Need to set the preceding variable on all platforms that support
1991 # interlibrary dependencies.
1992 # 'none' -- dependencies not supported.
1993 # `unknown' -- same as none, but documents that we really don't know.
1994 # 'pass_all' -- all dependencies passed with no checks.
1995 # 'test_compile' -- check by making test program.
1996 # 'file_magic [regex]' -- check by looking for files in library path
1997 # which responds to the $file_magic_cmd with a given egrep regex.
1998 # If you have `file' or equivalent on your system and you're not sure
1999 # whether `pass_all' will *always* work, you probably want this one.
2000
2001 case $host_os in
2002 aix*)
2003   lt_cv_deplibs_check_method=pass_all
2004   ;;
2005
2006 beos*)
2007   lt_cv_deplibs_check_method=pass_all
2008   ;;
2009
2010 bsdi4*)
2011   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2012   lt_cv_file_magic_cmd='/usr/bin/file -L'
2013   lt_cv_file_magic_test_file=/shlib/libc.so
2014   ;;
2015
2016 cygwin* | mingw* |pw32*)
2017   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2018   lt_cv_file_magic_cmd='$OBJDUMP -f'
2019   ;;
2020
2021 darwin* | rhapsody*)
2022   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2023   lt_cv_file_magic_cmd='/usr/bin/file -L'
2024   case "$host_os" in
2025   rhapsody* | darwin1.012)
2026     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2027     ;;
2028   *) # Darwin 1.3 on
2029     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2030     ;;
2031   esac
2032   ;;
2033
2034 freebsd* )
2035   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2036     case $host_cpu in
2037     i*86 )
2038       # Not sure whether the presence of OpenBSD here was a mistake.
2039       # Let's accept both of them until this is cleared up.
2040       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2041       lt_cv_file_magic_cmd=/usr/bin/file
2042       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2043       ;;
2044     esac
2045   else
2046     lt_cv_deplibs_check_method=pass_all
2047   fi
2048   ;;
2049
2050 gnu*)
2051   lt_cv_deplibs_check_method=pass_all
2052   ;;
2053
2054 hpux10.20*|hpux11*)
2055   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2056   lt_cv_file_magic_cmd=/usr/bin/file
2057   lt_cv_file_magic_test_file=/usr/lib/libc.sl
2058   ;;
2059
2060 irix5* | irix6*)
2061   case $host_os in
2062   irix5*)
2063     # this will be overridden with pass_all, but let us keep it just in case
2064     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2065     ;;
2066   *)
2067     case $LD in
2068     *-32|*"-32 ") libmagic=32-bit;;
2069     *-n32|*"-n32 ") libmagic=N32;;
2070     *-64|*"-64 ") libmagic=64-bit;;
2071     *) libmagic=never-match;;
2072     esac
2073     # this will be overridden with pass_all, but let us keep it just in case
2074     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2075     ;;
2076   esac
2077   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2078   lt_cv_deplibs_check_method=pass_all
2079   ;;
2080
2081 # This must be Linux ELF.
2082 linux-gnu*)
2083   case $host_cpu in
2084   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2085     lt_cv_deplibs_check_method=pass_all ;;
2086   *)
2087     # glibc up to 2.1.1 does not perform some relocations on ARM
2088     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2089   esac
2090   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2091   ;;
2092
2093 netbsd*)
2094   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2095     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2096   else
2097     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2098   fi
2099   ;;
2100
2101 newsos6)
2102   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2103   lt_cv_file_magic_cmd=/usr/bin/file
2104   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2105   ;;
2106
2107 osf3* | osf4* | osf5*)
2108   # this will be overridden with pass_all, but let us keep it just in case
2109   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2110   lt_cv_file_magic_test_file=/shlib/libc.so
2111   lt_cv_deplibs_check_method=pass_all
2112   ;;
2113
2114 sco3.2v5*)
2115   lt_cv_deplibs_check_method=pass_all
2116   ;;
2117
2118 solaris*)
2119   lt_cv_deplibs_check_method=pass_all
2120   lt_cv_file_magic_test_file=/lib/libc.so
2121   ;;
2122
2123 sysv5uw[78]* | sysv4*uw2*)
2124   lt_cv_deplibs_check_method=pass_all
2125   ;;
2126
2127 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2128   case $host_vendor in
2129   ncr)
2130     lt_cv_deplibs_check_method=pass_all
2131     ;;
2132   motorola)
2133     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]'
2134     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2135     ;;
2136   esac
2137   ;;
2138 esac
2139
2140 fi
2141
2142 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2143 file_magic_cmd=$lt_cv_file_magic_cmd
2144 deplibs_check_method=$lt_cv_deplibs_check_method
2145
2146 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2147 echo "configure:2148: checking for object suffix" >&5
2148 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2149   echo $ac_n "(cached) $ac_c" 1>&6
2150 else
2151   rm -f conftest*
2152 echo 'int i = 1;' > conftest.$ac_ext
2153 if { (eval echo configure:2154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2154   for ac_file in conftest.*; do
2155     case $ac_file in
2156     *.c) ;;
2157     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2158     esac
2159   done
2160 else
2161   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2162 fi
2163 rm -f conftest*
2164 fi
2165
2166 echo "$ac_t""$ac_cv_objext" 1>&6
2167 OBJEXT=$ac_cv_objext
2168 ac_objext=$ac_cv_objext
2169
2170 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2171
2172 # Only perform the check for file, if the check method requires it
2173 case $deplibs_check_method in
2174 file_magic*)
2175   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2176     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2177 echo "configure:2178: checking for ${ac_tool_prefix}file" >&5
2178 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2179   echo $ac_n "(cached) $ac_c" 1>&6
2180 else
2181   case $MAGIC_CMD in
2182   /*)
2183   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2184   ;;
2185   ?:/*)
2186   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2187   ;;
2188   *)
2189   ac_save_MAGIC_CMD="$MAGIC_CMD"
2190   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2191   ac_dummy="/usr/bin:$PATH"
2192   for ac_dir in $ac_dummy; do
2193     test -z "$ac_dir" && ac_dir=.
2194     if test -f $ac_dir/${ac_tool_prefix}file; then
2195       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2196       if test -n "$file_magic_test_file"; then
2197         case $deplibs_check_method in
2198         "file_magic "*)
2199           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2200           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2201           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2202             egrep "$file_magic_regex" > /dev/null; then
2203             :
2204           else
2205             cat <<EOF 1>&2
2206
2207 *** Warning: the command libtool uses to detect shared libraries,
2208 *** $file_magic_cmd, produces output that libtool cannot recognize.
2209 *** The result is that libtool may fail to recognize shared libraries
2210 *** as such.  This will affect the creation of libtool libraries that
2211 *** depend on shared libraries, but programs linked with such libtool
2212 *** libraries will work regardless of this problem.  Nevertheless, you
2213 *** may want to report the problem to your system manager and/or to
2214 *** bug-libtool@gnu.org
2215
2216 EOF
2217           fi ;;
2218         esac
2219       fi
2220       break
2221     fi
2222   done
2223   IFS="$ac_save_ifs"
2224   MAGIC_CMD="$ac_save_MAGIC_CMD"
2225   ;;
2226 esac
2227 fi
2228
2229 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2230 if test -n "$MAGIC_CMD"; then
2231   echo "$ac_t""$MAGIC_CMD" 1>&6
2232 else
2233   echo "$ac_t""no" 1>&6
2234 fi
2235
2236 if test -z "$lt_cv_path_MAGIC_CMD"; then
2237   if test -n "$ac_tool_prefix"; then
2238     echo $ac_n "checking for file""... $ac_c" 1>&6
2239 echo "configure:2240: checking for file" >&5
2240 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2241   echo $ac_n "(cached) $ac_c" 1>&6
2242 else
2243   case $MAGIC_CMD in
2244   /*)
2245   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2246   ;;
2247   ?:/*)
2248   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2249   ;;
2250   *)
2251   ac_save_MAGIC_CMD="$MAGIC_CMD"
2252   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2253   ac_dummy="/usr/bin:$PATH"
2254   for ac_dir in $ac_dummy; do
2255     test -z "$ac_dir" && ac_dir=.
2256     if test -f $ac_dir/file; then
2257       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2258       if test -n "$file_magic_test_file"; then
2259         case $deplibs_check_method in
2260         "file_magic "*)
2261           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2262           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2263           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2264             egrep "$file_magic_regex" > /dev/null; then
2265             :
2266           else
2267             cat <<EOF 1>&2
2268
2269 *** Warning: the command libtool uses to detect shared libraries,
2270 *** $file_magic_cmd, produces output that libtool cannot recognize.
2271 *** The result is that libtool may fail to recognize shared libraries
2272 *** as such.  This will affect the creation of libtool libraries that
2273 *** depend on shared libraries, but programs linked with such libtool
2274 *** libraries will work regardless of this problem.  Nevertheless, you
2275 *** may want to report the problem to your system manager and/or to
2276 *** bug-libtool@gnu.org
2277
2278 EOF
2279           fi ;;
2280         esac
2281       fi
2282       break
2283     fi
2284   done
2285   IFS="$ac_save_ifs"
2286   MAGIC_CMD="$ac_save_MAGIC_CMD"
2287   ;;
2288 esac
2289 fi
2290
2291 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2292 if test -n "$MAGIC_CMD"; then
2293   echo "$ac_t""$MAGIC_CMD" 1>&6
2294 else
2295   echo "$ac_t""no" 1>&6
2296 fi
2297
2298   else
2299     MAGIC_CMD=:
2300   fi
2301 fi
2302
2303   fi
2304   ;;
2305 esac
2306
2307 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2308 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2309 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2310 echo "configure:2311: checking for $ac_word" >&5
2311 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2312   echo $ac_n "(cached) $ac_c" 1>&6
2313 else
2314   if test -n "$RANLIB"; then
2315   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2316 else
2317   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2318   ac_dummy="$PATH"
2319   for ac_dir in $ac_dummy; do
2320     test -z "$ac_dir" && ac_dir=.
2321     if test -f $ac_dir/$ac_word; then
2322       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2323       break
2324     fi
2325   done
2326   IFS="$ac_save_ifs"
2327 fi
2328 fi
2329 RANLIB="$ac_cv_prog_RANLIB"
2330 if test -n "$RANLIB"; then
2331   echo "$ac_t""$RANLIB" 1>&6
2332 else
2333   echo "$ac_t""no" 1>&6
2334 fi
2335
2336
2337 if test -z "$ac_cv_prog_RANLIB"; then
2338 if test -n "$ac_tool_prefix"; then
2339   # Extract the first word of "ranlib", so it can be a program name with args.
2340 set dummy ranlib; ac_word=$2
2341 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2342 echo "configure:2343: checking for $ac_word" >&5
2343 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2344   echo $ac_n "(cached) $ac_c" 1>&6
2345 else
2346   if test -n "$RANLIB"; then
2347   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2348 else
2349   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2350   ac_dummy="$PATH"
2351   for ac_dir in $ac_dummy; do
2352     test -z "$ac_dir" && ac_dir=.
2353     if test -f $ac_dir/$ac_word; then
2354       ac_cv_prog_RANLIB="ranlib"
2355       break
2356     fi
2357   done
2358   IFS="$ac_save_ifs"
2359   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2360 fi
2361 fi
2362 RANLIB="$ac_cv_prog_RANLIB"
2363 if test -n "$RANLIB"; then
2364   echo "$ac_t""$RANLIB" 1>&6
2365 else
2366   echo "$ac_t""no" 1>&6
2367 fi
2368
2369 else
2370   RANLIB=":"
2371 fi
2372 fi
2373
2374 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2375 set dummy ${ac_tool_prefix}strip; ac_word=$2
2376 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2377 echo "configure:2378: checking for $ac_word" >&5
2378 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2379   echo $ac_n "(cached) $ac_c" 1>&6
2380 else
2381   if test -n "$STRIP"; then
2382   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2383 else
2384   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2385   ac_dummy="$PATH"
2386   for ac_dir in $ac_dummy; do
2387     test -z "$ac_dir" && ac_dir=.
2388     if test -f $ac_dir/$ac_word; then
2389       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2390       break
2391     fi
2392   done
2393   IFS="$ac_save_ifs"
2394 fi
2395 fi
2396 STRIP="$ac_cv_prog_STRIP"
2397 if test -n "$STRIP"; then
2398   echo "$ac_t""$STRIP" 1>&6
2399 else
2400   echo "$ac_t""no" 1>&6
2401 fi
2402
2403
2404 if test -z "$ac_cv_prog_STRIP"; then
2405 if test -n "$ac_tool_prefix"; then
2406   # Extract the first word of "strip", so it can be a program name with args.
2407 set dummy strip; ac_word=$2
2408 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2409 echo "configure:2410: checking for $ac_word" >&5
2410 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2411   echo $ac_n "(cached) $ac_c" 1>&6
2412 else
2413   if test -n "$STRIP"; then
2414   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2415 else
2416   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2417   ac_dummy="$PATH"
2418   for ac_dir in $ac_dummy; do
2419     test -z "$ac_dir" && ac_dir=.
2420     if test -f $ac_dir/$ac_word; then
2421       ac_cv_prog_STRIP="strip"
2422       break
2423     fi
2424   done
2425   IFS="$ac_save_ifs"
2426   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2427 fi
2428 fi
2429 STRIP="$ac_cv_prog_STRIP"
2430 if test -n "$STRIP"; then
2431   echo "$ac_t""$STRIP" 1>&6
2432 else
2433   echo "$ac_t""no" 1>&6
2434 fi
2435
2436 else
2437   STRIP=":"
2438 fi
2439 fi
2440
2441
2442 # Check for any special flags to pass to ltconfig.
2443 libtool_flags="--cache-file=$cache_file"
2444 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2445 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2446 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2447 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2448 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2449 libtool_flags="$libtool_flags --enable-dlopen"
2450
2451 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2452 if test "${enable_libtool_lock+set}" = set; then
2453   enableval="$enable_libtool_lock"
2454   :
2455 fi
2456
2457 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2458 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2459
2460 # Check whether --with-pic or --without-pic was given.
2461 if test "${with_pic+set}" = set; then
2462   withval="$with_pic"
2463   pic_mode="$withval"
2464 else
2465   pic_mode=default
2466 fi
2467
2468 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2469 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2470
2471 # Some flags need to be propagated to the compiler or linker for good
2472 # libtool support.
2473 case $host in
2474 *-*-irix6*)
2475   # Find out which ABI we are using.
2476   echo '#line 2477 "configure"' > conftest.$ac_ext
2477   if { (eval echo configure:2478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2478     case `/usr/bin/file conftest.$ac_objext` in
2479     *32-bit*)
2480       LD="${LD-ld} -32"
2481       ;;
2482     *N32*)
2483       LD="${LD-ld} -n32"
2484       ;;
2485     *64-bit*)
2486       LD="${LD-ld} -64"
2487       ;;
2488     esac
2489   fi
2490   rm -rf conftest*
2491   ;;
2492
2493 *-*-sco3.2v5*)
2494   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2495   SAVE_CFLAGS="$CFLAGS"
2496   CFLAGS="$CFLAGS -belf"
2497   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2498 echo "configure:2499: checking whether the C compiler needs -belf" >&5
2499 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2500   echo $ac_n "(cached) $ac_c" 1>&6
2501 else
2502   
2503      ac_ext=c
2504 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2505 ac_cpp='$CPP $CPPFLAGS'
2506 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2507 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2508 cross_compiling=$ac_cv_prog_cc_cross
2509
2510      cat > conftest.$ac_ext <<EOF
2511 #line 2512 "configure"
2512 #include "confdefs.h"
2513
2514 int main() {
2515
2516 ; return 0; }
2517 EOF
2518 if { (eval echo configure:2519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2519   rm -rf conftest*
2520   lt_cv_cc_needs_belf=yes
2521 else
2522   echo "configure: failed program was:" >&5
2523   cat conftest.$ac_ext >&5
2524   rm -rf conftest*
2525   lt_cv_cc_needs_belf=no
2526 fi
2527 rm -f conftest*
2528      ac_ext=c
2529 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2530 ac_cpp='$CPP $CPPFLAGS'
2531 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2532 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2533 cross_compiling=$ac_cv_prog_cc_cross
2534
2535 fi
2536
2537 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2538   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2539     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2540     CFLAGS="$SAVE_CFLAGS"
2541   fi
2542   ;;
2543
2544
2545 esac
2546
2547 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2548 echo "configure:2549: checking how to run the C++ preprocessor" >&5
2549 if test -z "$CXXCPP"; then
2550 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2551   echo $ac_n "(cached) $ac_c" 1>&6
2552 else
2553   ac_ext=C
2554 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2555 ac_cpp='$CXXCPP $CPPFLAGS'
2556 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2557 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2558 cross_compiling=$ac_cv_prog_cxx_cross
2559   CXXCPP="${CXX-g++} -E"
2560   cat > conftest.$ac_ext <<EOF
2561 #line 2562 "configure"
2562 #include "confdefs.h"
2563 #include <stdlib.h>
2564 EOF
2565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2566 { (eval echo configure:2567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2568 if test -z "$ac_err"; then
2569   :
2570 else
2571   echo "$ac_err" >&5
2572   echo "configure: failed program was:" >&5
2573   cat conftest.$ac_ext >&5
2574   rm -rf conftest*
2575   CXXCPP=/lib/cpp
2576 fi
2577 rm -f conftest*
2578   ac_cv_prog_CXXCPP="$CXXCPP"
2579 ac_ext=c
2580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2581 ac_cpp='$CPP $CPPFLAGS'
2582 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2583 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2584 cross_compiling=$ac_cv_prog_cc_cross
2585 fi
2586 fi
2587 CXXCPP="$ac_cv_prog_CXXCPP"
2588 echo "$ac_t""$CXXCPP" 1>&6
2589
2590
2591 # Save cache, so that ltconfig can load it
2592 cat > confcache <<\EOF
2593 # This file is a shell script that caches the results of configure
2594 # tests run on this system so they can be shared between configure
2595 # scripts and configure runs.  It is not useful on other systems.
2596 # If it contains results you don't want to keep, you may remove or edit it.
2597 #
2598 # By default, configure uses ./config.cache as the cache file,
2599 # creating it if it does not exist already.  You can give configure
2600 # the --cache-file=FILE option to use a different cache file; that is
2601 # what configure does when it calls configure scripts in
2602 # subdirectories, so they share the cache.
2603 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2604 # config.status only pays attention to the cache file if you give it the
2605 # --recheck option to rerun configure.
2606 #
2607 EOF
2608 # The following way of writing the cache mishandles newlines in values,
2609 # but we know of no workaround that is simple, portable, and efficient.
2610 # So, don't put newlines in cache variables' values.
2611 # Ultrix sh set writes to stderr and can't be redirected directly,
2612 # and sets the high bit in the cache file unless we assign to the vars.
2613 (set) 2>&1 |
2614   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2615   *ac_space=\ *)
2616     # `set' does not quote correctly, so add quotes (double-quote substitution
2617     # turns \\\\ into \\, and sed turns \\ into \).
2618     sed -n \
2619       -e "s/'/'\\\\''/g" \
2620       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2621     ;;
2622   *)
2623     # `set' quotes correctly as required by POSIX, so do not add quotes.
2624     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2625     ;;
2626   esac >> confcache
2627 if cmp -s $cache_file confcache; then
2628   :
2629 else
2630   if test -w $cache_file; then
2631     echo "updating cache $cache_file"
2632     cat confcache > $cache_file
2633   else
2634     echo "not updating unwritable cache $cache_file"
2635   fi
2636 fi
2637 rm -f confcache
2638
2639
2640 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2641 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2642 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2643 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2644 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2645 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2646 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2647 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2648 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2649 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2650
2651 # Reload cache, that may have been modified by ltconfig
2652 if test -r "$cache_file"; then
2653   echo "loading cache $cache_file"
2654   . $cache_file
2655 else
2656   echo "creating cache $cache_file"
2657   > $cache_file
2658 fi
2659
2660
2661 # This can be used to rebuild libtool when needed
2662 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2663
2664 # Always use our own libtool.
2665 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2666
2667 # Redirect the config.log output again, so that the ltconfig log is not
2668 # clobbered by the next message.
2669 exec 5>>./config.log
2670
2671
2672
2673 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2674 lt_save_CC="$CC"
2675 lt_save_CFLAGS="$CFLAGS"
2676 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2677 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2678 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2679 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2680 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2681 deplibs_check_method="$deplibs_check_method" \
2682 file_magic_cmd="$file_magic_cmd" \
2683 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2684 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2685 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2686 CC="$lt_save_CC"
2687 CFLAGS="$lt_save_CFLAGS"
2688
2689 # Redirect the config.log output again, so that the ltconfig log is not
2690 # clobbered by the next message.
2691 exec 5>>./config.log
2692
2693   
2694
2695   
2696          
2697          
2698
2699
2700
2701 # Check for c++ or library specific bits that don't require linking.
2702 #GLIBCPP_CHECK_COMPILER_VERSION
2703 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2704 echo "configure:2705: checking for GNU make" >&5
2705 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2706   echo $ac_n "(cached) $ac_c" 1>&6
2707 else
2708   _cv_gnu_make_command='' ;
2709           for a in "${MAKE-make}" make gmake gnumake ; do
2710                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2711                   then
2712                           _cv_gnu_make_command=$a ;
2713                           break;
2714                   fi
2715           done ;
2716   
2717 fi
2718
2719 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2720   if test  "x$_cv_gnu_make_command" != "x"  ; then
2721           ifGNUmake='' ;
2722   else
2723           ifGNUmake='#' ;
2724   fi
2725   
2726
2727
2728 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2729 # Check whether --enable-debug or --disable-debug was given.
2730 if test "${enable_debug+set}" = set; then
2731   enableval="$enable_debug"
2732   case "${enableval}" in
2733  yes) enable_debug=yes ;;
2734  no)  enable_debug=no ;;
2735  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2736  esac
2737 else
2738   enable_debug=no
2739 fi
2740
2741 case "${enable_debug}" in
2742     yes) 
2743         DEBUG_FLAGS='-O0 -ggdb3'                        
2744         ;; 
2745     no)   
2746         DEBUG_FLAGS='-g'
2747         ;;
2748 esac
2749
2750
2751 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2752 echo "configure:2753: checking how to run the C preprocessor" >&5
2753 # On Suns, sometimes $CPP names a directory.
2754 if test -n "$CPP" && test -d "$CPP"; then
2755   CPP=
2756 fi
2757 if test -z "$CPP"; then
2758 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2759   echo $ac_n "(cached) $ac_c" 1>&6
2760 else
2761     # This must be in double quotes, not single quotes, because CPP may get
2762   # substituted into the Makefile and "${CC-cc}" will confuse make.
2763   CPP="${CC-cc} -E"
2764   # On the NeXT, cc -E runs the code through the compiler's parser,
2765   # not just through cpp.
2766   cat > conftest.$ac_ext <<EOF
2767 #line 2768 "configure"
2768 #include "confdefs.h"
2769 #include <assert.h>
2770 Syntax Error
2771 EOF
2772 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2773 { (eval echo configure:2774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2774 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2775 if test -z "$ac_err"; then
2776   :
2777 else
2778   echo "$ac_err" >&5
2779   echo "configure: failed program was:" >&5
2780   cat conftest.$ac_ext >&5
2781   rm -rf conftest*
2782   CPP="${CC-cc} -E -traditional-cpp"
2783   cat > conftest.$ac_ext <<EOF
2784 #line 2785 "configure"
2785 #include "confdefs.h"
2786 #include <assert.h>
2787 Syntax Error
2788 EOF
2789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2790 { (eval echo configure:2791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2791 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2792 if test -z "$ac_err"; then
2793   :
2794 else
2795   echo "$ac_err" >&5
2796   echo "configure: failed program was:" >&5
2797   cat conftest.$ac_ext >&5
2798   rm -rf conftest*
2799   CPP="${CC-cc} -nologo -E"
2800   cat > conftest.$ac_ext <<EOF
2801 #line 2802 "configure"
2802 #include "confdefs.h"
2803 #include <assert.h>
2804 Syntax Error
2805 EOF
2806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2807 { (eval echo configure:2808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2809 if test -z "$ac_err"; then
2810   :
2811 else
2812   echo "$ac_err" >&5
2813   echo "configure: failed program was:" >&5
2814   cat conftest.$ac_ext >&5
2815   rm -rf conftest*
2816   CPP=/lib/cpp
2817 fi
2818 rm -f conftest*
2819 fi
2820 rm -f conftest*
2821 fi
2822 rm -f conftest*
2823   ac_cv_prog_CPP="$CPP"
2824 fi
2825   CPP="$ac_cv_prog_CPP"
2826 else
2827   ac_cv_prog_CPP="$CPP"
2828 fi
2829 echo "$ac_t""$CPP" 1>&6
2830
2831
2832   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2833 echo "configure:2834: checking for cstdio to use" >&5
2834   # Check whether --enable-cstdio or --disable-cstdio was given.
2835 if test "${enable_cstdio+set}" = set; then
2836   enableval="$enable_cstdio"
2837   if test x$enable_cstdio = xno; then
2838      enable_cstdio=stdio
2839   fi
2840 else
2841   enable_cstdio=stdio
2842 fi
2843
2844
2845   enable_cstdio_flag=$enable_cstdio
2846
2847     case x${enable_cstdio_flag} in
2848     xlibio)
2849       CSTDIO_H=config/io/c_io_libio.h
2850       BASIC_FILE_H=config/io/basic_file_libio.h
2851       BASIC_FILE_CC=config/io/basic_file_libio.cc
2852       echo "$ac_t""libio" 1>&6
2853
2854       # see if we are on a system with libio native (ie, linux)
2855       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2856 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2857 echo "configure:2858: checking for libio.h" >&5
2858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2859   echo $ac_n "(cached) $ac_c" 1>&6
2860 else
2861   cat > conftest.$ac_ext <<EOF
2862 #line 2863 "configure"
2863 #include "confdefs.h"
2864 #include <libio.h>
2865 EOF
2866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2867 { (eval echo configure:2868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2869 if test -z "$ac_err"; then
2870   rm -rf conftest*
2871   eval "ac_cv_header_$ac_safe=yes"
2872 else
2873   echo "$ac_err" >&5
2874   echo "configure: failed program was:" >&5
2875   cat conftest.$ac_ext >&5
2876   rm -rf conftest*
2877   eval "ac_cv_header_$ac_safe=no"
2878 fi
2879 rm -f conftest*
2880 fi
2881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2882   echo "$ac_t""yes" 1>&6
2883   has_libio=yes
2884 else
2885   echo "$ac_t""no" 1>&6
2886 has_libio=no
2887 fi
2888
2889
2890       # Need to check and see what version of glibc is being used. If
2891       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2892       # compile most of libio for linux systems.
2893       if test x$has_libio = x"yes"; then
2894         case "$target" in
2895           *-*-linux*)
2896               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2897 echo "configure:2898: checking for glibc version >= 2.2" >&5
2898               cat > conftest.$ac_ext <<EOF
2899 #line 2900 "configure"
2900 #include "confdefs.h"
2901
2902             #include <features.h>
2903               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2904                     ok
2905               #endif
2906               
2907 EOF
2908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2909   egrep "ok" >/dev/null 2>&1; then
2910   rm -rf conftest*
2911   glibc_satisfactory=yes
2912 else
2913   rm -rf conftest*
2914   glibc_satisfactory=no
2915 fi
2916 rm -f conftest*
2917
2918               echo "$ac_t""$glibc_satisfactory" 1>&6
2919             ;;
2920         esac
2921
2922         # XXX at the moment, admit defeat and force the recompilation
2923         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2924         glibc_satisfactory=no        
2925
2926         if test x$glibc_satisfactory = x"yes"; then
2927            need_libio=no
2928            need_wlibio=no        
2929         else
2930            need_libio=yes
2931            # bkoz XXX need to add checks to enable this
2932            # pme XXX here's a first pass at such a check
2933            if test x$enable_c_mbchar != xno; then
2934               need_wlibio=yes
2935            else
2936               need_wlibio=no
2937            fi
2938         fi
2939
2940       else
2941          # Using libio, but <libio.h> doesn't exist on the target system. . .
2942          need_libio=yes
2943          # bkoz XXX need to add checks to enable this
2944          # pme XXX here's a first pass at such a check
2945          if test x$enable_c_mbchar != xno; then
2946              need_wlibio=yes
2947          else
2948              need_wlibio=no
2949          fi
2950       fi
2951       ;;
2952     xstdio | x | xno | xnone | xyes)
2953       # default
2954       CSTDIO_H=config/io/c_io_stdio.h
2955       BASIC_FILE_H=config/io/basic_file_stdio.h
2956       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2957       echo "$ac_t""stdio" 1>&6
2958
2959       # We're not using stdio.
2960       need_libio=no
2961       need_wlibio=no
2962       ;;
2963     *)
2964       echo "$enable_cstdio is an unknown io package" 1>&2
2965       exit 1
2966       ;;
2967   esac
2968   
2969   
2970   
2971
2972   # 2000-08-04 bkoz hack
2973   CCODECVT_C=config/io/c_io_libio_codecvt.c
2974   
2975   # 2000-08-04 bkoz hack
2976
2977   
2978
2979 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2980   GLIBCPP_BUILD_LIBIO_TRUE=
2981   GLIBCPP_BUILD_LIBIO_FALSE='#'
2982 else
2983   GLIBCPP_BUILD_LIBIO_TRUE='#'
2984   GLIBCPP_BUILD_LIBIO_FALSE=
2985 fi
2986   
2987
2988 if test "$need_libio" = yes; then
2989   GLIBCPP_NEED_LIBIO_TRUE=
2990   GLIBCPP_NEED_LIBIO_FALSE='#'
2991 else
2992   GLIBCPP_NEED_LIBIO_TRUE='#'
2993   GLIBCPP_NEED_LIBIO_FALSE=
2994 fi
2995   
2996
2997 if test "$need_wlibio" = yes; then
2998   GLIBCPP_NEED_WLIBIO_TRUE=
2999   GLIBCPP_NEED_WLIBIO_FALSE='#'
3000 else
3001   GLIBCPP_NEED_WLIBIO_TRUE='#'
3002   GLIBCPP_NEED_WLIBIO_FALSE=
3003 fi
3004   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
3005     libio_la=../libio/libio.la
3006   else
3007     libio_la=
3008   fi
3009   
3010
3011
3012   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
3013 echo "configure:3014: checking for clocale to use" >&5
3014   # Check whether --enable-clocale or --disable-clocale was given.
3015 if test "${enable_clocale+set}" = set; then
3016   enableval="$enable_clocale"
3017   if test x$enable_clocale = xno; then
3018      enable_clocale=no
3019   fi
3020 else
3021   enable_clocale=no
3022 fi
3023
3024
3025   enable_clocale_flag=$enable_clocale
3026
3027       if test x$enable_clocale_flag = xno; then
3028     case x${target_os} in
3029       xlinux* | xgnu*)
3030         cat > conftest.$ac_ext <<EOF
3031 #line 3032 "configure"
3032 #include "confdefs.h"
3033
3034         #include <features.h>
3035         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
3036           _GLIBCPP_ok
3037         #endif
3038         
3039 EOF
3040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3041   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3042   rm -rf conftest*
3043   enable_clocale_flag=gnu
3044 else
3045   rm -rf conftest*
3046   enable_clocale_flag=generic
3047 fi
3048 rm -f conftest*
3049
3050
3051         # Test for bugs early in glibc-2.2.x series
3052         if test x$enable_clocale_flag = xgnu; then
3053           if test "$cross_compiling" = yes; then
3054   enable_clocale_flag=generic
3055 else
3056   cat > conftest.$ac_ext <<EOF
3057 #line 3058 "configure"
3058 #include "confdefs.h"
3059
3060           #define _GNU_SOURCE 1
3061           #include <locale.h>
3062           int main()
3063           {
3064             const char __one[] = "Äuglein Augmen";
3065             const char __two[] = "Äuglein";
3066             int i;
3067             int j;
3068             __locale_t  loc;
3069             __locale_t  loc_dup;
3070             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3071             loc_dup = __duplocale(loc);
3072             i = __strcoll_l(__one, __two, loc);
3073             j = __strcoll_l(__one, __two, loc_dup);
3074             return 0;
3075           }
3076           
3077 EOF
3078 if { (eval echo configure:3079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3079 then
3080   enable_clocale_flag=gnu
3081 else
3082   echo "configure: failed program was:" >&5
3083   cat conftest.$ac_ext >&5
3084   rm -fr conftest*
3085   enable_clocale_flag=generic
3086 fi
3087 rm -fr conftest*
3088 fi
3089
3090         fi
3091
3092         # ... at some point put __strxfrm_l tests in as well.
3093         ;;
3094       *)
3095         enable_clocale_flag=generic
3096         ;;
3097     esac
3098   fi
3099
3100     # Check whether --enable-nls or --disable-nls was given.
3101 if test "${enable_nls+set}" = set; then
3102   enableval="$enable_nls"
3103   :
3104 else
3105   enable_nls=yes
3106 fi
3107
3108   USE_NLS=no
3109
3110     case x${enable_clocale_flag} in
3111     xgeneric)
3112       echo "$ac_t""generic" 1>&6
3113
3114       CLOCALE_H=config/locale/generic/c_locale.h
3115       CLOCALE_CC=config/locale/generic/c_locale.cc
3116       CCODECVT_H=config/locale/generic/codecvt_specializations.h
3117       CCOLLATE_CC=config/locale/generic/collate_members.cc
3118       CCTYPE_CC=config/locale/generic/ctype_members.cc
3119       CMESSAGES_H=config/locale/generic/messages_members.h
3120       CMESSAGES_CC=config/locale/generic/messages_members.cc
3121       CMONEY_CC=config/locale/generic/monetary_members.cc
3122       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3123       CTIME_CC=config/locale/generic/time_members.cc
3124       ;;
3125     xgnu)
3126       echo "$ac_t""gnu" 1>&6
3127
3128       # Declare intention to use gettext, and add support for specific
3129       # languages.
3130       # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3131       ALL_LINGUAS="de fr"
3132
3133       # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3134       # Extract the first word of "msgfmt", so it can be a program name with args.
3135 set dummy msgfmt; ac_word=$2
3136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3137 echo "configure:3138: checking for $ac_word" >&5
3138 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3139   echo $ac_n "(cached) $ac_c" 1>&6
3140 else
3141   if test -n "$check_msgfmt"; then
3142   ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3143 else
3144   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3145   ac_dummy="$PATH"
3146   for ac_dir in $ac_dummy; do
3147     test -z "$ac_dir" && ac_dir=.
3148     if test -f $ac_dir/$ac_word; then
3149       ac_cv_prog_check_msgfmt="yes"
3150       break
3151     fi
3152   done
3153   IFS="$ac_save_ifs"
3154   test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3155 fi
3156 fi
3157 check_msgfmt="$ac_cv_prog_check_msgfmt"
3158 if test -n "$check_msgfmt"; then
3159   echo "$ac_t""$check_msgfmt" 1>&6
3160 else
3161   echo "$ac_t""no" 1>&6
3162 fi
3163
3164       if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3165         USE_NLS=yes
3166       fi
3167       # Export the build objects.
3168       for ling in $ALL_LINGUAS; do \
3169         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3170         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3171       done
3172       
3173       
3174
3175       CLOCALE_H=config/locale/gnu/c_locale.h
3176       CLOCALE_CC=config/locale/gnu/c_locale.cc
3177       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3178       CCOLLATE_CC=config/locale/gnu/collate_members.cc
3179       CCTYPE_CC=config/locale/gnu/ctype_members.cc
3180       CMESSAGES_H=config/locale/gnu/messages_members.h
3181       CMESSAGES_CC=config/locale/gnu/messages_members.cc
3182       CMONEY_CC=config/locale/gnu/monetary_members.cc
3183       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3184       CTIME_CC=config/locale/gnu/time_members.cc
3185       ;;
3186     xieee_1003.1-2001)
3187       echo "$ac_t""generic" 1>&6
3188
3189       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3190       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3191       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3192       CCOLLATE_CC=config/locale/generic/collate_members.cc
3193       CCTYPE_CC=config/locale/generic/ctype_members.cc
3194       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3195       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3196       CMONEY_CC=config/locale/generic/monetary_members.cc
3197       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3198       CTIME_CC=config/locale/generic/time_members.cc
3199       ;;
3200     *)
3201       echo "$enable_clocale is an unknown locale package" 1>&2
3202       exit 1
3203       ;;
3204   esac
3205
3206   # This is where the testsuite looks for locale catalogs, using the
3207   # -DLOCALEDIR define during testsuite compilation.
3208   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3209   
3210
3211   
3212   
3213   
3214   
3215   
3216   
3217   
3218   
3219   
3220   
3221   
3222
3223 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3224 if test "${enable_c_mbchar+set}" = set; then
3225   enableval="$enable_c_mbchar"
3226   case "$enableval" in
3227  yes) enable_c_mbchar=yes ;;
3228  no)  enable_c_mbchar=no ;;
3229  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3230  esac
3231 else
3232   enable_c_mbchar=yes
3233 fi
3234
3235   
3236   # Check whether --enable-c99 or --disable-c99 was given.
3237 if test "${enable_c99+set}" = set; then
3238   enableval="$enable_c99"
3239     case "$enableval" in
3240    yes) enable_c99=yes ;;
3241    no)  enable_c99=no ;;
3242    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3243    esac
3244 else
3245   enable_c99=yes
3246 fi
3247  
3248   
3249   ac_ext=C
3250 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3251 ac_cpp='$CXXCPP $CPPFLAGS'
3252 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3253 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3254 cross_compiling=$ac_cv_prog_cxx_cross
3255
3256
3257   # Check for the existence of <math.h> functions used if C99 is enabled.
3258   ac_c99_math=yes;
3259   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3260 echo "configure:3261: checking for ISO C99 support in <math.h>" >&5
3261   cat > conftest.$ac_ext <<EOF
3262 #line 3263 "configure"
3263 #include "confdefs.h"
3264 #include <math.h>
3265 int main() {
3266 fpclassify(0.0);
3267 ; return 0; }
3268 EOF
3269 if { (eval echo configure:3270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3270   :
3271 else
3272   echo "configure: failed program was:" >&5
3273   cat conftest.$ac_ext >&5
3274   rm -rf conftest*
3275   ac_c99_math=no
3276 fi
3277 rm -f conftest*
3278   cat > conftest.$ac_ext <<EOF
3279 #line 3280 "configure"
3280 #include "confdefs.h"
3281 #include <math.h>
3282 int main() {
3283 isfinite(0.0);
3284 ; return 0; }
3285 EOF
3286 if { (eval echo configure:3287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3287   :
3288 else
3289   echo "configure: failed program was:" >&5
3290   cat conftest.$ac_ext >&5
3291   rm -rf conftest*
3292   ac_c99_math=no
3293 fi
3294 rm -f conftest*
3295   cat > conftest.$ac_ext <<EOF
3296 #line 3297 "configure"
3297 #include "confdefs.h"
3298 #include <math.h>
3299 int main() {
3300 isinf(0.0);
3301 ; return 0; }
3302 EOF
3303 if { (eval echo configure:3304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3304   :
3305 else
3306   echo "configure: failed program was:" >&5
3307   cat conftest.$ac_ext >&5
3308   rm -rf conftest*
3309   ac_c99_math=no
3310 fi
3311 rm -f conftest*
3312   cat > conftest.$ac_ext <<EOF
3313 #line 3314 "configure"
3314 #include "confdefs.h"
3315 #include <math.h>
3316 int main() {
3317 isnan(0.0);
3318 ; return 0; }
3319 EOF
3320 if { (eval echo configure:3321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3321   :
3322 else
3323   echo "configure: failed program was:" >&5
3324   cat conftest.$ac_ext >&5
3325   rm -rf conftest*
3326   ac_c99_math=no
3327 fi
3328 rm -f conftest*
3329   cat > conftest.$ac_ext <<EOF
3330 #line 3331 "configure"
3331 #include "confdefs.h"
3332 #include <math.h>
3333 int main() {
3334 isnormal(0.0);
3335 ; return 0; }
3336 EOF
3337 if { (eval echo configure:3338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3338   :
3339 else
3340   echo "configure: failed program was:" >&5
3341   cat conftest.$ac_ext >&5
3342   rm -rf conftest*
3343   ac_c99_math=no
3344 fi
3345 rm -f conftest*
3346   cat > conftest.$ac_ext <<EOF
3347 #line 3348 "configure"
3348 #include "confdefs.h"
3349 #include <math.h>
3350 int main() {
3351 signbit(0.0);
3352 ; return 0; }
3353 EOF
3354 if { (eval echo configure:3355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3355   :
3356 else
3357   echo "configure: failed program was:" >&5
3358   cat conftest.$ac_ext >&5
3359   rm -rf conftest*
3360   ac_c99_math=no
3361 fi
3362 rm -f conftest*
3363   cat > conftest.$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3366 #include <math.h>
3367 int main() {
3368 isgreater(0.0,0.0);
3369 ; return 0; }
3370 EOF
3371 if { (eval echo configure:3372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3372   :
3373 else
3374   echo "configure: failed program was:" >&5
3375   cat conftest.$ac_ext >&5
3376   rm -rf conftest*
3377   ac_c99_math=no
3378 fi
3379 rm -f conftest*
3380   cat > conftest.$ac_ext <<EOF
3381 #line 3382 "configure"
3382 #include "confdefs.h"
3383 #include <math.h>
3384 int main() {
3385 isgreaterequal(0.0,0.0);
3386 ; return 0; }
3387 EOF
3388 if { (eval echo configure:3389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3389   :
3390 else
3391   echo "configure: failed program was:" >&5
3392   cat conftest.$ac_ext >&5
3393   rm -rf conftest*
3394   ac_c99_math=no
3395 fi
3396 rm -f conftest*
3397   cat > conftest.$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3400 #include <math.h>
3401 int main() {
3402 isless(0.0,0.0);
3403 ; return 0; }
3404 EOF
3405 if { (eval echo configure:3406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3406   :
3407 else
3408   echo "configure: failed program was:" >&5
3409   cat conftest.$ac_ext >&5
3410   rm -rf conftest*
3411   ac_c99_math=no
3412 fi
3413 rm -f conftest*
3414   cat > conftest.$ac_ext <<EOF
3415 #line 3416 "configure"
3416 #include "confdefs.h"
3417 #include <math.h>
3418 int main() {
3419 islessequal(0.0,0.0);
3420 ; return 0; }
3421 EOF
3422 if { (eval echo configure:3423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3423   :
3424 else
3425   echo "configure: failed program was:" >&5
3426   cat conftest.$ac_ext >&5
3427   rm -rf conftest*
3428   ac_c99_math=no
3429 fi
3430 rm -f conftest*
3431   cat > conftest.$ac_ext <<EOF
3432 #line 3433 "configure"
3433 #include "confdefs.h"
3434 #include <math.h>
3435 int main() {
3436 islessgreater(0.0,0.0);
3437 ; return 0; }
3438 EOF
3439 if { (eval echo configure:3440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3440   :
3441 else
3442   echo "configure: failed program was:" >&5
3443   cat conftest.$ac_ext >&5
3444   rm -rf conftest*
3445   ac_c99_math=no
3446 fi
3447 rm -f conftest*
3448   cat > conftest.$ac_ext <<EOF
3449 #line 3450 "configure"
3450 #include "confdefs.h"
3451 #include <math.h>
3452 int main() {
3453 isunordered(0.0,0.0);
3454 ; return 0; }
3455 EOF
3456 if { (eval echo configure:3457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3457   :
3458 else
3459   echo "configure: failed program was:" >&5
3460   cat conftest.$ac_ext >&5
3461   rm -rf conftest*
3462   ac_c99_math=no
3463 fi
3464 rm -f conftest*
3465   echo "$ac_t""$ac_c99_math" 1>&6
3466
3467   # Check for the existence in <stdio.h> of vscanf, et. al.
3468   ac_c99_stdio=yes;
3469   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3470 echo "configure:3471: checking for ISO C99 support in <stdio.h>" >&5
3471   cat > conftest.$ac_ext <<EOF
3472 #line 3473 "configure"
3473 #include "confdefs.h"
3474 #include <stdio.h>
3475 int main() {
3476 snprintf("12", 0, "%i");
3477 ; return 0; }
3478 EOF
3479 if { (eval echo configure:3480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3480   :
3481 else
3482   echo "configure: failed program was:" >&5
3483   cat conftest.$ac_ext >&5
3484   rm -rf conftest*
3485   ac_c99_stdio=no
3486 fi
3487 rm -f conftest*
3488   cat > conftest.$ac_ext <<EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3491 #include <stdio.h>
3492                   #include <stdarg.h>
3493                   void foo(char* fmt, ...)
3494                   {va_list args; va_start(args, fmt);
3495                   vfscanf(stderr, "%i", args);}
3496 int main() {
3497
3498 ; return 0; }
3499 EOF
3500 if { (eval echo configure:3501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3501   :
3502 else
3503   echo "configure: failed program was:" >&5
3504   cat conftest.$ac_ext >&5
3505   rm -rf conftest*
3506   ac_c99_stdio=no
3507 fi
3508 rm -f conftest*
3509   cat > conftest.$ac_ext <<EOF
3510 #line 3511 "configure"
3511 #include "confdefs.h"
3512 #include <stdio.h>
3513                   #include <stdarg.h>
3514                   void foo(char* fmt, ...)
3515                   {va_list args; va_start(args, fmt);
3516                   vscanf("%i", args);}
3517 int main() {
3518
3519 ; return 0; }
3520 EOF
3521 if { (eval echo configure:3522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3522   :
3523 else
3524   echo "configure: failed program was:" >&5
3525   cat conftest.$ac_ext >&5
3526   rm -rf conftest*
3527   ac_c99_stdio=no
3528 fi
3529 rm -f conftest*
3530   cat > conftest.$ac_ext <<EOF
3531 #line 3532 "configure"
3532 #include "confdefs.h"
3533 #include <stdio.h>
3534                   #include <stdarg.h>
3535                   void foo(char* fmt, ...)
3536                   {va_list args; va_start(args, fmt);
3537                   vsnprintf(fmt, 0, "%i", args);}
3538 int main() {
3539
3540 ; return 0; }
3541 EOF
3542 if { (eval echo configure:3543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3543   :
3544 else
3545   echo "configure: failed program was:" >&5
3546   cat conftest.$ac_ext >&5
3547   rm -rf conftest*
3548   ac_c99_stdio=no
3549 fi
3550 rm -f conftest*
3551   cat > conftest.$ac_ext <<EOF
3552 #line 3553 "configure"
3553 #include "confdefs.h"
3554 #include <stdio.h>
3555                   #include <stdarg.h>
3556                   void foo(char* fmt, ...)
3557                   {va_list args; va_start(args, fmt);
3558                   vsscanf(fmt, "%i", args);}
3559 int main() {
3560
3561 ; return 0; }
3562 EOF
3563 if { (eval echo configure:3564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3564   :
3565 else
3566   echo "configure: failed program was:" >&5
3567   cat conftest.$ac_ext >&5
3568   rm -rf conftest*
3569   ac_c99_stdio=no
3570 fi
3571 rm -f conftest*
3572   echo "$ac_t""$ac_c99_stdio" 1>&6
3573
3574   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3575   ac_c99_stdlib=yes;
3576   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3577 echo "configure:3578: checking for lldiv_t declaration" >&5
3578   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3579   echo $ac_n "(cached) $ac_c" 1>&6
3580 else
3581   
3582   cat > conftest.$ac_ext <<EOF
3583 #line 3584 "configure"
3584 #include "confdefs.h"
3585 #include <stdlib.h>
3586 int main() {
3587  lldiv_t mydivt;
3588 ; return 0; }
3589 EOF
3590 if { (eval echo configure:3591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3591   rm -rf conftest*
3592   ac_c99_lldiv_t=yes
3593 else
3594   echo "configure: failed program was:" >&5
3595   cat conftest.$ac_ext >&5
3596   rm -rf conftest*
3597   ac_c99_lldiv_t=no
3598 fi
3599 rm -f conftest*
3600   
3601 fi
3602
3603   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3604
3605   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3606 echo "configure:3607: checking for ISO C99 support in <stdlib.h>" >&5
3607   cat > conftest.$ac_ext <<EOF
3608 #line 3609 "configure"
3609 #include "confdefs.h"
3610 #include <stdlib.h>
3611 int main() {
3612 char* tmp; strtof("gnu", &tmp);
3613 ; return 0; }
3614 EOF
3615 if { (eval echo configure:3616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3616   :
3617 else
3618   echo "configure: failed program was:" >&5
3619   cat conftest.$ac_ext >&5
3620   rm -rf conftest*
3621   ac_c99_stdlib=no
3622 fi
3623 rm -f conftest*
3624   cat > conftest.$ac_ext <<EOF
3625 #line 3626 "configure"
3626 #include "confdefs.h"
3627 #include <stdlib.h>
3628 int main() {
3629 char* tmp; strtold("gnu", &tmp);
3630 ; return 0; }
3631 EOF
3632 if { (eval echo configure:3633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3633   :
3634 else
3635   echo "configure: failed program was:" >&5
3636   cat conftest.$ac_ext >&5
3637   rm -rf conftest*
3638   ac_c99_stdlib=no
3639 fi
3640 rm -f conftest*
3641   cat > conftest.$ac_ext <<EOF
3642 #line 3643 "configure"
3643 #include "confdefs.h"
3644 #include <stdlib.h>
3645 int main() {
3646 llabs(10);
3647 ; return 0; }
3648 EOF
3649 if { (eval echo configure:3650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3650   :
3651 else
3652   echo "configure: failed program was:" >&5
3653   cat conftest.$ac_ext >&5
3654   rm -rf conftest*
3655   ac_c99_stdlib=no
3656 fi
3657 rm -f conftest*
3658   cat > conftest.$ac_ext <<EOF
3659 #line 3660 "configure"
3660 #include "confdefs.h"
3661 #include <stdlib.h>
3662 int main() {
3663 lldiv(10,1);
3664 ; return 0; }
3665 EOF
3666 if { (eval echo configure:3667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3667   :
3668 else
3669   echo "configure: failed program was:" >&5
3670   cat conftest.$ac_ext >&5
3671   rm -rf conftest*
3672   ac_c99_stdlib=no
3673 fi
3674 rm -f conftest*
3675   cat > conftest.$ac_ext <<EOF
3676 #line 3677 "configure"
3677 #include "confdefs.h"
3678 #include <stdlib.h>
3679 int main() {
3680 atoll("10");
3681 ; return 0; }
3682 EOF
3683 if { (eval echo configure:3684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3684   :
3685 else
3686   echo "configure: failed program was:" >&5
3687   cat conftest.$ac_ext >&5
3688   rm -rf conftest*
3689   ac_c99_stdlib=no
3690 fi
3691 rm -f conftest*
3692   cat > conftest.$ac_ext <<EOF
3693 #line 3694 "configure"
3694 #include "confdefs.h"
3695 #include <stdlib.h>
3696 int main() {
3697 _Exit(0);
3698 ; return 0; }
3699 EOF
3700 if { (eval echo configure:3701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3701   :
3702 else
3703   echo "configure: failed program was:" >&5
3704   cat conftest.$ac_ext >&5
3705   rm -rf conftest*
3706   ac_c99_stdlib=no
3707 fi
3708 rm -f conftest*
3709   if test x"$ac_c99_lldiv_t" = x"no"; then
3710     ac_c99_stdlib=no; 
3711   fi; 
3712   echo "$ac_t""$ac_c99_stdlib" 1>&6
3713
3714   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3715   # XXX the wchar.h checks should be rolled into the general C99 bits.
3716   ac_c99_wchar=yes;
3717   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3718 echo "configure:3719: checking for additional ISO C99 support in <wchar.h>" >&5
3719   cat > conftest.$ac_ext <<EOF
3720 #line 3721 "configure"
3721 #include "confdefs.h"
3722 #include <wchar.h>
3723 int main() {
3724 wcstold(L"10.0", NULL);
3725 ; return 0; }
3726 EOF
3727 if { (eval echo configure:3728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3728   :
3729 else
3730   echo "configure: failed program was:" >&5
3731   cat conftest.$ac_ext >&5
3732   rm -rf conftest*
3733   ac_c99_wchar=no
3734 fi
3735 rm -f conftest*
3736   cat > conftest.$ac_ext <<EOF
3737 #line 3738 "configure"
3738 #include "confdefs.h"
3739 #include <wchar.h>
3740 int main() {
3741 wcstoll(L"10", NULL, 10);
3742 ; return 0; }
3743 EOF
3744 if { (eval echo configure:3745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3745   :
3746 else
3747   echo "configure: failed program was:" >&5
3748   cat conftest.$ac_ext >&5
3749   rm -rf conftest*
3750   ac_c99_wchar=no
3751 fi
3752 rm -f conftest*
3753   cat > conftest.$ac_ext <<EOF
3754 #line 3755 "configure"
3755 #include "confdefs.h"
3756 #include <wchar.h>
3757 int main() {
3758 wcstoull(L"10", NULL, 10);
3759 ; return 0; }
3760 EOF
3761 if { (eval echo configure:3762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3762   :
3763 else
3764   echo "configure: failed program was:" >&5
3765   cat conftest.$ac_ext >&5
3766   rm -rf conftest*
3767   ac_c99_wchar=no
3768 fi
3769 rm -f conftest*
3770   echo "$ac_t""$ac_c99_wchar" 1>&6
3771
3772   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3773 echo "configure:3774: checking for enabled ISO C99 support" >&5
3774   if test x"$ac_c99_math" = x"no" ||
3775      test x"$ac_c99_stdio" = x"no" ||
3776      test x"$ac_c99_stdlib" = x"no" ||
3777      test x"$ac_c99_wchar" = x"no"; then
3778     enable_c99=no; 
3779   fi; 
3780   echo "$ac_t""$enable_c99" 1>&6
3781
3782   # Option parsed, now set things appropriately
3783   if test x"$enable_c99" = x"yes"; then
3784     cat >> confdefs.h <<\EOF
3785 #define _GLIBCPP_USE_C99 1
3786 EOF
3787
3788   fi
3789
3790   ac_ext=c
3791 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3792 ac_cpp='$CPP $CPPFLAGS'
3793 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3794 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3795 cross_compiling=$ac_cv_prog_cc_cross
3796
3797
3798   
3799   # Check whether --enable-long-long or --disable-long-long was given.
3800 if test "${enable_long_long+set}" = set; then
3801   enableval="$enable_long_long"
3802     case "$enableval" in
3803    yes) enable_long_long=yes ;;
3804    no)  enable_long_long=no ;;
3805    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3806    esac
3807 else
3808   enable_long_long=yes
3809 fi
3810
3811   
3812   ac_ext=C
3813 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3814 ac_cpp='$CXXCPP $CPPFLAGS'
3815 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3816 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3817 cross_compiling=$ac_cv_prog_cxx_cross
3818
3819
3820   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3821 echo "configure:3822: checking for enabled long long I/O support" >&5
3822   # iostreams require strtoll, strtoull to compile
3823   cat > conftest.$ac_ext <<EOF
3824 #line 3825 "configure"
3825 #include "confdefs.h"
3826 #include <stdlib.h>
3827 int main() {
3828 char* tmp; strtoll("gnu", &tmp, 10);
3829 ; return 0; }
3830 EOF
3831 if { (eval echo configure:3832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3832   :
3833 else
3834   echo "configure: failed program was:" >&5
3835   cat conftest.$ac_ext >&5
3836   rm -rf conftest*
3837   enable_long_long=no
3838 fi
3839 rm -f conftest*
3840   cat > conftest.$ac_ext <<EOF
3841 #line 3842 "configure"
3842 #include "confdefs.h"
3843 #include <stdlib.h>
3844 int main() {
3845 char* tmp; strtoull("gnu", &tmp, 10);
3846 ; return 0; }
3847 EOF
3848 if { (eval echo configure:3849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3849   :
3850 else
3851   echo "configure: failed program was:" >&5
3852   cat conftest.$ac_ext >&5
3853   rm -rf conftest*
3854   enable_long_long=no
3855 fi
3856 rm -f conftest*
3857
3858   # Option parsed, now set things appropriately
3859   if test x"$enable_long_long" = xyes; then
3860     cat >> confdefs.h <<\EOF
3861 #define _GLIBCPP_USE_LONG_LONG 1
3862 EOF
3863
3864   fi
3865   echo "$ac_t""$enable_long_long" 1>&6
3866
3867   ac_ext=c
3868 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3869 ac_cpp='$CPP $CPPFLAGS'
3870 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3871 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3872 cross_compiling=$ac_cv_prog_cc_cross
3873
3874
3875 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3876 echo "configure:3877: checking for c header strategy to use" >&5
3877 # Check whether --enable-cheaders or --disable-cheaders was given.
3878 if test "${enable_cheaders+set}" = set; then
3879   enableval="$enable_cheaders"
3880   
3881   case "$enableval" in
3882    c) 
3883         enable_cheaders=c 
3884         ;;
3885    c_std)  
3886         enable_cheaders=c_std 
3887         ;;
3888    c_shadow)  
3889         enable_cheaders=c_shadow 
3890         ;;
3891    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3892         ;;
3893   esac
3894 else
3895   enable_cheaders=c_std
3896 fi
3897
3898   echo "$ac_t""$enable_cheaders" 1>&6
3899
3900     case "$enable_cheaders" in
3901     c_shadow) 
3902         CSHADOW_FLAGS="-fno-builtin"
3903         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3904         ;;
3905     c_std)   
3906         CSHADOW_FLAGS=""
3907         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3908         ;;
3909     c)   
3910         CSHADOW_FLAGS=""
3911         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3912         ;;
3913   esac
3914
3915   
3916   
3917   
3918
3919 if test "$enable_cheaders" = c; then
3920   GLIBCPP_C_HEADERS_C_TRUE=
3921   GLIBCPP_C_HEADERS_C_FALSE='#'
3922 else
3923   GLIBCPP_C_HEADERS_C_TRUE='#'
3924   GLIBCPP_C_HEADERS_C_FALSE=
3925 fi
3926   
3927
3928 if test "$enable_cheaders" = c_std; then
3929   GLIBCPP_C_HEADERS_C_STD_TRUE=
3930   GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3931 else
3932   GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3933   GLIBCPP_C_HEADERS_C_STD_FALSE=
3934 fi
3935
3936
3937   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3938 echo "configure:3939: checking for thread model used by GCC" >&5
3939   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3940   echo "$ac_t""$target_thread_file" 1>&6
3941
3942   if test $target_thread_file != single; then
3943     cat >> confdefs.h <<\EOF
3944 #define HAVE_GTHR_DEFAULT 1
3945 EOF
3946
3947     cat >> confdefs.h <<\EOF
3948 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3949 EOF
3950
3951   fi
3952
3953   glibcpp_thread_h=gthr-$target_thread_file.h
3954   
3955
3956 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3957 if test "${enable_cxx_flags+set}" = set; then
3958   enableval="$enable_cxx_flags"
3959   case "x$enableval" in
3960  xyes)   
3961         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3962  xno|x)  
3963         enable_cxx_flags='' ;;
3964  *)      
3965         enable_cxx_flags="$enableval" ;;
3966  esac
3967 else
3968   enable_cxx_flags='none'
3969 fi
3970
3971
3972 if test "$enable_cxx_flags" = "none"; then 
3973   enable_cxx_flags=''; 
3974 fi
3975
3976 if test -n "$enable_cxx_flags"; then
3977     for f in $enable_cxx_flags; do
3978         case "$f" in
3979             -fhonor-std)  ;;
3980             -*)  ;;
3981             *)   # and we're trying to pass /what/ exactly?
3982                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3983         esac
3984     done
3985 fi
3986 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3987
3988
3989
3990   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3991 echo "configure:3992: checking for exception model to use" >&5
3992   
3993   ac_ext=C
3994 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3995 ac_cpp='$CXXCPP $CPPFLAGS'
3996 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3997 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3998 cross_compiling=$ac_cv_prog_cxx_cross
3999
4000   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
4001 if test "${enable_sjlj_exceptions+set}" = set; then
4002   enableval="$enable_sjlj_exceptions"
4003   :
4004 else
4005                        cat > conftest.$ac_ext << EOF
4006 #line 4007 "configure"
4007 struct S { ~S(); };
4008 void bar();
4009 void foo()
4010 {
4011   S s;
4012   bar();
4013 }
4014 EOF
4015    old_CXXFLAGS="$CXXFLAGS"  
4016    CXXFLAGS=-S
4017    if { (eval echo configure:4018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4018      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
4019        enable_sjlj_exceptions=yes
4020      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
4021        enable_sjlj_exceptions=no
4022      fi
4023    fi
4024    CXXFLAGS="$old_CXXFLAGS"
4025    rm -f conftest*
4026 fi
4027
4028    if test x$enable_sjlj_exceptions = xyes; then
4029      cat >> confdefs.h <<\EOF
4030 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
4031 EOF
4032
4033      ac_exception_model_name=sjlj
4034    elif test x$enable_sjlj_exceptions = xno; then
4035      ac_exception_model_name="call frame"
4036    else
4037      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
4038    fi
4039    ac_ext=c
4040 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4041 ac_cpp='$CPP $CPPFLAGS'
4042 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4043 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4044 cross_compiling=$ac_cv_prog_cc_cross
4045
4046    echo "$ac_t""$ac_exception_model_name" 1>&6
4047
4048
4049   echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4050 echo "configure:4051: checking for use of libunwind" >&5
4051   # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4052 if test "${enable_libunwind_exceptions+set}" = set; then
4053   enableval="$enable_libunwind_exceptions"
4054   use_libunwind_exceptions=$enableval
4055 else
4056   use_libunwind_exceptions=no
4057 fi
4058
4059   echo "$ac_t""$use_libunwind_exceptions" 1>&6
4060     if test x"$use_libunwind_exceptions" = xyes; then
4061     LIBUNWIND_FLAG="-lunwind"
4062   else
4063     LIBUNWIND_FLAG=""
4064   fi
4065   
4066
4067 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4068 if test "${enable_concept_checks+set}" = set; then
4069   enableval="$enable_concept_checks"
4070   case "$enableval" in
4071  yes) enable_concept_checks=yes ;;
4072  no)  enable_concept_checks=no ;;
4073  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4074  esac
4075 else
4076   enable_concept_checks=no
4077 fi
4078 if test x"$enable_concept_checks" = xyes; then
4079   cat >> confdefs.h <<\EOF
4080 #define _GLIBCPP_CONCEPT_CHECKS 1
4081 EOF
4082
4083 fi
4084
4085
4086 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
4087 for ac_hdr in string.h stdlib.h
4088 do
4089 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4090 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4091 echo "configure:4092: checking for $ac_hdr" >&5
4092 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4093   echo $ac_n "(cached) $ac_c" 1>&6
4094 else
4095   cat > conftest.$ac_ext <<EOF
4096 #line 4097 "configure"
4097 #include "confdefs.h"
4098 #include <$ac_hdr>
4099 EOF
4100 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4101 { (eval echo configure:4102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4102 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4103 if test -z "$ac_err"; then
4104   rm -rf conftest*
4105   eval "ac_cv_header_$ac_safe=yes"
4106 else
4107   echo "$ac_err" >&5
4108   echo "configure: failed program was:" >&5
4109   cat conftest.$ac_ext >&5
4110   rm -rf conftest*
4111   eval "ac_cv_header_$ac_safe=no"
4112 fi
4113 rm -f conftest*
4114 fi
4115 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4116   echo "$ac_t""yes" 1>&6
4117     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4118   cat >> confdefs.h <<EOF
4119 #define $ac_tr_hdr 1
4120 EOF
4121  
4122 else
4123   echo "$ac_t""no" 1>&6
4124 fi
4125 done
4126
4127
4128 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4129
4130   # We are being configured with some form of cross compiler.
4131   GLIBCPP_IS_CROSS_COMPILING=1
4132
4133   # This lets us hard-code the functionality we know we'll have in the cross
4134   # target environment.  "Let" is a sugar-coated word placed on an especially
4135   # dull and tedious hack, actually.
4136   #
4137   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4138   # that involve linking, can't be used:
4139   #    "cannot open sim-crt0.o"
4140   #    "cannot open crt0.o"
4141   # etc.  All this is because there currently exists no unified, consistent
4142   # way for top level CC information to be passed down to target directories:
4143   # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4144   # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4145   # crosses can be removed.
4146
4147   # If Canadian cross, then don't pick up tools from the build directory.
4148   # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4149   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4150     CANADIAN=yes
4151   else
4152     CANADIAN=no
4153   fi
4154
4155   # Construct crosses by hand, eliminating bits that need ld...
4156   # GLIBCPP_CHECK_COMPILER_FEATURES
4157   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4158   # GLIBCPP_CHECK_MATH_SUPPORT
4159
4160   case "$target_alias" in
4161     *-linux*)
4162       os_include_dir="os/gnu-linux"
4163       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4164         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4165         fp.h locale.h float.h inttypes.h
4166 do
4167 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4168 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4169 echo "configure:4170: checking for $ac_hdr" >&5
4170 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4171   echo $ac_n "(cached) $ac_c" 1>&6
4172 else
4173   cat > conftest.$ac_ext <<EOF
4174 #line 4175 "configure"
4175 #include "confdefs.h"
4176 #include <$ac_hdr>
4177 EOF
4178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4179 { (eval echo configure:4180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4180 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4181 if test -z "$ac_err"; then
4182   rm -rf conftest*
4183   eval "ac_cv_header_$ac_safe=yes"
4184 else
4185   echo "$ac_err" >&5
4186   echo "configure: failed program was:" >&5
4187   cat conftest.$ac_ext >&5
4188   rm -rf conftest*
4189   eval "ac_cv_header_$ac_safe=no"
4190 fi
4191 rm -f conftest*
4192 fi
4193 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4194   echo "$ac_t""yes" 1>&6
4195     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4196   cat >> confdefs.h <<EOF
4197 #define $ac_tr_hdr 1
4198 EOF
4199  
4200 else
4201   echo "$ac_t""no" 1>&6
4202 fi
4203 done
4204
4205       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4206       
4207       
4208   # If we're not using GNU ld, then there's no point in even trying these
4209   # tests.  Check for that first.  We should have already tested for gld
4210   # by now (in libtool), but require it now just to be safe...
4211   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4212   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4213   
4214
4215   # The name set by libtool depends on the version of libtool.  Shame on us
4216   # for depending on an impl detail, but c'est la vie.  Older versions used
4217   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4218   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4219   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4220   # set (hence we're using an older libtool), then set it.
4221   if test x${with_gnu_ld+set} != xset; then
4222     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4223       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4224       with_gnu_ld=no
4225     else
4226       with_gnu_ld=$ac_cv_prog_gnu_ld
4227     fi
4228   fi
4229
4230   # Start by getting the version number.  I think the libtool test already
4231   # does some of this, but throws away the result.
4232   
4233   ldver=`$LD --version 2>/dev/null | head -1 | \
4234          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4235   
4236   glibcpp_gnu_ld_version=`echo $ldver | \
4237          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4238
4239   # Set --gc-sections.
4240   if test "$with_gnu_ld" = "notbroken"; then
4241     # GNU ld it is!  Joy and bunny rabbits!
4242
4243     # All these tests are for C++; save the language and the compiler flags.
4244     # Need to do this so that g++ won't try to link in libstdc++
4245     ac_test_CFLAGS="${CFLAGS+set}"
4246     ac_save_CFLAGS="$CFLAGS"
4247     CFLAGS='-x c++  -Wl,--gc-sections'
4248
4249     # Check for -Wl,--gc-sections
4250     # XXX This test is broken at the moment, as symbols required for
4251     # linking are now in libsupc++ (not built yet.....). In addition, 
4252     # this test has cored on solaris in the past. In addition,
4253     # --gc-sections doesn't really work at the moment (keeps on discarding
4254     # used sections, first .eh_frame and now some of the glibc sections for
4255     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4256     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4257 echo "configure:4258: checking for ld that supports -Wl,--gc-sections" >&5
4258     if test "$cross_compiling" = yes; then
4259   ac_sectionLDflags=yes
4260 else
4261   cat > conftest.$ac_ext <<EOF
4262 #line 4263 "configure"
4263 #include "confdefs.h"
4264
4265      int main(void) 
4266      {
4267        try { throw 1; }
4268        catch (...) { };
4269        return 0;
4270      }
4271     
4272 EOF
4273 if { (eval echo configure:4274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4274 then
4275   ac_sectionLDflags=yes
4276 else
4277   echo "configure: failed program was:" >&5
4278   cat conftest.$ac_ext >&5
4279   rm -fr conftest*
4280   ac_sectionLDflags=no
4281 fi
4282 rm -fr conftest*
4283 fi
4284
4285     if test "$ac_test_CFLAGS" = set; then
4286       CFLAGS="$ac_save_CFLAGS"
4287     else
4288       # this is the suspicious part
4289       CFLAGS=''
4290     fi
4291     if test "$ac_sectionLDflags" = "yes"; then
4292       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4293     fi
4294     echo "$ac_t""$ac_sectionLDflags" 1>&6
4295   fi
4296
4297   # Set linker optimization flags.
4298   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4299     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4300   fi
4301
4302   
4303   
4304
4305       
4306     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4307 echo "configure:4308: checking for main in -lm" >&5
4308 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4309 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4310   echo $ac_n "(cached) $ac_c" 1>&6
4311 else
4312   ac_save_LIBS="$LIBS"
4313 LIBS="-lm  $LIBS"
4314 cat > conftest.$ac_ext <<EOF
4315 #line 4316 "configure"
4316 #include "confdefs.h"
4317
4318 int main() {
4319 main()
4320 ; return 0; }
4321 EOF
4322 if { (eval echo configure:4323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4323   rm -rf conftest*
4324   eval "ac_cv_lib_$ac_lib_var=yes"
4325 else
4326   echo "configure: failed program was:" >&5
4327   cat conftest.$ac_ext >&5
4328   rm -rf conftest*
4329   eval "ac_cv_lib_$ac_lib_var=no"
4330 fi
4331 rm -f conftest*
4332 LIBS="$ac_save_LIBS"
4333
4334 fi
4335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4336   echo "$ac_t""yes" 1>&6
4337     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4338     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4339   cat >> confdefs.h <<EOF
4340 #define $ac_tr_lib 1
4341 EOF
4342
4343   LIBS="-lm $LIBS"
4344
4345 else
4346   echo "$ac_t""no" 1>&6
4347 fi
4348
4349   for ac_func in nan copysignf
4350 do
4351 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4352 echo "configure:4353: checking for $ac_func" >&5
4353 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4354   echo $ac_n "(cached) $ac_c" 1>&6
4355 else
4356   cat > conftest.$ac_ext <<EOF
4357 #line 4358 "configure"
4358 #include "confdefs.h"
4359 /* System header to define __stub macros and hopefully few prototypes,
4360     which can conflict with char $ac_func(); below.  */
4361 #include <assert.h>
4362 /* Override any gcc2 internal prototype to avoid an error.  */
4363 /* We use char because int might match the return type of a gcc2
4364     builtin and then its argument prototype would still apply.  */
4365 char $ac_func();
4366
4367 int main() {
4368
4369 /* The GNU C library defines this for functions which it implements
4370     to always fail with ENOSYS.  Some functions are actually named
4371     something starting with __ and the normal name is an alias.  */
4372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4373 choke me
4374 #else
4375 $ac_func();
4376 #endif
4377
4378 ; return 0; }
4379 EOF
4380 if { (eval echo configure:4381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4381   rm -rf conftest*
4382   eval "ac_cv_func_$ac_func=yes"
4383 else
4384   echo "configure: failed program was:" >&5
4385   cat conftest.$ac_ext >&5
4386   rm -rf conftest*
4387   eval "ac_cv_func_$ac_func=no"
4388 fi
4389 rm -f conftest*
4390 fi
4391
4392 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4393   echo "$ac_t""yes" 1>&6
4394     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4395   cat >> confdefs.h <<EOF
4396 #define $ac_tr_func 1
4397 EOF
4398  
4399 else
4400   echo "$ac_t""no" 1>&6
4401 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4402 fi
4403 done
4404
4405
4406     for ac_func in __signbit
4407 do
4408 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4409 echo "configure:4410: checking for $ac_func" >&5
4410 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4411   echo $ac_n "(cached) $ac_c" 1>&6
4412 else
4413   cat > conftest.$ac_ext <<EOF
4414 #line 4415 "configure"
4415 #include "confdefs.h"
4416 /* System header to define __stub macros and hopefully few prototypes,
4417     which can conflict with char $ac_func(); below.  */
4418 #include <assert.h>
4419 /* Override any gcc2 internal prototype to avoid an error.  */
4420 /* We use char because int might match the return type of a gcc2
4421     builtin and then its argument prototype would still apply.  */
4422 char $ac_func();
4423
4424 int main() {
4425
4426 /* The GNU C library defines this for functions which it implements
4427     to always fail with ENOSYS.  Some functions are actually named
4428     something starting with __ and the normal name is an alias.  */
4429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4430 choke me
4431 #else
4432 $ac_func();
4433 #endif
4434
4435 ; return 0; }
4436 EOF
4437 if { (eval echo configure:4438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4438   rm -rf conftest*
4439   eval "ac_cv_func_$ac_func=yes"
4440 else
4441   echo "configure: failed program was:" >&5
4442   cat conftest.$ac_ext >&5
4443   rm -rf conftest*
4444   eval "ac_cv_func_$ac_func=no"
4445 fi
4446 rm -f conftest*
4447 fi
4448
4449 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4450   echo "$ac_t""yes" 1>&6
4451     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4452   cat >> confdefs.h <<EOF
4453 #define $ac_tr_func 1
4454 EOF
4455  
4456 else
4457   echo "$ac_t""no" 1>&6
4458 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4459 fi
4460 done
4461
4462   for ac_func in __signbitf
4463 do
4464 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4465 echo "configure:4466: checking for $ac_func" >&5
4466 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4467   echo $ac_n "(cached) $ac_c" 1>&6
4468 else
4469   cat > conftest.$ac_ext <<EOF
4470 #line 4471 "configure"
4471 #include "confdefs.h"
4472 /* System header to define __stub macros and hopefully few prototypes,
4473     which can conflict with char $ac_func(); below.  */
4474 #include <assert.h>
4475 /* Override any gcc2 internal prototype to avoid an error.  */
4476 /* We use char because int might match the return type of a gcc2
4477     builtin and then its argument prototype would still apply.  */
4478 char $ac_func();
4479
4480 int main() {
4481
4482 /* The GNU C library defines this for functions which it implements
4483     to always fail with ENOSYS.  Some functions are actually named
4484     something starting with __ and the normal name is an alias.  */
4485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4486 choke me
4487 #else
4488 $ac_func();
4489 #endif
4490
4491 ; return 0; }
4492 EOF
4493 if { (eval echo configure:4494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4494   rm -rf conftest*
4495   eval "ac_cv_func_$ac_func=yes"
4496 else
4497   echo "configure: failed program was:" >&5
4498   cat conftest.$ac_ext >&5
4499   rm -rf conftest*
4500   eval "ac_cv_func_$ac_func=no"
4501 fi
4502 rm -f conftest*
4503 fi
4504
4505 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4506   echo "$ac_t""yes" 1>&6
4507     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4508   cat >> confdefs.h <<EOF
4509 #define $ac_tr_func 1
4510 EOF
4511  
4512 else
4513   echo "$ac_t""no" 1>&6
4514 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4515 fi
4516 done
4517
4518
4519           if test x$ac_cv_func_copysignl = x"yes"; then
4520     for ac_func in __signbitl
4521 do
4522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4523 echo "configure:4524: checking for $ac_func" >&5
4524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4525   echo $ac_n "(cached) $ac_c" 1>&6
4526 else
4527   cat > conftest.$ac_ext <<EOF
4528 #line 4529 "configure"
4529 #include "confdefs.h"
4530 /* System header to define __stub macros and hopefully few prototypes,
4531     which can conflict with char $ac_func(); below.  */
4532 #include <assert.h>
4533 /* Override any gcc2 internal prototype to avoid an error.  */
4534 /* We use char because int might match the return type of a gcc2
4535     builtin and then its argument prototype would still apply.  */
4536 char $ac_func();
4537
4538 int main() {
4539
4540 /* The GNU C library defines this for functions which it implements
4541     to always fail with ENOSYS.  Some functions are actually named
4542     something starting with __ and the normal name is an alias.  */
4543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4544 choke me
4545 #else
4546 $ac_func();
4547 #endif
4548
4549 ; return 0; }
4550 EOF
4551 if { (eval echo configure:4552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4552   rm -rf conftest*
4553   eval "ac_cv_func_$ac_func=yes"
4554 else
4555   echo "configure: failed program was:" >&5
4556   cat conftest.$ac_ext >&5
4557   rm -rf conftest*
4558   eval "ac_cv_func_$ac_func=no"
4559 fi
4560 rm -f conftest*
4561 fi
4562
4563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4564   echo "$ac_t""yes" 1>&6
4565     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4566   cat >> confdefs.h <<EOF
4567 #define $ac_tr_func 1
4568 EOF
4569  
4570 else
4571   echo "$ac_t""no" 1>&6
4572 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4573 fi
4574 done
4575
4576   fi
4577
4578   
4579
4580       
4581
4582       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4583 echo "configure:4584: checking for mbstate_t" >&5
4584   cat > conftest.$ac_ext <<EOF
4585 #line 4586 "configure"
4586 #include "confdefs.h"
4587 #include <wchar.h>
4588 int main() {
4589 mbstate_t teststate;
4590 ; return 0; }
4591 EOF
4592 if { (eval echo configure:4593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4593   rm -rf conftest*
4594   have_mbstate_t=yes
4595 else
4596   echo "configure: failed program was:" >&5
4597   cat conftest.$ac_ext >&5
4598   rm -rf conftest*
4599   have_mbstate_t=no
4600 fi
4601 rm -f conftest*
4602   echo "$ac_t""$have_mbstate_t" 1>&6
4603   if test x"$have_mbstate_t" = xyes; then
4604     cat >> confdefs.h <<\EOF
4605 #define HAVE_MBSTATE_T 1
4606 EOF
4607
4608   fi
4609
4610     for ac_hdr in wchar.h
4611 do
4612 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4614 echo "configure:4615: checking for $ac_hdr" >&5
4615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4616   echo $ac_n "(cached) $ac_c" 1>&6
4617 else
4618   cat > conftest.$ac_ext <<EOF
4619 #line 4620 "configure"
4620 #include "confdefs.h"
4621 #include <$ac_hdr>
4622 EOF
4623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4624 { (eval echo configure:4625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4626 if test -z "$ac_err"; then
4627   rm -rf conftest*
4628   eval "ac_cv_header_$ac_safe=yes"
4629 else
4630   echo "$ac_err" >&5
4631   echo "configure: failed program was:" >&5
4632   cat conftest.$ac_ext >&5
4633   rm -rf conftest*
4634   eval "ac_cv_header_$ac_safe=no"
4635 fi
4636 rm -f conftest*
4637 fi
4638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4639   echo "$ac_t""yes" 1>&6
4640     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4641   cat >> confdefs.h <<EOF
4642 #define $ac_tr_hdr 1
4643 EOF
4644  ac_has_wchar_h=yes
4645 else
4646   echo "$ac_t""no" 1>&6
4647 ac_has_wchar_h=no
4648 fi
4649 done
4650
4651   for ac_hdr in wctype.h
4652 do
4653 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4654 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4655 echo "configure:4656: checking for $ac_hdr" >&5
4656 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4657   echo $ac_n "(cached) $ac_c" 1>&6
4658 else
4659   cat > conftest.$ac_ext <<EOF
4660 #line 4661 "configure"
4661 #include "confdefs.h"
4662 #include <$ac_hdr>
4663 EOF
4664 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4665 { (eval echo configure:4666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4666 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4667 if test -z "$ac_err"; then
4668   rm -rf conftest*
4669   eval "ac_cv_header_$ac_safe=yes"
4670 else
4671   echo "$ac_err" >&5
4672   echo "configure: failed program was:" >&5
4673   cat conftest.$ac_ext >&5
4674   rm -rf conftest*
4675   eval "ac_cv_header_$ac_safe=no"
4676 fi
4677 rm -f conftest*
4678 fi
4679 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4680   echo "$ac_t""yes" 1>&6
4681     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4682   cat >> confdefs.h <<EOF
4683 #define $ac_tr_hdr 1
4684 EOF
4685  ac_has_wctype_h=yes
4686 else
4687   echo "$ac_t""no" 1>&6
4688 ac_has_wctype_h=no
4689 fi
4690 done
4691
4692   
4693     if test x"$ac_has_wchar_h" = xyes &&
4694      test x"$ac_has_wctype_h" = xyes &&
4695      test x"$enable_c_mbchar" != xno; then
4696       
4697             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4698 echo "configure:4699: checking for WCHAR_MIN and WCHAR_MAX" >&5
4699     cat > conftest.$ac_ext <<EOF
4700 #line 4701 "configure"
4701 #include "confdefs.h"
4702 #include <wchar.h>
4703 int main() {
4704 int i = WCHAR_MIN; int j = WCHAR_MAX;
4705 ; return 0; }
4706 EOF
4707 if { (eval echo configure:4708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4708   rm -rf conftest*
4709   has_wchar_minmax=yes
4710 else
4711   echo "configure: failed program was:" >&5
4712   cat conftest.$ac_ext >&5
4713   rm -rf conftest*
4714   has_wchar_minmax=no
4715 fi
4716 rm -f conftest*
4717     echo "$ac_t""$has_wchar_minmax" 1>&6
4718     
4719             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4720 echo "configure:4721: checking for WEOF" >&5
4721     cat > conftest.$ac_ext <<EOF
4722 #line 4723 "configure"
4723 #include "confdefs.h"
4724
4725       #include <wchar.h>
4726       #include <stddef.h>
4727 int main() {
4728 wint_t i = WEOF;
4729 ; return 0; }
4730 EOF
4731 if { (eval echo configure:4732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4732   rm -rf conftest*
4733   has_weof=yes
4734 else
4735   echo "configure: failed program was:" >&5
4736   cat conftest.$ac_ext >&5
4737   rm -rf conftest*
4738   has_weof=no
4739 fi
4740 rm -f conftest*
4741     echo "$ac_t""$has_weof" 1>&6
4742   
4743         ac_wfuncs=yes
4744     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4745 do
4746 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4747 echo "configure:4748: checking for $ac_func" >&5
4748 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4749   echo $ac_n "(cached) $ac_c" 1>&6
4750 else
4751   cat > conftest.$ac_ext <<EOF
4752 #line 4753 "configure"
4753 #include "confdefs.h"
4754 /* System header to define __stub macros and hopefully few prototypes,
4755     which can conflict with char $ac_func(); below.  */
4756 #include <assert.h>
4757 /* Override any gcc2 internal prototype to avoid an error.  */
4758 /* We use char because int might match the return type of a gcc2
4759     builtin and then its argument prototype would still apply.  */
4760 char $ac_func();
4761
4762 int main() {
4763
4764 /* The GNU C library defines this for functions which it implements
4765     to always fail with ENOSYS.  Some functions are actually named
4766     something starting with __ and the normal name is an alias.  */
4767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4768 choke me
4769 #else
4770 $ac_func();
4771 #endif
4772
4773 ; return 0; }
4774 EOF
4775 if { (eval echo configure:4776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4776   rm -rf conftest*
4777   eval "ac_cv_func_$ac_func=yes"
4778 else
4779   echo "configure: failed program was:" >&5
4780   cat conftest.$ac_ext >&5
4781   rm -rf conftest*
4782   eval "ac_cv_func_$ac_func=no"
4783 fi
4784 rm -f conftest*
4785 fi
4786
4787 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4788   echo "$ac_t""yes" 1>&6
4789     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4790   cat >> confdefs.h <<EOF
4791 #define $ac_tr_func 1
4792 EOF
4793  
4794 else
4795   echo "$ac_t""no" 1>&6
4796 \
4797     ac_wfuncs=no
4798 fi
4799 done
4800
4801   
4802         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4803     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4804     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4805     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4806     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4807     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4808 do
4809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4810 echo "configure:4811: checking for $ac_func" >&5
4811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4812   echo $ac_n "(cached) $ac_c" 1>&6
4813 else
4814   cat > conftest.$ac_ext <<EOF
4815 #line 4816 "configure"
4816 #include "confdefs.h"
4817 /* System header to define __stub macros and hopefully few prototypes,
4818     which can conflict with char $ac_func(); below.  */
4819 #include <assert.h>
4820 /* Override any gcc2 internal prototype to avoid an error.  */
4821 /* We use char because int might match the return type of a gcc2
4822     builtin and then its argument prototype would still apply.  */
4823 char $ac_func();
4824
4825 int main() {
4826
4827 /* The GNU C library defines this for functions which it implements
4828     to always fail with ENOSYS.  Some functions are actually named
4829     something starting with __ and the normal name is an alias.  */
4830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4831 choke me
4832 #else
4833 $ac_func();
4834 #endif
4835
4836 ; return 0; }
4837 EOF
4838 if { (eval echo configure:4839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4839   rm -rf conftest*
4840   eval "ac_cv_func_$ac_func=yes"
4841 else
4842   echo "configure: failed program was:" >&5
4843   cat conftest.$ac_ext >&5
4844   rm -rf conftest*
4845   eval "ac_cv_func_$ac_func=no"
4846 fi
4847 rm -f conftest*
4848 fi
4849
4850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4851   echo "$ac_t""yes" 1>&6
4852     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4853   cat >> confdefs.h <<EOF
4854 #define $ac_tr_func 1
4855 EOF
4856  
4857 else
4858   echo "$ac_t""no" 1>&6
4859 \
4860     ac_wfuncs=no
4861 fi
4862 done
4863
4864
4865     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4866 echo "configure:4867: checking for ISO C99 wchar_t support" >&5
4867     if test x"$has_weof" = xyes &&
4868        test x"$has_wchar_minmax" = xyes &&
4869        test x"$ac_wfuncs" = xyes; then
4870       ac_isoC99_wchar_t=yes
4871     else
4872       ac_isoC99_wchar_t=no
4873     fi
4874     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4875   
4876             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4877 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4878 echo "configure:4879: checking for iconv.h" >&5
4879 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4880   echo $ac_n "(cached) $ac_c" 1>&6
4881 else
4882   cat > conftest.$ac_ext <<EOF
4883 #line 4884 "configure"
4884 #include "confdefs.h"
4885 #include <iconv.h>
4886 EOF
4887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4888 { (eval echo configure:4889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4889 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4890 if test -z "$ac_err"; then
4891   rm -rf conftest*
4892   eval "ac_cv_header_$ac_safe=yes"
4893 else
4894   echo "$ac_err" >&5
4895   echo "configure: failed program was:" >&5
4896   cat conftest.$ac_ext >&5
4897   rm -rf conftest*
4898   eval "ac_cv_header_$ac_safe=no"
4899 fi
4900 rm -f conftest*
4901 fi
4902 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4903   echo "$ac_t""yes" 1>&6
4904   ac_has_iconv_h=yes
4905 else
4906   echo "$ac_t""no" 1>&6
4907 ac_has_iconv_h=no
4908 fi
4909
4910     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4911 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4912 echo "configure:4913: checking for langinfo.h" >&5
4913 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4914   echo $ac_n "(cached) $ac_c" 1>&6
4915 else
4916   cat > conftest.$ac_ext <<EOF
4917 #line 4918 "configure"
4918 #include "confdefs.h"
4919 #include <langinfo.h>
4920 EOF
4921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4922 { (eval echo configure:4923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4924 if test -z "$ac_err"; then
4925   rm -rf conftest*
4926   eval "ac_cv_header_$ac_safe=yes"
4927 else
4928   echo "$ac_err" >&5
4929   echo "configure: failed program was:" >&5
4930   cat conftest.$ac_ext >&5
4931   rm -rf conftest*
4932   eval "ac_cv_header_$ac_safe=no"
4933 fi
4934 rm -f conftest*
4935 fi
4936 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4937   echo "$ac_t""yes" 1>&6
4938   ac_has_langinfo_h=yes
4939 else
4940   echo "$ac_t""no" 1>&6
4941 ac_has_langinfo_h=no
4942 fi
4943
4944
4945         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4946 echo "configure:4947: checking for iconv in -liconv" >&5
4947 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4948 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4949   echo $ac_n "(cached) $ac_c" 1>&6
4950 else
4951   ac_save_LIBS="$LIBS"
4952 LIBS="-liconv  $LIBS"
4953 cat > conftest.$ac_ext <<EOF
4954 #line 4955 "configure"
4955 #include "confdefs.h"
4956 /* Override any gcc2 internal prototype to avoid an error.  */
4957 /* We use char because int might match the return type of a gcc2
4958     builtin and then its argument prototype would still apply.  */
4959 char iconv();
4960
4961 int main() {
4962 iconv()
4963 ; return 0; }
4964 EOF
4965 if { (eval echo configure:4966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4966   rm -rf conftest*
4967   eval "ac_cv_lib_$ac_lib_var=yes"
4968 else
4969   echo "configure: failed program was:" >&5
4970   cat conftest.$ac_ext >&5
4971   rm -rf conftest*
4972   eval "ac_cv_lib_$ac_lib_var=no"
4973 fi
4974 rm -f conftest*
4975 LIBS="$ac_save_LIBS"
4976
4977 fi
4978 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4979   echo "$ac_t""yes" 1>&6
4980   libiconv="-liconv"
4981 else
4982   echo "$ac_t""no" 1>&6
4983 fi
4984
4985     ac_save_LIBS="$LIBS"
4986     LIBS="$LIBS $libiconv"
4987
4988     for ac_func in iconv_open iconv_close iconv nl_langinfo
4989 do
4990 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4991 echo "configure:4992: checking for $ac_func" >&5
4992 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4993   echo $ac_n "(cached) $ac_c" 1>&6
4994 else
4995   cat > conftest.$ac_ext <<EOF
4996 #line 4997 "configure"
4997 #include "confdefs.h"
4998 /* System header to define __stub macros and hopefully few prototypes,
4999     which can conflict with char $ac_func(); below.  */
5000 #include <assert.h>
5001 /* Override any gcc2 internal prototype to avoid an error.  */
5002 /* We use char because int might match the return type of a gcc2
5003     builtin and then its argument prototype would still apply.  */
5004 char $ac_func();
5005
5006 int main() {
5007
5008 /* The GNU C library defines this for functions which it implements
5009     to always fail with ENOSYS.  Some functions are actually named
5010     something starting with __ and the normal name is an alias.  */
5011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5012 choke me
5013 #else
5014 $ac_func();
5015 #endif
5016
5017 ; return 0; }
5018 EOF
5019 if { (eval echo configure:5020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5020   rm -rf conftest*
5021   eval "ac_cv_func_$ac_func=yes"
5022 else
5023   echo "configure: failed program was:" >&5
5024   cat conftest.$ac_ext >&5
5025   rm -rf conftest*
5026   eval "ac_cv_func_$ac_func=no"
5027 fi
5028 rm -f conftest*
5029 fi
5030
5031 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5032   echo "$ac_t""yes" 1>&6
5033     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5034   cat >> confdefs.h <<EOF
5035 #define $ac_tr_func 1
5036 EOF
5037  \
5038     ac_XPG2funcs=yes
5039 else
5040   echo "$ac_t""no" 1>&6
5041 ac_XPG2funcs=no
5042 fi
5043 done
5044
5045   
5046     LIBS="$ac_save_LIBS"
5047
5048     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5049 echo "configure:5050: checking for XPG2 wchar_t support" >&5
5050     if test x"$ac_has_iconv_h" = xyes &&
5051        test x"$ac_has_langinfo_h" = xyes &&
5052        test x"$ac_XPG2funcs" = xyes; then
5053       ac_XPG2_wchar_t=yes
5054     else
5055       ac_XPG2_wchar_t=no
5056     fi
5057     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5058   
5059             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5060 echo "configure:5061: checking for enabled wchar_t specializations" >&5
5061     if test x"$ac_isoC99_wchar_t" = xyes &&
5062        test x"$ac_XPG2_wchar_t" = xyes; then
5063       cat >> confdefs.h <<\EOF
5064 #define _GLIBCPP_USE_WCHAR_T 1
5065 EOF
5066
5067       echo "$ac_t"""yes"" 1>&6
5068     else
5069       echo "$ac_t"""no"" 1>&6
5070     fi
5071   else
5072         echo "configure: warning: wchar_t support disabled." 1>&2
5073   fi
5074
5075       cat >> confdefs.h <<\EOF
5076 #define HAVE_COPYSIGN 1
5077 EOF
5078
5079       cat >> confdefs.h <<\EOF
5080 #define HAVE_COPYSIGNF 1
5081 EOF
5082
5083       cat >> confdefs.h <<\EOF
5084 #define HAVE_FINITE 1
5085 EOF
5086
5087       cat >> confdefs.h <<\EOF
5088 #define HAVE_FINITEF 1
5089 EOF
5090
5091       cat >> confdefs.h <<\EOF
5092 #define HAVE_FREXPF 1
5093 EOF
5094
5095       cat >> confdefs.h <<\EOF
5096 #define HAVE_HYPOTF 1
5097 EOF
5098
5099       cat >> confdefs.h <<\EOF
5100 #define HAVE_ISINF 1
5101 EOF
5102
5103       cat >> confdefs.h <<\EOF
5104 #define HAVE_ISINFF 1
5105 EOF
5106
5107       cat >> confdefs.h <<\EOF
5108 #define HAVE_ISNAN 1
5109 EOF
5110
5111       cat >> confdefs.h <<\EOF
5112 #define HAVE_ISNANF 1
5113 EOF
5114
5115       cat >> confdefs.h <<\EOF
5116 #define HAVE_SINCOS 1
5117 EOF
5118
5119       cat >> confdefs.h <<\EOF
5120 #define HAVE_SINCOSF 1
5121 EOF
5122
5123       if test x"long_double_math_on_this_cpu" = x"yes"; then
5124         cat >> confdefs.h <<\EOF
5125 #define HAVE_FINITEL 1
5126 EOF
5127
5128         cat >> confdefs.h <<\EOF
5129 #define HAVE_HYPOTL 1
5130 EOF
5131
5132         cat >> confdefs.h <<\EOF
5133 #define HAVE_ISINFL 1
5134 EOF
5135
5136         cat >> confdefs.h <<\EOF
5137 #define HAVE_ISNANL 1
5138 EOF
5139
5140       fi
5141       ;;
5142     *-hpux*)
5143       # Check for available headers.
5144       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5145         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5146         fp.h locale.h float.h inttypes.h
5147 do
5148 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5149 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5150 echo "configure:5151: checking for $ac_hdr" >&5
5151 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5152   echo $ac_n "(cached) $ac_c" 1>&6
5153 else
5154   cat > conftest.$ac_ext <<EOF
5155 #line 5156 "configure"
5156 #include "confdefs.h"
5157 #include <$ac_hdr>
5158 EOF
5159 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5160 { (eval echo configure:5161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5161 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5162 if test -z "$ac_err"; then
5163   rm -rf conftest*
5164   eval "ac_cv_header_$ac_safe=yes"
5165 else
5166   echo "$ac_err" >&5
5167   echo "configure: failed program was:" >&5
5168   cat conftest.$ac_ext >&5
5169   rm -rf conftest*
5170   eval "ac_cv_header_$ac_safe=no"
5171 fi
5172 rm -f conftest*
5173 fi
5174 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5175   echo "$ac_t""yes" 1>&6
5176     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5177   cat >> confdefs.h <<EOF
5178 #define $ac_tr_hdr 1
5179 EOF
5180  
5181 else
5182   echo "$ac_t""no" 1>&6
5183 fi
5184 done
5185
5186       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5187       
5188       
5189   # If we're not using GNU ld, then there's no point in even trying these
5190   # tests.  Check for that first.  We should have already tested for gld
5191   # by now (in libtool), but require it now just to be safe...
5192   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5193   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5194   
5195
5196   # The name set by libtool depends on the version of libtool.  Shame on us
5197   # for depending on an impl detail, but c'est la vie.  Older versions used
5198   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5199   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5200   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5201   # set (hence we're using an older libtool), then set it.
5202   if test x${with_gnu_ld+set} != xset; then
5203     if test x${ac_cv_prog_gnu_ld+set} != xset; then
5204       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5205       with_gnu_ld=no
5206     else
5207       with_gnu_ld=$ac_cv_prog_gnu_ld
5208     fi
5209   fi
5210
5211   # Start by getting the version number.  I think the libtool test already
5212   # does some of this, but throws away the result.
5213   
5214   ldver=`$LD --version 2>/dev/null | head -1 | \
5215          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5216   
5217   glibcpp_gnu_ld_version=`echo $ldver | \
5218          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5219
5220   # Set --gc-sections.
5221   if test "$with_gnu_ld" = "notbroken"; then
5222     # GNU ld it is!  Joy and bunny rabbits!
5223
5224     # All these tests are for C++; save the language and the compiler flags.
5225     # Need to do this so that g++ won't try to link in libstdc++
5226     ac_test_CFLAGS="${CFLAGS+set}"
5227     ac_save_CFLAGS="$CFLAGS"
5228     CFLAGS='-x c++  -Wl,--gc-sections'
5229
5230     # Check for -Wl,--gc-sections
5231     # XXX This test is broken at the moment, as symbols required for
5232     # linking are now in libsupc++ (not built yet.....). In addition, 
5233     # this test has cored on solaris in the past. In addition,
5234     # --gc-sections doesn't really work at the moment (keeps on discarding
5235     # used sections, first .eh_frame and now some of the glibc sections for
5236     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5237     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5238 echo "configure:5239: checking for ld that supports -Wl,--gc-sections" >&5
5239     if test "$cross_compiling" = yes; then
5240   ac_sectionLDflags=yes
5241 else
5242   cat > conftest.$ac_ext <<EOF
5243 #line 5244 "configure"
5244 #include "confdefs.h"
5245
5246      int main(void) 
5247      {
5248        try { throw 1; }
5249        catch (...) { };
5250        return 0;
5251      }
5252     
5253 EOF
5254 if { (eval echo configure:5255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5255 then
5256   ac_sectionLDflags=yes
5257 else
5258   echo "configure: failed program was:" >&5
5259   cat conftest.$ac_ext >&5
5260   rm -fr conftest*
5261   ac_sectionLDflags=no
5262 fi
5263 rm -fr conftest*
5264 fi
5265
5266     if test "$ac_test_CFLAGS" = set; then
5267       CFLAGS="$ac_save_CFLAGS"
5268     else
5269       # this is the suspicious part
5270       CFLAGS=''
5271     fi
5272     if test "$ac_sectionLDflags" = "yes"; then
5273       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5274     fi
5275     echo "$ac_t""$ac_sectionLDflags" 1>&6
5276   fi
5277
5278   # Set linker optimization flags.
5279   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5280     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5281   fi
5282
5283   
5284   
5285
5286       
5287     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5288 echo "configure:5289: checking for main in -lm" >&5
5289 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5290 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5291   echo $ac_n "(cached) $ac_c" 1>&6
5292 else
5293   ac_save_LIBS="$LIBS"
5294 LIBS="-lm  $LIBS"
5295 cat > conftest.$ac_ext <<EOF
5296 #line 5297 "configure"
5297 #include "confdefs.h"
5298
5299 int main() {
5300 main()
5301 ; return 0; }
5302 EOF
5303 if { (eval echo configure:5304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5304   rm -rf conftest*
5305   eval "ac_cv_lib_$ac_lib_var=yes"
5306 else
5307   echo "configure: failed program was:" >&5
5308   cat conftest.$ac_ext >&5
5309   rm -rf conftest*
5310   eval "ac_cv_lib_$ac_lib_var=no"
5311 fi
5312 rm -f conftest*
5313 LIBS="$ac_save_LIBS"
5314
5315 fi
5316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5317   echo "$ac_t""yes" 1>&6
5318     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5319     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5320   cat >> confdefs.h <<EOF
5321 #define $ac_tr_lib 1
5322 EOF
5323
5324   LIBS="-lm $LIBS"
5325
5326 else
5327   echo "$ac_t""no" 1>&6
5328 fi
5329
5330   for ac_func in nan copysignf
5331 do
5332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5333 echo "configure:5334: checking for $ac_func" >&5
5334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5335   echo $ac_n "(cached) $ac_c" 1>&6
5336 else
5337   cat > conftest.$ac_ext <<EOF
5338 #line 5339 "configure"
5339 #include "confdefs.h"
5340 /* System header to define __stub macros and hopefully few prototypes,
5341     which can conflict with char $ac_func(); below.  */
5342 #include <assert.h>
5343 /* Override any gcc2 internal prototype to avoid an error.  */
5344 /* We use char because int might match the return type of a gcc2
5345     builtin and then its argument prototype would still apply.  */
5346 char $ac_func();
5347
5348 int main() {
5349
5350 /* The GNU C library defines this for functions which it implements
5351     to always fail with ENOSYS.  Some functions are actually named
5352     something starting with __ and the normal name is an alias.  */
5353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5354 choke me
5355 #else
5356 $ac_func();
5357 #endif
5358
5359 ; return 0; }
5360 EOF
5361 if { (eval echo configure:5362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5362   rm -rf conftest*
5363   eval "ac_cv_func_$ac_func=yes"
5364 else
5365   echo "configure: failed program was:" >&5
5366   cat conftest.$ac_ext >&5
5367   rm -rf conftest*
5368   eval "ac_cv_func_$ac_func=no"
5369 fi
5370 rm -f conftest*
5371 fi
5372
5373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5374   echo "$ac_t""yes" 1>&6
5375     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5376   cat >> confdefs.h <<EOF
5377 #define $ac_tr_func 1
5378 EOF
5379  
5380 else
5381   echo "$ac_t""no" 1>&6
5382 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5383 fi
5384 done
5385
5386
5387     for ac_func in __signbit
5388 do
5389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5390 echo "configure:5391: checking for $ac_func" >&5
5391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5392   echo $ac_n "(cached) $ac_c" 1>&6
5393 else
5394   cat > conftest.$ac_ext <<EOF
5395 #line 5396 "configure"
5396 #include "confdefs.h"
5397 /* System header to define __stub macros and hopefully few prototypes,
5398     which can conflict with char $ac_func(); below.  */
5399 #include <assert.h>
5400 /* Override any gcc2 internal prototype to avoid an error.  */
5401 /* We use char because int might match the return type of a gcc2
5402     builtin and then its argument prototype would still apply.  */
5403 char $ac_func();
5404
5405 int main() {
5406
5407 /* The GNU C library defines this for functions which it implements
5408     to always fail with ENOSYS.  Some functions are actually named
5409     something starting with __ and the normal name is an alias.  */
5410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5411 choke me
5412 #else
5413 $ac_func();
5414 #endif
5415
5416 ; return 0; }
5417 EOF
5418 if { (eval echo configure:5419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5419   rm -rf conftest*
5420   eval "ac_cv_func_$ac_func=yes"
5421 else
5422   echo "configure: failed program was:" >&5
5423   cat conftest.$ac_ext >&5
5424   rm -rf conftest*
5425   eval "ac_cv_func_$ac_func=no"
5426 fi
5427 rm -f conftest*
5428 fi
5429
5430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5431   echo "$ac_t""yes" 1>&6
5432     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5433   cat >> confdefs.h <<EOF
5434 #define $ac_tr_func 1
5435 EOF
5436  
5437 else
5438   echo "$ac_t""no" 1>&6
5439 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5440 fi
5441 done
5442
5443   for ac_func in __signbitf
5444 do
5445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5446 echo "configure:5447: checking for $ac_func" >&5
5447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5448   echo $ac_n "(cached) $ac_c" 1>&6
5449 else
5450   cat > conftest.$ac_ext <<EOF
5451 #line 5452 "configure"
5452 #include "confdefs.h"
5453 /* System header to define __stub macros and hopefully few prototypes,
5454     which can conflict with char $ac_func(); below.  */
5455 #include <assert.h>
5456 /* Override any gcc2 internal prototype to avoid an error.  */
5457 /* We use char because int might match the return type of a gcc2
5458     builtin and then its argument prototype would still apply.  */
5459 char $ac_func();
5460
5461 int main() {
5462
5463 /* The GNU C library defines this for functions which it implements
5464     to always fail with ENOSYS.  Some functions are actually named
5465     something starting with __ and the normal name is an alias.  */
5466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5467 choke me
5468 #else
5469 $ac_func();
5470 #endif
5471
5472 ; return 0; }
5473 EOF
5474 if { (eval echo configure:5475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5475   rm -rf conftest*
5476   eval "ac_cv_func_$ac_func=yes"
5477 else
5478   echo "configure: failed program was:" >&5
5479   cat conftest.$ac_ext >&5
5480   rm -rf conftest*
5481   eval "ac_cv_func_$ac_func=no"
5482 fi
5483 rm -f conftest*
5484 fi
5485
5486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5487   echo "$ac_t""yes" 1>&6
5488     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5489   cat >> confdefs.h <<EOF
5490 #define $ac_tr_func 1
5491 EOF
5492  
5493 else
5494   echo "$ac_t""no" 1>&6
5495 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5496 fi
5497 done
5498
5499
5500           if test x$ac_cv_func_copysignl = x"yes"; then
5501     for ac_func in __signbitl
5502 do
5503 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5504 echo "configure:5505: checking for $ac_func" >&5
5505 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5506   echo $ac_n "(cached) $ac_c" 1>&6
5507 else
5508   cat > conftest.$ac_ext <<EOF
5509 #line 5510 "configure"
5510 #include "confdefs.h"
5511 /* System header to define __stub macros and hopefully few prototypes,
5512     which can conflict with char $ac_func(); below.  */
5513 #include <assert.h>
5514 /* Override any gcc2 internal prototype to avoid an error.  */
5515 /* We use char because int might match the return type of a gcc2
5516     builtin and then its argument prototype would still apply.  */
5517 char $ac_func();
5518
5519 int main() {
5520
5521 /* The GNU C library defines this for functions which it implements
5522     to always fail with ENOSYS.  Some functions are actually named
5523     something starting with __ and the normal name is an alias.  */
5524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5525 choke me
5526 #else
5527 $ac_func();
5528 #endif
5529
5530 ; return 0; }
5531 EOF
5532 if { (eval echo configure:5533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5533   rm -rf conftest*
5534   eval "ac_cv_func_$ac_func=yes"
5535 else
5536   echo "configure: failed program was:" >&5
5537   cat conftest.$ac_ext >&5
5538   rm -rf conftest*
5539   eval "ac_cv_func_$ac_func=no"
5540 fi
5541 rm -f conftest*
5542 fi
5543
5544 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5545   echo "$ac_t""yes" 1>&6
5546     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5547   cat >> confdefs.h <<EOF
5548 #define $ac_tr_func 1
5549 EOF
5550  
5551 else
5552   echo "$ac_t""no" 1>&6
5553 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5554 fi
5555 done
5556
5557   fi
5558
5559   
5560
5561       
5562
5563       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5564 echo "configure:5565: checking for mbstate_t" >&5
5565   cat > conftest.$ac_ext <<EOF
5566 #line 5567 "configure"
5567 #include "confdefs.h"
5568 #include <wchar.h>
5569 int main() {
5570 mbstate_t teststate;
5571 ; return 0; }
5572 EOF
5573 if { (eval echo configure:5574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5574   rm -rf conftest*
5575   have_mbstate_t=yes
5576 else
5577   echo "configure: failed program was:" >&5
5578   cat conftest.$ac_ext >&5
5579   rm -rf conftest*
5580   have_mbstate_t=no
5581 fi
5582 rm -f conftest*
5583   echo "$ac_t""$have_mbstate_t" 1>&6
5584   if test x"$have_mbstate_t" = xyes; then
5585     cat >> confdefs.h <<\EOF
5586 #define HAVE_MBSTATE_T 1
5587 EOF
5588
5589   fi
5590
5591     for ac_hdr in wchar.h
5592 do
5593 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5594 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5595 echo "configure:5596: checking for $ac_hdr" >&5
5596 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5597   echo $ac_n "(cached) $ac_c" 1>&6
5598 else
5599   cat > conftest.$ac_ext <<EOF
5600 #line 5601 "configure"
5601 #include "confdefs.h"
5602 #include <$ac_hdr>
5603 EOF
5604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5605 { (eval echo configure:5606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5606 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5607 if test -z "$ac_err"; then
5608   rm -rf conftest*
5609   eval "ac_cv_header_$ac_safe=yes"
5610 else
5611   echo "$ac_err" >&5
5612   echo "configure: failed program was:" >&5
5613   cat conftest.$ac_ext >&5
5614   rm -rf conftest*
5615   eval "ac_cv_header_$ac_safe=no"
5616 fi
5617 rm -f conftest*
5618 fi
5619 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5620   echo "$ac_t""yes" 1>&6
5621     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5622   cat >> confdefs.h <<EOF
5623 #define $ac_tr_hdr 1
5624 EOF
5625  ac_has_wchar_h=yes
5626 else
5627   echo "$ac_t""no" 1>&6
5628 ac_has_wchar_h=no
5629 fi
5630 done
5631
5632   for ac_hdr in wctype.h
5633 do
5634 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5635 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5636 echo "configure:5637: checking for $ac_hdr" >&5
5637 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5638   echo $ac_n "(cached) $ac_c" 1>&6
5639 else
5640   cat > conftest.$ac_ext <<EOF
5641 #line 5642 "configure"
5642 #include "confdefs.h"
5643 #include <$ac_hdr>
5644 EOF
5645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5646 { (eval echo configure:5647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5647 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5648 if test -z "$ac_err"; then
5649   rm -rf conftest*
5650   eval "ac_cv_header_$ac_safe=yes"
5651 else
5652   echo "$ac_err" >&5
5653   echo "configure: failed program was:" >&5
5654   cat conftest.$ac_ext >&5
5655   rm -rf conftest*
5656   eval "ac_cv_header_$ac_safe=no"
5657 fi
5658 rm -f conftest*
5659 fi
5660 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5661   echo "$ac_t""yes" 1>&6
5662     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5663   cat >> confdefs.h <<EOF
5664 #define $ac_tr_hdr 1
5665 EOF
5666  ac_has_wctype_h=yes
5667 else
5668   echo "$ac_t""no" 1>&6
5669 ac_has_wctype_h=no
5670 fi
5671 done
5672
5673   
5674     if test x"$ac_has_wchar_h" = xyes &&
5675      test x"$ac_has_wctype_h" = xyes &&
5676      test x"$enable_c_mbchar" != xno; then
5677       
5678             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5679 echo "configure:5680: checking for WCHAR_MIN and WCHAR_MAX" >&5
5680     cat > conftest.$ac_ext <<EOF
5681 #line 5682 "configure"
5682 #include "confdefs.h"
5683 #include <wchar.h>
5684 int main() {
5685 int i = WCHAR_MIN; int j = WCHAR_MAX;
5686 ; return 0; }
5687 EOF
5688 if { (eval echo configure:5689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5689   rm -rf conftest*
5690   has_wchar_minmax=yes
5691 else
5692   echo "configure: failed program was:" >&5
5693   cat conftest.$ac_ext >&5
5694   rm -rf conftest*
5695   has_wchar_minmax=no
5696 fi
5697 rm -f conftest*
5698     echo "$ac_t""$has_wchar_minmax" 1>&6
5699     
5700             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5701 echo "configure:5702: checking for WEOF" >&5
5702     cat > conftest.$ac_ext <<EOF
5703 #line 5704 "configure"
5704 #include "confdefs.h"
5705
5706       #include <wchar.h>
5707       #include <stddef.h>
5708 int main() {
5709 wint_t i = WEOF;
5710 ; return 0; }
5711 EOF
5712 if { (eval echo configure:5713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5713   rm -rf conftest*
5714   has_weof=yes
5715 else
5716   echo "configure: failed program was:" >&5
5717   cat conftest.$ac_ext >&5
5718   rm -rf conftest*
5719   has_weof=no
5720 fi
5721 rm -f conftest*
5722     echo "$ac_t""$has_weof" 1>&6
5723   
5724         ac_wfuncs=yes
5725     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5726 do
5727 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5728 echo "configure:5729: checking for $ac_func" >&5
5729 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5730   echo $ac_n "(cached) $ac_c" 1>&6
5731 else
5732   cat > conftest.$ac_ext <<EOF
5733 #line 5734 "configure"
5734 #include "confdefs.h"
5735 /* System header to define __stub macros and hopefully few prototypes,
5736     which can conflict with char $ac_func(); below.  */
5737 #include <assert.h>
5738 /* Override any gcc2 internal prototype to avoid an error.  */
5739 /* We use char because int might match the return type of a gcc2
5740     builtin and then its argument prototype would still apply.  */
5741 char $ac_func();
5742
5743 int main() {
5744
5745 /* The GNU C library defines this for functions which it implements
5746     to always fail with ENOSYS.  Some functions are actually named
5747     something starting with __ and the normal name is an alias.  */
5748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5749 choke me
5750 #else
5751 $ac_func();
5752 #endif
5753
5754 ; return 0; }
5755 EOF
5756 if { (eval echo configure:5757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5757   rm -rf conftest*
5758   eval "ac_cv_func_$ac_func=yes"
5759 else
5760   echo "configure: failed program was:" >&5
5761   cat conftest.$ac_ext >&5
5762   rm -rf conftest*
5763   eval "ac_cv_func_$ac_func=no"
5764 fi
5765 rm -f conftest*
5766 fi
5767
5768 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5769   echo "$ac_t""yes" 1>&6
5770     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5771   cat >> confdefs.h <<EOF
5772 #define $ac_tr_func 1
5773 EOF
5774  
5775 else
5776   echo "$ac_t""no" 1>&6
5777 \
5778     ac_wfuncs=no
5779 fi
5780 done
5781
5782   
5783         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5784     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5785     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5786     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5787     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5788     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5789 do
5790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5791 echo "configure:5792: checking for $ac_func" >&5
5792 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5793   echo $ac_n "(cached) $ac_c" 1>&6
5794 else
5795   cat > conftest.$ac_ext <<EOF
5796 #line 5797 "configure"
5797 #include "confdefs.h"
5798 /* System header to define __stub macros and hopefully few prototypes,
5799     which can conflict with char $ac_func(); below.  */
5800 #include <assert.h>
5801 /* Override any gcc2 internal prototype to avoid an error.  */
5802 /* We use char because int might match the return type of a gcc2
5803     builtin and then its argument prototype would still apply.  */
5804 char $ac_func();
5805
5806 int main() {
5807
5808 /* The GNU C library defines this for functions which it implements
5809     to always fail with ENOSYS.  Some functions are actually named
5810     something starting with __ and the normal name is an alias.  */
5811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5812 choke me
5813 #else
5814 $ac_func();
5815 #endif
5816
5817 ; return 0; }
5818 EOF
5819 if { (eval echo configure:5820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5820   rm -rf conftest*
5821   eval "ac_cv_func_$ac_func=yes"
5822 else
5823   echo "configure: failed program was:" >&5
5824   cat conftest.$ac_ext >&5
5825   rm -rf conftest*
5826   eval "ac_cv_func_$ac_func=no"
5827 fi
5828 rm -f conftest*
5829 fi
5830
5831 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5832   echo "$ac_t""yes" 1>&6
5833     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5834   cat >> confdefs.h <<EOF
5835 #define $ac_tr_func 1
5836 EOF
5837  
5838 else
5839   echo "$ac_t""no" 1>&6
5840 \
5841     ac_wfuncs=no
5842 fi
5843 done
5844
5845
5846     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5847 echo "configure:5848: checking for ISO C99 wchar_t support" >&5
5848     if test x"$has_weof" = xyes &&
5849        test x"$has_wchar_minmax" = xyes &&
5850        test x"$ac_wfuncs" = xyes; then
5851       ac_isoC99_wchar_t=yes
5852     else
5853       ac_isoC99_wchar_t=no
5854     fi
5855     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5856   
5857             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5858 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5859 echo "configure:5860: checking for iconv.h" >&5
5860 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5861   echo $ac_n "(cached) $ac_c" 1>&6
5862 else
5863   cat > conftest.$ac_ext <<EOF
5864 #line 5865 "configure"
5865 #include "confdefs.h"
5866 #include <iconv.h>
5867 EOF
5868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5869 { (eval echo configure:5870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5871 if test -z "$ac_err"; then
5872   rm -rf conftest*
5873   eval "ac_cv_header_$ac_safe=yes"
5874 else
5875   echo "$ac_err" >&5
5876   echo "configure: failed program was:" >&5
5877   cat conftest.$ac_ext >&5
5878   rm -rf conftest*
5879   eval "ac_cv_header_$ac_safe=no"
5880 fi
5881 rm -f conftest*
5882 fi
5883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5884   echo "$ac_t""yes" 1>&6
5885   ac_has_iconv_h=yes
5886 else
5887   echo "$ac_t""no" 1>&6
5888 ac_has_iconv_h=no
5889 fi
5890
5891     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5892 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5893 echo "configure:5894: checking for langinfo.h" >&5
5894 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5895   echo $ac_n "(cached) $ac_c" 1>&6
5896 else
5897   cat > conftest.$ac_ext <<EOF
5898 #line 5899 "configure"
5899 #include "confdefs.h"
5900 #include <langinfo.h>
5901 EOF
5902 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5903 { (eval echo configure:5904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5904 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5905 if test -z "$ac_err"; then
5906   rm -rf conftest*
5907   eval "ac_cv_header_$ac_safe=yes"
5908 else
5909   echo "$ac_err" >&5
5910   echo "configure: failed program was:" >&5
5911   cat conftest.$ac_ext >&5
5912   rm -rf conftest*
5913   eval "ac_cv_header_$ac_safe=no"
5914 fi
5915 rm -f conftest*
5916 fi
5917 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5918   echo "$ac_t""yes" 1>&6
5919   ac_has_langinfo_h=yes
5920 else
5921   echo "$ac_t""no" 1>&6
5922 ac_has_langinfo_h=no
5923 fi
5924
5925
5926         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5927 echo "configure:5928: checking for iconv in -liconv" >&5
5928 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5929 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5930   echo $ac_n "(cached) $ac_c" 1>&6
5931 else
5932   ac_save_LIBS="$LIBS"
5933 LIBS="-liconv  $LIBS"
5934 cat > conftest.$ac_ext <<EOF
5935 #line 5936 "configure"
5936 #include "confdefs.h"
5937 /* Override any gcc2 internal prototype to avoid an error.  */
5938 /* We use char because int might match the return type of a gcc2
5939     builtin and then its argument prototype would still apply.  */
5940 char iconv();
5941
5942 int main() {
5943 iconv()
5944 ; return 0; }
5945 EOF
5946 if { (eval echo configure:5947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5947   rm -rf conftest*
5948   eval "ac_cv_lib_$ac_lib_var=yes"
5949 else
5950   echo "configure: failed program was:" >&5
5951   cat conftest.$ac_ext >&5
5952   rm -rf conftest*
5953   eval "ac_cv_lib_$ac_lib_var=no"
5954 fi
5955 rm -f conftest*
5956 LIBS="$ac_save_LIBS"
5957
5958 fi
5959 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5960   echo "$ac_t""yes" 1>&6
5961   libiconv="-liconv"
5962 else
5963   echo "$ac_t""no" 1>&6
5964 fi
5965
5966     ac_save_LIBS="$LIBS"
5967     LIBS="$LIBS $libiconv"
5968
5969     for ac_func in iconv_open iconv_close iconv nl_langinfo
5970 do
5971 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5972 echo "configure:5973: checking for $ac_func" >&5
5973 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5974   echo $ac_n "(cached) $ac_c" 1>&6
5975 else
5976   cat > conftest.$ac_ext <<EOF
5977 #line 5978 "configure"
5978 #include "confdefs.h"
5979 /* System header to define __stub macros and hopefully few prototypes,
5980     which can conflict with char $ac_func(); below.  */
5981 #include <assert.h>
5982 /* Override any gcc2 internal prototype to avoid an error.  */
5983 /* We use char because int might match the return type of a gcc2
5984     builtin and then its argument prototype would still apply.  */
5985 char $ac_func();
5986
5987 int main() {
5988
5989 /* The GNU C library defines this for functions which it implements
5990     to always fail with ENOSYS.  Some functions are actually named
5991     something starting with __ and the normal name is an alias.  */
5992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5993 choke me
5994 #else
5995 $ac_func();
5996 #endif
5997
5998 ; return 0; }
5999 EOF
6000 if { (eval echo configure:6001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6001   rm -rf conftest*
6002   eval "ac_cv_func_$ac_func=yes"
6003 else
6004   echo "configure: failed program was:" >&5
6005   cat conftest.$ac_ext >&5
6006   rm -rf conftest*
6007   eval "ac_cv_func_$ac_func=no"
6008 fi
6009 rm -f conftest*
6010 fi
6011
6012 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6013   echo "$ac_t""yes" 1>&6
6014     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6015   cat >> confdefs.h <<EOF
6016 #define $ac_tr_func 1
6017 EOF
6018  \
6019     ac_XPG2funcs=yes
6020 else
6021   echo "$ac_t""no" 1>&6
6022 ac_XPG2funcs=no
6023 fi
6024 done
6025
6026   
6027     LIBS="$ac_save_LIBS"
6028
6029     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6030 echo "configure:6031: checking for XPG2 wchar_t support" >&5
6031     if test x"$ac_has_iconv_h" = xyes &&
6032        test x"$ac_has_langinfo_h" = xyes &&
6033        test x"$ac_XPG2funcs" = xyes; then
6034       ac_XPG2_wchar_t=yes
6035     else
6036       ac_XPG2_wchar_t=no
6037     fi
6038     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6039   
6040             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6041 echo "configure:6042: checking for enabled wchar_t specializations" >&5
6042     if test x"$ac_isoC99_wchar_t" = xyes &&
6043        test x"$ac_XPG2_wchar_t" = xyes; then
6044       cat >> confdefs.h <<\EOF
6045 #define _GLIBCPP_USE_WCHAR_T 1
6046 EOF
6047
6048       echo "$ac_t"""yes"" 1>&6
6049     else
6050       echo "$ac_t"""no"" 1>&6
6051     fi
6052   else
6053         echo "configure: warning: wchar_t support disabled." 1>&2
6054   fi
6055
6056       os_include_dir="os/hpux"
6057       cat >> confdefs.h <<\EOF
6058 #define HAVE_COPYSIGN 1
6059 EOF
6060
6061       cat >> confdefs.h <<\EOF
6062 #define HAVE_COPYSIGNF 1
6063 EOF
6064
6065       cat >> confdefs.h <<\EOF
6066 #define HAVE_FREXPF 1
6067 EOF
6068
6069       cat >> confdefs.h <<\EOF
6070 #define HAVE_HYPOT 1
6071 EOF
6072
6073       case "$target_alias" in
6074         *-hpux10*)
6075           cat >> confdefs.h <<\EOF
6076 #define HAVE_FINITE 1
6077 EOF
6078
6079           cat >> confdefs.h <<\EOF
6080 #define HAVE_FINITEF 1
6081 EOF
6082
6083           cat >> confdefs.h <<\EOF
6084 #define HAVE_ISINF 1
6085 EOF
6086
6087           cat >> confdefs.h <<\EOF
6088 #define HAVE_ISINFF 1
6089 EOF
6090
6091           cat >> confdefs.h <<\EOF
6092 #define HAVE_ISNAN 1
6093 EOF
6094
6095           cat >> confdefs.h <<\EOF
6096 #define HAVE_ISNANF 1
6097 EOF
6098
6099           ;;
6100       esac
6101
6102       ;;
6103     *-netbsd*)
6104       # Check for available headers.
6105       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6106         machine/endian.h machine/param.h sys/machine.h sys/types.h \
6107         fp.h locale.h float.h inttypes.h
6108 do
6109 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6110 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6111 echo "configure:6112: checking for $ac_hdr" >&5
6112 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6113   echo $ac_n "(cached) $ac_c" 1>&6
6114 else
6115   cat > conftest.$ac_ext <<EOF
6116 #line 6117 "configure"
6117 #include "confdefs.h"
6118 #include <$ac_hdr>
6119 EOF
6120 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6121 { (eval echo configure:6122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6122 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6123 if test -z "$ac_err"; then
6124   rm -rf conftest*
6125   eval "ac_cv_header_$ac_safe=yes"
6126 else
6127   echo "$ac_err" >&5
6128   echo "configure: failed program was:" >&5
6129   cat conftest.$ac_ext >&5
6130   rm -rf conftest*
6131   eval "ac_cv_header_$ac_safe=no"
6132 fi
6133 rm -f conftest*
6134 fi
6135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6136   echo "$ac_t""yes" 1>&6
6137     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6138   cat >> confdefs.h <<EOF
6139 #define $ac_tr_hdr 1
6140 EOF
6141  
6142 else
6143   echo "$ac_t""no" 1>&6
6144 fi
6145 done
6146
6147       SECTION_FLAGS='-ffunction-sections -fdata-sections'
6148        
6149       
6150   # If we're not using GNU ld, then there's no point in even trying these
6151   # tests.  Check for that first.  We should have already tested for gld
6152   # by now (in libtool), but require it now just to be safe...
6153   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6154   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6155   
6156
6157   # The name set by libtool depends on the version of libtool.  Shame on us
6158   # for depending on an impl detail, but c'est la vie.  Older versions used
6159   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6160   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6161   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6162   # set (hence we're using an older libtool), then set it.
6163   if test x${with_gnu_ld+set} != xset; then
6164     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6165       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6166       with_gnu_ld=no
6167     else
6168       with_gnu_ld=$ac_cv_prog_gnu_ld
6169     fi
6170   fi
6171
6172   # Start by getting the version number.  I think the libtool test already
6173   # does some of this, but throws away the result.
6174   
6175   ldver=`$LD --version 2>/dev/null | head -1 | \
6176          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6177   
6178   glibcpp_gnu_ld_version=`echo $ldver | \
6179          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6180
6181   # Set --gc-sections.
6182   if test "$with_gnu_ld" = "notbroken"; then
6183     # GNU ld it is!  Joy and bunny rabbits!
6184
6185     # All these tests are for C++; save the language and the compiler flags.
6186     # Need to do this so that g++ won't try to link in libstdc++
6187     ac_test_CFLAGS="${CFLAGS+set}"
6188     ac_save_CFLAGS="$CFLAGS"
6189     CFLAGS='-x c++  -Wl,--gc-sections'
6190
6191     # Check for -Wl,--gc-sections
6192     # XXX This test is broken at the moment, as symbols required for
6193     # linking are now in libsupc++ (not built yet.....). In addition, 
6194     # this test has cored on solaris in the past. In addition,
6195     # --gc-sections doesn't really work at the moment (keeps on discarding
6196     # used sections, first .eh_frame and now some of the glibc sections for
6197     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6198     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6199 echo "configure:6200: checking for ld that supports -Wl,--gc-sections" >&5
6200     if test "$cross_compiling" = yes; then
6201   ac_sectionLDflags=yes
6202 else
6203   cat > conftest.$ac_ext <<EOF
6204 #line 6205 "configure"
6205 #include "confdefs.h"
6206
6207      int main(void) 
6208      {
6209        try { throw 1; }
6210        catch (...) { };
6211        return 0;
6212      }
6213     
6214 EOF
6215 if { (eval echo configure:6216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6216 then
6217   ac_sectionLDflags=yes
6218 else
6219   echo "configure: failed program was:" >&5
6220   cat conftest.$ac_ext >&5
6221   rm -fr conftest*
6222   ac_sectionLDflags=no
6223 fi
6224 rm -fr conftest*
6225 fi
6226
6227     if test "$ac_test_CFLAGS" = set; then
6228       CFLAGS="$ac_save_CFLAGS"
6229     else
6230       # this is the suspicious part
6231       CFLAGS=''
6232     fi
6233     if test "$ac_sectionLDflags" = "yes"; then
6234       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6235     fi
6236     echo "$ac_t""$ac_sectionLDflags" 1>&6
6237   fi
6238
6239   # Set linker optimization flags.
6240   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
6241     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6242   fi
6243
6244   
6245   
6246
6247       
6248     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6249 echo "configure:6250: checking for main in -lm" >&5
6250 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6251 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6252   echo $ac_n "(cached) $ac_c" 1>&6
6253 else
6254   ac_save_LIBS="$LIBS"
6255 LIBS="-lm  $LIBS"
6256 cat > conftest.$ac_ext <<EOF
6257 #line 6258 "configure"
6258 #include "confdefs.h"
6259
6260 int main() {
6261 main()
6262 ; return 0; }
6263 EOF
6264 if { (eval echo configure:6265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6265   rm -rf conftest*
6266   eval "ac_cv_lib_$ac_lib_var=yes"
6267 else
6268   echo "configure: failed program was:" >&5
6269   cat conftest.$ac_ext >&5
6270   rm -rf conftest*
6271   eval "ac_cv_lib_$ac_lib_var=no"
6272 fi
6273 rm -f conftest*
6274 LIBS="$ac_save_LIBS"
6275
6276 fi
6277 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6278   echo "$ac_t""yes" 1>&6
6279     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6280     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6281   cat >> confdefs.h <<EOF
6282 #define $ac_tr_lib 1
6283 EOF
6284
6285   LIBS="-lm $LIBS"
6286
6287 else
6288   echo "$ac_t""no" 1>&6
6289 fi
6290
6291   for ac_func in nan copysignf
6292 do
6293 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6294 echo "configure:6295: checking for $ac_func" >&5
6295 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6296   echo $ac_n "(cached) $ac_c" 1>&6
6297 else
6298   cat > conftest.$ac_ext <<EOF
6299 #line 6300 "configure"
6300 #include "confdefs.h"
6301 /* System header to define __stub macros and hopefully few prototypes,
6302     which can conflict with char $ac_func(); below.  */
6303 #include <assert.h>
6304 /* Override any gcc2 internal prototype to avoid an error.  */
6305 /* We use char because int might match the return type of a gcc2
6306     builtin and then its argument prototype would still apply.  */
6307 char $ac_func();
6308
6309 int main() {
6310
6311 /* The GNU C library defines this for functions which it implements
6312     to always fail with ENOSYS.  Some functions are actually named
6313     something starting with __ and the normal name is an alias.  */
6314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6315 choke me
6316 #else
6317 $ac_func();
6318 #endif
6319
6320 ; return 0; }
6321 EOF
6322 if { (eval echo configure:6323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6323   rm -rf conftest*
6324   eval "ac_cv_func_$ac_func=yes"
6325 else
6326   echo "configure: failed program was:" >&5
6327   cat conftest.$ac_ext >&5
6328   rm -rf conftest*
6329   eval "ac_cv_func_$ac_func=no"
6330 fi
6331 rm -f conftest*
6332 fi
6333
6334 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6335   echo "$ac_t""yes" 1>&6
6336     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6337   cat >> confdefs.h <<EOF
6338 #define $ac_tr_func 1
6339 EOF
6340  
6341 else
6342   echo "$ac_t""no" 1>&6
6343 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6344 fi
6345 done
6346
6347
6348     for ac_func in __signbit
6349 do
6350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6351 echo "configure:6352: checking for $ac_func" >&5
6352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6353   echo $ac_n "(cached) $ac_c" 1>&6
6354 else
6355   cat > conftest.$ac_ext <<EOF
6356 #line 6357 "configure"
6357 #include "confdefs.h"
6358 /* System header to define __stub macros and hopefully few prototypes,
6359     which can conflict with char $ac_func(); below.  */
6360 #include <assert.h>
6361 /* Override any gcc2 internal prototype to avoid an error.  */
6362 /* We use char because int might match the return type of a gcc2
6363     builtin and then its argument prototype would still apply.  */
6364 char $ac_func();
6365
6366 int main() {
6367
6368 /* The GNU C library defines this for functions which it implements
6369     to always fail with ENOSYS.  Some functions are actually named
6370     something starting with __ and the normal name is an alias.  */
6371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6372 choke me
6373 #else
6374 $ac_func();
6375 #endif
6376
6377 ; return 0; }
6378 EOF
6379 if { (eval echo configure:6380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6380   rm -rf conftest*
6381   eval "ac_cv_func_$ac_func=yes"
6382 else
6383   echo "configure: failed program was:" >&5
6384   cat conftest.$ac_ext >&5
6385   rm -rf conftest*
6386   eval "ac_cv_func_$ac_func=no"
6387 fi
6388 rm -f conftest*
6389 fi
6390
6391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6392   echo "$ac_t""yes" 1>&6
6393     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6394   cat >> confdefs.h <<EOF
6395 #define $ac_tr_func 1
6396 EOF
6397  
6398 else
6399   echo "$ac_t""no" 1>&6
6400 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6401 fi
6402 done
6403
6404   for ac_func in __signbitf
6405 do
6406 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6407 echo "configure:6408: checking for $ac_func" >&5
6408 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6409   echo $ac_n "(cached) $ac_c" 1>&6
6410 else
6411   cat > conftest.$ac_ext <<EOF
6412 #line 6413 "configure"
6413 #include "confdefs.h"
6414 /* System header to define __stub macros and hopefully few prototypes,
6415     which can conflict with char $ac_func(); below.  */
6416 #include <assert.h>
6417 /* Override any gcc2 internal prototype to avoid an error.  */
6418 /* We use char because int might match the return type of a gcc2
6419     builtin and then its argument prototype would still apply.  */
6420 char $ac_func();
6421
6422 int main() {
6423
6424 /* The GNU C library defines this for functions which it implements
6425     to always fail with ENOSYS.  Some functions are actually named
6426     something starting with __ and the normal name is an alias.  */
6427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6428 choke me
6429 #else
6430 $ac_func();
6431 #endif
6432
6433 ; return 0; }
6434 EOF
6435 if { (eval echo configure:6436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6436   rm -rf conftest*
6437   eval "ac_cv_func_$ac_func=yes"
6438 else
6439   echo "configure: failed program was:" >&5
6440   cat conftest.$ac_ext >&5
6441   rm -rf conftest*
6442   eval "ac_cv_func_$ac_func=no"
6443 fi
6444 rm -f conftest*
6445 fi
6446
6447 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6448   echo "$ac_t""yes" 1>&6
6449     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6450   cat >> confdefs.h <<EOF
6451 #define $ac_tr_func 1
6452 EOF
6453  
6454 else
6455   echo "$ac_t""no" 1>&6
6456 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6457 fi
6458 done
6459
6460
6461           if test x$ac_cv_func_copysignl = x"yes"; then
6462     for ac_func in __signbitl
6463 do
6464 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6465 echo "configure:6466: checking for $ac_func" >&5
6466 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6467   echo $ac_n "(cached) $ac_c" 1>&6
6468 else
6469   cat > conftest.$ac_ext <<EOF
6470 #line 6471 "configure"
6471 #include "confdefs.h"
6472 /* System header to define __stub macros and hopefully few prototypes,
6473     which can conflict with char $ac_func(); below.  */
6474 #include <assert.h>
6475 /* Override any gcc2 internal prototype to avoid an error.  */
6476 /* We use char because int might match the return type of a gcc2
6477     builtin and then its argument prototype would still apply.  */
6478 char $ac_func();
6479
6480 int main() {
6481
6482 /* The GNU C library defines this for functions which it implements
6483     to always fail with ENOSYS.  Some functions are actually named
6484     something starting with __ and the normal name is an alias.  */
6485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6486 choke me
6487 #else
6488 $ac_func();
6489 #endif
6490
6491 ; return 0; }
6492 EOF
6493 if { (eval echo configure:6494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6494   rm -rf conftest*
6495   eval "ac_cv_func_$ac_func=yes"
6496 else
6497   echo "configure: failed program was:" >&5
6498   cat conftest.$ac_ext >&5
6499   rm -rf conftest*
6500   eval "ac_cv_func_$ac_func=no"
6501 fi
6502 rm -f conftest*
6503 fi
6504
6505 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6506   echo "$ac_t""yes" 1>&6
6507     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6508   cat >> confdefs.h <<EOF
6509 #define $ac_tr_func 1
6510 EOF
6511  
6512 else
6513   echo "$ac_t""no" 1>&6
6514 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6515 fi
6516 done
6517
6518   fi
6519
6520   
6521
6522       
6523
6524       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6525 echo "configure:6526: checking for mbstate_t" >&5
6526   cat > conftest.$ac_ext <<EOF
6527 #line 6528 "configure"
6528 #include "confdefs.h"
6529 #include <wchar.h>
6530 int main() {
6531 mbstate_t teststate;
6532 ; return 0; }
6533 EOF
6534 if { (eval echo configure:6535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6535   rm -rf conftest*
6536   have_mbstate_t=yes
6537 else
6538   echo "configure: failed program was:" >&5
6539   cat conftest.$ac_ext >&5
6540   rm -rf conftest*
6541   have_mbstate_t=no
6542 fi
6543 rm -f conftest*
6544   echo "$ac_t""$have_mbstate_t" 1>&6
6545   if test x"$have_mbstate_t" = xyes; then
6546     cat >> confdefs.h <<\EOF
6547 #define HAVE_MBSTATE_T 1
6548 EOF
6549
6550   fi
6551
6552     for ac_hdr in wchar.h
6553 do
6554 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6555 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6556 echo "configure:6557: checking for $ac_hdr" >&5
6557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6558   echo $ac_n "(cached) $ac_c" 1>&6
6559 else
6560   cat > conftest.$ac_ext <<EOF
6561 #line 6562 "configure"
6562 #include "confdefs.h"
6563 #include <$ac_hdr>
6564 EOF
6565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6566 { (eval echo configure:6567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6568 if test -z "$ac_err"; then
6569   rm -rf conftest*
6570   eval "ac_cv_header_$ac_safe=yes"
6571 else
6572   echo "$ac_err" >&5
6573   echo "configure: failed program was:" >&5
6574   cat conftest.$ac_ext >&5
6575   rm -rf conftest*
6576   eval "ac_cv_header_$ac_safe=no"
6577 fi
6578 rm -f conftest*
6579 fi
6580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6581   echo "$ac_t""yes" 1>&6
6582     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6583   cat >> confdefs.h <<EOF
6584 #define $ac_tr_hdr 1
6585 EOF
6586  ac_has_wchar_h=yes
6587 else
6588   echo "$ac_t""no" 1>&6
6589 ac_has_wchar_h=no
6590 fi
6591 done
6592
6593   for ac_hdr in wctype.h
6594 do
6595 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6596 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6597 echo "configure:6598: checking for $ac_hdr" >&5
6598 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6599   echo $ac_n "(cached) $ac_c" 1>&6
6600 else
6601   cat > conftest.$ac_ext <<EOF
6602 #line 6603 "configure"
6603 #include "confdefs.h"
6604 #include <$ac_hdr>
6605 EOF
6606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6607 { (eval echo configure:6608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6608 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6609 if test -z "$ac_err"; then
6610   rm -rf conftest*
6611   eval "ac_cv_header_$ac_safe=yes"
6612 else
6613   echo "$ac_err" >&5
6614   echo "configure: failed program was:" >&5
6615   cat conftest.$ac_ext >&5
6616   rm -rf conftest*
6617   eval "ac_cv_header_$ac_safe=no"
6618 fi
6619 rm -f conftest*
6620 fi
6621 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6622   echo "$ac_t""yes" 1>&6
6623     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6624   cat >> confdefs.h <<EOF
6625 #define $ac_tr_hdr 1
6626 EOF
6627  ac_has_wctype_h=yes
6628 else
6629   echo "$ac_t""no" 1>&6
6630 ac_has_wctype_h=no
6631 fi
6632 done
6633
6634   
6635     if test x"$ac_has_wchar_h" = xyes &&
6636      test x"$ac_has_wctype_h" = xyes &&
6637      test x"$enable_c_mbchar" != xno; then
6638       
6639             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6640 echo "configure:6641: checking for WCHAR_MIN and WCHAR_MAX" >&5
6641     cat > conftest.$ac_ext <<EOF
6642 #line 6643 "configure"
6643 #include "confdefs.h"
6644 #include <wchar.h>
6645 int main() {
6646 int i = WCHAR_MIN; int j = WCHAR_MAX;
6647 ; return 0; }
6648 EOF
6649 if { (eval echo configure:6650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6650   rm -rf conftest*
6651   has_wchar_minmax=yes
6652 else
6653   echo "configure: failed program was:" >&5
6654   cat conftest.$ac_ext >&5
6655   rm -rf conftest*
6656   has_wchar_minmax=no
6657 fi
6658 rm -f conftest*
6659     echo "$ac_t""$has_wchar_minmax" 1>&6
6660     
6661             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6662 echo "configure:6663: checking for WEOF" >&5
6663     cat > conftest.$ac_ext <<EOF
6664 #line 6665 "configure"
6665 #include "confdefs.h"
6666
6667       #include <wchar.h>
6668       #include <stddef.h>
6669 int main() {
6670 wint_t i = WEOF;
6671 ; return 0; }
6672 EOF
6673 if { (eval echo configure:6674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6674   rm -rf conftest*
6675   has_weof=yes
6676 else
6677   echo "configure: failed program was:" >&5
6678   cat conftest.$ac_ext >&5
6679   rm -rf conftest*
6680   has_weof=no
6681 fi
6682 rm -f conftest*
6683     echo "$ac_t""$has_weof" 1>&6
6684   
6685         ac_wfuncs=yes
6686     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6687 do
6688 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6689 echo "configure:6690: checking for $ac_func" >&5
6690 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6691   echo $ac_n "(cached) $ac_c" 1>&6
6692 else
6693   cat > conftest.$ac_ext <<EOF
6694 #line 6695 "configure"
6695 #include "confdefs.h"
6696 /* System header to define __stub macros and hopefully few prototypes,
6697     which can conflict with char $ac_func(); below.  */
6698 #include <assert.h>
6699 /* Override any gcc2 internal prototype to avoid an error.  */
6700 /* We use char because int might match the return type of a gcc2
6701     builtin and then its argument prototype would still apply.  */
6702 char $ac_func();
6703
6704 int main() {
6705
6706 /* The GNU C library defines this for functions which it implements
6707     to always fail with ENOSYS.  Some functions are actually named
6708     something starting with __ and the normal name is an alias.  */
6709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6710 choke me
6711 #else
6712 $ac_func();
6713 #endif
6714
6715 ; return 0; }
6716 EOF
6717 if { (eval echo configure:6718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6718   rm -rf conftest*
6719   eval "ac_cv_func_$ac_func=yes"
6720 else
6721   echo "configure: failed program was:" >&5
6722   cat conftest.$ac_ext >&5
6723   rm -rf conftest*
6724   eval "ac_cv_func_$ac_func=no"
6725 fi
6726 rm -f conftest*
6727 fi
6728
6729 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6730   echo "$ac_t""yes" 1>&6
6731     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6732   cat >> confdefs.h <<EOF
6733 #define $ac_tr_func 1
6734 EOF
6735  
6736 else
6737   echo "$ac_t""no" 1>&6
6738 \
6739     ac_wfuncs=no
6740 fi
6741 done
6742
6743   
6744         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6745     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6746     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6747     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6748     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6749     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6750 do
6751 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6752 echo "configure:6753: checking for $ac_func" >&5
6753 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6754   echo $ac_n "(cached) $ac_c" 1>&6
6755 else
6756   cat > conftest.$ac_ext <<EOF
6757 #line 6758 "configure"
6758 #include "confdefs.h"
6759 /* System header to define __stub macros and hopefully few prototypes,
6760     which can conflict with char $ac_func(); below.  */
6761 #include <assert.h>
6762 /* Override any gcc2 internal prototype to avoid an error.  */
6763 /* We use char because int might match the return type of a gcc2
6764     builtin and then its argument prototype would still apply.  */
6765 char $ac_func();
6766
6767 int main() {
6768
6769 /* The GNU C library defines this for functions which it implements
6770     to always fail with ENOSYS.  Some functions are actually named
6771     something starting with __ and the normal name is an alias.  */
6772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6773 choke me
6774 #else
6775 $ac_func();
6776 #endif
6777
6778 ; return 0; }
6779 EOF
6780 if { (eval echo configure:6781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6781   rm -rf conftest*
6782   eval "ac_cv_func_$ac_func=yes"
6783 else
6784   echo "configure: failed program was:" >&5
6785   cat conftest.$ac_ext >&5
6786   rm -rf conftest*
6787   eval "ac_cv_func_$ac_func=no"
6788 fi
6789 rm -f conftest*
6790 fi
6791
6792 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6793   echo "$ac_t""yes" 1>&6
6794     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6795   cat >> confdefs.h <<EOF
6796 #define $ac_tr_func 1
6797 EOF
6798  
6799 else
6800   echo "$ac_t""no" 1>&6
6801 \
6802     ac_wfuncs=no
6803 fi
6804 done
6805
6806
6807     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6808 echo "configure:6809: checking for ISO C99 wchar_t support" >&5
6809     if test x"$has_weof" = xyes &&
6810        test x"$has_wchar_minmax" = xyes &&
6811        test x"$ac_wfuncs" = xyes; then
6812       ac_isoC99_wchar_t=yes
6813     else
6814       ac_isoC99_wchar_t=no
6815     fi
6816     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6817   
6818             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6819 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6820 echo "configure:6821: checking for iconv.h" >&5
6821 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6822   echo $ac_n "(cached) $ac_c" 1>&6
6823 else
6824   cat > conftest.$ac_ext <<EOF
6825 #line 6826 "configure"
6826 #include "confdefs.h"
6827 #include <iconv.h>
6828 EOF
6829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6830 { (eval echo configure:6831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6832 if test -z "$ac_err"; then
6833   rm -rf conftest*
6834   eval "ac_cv_header_$ac_safe=yes"
6835 else
6836   echo "$ac_err" >&5
6837   echo "configure: failed program was:" >&5
6838   cat conftest.$ac_ext >&5
6839   rm -rf conftest*
6840   eval "ac_cv_header_$ac_safe=no"
6841 fi
6842 rm -f conftest*
6843 fi
6844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6845   echo "$ac_t""yes" 1>&6
6846   ac_has_iconv_h=yes
6847 else
6848   echo "$ac_t""no" 1>&6
6849 ac_has_iconv_h=no
6850 fi
6851
6852     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6853 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6854 echo "configure:6855: checking for langinfo.h" >&5
6855 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6856   echo $ac_n "(cached) $ac_c" 1>&6
6857 else
6858   cat > conftest.$ac_ext <<EOF
6859 #line 6860 "configure"
6860 #include "confdefs.h"
6861 #include <langinfo.h>
6862 EOF
6863 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6864 { (eval echo configure:6865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6865 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6866 if test -z "$ac_err"; then
6867   rm -rf conftest*
6868   eval "ac_cv_header_$ac_safe=yes"
6869 else
6870   echo "$ac_err" >&5
6871   echo "configure: failed program was:" >&5
6872   cat conftest.$ac_ext >&5
6873   rm -rf conftest*
6874   eval "ac_cv_header_$ac_safe=no"
6875 fi
6876 rm -f conftest*
6877 fi
6878 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6879   echo "$ac_t""yes" 1>&6
6880   ac_has_langinfo_h=yes
6881 else
6882   echo "$ac_t""no" 1>&6
6883 ac_has_langinfo_h=no
6884 fi
6885
6886
6887         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6888 echo "configure:6889: checking for iconv in -liconv" >&5
6889 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6890 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6891   echo $ac_n "(cached) $ac_c" 1>&6
6892 else
6893   ac_save_LIBS="$LIBS"
6894 LIBS="-liconv  $LIBS"
6895 cat > conftest.$ac_ext <<EOF
6896 #line 6897 "configure"
6897 #include "confdefs.h"
6898 /* Override any gcc2 internal prototype to avoid an error.  */
6899 /* We use char because int might match the return type of a gcc2
6900     builtin and then its argument prototype would still apply.  */
6901 char iconv();
6902
6903 int main() {
6904 iconv()
6905 ; return 0; }
6906 EOF
6907 if { (eval echo configure:6908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6908   rm -rf conftest*
6909   eval "ac_cv_lib_$ac_lib_var=yes"
6910 else
6911   echo "configure: failed program was:" >&5
6912   cat conftest.$ac_ext >&5
6913   rm -rf conftest*
6914   eval "ac_cv_lib_$ac_lib_var=no"
6915 fi
6916 rm -f conftest*
6917 LIBS="$ac_save_LIBS"
6918
6919 fi
6920 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6921   echo "$ac_t""yes" 1>&6
6922   libiconv="-liconv"
6923 else
6924   echo "$ac_t""no" 1>&6
6925 fi
6926
6927     ac_save_LIBS="$LIBS"
6928     LIBS="$LIBS $libiconv"
6929
6930     for ac_func in iconv_open iconv_close iconv nl_langinfo
6931 do
6932 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6933 echo "configure:6934: checking for $ac_func" >&5
6934 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6935   echo $ac_n "(cached) $ac_c" 1>&6
6936 else
6937   cat > conftest.$ac_ext <<EOF
6938 #line 6939 "configure"
6939 #include "confdefs.h"
6940 /* System header to define __stub macros and hopefully few prototypes,
6941     which can conflict with char $ac_func(); below.  */
6942 #include <assert.h>
6943 /* Override any gcc2 internal prototype to avoid an error.  */
6944 /* We use char because int might match the return type of a gcc2
6945     builtin and then its argument prototype would still apply.  */
6946 char $ac_func();
6947
6948 int main() {
6949
6950 /* The GNU C library defines this for functions which it implements
6951     to always fail with ENOSYS.  Some functions are actually named
6952     something starting with __ and the normal name is an alias.  */
6953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6954 choke me
6955 #else
6956 $ac_func();
6957 #endif
6958
6959 ; return 0; }
6960 EOF
6961 if { (eval echo configure:6962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6962   rm -rf conftest*
6963   eval "ac_cv_func_$ac_func=yes"
6964 else
6965   echo "configure: failed program was:" >&5
6966   cat conftest.$ac_ext >&5
6967   rm -rf conftest*
6968   eval "ac_cv_func_$ac_func=no"
6969 fi
6970 rm -f conftest*
6971 fi
6972
6973 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6974   echo "$ac_t""yes" 1>&6
6975     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6976   cat >> confdefs.h <<EOF
6977 #define $ac_tr_func 1
6978 EOF
6979  \
6980     ac_XPG2funcs=yes
6981 else
6982   echo "$ac_t""no" 1>&6
6983 ac_XPG2funcs=no
6984 fi
6985 done
6986
6987   
6988     LIBS="$ac_save_LIBS"
6989
6990     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6991 echo "configure:6992: checking for XPG2 wchar_t support" >&5
6992     if test x"$ac_has_iconv_h" = xyes &&
6993        test x"$ac_has_langinfo_h" = xyes &&
6994        test x"$ac_XPG2funcs" = xyes; then
6995       ac_XPG2_wchar_t=yes
6996     else
6997       ac_XPG2_wchar_t=no
6998     fi
6999     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7000   
7001             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7002 echo "configure:7003: checking for enabled wchar_t specializations" >&5
7003     if test x"$ac_isoC99_wchar_t" = xyes &&
7004        test x"$ac_XPG2_wchar_t" = xyes; then
7005       cat >> confdefs.h <<\EOF
7006 #define _GLIBCPP_USE_WCHAR_T 1
7007 EOF
7008
7009       echo "$ac_t"""yes"" 1>&6
7010     else
7011       echo "$ac_t"""no"" 1>&6
7012     fi
7013   else
7014         echo "configure: warning: wchar_t support disabled." 1>&2
7015   fi
7016
7017       os_include_dir="os/bsd/netbsd"
7018       cat >> confdefs.h <<\EOF
7019 #define HAVE_COPYSIGN 1
7020 EOF
7021
7022       cat >> confdefs.h <<\EOF
7023 #define HAVE_COPYSIGNF 1
7024 EOF
7025
7026       cat >> confdefs.h <<\EOF
7027 #define HAVE_FINITEF 1
7028 EOF
7029
7030       cat >> confdefs.h <<\EOF
7031 #define HAVE_FINITE 1
7032 EOF
7033
7034       cat >> confdefs.h <<\EOF
7035 #define HAVE_FREXPF 1
7036 EOF
7037
7038       cat >> confdefs.h <<\EOF
7039 #define HAVE_HYPOTF 1
7040 EOF
7041
7042       cat >> confdefs.h <<\EOF
7043 #define HAVE_ISINF 1
7044 EOF
7045
7046       cat >> confdefs.h <<\EOF
7047 #define HAVE_ISINFF 1
7048 EOF
7049
7050       cat >> confdefs.h <<\EOF
7051 #define HAVE_ISNAN 1
7052 EOF
7053
7054       cat >> confdefs.h <<\EOF
7055 #define HAVE_ISNANF 1
7056 EOF
7057
7058       if test x"long_double_math_on_this_cpu" = x"yes"; then
7059         cat >> confdefs.h <<\EOF
7060 #define HAVE_FINITEL 1
7061 EOF
7062
7063         cat >> confdefs.h <<\EOF
7064 #define HAVE_ISINFL 1
7065 EOF
7066
7067         cat >> confdefs.h <<\EOF
7068 #define HAVE_ISNANL 1
7069 EOF
7070
7071       fi
7072       ;;
7073     *-mingw32*)
7074       for ac_hdr in sys/types.h locale.h float.h
7075 do
7076 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7077 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7078 echo "configure:7079: checking for $ac_hdr" >&5
7079 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7080   echo $ac_n "(cached) $ac_c" 1>&6
7081 else
7082   cat > conftest.$ac_ext <<EOF
7083 #line 7084 "configure"
7084 #include "confdefs.h"
7085 #include <$ac_hdr>
7086 EOF
7087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7088 { (eval echo configure:7089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7090 if test -z "$ac_err"; then
7091   rm -rf conftest*
7092   eval "ac_cv_header_$ac_safe=yes"
7093 else
7094   echo "$ac_err" >&5
7095   echo "configure: failed program was:" >&5
7096   cat conftest.$ac_ext >&5
7097   rm -rf conftest*
7098   eval "ac_cv_header_$ac_safe=no"
7099 fi
7100 rm -f conftest*
7101 fi
7102 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7103   echo "$ac_t""yes" 1>&6
7104     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7105   cat >> confdefs.h <<EOF
7106 #define $ac_tr_hdr 1
7107 EOF
7108  
7109 else
7110   echo "$ac_t""no" 1>&6
7111 fi
7112 done
7113
7114       
7115   # If we're not using GNU ld, then there's no point in even trying these
7116   # tests.  Check for that first.  We should have already tested for gld
7117   # by now (in libtool), but require it now just to be safe...
7118   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7119   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7120   
7121
7122   # The name set by libtool depends on the version of libtool.  Shame on us
7123   # for depending on an impl detail, but c'est la vie.  Older versions used
7124   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7125   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7126   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7127   # set (hence we're using an older libtool), then set it.
7128   if test x${with_gnu_ld+set} != xset; then
7129     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7130       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7131       with_gnu_ld=no
7132     else
7133       with_gnu_ld=$ac_cv_prog_gnu_ld
7134     fi
7135   fi
7136
7137   # Start by getting the version number.  I think the libtool test already
7138   # does some of this, but throws away the result.
7139   
7140   ldver=`$LD --version 2>/dev/null | head -1 | \
7141          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7142   
7143   glibcpp_gnu_ld_version=`echo $ldver | \
7144          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7145
7146   # Set --gc-sections.
7147   if test "$with_gnu_ld" = "notbroken"; then
7148     # GNU ld it is!  Joy and bunny rabbits!
7149
7150     # All these tests are for C++; save the language and the compiler flags.
7151     # Need to do this so that g++ won't try to link in libstdc++
7152     ac_test_CFLAGS="${CFLAGS+set}"
7153     ac_save_CFLAGS="$CFLAGS"
7154     CFLAGS='-x c++  -Wl,--gc-sections'
7155
7156     # Check for -Wl,--gc-sections
7157     # XXX This test is broken at the moment, as symbols required for
7158     # linking are now in libsupc++ (not built yet.....). In addition, 
7159     # this test has cored on solaris in the past. In addition,
7160     # --gc-sections doesn't really work at the moment (keeps on discarding
7161     # used sections, first .eh_frame and now some of the glibc sections for
7162     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7163     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7164 echo "configure:7165: checking for ld that supports -Wl,--gc-sections" >&5
7165     if test "$cross_compiling" = yes; then
7166   ac_sectionLDflags=yes
7167 else
7168   cat > conftest.$ac_ext <<EOF
7169 #line 7170 "configure"
7170 #include "confdefs.h"
7171
7172      int main(void) 
7173      {
7174        try { throw 1; }
7175        catch (...) { };
7176        return 0;
7177      }
7178     
7179 EOF
7180 if { (eval echo configure:7181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7181 then
7182   ac_sectionLDflags=yes
7183 else
7184   echo "configure: failed program was:" >&5
7185   cat conftest.$ac_ext >&5
7186   rm -fr conftest*
7187   ac_sectionLDflags=no
7188 fi
7189 rm -fr conftest*
7190 fi
7191
7192     if test "$ac_test_CFLAGS" = set; then
7193       CFLAGS="$ac_save_CFLAGS"
7194     else
7195       # this is the suspicious part
7196       CFLAGS=''
7197     fi
7198     if test "$ac_sectionLDflags" = "yes"; then
7199       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7200     fi
7201     echo "$ac_t""$ac_sectionLDflags" 1>&6
7202   fi
7203
7204   # Set linker optimization flags.
7205   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7206     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7207   fi
7208
7209   
7210   
7211
7212       
7213     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7214 echo "configure:7215: checking for main in -lm" >&5
7215 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7217   echo $ac_n "(cached) $ac_c" 1>&6
7218 else
7219   ac_save_LIBS="$LIBS"
7220 LIBS="-lm  $LIBS"
7221 cat > conftest.$ac_ext <<EOF
7222 #line 7223 "configure"
7223 #include "confdefs.h"
7224
7225 int main() {
7226 main()
7227 ; return 0; }
7228 EOF
7229 if { (eval echo configure:7230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7230   rm -rf conftest*
7231   eval "ac_cv_lib_$ac_lib_var=yes"
7232 else
7233   echo "configure: failed program was:" >&5
7234   cat conftest.$ac_ext >&5
7235   rm -rf conftest*
7236   eval "ac_cv_lib_$ac_lib_var=no"
7237 fi
7238 rm -f conftest*
7239 LIBS="$ac_save_LIBS"
7240
7241 fi
7242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7243   echo "$ac_t""yes" 1>&6
7244     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7245     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7246   cat >> confdefs.h <<EOF
7247 #define $ac_tr_lib 1
7248 EOF
7249
7250   LIBS="-lm $LIBS"
7251
7252 else
7253   echo "$ac_t""no" 1>&6
7254 fi
7255
7256   for ac_func in nan copysignf
7257 do
7258 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7259 echo "configure:7260: checking for $ac_func" >&5
7260 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7261   echo $ac_n "(cached) $ac_c" 1>&6
7262 else
7263   cat > conftest.$ac_ext <<EOF
7264 #line 7265 "configure"
7265 #include "confdefs.h"
7266 /* System header to define __stub macros and hopefully few prototypes,
7267     which can conflict with char $ac_func(); below.  */
7268 #include <assert.h>
7269 /* Override any gcc2 internal prototype to avoid an error.  */
7270 /* We use char because int might match the return type of a gcc2
7271     builtin and then its argument prototype would still apply.  */
7272 char $ac_func();
7273
7274 int main() {
7275
7276 /* The GNU C library defines this for functions which it implements
7277     to always fail with ENOSYS.  Some functions are actually named
7278     something starting with __ and the normal name is an alias.  */
7279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7280 choke me
7281 #else
7282 $ac_func();
7283 #endif
7284
7285 ; return 0; }
7286 EOF
7287 if { (eval echo configure:7288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7288   rm -rf conftest*
7289   eval "ac_cv_func_$ac_func=yes"
7290 else
7291   echo "configure: failed program was:" >&5
7292   cat conftest.$ac_ext >&5
7293   rm -rf conftest*
7294   eval "ac_cv_func_$ac_func=no"
7295 fi
7296 rm -f conftest*
7297 fi
7298
7299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7300   echo "$ac_t""yes" 1>&6
7301     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7302   cat >> confdefs.h <<EOF
7303 #define $ac_tr_func 1
7304 EOF
7305  
7306 else
7307   echo "$ac_t""no" 1>&6
7308 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7309 fi
7310 done
7311
7312
7313     for ac_func in __signbit
7314 do
7315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7316 echo "configure:7317: checking for $ac_func" >&5
7317 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7318   echo $ac_n "(cached) $ac_c" 1>&6
7319 else
7320   cat > conftest.$ac_ext <<EOF
7321 #line 7322 "configure"
7322 #include "confdefs.h"
7323 /* System header to define __stub macros and hopefully few prototypes,
7324     which can conflict with char $ac_func(); below.  */
7325 #include <assert.h>
7326 /* Override any gcc2 internal prototype to avoid an error.  */
7327 /* We use char because int might match the return type of a gcc2
7328     builtin and then its argument prototype would still apply.  */
7329 char $ac_func();
7330
7331 int main() {
7332
7333 /* The GNU C library defines this for functions which it implements
7334     to always fail with ENOSYS.  Some functions are actually named
7335     something starting with __ and the normal name is an alias.  */
7336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7337 choke me
7338 #else
7339 $ac_func();
7340 #endif
7341
7342 ; return 0; }
7343 EOF
7344 if { (eval echo configure:7345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7345   rm -rf conftest*
7346   eval "ac_cv_func_$ac_func=yes"
7347 else
7348   echo "configure: failed program was:" >&5
7349   cat conftest.$ac_ext >&5
7350   rm -rf conftest*
7351   eval "ac_cv_func_$ac_func=no"
7352 fi
7353 rm -f conftest*
7354 fi
7355
7356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7357   echo "$ac_t""yes" 1>&6
7358     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7359   cat >> confdefs.h <<EOF
7360 #define $ac_tr_func 1
7361 EOF
7362  
7363 else
7364   echo "$ac_t""no" 1>&6
7365 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7366 fi
7367 done
7368
7369   for ac_func in __signbitf
7370 do
7371 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7372 echo "configure:7373: checking for $ac_func" >&5
7373 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7374   echo $ac_n "(cached) $ac_c" 1>&6
7375 else
7376   cat > conftest.$ac_ext <<EOF
7377 #line 7378 "configure"
7378 #include "confdefs.h"
7379 /* System header to define __stub macros and hopefully few prototypes,
7380     which can conflict with char $ac_func(); below.  */
7381 #include <assert.h>
7382 /* Override any gcc2 internal prototype to avoid an error.  */
7383 /* We use char because int might match the return type of a gcc2
7384     builtin and then its argument prototype would still apply.  */
7385 char $ac_func();
7386
7387 int main() {
7388
7389 /* The GNU C library defines this for functions which it implements
7390     to always fail with ENOSYS.  Some functions are actually named
7391     something starting with __ and the normal name is an alias.  */
7392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7393 choke me
7394 #else
7395 $ac_func();
7396 #endif
7397
7398 ; return 0; }
7399 EOF
7400 if { (eval echo configure:7401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7401   rm -rf conftest*
7402   eval "ac_cv_func_$ac_func=yes"
7403 else
7404   echo "configure: failed program was:" >&5
7405   cat conftest.$ac_ext >&5
7406   rm -rf conftest*
7407   eval "ac_cv_func_$ac_func=no"
7408 fi
7409 rm -f conftest*
7410 fi
7411
7412 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7413   echo "$ac_t""yes" 1>&6
7414     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7415   cat >> confdefs.h <<EOF
7416 #define $ac_tr_func 1
7417 EOF
7418  
7419 else
7420   echo "$ac_t""no" 1>&6
7421 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7422 fi
7423 done
7424
7425
7426           if test x$ac_cv_func_copysignl = x"yes"; then
7427     for ac_func in __signbitl
7428 do
7429 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7430 echo "configure:7431: checking for $ac_func" >&5
7431 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7432   echo $ac_n "(cached) $ac_c" 1>&6
7433 else
7434   cat > conftest.$ac_ext <<EOF
7435 #line 7436 "configure"
7436 #include "confdefs.h"
7437 /* System header to define __stub macros and hopefully few prototypes,
7438     which can conflict with char $ac_func(); below.  */
7439 #include <assert.h>
7440 /* Override any gcc2 internal prototype to avoid an error.  */
7441 /* We use char because int might match the return type of a gcc2
7442     builtin and then its argument prototype would still apply.  */
7443 char $ac_func();
7444
7445 int main() {
7446
7447 /* The GNU C library defines this for functions which it implements
7448     to always fail with ENOSYS.  Some functions are actually named
7449     something starting with __ and the normal name is an alias.  */
7450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7451 choke me
7452 #else
7453 $ac_func();
7454 #endif
7455
7456 ; return 0; }
7457 EOF
7458 if { (eval echo configure:7459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7459   rm -rf conftest*
7460   eval "ac_cv_func_$ac_func=yes"
7461 else
7462   echo "configure: failed program was:" >&5
7463   cat conftest.$ac_ext >&5
7464   rm -rf conftest*
7465   eval "ac_cv_func_$ac_func=no"
7466 fi
7467 rm -f conftest*
7468 fi
7469
7470 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7471   echo "$ac_t""yes" 1>&6
7472     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7473   cat >> confdefs.h <<EOF
7474 #define $ac_tr_func 1
7475 EOF
7476  
7477 else
7478   echo "$ac_t""no" 1>&6
7479 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7480 fi
7481 done
7482
7483   fi
7484
7485   
7486
7487       
7488
7489       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7490 echo "configure:7491: checking for mbstate_t" >&5
7491   cat > conftest.$ac_ext <<EOF
7492 #line 7493 "configure"
7493 #include "confdefs.h"
7494 #include <wchar.h>
7495 int main() {
7496 mbstate_t teststate;
7497 ; return 0; }
7498 EOF
7499 if { (eval echo configure:7500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7500   rm -rf conftest*
7501   have_mbstate_t=yes
7502 else
7503   echo "configure: failed program was:" >&5
7504   cat conftest.$ac_ext >&5
7505   rm -rf conftest*
7506   have_mbstate_t=no
7507 fi
7508 rm -f conftest*
7509   echo "$ac_t""$have_mbstate_t" 1>&6
7510   if test x"$have_mbstate_t" = xyes; then
7511     cat >> confdefs.h <<\EOF
7512 #define HAVE_MBSTATE_T 1
7513 EOF
7514
7515   fi
7516
7517     for ac_hdr in wchar.h
7518 do
7519 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7520 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7521 echo "configure:7522: checking for $ac_hdr" >&5
7522 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7523   echo $ac_n "(cached) $ac_c" 1>&6
7524 else
7525   cat > conftest.$ac_ext <<EOF
7526 #line 7527 "configure"
7527 #include "confdefs.h"
7528 #include <$ac_hdr>
7529 EOF
7530 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7531 { (eval echo configure:7532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7532 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7533 if test -z "$ac_err"; then
7534   rm -rf conftest*
7535   eval "ac_cv_header_$ac_safe=yes"
7536 else
7537   echo "$ac_err" >&5
7538   echo "configure: failed program was:" >&5
7539   cat conftest.$ac_ext >&5
7540   rm -rf conftest*
7541   eval "ac_cv_header_$ac_safe=no"
7542 fi
7543 rm -f conftest*
7544 fi
7545 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7546   echo "$ac_t""yes" 1>&6
7547     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7548   cat >> confdefs.h <<EOF
7549 #define $ac_tr_hdr 1
7550 EOF
7551  ac_has_wchar_h=yes
7552 else
7553   echo "$ac_t""no" 1>&6
7554 ac_has_wchar_h=no
7555 fi
7556 done
7557
7558   for ac_hdr in wctype.h
7559 do
7560 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7561 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7562 echo "configure:7563: checking for $ac_hdr" >&5
7563 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7564   echo $ac_n "(cached) $ac_c" 1>&6
7565 else
7566   cat > conftest.$ac_ext <<EOF
7567 #line 7568 "configure"
7568 #include "confdefs.h"
7569 #include <$ac_hdr>
7570 EOF
7571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7572 { (eval echo configure:7573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7573 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7574 if test -z "$ac_err"; then
7575   rm -rf conftest*
7576   eval "ac_cv_header_$ac_safe=yes"
7577 else
7578   echo "$ac_err" >&5
7579   echo "configure: failed program was:" >&5
7580   cat conftest.$ac_ext >&5
7581   rm -rf conftest*
7582   eval "ac_cv_header_$ac_safe=no"
7583 fi
7584 rm -f conftest*
7585 fi
7586 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7587   echo "$ac_t""yes" 1>&6
7588     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7589   cat >> confdefs.h <<EOF
7590 #define $ac_tr_hdr 1
7591 EOF
7592  ac_has_wctype_h=yes
7593 else
7594   echo "$ac_t""no" 1>&6
7595 ac_has_wctype_h=no
7596 fi
7597 done
7598
7599   
7600     if test x"$ac_has_wchar_h" = xyes &&
7601      test x"$ac_has_wctype_h" = xyes &&
7602      test x"$enable_c_mbchar" != xno; then
7603       
7604             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7605 echo "configure:7606: checking for WCHAR_MIN and WCHAR_MAX" >&5
7606     cat > conftest.$ac_ext <<EOF
7607 #line 7608 "configure"
7608 #include "confdefs.h"
7609 #include <wchar.h>
7610 int main() {
7611 int i = WCHAR_MIN; int j = WCHAR_MAX;
7612 ; return 0; }
7613 EOF
7614 if { (eval echo configure:7615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7615   rm -rf conftest*
7616   has_wchar_minmax=yes
7617 else
7618   echo "configure: failed program was:" >&5
7619   cat conftest.$ac_ext >&5
7620   rm -rf conftest*
7621   has_wchar_minmax=no
7622 fi
7623 rm -f conftest*
7624     echo "$ac_t""$has_wchar_minmax" 1>&6
7625     
7626             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7627 echo "configure:7628: checking for WEOF" >&5
7628     cat > conftest.$ac_ext <<EOF
7629 #line 7630 "configure"
7630 #include "confdefs.h"
7631
7632       #include <wchar.h>
7633       #include <stddef.h>
7634 int main() {
7635 wint_t i = WEOF;
7636 ; return 0; }
7637 EOF
7638 if { (eval echo configure:7639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7639   rm -rf conftest*
7640   has_weof=yes
7641 else
7642   echo "configure: failed program was:" >&5
7643   cat conftest.$ac_ext >&5
7644   rm -rf conftest*
7645   has_weof=no
7646 fi
7647 rm -f conftest*
7648     echo "$ac_t""$has_weof" 1>&6
7649   
7650         ac_wfuncs=yes
7651     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7652 do
7653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7654 echo "configure:7655: checking for $ac_func" >&5
7655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7656   echo $ac_n "(cached) $ac_c" 1>&6
7657 else
7658   cat > conftest.$ac_ext <<EOF
7659 #line 7660 "configure"
7660 #include "confdefs.h"
7661 /* System header to define __stub macros and hopefully few prototypes,
7662     which can conflict with char $ac_func(); below.  */
7663 #include <assert.h>
7664 /* Override any gcc2 internal prototype to avoid an error.  */
7665 /* We use char because int might match the return type of a gcc2
7666     builtin and then its argument prototype would still apply.  */
7667 char $ac_func();
7668
7669 int main() {
7670
7671 /* The GNU C library defines this for functions which it implements
7672     to always fail with ENOSYS.  Some functions are actually named
7673     something starting with __ and the normal name is an alias.  */
7674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7675 choke me
7676 #else
7677 $ac_func();
7678 #endif
7679
7680 ; return 0; }
7681 EOF
7682 if { (eval echo configure:7683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7683   rm -rf conftest*
7684   eval "ac_cv_func_$ac_func=yes"
7685 else
7686   echo "configure: failed program was:" >&5
7687   cat conftest.$ac_ext >&5
7688   rm -rf conftest*
7689   eval "ac_cv_func_$ac_func=no"
7690 fi
7691 rm -f conftest*
7692 fi
7693
7694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7695   echo "$ac_t""yes" 1>&6
7696     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7697   cat >> confdefs.h <<EOF
7698 #define $ac_tr_func 1
7699 EOF
7700  
7701 else
7702   echo "$ac_t""no" 1>&6
7703 \
7704     ac_wfuncs=no
7705 fi
7706 done
7707
7708   
7709         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7710     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7711     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7712     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7713     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7714     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7715 do
7716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7717 echo "configure:7718: checking for $ac_func" >&5
7718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7719   echo $ac_n "(cached) $ac_c" 1>&6
7720 else
7721   cat > conftest.$ac_ext <<EOF
7722 #line 7723 "configure"
7723 #include "confdefs.h"
7724 /* System header to define __stub macros and hopefully few prototypes,
7725     which can conflict with char $ac_func(); below.  */
7726 #include <assert.h>
7727 /* Override any gcc2 internal prototype to avoid an error.  */
7728 /* We use char because int might match the return type of a gcc2
7729     builtin and then its argument prototype would still apply.  */
7730 char $ac_func();
7731
7732 int main() {
7733
7734 /* The GNU C library defines this for functions which it implements
7735     to always fail with ENOSYS.  Some functions are actually named
7736     something starting with __ and the normal name is an alias.  */
7737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7738 choke me
7739 #else
7740 $ac_func();
7741 #endif
7742
7743 ; return 0; }
7744 EOF
7745 if { (eval echo configure:7746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7746   rm -rf conftest*
7747   eval "ac_cv_func_$ac_func=yes"
7748 else
7749   echo "configure: failed program was:" >&5
7750   cat conftest.$ac_ext >&5
7751   rm -rf conftest*
7752   eval "ac_cv_func_$ac_func=no"
7753 fi
7754 rm -f conftest*
7755 fi
7756
7757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7758   echo "$ac_t""yes" 1>&6
7759     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7760   cat >> confdefs.h <<EOF
7761 #define $ac_tr_func 1
7762 EOF
7763  
7764 else
7765   echo "$ac_t""no" 1>&6
7766 \
7767     ac_wfuncs=no
7768 fi
7769 done
7770
7771
7772     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7773 echo "configure:7774: checking for ISO C99 wchar_t support" >&5
7774     if test x"$has_weof" = xyes &&
7775        test x"$has_wchar_minmax" = xyes &&
7776        test x"$ac_wfuncs" = xyes; then
7777       ac_isoC99_wchar_t=yes
7778     else
7779       ac_isoC99_wchar_t=no
7780     fi
7781     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7782   
7783             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7784 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7785 echo "configure:7786: checking for iconv.h" >&5
7786 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7787   echo $ac_n "(cached) $ac_c" 1>&6
7788 else
7789   cat > conftest.$ac_ext <<EOF
7790 #line 7791 "configure"
7791 #include "confdefs.h"
7792 #include <iconv.h>
7793 EOF
7794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7795 { (eval echo configure:7796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7797 if test -z "$ac_err"; then
7798   rm -rf conftest*
7799   eval "ac_cv_header_$ac_safe=yes"
7800 else
7801   echo "$ac_err" >&5
7802   echo "configure: failed program was:" >&5
7803   cat conftest.$ac_ext >&5
7804   rm -rf conftest*
7805   eval "ac_cv_header_$ac_safe=no"
7806 fi
7807 rm -f conftest*
7808 fi
7809 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7810   echo "$ac_t""yes" 1>&6
7811   ac_has_iconv_h=yes
7812 else
7813   echo "$ac_t""no" 1>&6
7814 ac_has_iconv_h=no
7815 fi
7816
7817     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7818 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7819 echo "configure:7820: checking for langinfo.h" >&5
7820 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7821   echo $ac_n "(cached) $ac_c" 1>&6
7822 else
7823   cat > conftest.$ac_ext <<EOF
7824 #line 7825 "configure"
7825 #include "confdefs.h"
7826 #include <langinfo.h>
7827 EOF
7828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7829 { (eval echo configure:7830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7830 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7831 if test -z "$ac_err"; then
7832   rm -rf conftest*
7833   eval "ac_cv_header_$ac_safe=yes"
7834 else
7835   echo "$ac_err" >&5
7836   echo "configure: failed program was:" >&5
7837   cat conftest.$ac_ext >&5
7838   rm -rf conftest*
7839   eval "ac_cv_header_$ac_safe=no"
7840 fi
7841 rm -f conftest*
7842 fi
7843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7844   echo "$ac_t""yes" 1>&6
7845   ac_has_langinfo_h=yes
7846 else
7847   echo "$ac_t""no" 1>&6
7848 ac_has_langinfo_h=no
7849 fi
7850
7851
7852         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7853 echo "configure:7854: checking for iconv in -liconv" >&5
7854 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7856   echo $ac_n "(cached) $ac_c" 1>&6
7857 else
7858   ac_save_LIBS="$LIBS"
7859 LIBS="-liconv  $LIBS"
7860 cat > conftest.$ac_ext <<EOF
7861 #line 7862 "configure"
7862 #include "confdefs.h"
7863 /* Override any gcc2 internal prototype to avoid an error.  */
7864 /* We use char because int might match the return type of a gcc2
7865     builtin and then its argument prototype would still apply.  */
7866 char iconv();
7867
7868 int main() {
7869 iconv()
7870 ; return 0; }
7871 EOF
7872 if { (eval echo configure:7873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7873   rm -rf conftest*
7874   eval "ac_cv_lib_$ac_lib_var=yes"
7875 else
7876   echo "configure: failed program was:" >&5
7877   cat conftest.$ac_ext >&5
7878   rm -rf conftest*
7879   eval "ac_cv_lib_$ac_lib_var=no"
7880 fi
7881 rm -f conftest*
7882 LIBS="$ac_save_LIBS"
7883
7884 fi
7885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7886   echo "$ac_t""yes" 1>&6
7887   libiconv="-liconv"
7888 else
7889   echo "$ac_t""no" 1>&6
7890 fi
7891
7892     ac_save_LIBS="$LIBS"
7893     LIBS="$LIBS $libiconv"
7894
7895     for ac_func in iconv_open iconv_close iconv nl_langinfo
7896 do
7897 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7898 echo "configure:7899: checking for $ac_func" >&5
7899 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7900   echo $ac_n "(cached) $ac_c" 1>&6
7901 else
7902   cat > conftest.$ac_ext <<EOF
7903 #line 7904 "configure"
7904 #include "confdefs.h"
7905 /* System header to define __stub macros and hopefully few prototypes,
7906     which can conflict with char $ac_func(); below.  */
7907 #include <assert.h>
7908 /* Override any gcc2 internal prototype to avoid an error.  */
7909 /* We use char because int might match the return type of a gcc2
7910     builtin and then its argument prototype would still apply.  */
7911 char $ac_func();
7912
7913 int main() {
7914
7915 /* The GNU C library defines this for functions which it implements
7916     to always fail with ENOSYS.  Some functions are actually named
7917     something starting with __ and the normal name is an alias.  */
7918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7919 choke me
7920 #else
7921 $ac_func();
7922 #endif
7923
7924 ; return 0; }
7925 EOF
7926 if { (eval echo configure:7927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7927   rm -rf conftest*
7928   eval "ac_cv_func_$ac_func=yes"
7929 else
7930   echo "configure: failed program was:" >&5
7931   cat conftest.$ac_ext >&5
7932   rm -rf conftest*
7933   eval "ac_cv_func_$ac_func=no"
7934 fi
7935 rm -f conftest*
7936 fi
7937
7938 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7939   echo "$ac_t""yes" 1>&6
7940     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7941   cat >> confdefs.h <<EOF
7942 #define $ac_tr_func 1
7943 EOF
7944  \
7945     ac_XPG2funcs=yes
7946 else
7947   echo "$ac_t""no" 1>&6
7948 ac_XPG2funcs=no
7949 fi
7950 done
7951
7952   
7953     LIBS="$ac_save_LIBS"
7954
7955     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7956 echo "configure:7957: checking for XPG2 wchar_t support" >&5
7957     if test x"$ac_has_iconv_h" = xyes &&
7958        test x"$ac_has_langinfo_h" = xyes &&
7959        test x"$ac_XPG2funcs" = xyes; then
7960       ac_XPG2_wchar_t=yes
7961     else
7962       ac_XPG2_wchar_t=no
7963     fi
7964     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7965   
7966             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7967 echo "configure:7968: checking for enabled wchar_t specializations" >&5
7968     if test x"$ac_isoC99_wchar_t" = xyes &&
7969        test x"$ac_XPG2_wchar_t" = xyes; then
7970       cat >> confdefs.h <<\EOF
7971 #define _GLIBCPP_USE_WCHAR_T 1
7972 EOF
7973
7974       echo "$ac_t"""yes"" 1>&6
7975     else
7976       echo "$ac_t"""no"" 1>&6
7977     fi
7978   else
7979         echo "configure: warning: wchar_t support disabled." 1>&2
7980   fi
7981
7982       os_include_dir="os/mingw32"
7983       ;;
7984     *-windiss*)
7985       os_include_dir="os/windiss"
7986       ;;
7987     *-qnx6.[12]*)
7988       SECTION_FLAGS='-ffunction-sections -fdata-sections'
7989        
7990       
7991   # If we're not using GNU ld, then there's no point in even trying these
7992   # tests.  Check for that first.  We should have already tested for gld
7993   # by now (in libtool), but require it now just to be safe...
7994   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7995   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7996   
7997
7998   # The name set by libtool depends on the version of libtool.  Shame on us
7999   # for depending on an impl detail, but c'est la vie.  Older versions used
8000   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8001   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8002   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
8003   # set (hence we're using an older libtool), then set it.
8004   if test x${with_gnu_ld+set} != xset; then
8005     if test x${ac_cv_prog_gnu_ld+set} != xset; then
8006       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
8007       with_gnu_ld=no
8008     else
8009       with_gnu_ld=$ac_cv_prog_gnu_ld
8010     fi
8011   fi
8012
8013   # Start by getting the version number.  I think the libtool test already
8014   # does some of this, but throws away the result.
8015   
8016   ldver=`$LD --version 2>/dev/null | head -1 | \
8017          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8018   
8019   glibcpp_gnu_ld_version=`echo $ldver | \
8020          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8021
8022   # Set --gc-sections.
8023   if test "$with_gnu_ld" = "notbroken"; then
8024     # GNU ld it is!  Joy and bunny rabbits!
8025
8026     # All these tests are for C++; save the language and the compiler flags.
8027     # Need to do this so that g++ won't try to link in libstdc++
8028     ac_test_CFLAGS="${CFLAGS+set}"
8029     ac_save_CFLAGS="$CFLAGS"
8030     CFLAGS='-x c++  -Wl,--gc-sections'
8031
8032     # Check for -Wl,--gc-sections
8033     # XXX This test is broken at the moment, as symbols required for
8034     # linking are now in libsupc++ (not built yet.....). In addition, 
8035     # this test has cored on solaris in the past. In addition,
8036     # --gc-sections doesn't really work at the moment (keeps on discarding
8037     # used sections, first .eh_frame and now some of the glibc sections for
8038     # iconv). Bzzzzt. Thanks for playing, maybe next time.
8039     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8040 echo "configure:8041: checking for ld that supports -Wl,--gc-sections" >&5
8041     if test "$cross_compiling" = yes; then
8042   ac_sectionLDflags=yes
8043 else
8044   cat > conftest.$ac_ext <<EOF
8045 #line 8046 "configure"
8046 #include "confdefs.h"
8047
8048      int main(void) 
8049      {
8050        try { throw 1; }
8051        catch (...) { };
8052        return 0;
8053      }
8054     
8055 EOF
8056 if { (eval echo configure:8057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8057 then
8058   ac_sectionLDflags=yes
8059 else
8060   echo "configure: failed program was:" >&5
8061   cat conftest.$ac_ext >&5
8062   rm -fr conftest*
8063   ac_sectionLDflags=no
8064 fi
8065 rm -fr conftest*
8066 fi
8067
8068     if test "$ac_test_CFLAGS" = set; then
8069       CFLAGS="$ac_save_CFLAGS"
8070     else
8071       # this is the suspicious part
8072       CFLAGS=''
8073     fi
8074     if test "$ac_sectionLDflags" = "yes"; then
8075       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8076     fi
8077     echo "$ac_t""$ac_sectionLDflags" 1>&6
8078   fi
8079
8080   # Set linker optimization flags.
8081   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
8082     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8083   fi
8084
8085   
8086   
8087
8088       
8089     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8090 echo "configure:8091: checking for main in -lm" >&5
8091 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8092 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8093   echo $ac_n "(cached) $ac_c" 1>&6
8094 else
8095   ac_save_LIBS="$LIBS"
8096 LIBS="-lm  $LIBS"
8097 cat > conftest.$ac_ext <<EOF
8098 #line 8099 "configure"
8099 #include "confdefs.h"
8100
8101 int main() {
8102 main()
8103 ; return 0; }
8104 EOF
8105 if { (eval echo configure:8106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8106   rm -rf conftest*
8107   eval "ac_cv_lib_$ac_lib_var=yes"
8108 else
8109   echo "configure: failed program was:" >&5
8110   cat conftest.$ac_ext >&5
8111   rm -rf conftest*
8112   eval "ac_cv_lib_$ac_lib_var=no"
8113 fi
8114 rm -f conftest*
8115 LIBS="$ac_save_LIBS"
8116
8117 fi
8118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8119   echo "$ac_t""yes" 1>&6
8120     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8121     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8122   cat >> confdefs.h <<EOF
8123 #define $ac_tr_lib 1
8124 EOF
8125
8126   LIBS="-lm $LIBS"
8127
8128 else
8129   echo "$ac_t""no" 1>&6
8130 fi
8131
8132   for ac_func in nan copysignf
8133 do
8134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8135 echo "configure:8136: checking for $ac_func" >&5
8136 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8137   echo $ac_n "(cached) $ac_c" 1>&6
8138 else
8139   cat > conftest.$ac_ext <<EOF
8140 #line 8141 "configure"
8141 #include "confdefs.h"
8142 /* System header to define __stub macros and hopefully few prototypes,
8143     which can conflict with char $ac_func(); below.  */
8144 #include <assert.h>
8145 /* Override any gcc2 internal prototype to avoid an error.  */
8146 /* We use char because int might match the return type of a gcc2
8147     builtin and then its argument prototype would still apply.  */
8148 char $ac_func();
8149
8150 int main() {
8151
8152 /* The GNU C library defines this for functions which it implements
8153     to always fail with ENOSYS.  Some functions are actually named
8154     something starting with __ and the normal name is an alias.  */
8155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8156 choke me
8157 #else
8158 $ac_func();
8159 #endif
8160
8161 ; return 0; }
8162 EOF
8163 if { (eval echo configure:8164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8164   rm -rf conftest*
8165   eval "ac_cv_func_$ac_func=yes"
8166 else
8167   echo "configure: failed program was:" >&5
8168   cat conftest.$ac_ext >&5
8169   rm -rf conftest*
8170   eval "ac_cv_func_$ac_func=no"
8171 fi
8172 rm -f conftest*
8173 fi
8174
8175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8176   echo "$ac_t""yes" 1>&6
8177     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8178   cat >> confdefs.h <<EOF
8179 #define $ac_tr_func 1
8180 EOF
8181  
8182 else
8183   echo "$ac_t""no" 1>&6
8184 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8185 fi
8186 done
8187
8188
8189     for ac_func in __signbit
8190 do
8191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8192 echo "configure:8193: checking for $ac_func" >&5
8193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8194   echo $ac_n "(cached) $ac_c" 1>&6
8195 else
8196   cat > conftest.$ac_ext <<EOF
8197 #line 8198 "configure"
8198 #include "confdefs.h"
8199 /* System header to define __stub macros and hopefully few prototypes,
8200     which can conflict with char $ac_func(); below.  */
8201 #include <assert.h>
8202 /* Override any gcc2 internal prototype to avoid an error.  */
8203 /* We use char because int might match the return type of a gcc2
8204     builtin and then its argument prototype would still apply.  */
8205 char $ac_func();
8206
8207 int main() {
8208
8209 /* The GNU C library defines this for functions which it implements
8210     to always fail with ENOSYS.  Some functions are actually named
8211     something starting with __ and the normal name is an alias.  */
8212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8213 choke me
8214 #else
8215 $ac_func();
8216 #endif
8217
8218 ; return 0; }
8219 EOF
8220 if { (eval echo configure:8221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8221   rm -rf conftest*
8222   eval "ac_cv_func_$ac_func=yes"
8223 else
8224   echo "configure: failed program was:" >&5
8225   cat conftest.$ac_ext >&5
8226   rm -rf conftest*
8227   eval "ac_cv_func_$ac_func=no"
8228 fi
8229 rm -f conftest*
8230 fi
8231
8232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8233   echo "$ac_t""yes" 1>&6
8234     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8235   cat >> confdefs.h <<EOF
8236 #define $ac_tr_func 1
8237 EOF
8238  
8239 else
8240   echo "$ac_t""no" 1>&6
8241 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8242 fi
8243 done
8244
8245   for ac_func in __signbitf
8246 do
8247 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8248 echo "configure:8249: checking for $ac_func" >&5
8249 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8250   echo $ac_n "(cached) $ac_c" 1>&6
8251 else
8252   cat > conftest.$ac_ext <<EOF
8253 #line 8254 "configure"
8254 #include "confdefs.h"
8255 /* System header to define __stub macros and hopefully few prototypes,
8256     which can conflict with char $ac_func(); below.  */
8257 #include <assert.h>
8258 /* Override any gcc2 internal prototype to avoid an error.  */
8259 /* We use char because int might match the return type of a gcc2
8260     builtin and then its argument prototype would still apply.  */
8261 char $ac_func();
8262
8263 int main() {
8264
8265 /* The GNU C library defines this for functions which it implements
8266     to always fail with ENOSYS.  Some functions are actually named
8267     something starting with __ and the normal name is an alias.  */
8268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8269 choke me
8270 #else
8271 $ac_func();
8272 #endif
8273
8274 ; return 0; }
8275 EOF
8276 if { (eval echo configure:8277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8277   rm -rf conftest*
8278   eval "ac_cv_func_$ac_func=yes"
8279 else
8280   echo "configure: failed program was:" >&5
8281   cat conftest.$ac_ext >&5
8282   rm -rf conftest*
8283   eval "ac_cv_func_$ac_func=no"
8284 fi
8285 rm -f conftest*
8286 fi
8287
8288 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8289   echo "$ac_t""yes" 1>&6
8290     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8291   cat >> confdefs.h <<EOF
8292 #define $ac_tr_func 1
8293 EOF
8294  
8295 else
8296   echo "$ac_t""no" 1>&6
8297 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8298 fi
8299 done
8300
8301
8302           if test x$ac_cv_func_copysignl = x"yes"; then
8303     for ac_func in __signbitl
8304 do
8305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8306 echo "configure:8307: checking for $ac_func" >&5
8307 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8308   echo $ac_n "(cached) $ac_c" 1>&6
8309 else
8310   cat > conftest.$ac_ext <<EOF
8311 #line 8312 "configure"
8312 #include "confdefs.h"
8313 /* System header to define __stub macros and hopefully few prototypes,
8314     which can conflict with char $ac_func(); below.  */
8315 #include <assert.h>
8316 /* Override any gcc2 internal prototype to avoid an error.  */
8317 /* We use char because int might match the return type of a gcc2
8318     builtin and then its argument prototype would still apply.  */
8319 char $ac_func();
8320
8321 int main() {
8322
8323 /* The GNU C library defines this for functions which it implements
8324     to always fail with ENOSYS.  Some functions are actually named
8325     something starting with __ and the normal name is an alias.  */
8326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8327 choke me
8328 #else
8329 $ac_func();
8330 #endif
8331
8332 ; return 0; }
8333 EOF
8334 if { (eval echo configure:8335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8335   rm -rf conftest*
8336   eval "ac_cv_func_$ac_func=yes"
8337 else
8338   echo "configure: failed program was:" >&5
8339   cat conftest.$ac_ext >&5
8340   rm -rf conftest*
8341   eval "ac_cv_func_$ac_func=no"
8342 fi
8343 rm -f conftest*
8344 fi
8345
8346 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8347   echo "$ac_t""yes" 1>&6
8348     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8349   cat >> confdefs.h <<EOF
8350 #define $ac_tr_func 1
8351 EOF
8352  
8353 else
8354   echo "$ac_t""no" 1>&6
8355 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8356 fi
8357 done
8358
8359   fi
8360
8361   
8362
8363       
8364
8365       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8366 echo "configure:8367: checking for mbstate_t" >&5
8367   cat > conftest.$ac_ext <<EOF
8368 #line 8369 "configure"
8369 #include "confdefs.h"
8370 #include <wchar.h>
8371 int main() {
8372 mbstate_t teststate;
8373 ; return 0; }
8374 EOF
8375 if { (eval echo configure:8376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8376   rm -rf conftest*
8377   have_mbstate_t=yes
8378 else
8379   echo "configure: failed program was:" >&5
8380   cat conftest.$ac_ext >&5
8381   rm -rf conftest*
8382   have_mbstate_t=no
8383 fi
8384 rm -f conftest*
8385   echo "$ac_t""$have_mbstate_t" 1>&6
8386   if test x"$have_mbstate_t" = xyes; then
8387     cat >> confdefs.h <<\EOF
8388 #define HAVE_MBSTATE_T 1
8389 EOF
8390
8391   fi
8392
8393     for ac_hdr in wchar.h
8394 do
8395 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8396 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8397 echo "configure:8398: checking for $ac_hdr" >&5
8398 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8399   echo $ac_n "(cached) $ac_c" 1>&6
8400 else
8401   cat > conftest.$ac_ext <<EOF
8402 #line 8403 "configure"
8403 #include "confdefs.h"
8404 #include <$ac_hdr>
8405 EOF
8406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8407 { (eval echo configure:8408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8408 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8409 if test -z "$ac_err"; then
8410   rm -rf conftest*
8411   eval "ac_cv_header_$ac_safe=yes"
8412 else
8413   echo "$ac_err" >&5
8414   echo "configure: failed program was:" >&5
8415   cat conftest.$ac_ext >&5
8416   rm -rf conftest*
8417   eval "ac_cv_header_$ac_safe=no"
8418 fi
8419 rm -f conftest*
8420 fi
8421 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8422   echo "$ac_t""yes" 1>&6
8423     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8424   cat >> confdefs.h <<EOF
8425 #define $ac_tr_hdr 1
8426 EOF
8427  ac_has_wchar_h=yes
8428 else
8429   echo "$ac_t""no" 1>&6
8430 ac_has_wchar_h=no
8431 fi
8432 done
8433
8434   for ac_hdr in wctype.h
8435 do
8436 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8437 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8438 echo "configure:8439: checking for $ac_hdr" >&5
8439 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8440   echo $ac_n "(cached) $ac_c" 1>&6
8441 else
8442   cat > conftest.$ac_ext <<EOF
8443 #line 8444 "configure"
8444 #include "confdefs.h"
8445 #include <$ac_hdr>
8446 EOF
8447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8448 { (eval echo configure:8449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8450 if test -z "$ac_err"; then
8451   rm -rf conftest*
8452   eval "ac_cv_header_$ac_safe=yes"
8453 else
8454   echo "$ac_err" >&5
8455   echo "configure: failed program was:" >&5
8456   cat conftest.$ac_ext >&5
8457   rm -rf conftest*
8458   eval "ac_cv_header_$ac_safe=no"
8459 fi
8460 rm -f conftest*
8461 fi
8462 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8463   echo "$ac_t""yes" 1>&6
8464     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8465   cat >> confdefs.h <<EOF
8466 #define $ac_tr_hdr 1
8467 EOF
8468  ac_has_wctype_h=yes
8469 else
8470   echo "$ac_t""no" 1>&6
8471 ac_has_wctype_h=no
8472 fi
8473 done
8474
8475   
8476     if test x"$ac_has_wchar_h" = xyes &&
8477      test x"$ac_has_wctype_h" = xyes &&
8478      test x"$enable_c_mbchar" != xno; then
8479       
8480             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8481 echo "configure:8482: checking for WCHAR_MIN and WCHAR_MAX" >&5
8482     cat > conftest.$ac_ext <<EOF
8483 #line 8484 "configure"
8484 #include "confdefs.h"
8485 #include <wchar.h>
8486 int main() {
8487 int i = WCHAR_MIN; int j = WCHAR_MAX;
8488 ; return 0; }
8489 EOF
8490 if { (eval echo configure:8491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8491   rm -rf conftest*
8492   has_wchar_minmax=yes
8493 else
8494   echo "configure: failed program was:" >&5
8495   cat conftest.$ac_ext >&5
8496   rm -rf conftest*
8497   has_wchar_minmax=no
8498 fi
8499 rm -f conftest*
8500     echo "$ac_t""$has_wchar_minmax" 1>&6
8501     
8502             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8503 echo "configure:8504: checking for WEOF" >&5
8504     cat > conftest.$ac_ext <<EOF
8505 #line 8506 "configure"
8506 #include "confdefs.h"
8507
8508       #include <wchar.h>
8509       #include <stddef.h>
8510 int main() {
8511 wint_t i = WEOF;
8512 ; return 0; }
8513 EOF
8514 if { (eval echo configure:8515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8515   rm -rf conftest*
8516   has_weof=yes
8517 else
8518   echo "configure: failed program was:" >&5
8519   cat conftest.$ac_ext >&5
8520   rm -rf conftest*
8521   has_weof=no
8522 fi
8523 rm -f conftest*
8524     echo "$ac_t""$has_weof" 1>&6
8525   
8526         ac_wfuncs=yes
8527     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8528 do
8529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8530 echo "configure:8531: checking for $ac_func" >&5
8531 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8532   echo $ac_n "(cached) $ac_c" 1>&6
8533 else
8534   cat > conftest.$ac_ext <<EOF
8535 #line 8536 "configure"
8536 #include "confdefs.h"
8537 /* System header to define __stub macros and hopefully few prototypes,
8538     which can conflict with char $ac_func(); below.  */
8539 #include <assert.h>
8540 /* Override any gcc2 internal prototype to avoid an error.  */
8541 /* We use char because int might match the return type of a gcc2
8542     builtin and then its argument prototype would still apply.  */
8543 char $ac_func();
8544
8545 int main() {
8546
8547 /* The GNU C library defines this for functions which it implements
8548     to always fail with ENOSYS.  Some functions are actually named
8549     something starting with __ and the normal name is an alias.  */
8550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8551 choke me
8552 #else
8553 $ac_func();
8554 #endif
8555
8556 ; return 0; }
8557 EOF
8558 if { (eval echo configure:8559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8559   rm -rf conftest*
8560   eval "ac_cv_func_$ac_func=yes"
8561 else
8562   echo "configure: failed program was:" >&5
8563   cat conftest.$ac_ext >&5
8564   rm -rf conftest*
8565   eval "ac_cv_func_$ac_func=no"
8566 fi
8567 rm -f conftest*
8568 fi
8569
8570 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8571   echo "$ac_t""yes" 1>&6
8572     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8573   cat >> confdefs.h <<EOF
8574 #define $ac_tr_func 1
8575 EOF
8576  
8577 else
8578   echo "$ac_t""no" 1>&6
8579 \
8580     ac_wfuncs=no
8581 fi
8582 done
8583
8584   
8585         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
8586     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8587     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8588     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8589     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8590     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8591 do
8592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8593 echo "configure:8594: checking for $ac_func" >&5
8594 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8595   echo $ac_n "(cached) $ac_c" 1>&6
8596 else
8597   cat > conftest.$ac_ext <<EOF
8598 #line 8599 "configure"
8599 #include "confdefs.h"
8600 /* System header to define __stub macros and hopefully few prototypes,
8601     which can conflict with char $ac_func(); below.  */
8602 #include <assert.h>
8603 /* Override any gcc2 internal prototype to avoid an error.  */
8604 /* We use char because int might match the return type of a gcc2
8605     builtin and then its argument prototype would still apply.  */
8606 char $ac_func();
8607
8608 int main() {
8609
8610 /* The GNU C library defines this for functions which it implements
8611     to always fail with ENOSYS.  Some functions are actually named
8612     something starting with __ and the normal name is an alias.  */
8613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8614 choke me
8615 #else
8616 $ac_func();
8617 #endif
8618
8619 ; return 0; }
8620 EOF
8621 if { (eval echo configure:8622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8622   rm -rf conftest*
8623   eval "ac_cv_func_$ac_func=yes"
8624 else
8625   echo "configure: failed program was:" >&5
8626   cat conftest.$ac_ext >&5
8627   rm -rf conftest*
8628   eval "ac_cv_func_$ac_func=no"
8629 fi
8630 rm -f conftest*
8631 fi
8632
8633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8634   echo "$ac_t""yes" 1>&6
8635     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8636   cat >> confdefs.h <<EOF
8637 #define $ac_tr_func 1
8638 EOF
8639  
8640 else
8641   echo "$ac_t""no" 1>&6
8642 \
8643     ac_wfuncs=no
8644 fi
8645 done
8646
8647
8648     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8649 echo "configure:8650: checking for ISO C99 wchar_t support" >&5
8650     if test x"$has_weof" = xyes &&
8651        test x"$has_wchar_minmax" = xyes &&
8652        test x"$ac_wfuncs" = xyes; then
8653       ac_isoC99_wchar_t=yes
8654     else
8655       ac_isoC99_wchar_t=no
8656     fi
8657     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8658   
8659             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8660 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8661 echo "configure:8662: checking for iconv.h" >&5
8662 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8663   echo $ac_n "(cached) $ac_c" 1>&6
8664 else
8665   cat > conftest.$ac_ext <<EOF
8666 #line 8667 "configure"
8667 #include "confdefs.h"
8668 #include <iconv.h>
8669 EOF
8670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8671 { (eval echo configure:8672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8672 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8673 if test -z "$ac_err"; then
8674   rm -rf conftest*
8675   eval "ac_cv_header_$ac_safe=yes"
8676 else
8677   echo "$ac_err" >&5
8678   echo "configure: failed program was:" >&5
8679   cat conftest.$ac_ext >&5
8680   rm -rf conftest*
8681   eval "ac_cv_header_$ac_safe=no"
8682 fi
8683 rm -f conftest*
8684 fi
8685 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8686   echo "$ac_t""yes" 1>&6
8687   ac_has_iconv_h=yes
8688 else
8689   echo "$ac_t""no" 1>&6
8690 ac_has_iconv_h=no
8691 fi
8692
8693     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8694 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8695 echo "configure:8696: checking for langinfo.h" >&5
8696 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8697   echo $ac_n "(cached) $ac_c" 1>&6
8698 else
8699   cat > conftest.$ac_ext <<EOF
8700 #line 8701 "configure"
8701 #include "confdefs.h"
8702 #include <langinfo.h>
8703 EOF
8704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8705 { (eval echo configure:8706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8706 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8707 if test -z "$ac_err"; then
8708   rm -rf conftest*
8709   eval "ac_cv_header_$ac_safe=yes"
8710 else
8711   echo "$ac_err" >&5
8712   echo "configure: failed program was:" >&5
8713   cat conftest.$ac_ext >&5
8714   rm -rf conftest*
8715   eval "ac_cv_header_$ac_safe=no"
8716 fi
8717 rm -f conftest*
8718 fi
8719 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8720   echo "$ac_t""yes" 1>&6
8721   ac_has_langinfo_h=yes
8722 else
8723   echo "$ac_t""no" 1>&6
8724 ac_has_langinfo_h=no
8725 fi
8726
8727
8728         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8729 echo "configure:8730: checking for iconv in -liconv" >&5
8730 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8731 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8732   echo $ac_n "(cached) $ac_c" 1>&6
8733 else
8734   ac_save_LIBS="$LIBS"
8735 LIBS="-liconv  $LIBS"
8736 cat > conftest.$ac_ext <<EOF
8737 #line 8738 "configure"
8738 #include "confdefs.h"
8739 /* Override any gcc2 internal prototype to avoid an error.  */
8740 /* We use char because int might match the return type of a gcc2
8741     builtin and then its argument prototype would still apply.  */
8742 char iconv();
8743
8744 int main() {
8745 iconv()
8746 ; return 0; }
8747 EOF
8748 if { (eval echo configure:8749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8749   rm -rf conftest*
8750   eval "ac_cv_lib_$ac_lib_var=yes"
8751 else
8752   echo "configure: failed program was:" >&5
8753   cat conftest.$ac_ext >&5
8754   rm -rf conftest*
8755   eval "ac_cv_lib_$ac_lib_var=no"
8756 fi
8757 rm -f conftest*
8758 LIBS="$ac_save_LIBS"
8759
8760 fi
8761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8762   echo "$ac_t""yes" 1>&6
8763   libiconv="-liconv"
8764 else
8765   echo "$ac_t""no" 1>&6
8766 fi
8767
8768     ac_save_LIBS="$LIBS"
8769     LIBS="$LIBS $libiconv"
8770
8771     for ac_func in iconv_open iconv_close iconv nl_langinfo
8772 do
8773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8774 echo "configure:8775: checking for $ac_func" >&5
8775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8776   echo $ac_n "(cached) $ac_c" 1>&6
8777 else
8778   cat > conftest.$ac_ext <<EOF
8779 #line 8780 "configure"
8780 #include "confdefs.h"
8781 /* System header to define __stub macros and hopefully few prototypes,
8782     which can conflict with char $ac_func(); below.  */
8783 #include <assert.h>
8784 /* Override any gcc2 internal prototype to avoid an error.  */
8785 /* We use char because int might match the return type of a gcc2
8786     builtin and then its argument prototype would still apply.  */
8787 char $ac_func();
8788
8789 int main() {
8790
8791 /* The GNU C library defines this for functions which it implements
8792     to always fail with ENOSYS.  Some functions are actually named
8793     something starting with __ and the normal name is an alias.  */
8794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8795 choke me
8796 #else
8797 $ac_func();
8798 #endif
8799
8800 ; return 0; }
8801 EOF
8802 if { (eval echo configure:8803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8803   rm -rf conftest*
8804   eval "ac_cv_func_$ac_func=yes"
8805 else
8806   echo "configure: failed program was:" >&5
8807   cat conftest.$ac_ext >&5
8808   rm -rf conftest*
8809   eval "ac_cv_func_$ac_func=no"
8810 fi
8811 rm -f conftest*
8812 fi
8813
8814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8815   echo "$ac_t""yes" 1>&6
8816     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8817   cat >> confdefs.h <<EOF
8818 #define $ac_tr_func 1
8819 EOF
8820  \
8821     ac_XPG2funcs=yes
8822 else
8823   echo "$ac_t""no" 1>&6
8824 ac_XPG2funcs=no
8825 fi
8826 done
8827
8828   
8829     LIBS="$ac_save_LIBS"
8830
8831     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8832 echo "configure:8833: checking for XPG2 wchar_t support" >&5
8833     if test x"$ac_has_iconv_h" = xyes &&
8834        test x"$ac_has_langinfo_h" = xyes &&
8835        test x"$ac_XPG2funcs" = xyes; then
8836       ac_XPG2_wchar_t=yes
8837     else
8838       ac_XPG2_wchar_t=no
8839     fi
8840     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8841   
8842             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8843 echo "configure:8844: checking for enabled wchar_t specializations" >&5
8844     if test x"$ac_isoC99_wchar_t" = xyes &&
8845        test x"$ac_XPG2_wchar_t" = xyes; then
8846       cat >> confdefs.h <<\EOF
8847 #define _GLIBCPP_USE_WCHAR_T 1
8848 EOF
8849
8850       echo "$ac_t"""yes"" 1>&6
8851     else
8852       echo "$ac_t"""no"" 1>&6
8853     fi
8854   else
8855         echo "configure: warning: wchar_t support disabled." 1>&2
8856   fi
8857
8858       os_include_dir="os/qnx/qnx6.1"
8859       cat >> confdefs.h <<\EOF
8860 #define HAVE_COSF 1
8861 EOF
8862
8863       cat >> confdefs.h <<\EOF
8864 #define HAVE_COSL 1
8865 EOF
8866
8867       cat >> confdefs.h <<\EOF
8868 #define HAVE_COSHF 1
8869 EOF
8870
8871       cat >> confdefs.h <<\EOF
8872 #define HAVE_COSHL 1
8873 EOF
8874
8875       cat >> confdefs.h <<\EOF
8876 #define HAVE_LOGF 1
8877 EOF
8878
8879       cat >> confdefs.h <<\EOF
8880 #define HAVE_LOGL 1
8881 EOF
8882
8883       cat >> confdefs.h <<\EOF
8884 #define HAVE_LOG10F 1
8885 EOF
8886
8887       cat >> confdefs.h <<\EOF
8888 #define HAVE_LOG10L 1
8889 EOF
8890
8891       cat >> confdefs.h <<\EOF
8892 #define HAVE_SINF 1
8893 EOF
8894
8895       cat >> confdefs.h <<\EOF
8896 #define HAVE_SINL 1
8897 EOF
8898
8899       cat >> confdefs.h <<\EOF
8900 #define HAVE_SINHF 1
8901 EOF
8902
8903       cat >> confdefs.h <<\EOF
8904 #define HAVE_SINHL 1
8905 EOF
8906
8907       ;;
8908     *)
8909       os_include_dir="os/newlib"
8910       cat >> confdefs.h <<\EOF
8911 #define HAVE_HYPOT 1
8912 EOF
8913
8914       ;;
8915   esac
8916
8917   case "$target_alias" in
8918     *-mingw32*)
8919       ;;
8920     *-windiss*)
8921       cat >> confdefs.h <<\EOF
8922 #define HAVE_ACOSF 1
8923 EOF
8924
8925       cat >> confdefs.h <<\EOF
8926 #define HAVE_ASINF 1
8927 EOF
8928
8929       cat >> confdefs.h <<\EOF
8930 #define HAVE_ATAN2F 1
8931 EOF
8932
8933       cat >> confdefs.h <<\EOF
8934 #define HAVE_ATANF 1
8935 EOF
8936
8937       cat >> confdefs.h <<\EOF
8938 #define HAVE_CEILF 1
8939 EOF
8940
8941       cat >> confdefs.h <<\EOF
8942 #define HAVE_COPYSIGN 1
8943 EOF
8944
8945       cat >> confdefs.h <<\EOF
8946 #define HAVE_COPYSIGNF 1
8947 EOF
8948
8949       cat >> confdefs.h <<\EOF
8950 #define HAVE_COSF 1
8951 EOF
8952
8953       cat >> confdefs.h <<\EOF
8954 #define HAVE_COSHF 1
8955 EOF
8956
8957       cat >> confdefs.h <<\EOF
8958 #define HAVE_EXPF 1
8959 EOF
8960
8961       cat >> confdefs.h <<\EOF
8962 #define HAVE_FABSF 1
8963 EOF
8964
8965       cat >> confdefs.h <<\EOF
8966 #define HAVE_FLOORF 1
8967 EOF
8968
8969       cat >> confdefs.h <<\EOF
8970 #define HAVE_FMODF 1
8971 EOF
8972
8973       cat >> confdefs.h <<\EOF
8974 #define HAVE_FREXPF 1
8975 EOF
8976
8977       cat >> confdefs.h <<\EOF
8978 #define HAVE_LDEXPF 1
8979 EOF
8980
8981       cat >> confdefs.h <<\EOF
8982 #define HAVE_LOG10F 1
8983 EOF
8984
8985       cat >> confdefs.h <<\EOF
8986 #define HAVE_LOGF 1
8987 EOF
8988
8989       cat >> confdefs.h <<\EOF
8990 #define HAVE_MODFF 1
8991 EOF
8992
8993       cat >> confdefs.h <<\EOF
8994 #define HAVE_POWF 1
8995 EOF
8996
8997       cat >> confdefs.h <<\EOF
8998 #define HAVE_SINF 1
8999 EOF
9000
9001       cat >> confdefs.h <<\EOF
9002 #define HAVE_SINHF 1
9003 EOF
9004
9005       cat >> confdefs.h <<\EOF
9006 #define HAVE_SQRTF 1
9007 EOF
9008
9009       cat >> confdefs.h <<\EOF
9010 #define HAVE_TANF 1
9011 EOF
9012
9013       cat >> confdefs.h <<\EOF
9014 #define HAVE_TANHF 1
9015 EOF
9016
9017       ;;
9018     *)
9019       # GLIBCPP_CHECK_STDLIB_SUPPORT
9020       cat >> confdefs.h <<\EOF
9021 #define HAVE_STRTOF 1
9022 EOF
9023         
9024       cat >> confdefs.h <<\EOF
9025 #define HAVE_STRTOLD 1
9026 EOF
9027         
9028       # AC_FUNC_MMAP
9029       cat >> confdefs.h <<\EOF
9030 #define HAVE_MMAP 1
9031 EOF
9032
9033
9034       cat >> confdefs.h <<\EOF
9035 #define HAVE_ACOSF 1
9036 EOF
9037
9038       cat >> confdefs.h <<\EOF
9039 #define HAVE_ASINF 1
9040 EOF
9041
9042       cat >> confdefs.h <<\EOF
9043 #define HAVE_ATAN2F 1
9044 EOF
9045
9046       cat >> confdefs.h <<\EOF
9047 #define HAVE_ATANF 1
9048 EOF
9049
9050       cat >> confdefs.h <<\EOF
9051 #define HAVE_CEILF 1
9052 EOF
9053
9054       cat >> confdefs.h <<\EOF
9055 #define HAVE_COPYSIGN 1
9056 EOF
9057
9058       cat >> confdefs.h <<\EOF
9059 #define HAVE_COPYSIGNF 1
9060 EOF
9061
9062       cat >> confdefs.h <<\EOF
9063 #define HAVE_COSF 1
9064 EOF
9065
9066       cat >> confdefs.h <<\EOF
9067 #define HAVE_COSHF 1
9068 EOF
9069
9070       cat >> confdefs.h <<\EOF
9071 #define HAVE_EXPF 1
9072 EOF
9073
9074       cat >> confdefs.h <<\EOF
9075 #define HAVE_FABSF 1
9076 EOF
9077
9078       cat >> confdefs.h <<\EOF
9079 #define HAVE_FLOORF 1
9080 EOF
9081
9082       cat >> confdefs.h <<\EOF
9083 #define HAVE_FMODF 1
9084 EOF
9085
9086       cat >> confdefs.h <<\EOF
9087 #define HAVE_FREXPF 1
9088 EOF
9089
9090       cat >> confdefs.h <<\EOF
9091 #define HAVE_LDEXPF 1
9092 EOF
9093
9094       cat >> confdefs.h <<\EOF
9095 #define HAVE_LOG10F 1
9096 EOF
9097
9098       cat >> confdefs.h <<\EOF
9099 #define HAVE_LOGF 1
9100 EOF
9101
9102       cat >> confdefs.h <<\EOF
9103 #define HAVE_MODFF 1
9104 EOF
9105
9106       cat >> confdefs.h <<\EOF
9107 #define HAVE_POWF 1
9108 EOF
9109
9110       cat >> confdefs.h <<\EOF
9111 #define HAVE_SINF 1
9112 EOF
9113
9114       cat >> confdefs.h <<\EOF
9115 #define HAVE_SINHF 1
9116 EOF
9117
9118       cat >> confdefs.h <<\EOF
9119 #define HAVE_SQRTF 1
9120 EOF
9121
9122       cat >> confdefs.h <<\EOF
9123 #define HAVE_TANF 1
9124 EOF
9125
9126       cat >> confdefs.h <<\EOF
9127 #define HAVE_TANHF 1
9128 EOF
9129
9130       ;;
9131   esac
9132
9133   # At some point, we should differentiate between architectures
9134   # like x86, which have long double versions, and alpha/powerpc/etc.,
9135   # which don't. For the time being, punt.
9136   if test x"long_double_math_on_this_cpu" = x"yes"; then
9137     cat >> confdefs.h <<\EOF
9138 #define HAVE_ACOSL 1
9139 EOF
9140
9141     cat >> confdefs.h <<\EOF
9142 #define HAVE_ASINL 1
9143 EOF
9144
9145     cat >> confdefs.h <<\EOF
9146 #define HAVE_ATAN2L 1
9147 EOF
9148
9149     cat >> confdefs.h <<\EOF
9150 #define HAVE_ATANL 1
9151 EOF
9152
9153     cat >> confdefs.h <<\EOF
9154 #define HAVE_CEILL 1
9155 EOF
9156
9157     cat >> confdefs.h <<\EOF
9158 #define HAVE_COPYSIGNL 1
9159 EOF
9160
9161     cat >> confdefs.h <<\EOF
9162 #define HAVE_COSL 1
9163 EOF
9164
9165     cat >> confdefs.h <<\EOF
9166 #define HAVE_COSHL 1
9167 EOF
9168
9169     cat >> confdefs.h <<\EOF
9170 #define HAVE_EXPL 1
9171 EOF
9172
9173     cat >> confdefs.h <<\EOF
9174 #define HAVE_FABSL 1
9175 EOF
9176
9177     cat >> confdefs.h <<\EOF
9178 #define HAVE_FLOORL 1
9179 EOF
9180
9181     cat >> confdefs.h <<\EOF
9182 #define HAVE_FMODL 1
9183 EOF
9184
9185     cat >> confdefs.h <<\EOF
9186 #define HAVE_FREXPL 1
9187 EOF
9188
9189     cat >> confdefs.h <<\EOF
9190 #define HAVE_LDEXPL 1
9191 EOF
9192
9193     cat >> confdefs.h <<\EOF
9194 #define HAVE_LOG10L 1
9195 EOF
9196
9197     cat >> confdefs.h <<\EOF
9198 #define HAVE_LOGL 1
9199 EOF
9200
9201     cat >> confdefs.h <<\EOF
9202 #define HAVE_MODFL 1
9203 EOF
9204
9205     cat >> confdefs.h <<\EOF
9206 #define HAVE_POWL 1
9207 EOF
9208
9209     cat >> confdefs.h <<\EOF
9210 #define HAVE_SINCOSL 1
9211 EOF
9212
9213     cat >> confdefs.h <<\EOF
9214 #define HAVE_SINL 1
9215 EOF
9216
9217     cat >> confdefs.h <<\EOF
9218 #define HAVE_SINHL 1
9219 EOF
9220
9221     cat >> confdefs.h <<\EOF
9222 #define HAVE_SQRTL 1
9223 EOF
9224
9225     cat >> confdefs.h <<\EOF
9226 #define HAVE_TANL 1
9227 EOF
9228
9229     cat >> confdefs.h <<\EOF
9230 #define HAVE_TANHL 1
9231 EOF
9232
9233   fi
9234
9235 else
9236
9237   # We are being configured natively. We can do more elaborate tests
9238   # that include AC_TRY_COMPILE now, as the linker is assumed to be
9239   # working.
9240   GLIBCPP_IS_CROSS_COMPILING=0
9241   CANADIAN=no
9242
9243   # Check for available headers.
9244   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
9245   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h
9246 do
9247 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9248 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9249 echo "configure:9250: checking for $ac_hdr" >&5
9250 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9251   echo $ac_n "(cached) $ac_c" 1>&6
9252 else
9253   cat > conftest.$ac_ext <<EOF
9254 #line 9255 "configure"
9255 #include "confdefs.h"
9256 #include <$ac_hdr>
9257 EOF
9258 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9259 { (eval echo configure:9260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9260 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9261 if test -z "$ac_err"; then
9262   rm -rf conftest*
9263   eval "ac_cv_header_$ac_safe=yes"
9264 else
9265   echo "$ac_err" >&5
9266   echo "configure: failed program was:" >&5
9267   cat conftest.$ac_ext >&5
9268   rm -rf conftest*
9269   eval "ac_cv_header_$ac_safe=no"
9270 fi
9271 rm -f conftest*
9272 fi
9273 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9274   echo "$ac_t""yes" 1>&6
9275     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9276   cat >> confdefs.h <<EOF
9277 #define $ac_tr_hdr 1
9278 EOF
9279  
9280 else
9281   echo "$ac_t""no" 1>&6
9282 fi
9283 done
9284
9285
9286   
9287   # All these tests are for C++; save the language and the compiler flags.
9288   # The CXXFLAGS thing is suspicious, but based on similar bits previously
9289   # found in GLIBCPP_CONFIGURE.
9290   
9291   ac_ext=C
9292 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9293 ac_cpp='$CXXCPP $CPPFLAGS'
9294 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9295 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9296 cross_compiling=$ac_cv_prog_cxx_cross
9297
9298   ac_test_CXXFLAGS="${CXXFLAGS+set}"
9299   ac_save_CXXFLAGS="$CXXFLAGS"
9300
9301   # Check for maintainer-mode bits.
9302   if test x"$USE_MAINTAINER_MODE" = xno; then
9303     WERROR=''
9304   else
9305     WERROR='-Werror'
9306   fi
9307
9308   # Check for -ffunction-sections -fdata-sections
9309   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
9310 echo "configure:9311: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
9311   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
9312   cat > conftest.$ac_ext <<EOF
9313 #line 9314 "configure"
9314 #include "confdefs.h"
9315
9316 int main() {
9317 int foo;
9318   
9319 ; return 0; }
9320 EOF
9321 if { (eval echo configure:9322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9322   rm -rf conftest*
9323   ac_fdsections=yes
9324 else
9325   echo "configure: failed program was:" >&5
9326   cat conftest.$ac_ext >&5
9327   rm -rf conftest*
9328   ac_fdsections=no
9329 fi
9330 rm -f conftest*
9331   if test "$ac_test_CXXFLAGS" = set; then
9332     CXXFLAGS="$ac_save_CXXFLAGS"
9333   else
9334     # this is the suspicious part
9335     CXXFLAGS=''
9336   fi
9337   if test x"$ac_fdsections" = x"yes" &&
9338      test x"$enable_debug" = x"no"; then
9339     SECTION_FLAGS='-ffunction-sections -fdata-sections'
9340   fi
9341   echo "$ac_t""$ac_fdsections" 1>&6
9342
9343   ac_ext=c
9344 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9345 ac_cpp='$CPP $CPPFLAGS'
9346 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9347 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9348 cross_compiling=$ac_cv_prog_cc_cross
9349
9350   
9351   
9352
9353   
9354   # If we're not using GNU ld, then there's no point in even trying these
9355   # tests.  Check for that first.  We should have already tested for gld
9356   # by now (in libtool), but require it now just to be safe...
9357   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9358   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9359   
9360
9361   # The name set by libtool depends on the version of libtool.  Shame on us
9362   # for depending on an impl detail, but c'est la vie.  Older versions used
9363   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9364   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9365   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
9366   # set (hence we're using an older libtool), then set it.
9367   if test x${with_gnu_ld+set} != xset; then
9368     if test x${ac_cv_prog_gnu_ld+set} != xset; then
9369       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
9370       with_gnu_ld=no
9371     else
9372       with_gnu_ld=$ac_cv_prog_gnu_ld
9373     fi
9374   fi
9375
9376   # Start by getting the version number.  I think the libtool test already
9377   # does some of this, but throws away the result.
9378   
9379   ldver=`$LD --version 2>/dev/null | head -1 | \
9380          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9381   
9382   glibcpp_gnu_ld_version=`echo $ldver | \
9383          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9384
9385   # Set --gc-sections.
9386   if test "$with_gnu_ld" = "notbroken"; then
9387     # GNU ld it is!  Joy and bunny rabbits!
9388
9389     # All these tests are for C++; save the language and the compiler flags.
9390     # Need to do this so that g++ won't try to link in libstdc++
9391     ac_test_CFLAGS="${CFLAGS+set}"
9392     ac_save_CFLAGS="$CFLAGS"
9393     CFLAGS='-x c++  -Wl,--gc-sections'
9394
9395     # Check for -Wl,--gc-sections
9396     # XXX This test is broken at the moment, as symbols required for
9397     # linking are now in libsupc++ (not built yet.....). In addition, 
9398     # this test has cored on solaris in the past. In addition,
9399     # --gc-sections doesn't really work at the moment (keeps on discarding
9400     # used sections, first .eh_frame and now some of the glibc sections for
9401     # iconv). Bzzzzt. Thanks for playing, maybe next time.
9402     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9403 echo "configure:9404: checking for ld that supports -Wl,--gc-sections" >&5
9404     if test "$cross_compiling" = yes; then
9405   ac_sectionLDflags=yes
9406 else
9407   cat > conftest.$ac_ext <<EOF
9408 #line 9409 "configure"
9409 #include "confdefs.h"
9410
9411      int main(void) 
9412      {
9413        try { throw 1; }
9414        catch (...) { };
9415        return 0;
9416      }
9417     
9418 EOF
9419 if { (eval echo configure:9420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9420 then
9421   ac_sectionLDflags=yes
9422 else
9423   echo "configure: failed program was:" >&5
9424   cat conftest.$ac_ext >&5
9425   rm -fr conftest*
9426   ac_sectionLDflags=no
9427 fi
9428 rm -fr conftest*
9429 fi
9430
9431     if test "$ac_test_CFLAGS" = set; then
9432       CFLAGS="$ac_save_CFLAGS"
9433     else
9434       # this is the suspicious part
9435       CFLAGS=''
9436     fi
9437     if test "$ac_sectionLDflags" = "yes"; then
9438       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9439     fi
9440     echo "$ac_t""$ac_sectionLDflags" 1>&6
9441   fi
9442
9443   # Set linker optimization flags.
9444   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
9445     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9446   fi
9447
9448   
9449   
9450
9451   
9452       
9453   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
9454 echo "configure:9455: checking for __builtin_abs declaration" >&5
9455   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
9456     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
9457   echo $ac_n "(cached) $ac_c" 1>&6
9458 else
9459   
9460       
9461       ac_ext=C
9462 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9463 ac_cpp='$CXXCPP $CPPFLAGS'
9464 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9465 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9466 cross_compiling=$ac_cv_prog_cxx_cross
9467
9468       cat > conftest.$ac_ext <<EOF
9469 #line 9470 "configure"
9470 #include "confdefs.h"
9471 #include <math.h>
9472 int main() {
9473  __builtin_abs(0);
9474 ; return 0; }
9475 EOF
9476 if { (eval echo configure:9477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9477   rm -rf conftest*
9478   glibcpp_cv_func___builtin_abs_use=yes
9479 else
9480   echo "configure: failed program was:" >&5
9481   cat conftest.$ac_ext >&5
9482   rm -rf conftest*
9483   glibcpp_cv_func___builtin_abs_use=no
9484 fi
9485 rm -f conftest*
9486       ac_ext=c
9487 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9488 ac_cpp='$CPP $CPPFLAGS'
9489 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9490 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9491 cross_compiling=$ac_cv_prog_cc_cross
9492
9493     
9494 fi
9495
9496   fi
9497   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
9498   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
9499     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
9500 echo "configure:9501: checking for __builtin_abs linkage" >&5
9501     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
9502       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
9503   echo $ac_n "(cached) $ac_c" 1>&6
9504 else
9505   
9506         cat > conftest.$ac_ext <<EOF
9507 #line 9508 "configure"
9508 #include "confdefs.h"
9509 #include <math.h>
9510 int main() {
9511  __builtin_abs(0);
9512 ; return 0; }
9513 EOF
9514 if { (eval echo configure:9515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9515   rm -rf conftest*
9516   glibcpp_cv_func___builtin_abs_link=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_abs_link=no
9522 fi
9523 rm -f conftest*
9524       
9525 fi
9526
9527     fi
9528     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
9529     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
9530       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9531       cat >> confdefs.h <<EOF
9532 #define ${ac_tr_func} 1
9533 EOF
9534
9535     fi
9536   fi
9537
9538   
9539   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
9540 echo "configure:9541: checking for __builtin_fabsf declaration" >&5
9541   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
9542     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
9543   echo $ac_n "(cached) $ac_c" 1>&6
9544 else
9545   
9546       
9547       ac_ext=C
9548 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9549 ac_cpp='$CXXCPP $CPPFLAGS'
9550 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9551 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9552 cross_compiling=$ac_cv_prog_cxx_cross
9553
9554       cat > conftest.$ac_ext <<EOF
9555 #line 9556 "configure"
9556 #include "confdefs.h"
9557 #include <math.h>
9558 int main() {
9559  __builtin_fabsf(0);
9560 ; return 0; }
9561 EOF
9562 if { (eval echo configure:9563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9563   rm -rf conftest*
9564   glibcpp_cv_func___builtin_fabsf_use=yes
9565 else
9566   echo "configure: failed program was:" >&5
9567   cat conftest.$ac_ext >&5
9568   rm -rf conftest*
9569   glibcpp_cv_func___builtin_fabsf_use=no
9570 fi
9571 rm -f conftest*
9572       ac_ext=c
9573 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9574 ac_cpp='$CPP $CPPFLAGS'
9575 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9576 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9577 cross_compiling=$ac_cv_prog_cc_cross
9578
9579     
9580 fi
9581
9582   fi
9583   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
9584   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
9585     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
9586 echo "configure:9587: checking for __builtin_fabsf linkage" >&5
9587     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
9588       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
9589   echo $ac_n "(cached) $ac_c" 1>&6
9590 else
9591   
9592         cat > conftest.$ac_ext <<EOF
9593 #line 9594 "configure"
9594 #include "confdefs.h"
9595 #include <math.h>
9596 int main() {
9597  __builtin_fabsf(0);
9598 ; return 0; }
9599 EOF
9600 if { (eval echo configure:9601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9601   rm -rf conftest*
9602   glibcpp_cv_func___builtin_fabsf_link=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_fabsf_link=no
9608 fi
9609 rm -f conftest*
9610       
9611 fi
9612
9613     fi
9614     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
9615     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
9616       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9617       cat >> confdefs.h <<EOF
9618 #define ${ac_tr_func} 1
9619 EOF
9620
9621     fi
9622   fi
9623
9624   
9625   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
9626 echo "configure:9627: checking for __builtin_fabs declaration" >&5
9627   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
9628     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
9629   echo $ac_n "(cached) $ac_c" 1>&6
9630 else
9631   
9632       
9633       ac_ext=C
9634 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9635 ac_cpp='$CXXCPP $CPPFLAGS'
9636 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9637 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9638 cross_compiling=$ac_cv_prog_cxx_cross
9639
9640       cat > conftest.$ac_ext <<EOF
9641 #line 9642 "configure"
9642 #include "confdefs.h"
9643 #include <math.h>
9644 int main() {
9645  __builtin_fabs(0);
9646 ; return 0; }
9647 EOF
9648 if { (eval echo configure:9649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9649   rm -rf conftest*
9650   glibcpp_cv_func___builtin_fabs_use=yes
9651 else
9652   echo "configure: failed program was:" >&5
9653   cat conftest.$ac_ext >&5
9654   rm -rf conftest*
9655   glibcpp_cv_func___builtin_fabs_use=no
9656 fi
9657 rm -f conftest*
9658       ac_ext=c
9659 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9660 ac_cpp='$CPP $CPPFLAGS'
9661 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9662 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9663 cross_compiling=$ac_cv_prog_cc_cross
9664
9665     
9666 fi
9667
9668   fi
9669   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
9670   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
9671     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
9672 echo "configure:9673: checking for __builtin_fabs linkage" >&5
9673     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
9674       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
9675   echo $ac_n "(cached) $ac_c" 1>&6
9676 else
9677   
9678         cat > conftest.$ac_ext <<EOF
9679 #line 9680 "configure"
9680 #include "confdefs.h"
9681 #include <math.h>
9682 int main() {
9683  __builtin_fabs(0);
9684 ; return 0; }
9685 EOF
9686 if { (eval echo configure:9687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9687   rm -rf conftest*
9688   glibcpp_cv_func___builtin_fabs_link=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_fabs_link=no
9694 fi
9695 rm -f conftest*
9696       
9697 fi
9698
9699     fi
9700     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
9701     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
9702       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9703       cat >> confdefs.h <<EOF
9704 #define ${ac_tr_func} 1
9705 EOF
9706
9707     fi
9708   fi
9709
9710   
9711   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
9712 echo "configure:9713: checking for __builtin_fabsl declaration" >&5
9713   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
9714     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
9715   echo $ac_n "(cached) $ac_c" 1>&6
9716 else
9717   
9718       
9719       ac_ext=C
9720 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9721 ac_cpp='$CXXCPP $CPPFLAGS'
9722 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9723 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9724 cross_compiling=$ac_cv_prog_cxx_cross
9725
9726       cat > conftest.$ac_ext <<EOF
9727 #line 9728 "configure"
9728 #include "confdefs.h"
9729 #include <math.h>
9730 int main() {
9731  __builtin_fabsl(0);
9732 ; return 0; }
9733 EOF
9734 if { (eval echo configure:9735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9735   rm -rf conftest*
9736   glibcpp_cv_func___builtin_fabsl_use=yes
9737 else
9738   echo "configure: failed program was:" >&5
9739   cat conftest.$ac_ext >&5
9740   rm -rf conftest*
9741   glibcpp_cv_func___builtin_fabsl_use=no
9742 fi
9743 rm -f conftest*
9744       ac_ext=c
9745 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9746 ac_cpp='$CPP $CPPFLAGS'
9747 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9748 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9749 cross_compiling=$ac_cv_prog_cc_cross
9750
9751     
9752 fi
9753
9754   fi
9755   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
9756   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
9757     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
9758 echo "configure:9759: checking for __builtin_fabsl linkage" >&5
9759     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
9760       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
9761   echo $ac_n "(cached) $ac_c" 1>&6
9762 else
9763   
9764         cat > conftest.$ac_ext <<EOF
9765 #line 9766 "configure"
9766 #include "confdefs.h"
9767 #include <math.h>
9768 int main() {
9769  __builtin_fabsl(0);
9770 ; return 0; }
9771 EOF
9772 if { (eval echo configure:9773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9773   rm -rf conftest*
9774   glibcpp_cv_func___builtin_fabsl_link=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_fabsl_link=no
9780 fi
9781 rm -f conftest*
9782       
9783 fi
9784
9785     fi
9786     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
9787     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
9788       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9789       cat >> confdefs.h <<EOF
9790 #define ${ac_tr_func} 1
9791 EOF
9792
9793     fi
9794   fi
9795
9796   
9797   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
9798 echo "configure:9799: checking for __builtin_labs declaration" >&5
9799   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
9800     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
9801   echo $ac_n "(cached) $ac_c" 1>&6
9802 else
9803   
9804       
9805       ac_ext=C
9806 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9807 ac_cpp='$CXXCPP $CPPFLAGS'
9808 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9809 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9810 cross_compiling=$ac_cv_prog_cxx_cross
9811
9812       cat > conftest.$ac_ext <<EOF
9813 #line 9814 "configure"
9814 #include "confdefs.h"
9815 #include <math.h>
9816 int main() {
9817  __builtin_labs(0);
9818 ; return 0; }
9819 EOF
9820 if { (eval echo configure:9821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9821   rm -rf conftest*
9822   glibcpp_cv_func___builtin_labs_use=yes
9823 else
9824   echo "configure: failed program was:" >&5
9825   cat conftest.$ac_ext >&5
9826   rm -rf conftest*
9827   glibcpp_cv_func___builtin_labs_use=no
9828 fi
9829 rm -f conftest*
9830       ac_ext=c
9831 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9832 ac_cpp='$CPP $CPPFLAGS'
9833 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9834 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9835 cross_compiling=$ac_cv_prog_cc_cross
9836
9837     
9838 fi
9839
9840   fi
9841   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
9842   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
9843     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
9844 echo "configure:9845: checking for __builtin_labs linkage" >&5
9845     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
9846       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
9847   echo $ac_n "(cached) $ac_c" 1>&6
9848 else
9849   
9850         cat > conftest.$ac_ext <<EOF
9851 #line 9852 "configure"
9852 #include "confdefs.h"
9853 #include <math.h>
9854 int main() {
9855  __builtin_labs(0);
9856 ; return 0; }
9857 EOF
9858 if { (eval echo configure:9859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9859   rm -rf conftest*
9860   glibcpp_cv_func___builtin_labs_link=yes
9861 else
9862   echo "configure: failed program was:" >&5
9863   cat conftest.$ac_ext >&5
9864   rm -rf conftest*
9865   glibcpp_cv_func___builtin_labs_link=no
9866 fi
9867 rm -f conftest*
9868       
9869 fi
9870
9871     fi
9872     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
9873     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
9874       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9875       cat >> confdefs.h <<EOF
9876 #define ${ac_tr_func} 1
9877 EOF
9878
9879     fi
9880   fi
9881
9882
9883   
9884   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
9885 echo "configure:9886: checking for __builtin_sqrtf declaration" >&5
9886   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
9887     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
9888   echo $ac_n "(cached) $ac_c" 1>&6
9889 else
9890   
9891       
9892       ac_ext=C
9893 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9894 ac_cpp='$CXXCPP $CPPFLAGS'
9895 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9896 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9897 cross_compiling=$ac_cv_prog_cxx_cross
9898
9899       cat > conftest.$ac_ext <<EOF
9900 #line 9901 "configure"
9901 #include "confdefs.h"
9902 #include <math.h>
9903 int main() {
9904  __builtin_sqrtf(0);
9905 ; return 0; }
9906 EOF
9907 if { (eval echo configure:9908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9908   rm -rf conftest*
9909   glibcpp_cv_func___builtin_sqrtf_use=yes
9910 else
9911   echo "configure: failed program was:" >&5
9912   cat conftest.$ac_ext >&5
9913   rm -rf conftest*
9914   glibcpp_cv_func___builtin_sqrtf_use=no
9915 fi
9916 rm -f conftest*
9917       ac_ext=c
9918 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9919 ac_cpp='$CPP $CPPFLAGS'
9920 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9921 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9922 cross_compiling=$ac_cv_prog_cc_cross
9923
9924     
9925 fi
9926
9927   fi
9928   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
9929   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
9930     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
9931 echo "configure:9932: checking for __builtin_sqrtf linkage" >&5
9932     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
9933       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
9934   echo $ac_n "(cached) $ac_c" 1>&6
9935 else
9936   
9937         cat > conftest.$ac_ext <<EOF
9938 #line 9939 "configure"
9939 #include "confdefs.h"
9940 #include <math.h>
9941 int main() {
9942  __builtin_sqrtf(0);
9943 ; return 0; }
9944 EOF
9945 if { (eval echo configure:9946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9946   rm -rf conftest*
9947   glibcpp_cv_func___builtin_sqrtf_link=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_sqrtf_link=no
9953 fi
9954 rm -f conftest*
9955       
9956 fi
9957
9958     fi
9959     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
9960     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
9961       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9962       cat >> confdefs.h <<EOF
9963 #define ${ac_tr_func} 1
9964 EOF
9965
9966     fi
9967   fi
9968
9969   
9970   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
9971 echo "configure:9972: checking for __builtin_sqrt declaration" >&5
9972   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
9973     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
9974   echo $ac_n "(cached) $ac_c" 1>&6
9975 else
9976   
9977       
9978       ac_ext=C
9979 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9980 ac_cpp='$CXXCPP $CPPFLAGS'
9981 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9982 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9983 cross_compiling=$ac_cv_prog_cxx_cross
9984
9985       cat > conftest.$ac_ext <<EOF
9986 #line 9987 "configure"
9987 #include "confdefs.h"
9988 #include <math.h>
9989 int main() {
9990  __builtin_sqrt(0);
9991 ; return 0; }
9992 EOF
9993 if { (eval echo configure:9994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9994   rm -rf conftest*
9995   glibcpp_cv_func___builtin_sqrt_use=yes
9996 else
9997   echo "configure: failed program was:" >&5
9998   cat conftest.$ac_ext >&5
9999   rm -rf conftest*
10000   glibcpp_cv_func___builtin_sqrt_use=no
10001 fi
10002 rm -f conftest*
10003       ac_ext=c
10004 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10005 ac_cpp='$CPP $CPPFLAGS'
10006 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10007 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10008 cross_compiling=$ac_cv_prog_cc_cross
10009
10010     
10011 fi
10012
10013   fi
10014   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
10015   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
10016     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
10017 echo "configure:10018: checking for __builtin_sqrt linkage" >&5
10018     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
10019       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
10020   echo $ac_n "(cached) $ac_c" 1>&6
10021 else
10022   
10023         cat > conftest.$ac_ext <<EOF
10024 #line 10025 "configure"
10025 #include "confdefs.h"
10026 #include <math.h>
10027 int main() {
10028  __builtin_sqrt(0);
10029 ; return 0; }
10030 EOF
10031 if { (eval echo configure:10032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10032   rm -rf conftest*
10033   glibcpp_cv_func___builtin_sqrt_link=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_sqrt_link=no
10039 fi
10040 rm -f conftest*
10041       
10042 fi
10043
10044     fi
10045     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
10046     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
10047       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10048       cat >> confdefs.h <<EOF
10049 #define ${ac_tr_func} 1
10050 EOF
10051
10052     fi
10053   fi
10054
10055   
10056   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
10057 echo "configure:10058: checking for __builtin_sqrtl declaration" >&5
10058   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
10059     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
10060   echo $ac_n "(cached) $ac_c" 1>&6
10061 else
10062   
10063       
10064       ac_ext=C
10065 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10066 ac_cpp='$CXXCPP $CPPFLAGS'
10067 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10068 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10069 cross_compiling=$ac_cv_prog_cxx_cross
10070
10071       cat > conftest.$ac_ext <<EOF
10072 #line 10073 "configure"
10073 #include "confdefs.h"
10074 #include <math.h>
10075 int main() {
10076  __builtin_sqrtl(0);
10077 ; return 0; }
10078 EOF
10079 if { (eval echo configure:10080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10080   rm -rf conftest*
10081   glibcpp_cv_func___builtin_sqrtl_use=yes
10082 else
10083   echo "configure: failed program was:" >&5
10084   cat conftest.$ac_ext >&5
10085   rm -rf conftest*
10086   glibcpp_cv_func___builtin_sqrtl_use=no
10087 fi
10088 rm -f conftest*
10089       ac_ext=c
10090 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10091 ac_cpp='$CPP $CPPFLAGS'
10092 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10093 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10094 cross_compiling=$ac_cv_prog_cc_cross
10095
10096     
10097 fi
10098
10099   fi
10100   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
10101   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
10102     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
10103 echo "configure:10104: checking for __builtin_sqrtl linkage" >&5
10104     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
10105       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
10106   echo $ac_n "(cached) $ac_c" 1>&6
10107 else
10108   
10109         cat > conftest.$ac_ext <<EOF
10110 #line 10111 "configure"
10111 #include "confdefs.h"
10112 #include <math.h>
10113 int main() {
10114  __builtin_sqrtl(0);
10115 ; return 0; }
10116 EOF
10117 if { (eval echo configure:10118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10118   rm -rf conftest*
10119   glibcpp_cv_func___builtin_sqrtl_link=yes
10120 else
10121   echo "configure: failed program was:" >&5
10122   cat conftest.$ac_ext >&5
10123   rm -rf conftest*
10124   glibcpp_cv_func___builtin_sqrtl_link=no
10125 fi
10126 rm -f conftest*
10127       
10128 fi
10129
10130     fi
10131     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
10132     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
10133       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10134       cat >> confdefs.h <<EOF
10135 #define ${ac_tr_func} 1
10136 EOF
10137
10138     fi
10139   fi
10140
10141
10142   
10143   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
10144 echo "configure:10145: checking for __builtin_sinf declaration" >&5
10145   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
10146     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
10147   echo $ac_n "(cached) $ac_c" 1>&6
10148 else
10149   
10150       
10151       ac_ext=C
10152 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10153 ac_cpp='$CXXCPP $CPPFLAGS'
10154 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10155 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10156 cross_compiling=$ac_cv_prog_cxx_cross
10157
10158       cat > conftest.$ac_ext <<EOF
10159 #line 10160 "configure"
10160 #include "confdefs.h"
10161 #include <math.h>
10162 int main() {
10163  __builtin_sinf(0);
10164 ; return 0; }
10165 EOF
10166 if { (eval echo configure:10167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10167   rm -rf conftest*
10168   glibcpp_cv_func___builtin_sinf_use=yes
10169 else
10170   echo "configure: failed program was:" >&5
10171   cat conftest.$ac_ext >&5
10172   rm -rf conftest*
10173   glibcpp_cv_func___builtin_sinf_use=no
10174 fi
10175 rm -f conftest*
10176       ac_ext=c
10177 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10178 ac_cpp='$CPP $CPPFLAGS'
10179 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10180 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10181 cross_compiling=$ac_cv_prog_cc_cross
10182
10183     
10184 fi
10185
10186   fi
10187   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
10188   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
10189     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
10190 echo "configure:10191: checking for __builtin_sinf linkage" >&5
10191     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
10192       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
10193   echo $ac_n "(cached) $ac_c" 1>&6
10194 else
10195   
10196         cat > conftest.$ac_ext <<EOF
10197 #line 10198 "configure"
10198 #include "confdefs.h"
10199 #include <math.h>
10200 int main() {
10201  __builtin_sinf(0);
10202 ; return 0; }
10203 EOF
10204 if { (eval echo configure:10205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10205   rm -rf conftest*
10206   glibcpp_cv_func___builtin_sinf_link=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_sinf_link=no
10212 fi
10213 rm -f conftest*
10214       
10215 fi
10216
10217     fi
10218     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
10219     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
10220       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10221       cat >> confdefs.h <<EOF
10222 #define ${ac_tr_func} 1
10223 EOF
10224
10225     fi
10226   fi
10227
10228   
10229   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
10230 echo "configure:10231: checking for __builtin_sin declaration" >&5
10231   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
10232     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
10233   echo $ac_n "(cached) $ac_c" 1>&6
10234 else
10235   
10236       
10237       ac_ext=C
10238 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10239 ac_cpp='$CXXCPP $CPPFLAGS'
10240 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10241 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10242 cross_compiling=$ac_cv_prog_cxx_cross
10243
10244       cat > conftest.$ac_ext <<EOF
10245 #line 10246 "configure"
10246 #include "confdefs.h"
10247 #include <math.h>
10248 int main() {
10249  __builtin_sin(0);
10250 ; return 0; }
10251 EOF
10252 if { (eval echo configure:10253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10253   rm -rf conftest*
10254   glibcpp_cv_func___builtin_sin_use=yes
10255 else
10256   echo "configure: failed program was:" >&5
10257   cat conftest.$ac_ext >&5
10258   rm -rf conftest*
10259   glibcpp_cv_func___builtin_sin_use=no
10260 fi
10261 rm -f conftest*
10262       ac_ext=c
10263 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10264 ac_cpp='$CPP $CPPFLAGS'
10265 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10266 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10267 cross_compiling=$ac_cv_prog_cc_cross
10268
10269     
10270 fi
10271
10272   fi
10273   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
10274   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
10275     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
10276 echo "configure:10277: checking for __builtin_sin linkage" >&5
10277     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
10278       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
10279   echo $ac_n "(cached) $ac_c" 1>&6
10280 else
10281   
10282         cat > conftest.$ac_ext <<EOF
10283 #line 10284 "configure"
10284 #include "confdefs.h"
10285 #include <math.h>
10286 int main() {
10287  __builtin_sin(0);
10288 ; return 0; }
10289 EOF
10290 if { (eval echo configure:10291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10291   rm -rf conftest*
10292   glibcpp_cv_func___builtin_sin_link=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_sin_link=no
10298 fi
10299 rm -f conftest*
10300       
10301 fi
10302
10303     fi
10304     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
10305     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
10306       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10307       cat >> confdefs.h <<EOF
10308 #define ${ac_tr_func} 1
10309 EOF
10310
10311     fi
10312   fi
10313
10314   
10315   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
10316 echo "configure:10317: checking for __builtin_sinl declaration" >&5
10317   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
10318     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
10319   echo $ac_n "(cached) $ac_c" 1>&6
10320 else
10321   
10322       
10323       ac_ext=C
10324 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10325 ac_cpp='$CXXCPP $CPPFLAGS'
10326 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10327 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10328 cross_compiling=$ac_cv_prog_cxx_cross
10329
10330       cat > conftest.$ac_ext <<EOF
10331 #line 10332 "configure"
10332 #include "confdefs.h"
10333 #include <math.h>
10334 int main() {
10335  __builtin_sinl(0);
10336 ; return 0; }
10337 EOF
10338 if { (eval echo configure:10339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10339   rm -rf conftest*
10340   glibcpp_cv_func___builtin_sinl_use=yes
10341 else
10342   echo "configure: failed program was:" >&5
10343   cat conftest.$ac_ext >&5
10344   rm -rf conftest*
10345   glibcpp_cv_func___builtin_sinl_use=no
10346 fi
10347 rm -f conftest*
10348       ac_ext=c
10349 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10350 ac_cpp='$CPP $CPPFLAGS'
10351 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10352 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10353 cross_compiling=$ac_cv_prog_cc_cross
10354
10355     
10356 fi
10357
10358   fi
10359   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
10360   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
10361     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
10362 echo "configure:10363: checking for __builtin_sinl linkage" >&5
10363     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
10364       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
10365   echo $ac_n "(cached) $ac_c" 1>&6
10366 else
10367   
10368         cat > conftest.$ac_ext <<EOF
10369 #line 10370 "configure"
10370 #include "confdefs.h"
10371 #include <math.h>
10372 int main() {
10373  __builtin_sinl(0);
10374 ; return 0; }
10375 EOF
10376 if { (eval echo configure:10377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10377   rm -rf conftest*
10378   glibcpp_cv_func___builtin_sinl_link=yes
10379 else
10380   echo "configure: failed program was:" >&5
10381   cat conftest.$ac_ext >&5
10382   rm -rf conftest*
10383   glibcpp_cv_func___builtin_sinl_link=no
10384 fi
10385 rm -f conftest*
10386       
10387 fi
10388
10389     fi
10390     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
10391     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
10392       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10393       cat >> confdefs.h <<EOF
10394 #define ${ac_tr_func} 1
10395 EOF
10396
10397     fi
10398   fi
10399
10400
10401   
10402   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
10403 echo "configure:10404: checking for __builtin_cosf declaration" >&5
10404   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
10405     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
10406   echo $ac_n "(cached) $ac_c" 1>&6
10407 else
10408   
10409       
10410       ac_ext=C
10411 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10412 ac_cpp='$CXXCPP $CPPFLAGS'
10413 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10414 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10415 cross_compiling=$ac_cv_prog_cxx_cross
10416
10417       cat > conftest.$ac_ext <<EOF
10418 #line 10419 "configure"
10419 #include "confdefs.h"
10420 #include <math.h>
10421 int main() {
10422  __builtin_cosf(0);
10423 ; return 0; }
10424 EOF
10425 if { (eval echo configure:10426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10426   rm -rf conftest*
10427   glibcpp_cv_func___builtin_cosf_use=yes
10428 else
10429   echo "configure: failed program was:" >&5
10430   cat conftest.$ac_ext >&5
10431   rm -rf conftest*
10432   glibcpp_cv_func___builtin_cosf_use=no
10433 fi
10434 rm -f conftest*
10435       ac_ext=c
10436 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10437 ac_cpp='$CPP $CPPFLAGS'
10438 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10439 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10440 cross_compiling=$ac_cv_prog_cc_cross
10441
10442     
10443 fi
10444
10445   fi
10446   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
10447   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
10448     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
10449 echo "configure:10450: checking for __builtin_cosf linkage" >&5
10450     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
10451       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
10452   echo $ac_n "(cached) $ac_c" 1>&6
10453 else
10454   
10455         cat > conftest.$ac_ext <<EOF
10456 #line 10457 "configure"
10457 #include "confdefs.h"
10458 #include <math.h>
10459 int main() {
10460  __builtin_cosf(0);
10461 ; return 0; }
10462 EOF
10463 if { (eval echo configure:10464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10464   rm -rf conftest*
10465   glibcpp_cv_func___builtin_cosf_link=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_cosf_link=no
10471 fi
10472 rm -f conftest*
10473       
10474 fi
10475
10476     fi
10477     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
10478     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
10479       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10480       cat >> confdefs.h <<EOF
10481 #define ${ac_tr_func} 1
10482 EOF
10483
10484     fi
10485   fi
10486
10487   
10488   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
10489 echo "configure:10490: checking for __builtin_cos declaration" >&5
10490   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
10491     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
10492   echo $ac_n "(cached) $ac_c" 1>&6
10493 else
10494   
10495       
10496       ac_ext=C
10497 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10498 ac_cpp='$CXXCPP $CPPFLAGS'
10499 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10500 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10501 cross_compiling=$ac_cv_prog_cxx_cross
10502
10503       cat > conftest.$ac_ext <<EOF
10504 #line 10505 "configure"
10505 #include "confdefs.h"
10506 #include <math.h>
10507 int main() {
10508  __builtin_cos(0);
10509 ; return 0; }
10510 EOF
10511 if { (eval echo configure:10512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10512   rm -rf conftest*
10513   glibcpp_cv_func___builtin_cos_use=yes
10514 else
10515   echo "configure: failed program was:" >&5
10516   cat conftest.$ac_ext >&5
10517   rm -rf conftest*
10518   glibcpp_cv_func___builtin_cos_use=no
10519 fi
10520 rm -f conftest*
10521       ac_ext=c
10522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10523 ac_cpp='$CPP $CPPFLAGS'
10524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10525 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10526 cross_compiling=$ac_cv_prog_cc_cross
10527
10528     
10529 fi
10530
10531   fi
10532   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
10533   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
10534     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
10535 echo "configure:10536: checking for __builtin_cos linkage" >&5
10536     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
10537       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
10538   echo $ac_n "(cached) $ac_c" 1>&6
10539 else
10540   
10541         cat > conftest.$ac_ext <<EOF
10542 #line 10543 "configure"
10543 #include "confdefs.h"
10544 #include <math.h>
10545 int main() {
10546  __builtin_cos(0);
10547 ; return 0; }
10548 EOF
10549 if { (eval echo configure:10550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10550   rm -rf conftest*
10551   glibcpp_cv_func___builtin_cos_link=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_cos_link=no
10557 fi
10558 rm -f conftest*
10559       
10560 fi
10561
10562     fi
10563     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
10564     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
10565       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10566       cat >> confdefs.h <<EOF
10567 #define ${ac_tr_func} 1
10568 EOF
10569
10570     fi
10571   fi
10572
10573   
10574   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
10575 echo "configure:10576: checking for __builtin_cosl declaration" >&5
10576   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
10577     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
10578   echo $ac_n "(cached) $ac_c" 1>&6
10579 else
10580   
10581       
10582       ac_ext=C
10583 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10584 ac_cpp='$CXXCPP $CPPFLAGS'
10585 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10586 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10587 cross_compiling=$ac_cv_prog_cxx_cross
10588
10589       cat > conftest.$ac_ext <<EOF
10590 #line 10591 "configure"
10591 #include "confdefs.h"
10592 #include <math.h>
10593 int main() {
10594  __builtin_cosl(0);
10595 ; return 0; }
10596 EOF
10597 if { (eval echo configure:10598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10598   rm -rf conftest*
10599   glibcpp_cv_func___builtin_cosl_use=yes
10600 else
10601   echo "configure: failed program was:" >&5
10602   cat conftest.$ac_ext >&5
10603   rm -rf conftest*
10604   glibcpp_cv_func___builtin_cosl_use=no
10605 fi
10606 rm -f conftest*
10607       ac_ext=c
10608 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10609 ac_cpp='$CPP $CPPFLAGS'
10610 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10611 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10612 cross_compiling=$ac_cv_prog_cc_cross
10613
10614     
10615 fi
10616
10617   fi
10618   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
10619   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
10620     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
10621 echo "configure:10622: checking for __builtin_cosl linkage" >&5
10622     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
10623       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
10624   echo $ac_n "(cached) $ac_c" 1>&6
10625 else
10626   
10627         cat > conftest.$ac_ext <<EOF
10628 #line 10629 "configure"
10629 #include "confdefs.h"
10630 #include <math.h>
10631 int main() {
10632  __builtin_cosl(0);
10633 ; return 0; }
10634 EOF
10635 if { (eval echo configure:10636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10636   rm -rf conftest*
10637   glibcpp_cv_func___builtin_cosl_link=yes
10638 else
10639   echo "configure: failed program was:" >&5
10640   cat conftest.$ac_ext >&5
10641   rm -rf conftest*
10642   glibcpp_cv_func___builtin_cosl_link=no
10643 fi
10644 rm -f conftest*
10645       
10646 fi
10647
10648     fi
10649     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
10650     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
10651       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10652       cat >> confdefs.h <<EOF
10653 #define ${ac_tr_func} 1
10654 EOF
10655
10656     fi
10657   fi
10658
10659
10660               dummyvar=no
10661   if test x$dummyvar = x"yes"; then
10662     cat >> confdefs.h <<\EOF
10663 #define HAVE___BUILTIN_ABS 1
10664 EOF
10665
10666     cat >> confdefs.h <<\EOF
10667 #define HAVE___BUILTIN_LABS 1
10668 EOF
10669
10670     cat >> confdefs.h <<\EOF
10671 #define HAVE___BUILTIN_COS 1
10672 EOF
10673
10674     cat >> confdefs.h <<\EOF
10675 #define HAVE___BUILTIN_COSF 1
10676 EOF
10677
10678     cat >> confdefs.h <<\EOF
10679 #define HAVE___BUILTIN_COSL 1
10680 EOF
10681
10682     cat >> confdefs.h <<\EOF
10683 #define HAVE___BUILTIN_FABS 1
10684 EOF
10685
10686     cat >> confdefs.h <<\EOF
10687 #define HAVE___BUILTIN_FABSF 1
10688 EOF
10689
10690     cat >> confdefs.h <<\EOF
10691 #define HAVE___BUILTIN_FABSL 1
10692 EOF
10693
10694     cat >> confdefs.h <<\EOF
10695 #define HAVE___BUILTIN_SIN 1
10696 EOF
10697
10698     cat >> confdefs.h <<\EOF
10699 #define HAVE___BUILTIN_SINF 1
10700 EOF
10701
10702     cat >> confdefs.h <<\EOF
10703 #define HAVE___BUILTIN_SINL 1
10704 EOF
10705
10706     cat >> confdefs.h <<\EOF
10707 #define HAVE___BUILTIN_SQRT 1
10708 EOF
10709
10710     cat >> confdefs.h <<\EOF
10711 #define HAVE___BUILTIN_SQRTF 1
10712 EOF
10713
10714     cat >> confdefs.h <<\EOF
10715 #define HAVE___BUILTIN_SQRTL 1
10716 EOF
10717
10718   fi
10719
10720   
10721   ac_test_CXXFLAGS="${CXXFLAGS+set}"
10722   ac_save_CXXFLAGS="$CXXFLAGS"
10723   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
10724
10725     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10726 echo "configure:10727: checking for sin in -lm" >&5
10727 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10728 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10729   echo $ac_n "(cached) $ac_c" 1>&6
10730 else
10731   ac_save_LIBS="$LIBS"
10732 LIBS="-lm  $LIBS"
10733 cat > conftest.$ac_ext <<EOF
10734 #line 10735 "configure"
10735 #include "confdefs.h"
10736 /* Override any gcc2 internal prototype to avoid an error.  */
10737 /* We use char because int might match the return type of a gcc2
10738     builtin and then its argument prototype would still apply.  */
10739 char sin();
10740
10741 int main() {
10742 sin()
10743 ; return 0; }
10744 EOF
10745 if { (eval echo configure:10746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10746   rm -rf conftest*
10747   eval "ac_cv_lib_$ac_lib_var=yes"
10748 else
10749   echo "configure: failed program was:" >&5
10750   cat conftest.$ac_ext >&5
10751   rm -rf conftest*
10752   eval "ac_cv_lib_$ac_lib_var=no"
10753 fi
10754 rm -f conftest*
10755 LIBS="$ac_save_LIBS"
10756
10757 fi
10758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10759   echo "$ac_t""yes" 1>&6
10760   libm="-lm"
10761 else
10762   echo "$ac_t""no" 1>&6
10763 fi
10764
10765   ac_save_LIBS="$LIBS"
10766   LIBS="$LIBS $libm"
10767
10768     
10769   
10770   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10771 echo "configure:10772: checking for isinf declaration" >&5
10772   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
10773     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
10774   echo $ac_n "(cached) $ac_c" 1>&6
10775 else
10776   
10777       
10778       ac_ext=C
10779 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10780 ac_cpp='$CXXCPP $CPPFLAGS'
10781 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10782 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10783 cross_compiling=$ac_cv_prog_cxx_cross
10784
10785       cat > conftest.$ac_ext <<EOF
10786 #line 10787 "configure"
10787 #include "confdefs.h"
10788 #include <math.h>
10789                       #ifdef HAVE_IEEEFP_H
10790                       #include <ieeefp.h>
10791                       #endif
10792                      
10793 int main() {
10794  isinf(0);
10795 ; return 0; }
10796 EOF
10797 if { (eval echo configure:10798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10798   rm -rf conftest*
10799   glibcpp_cv_func_isinf_use=yes
10800 else
10801   echo "configure: failed program was:" >&5
10802   cat conftest.$ac_ext >&5
10803   rm -rf conftest*
10804   glibcpp_cv_func_isinf_use=no
10805 fi
10806 rm -f conftest*
10807       ac_ext=c
10808 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10809 ac_cpp='$CPP $CPPFLAGS'
10810 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10811 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10812 cross_compiling=$ac_cv_prog_cc_cross
10813
10814     
10815 fi
10816
10817   fi
10818   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
10819
10820   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
10821     for ac_func in isinf
10822 do
10823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10824 echo "configure:10825: checking for $ac_func" >&5
10825 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10826   echo $ac_n "(cached) $ac_c" 1>&6
10827 else
10828   cat > conftest.$ac_ext <<EOF
10829 #line 10830 "configure"
10830 #include "confdefs.h"
10831 /* System header to define __stub macros and hopefully few prototypes,
10832     which can conflict with char $ac_func(); below.  */
10833 #include <assert.h>
10834 /* Override any gcc2 internal prototype to avoid an error.  */
10835 /* We use char because int might match the return type of a gcc2
10836     builtin and then its argument prototype would still apply.  */
10837 char $ac_func();
10838
10839 int main() {
10840
10841 /* The GNU C library defines this for functions which it implements
10842     to always fail with ENOSYS.  Some functions are actually named
10843     something starting with __ and the normal name is an alias.  */
10844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10845 choke me
10846 #else
10847 $ac_func();
10848 #endif
10849
10850 ; return 0; }
10851 EOF
10852 if { (eval echo configure:10853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10853   rm -rf conftest*
10854   eval "ac_cv_func_$ac_func=yes"
10855 else
10856   echo "configure: failed program was:" >&5
10857   cat conftest.$ac_ext >&5
10858   rm -rf conftest*
10859   eval "ac_cv_func_$ac_func=no"
10860 fi
10861 rm -f conftest*
10862 fi
10863
10864 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10865   echo "$ac_t""yes" 1>&6
10866     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10867   cat >> confdefs.h <<EOF
10868 #define $ac_tr_func 1
10869 EOF
10870  
10871 else
10872   echo "$ac_t""no" 1>&6
10873 fi
10874 done
10875     
10876   else
10877     
10878   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
10879 echo "configure:10880: checking for _isinf declaration" >&5
10880   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
10881     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
10882   echo $ac_n "(cached) $ac_c" 1>&6
10883 else
10884   
10885       
10886       ac_ext=C
10887 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10888 ac_cpp='$CXXCPP $CPPFLAGS'
10889 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10890 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10891 cross_compiling=$ac_cv_prog_cxx_cross
10892
10893       cat > conftest.$ac_ext <<EOF
10894 #line 10895 "configure"
10895 #include "confdefs.h"
10896 #include <math.h>
10897                       #ifdef HAVE_IEEEFP_H
10898                       #include <ieeefp.h>
10899                       #endif
10900                      
10901 int main() {
10902  _isinf(0);
10903 ; return 0; }
10904 EOF
10905 if { (eval echo configure:10906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10906   rm -rf conftest*
10907   glibcpp_cv_func__isinf_use=yes
10908 else
10909   echo "configure: failed program was:" >&5
10910   cat conftest.$ac_ext >&5
10911   rm -rf conftest*
10912   glibcpp_cv_func__isinf_use=no
10913 fi
10914 rm -f conftest*
10915       ac_ext=c
10916 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10917 ac_cpp='$CPP $CPPFLAGS'
10918 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10919 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10920 cross_compiling=$ac_cv_prog_cc_cross
10921
10922     
10923 fi
10924
10925   fi
10926   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
10927
10928     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
10929       for ac_func in _isinf
10930 do
10931 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10932 echo "configure:10933: checking for $ac_func" >&5
10933 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10934   echo $ac_n "(cached) $ac_c" 1>&6
10935 else
10936   cat > conftest.$ac_ext <<EOF
10937 #line 10938 "configure"
10938 #include "confdefs.h"
10939 /* System header to define __stub macros and hopefully few prototypes,
10940     which can conflict with char $ac_func(); below.  */
10941 #include <assert.h>
10942 /* Override any gcc2 internal prototype to avoid an error.  */
10943 /* We use char because int might match the return type of a gcc2
10944     builtin and then its argument prototype would still apply.  */
10945 char $ac_func();
10946
10947 int main() {
10948
10949 /* The GNU C library defines this for functions which it implements
10950     to always fail with ENOSYS.  Some functions are actually named
10951     something starting with __ and the normal name is an alias.  */
10952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10953 choke me
10954 #else
10955 $ac_func();
10956 #endif
10957
10958 ; return 0; }
10959 EOF
10960 if { (eval echo configure:10961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10961   rm -rf conftest*
10962   eval "ac_cv_func_$ac_func=yes"
10963 else
10964   echo "configure: failed program was:" >&5
10965   cat conftest.$ac_ext >&5
10966   rm -rf conftest*
10967   eval "ac_cv_func_$ac_func=no"
10968 fi
10969 rm -f conftest*
10970 fi
10971
10972 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10973   echo "$ac_t""yes" 1>&6
10974     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10975   cat >> confdefs.h <<EOF
10976 #define $ac_tr_func 1
10977 EOF
10978  
10979 else
10980   echo "$ac_t""no" 1>&6
10981 fi
10982 done
10983     
10984     fi
10985   fi
10986
10987   
10988   
10989   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
10990 echo "configure:10991: checking for isnan declaration" >&5
10991   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
10992     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
10993   echo $ac_n "(cached) $ac_c" 1>&6
10994 else
10995   
10996       
10997       ac_ext=C
10998 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10999 ac_cpp='$CXXCPP $CPPFLAGS'
11000 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11001 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11002 cross_compiling=$ac_cv_prog_cxx_cross
11003
11004       cat > conftest.$ac_ext <<EOF
11005 #line 11006 "configure"
11006 #include "confdefs.h"
11007 #include <math.h>
11008                       #ifdef HAVE_IEEEFP_H
11009                       #include <ieeefp.h>
11010                       #endif
11011                      
11012 int main() {
11013  isnan(0);
11014 ; return 0; }
11015 EOF
11016 if { (eval echo configure:11017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11017   rm -rf conftest*
11018   glibcpp_cv_func_isnan_use=yes
11019 else
11020   echo "configure: failed program was:" >&5
11021   cat conftest.$ac_ext >&5
11022   rm -rf conftest*
11023   glibcpp_cv_func_isnan_use=no
11024 fi
11025 rm -f conftest*
11026       ac_ext=c
11027 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11028 ac_cpp='$CPP $CPPFLAGS'
11029 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11030 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11031 cross_compiling=$ac_cv_prog_cc_cross
11032
11033     
11034 fi
11035
11036   fi
11037   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
11038
11039   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
11040     for ac_func in isnan
11041 do
11042 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11043 echo "configure:11044: checking for $ac_func" >&5
11044 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11045   echo $ac_n "(cached) $ac_c" 1>&6
11046 else
11047   cat > conftest.$ac_ext <<EOF
11048 #line 11049 "configure"
11049 #include "confdefs.h"
11050 /* System header to define __stub macros and hopefully few prototypes,
11051     which can conflict with char $ac_func(); below.  */
11052 #include <assert.h>
11053 /* Override any gcc2 internal prototype to avoid an error.  */
11054 /* We use char because int might match the return type of a gcc2
11055     builtin and then its argument prototype would still apply.  */
11056 char $ac_func();
11057
11058 int main() {
11059
11060 /* The GNU C library defines this for functions which it implements
11061     to always fail with ENOSYS.  Some functions are actually named
11062     something starting with __ and the normal name is an alias.  */
11063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11064 choke me
11065 #else
11066 $ac_func();
11067 #endif
11068
11069 ; return 0; }
11070 EOF
11071 if { (eval echo configure:11072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11072   rm -rf conftest*
11073   eval "ac_cv_func_$ac_func=yes"
11074 else
11075   echo "configure: failed program was:" >&5
11076   cat conftest.$ac_ext >&5
11077   rm -rf conftest*
11078   eval "ac_cv_func_$ac_func=no"
11079 fi
11080 rm -f conftest*
11081 fi
11082
11083 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11084   echo "$ac_t""yes" 1>&6
11085     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11086   cat >> confdefs.h <<EOF
11087 #define $ac_tr_func 1
11088 EOF
11089  
11090 else
11091   echo "$ac_t""no" 1>&6
11092 fi
11093 done
11094     
11095   else
11096     
11097   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11098 echo "configure:11099: checking for _isnan declaration" >&5
11099   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
11100     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
11101   echo $ac_n "(cached) $ac_c" 1>&6
11102 else
11103   
11104       
11105       ac_ext=C
11106 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11107 ac_cpp='$CXXCPP $CPPFLAGS'
11108 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11109 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11110 cross_compiling=$ac_cv_prog_cxx_cross
11111
11112       cat > conftest.$ac_ext <<EOF
11113 #line 11114 "configure"
11114 #include "confdefs.h"
11115 #include <math.h>
11116                       #ifdef HAVE_IEEEFP_H
11117                       #include <ieeefp.h>
11118                       #endif
11119                      
11120 int main() {
11121  _isnan(0);
11122 ; return 0; }
11123 EOF
11124 if { (eval echo configure:11125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11125   rm -rf conftest*
11126   glibcpp_cv_func__isnan_use=yes
11127 else
11128   echo "configure: failed program was:" >&5
11129   cat conftest.$ac_ext >&5
11130   rm -rf conftest*
11131   glibcpp_cv_func__isnan_use=no
11132 fi
11133 rm -f conftest*
11134       ac_ext=c
11135 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11136 ac_cpp='$CPP $CPPFLAGS'
11137 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11138 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11139 cross_compiling=$ac_cv_prog_cc_cross
11140
11141     
11142 fi
11143
11144   fi
11145   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
11146
11147     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
11148       for ac_func in _isnan
11149 do
11150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11151 echo "configure:11152: checking for $ac_func" >&5
11152 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11153   echo $ac_n "(cached) $ac_c" 1>&6
11154 else
11155   cat > conftest.$ac_ext <<EOF
11156 #line 11157 "configure"
11157 #include "confdefs.h"
11158 /* System header to define __stub macros and hopefully few prototypes,
11159     which can conflict with char $ac_func(); below.  */
11160 #include <assert.h>
11161 /* Override any gcc2 internal prototype to avoid an error.  */
11162 /* We use char because int might match the return type of a gcc2
11163     builtin and then its argument prototype would still apply.  */
11164 char $ac_func();
11165
11166 int main() {
11167
11168 /* The GNU C library defines this for functions which it implements
11169     to always fail with ENOSYS.  Some functions are actually named
11170     something starting with __ and the normal name is an alias.  */
11171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11172 choke me
11173 #else
11174 $ac_func();
11175 #endif
11176
11177 ; return 0; }
11178 EOF
11179 if { (eval echo configure:11180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11180   rm -rf conftest*
11181   eval "ac_cv_func_$ac_func=yes"
11182 else
11183   echo "configure: failed program was:" >&5
11184   cat conftest.$ac_ext >&5
11185   rm -rf conftest*
11186   eval "ac_cv_func_$ac_func=no"
11187 fi
11188 rm -f conftest*
11189 fi
11190
11191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11192   echo "$ac_t""yes" 1>&6
11193     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11194   cat >> confdefs.h <<EOF
11195 #define $ac_tr_func 1
11196 EOF
11197  
11198 else
11199   echo "$ac_t""no" 1>&6
11200 fi
11201 done
11202     
11203     fi
11204   fi
11205
11206   
11207   
11208   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11209 echo "configure:11210: checking for finite declaration" >&5
11210   if test x${glibcpp_cv_func_finite_use+set} != xset; then
11211     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
11212   echo $ac_n "(cached) $ac_c" 1>&6
11213 else
11214   
11215       
11216       ac_ext=C
11217 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11218 ac_cpp='$CXXCPP $CPPFLAGS'
11219 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11220 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11221 cross_compiling=$ac_cv_prog_cxx_cross
11222
11223       cat > conftest.$ac_ext <<EOF
11224 #line 11225 "configure"
11225 #include "confdefs.h"
11226 #include <math.h>
11227                       #ifdef HAVE_IEEEFP_H
11228                       #include <ieeefp.h>
11229                       #endif
11230                      
11231 int main() {
11232  finite(0);
11233 ; return 0; }
11234 EOF
11235 if { (eval echo configure:11236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11236   rm -rf conftest*
11237   glibcpp_cv_func_finite_use=yes
11238 else
11239   echo "configure: failed program was:" >&5
11240   cat conftest.$ac_ext >&5
11241   rm -rf conftest*
11242   glibcpp_cv_func_finite_use=no
11243 fi
11244 rm -f conftest*
11245       ac_ext=c
11246 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11247 ac_cpp='$CPP $CPPFLAGS'
11248 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11249 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11250 cross_compiling=$ac_cv_prog_cc_cross
11251
11252     
11253 fi
11254
11255   fi
11256   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
11257
11258   if test x$glibcpp_cv_func_finite_use = x"yes"; then
11259     for ac_func in finite
11260 do
11261 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11262 echo "configure:11263: checking for $ac_func" >&5
11263 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11264   echo $ac_n "(cached) $ac_c" 1>&6
11265 else
11266   cat > conftest.$ac_ext <<EOF
11267 #line 11268 "configure"
11268 #include "confdefs.h"
11269 /* System header to define __stub macros and hopefully few prototypes,
11270     which can conflict with char $ac_func(); below.  */
11271 #include <assert.h>
11272 /* Override any gcc2 internal prototype to avoid an error.  */
11273 /* We use char because int might match the return type of a gcc2
11274     builtin and then its argument prototype would still apply.  */
11275 char $ac_func();
11276
11277 int main() {
11278
11279 /* The GNU C library defines this for functions which it implements
11280     to always fail with ENOSYS.  Some functions are actually named
11281     something starting with __ and the normal name is an alias.  */
11282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11283 choke me
11284 #else
11285 $ac_func();
11286 #endif
11287
11288 ; return 0; }
11289 EOF
11290 if { (eval echo configure:11291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11291   rm -rf conftest*
11292   eval "ac_cv_func_$ac_func=yes"
11293 else
11294   echo "configure: failed program was:" >&5
11295   cat conftest.$ac_ext >&5
11296   rm -rf conftest*
11297   eval "ac_cv_func_$ac_func=no"
11298 fi
11299 rm -f conftest*
11300 fi
11301
11302 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11303   echo "$ac_t""yes" 1>&6
11304     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11305   cat >> confdefs.h <<EOF
11306 #define $ac_tr_func 1
11307 EOF
11308  
11309 else
11310   echo "$ac_t""no" 1>&6
11311 fi
11312 done
11313     
11314   else
11315     
11316   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11317 echo "configure:11318: checking for _finite declaration" >&5
11318   if test x${glibcpp_cv_func__finite_use+set} != xset; then
11319     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
11320   echo $ac_n "(cached) $ac_c" 1>&6
11321 else
11322   
11323       
11324       ac_ext=C
11325 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11326 ac_cpp='$CXXCPP $CPPFLAGS'
11327 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11328 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11329 cross_compiling=$ac_cv_prog_cxx_cross
11330
11331       cat > conftest.$ac_ext <<EOF
11332 #line 11333 "configure"
11333 #include "confdefs.h"
11334 #include <math.h>
11335                       #ifdef HAVE_IEEEFP_H
11336                       #include <ieeefp.h>
11337                       #endif
11338                      
11339 int main() {
11340  _finite(0);
11341 ; return 0; }
11342 EOF
11343 if { (eval echo configure:11344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11344   rm -rf conftest*
11345   glibcpp_cv_func__finite_use=yes
11346 else
11347   echo "configure: failed program was:" >&5
11348   cat conftest.$ac_ext >&5
11349   rm -rf conftest*
11350   glibcpp_cv_func__finite_use=no
11351 fi
11352 rm -f conftest*
11353       ac_ext=c
11354 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11355 ac_cpp='$CPP $CPPFLAGS'
11356 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11357 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11358 cross_compiling=$ac_cv_prog_cc_cross
11359
11360     
11361 fi
11362
11363   fi
11364   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
11365
11366     if test x$glibcpp_cv_func__finite_use = x"yes"; then
11367       for ac_func in _finite
11368 do
11369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11370 echo "configure:11371: checking for $ac_func" >&5
11371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11372   echo $ac_n "(cached) $ac_c" 1>&6
11373 else
11374   cat > conftest.$ac_ext <<EOF
11375 #line 11376 "configure"
11376 #include "confdefs.h"
11377 /* System header to define __stub macros and hopefully few prototypes,
11378     which can conflict with char $ac_func(); below.  */
11379 #include <assert.h>
11380 /* Override any gcc2 internal prototype to avoid an error.  */
11381 /* We use char because int might match the return type of a gcc2
11382     builtin and then its argument prototype would still apply.  */
11383 char $ac_func();
11384
11385 int main() {
11386
11387 /* The GNU C library defines this for functions which it implements
11388     to always fail with ENOSYS.  Some functions are actually named
11389     something starting with __ and the normal name is an alias.  */
11390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11391 choke me
11392 #else
11393 $ac_func();
11394 #endif
11395
11396 ; return 0; }
11397 EOF
11398 if { (eval echo configure:11399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11399   rm -rf conftest*
11400   eval "ac_cv_func_$ac_func=yes"
11401 else
11402   echo "configure: failed program was:" >&5
11403   cat conftest.$ac_ext >&5
11404   rm -rf conftest*
11405   eval "ac_cv_func_$ac_func=no"
11406 fi
11407 rm -f conftest*
11408 fi
11409
11410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11411   echo "$ac_t""yes" 1>&6
11412     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11413   cat >> confdefs.h <<EOF
11414 #define $ac_tr_func 1
11415 EOF
11416  
11417 else
11418   echo "$ac_t""no" 1>&6
11419 fi
11420 done
11421     
11422     fi
11423   fi
11424
11425   
11426   
11427   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11428 echo "configure:11429: checking for copysign declaration" >&5
11429   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
11430     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
11431   echo $ac_n "(cached) $ac_c" 1>&6
11432 else
11433   
11434       
11435       ac_ext=C
11436 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11437 ac_cpp='$CXXCPP $CPPFLAGS'
11438 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11439 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11440 cross_compiling=$ac_cv_prog_cxx_cross
11441
11442       cat > conftest.$ac_ext <<EOF
11443 #line 11444 "configure"
11444 #include "confdefs.h"
11445 #include <math.h>
11446 int main() {
11447  copysign(0, 0);
11448 ; return 0; }
11449 EOF
11450 if { (eval echo configure:11451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11451   rm -rf conftest*
11452   glibcpp_cv_func_copysign_use=yes
11453 else
11454   echo "configure: failed program was:" >&5
11455   cat conftest.$ac_ext >&5
11456   rm -rf conftest*
11457   glibcpp_cv_func_copysign_use=no
11458 fi
11459 rm -f conftest*
11460       ac_ext=c
11461 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11462 ac_cpp='$CPP $CPPFLAGS'
11463 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11464 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11465 cross_compiling=$ac_cv_prog_cc_cross
11466
11467     
11468 fi
11469
11470   fi
11471   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
11472
11473   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
11474     for ac_func in copysign
11475 do
11476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11477 echo "configure:11478: checking for $ac_func" >&5
11478 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11479   echo $ac_n "(cached) $ac_c" 1>&6
11480 else
11481   cat > conftest.$ac_ext <<EOF
11482 #line 11483 "configure"
11483 #include "confdefs.h"
11484 /* System header to define __stub macros and hopefully few prototypes,
11485     which can conflict with char $ac_func(); below.  */
11486 #include <assert.h>
11487 /* Override any gcc2 internal prototype to avoid an error.  */
11488 /* We use char because int might match the return type of a gcc2
11489     builtin and then its argument prototype would still apply.  */
11490 char $ac_func();
11491
11492 int main() {
11493
11494 /* The GNU C library defines this for functions which it implements
11495     to always fail with ENOSYS.  Some functions are actually named
11496     something starting with __ and the normal name is an alias.  */
11497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11498 choke me
11499 #else
11500 $ac_func();
11501 #endif
11502
11503 ; return 0; }
11504 EOF
11505 if { (eval echo configure:11506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11506   rm -rf conftest*
11507   eval "ac_cv_func_$ac_func=yes"
11508 else
11509   echo "configure: failed program was:" >&5
11510   cat conftest.$ac_ext >&5
11511   rm -rf conftest*
11512   eval "ac_cv_func_$ac_func=no"
11513 fi
11514 rm -f conftest*
11515 fi
11516
11517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11518   echo "$ac_t""yes" 1>&6
11519     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11520   cat >> confdefs.h <<EOF
11521 #define $ac_tr_func 1
11522 EOF
11523  
11524 else
11525   echo "$ac_t""no" 1>&6
11526 fi
11527 done
11528     
11529   else
11530     
11531   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11532 echo "configure:11533: checking for _copysign declaration" >&5
11533   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
11534     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
11535   echo $ac_n "(cached) $ac_c" 1>&6
11536 else
11537   
11538       
11539       ac_ext=C
11540 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11541 ac_cpp='$CXXCPP $CPPFLAGS'
11542 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11543 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11544 cross_compiling=$ac_cv_prog_cxx_cross
11545
11546       cat > conftest.$ac_ext <<EOF
11547 #line 11548 "configure"
11548 #include "confdefs.h"
11549 #include <math.h>
11550 int main() {
11551  _copysign(0, 0);
11552 ; return 0; }
11553 EOF
11554 if { (eval echo configure:11555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11555   rm -rf conftest*
11556   glibcpp_cv_func__copysign_use=yes
11557 else
11558   echo "configure: failed program was:" >&5
11559   cat conftest.$ac_ext >&5
11560   rm -rf conftest*
11561   glibcpp_cv_func__copysign_use=no
11562 fi
11563 rm -f conftest*
11564       ac_ext=c
11565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11566 ac_cpp='$CPP $CPPFLAGS'
11567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11568 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11569 cross_compiling=$ac_cv_prog_cc_cross
11570
11571     
11572 fi
11573
11574   fi
11575   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
11576
11577     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
11578       for ac_func in _copysign
11579 do
11580 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11581 echo "configure:11582: checking for $ac_func" >&5
11582 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11583   echo $ac_n "(cached) $ac_c" 1>&6
11584 else
11585   cat > conftest.$ac_ext <<EOF
11586 #line 11587 "configure"
11587 #include "confdefs.h"
11588 /* System header to define __stub macros and hopefully few prototypes,
11589     which can conflict with char $ac_func(); below.  */
11590 #include <assert.h>
11591 /* Override any gcc2 internal prototype to avoid an error.  */
11592 /* We use char because int might match the return type of a gcc2
11593     builtin and then its argument prototype would still apply.  */
11594 char $ac_func();
11595
11596 int main() {
11597
11598 /* The GNU C library defines this for functions which it implements
11599     to always fail with ENOSYS.  Some functions are actually named
11600     something starting with __ and the normal name is an alias.  */
11601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11602 choke me
11603 #else
11604 $ac_func();
11605 #endif
11606
11607 ; return 0; }
11608 EOF
11609 if { (eval echo configure:11610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11610   rm -rf conftest*
11611   eval "ac_cv_func_$ac_func=yes"
11612 else
11613   echo "configure: failed program was:" >&5
11614   cat conftest.$ac_ext >&5
11615   rm -rf conftest*
11616   eval "ac_cv_func_$ac_func=no"
11617 fi
11618 rm -f conftest*
11619 fi
11620
11621 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11622   echo "$ac_t""yes" 1>&6
11623     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11624   cat >> confdefs.h <<EOF
11625 #define $ac_tr_func 1
11626 EOF
11627  
11628 else
11629   echo "$ac_t""no" 1>&6
11630 fi
11631 done
11632     
11633     fi
11634   fi
11635
11636   
11637   
11638   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11639 echo "configure:11640: checking for sincos declaration" >&5
11640   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
11641     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
11642   echo $ac_n "(cached) $ac_c" 1>&6
11643 else
11644   
11645       
11646       ac_ext=C
11647 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11648 ac_cpp='$CXXCPP $CPPFLAGS'
11649 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11650 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11651 cross_compiling=$ac_cv_prog_cxx_cross
11652
11653       cat > conftest.$ac_ext <<EOF
11654 #line 11655 "configure"
11655 #include "confdefs.h"
11656 #include <math.h>
11657 int main() {
11658  sincos(0, 0, 0);
11659 ; return 0; }
11660 EOF
11661 if { (eval echo configure:11662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11662   rm -rf conftest*
11663   glibcpp_cv_func_sincos_use=yes
11664 else
11665   echo "configure: failed program was:" >&5
11666   cat conftest.$ac_ext >&5
11667   rm -rf conftest*
11668   glibcpp_cv_func_sincos_use=no
11669 fi
11670 rm -f conftest*
11671       ac_ext=c
11672 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11673 ac_cpp='$CPP $CPPFLAGS'
11674 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11675 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11676 cross_compiling=$ac_cv_prog_cc_cross
11677
11678     
11679 fi
11680
11681   fi
11682   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
11683
11684   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
11685     for ac_func in sincos
11686 do
11687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11688 echo "configure:11689: checking for $ac_func" >&5
11689 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11690   echo $ac_n "(cached) $ac_c" 1>&6
11691 else
11692   cat > conftest.$ac_ext <<EOF
11693 #line 11694 "configure"
11694 #include "confdefs.h"
11695 /* System header to define __stub macros and hopefully few prototypes,
11696     which can conflict with char $ac_func(); below.  */
11697 #include <assert.h>
11698 /* Override any gcc2 internal prototype to avoid an error.  */
11699 /* We use char because int might match the return type of a gcc2
11700     builtin and then its argument prototype would still apply.  */
11701 char $ac_func();
11702
11703 int main() {
11704
11705 /* The GNU C library defines this for functions which it implements
11706     to always fail with ENOSYS.  Some functions are actually named
11707     something starting with __ and the normal name is an alias.  */
11708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11709 choke me
11710 #else
11711 $ac_func();
11712 #endif
11713
11714 ; return 0; }
11715 EOF
11716 if { (eval echo configure:11717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11717   rm -rf conftest*
11718   eval "ac_cv_func_$ac_func=yes"
11719 else
11720   echo "configure: failed program was:" >&5
11721   cat conftest.$ac_ext >&5
11722   rm -rf conftest*
11723   eval "ac_cv_func_$ac_func=no"
11724 fi
11725 rm -f conftest*
11726 fi
11727
11728 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11729   echo "$ac_t""yes" 1>&6
11730     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11731   cat >> confdefs.h <<EOF
11732 #define $ac_tr_func 1
11733 EOF
11734  
11735 else
11736   echo "$ac_t""no" 1>&6
11737 fi
11738 done
11739     
11740   else
11741     
11742   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11743 echo "configure:11744: checking for _sincos declaration" >&5
11744   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
11745     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
11746   echo $ac_n "(cached) $ac_c" 1>&6
11747 else
11748   
11749       
11750       ac_ext=C
11751 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11752 ac_cpp='$CXXCPP $CPPFLAGS'
11753 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11754 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11755 cross_compiling=$ac_cv_prog_cxx_cross
11756
11757       cat > conftest.$ac_ext <<EOF
11758 #line 11759 "configure"
11759 #include "confdefs.h"
11760 #include <math.h>
11761 int main() {
11762  _sincos(0, 0, 0);
11763 ; return 0; }
11764 EOF
11765 if { (eval echo configure:11766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11766   rm -rf conftest*
11767   glibcpp_cv_func__sincos_use=yes
11768 else
11769   echo "configure: failed program was:" >&5
11770   cat conftest.$ac_ext >&5
11771   rm -rf conftest*
11772   glibcpp_cv_func__sincos_use=no
11773 fi
11774 rm -f conftest*
11775       ac_ext=c
11776 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11777 ac_cpp='$CPP $CPPFLAGS'
11778 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11779 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11780 cross_compiling=$ac_cv_prog_cc_cross
11781
11782     
11783 fi
11784
11785   fi
11786   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
11787
11788     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
11789       for ac_func in _sincos
11790 do
11791 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11792 echo "configure:11793: checking for $ac_func" >&5
11793 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11794   echo $ac_n "(cached) $ac_c" 1>&6
11795 else
11796   cat > conftest.$ac_ext <<EOF
11797 #line 11798 "configure"
11798 #include "confdefs.h"
11799 /* System header to define __stub macros and hopefully few prototypes,
11800     which can conflict with char $ac_func(); below.  */
11801 #include <assert.h>
11802 /* Override any gcc2 internal prototype to avoid an error.  */
11803 /* We use char because int might match the return type of a gcc2
11804     builtin and then its argument prototype would still apply.  */
11805 char $ac_func();
11806
11807 int main() {
11808
11809 /* The GNU C library defines this for functions which it implements
11810     to always fail with ENOSYS.  Some functions are actually named
11811     something starting with __ and the normal name is an alias.  */
11812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11813 choke me
11814 #else
11815 $ac_func();
11816 #endif
11817
11818 ; return 0; }
11819 EOF
11820 if { (eval echo configure:11821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11821   rm -rf conftest*
11822   eval "ac_cv_func_$ac_func=yes"
11823 else
11824   echo "configure: failed program was:" >&5
11825   cat conftest.$ac_ext >&5
11826   rm -rf conftest*
11827   eval "ac_cv_func_$ac_func=no"
11828 fi
11829 rm -f conftest*
11830 fi
11831
11832 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11833   echo "$ac_t""yes" 1>&6
11834     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11835   cat >> confdefs.h <<EOF
11836 #define $ac_tr_func 1
11837 EOF
11838  
11839 else
11840   echo "$ac_t""no" 1>&6
11841 fi
11842 done
11843     
11844     fi
11845   fi
11846
11847   
11848   
11849   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
11850 echo "configure:11851: checking for fpclass declaration" >&5
11851   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
11852     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
11853   echo $ac_n "(cached) $ac_c" 1>&6
11854 else
11855   
11856       
11857       ac_ext=C
11858 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11859 ac_cpp='$CXXCPP $CPPFLAGS'
11860 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11861 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11862 cross_compiling=$ac_cv_prog_cxx_cross
11863
11864       cat > conftest.$ac_ext <<EOF
11865 #line 11866 "configure"
11866 #include "confdefs.h"
11867 #include <math.h>
11868                       #ifdef HAVE_IEEEFP_H
11869                       #include <ieeefp.h>
11870                       #endif
11871                      
11872 int main() {
11873  fpclass(0);
11874 ; return 0; }
11875 EOF
11876 if { (eval echo configure:11877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11877   rm -rf conftest*
11878   glibcpp_cv_func_fpclass_use=yes
11879 else
11880   echo "configure: failed program was:" >&5
11881   cat conftest.$ac_ext >&5
11882   rm -rf conftest*
11883   glibcpp_cv_func_fpclass_use=no
11884 fi
11885 rm -f conftest*
11886       ac_ext=c
11887 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11888 ac_cpp='$CPP $CPPFLAGS'
11889 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11890 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11891 cross_compiling=$ac_cv_prog_cc_cross
11892
11893     
11894 fi
11895
11896   fi
11897   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
11898
11899   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
11900     for ac_func in fpclass
11901 do
11902 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11903 echo "configure:11904: checking for $ac_func" >&5
11904 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11905   echo $ac_n "(cached) $ac_c" 1>&6
11906 else
11907   cat > conftest.$ac_ext <<EOF
11908 #line 11909 "configure"
11909 #include "confdefs.h"
11910 /* System header to define __stub macros and hopefully few prototypes,
11911     which can conflict with char $ac_func(); below.  */
11912 #include <assert.h>
11913 /* Override any gcc2 internal prototype to avoid an error.  */
11914 /* We use char because int might match the return type of a gcc2
11915     builtin and then its argument prototype would still apply.  */
11916 char $ac_func();
11917
11918 int main() {
11919
11920 /* The GNU C library defines this for functions which it implements
11921     to always fail with ENOSYS.  Some functions are actually named
11922     something starting with __ and the normal name is an alias.  */
11923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11924 choke me
11925 #else
11926 $ac_func();
11927 #endif
11928
11929 ; return 0; }
11930 EOF
11931 if { (eval echo configure:11932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11932   rm -rf conftest*
11933   eval "ac_cv_func_$ac_func=yes"
11934 else
11935   echo "configure: failed program was:" >&5
11936   cat conftest.$ac_ext >&5
11937   rm -rf conftest*
11938   eval "ac_cv_func_$ac_func=no"
11939 fi
11940 rm -f conftest*
11941 fi
11942
11943 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11944   echo "$ac_t""yes" 1>&6
11945     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11946   cat >> confdefs.h <<EOF
11947 #define $ac_tr_func 1
11948 EOF
11949  
11950 else
11951   echo "$ac_t""no" 1>&6
11952 fi
11953 done
11954     
11955   else
11956     
11957   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
11958 echo "configure:11959: checking for _fpclass declaration" >&5
11959   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
11960     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
11961   echo $ac_n "(cached) $ac_c" 1>&6
11962 else
11963   
11964       
11965       ac_ext=C
11966 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11967 ac_cpp='$CXXCPP $CPPFLAGS'
11968 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11969 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11970 cross_compiling=$ac_cv_prog_cxx_cross
11971
11972       cat > conftest.$ac_ext <<EOF
11973 #line 11974 "configure"
11974 #include "confdefs.h"
11975 #include <math.h>
11976                       #ifdef HAVE_IEEEFP_H
11977                       #include <ieeefp.h>
11978                       #endif
11979                      
11980 int main() {
11981  _fpclass(0);
11982 ; return 0; }
11983 EOF
11984 if { (eval echo configure:11985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11985   rm -rf conftest*
11986   glibcpp_cv_func__fpclass_use=yes
11987 else
11988   echo "configure: failed program was:" >&5
11989   cat conftest.$ac_ext >&5
11990   rm -rf conftest*
11991   glibcpp_cv_func__fpclass_use=no
11992 fi
11993 rm -f conftest*
11994       ac_ext=c
11995 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11996 ac_cpp='$CPP $CPPFLAGS'
11997 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11998 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11999 cross_compiling=$ac_cv_prog_cc_cross
12000
12001     
12002 fi
12003
12004   fi
12005   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
12006
12007     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
12008       for ac_func in _fpclass
12009 do
12010 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12011 echo "configure:12012: checking for $ac_func" >&5
12012 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12013   echo $ac_n "(cached) $ac_c" 1>&6
12014 else
12015   cat > conftest.$ac_ext <<EOF
12016 #line 12017 "configure"
12017 #include "confdefs.h"
12018 /* System header to define __stub macros and hopefully few prototypes,
12019     which can conflict with char $ac_func(); below.  */
12020 #include <assert.h>
12021 /* Override any gcc2 internal prototype to avoid an error.  */
12022 /* We use char because int might match the return type of a gcc2
12023     builtin and then its argument prototype would still apply.  */
12024 char $ac_func();
12025
12026 int main() {
12027
12028 /* The GNU C library defines this for functions which it implements
12029     to always fail with ENOSYS.  Some functions are actually named
12030     something starting with __ and the normal name is an alias.  */
12031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12032 choke me
12033 #else
12034 $ac_func();
12035 #endif
12036
12037 ; return 0; }
12038 EOF
12039 if { (eval echo configure:12040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12040   rm -rf conftest*
12041   eval "ac_cv_func_$ac_func=yes"
12042 else
12043   echo "configure: failed program was:" >&5
12044   cat conftest.$ac_ext >&5
12045   rm -rf conftest*
12046   eval "ac_cv_func_$ac_func=no"
12047 fi
12048 rm -f conftest*
12049 fi
12050
12051 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12052   echo "$ac_t""yes" 1>&6
12053     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12054   cat >> confdefs.h <<EOF
12055 #define $ac_tr_func 1
12056 EOF
12057  
12058 else
12059   echo "$ac_t""no" 1>&6
12060 fi
12061 done
12062     
12063     fi
12064   fi
12065
12066   
12067   
12068   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
12069 echo "configure:12070: checking for qfpclass declaration" >&5
12070   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
12071     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
12072   echo $ac_n "(cached) $ac_c" 1>&6
12073 else
12074   
12075       
12076       ac_ext=C
12077 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12078 ac_cpp='$CXXCPP $CPPFLAGS'
12079 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12080 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12081 cross_compiling=$ac_cv_prog_cxx_cross
12082
12083       cat > conftest.$ac_ext <<EOF
12084 #line 12085 "configure"
12085 #include "confdefs.h"
12086 #include <math.h>
12087                       #ifdef HAVE_IEEEFP_H
12088                       #include <ieeefp.h>
12089                       #endif
12090                      
12091 int main() {
12092  qfpclass(0);
12093 ; return 0; }
12094 EOF
12095 if { (eval echo configure:12096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12096   rm -rf conftest*
12097   glibcpp_cv_func_qfpclass_use=yes
12098 else
12099   echo "configure: failed program was:" >&5
12100   cat conftest.$ac_ext >&5
12101   rm -rf conftest*
12102   glibcpp_cv_func_qfpclass_use=no
12103 fi
12104 rm -f conftest*
12105       ac_ext=c
12106 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12107 ac_cpp='$CPP $CPPFLAGS'
12108 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12109 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12110 cross_compiling=$ac_cv_prog_cc_cross
12111
12112     
12113 fi
12114
12115   fi
12116   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
12117
12118   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
12119     for ac_func in qfpclass
12120 do
12121 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12122 echo "configure:12123: checking for $ac_func" >&5
12123 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12124   echo $ac_n "(cached) $ac_c" 1>&6
12125 else
12126   cat > conftest.$ac_ext <<EOF
12127 #line 12128 "configure"
12128 #include "confdefs.h"
12129 /* System header to define __stub macros and hopefully few prototypes,
12130     which can conflict with char $ac_func(); below.  */
12131 #include <assert.h>
12132 /* Override any gcc2 internal prototype to avoid an error.  */
12133 /* We use char because int might match the return type of a gcc2
12134     builtin and then its argument prototype would still apply.  */
12135 char $ac_func();
12136
12137 int main() {
12138
12139 /* The GNU C library defines this for functions which it implements
12140     to always fail with ENOSYS.  Some functions are actually named
12141     something starting with __ and the normal name is an alias.  */
12142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12143 choke me
12144 #else
12145 $ac_func();
12146 #endif
12147
12148 ; return 0; }
12149 EOF
12150 if { (eval echo configure:12151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12151   rm -rf conftest*
12152   eval "ac_cv_func_$ac_func=yes"
12153 else
12154   echo "configure: failed program was:" >&5
12155   cat conftest.$ac_ext >&5
12156   rm -rf conftest*
12157   eval "ac_cv_func_$ac_func=no"
12158 fi
12159 rm -f conftest*
12160 fi
12161
12162 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12163   echo "$ac_t""yes" 1>&6
12164     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12165   cat >> confdefs.h <<EOF
12166 #define $ac_tr_func 1
12167 EOF
12168  
12169 else
12170   echo "$ac_t""no" 1>&6
12171 fi
12172 done
12173     
12174   else
12175     
12176   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12177 echo "configure:12178: checking for _qfpclass declaration" >&5
12178   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
12179     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
12180   echo $ac_n "(cached) $ac_c" 1>&6
12181 else
12182   
12183       
12184       ac_ext=C
12185 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12186 ac_cpp='$CXXCPP $CPPFLAGS'
12187 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12188 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12189 cross_compiling=$ac_cv_prog_cxx_cross
12190
12191       cat > conftest.$ac_ext <<EOF
12192 #line 12193 "configure"
12193 #include "confdefs.h"
12194 #include <math.h>
12195                       #ifdef HAVE_IEEEFP_H
12196                       #include <ieeefp.h>
12197                       #endif
12198                      
12199 int main() {
12200  _qfpclass(0);
12201 ; return 0; }
12202 EOF
12203 if { (eval echo configure:12204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12204   rm -rf conftest*
12205   glibcpp_cv_func__qfpclass_use=yes
12206 else
12207   echo "configure: failed program was:" >&5
12208   cat conftest.$ac_ext >&5
12209   rm -rf conftest*
12210   glibcpp_cv_func__qfpclass_use=no
12211 fi
12212 rm -f conftest*
12213       ac_ext=c
12214 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12215 ac_cpp='$CPP $CPPFLAGS'
12216 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12217 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12218 cross_compiling=$ac_cv_prog_cc_cross
12219
12220     
12221 fi
12222
12223   fi
12224   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
12225
12226     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
12227       for ac_func in _qfpclass
12228 do
12229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12230 echo "configure:12231: checking for $ac_func" >&5
12231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12232   echo $ac_n "(cached) $ac_c" 1>&6
12233 else
12234   cat > conftest.$ac_ext <<EOF
12235 #line 12236 "configure"
12236 #include "confdefs.h"
12237 /* System header to define __stub macros and hopefully few prototypes,
12238     which can conflict with char $ac_func(); below.  */
12239 #include <assert.h>
12240 /* Override any gcc2 internal prototype to avoid an error.  */
12241 /* We use char because int might match the return type of a gcc2
12242     builtin and then its argument prototype would still apply.  */
12243 char $ac_func();
12244
12245 int main() {
12246
12247 /* The GNU C library defines this for functions which it implements
12248     to always fail with ENOSYS.  Some functions are actually named
12249     something starting with __ and the normal name is an alias.  */
12250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12251 choke me
12252 #else
12253 $ac_func();
12254 #endif
12255
12256 ; return 0; }
12257 EOF
12258 if { (eval echo configure:12259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12259   rm -rf conftest*
12260   eval "ac_cv_func_$ac_func=yes"
12261 else
12262   echo "configure: failed program was:" >&5
12263   cat conftest.$ac_ext >&5
12264   rm -rf conftest*
12265   eval "ac_cv_func_$ac_func=no"
12266 fi
12267 rm -f conftest*
12268 fi
12269
12270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12271   echo "$ac_t""yes" 1>&6
12272     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12273   cat >> confdefs.h <<EOF
12274 #define $ac_tr_func 1
12275 EOF
12276  
12277 else
12278   echo "$ac_t""no" 1>&6
12279 fi
12280 done
12281     
12282     fi
12283   fi
12284
12285   
12286   
12287   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12288 echo "configure:12289: checking for hypot declaration" >&5
12289   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
12290     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
12291   echo $ac_n "(cached) $ac_c" 1>&6
12292 else
12293   
12294       
12295       ac_ext=C
12296 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12297 ac_cpp='$CXXCPP $CPPFLAGS'
12298 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12299 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12300 cross_compiling=$ac_cv_prog_cxx_cross
12301
12302       cat > conftest.$ac_ext <<EOF
12303 #line 12304 "configure"
12304 #include "confdefs.h"
12305 #include <math.h>
12306 int main() {
12307  hypot(0, 0);
12308 ; return 0; }
12309 EOF
12310 if { (eval echo configure:12311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12311   rm -rf conftest*
12312   glibcpp_cv_func_hypot_use=yes
12313 else
12314   echo "configure: failed program was:" >&5
12315   cat conftest.$ac_ext >&5
12316   rm -rf conftest*
12317   glibcpp_cv_func_hypot_use=no
12318 fi
12319 rm -f conftest*
12320       ac_ext=c
12321 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12322 ac_cpp='$CPP $CPPFLAGS'
12323 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12324 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12325 cross_compiling=$ac_cv_prog_cc_cross
12326
12327     
12328 fi
12329
12330   fi
12331   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
12332
12333   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
12334     for ac_func in hypot
12335 do
12336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12337 echo "configure:12338: checking for $ac_func" >&5
12338 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12339   echo $ac_n "(cached) $ac_c" 1>&6
12340 else
12341   cat > conftest.$ac_ext <<EOF
12342 #line 12343 "configure"
12343 #include "confdefs.h"
12344 /* System header to define __stub macros and hopefully few prototypes,
12345     which can conflict with char $ac_func(); below.  */
12346 #include <assert.h>
12347 /* Override any gcc2 internal prototype to avoid an error.  */
12348 /* We use char because int might match the return type of a gcc2
12349     builtin and then its argument prototype would still apply.  */
12350 char $ac_func();
12351
12352 int main() {
12353
12354 /* The GNU C library defines this for functions which it implements
12355     to always fail with ENOSYS.  Some functions are actually named
12356     something starting with __ and the normal name is an alias.  */
12357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12358 choke me
12359 #else
12360 $ac_func();
12361 #endif
12362
12363 ; return 0; }
12364 EOF
12365 if { (eval echo configure:12366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12366   rm -rf conftest*
12367   eval "ac_cv_func_$ac_func=yes"
12368 else
12369   echo "configure: failed program was:" >&5
12370   cat conftest.$ac_ext >&5
12371   rm -rf conftest*
12372   eval "ac_cv_func_$ac_func=no"
12373 fi
12374 rm -f conftest*
12375 fi
12376
12377 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12378   echo "$ac_t""yes" 1>&6
12379     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12380   cat >> confdefs.h <<EOF
12381 #define $ac_tr_func 1
12382 EOF
12383  
12384 else
12385   echo "$ac_t""no" 1>&6
12386 fi
12387 done
12388     
12389   else
12390     
12391   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12392 echo "configure:12393: checking for _hypot declaration" >&5
12393   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
12394     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
12395   echo $ac_n "(cached) $ac_c" 1>&6
12396 else
12397   
12398       
12399       ac_ext=C
12400 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12401 ac_cpp='$CXXCPP $CPPFLAGS'
12402 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12403 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12404 cross_compiling=$ac_cv_prog_cxx_cross
12405
12406       cat > conftest.$ac_ext <<EOF
12407 #line 12408 "configure"
12408 #include "confdefs.h"
12409 #include <math.h>
12410 int main() {
12411  _hypot(0, 0);
12412 ; return 0; }
12413 EOF
12414 if { (eval echo configure:12415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12415   rm -rf conftest*
12416   glibcpp_cv_func__hypot_use=yes
12417 else
12418   echo "configure: failed program was:" >&5
12419   cat conftest.$ac_ext >&5
12420   rm -rf conftest*
12421   glibcpp_cv_func__hypot_use=no
12422 fi
12423 rm -f conftest*
12424       ac_ext=c
12425 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12426 ac_cpp='$CPP $CPPFLAGS'
12427 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12428 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12429 cross_compiling=$ac_cv_prog_cc_cross
12430
12431     
12432 fi
12433
12434   fi
12435   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
12436
12437     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
12438       for ac_func in _hypot
12439 do
12440 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12441 echo "configure:12442: checking for $ac_func" >&5
12442 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12443   echo $ac_n "(cached) $ac_c" 1>&6
12444 else
12445   cat > conftest.$ac_ext <<EOF
12446 #line 12447 "configure"
12447 #include "confdefs.h"
12448 /* System header to define __stub macros and hopefully few prototypes,
12449     which can conflict with char $ac_func(); below.  */
12450 #include <assert.h>
12451 /* Override any gcc2 internal prototype to avoid an error.  */
12452 /* We use char because int might match the return type of a gcc2
12453     builtin and then its argument prototype would still apply.  */
12454 char $ac_func();
12455
12456 int main() {
12457
12458 /* The GNU C library defines this for functions which it implements
12459     to always fail with ENOSYS.  Some functions are actually named
12460     something starting with __ and the normal name is an alias.  */
12461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12462 choke me
12463 #else
12464 $ac_func();
12465 #endif
12466
12467 ; return 0; }
12468 EOF
12469 if { (eval echo configure:12470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12470   rm -rf conftest*
12471   eval "ac_cv_func_$ac_func=yes"
12472 else
12473   echo "configure: failed program was:" >&5
12474   cat conftest.$ac_ext >&5
12475   rm -rf conftest*
12476   eval "ac_cv_func_$ac_func=no"
12477 fi
12478 rm -f conftest*
12479 fi
12480
12481 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12482   echo "$ac_t""yes" 1>&6
12483     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12484   cat >> confdefs.h <<EOF
12485 #define $ac_tr_func 1
12486 EOF
12487  
12488 else
12489   echo "$ac_t""no" 1>&6
12490 fi
12491 done
12492     
12493     fi
12494   fi
12495
12496
12497     
12498   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12499 echo "configure:12500: checking for float trig functions" >&5
12500   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
12501   echo $ac_n "(cached) $ac_c" 1>&6
12502 else
12503   
12504     
12505     ac_ext=C
12506 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12507 ac_cpp='$CXXCPP $CPPFLAGS'
12508 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12509 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12510 cross_compiling=$ac_cv_prog_cxx_cross
12511
12512     cat > conftest.$ac_ext <<EOF
12513 #line 12514 "configure"
12514 #include "confdefs.h"
12515 #include <math.h>
12516 int main() {
12517  `for x in acosf asinf atanf \
12518                                           cosf sinf tanf \
12519                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
12520 ; return 0; }
12521 EOF
12522 if { (eval echo configure:12523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12523   rm -rf conftest*
12524   glibcpp_cv_func_float_trig_use=yes
12525 else
12526   echo "configure: failed program was:" >&5
12527   cat conftest.$ac_ext >&5
12528   rm -rf conftest*
12529   glibcpp_cv_func_float_trig_use=no
12530 fi
12531 rm -f conftest*
12532     ac_ext=c
12533 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12534 ac_cpp='$CPP $CPPFLAGS'
12535 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12536 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12537 cross_compiling=$ac_cv_prog_cc_cross
12538
12539 fi
12540
12541   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
12542   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
12543     for ac_func in acosf asinf atanf \
12544                                           cosf sinf tanf \
12545                                           coshf sinhf tanhf
12546 do
12547 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12548 echo "configure:12549: checking for $ac_func" >&5
12549 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12550   echo $ac_n "(cached) $ac_c" 1>&6
12551 else
12552   cat > conftest.$ac_ext <<EOF
12553 #line 12554 "configure"
12554 #include "confdefs.h"
12555 /* System header to define __stub macros and hopefully few prototypes,
12556     which can conflict with char $ac_func(); below.  */
12557 #include <assert.h>
12558 /* Override any gcc2 internal prototype to avoid an error.  */
12559 /* We use char because int might match the return type of a gcc2
12560     builtin and then its argument prototype would still apply.  */
12561 char $ac_func();
12562
12563 int main() {
12564
12565 /* The GNU C library defines this for functions which it implements
12566     to always fail with ENOSYS.  Some functions are actually named
12567     something starting with __ and the normal name is an alias.  */
12568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12569 choke me
12570 #else
12571 $ac_func();
12572 #endif
12573
12574 ; return 0; }
12575 EOF
12576 if { (eval echo configure:12577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12577   rm -rf conftest*
12578   eval "ac_cv_func_$ac_func=yes"
12579 else
12580   echo "configure: failed program was:" >&5
12581   cat conftest.$ac_ext >&5
12582   rm -rf conftest*
12583   eval "ac_cv_func_$ac_func=no"
12584 fi
12585 rm -f conftest*
12586 fi
12587
12588 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12589   echo "$ac_t""yes" 1>&6
12590     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12591   cat >> confdefs.h <<EOF
12592 #define $ac_tr_func 1
12593 EOF
12594  
12595 else
12596   echo "$ac_t""no" 1>&6
12597 fi
12598 done
12599
12600   fi
12601
12602   
12603   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12604 echo "configure:12605: checking for float round functions" >&5
12605   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
12606   echo $ac_n "(cached) $ac_c" 1>&6
12607 else
12608   
12609     
12610     ac_ext=C
12611 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12612 ac_cpp='$CXXCPP $CPPFLAGS'
12613 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12614 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12615 cross_compiling=$ac_cv_prog_cxx_cross
12616
12617     cat > conftest.$ac_ext <<EOF
12618 #line 12619 "configure"
12619 #include "confdefs.h"
12620 #include <math.h>
12621 int main() {
12622  `for x in ceilf floorf; do echo "$x (0);"; done` 
12623 ; return 0; }
12624 EOF
12625 if { (eval echo configure:12626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12626   rm -rf conftest*
12627   glibcpp_cv_func_float_round_use=yes
12628 else
12629   echo "configure: failed program was:" >&5
12630   cat conftest.$ac_ext >&5
12631   rm -rf conftest*
12632   glibcpp_cv_func_float_round_use=no
12633 fi
12634 rm -f conftest*
12635     ac_ext=c
12636 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12637 ac_cpp='$CPP $CPPFLAGS'
12638 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12639 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12640 cross_compiling=$ac_cv_prog_cc_cross
12641
12642 fi
12643
12644   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
12645   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
12646     for ac_func in ceilf floorf
12647 do
12648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12649 echo "configure:12650: checking for $ac_func" >&5
12650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12651   echo $ac_n "(cached) $ac_c" 1>&6
12652 else
12653   cat > conftest.$ac_ext <<EOF
12654 #line 12655 "configure"
12655 #include "confdefs.h"
12656 /* System header to define __stub macros and hopefully few prototypes,
12657     which can conflict with char $ac_func(); below.  */
12658 #include <assert.h>
12659 /* Override any gcc2 internal prototype to avoid an error.  */
12660 /* We use char because int might match the return type of a gcc2
12661     builtin and then its argument prototype would still apply.  */
12662 char $ac_func();
12663
12664 int main() {
12665
12666 /* The GNU C library defines this for functions which it implements
12667     to always fail with ENOSYS.  Some functions are actually named
12668     something starting with __ and the normal name is an alias.  */
12669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12670 choke me
12671 #else
12672 $ac_func();
12673 #endif
12674
12675 ; return 0; }
12676 EOF
12677 if { (eval echo configure:12678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12678   rm -rf conftest*
12679   eval "ac_cv_func_$ac_func=yes"
12680 else
12681   echo "configure: failed program was:" >&5
12682   cat conftest.$ac_ext >&5
12683   rm -rf conftest*
12684   eval "ac_cv_func_$ac_func=no"
12685 fi
12686 rm -f conftest*
12687 fi
12688
12689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12690   echo "$ac_t""yes" 1>&6
12691     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12692   cat >> confdefs.h <<EOF
12693 #define $ac_tr_func 1
12694 EOF
12695  
12696 else
12697   echo "$ac_t""no" 1>&6
12698 fi
12699 done
12700
12701   fi
12702
12703   
12704   
12705   echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12706 echo "configure:12707: checking for expf declaration" >&5
12707   if test x${glibcpp_cv_func_expf_use+set} != xset; then
12708     if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
12709   echo $ac_n "(cached) $ac_c" 1>&6
12710 else
12711   
12712       
12713       ac_ext=C
12714 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12715 ac_cpp='$CXXCPP $CPPFLAGS'
12716 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12717 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12718 cross_compiling=$ac_cv_prog_cxx_cross
12719
12720       cat > conftest.$ac_ext <<EOF
12721 #line 12722 "configure"
12722 #include "confdefs.h"
12723 #include <math.h>
12724                       #ifdef HAVE_IEEEFP_H
12725                       #include <ieeefp.h>
12726                       #endif
12727                      
12728 int main() {
12729  expf(0);
12730 ; return 0; }
12731 EOF
12732 if { (eval echo configure:12733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12733   rm -rf conftest*
12734   glibcpp_cv_func_expf_use=yes
12735 else
12736   echo "configure: failed program was:" >&5
12737   cat conftest.$ac_ext >&5
12738   rm -rf conftest*
12739   glibcpp_cv_func_expf_use=no
12740 fi
12741 rm -f conftest*
12742       ac_ext=c
12743 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12744 ac_cpp='$CPP $CPPFLAGS'
12745 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12746 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12747 cross_compiling=$ac_cv_prog_cc_cross
12748
12749     
12750 fi
12751
12752   fi
12753   echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
12754
12755   if test x$glibcpp_cv_func_expf_use = x"yes"; then
12756     for ac_func in expf
12757 do
12758 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12759 echo "configure:12760: checking for $ac_func" >&5
12760 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12761   echo $ac_n "(cached) $ac_c" 1>&6
12762 else
12763   cat > conftest.$ac_ext <<EOF
12764 #line 12765 "configure"
12765 #include "confdefs.h"
12766 /* System header to define __stub macros and hopefully few prototypes,
12767     which can conflict with char $ac_func(); below.  */
12768 #include <assert.h>
12769 /* Override any gcc2 internal prototype to avoid an error.  */
12770 /* We use char because int might match the return type of a gcc2
12771     builtin and then its argument prototype would still apply.  */
12772 char $ac_func();
12773
12774 int main() {
12775
12776 /* The GNU C library defines this for functions which it implements
12777     to always fail with ENOSYS.  Some functions are actually named
12778     something starting with __ and the normal name is an alias.  */
12779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12780 choke me
12781 #else
12782 $ac_func();
12783 #endif
12784
12785 ; return 0; }
12786 EOF
12787 if { (eval echo configure:12788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12788   rm -rf conftest*
12789   eval "ac_cv_func_$ac_func=yes"
12790 else
12791   echo "configure: failed program was:" >&5
12792   cat conftest.$ac_ext >&5
12793   rm -rf conftest*
12794   eval "ac_cv_func_$ac_func=no"
12795 fi
12796 rm -f conftest*
12797 fi
12798
12799 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12800   echo "$ac_t""yes" 1>&6
12801     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12802   cat >> confdefs.h <<EOF
12803 #define $ac_tr_func 1
12804 EOF
12805  
12806 else
12807   echo "$ac_t""no" 1>&6
12808 fi
12809 done
12810     
12811   else
12812     
12813   echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12814 echo "configure:12815: checking for _expf declaration" >&5
12815   if test x${glibcpp_cv_func__expf_use+set} != xset; then
12816     if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12817   echo $ac_n "(cached) $ac_c" 1>&6
12818 else
12819   
12820       
12821       ac_ext=C
12822 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12823 ac_cpp='$CXXCPP $CPPFLAGS'
12824 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12825 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12826 cross_compiling=$ac_cv_prog_cxx_cross
12827
12828       cat > conftest.$ac_ext <<EOF
12829 #line 12830 "configure"
12830 #include "confdefs.h"
12831 #include <math.h>
12832                       #ifdef HAVE_IEEEFP_H
12833                       #include <ieeefp.h>
12834                       #endif
12835                      
12836 int main() {
12837  _expf(0);
12838 ; return 0; }
12839 EOF
12840 if { (eval echo configure:12841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12841   rm -rf conftest*
12842   glibcpp_cv_func__expf_use=yes
12843 else
12844   echo "configure: failed program was:" >&5
12845   cat conftest.$ac_ext >&5
12846   rm -rf conftest*
12847   glibcpp_cv_func__expf_use=no
12848 fi
12849 rm -f conftest*
12850       ac_ext=c
12851 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12852 ac_cpp='$CPP $CPPFLAGS'
12853 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12854 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12855 cross_compiling=$ac_cv_prog_cc_cross
12856
12857     
12858 fi
12859
12860   fi
12861   echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
12862
12863     if test x$glibcpp_cv_func__expf_use = x"yes"; then
12864       for ac_func in _expf
12865 do
12866 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12867 echo "configure:12868: checking for $ac_func" >&5
12868 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12869   echo $ac_n "(cached) $ac_c" 1>&6
12870 else
12871   cat > conftest.$ac_ext <<EOF
12872 #line 12873 "configure"
12873 #include "confdefs.h"
12874 /* System header to define __stub macros and hopefully few prototypes,
12875     which can conflict with char $ac_func(); below.  */
12876 #include <assert.h>
12877 /* Override any gcc2 internal prototype to avoid an error.  */
12878 /* We use char because int might match the return type of a gcc2
12879     builtin and then its argument prototype would still apply.  */
12880 char $ac_func();
12881
12882 int main() {
12883
12884 /* The GNU C library defines this for functions which it implements
12885     to always fail with ENOSYS.  Some functions are actually named
12886     something starting with __ and the normal name is an alias.  */
12887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12888 choke me
12889 #else
12890 $ac_func();
12891 #endif
12892
12893 ; return 0; }
12894 EOF
12895 if { (eval echo configure:12896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12896   rm -rf conftest*
12897   eval "ac_cv_func_$ac_func=yes"
12898 else
12899   echo "configure: failed program was:" >&5
12900   cat conftest.$ac_ext >&5
12901   rm -rf conftest*
12902   eval "ac_cv_func_$ac_func=no"
12903 fi
12904 rm -f conftest*
12905 fi
12906
12907 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12908   echo "$ac_t""yes" 1>&6
12909     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12910   cat >> confdefs.h <<EOF
12911 #define $ac_tr_func 1
12912 EOF
12913  
12914 else
12915   echo "$ac_t""no" 1>&6
12916 fi
12917 done
12918     
12919     fi
12920   fi
12921
12922   
12923   
12924   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
12925 echo "configure:12926: checking for isnanf declaration" >&5
12926   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
12927     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
12928   echo $ac_n "(cached) $ac_c" 1>&6
12929 else
12930   
12931       
12932       ac_ext=C
12933 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12934 ac_cpp='$CXXCPP $CPPFLAGS'
12935 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12936 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12937 cross_compiling=$ac_cv_prog_cxx_cross
12938
12939       cat > conftest.$ac_ext <<EOF
12940 #line 12941 "configure"
12941 #include "confdefs.h"
12942 #include <math.h>
12943                       #ifdef HAVE_IEEEFP_H
12944                       #include <ieeefp.h>
12945                       #endif
12946                      
12947 int main() {
12948  isnanf(0);
12949 ; return 0; }
12950 EOF
12951 if { (eval echo configure:12952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12952   rm -rf conftest*
12953   glibcpp_cv_func_isnanf_use=yes
12954 else
12955   echo "configure: failed program was:" >&5
12956   cat conftest.$ac_ext >&5
12957   rm -rf conftest*
12958   glibcpp_cv_func_isnanf_use=no
12959 fi
12960 rm -f conftest*
12961       ac_ext=c
12962 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12963 ac_cpp='$CPP $CPPFLAGS'
12964 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12965 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12966 cross_compiling=$ac_cv_prog_cc_cross
12967
12968     
12969 fi
12970
12971   fi
12972   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
12973
12974   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
12975     for ac_func in isnanf
12976 do
12977 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12978 echo "configure:12979: checking for $ac_func" >&5
12979 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12980   echo $ac_n "(cached) $ac_c" 1>&6
12981 else
12982   cat > conftest.$ac_ext <<EOF
12983 #line 12984 "configure"
12984 #include "confdefs.h"
12985 /* System header to define __stub macros and hopefully few prototypes,
12986     which can conflict with char $ac_func(); below.  */
12987 #include <assert.h>
12988 /* Override any gcc2 internal prototype to avoid an error.  */
12989 /* We use char because int might match the return type of a gcc2
12990     builtin and then its argument prototype would still apply.  */
12991 char $ac_func();
12992
12993 int main() {
12994
12995 /* The GNU C library defines this for functions which it implements
12996     to always fail with ENOSYS.  Some functions are actually named
12997     something starting with __ and the normal name is an alias.  */
12998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12999 choke me
13000 #else
13001 $ac_func();
13002 #endif
13003
13004 ; return 0; }
13005 EOF
13006 if { (eval echo configure:13007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13007   rm -rf conftest*
13008   eval "ac_cv_func_$ac_func=yes"
13009 else
13010   echo "configure: failed program was:" >&5
13011   cat conftest.$ac_ext >&5
13012   rm -rf conftest*
13013   eval "ac_cv_func_$ac_func=no"
13014 fi
13015 rm -f conftest*
13016 fi
13017
13018 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13019   echo "$ac_t""yes" 1>&6
13020     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13021   cat >> confdefs.h <<EOF
13022 #define $ac_tr_func 1
13023 EOF
13024  
13025 else
13026   echo "$ac_t""no" 1>&6
13027 fi
13028 done
13029     
13030   else
13031     
13032   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
13033 echo "configure:13034: checking for _isnanf declaration" >&5
13034   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
13035     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
13036   echo $ac_n "(cached) $ac_c" 1>&6
13037 else
13038   
13039       
13040       ac_ext=C
13041 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13042 ac_cpp='$CXXCPP $CPPFLAGS'
13043 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13044 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13045 cross_compiling=$ac_cv_prog_cxx_cross
13046
13047       cat > conftest.$ac_ext <<EOF
13048 #line 13049 "configure"
13049 #include "confdefs.h"
13050 #include <math.h>
13051                       #ifdef HAVE_IEEEFP_H
13052                       #include <ieeefp.h>
13053                       #endif
13054                      
13055 int main() {
13056  _isnanf(0);
13057 ; return 0; }
13058 EOF
13059 if { (eval echo configure:13060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13060   rm -rf conftest*
13061   glibcpp_cv_func__isnanf_use=yes
13062 else
13063   echo "configure: failed program was:" >&5
13064   cat conftest.$ac_ext >&5
13065   rm -rf conftest*
13066   glibcpp_cv_func__isnanf_use=no
13067 fi
13068 rm -f conftest*
13069       ac_ext=c
13070 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13071 ac_cpp='$CPP $CPPFLAGS'
13072 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13073 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13074 cross_compiling=$ac_cv_prog_cc_cross
13075
13076     
13077 fi
13078
13079   fi
13080   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
13081
13082     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
13083       for ac_func in _isnanf
13084 do
13085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13086 echo "configure:13087: checking for $ac_func" >&5
13087 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13088   echo $ac_n "(cached) $ac_c" 1>&6
13089 else
13090   cat > conftest.$ac_ext <<EOF
13091 #line 13092 "configure"
13092 #include "confdefs.h"
13093 /* System header to define __stub macros and hopefully few prototypes,
13094     which can conflict with char $ac_func(); below.  */
13095 #include <assert.h>
13096 /* Override any gcc2 internal prototype to avoid an error.  */
13097 /* We use char because int might match the return type of a gcc2
13098     builtin and then its argument prototype would still apply.  */
13099 char $ac_func();
13100
13101 int main() {
13102
13103 /* The GNU C library defines this for functions which it implements
13104     to always fail with ENOSYS.  Some functions are actually named
13105     something starting with __ and the normal name is an alias.  */
13106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13107 choke me
13108 #else
13109 $ac_func();
13110 #endif
13111
13112 ; return 0; }
13113 EOF
13114 if { (eval echo configure:13115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13115   rm -rf conftest*
13116   eval "ac_cv_func_$ac_func=yes"
13117 else
13118   echo "configure: failed program was:" >&5
13119   cat conftest.$ac_ext >&5
13120   rm -rf conftest*
13121   eval "ac_cv_func_$ac_func=no"
13122 fi
13123 rm -f conftest*
13124 fi
13125
13126 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13127   echo "$ac_t""yes" 1>&6
13128     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13129   cat >> confdefs.h <<EOF
13130 #define $ac_tr_func 1
13131 EOF
13132  
13133 else
13134   echo "$ac_t""no" 1>&6
13135 fi
13136 done
13137     
13138     fi
13139   fi
13140
13141   
13142   
13143   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13144 echo "configure:13145: checking for isinff declaration" >&5
13145   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
13146     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
13147   echo $ac_n "(cached) $ac_c" 1>&6
13148 else
13149   
13150       
13151       ac_ext=C
13152 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13153 ac_cpp='$CXXCPP $CPPFLAGS'
13154 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13155 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13156 cross_compiling=$ac_cv_prog_cxx_cross
13157
13158       cat > conftest.$ac_ext <<EOF
13159 #line 13160 "configure"
13160 #include "confdefs.h"
13161 #include <math.h>
13162                       #ifdef HAVE_IEEEFP_H
13163                       #include <ieeefp.h>
13164                       #endif
13165                      
13166 int main() {
13167  isinff(0);
13168 ; return 0; }
13169 EOF
13170 if { (eval echo configure:13171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13171   rm -rf conftest*
13172   glibcpp_cv_func_isinff_use=yes
13173 else
13174   echo "configure: failed program was:" >&5
13175   cat conftest.$ac_ext >&5
13176   rm -rf conftest*
13177   glibcpp_cv_func_isinff_use=no
13178 fi
13179 rm -f conftest*
13180       ac_ext=c
13181 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13182 ac_cpp='$CPP $CPPFLAGS'
13183 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13184 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13185 cross_compiling=$ac_cv_prog_cc_cross
13186
13187     
13188 fi
13189
13190   fi
13191   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
13192
13193   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
13194     for ac_func in isinff
13195 do
13196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13197 echo "configure:13198: checking for $ac_func" >&5
13198 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13199   echo $ac_n "(cached) $ac_c" 1>&6
13200 else
13201   cat > conftest.$ac_ext <<EOF
13202 #line 13203 "configure"
13203 #include "confdefs.h"
13204 /* System header to define __stub macros and hopefully few prototypes,
13205     which can conflict with char $ac_func(); below.  */
13206 #include <assert.h>
13207 /* Override any gcc2 internal prototype to avoid an error.  */
13208 /* We use char because int might match the return type of a gcc2
13209     builtin and then its argument prototype would still apply.  */
13210 char $ac_func();
13211
13212 int main() {
13213
13214 /* The GNU C library defines this for functions which it implements
13215     to always fail with ENOSYS.  Some functions are actually named
13216     something starting with __ and the normal name is an alias.  */
13217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13218 choke me
13219 #else
13220 $ac_func();
13221 #endif
13222
13223 ; return 0; }
13224 EOF
13225 if { (eval echo configure:13226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13226   rm -rf conftest*
13227   eval "ac_cv_func_$ac_func=yes"
13228 else
13229   echo "configure: failed program was:" >&5
13230   cat conftest.$ac_ext >&5
13231   rm -rf conftest*
13232   eval "ac_cv_func_$ac_func=no"
13233 fi
13234 rm -f conftest*
13235 fi
13236
13237 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13238   echo "$ac_t""yes" 1>&6
13239     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13240   cat >> confdefs.h <<EOF
13241 #define $ac_tr_func 1
13242 EOF
13243  
13244 else
13245   echo "$ac_t""no" 1>&6
13246 fi
13247 done
13248     
13249   else
13250     
13251   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13252 echo "configure:13253: checking for _isinff declaration" >&5
13253   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
13254     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
13255   echo $ac_n "(cached) $ac_c" 1>&6
13256 else
13257   
13258       
13259       ac_ext=C
13260 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13261 ac_cpp='$CXXCPP $CPPFLAGS'
13262 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13263 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13264 cross_compiling=$ac_cv_prog_cxx_cross
13265
13266       cat > conftest.$ac_ext <<EOF
13267 #line 13268 "configure"
13268 #include "confdefs.h"
13269 #include <math.h>
13270                       #ifdef HAVE_IEEEFP_H
13271                       #include <ieeefp.h>
13272                       #endif
13273                      
13274 int main() {
13275  _isinff(0);
13276 ; return 0; }
13277 EOF
13278 if { (eval echo configure:13279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13279   rm -rf conftest*
13280   glibcpp_cv_func__isinff_use=yes
13281 else
13282   echo "configure: failed program was:" >&5
13283   cat conftest.$ac_ext >&5
13284   rm -rf conftest*
13285   glibcpp_cv_func__isinff_use=no
13286 fi
13287 rm -f conftest*
13288       ac_ext=c
13289 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13290 ac_cpp='$CPP $CPPFLAGS'
13291 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13292 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13293 cross_compiling=$ac_cv_prog_cc_cross
13294
13295     
13296 fi
13297
13298   fi
13299   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
13300
13301     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
13302       for ac_func in _isinff
13303 do
13304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13305 echo "configure:13306: checking for $ac_func" >&5
13306 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13307   echo $ac_n "(cached) $ac_c" 1>&6
13308 else
13309   cat > conftest.$ac_ext <<EOF
13310 #line 13311 "configure"
13311 #include "confdefs.h"
13312 /* System header to define __stub macros and hopefully few prototypes,
13313     which can conflict with char $ac_func(); below.  */
13314 #include <assert.h>
13315 /* Override any gcc2 internal prototype to avoid an error.  */
13316 /* We use char because int might match the return type of a gcc2
13317     builtin and then its argument prototype would still apply.  */
13318 char $ac_func();
13319
13320 int main() {
13321
13322 /* The GNU C library defines this for functions which it implements
13323     to always fail with ENOSYS.  Some functions are actually named
13324     something starting with __ and the normal name is an alias.  */
13325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13326 choke me
13327 #else
13328 $ac_func();
13329 #endif
13330
13331 ; return 0; }
13332 EOF
13333 if { (eval echo configure:13334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13334   rm -rf conftest*
13335   eval "ac_cv_func_$ac_func=yes"
13336 else
13337   echo "configure: failed program was:" >&5
13338   cat conftest.$ac_ext >&5
13339   rm -rf conftest*
13340   eval "ac_cv_func_$ac_func=no"
13341 fi
13342 rm -f conftest*
13343 fi
13344
13345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13346   echo "$ac_t""yes" 1>&6
13347     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13348   cat >> confdefs.h <<EOF
13349 #define $ac_tr_func 1
13350 EOF
13351  
13352 else
13353   echo "$ac_t""no" 1>&6
13354 fi
13355 done
13356     
13357     fi
13358   fi
13359
13360   
13361   
13362   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13363 echo "configure:13364: checking for atan2f declaration" >&5
13364   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
13365     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
13366   echo $ac_n "(cached) $ac_c" 1>&6
13367 else
13368   
13369       
13370       ac_ext=C
13371 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13372 ac_cpp='$CXXCPP $CPPFLAGS'
13373 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13374 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13375 cross_compiling=$ac_cv_prog_cxx_cross
13376
13377       cat > conftest.$ac_ext <<EOF
13378 #line 13379 "configure"
13379 #include "confdefs.h"
13380 #include <math.h>
13381 int main() {
13382  atan2f(0, 0);
13383 ; return 0; }
13384 EOF
13385 if { (eval echo configure:13386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13386   rm -rf conftest*
13387   glibcpp_cv_func_atan2f_use=yes
13388 else
13389   echo "configure: failed program was:" >&5
13390   cat conftest.$ac_ext >&5
13391   rm -rf conftest*
13392   glibcpp_cv_func_atan2f_use=no
13393 fi
13394 rm -f conftest*
13395       ac_ext=c
13396 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13397 ac_cpp='$CPP $CPPFLAGS'
13398 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13399 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13400 cross_compiling=$ac_cv_prog_cc_cross
13401
13402     
13403 fi
13404
13405   fi
13406   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
13407
13408   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
13409     for ac_func in atan2f
13410 do
13411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13412 echo "configure:13413: checking for $ac_func" >&5
13413 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13414   echo $ac_n "(cached) $ac_c" 1>&6
13415 else
13416   cat > conftest.$ac_ext <<EOF
13417 #line 13418 "configure"
13418 #include "confdefs.h"
13419 /* System header to define __stub macros and hopefully few prototypes,
13420     which can conflict with char $ac_func(); below.  */
13421 #include <assert.h>
13422 /* Override any gcc2 internal prototype to avoid an error.  */
13423 /* We use char because int might match the return type of a gcc2
13424     builtin and then its argument prototype would still apply.  */
13425 char $ac_func();
13426
13427 int main() {
13428
13429 /* The GNU C library defines this for functions which it implements
13430     to always fail with ENOSYS.  Some functions are actually named
13431     something starting with __ and the normal name is an alias.  */
13432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13433 choke me
13434 #else
13435 $ac_func();
13436 #endif
13437
13438 ; return 0; }
13439 EOF
13440 if { (eval echo configure:13441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13441   rm -rf conftest*
13442   eval "ac_cv_func_$ac_func=yes"
13443 else
13444   echo "configure: failed program was:" >&5
13445   cat conftest.$ac_ext >&5
13446   rm -rf conftest*
13447   eval "ac_cv_func_$ac_func=no"
13448 fi
13449 rm -f conftest*
13450 fi
13451
13452 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13453   echo "$ac_t""yes" 1>&6
13454     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13455   cat >> confdefs.h <<EOF
13456 #define $ac_tr_func 1
13457 EOF
13458  
13459 else
13460   echo "$ac_t""no" 1>&6
13461 fi
13462 done
13463     
13464   else
13465     
13466   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13467 echo "configure:13468: checking for _atan2f declaration" >&5
13468   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
13469     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
13470   echo $ac_n "(cached) $ac_c" 1>&6
13471 else
13472   
13473       
13474       ac_ext=C
13475 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13476 ac_cpp='$CXXCPP $CPPFLAGS'
13477 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13478 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13479 cross_compiling=$ac_cv_prog_cxx_cross
13480
13481       cat > conftest.$ac_ext <<EOF
13482 #line 13483 "configure"
13483 #include "confdefs.h"
13484 #include <math.h>
13485 int main() {
13486  _atan2f(0, 0);
13487 ; return 0; }
13488 EOF
13489 if { (eval echo configure:13490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13490   rm -rf conftest*
13491   glibcpp_cv_func__atan2f_use=yes
13492 else
13493   echo "configure: failed program was:" >&5
13494   cat conftest.$ac_ext >&5
13495   rm -rf conftest*
13496   glibcpp_cv_func__atan2f_use=no
13497 fi
13498 rm -f conftest*
13499       ac_ext=c
13500 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13501 ac_cpp='$CPP $CPPFLAGS'
13502 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13503 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13504 cross_compiling=$ac_cv_prog_cc_cross
13505
13506     
13507 fi
13508
13509   fi
13510   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
13511
13512     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
13513       for ac_func in _atan2f
13514 do
13515 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13516 echo "configure:13517: checking for $ac_func" >&5
13517 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13518   echo $ac_n "(cached) $ac_c" 1>&6
13519 else
13520   cat > conftest.$ac_ext <<EOF
13521 #line 13522 "configure"
13522 #include "confdefs.h"
13523 /* System header to define __stub macros and hopefully few prototypes,
13524     which can conflict with char $ac_func(); below.  */
13525 #include <assert.h>
13526 /* Override any gcc2 internal prototype to avoid an error.  */
13527 /* We use char because int might match the return type of a gcc2
13528     builtin and then its argument prototype would still apply.  */
13529 char $ac_func();
13530
13531 int main() {
13532
13533 /* The GNU C library defines this for functions which it implements
13534     to always fail with ENOSYS.  Some functions are actually named
13535     something starting with __ and the normal name is an alias.  */
13536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13537 choke me
13538 #else
13539 $ac_func();
13540 #endif
13541
13542 ; return 0; }
13543 EOF
13544 if { (eval echo configure:13545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13545   rm -rf conftest*
13546   eval "ac_cv_func_$ac_func=yes"
13547 else
13548   echo "configure: failed program was:" >&5
13549   cat conftest.$ac_ext >&5
13550   rm -rf conftest*
13551   eval "ac_cv_func_$ac_func=no"
13552 fi
13553 rm -f conftest*
13554 fi
13555
13556 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13557   echo "$ac_t""yes" 1>&6
13558     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13559   cat >> confdefs.h <<EOF
13560 #define $ac_tr_func 1
13561 EOF
13562  
13563 else
13564   echo "$ac_t""no" 1>&6
13565 fi
13566 done
13567     
13568     fi
13569   fi
13570
13571   
13572   
13573   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13574 echo "configure:13575: checking for fabsf declaration" >&5
13575   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
13576     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
13577   echo $ac_n "(cached) $ac_c" 1>&6
13578 else
13579   
13580       
13581       ac_ext=C
13582 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13583 ac_cpp='$CXXCPP $CPPFLAGS'
13584 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13585 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13586 cross_compiling=$ac_cv_prog_cxx_cross
13587
13588       cat > conftest.$ac_ext <<EOF
13589 #line 13590 "configure"
13590 #include "confdefs.h"
13591 #include <math.h>
13592                       #ifdef HAVE_IEEEFP_H
13593                       #include <ieeefp.h>
13594                       #endif
13595                      
13596 int main() {
13597  fabsf(0);
13598 ; return 0; }
13599 EOF
13600 if { (eval echo configure:13601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13601   rm -rf conftest*
13602   glibcpp_cv_func_fabsf_use=yes
13603 else
13604   echo "configure: failed program was:" >&5
13605   cat conftest.$ac_ext >&5
13606   rm -rf conftest*
13607   glibcpp_cv_func_fabsf_use=no
13608 fi
13609 rm -f conftest*
13610       ac_ext=c
13611 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13612 ac_cpp='$CPP $CPPFLAGS'
13613 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13614 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13615 cross_compiling=$ac_cv_prog_cc_cross
13616
13617     
13618 fi
13619
13620   fi
13621   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
13622
13623   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
13624     for ac_func in fabsf
13625 do
13626 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13627 echo "configure:13628: checking for $ac_func" >&5
13628 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13629   echo $ac_n "(cached) $ac_c" 1>&6
13630 else
13631   cat > conftest.$ac_ext <<EOF
13632 #line 13633 "configure"
13633 #include "confdefs.h"
13634 /* System header to define __stub macros and hopefully few prototypes,
13635     which can conflict with char $ac_func(); below.  */
13636 #include <assert.h>
13637 /* Override any gcc2 internal prototype to avoid an error.  */
13638 /* We use char because int might match the return type of a gcc2
13639     builtin and then its argument prototype would still apply.  */
13640 char $ac_func();
13641
13642 int main() {
13643
13644 /* The GNU C library defines this for functions which it implements
13645     to always fail with ENOSYS.  Some functions are actually named
13646     something starting with __ and the normal name is an alias.  */
13647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13648 choke me
13649 #else
13650 $ac_func();
13651 #endif
13652
13653 ; return 0; }
13654 EOF
13655 if { (eval echo configure:13656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13656   rm -rf conftest*
13657   eval "ac_cv_func_$ac_func=yes"
13658 else
13659   echo "configure: failed program was:" >&5
13660   cat conftest.$ac_ext >&5
13661   rm -rf conftest*
13662   eval "ac_cv_func_$ac_func=no"
13663 fi
13664 rm -f conftest*
13665 fi
13666
13667 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13668   echo "$ac_t""yes" 1>&6
13669     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13670   cat >> confdefs.h <<EOF
13671 #define $ac_tr_func 1
13672 EOF
13673  
13674 else
13675   echo "$ac_t""no" 1>&6
13676 fi
13677 done
13678     
13679   else
13680     
13681   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13682 echo "configure:13683: checking for _fabsf declaration" >&5
13683   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
13684     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
13685   echo $ac_n "(cached) $ac_c" 1>&6
13686 else
13687   
13688       
13689       ac_ext=C
13690 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13691 ac_cpp='$CXXCPP $CPPFLAGS'
13692 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13693 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13694 cross_compiling=$ac_cv_prog_cxx_cross
13695
13696       cat > conftest.$ac_ext <<EOF
13697 #line 13698 "configure"
13698 #include "confdefs.h"
13699 #include <math.h>
13700                       #ifdef HAVE_IEEEFP_H
13701                       #include <ieeefp.h>
13702                       #endif
13703                      
13704 int main() {
13705  _fabsf(0);
13706 ; return 0; }
13707 EOF
13708 if { (eval echo configure:13709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13709   rm -rf conftest*
13710   glibcpp_cv_func__fabsf_use=yes
13711 else
13712   echo "configure: failed program was:" >&5
13713   cat conftest.$ac_ext >&5
13714   rm -rf conftest*
13715   glibcpp_cv_func__fabsf_use=no
13716 fi
13717 rm -f conftest*
13718       ac_ext=c
13719 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13720 ac_cpp='$CPP $CPPFLAGS'
13721 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13722 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13723 cross_compiling=$ac_cv_prog_cc_cross
13724
13725     
13726 fi
13727
13728   fi
13729   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
13730
13731     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
13732       for ac_func in _fabsf
13733 do
13734 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13735 echo "configure:13736: checking for $ac_func" >&5
13736 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13737   echo $ac_n "(cached) $ac_c" 1>&6
13738 else
13739   cat > conftest.$ac_ext <<EOF
13740 #line 13741 "configure"
13741 #include "confdefs.h"
13742 /* System header to define __stub macros and hopefully few prototypes,
13743     which can conflict with char $ac_func(); below.  */
13744 #include <assert.h>
13745 /* Override any gcc2 internal prototype to avoid an error.  */
13746 /* We use char because int might match the return type of a gcc2
13747     builtin and then its argument prototype would still apply.  */
13748 char $ac_func();
13749
13750 int main() {
13751
13752 /* The GNU C library defines this for functions which it implements
13753     to always fail with ENOSYS.  Some functions are actually named
13754     something starting with __ and the normal name is an alias.  */
13755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13756 choke me
13757 #else
13758 $ac_func();
13759 #endif
13760
13761 ; return 0; }
13762 EOF
13763 if { (eval echo configure:13764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13764   rm -rf conftest*
13765   eval "ac_cv_func_$ac_func=yes"
13766 else
13767   echo "configure: failed program was:" >&5
13768   cat conftest.$ac_ext >&5
13769   rm -rf conftest*
13770   eval "ac_cv_func_$ac_func=no"
13771 fi
13772 rm -f conftest*
13773 fi
13774
13775 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13776   echo "$ac_t""yes" 1>&6
13777     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13778   cat >> confdefs.h <<EOF
13779 #define $ac_tr_func 1
13780 EOF
13781  
13782 else
13783   echo "$ac_t""no" 1>&6
13784 fi
13785 done
13786     
13787     fi
13788   fi
13789
13790   
13791   
13792   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13793 echo "configure:13794: checking for fmodf declaration" >&5
13794   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
13795     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
13796   echo $ac_n "(cached) $ac_c" 1>&6
13797 else
13798   
13799       
13800       ac_ext=C
13801 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13802 ac_cpp='$CXXCPP $CPPFLAGS'
13803 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13804 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13805 cross_compiling=$ac_cv_prog_cxx_cross
13806
13807       cat > conftest.$ac_ext <<EOF
13808 #line 13809 "configure"
13809 #include "confdefs.h"
13810 #include <math.h>
13811 int main() {
13812  fmodf(0, 0);
13813 ; return 0; }
13814 EOF
13815 if { (eval echo configure:13816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13816   rm -rf conftest*
13817   glibcpp_cv_func_fmodf_use=yes
13818 else
13819   echo "configure: failed program was:" >&5
13820   cat conftest.$ac_ext >&5
13821   rm -rf conftest*
13822   glibcpp_cv_func_fmodf_use=no
13823 fi
13824 rm -f conftest*
13825       ac_ext=c
13826 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13827 ac_cpp='$CPP $CPPFLAGS'
13828 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13829 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13830 cross_compiling=$ac_cv_prog_cc_cross
13831
13832     
13833 fi
13834
13835   fi
13836   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
13837
13838   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
13839     for ac_func in fmodf
13840 do
13841 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13842 echo "configure:13843: checking for $ac_func" >&5
13843 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13844   echo $ac_n "(cached) $ac_c" 1>&6
13845 else
13846   cat > conftest.$ac_ext <<EOF
13847 #line 13848 "configure"
13848 #include "confdefs.h"
13849 /* System header to define __stub macros and hopefully few prototypes,
13850     which can conflict with char $ac_func(); below.  */
13851 #include <assert.h>
13852 /* Override any gcc2 internal prototype to avoid an error.  */
13853 /* We use char because int might match the return type of a gcc2
13854     builtin and then its argument prototype would still apply.  */
13855 char $ac_func();
13856
13857 int main() {
13858
13859 /* The GNU C library defines this for functions which it implements
13860     to always fail with ENOSYS.  Some functions are actually named
13861     something starting with __ and the normal name is an alias.  */
13862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13863 choke me
13864 #else
13865 $ac_func();
13866 #endif
13867
13868 ; return 0; }
13869 EOF
13870 if { (eval echo configure:13871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13871   rm -rf conftest*
13872   eval "ac_cv_func_$ac_func=yes"
13873 else
13874   echo "configure: failed program was:" >&5
13875   cat conftest.$ac_ext >&5
13876   rm -rf conftest*
13877   eval "ac_cv_func_$ac_func=no"
13878 fi
13879 rm -f conftest*
13880 fi
13881
13882 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13883   echo "$ac_t""yes" 1>&6
13884     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13885   cat >> confdefs.h <<EOF
13886 #define $ac_tr_func 1
13887 EOF
13888  
13889 else
13890   echo "$ac_t""no" 1>&6
13891 fi
13892 done
13893     
13894   else
13895     
13896   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
13897 echo "configure:13898: checking for _fmodf declaration" >&5
13898   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
13899     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
13900   echo $ac_n "(cached) $ac_c" 1>&6
13901 else
13902   
13903       
13904       ac_ext=C
13905 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13906 ac_cpp='$CXXCPP $CPPFLAGS'
13907 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13908 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13909 cross_compiling=$ac_cv_prog_cxx_cross
13910
13911       cat > conftest.$ac_ext <<EOF
13912 #line 13913 "configure"
13913 #include "confdefs.h"
13914 #include <math.h>
13915 int main() {
13916  _fmodf(0, 0);
13917 ; return 0; }
13918 EOF
13919 if { (eval echo configure:13920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13920   rm -rf conftest*
13921   glibcpp_cv_func__fmodf_use=yes
13922 else
13923   echo "configure: failed program was:" >&5
13924   cat conftest.$ac_ext >&5
13925   rm -rf conftest*
13926   glibcpp_cv_func__fmodf_use=no
13927 fi
13928 rm -f conftest*
13929       ac_ext=c
13930 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13931 ac_cpp='$CPP $CPPFLAGS'
13932 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13933 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13934 cross_compiling=$ac_cv_prog_cc_cross
13935
13936     
13937 fi
13938
13939   fi
13940   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
13941
13942     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
13943       for ac_func in _fmodf
13944 do
13945 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13946 echo "configure:13947: checking for $ac_func" >&5
13947 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13948   echo $ac_n "(cached) $ac_c" 1>&6
13949 else
13950   cat > conftest.$ac_ext <<EOF
13951 #line 13952 "configure"
13952 #include "confdefs.h"
13953 /* System header to define __stub macros and hopefully few prototypes,
13954     which can conflict with char $ac_func(); below.  */
13955 #include <assert.h>
13956 /* Override any gcc2 internal prototype to avoid an error.  */
13957 /* We use char because int might match the return type of a gcc2
13958     builtin and then its argument prototype would still apply.  */
13959 char $ac_func();
13960
13961 int main() {
13962
13963 /* The GNU C library defines this for functions which it implements
13964     to always fail with ENOSYS.  Some functions are actually named
13965     something starting with __ and the normal name is an alias.  */
13966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13967 choke me
13968 #else
13969 $ac_func();
13970 #endif
13971
13972 ; return 0; }
13973 EOF
13974 if { (eval echo configure:13975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13975   rm -rf conftest*
13976   eval "ac_cv_func_$ac_func=yes"
13977 else
13978   echo "configure: failed program was:" >&5
13979   cat conftest.$ac_ext >&5
13980   rm -rf conftest*
13981   eval "ac_cv_func_$ac_func=no"
13982 fi
13983 rm -f conftest*
13984 fi
13985
13986 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13987   echo "$ac_t""yes" 1>&6
13988     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13989   cat >> confdefs.h <<EOF
13990 #define $ac_tr_func 1
13991 EOF
13992  
13993 else
13994   echo "$ac_t""no" 1>&6
13995 fi
13996 done
13997     
13998     fi
13999   fi
14000
14001   
14002   
14003   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
14004 echo "configure:14005: checking for frexpf declaration" >&5
14005   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
14006     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
14007   echo $ac_n "(cached) $ac_c" 1>&6
14008 else
14009   
14010       
14011       ac_ext=C
14012 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14013 ac_cpp='$CXXCPP $CPPFLAGS'
14014 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14015 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14016 cross_compiling=$ac_cv_prog_cxx_cross
14017
14018       cat > conftest.$ac_ext <<EOF
14019 #line 14020 "configure"
14020 #include "confdefs.h"
14021 #include <math.h>
14022 int main() {
14023  frexpf(0, 0);
14024 ; return 0; }
14025 EOF
14026 if { (eval echo configure:14027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14027   rm -rf conftest*
14028   glibcpp_cv_func_frexpf_use=yes
14029 else
14030   echo "configure: failed program was:" >&5
14031   cat conftest.$ac_ext >&5
14032   rm -rf conftest*
14033   glibcpp_cv_func_frexpf_use=no
14034 fi
14035 rm -f conftest*
14036       ac_ext=c
14037 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14038 ac_cpp='$CPP $CPPFLAGS'
14039 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14040 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14041 cross_compiling=$ac_cv_prog_cc_cross
14042
14043     
14044 fi
14045
14046   fi
14047   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
14048
14049   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
14050     for ac_func in frexpf
14051 do
14052 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14053 echo "configure:14054: checking for $ac_func" >&5
14054 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14055   echo $ac_n "(cached) $ac_c" 1>&6
14056 else
14057   cat > conftest.$ac_ext <<EOF
14058 #line 14059 "configure"
14059 #include "confdefs.h"
14060 /* System header to define __stub macros and hopefully few prototypes,
14061     which can conflict with char $ac_func(); below.  */
14062 #include <assert.h>
14063 /* Override any gcc2 internal prototype to avoid an error.  */
14064 /* We use char because int might match the return type of a gcc2
14065     builtin and then its argument prototype would still apply.  */
14066 char $ac_func();
14067
14068 int main() {
14069
14070 /* The GNU C library defines this for functions which it implements
14071     to always fail with ENOSYS.  Some functions are actually named
14072     something starting with __ and the normal name is an alias.  */
14073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14074 choke me
14075 #else
14076 $ac_func();
14077 #endif
14078
14079 ; return 0; }
14080 EOF
14081 if { (eval echo configure:14082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14082   rm -rf conftest*
14083   eval "ac_cv_func_$ac_func=yes"
14084 else
14085   echo "configure: failed program was:" >&5
14086   cat conftest.$ac_ext >&5
14087   rm -rf conftest*
14088   eval "ac_cv_func_$ac_func=no"
14089 fi
14090 rm -f conftest*
14091 fi
14092
14093 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14094   echo "$ac_t""yes" 1>&6
14095     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14096   cat >> confdefs.h <<EOF
14097 #define $ac_tr_func 1
14098 EOF
14099  
14100 else
14101   echo "$ac_t""no" 1>&6
14102 fi
14103 done
14104     
14105   else
14106     
14107   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14108 echo "configure:14109: checking for _frexpf declaration" >&5
14109   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
14110     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
14111   echo $ac_n "(cached) $ac_c" 1>&6
14112 else
14113   
14114       
14115       ac_ext=C
14116 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14117 ac_cpp='$CXXCPP $CPPFLAGS'
14118 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14119 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14120 cross_compiling=$ac_cv_prog_cxx_cross
14121
14122       cat > conftest.$ac_ext <<EOF
14123 #line 14124 "configure"
14124 #include "confdefs.h"
14125 #include <math.h>
14126 int main() {
14127  _frexpf(0, 0);
14128 ; return 0; }
14129 EOF
14130 if { (eval echo configure:14131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14131   rm -rf conftest*
14132   glibcpp_cv_func__frexpf_use=yes
14133 else
14134   echo "configure: failed program was:" >&5
14135   cat conftest.$ac_ext >&5
14136   rm -rf conftest*
14137   glibcpp_cv_func__frexpf_use=no
14138 fi
14139 rm -f conftest*
14140       ac_ext=c
14141 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14142 ac_cpp='$CPP $CPPFLAGS'
14143 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14144 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14145 cross_compiling=$ac_cv_prog_cc_cross
14146
14147     
14148 fi
14149
14150   fi
14151   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
14152
14153     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
14154       for ac_func in _frexpf
14155 do
14156 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14157 echo "configure:14158: checking for $ac_func" >&5
14158 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14159   echo $ac_n "(cached) $ac_c" 1>&6
14160 else
14161   cat > conftest.$ac_ext <<EOF
14162 #line 14163 "configure"
14163 #include "confdefs.h"
14164 /* System header to define __stub macros and hopefully few prototypes,
14165     which can conflict with char $ac_func(); below.  */
14166 #include <assert.h>
14167 /* Override any gcc2 internal prototype to avoid an error.  */
14168 /* We use char because int might match the return type of a gcc2
14169     builtin and then its argument prototype would still apply.  */
14170 char $ac_func();
14171
14172 int main() {
14173
14174 /* The GNU C library defines this for functions which it implements
14175     to always fail with ENOSYS.  Some functions are actually named
14176     something starting with __ and the normal name is an alias.  */
14177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14178 choke me
14179 #else
14180 $ac_func();
14181 #endif
14182
14183 ; return 0; }
14184 EOF
14185 if { (eval echo configure:14186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14186   rm -rf conftest*
14187   eval "ac_cv_func_$ac_func=yes"
14188 else
14189   echo "configure: failed program was:" >&5
14190   cat conftest.$ac_ext >&5
14191   rm -rf conftest*
14192   eval "ac_cv_func_$ac_func=no"
14193 fi
14194 rm -f conftest*
14195 fi
14196
14197 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14198   echo "$ac_t""yes" 1>&6
14199     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14200   cat >> confdefs.h <<EOF
14201 #define $ac_tr_func 1
14202 EOF
14203  
14204 else
14205   echo "$ac_t""no" 1>&6
14206 fi
14207 done
14208     
14209     fi
14210   fi
14211
14212   
14213   
14214   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14215 echo "configure:14216: checking for hypotf declaration" >&5
14216   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
14217     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
14218   echo $ac_n "(cached) $ac_c" 1>&6
14219 else
14220   
14221       
14222       ac_ext=C
14223 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14224 ac_cpp='$CXXCPP $CPPFLAGS'
14225 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14226 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14227 cross_compiling=$ac_cv_prog_cxx_cross
14228
14229       cat > conftest.$ac_ext <<EOF
14230 #line 14231 "configure"
14231 #include "confdefs.h"
14232 #include <math.h>
14233 int main() {
14234  hypotf(0, 0);
14235 ; return 0; }
14236 EOF
14237 if { (eval echo configure:14238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14238   rm -rf conftest*
14239   glibcpp_cv_func_hypotf_use=yes
14240 else
14241   echo "configure: failed program was:" >&5
14242   cat conftest.$ac_ext >&5
14243   rm -rf conftest*
14244   glibcpp_cv_func_hypotf_use=no
14245 fi
14246 rm -f conftest*
14247       ac_ext=c
14248 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14249 ac_cpp='$CPP $CPPFLAGS'
14250 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14251 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14252 cross_compiling=$ac_cv_prog_cc_cross
14253
14254     
14255 fi
14256
14257   fi
14258   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
14259
14260   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
14261     for ac_func in hypotf
14262 do
14263 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14264 echo "configure:14265: checking for $ac_func" >&5
14265 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14266   echo $ac_n "(cached) $ac_c" 1>&6
14267 else
14268   cat > conftest.$ac_ext <<EOF
14269 #line 14270 "configure"
14270 #include "confdefs.h"
14271 /* System header to define __stub macros and hopefully few prototypes,
14272     which can conflict with char $ac_func(); below.  */
14273 #include <assert.h>
14274 /* Override any gcc2 internal prototype to avoid an error.  */
14275 /* We use char because int might match the return type of a gcc2
14276     builtin and then its argument prototype would still apply.  */
14277 char $ac_func();
14278
14279 int main() {
14280
14281 /* The GNU C library defines this for functions which it implements
14282     to always fail with ENOSYS.  Some functions are actually named
14283     something starting with __ and the normal name is an alias.  */
14284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14285 choke me
14286 #else
14287 $ac_func();
14288 #endif
14289
14290 ; return 0; }
14291 EOF
14292 if { (eval echo configure:14293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14293   rm -rf conftest*
14294   eval "ac_cv_func_$ac_func=yes"
14295 else
14296   echo "configure: failed program was:" >&5
14297   cat conftest.$ac_ext >&5
14298   rm -rf conftest*
14299   eval "ac_cv_func_$ac_func=no"
14300 fi
14301 rm -f conftest*
14302 fi
14303
14304 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14305   echo "$ac_t""yes" 1>&6
14306     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14307   cat >> confdefs.h <<EOF
14308 #define $ac_tr_func 1
14309 EOF
14310  
14311 else
14312   echo "$ac_t""no" 1>&6
14313 fi
14314 done
14315     
14316   else
14317     
14318   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14319 echo "configure:14320: checking for _hypotf declaration" >&5
14320   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
14321     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
14322   echo $ac_n "(cached) $ac_c" 1>&6
14323 else
14324   
14325       
14326       ac_ext=C
14327 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14328 ac_cpp='$CXXCPP $CPPFLAGS'
14329 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14330 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14331 cross_compiling=$ac_cv_prog_cxx_cross
14332
14333       cat > conftest.$ac_ext <<EOF
14334 #line 14335 "configure"
14335 #include "confdefs.h"
14336 #include <math.h>
14337 int main() {
14338  _hypotf(0, 0);
14339 ; return 0; }
14340 EOF
14341 if { (eval echo configure:14342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14342   rm -rf conftest*
14343   glibcpp_cv_func__hypotf_use=yes
14344 else
14345   echo "configure: failed program was:" >&5
14346   cat conftest.$ac_ext >&5
14347   rm -rf conftest*
14348   glibcpp_cv_func__hypotf_use=no
14349 fi
14350 rm -f conftest*
14351       ac_ext=c
14352 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14353 ac_cpp='$CPP $CPPFLAGS'
14354 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14355 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14356 cross_compiling=$ac_cv_prog_cc_cross
14357
14358     
14359 fi
14360
14361   fi
14362   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
14363
14364     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
14365       for ac_func in _hypotf
14366 do
14367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14368 echo "configure:14369: checking for $ac_func" >&5
14369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14370   echo $ac_n "(cached) $ac_c" 1>&6
14371 else
14372   cat > conftest.$ac_ext <<EOF
14373 #line 14374 "configure"
14374 #include "confdefs.h"
14375 /* System header to define __stub macros and hopefully few prototypes,
14376     which can conflict with char $ac_func(); below.  */
14377 #include <assert.h>
14378 /* Override any gcc2 internal prototype to avoid an error.  */
14379 /* We use char because int might match the return type of a gcc2
14380     builtin and then its argument prototype would still apply.  */
14381 char $ac_func();
14382
14383 int main() {
14384
14385 /* The GNU C library defines this for functions which it implements
14386     to always fail with ENOSYS.  Some functions are actually named
14387     something starting with __ and the normal name is an alias.  */
14388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14389 choke me
14390 #else
14391 $ac_func();
14392 #endif
14393
14394 ; return 0; }
14395 EOF
14396 if { (eval echo configure:14397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14397   rm -rf conftest*
14398   eval "ac_cv_func_$ac_func=yes"
14399 else
14400   echo "configure: failed program was:" >&5
14401   cat conftest.$ac_ext >&5
14402   rm -rf conftest*
14403   eval "ac_cv_func_$ac_func=no"
14404 fi
14405 rm -f conftest*
14406 fi
14407
14408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14409   echo "$ac_t""yes" 1>&6
14410     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14411   cat >> confdefs.h <<EOF
14412 #define $ac_tr_func 1
14413 EOF
14414  
14415 else
14416   echo "$ac_t""no" 1>&6
14417 fi
14418 done
14419     
14420     fi
14421   fi
14422
14423   
14424   
14425   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14426 echo "configure:14427: checking for ldexpf declaration" >&5
14427   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
14428     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
14429   echo $ac_n "(cached) $ac_c" 1>&6
14430 else
14431   
14432       
14433       ac_ext=C
14434 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14435 ac_cpp='$CXXCPP $CPPFLAGS'
14436 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14437 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14438 cross_compiling=$ac_cv_prog_cxx_cross
14439
14440       cat > conftest.$ac_ext <<EOF
14441 #line 14442 "configure"
14442 #include "confdefs.h"
14443 #include <math.h>
14444 int main() {
14445  ldexpf(0, 0);
14446 ; return 0; }
14447 EOF
14448 if { (eval echo configure:14449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14449   rm -rf conftest*
14450   glibcpp_cv_func_ldexpf_use=yes
14451 else
14452   echo "configure: failed program was:" >&5
14453   cat conftest.$ac_ext >&5
14454   rm -rf conftest*
14455   glibcpp_cv_func_ldexpf_use=no
14456 fi
14457 rm -f conftest*
14458       ac_ext=c
14459 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14460 ac_cpp='$CPP $CPPFLAGS'
14461 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14462 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14463 cross_compiling=$ac_cv_prog_cc_cross
14464
14465     
14466 fi
14467
14468   fi
14469   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
14470
14471   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
14472     for ac_func in ldexpf
14473 do
14474 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14475 echo "configure:14476: checking for $ac_func" >&5
14476 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14477   echo $ac_n "(cached) $ac_c" 1>&6
14478 else
14479   cat > conftest.$ac_ext <<EOF
14480 #line 14481 "configure"
14481 #include "confdefs.h"
14482 /* System header to define __stub macros and hopefully few prototypes,
14483     which can conflict with char $ac_func(); below.  */
14484 #include <assert.h>
14485 /* Override any gcc2 internal prototype to avoid an error.  */
14486 /* We use char because int might match the return type of a gcc2
14487     builtin and then its argument prototype would still apply.  */
14488 char $ac_func();
14489
14490 int main() {
14491
14492 /* The GNU C library defines this for functions which it implements
14493     to always fail with ENOSYS.  Some functions are actually named
14494     something starting with __ and the normal name is an alias.  */
14495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14496 choke me
14497 #else
14498 $ac_func();
14499 #endif
14500
14501 ; return 0; }
14502 EOF
14503 if { (eval echo configure:14504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14504   rm -rf conftest*
14505   eval "ac_cv_func_$ac_func=yes"
14506 else
14507   echo "configure: failed program was:" >&5
14508   cat conftest.$ac_ext >&5
14509   rm -rf conftest*
14510   eval "ac_cv_func_$ac_func=no"
14511 fi
14512 rm -f conftest*
14513 fi
14514
14515 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14516   echo "$ac_t""yes" 1>&6
14517     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14518   cat >> confdefs.h <<EOF
14519 #define $ac_tr_func 1
14520 EOF
14521  
14522 else
14523   echo "$ac_t""no" 1>&6
14524 fi
14525 done
14526     
14527   else
14528     
14529   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14530 echo "configure:14531: checking for _ldexpf declaration" >&5
14531   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
14532     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
14533   echo $ac_n "(cached) $ac_c" 1>&6
14534 else
14535   
14536       
14537       ac_ext=C
14538 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14539 ac_cpp='$CXXCPP $CPPFLAGS'
14540 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14541 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14542 cross_compiling=$ac_cv_prog_cxx_cross
14543
14544       cat > conftest.$ac_ext <<EOF
14545 #line 14546 "configure"
14546 #include "confdefs.h"
14547 #include <math.h>
14548 int main() {
14549  _ldexpf(0, 0);
14550 ; return 0; }
14551 EOF
14552 if { (eval echo configure:14553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14553   rm -rf conftest*
14554   glibcpp_cv_func__ldexpf_use=yes
14555 else
14556   echo "configure: failed program was:" >&5
14557   cat conftest.$ac_ext >&5
14558   rm -rf conftest*
14559   glibcpp_cv_func__ldexpf_use=no
14560 fi
14561 rm -f conftest*
14562       ac_ext=c
14563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14564 ac_cpp='$CPP $CPPFLAGS'
14565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14566 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14567 cross_compiling=$ac_cv_prog_cc_cross
14568
14569     
14570 fi
14571
14572   fi
14573   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
14574
14575     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
14576       for ac_func in _ldexpf
14577 do
14578 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14579 echo "configure:14580: checking for $ac_func" >&5
14580 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14581   echo $ac_n "(cached) $ac_c" 1>&6
14582 else
14583   cat > conftest.$ac_ext <<EOF
14584 #line 14585 "configure"
14585 #include "confdefs.h"
14586 /* System header to define __stub macros and hopefully few prototypes,
14587     which can conflict with char $ac_func(); below.  */
14588 #include <assert.h>
14589 /* Override any gcc2 internal prototype to avoid an error.  */
14590 /* We use char because int might match the return type of a gcc2
14591     builtin and then its argument prototype would still apply.  */
14592 char $ac_func();
14593
14594 int main() {
14595
14596 /* The GNU C library defines this for functions which it implements
14597     to always fail with ENOSYS.  Some functions are actually named
14598     something starting with __ and the normal name is an alias.  */
14599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14600 choke me
14601 #else
14602 $ac_func();
14603 #endif
14604
14605 ; return 0; }
14606 EOF
14607 if { (eval echo configure:14608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14608   rm -rf conftest*
14609   eval "ac_cv_func_$ac_func=yes"
14610 else
14611   echo "configure: failed program was:" >&5
14612   cat conftest.$ac_ext >&5
14613   rm -rf conftest*
14614   eval "ac_cv_func_$ac_func=no"
14615 fi
14616 rm -f conftest*
14617 fi
14618
14619 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14620   echo "$ac_t""yes" 1>&6
14621     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14622   cat >> confdefs.h <<EOF
14623 #define $ac_tr_func 1
14624 EOF
14625  
14626 else
14627   echo "$ac_t""no" 1>&6
14628 fi
14629 done
14630     
14631     fi
14632   fi
14633
14634   
14635   
14636   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14637 echo "configure:14638: checking for logf declaration" >&5
14638   if test x${glibcpp_cv_func_logf_use+set} != xset; then
14639     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
14640   echo $ac_n "(cached) $ac_c" 1>&6
14641 else
14642   
14643       
14644       ac_ext=C
14645 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14646 ac_cpp='$CXXCPP $CPPFLAGS'
14647 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14648 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14649 cross_compiling=$ac_cv_prog_cxx_cross
14650
14651       cat > conftest.$ac_ext <<EOF
14652 #line 14653 "configure"
14653 #include "confdefs.h"
14654 #include <math.h>
14655                       #ifdef HAVE_IEEEFP_H
14656                       #include <ieeefp.h>
14657                       #endif
14658                      
14659 int main() {
14660  logf(0);
14661 ; return 0; }
14662 EOF
14663 if { (eval echo configure:14664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14664   rm -rf conftest*
14665   glibcpp_cv_func_logf_use=yes
14666 else
14667   echo "configure: failed program was:" >&5
14668   cat conftest.$ac_ext >&5
14669   rm -rf conftest*
14670   glibcpp_cv_func_logf_use=no
14671 fi
14672 rm -f conftest*
14673       ac_ext=c
14674 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14675 ac_cpp='$CPP $CPPFLAGS'
14676 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14677 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14678 cross_compiling=$ac_cv_prog_cc_cross
14679
14680     
14681 fi
14682
14683   fi
14684   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
14685
14686   if test x$glibcpp_cv_func_logf_use = x"yes"; then
14687     for ac_func in logf
14688 do
14689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14690 echo "configure:14691: checking for $ac_func" >&5
14691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14692   echo $ac_n "(cached) $ac_c" 1>&6
14693 else
14694   cat > conftest.$ac_ext <<EOF
14695 #line 14696 "configure"
14696 #include "confdefs.h"
14697 /* System header to define __stub macros and hopefully few prototypes,
14698     which can conflict with char $ac_func(); below.  */
14699 #include <assert.h>
14700 /* Override any gcc2 internal prototype to avoid an error.  */
14701 /* We use char because int might match the return type of a gcc2
14702     builtin and then its argument prototype would still apply.  */
14703 char $ac_func();
14704
14705 int main() {
14706
14707 /* The GNU C library defines this for functions which it implements
14708     to always fail with ENOSYS.  Some functions are actually named
14709     something starting with __ and the normal name is an alias.  */
14710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14711 choke me
14712 #else
14713 $ac_func();
14714 #endif
14715
14716 ; return 0; }
14717 EOF
14718 if { (eval echo configure:14719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14719   rm -rf conftest*
14720   eval "ac_cv_func_$ac_func=yes"
14721 else
14722   echo "configure: failed program was:" >&5
14723   cat conftest.$ac_ext >&5
14724   rm -rf conftest*
14725   eval "ac_cv_func_$ac_func=no"
14726 fi
14727 rm -f conftest*
14728 fi
14729
14730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14731   echo "$ac_t""yes" 1>&6
14732     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14733   cat >> confdefs.h <<EOF
14734 #define $ac_tr_func 1
14735 EOF
14736  
14737 else
14738   echo "$ac_t""no" 1>&6
14739 fi
14740 done
14741     
14742   else
14743     
14744   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14745 echo "configure:14746: checking for _logf declaration" >&5
14746   if test x${glibcpp_cv_func__logf_use+set} != xset; then
14747     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
14748   echo $ac_n "(cached) $ac_c" 1>&6
14749 else
14750   
14751       
14752       ac_ext=C
14753 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14754 ac_cpp='$CXXCPP $CPPFLAGS'
14755 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14756 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14757 cross_compiling=$ac_cv_prog_cxx_cross
14758
14759       cat > conftest.$ac_ext <<EOF
14760 #line 14761 "configure"
14761 #include "confdefs.h"
14762 #include <math.h>
14763                       #ifdef HAVE_IEEEFP_H
14764                       #include <ieeefp.h>
14765                       #endif
14766                      
14767 int main() {
14768  _logf(0);
14769 ; return 0; }
14770 EOF
14771 if { (eval echo configure:14772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14772   rm -rf conftest*
14773   glibcpp_cv_func__logf_use=yes
14774 else
14775   echo "configure: failed program was:" >&5
14776   cat conftest.$ac_ext >&5
14777   rm -rf conftest*
14778   glibcpp_cv_func__logf_use=no
14779 fi
14780 rm -f conftest*
14781       ac_ext=c
14782 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14783 ac_cpp='$CPP $CPPFLAGS'
14784 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14785 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14786 cross_compiling=$ac_cv_prog_cc_cross
14787
14788     
14789 fi
14790
14791   fi
14792   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
14793
14794     if test x$glibcpp_cv_func__logf_use = x"yes"; then
14795       for ac_func in _logf
14796 do
14797 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14798 echo "configure:14799: checking for $ac_func" >&5
14799 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14800   echo $ac_n "(cached) $ac_c" 1>&6
14801 else
14802   cat > conftest.$ac_ext <<EOF
14803 #line 14804 "configure"
14804 #include "confdefs.h"
14805 /* System header to define __stub macros and hopefully few prototypes,
14806     which can conflict with char $ac_func(); below.  */
14807 #include <assert.h>
14808 /* Override any gcc2 internal prototype to avoid an error.  */
14809 /* We use char because int might match the return type of a gcc2
14810     builtin and then its argument prototype would still apply.  */
14811 char $ac_func();
14812
14813 int main() {
14814
14815 /* The GNU C library defines this for functions which it implements
14816     to always fail with ENOSYS.  Some functions are actually named
14817     something starting with __ and the normal name is an alias.  */
14818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14819 choke me
14820 #else
14821 $ac_func();
14822 #endif
14823
14824 ; return 0; }
14825 EOF
14826 if { (eval echo configure:14827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14827   rm -rf conftest*
14828   eval "ac_cv_func_$ac_func=yes"
14829 else
14830   echo "configure: failed program was:" >&5
14831   cat conftest.$ac_ext >&5
14832   rm -rf conftest*
14833   eval "ac_cv_func_$ac_func=no"
14834 fi
14835 rm -f conftest*
14836 fi
14837
14838 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14839   echo "$ac_t""yes" 1>&6
14840     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14841   cat >> confdefs.h <<EOF
14842 #define $ac_tr_func 1
14843 EOF
14844  
14845 else
14846   echo "$ac_t""no" 1>&6
14847 fi
14848 done
14849     
14850     fi
14851   fi
14852
14853   
14854   
14855   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
14856 echo "configure:14857: checking for log10f declaration" >&5
14857   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
14858     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
14859   echo $ac_n "(cached) $ac_c" 1>&6
14860 else
14861   
14862       
14863       ac_ext=C
14864 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14865 ac_cpp='$CXXCPP $CPPFLAGS'
14866 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14867 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14868 cross_compiling=$ac_cv_prog_cxx_cross
14869
14870       cat > conftest.$ac_ext <<EOF
14871 #line 14872 "configure"
14872 #include "confdefs.h"
14873 #include <math.h>
14874                       #ifdef HAVE_IEEEFP_H
14875                       #include <ieeefp.h>
14876                       #endif
14877                      
14878 int main() {
14879  log10f(0);
14880 ; return 0; }
14881 EOF
14882 if { (eval echo configure:14883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14883   rm -rf conftest*
14884   glibcpp_cv_func_log10f_use=yes
14885 else
14886   echo "configure: failed program was:" >&5
14887   cat conftest.$ac_ext >&5
14888   rm -rf conftest*
14889   glibcpp_cv_func_log10f_use=no
14890 fi
14891 rm -f conftest*
14892       ac_ext=c
14893 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14894 ac_cpp='$CPP $CPPFLAGS'
14895 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14896 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14897 cross_compiling=$ac_cv_prog_cc_cross
14898
14899     
14900 fi
14901
14902   fi
14903   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
14904
14905   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
14906     for ac_func in log10f
14907 do
14908 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14909 echo "configure:14910: checking for $ac_func" >&5
14910 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14911   echo $ac_n "(cached) $ac_c" 1>&6
14912 else
14913   cat > conftest.$ac_ext <<EOF
14914 #line 14915 "configure"
14915 #include "confdefs.h"
14916 /* System header to define __stub macros and hopefully few prototypes,
14917     which can conflict with char $ac_func(); below.  */
14918 #include <assert.h>
14919 /* Override any gcc2 internal prototype to avoid an error.  */
14920 /* We use char because int might match the return type of a gcc2
14921     builtin and then its argument prototype would still apply.  */
14922 char $ac_func();
14923
14924 int main() {
14925
14926 /* The GNU C library defines this for functions which it implements
14927     to always fail with ENOSYS.  Some functions are actually named
14928     something starting with __ and the normal name is an alias.  */
14929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14930 choke me
14931 #else
14932 $ac_func();
14933 #endif
14934
14935 ; return 0; }
14936 EOF
14937 if { (eval echo configure:14938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14938   rm -rf conftest*
14939   eval "ac_cv_func_$ac_func=yes"
14940 else
14941   echo "configure: failed program was:" >&5
14942   cat conftest.$ac_ext >&5
14943   rm -rf conftest*
14944   eval "ac_cv_func_$ac_func=no"
14945 fi
14946 rm -f conftest*
14947 fi
14948
14949 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14950   echo "$ac_t""yes" 1>&6
14951     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14952   cat >> confdefs.h <<EOF
14953 #define $ac_tr_func 1
14954 EOF
14955  
14956 else
14957   echo "$ac_t""no" 1>&6
14958 fi
14959 done
14960     
14961   else
14962     
14963   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
14964 echo "configure:14965: checking for _log10f declaration" >&5
14965   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
14966     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
14967   echo $ac_n "(cached) $ac_c" 1>&6
14968 else
14969   
14970       
14971       ac_ext=C
14972 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14973 ac_cpp='$CXXCPP $CPPFLAGS'
14974 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14975 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14976 cross_compiling=$ac_cv_prog_cxx_cross
14977
14978       cat > conftest.$ac_ext <<EOF
14979 #line 14980 "configure"
14980 #include "confdefs.h"
14981 #include <math.h>
14982                       #ifdef HAVE_IEEEFP_H
14983                       #include <ieeefp.h>
14984                       #endif
14985                      
14986 int main() {
14987  _log10f(0);
14988 ; return 0; }
14989 EOF
14990 if { (eval echo configure:14991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14991   rm -rf conftest*
14992   glibcpp_cv_func__log10f_use=yes
14993 else
14994   echo "configure: failed program was:" >&5
14995   cat conftest.$ac_ext >&5
14996   rm -rf conftest*
14997   glibcpp_cv_func__log10f_use=no
14998 fi
14999 rm -f conftest*
15000       ac_ext=c
15001 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15002 ac_cpp='$CPP $CPPFLAGS'
15003 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15004 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15005 cross_compiling=$ac_cv_prog_cc_cross
15006
15007     
15008 fi
15009
15010   fi
15011   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
15012
15013     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
15014       for ac_func in _log10f
15015 do
15016 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15017 echo "configure:15018: checking for $ac_func" >&5
15018 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15019   echo $ac_n "(cached) $ac_c" 1>&6
15020 else
15021   cat > conftest.$ac_ext <<EOF
15022 #line 15023 "configure"
15023 #include "confdefs.h"
15024 /* System header to define __stub macros and hopefully few prototypes,
15025     which can conflict with char $ac_func(); below.  */
15026 #include <assert.h>
15027 /* Override any gcc2 internal prototype to avoid an error.  */
15028 /* We use char because int might match the return type of a gcc2
15029     builtin and then its argument prototype would still apply.  */
15030 char $ac_func();
15031
15032 int main() {
15033
15034 /* The GNU C library defines this for functions which it implements
15035     to always fail with ENOSYS.  Some functions are actually named
15036     something starting with __ and the normal name is an alias.  */
15037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15038 choke me
15039 #else
15040 $ac_func();
15041 #endif
15042
15043 ; return 0; }
15044 EOF
15045 if { (eval echo configure:15046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15046   rm -rf conftest*
15047   eval "ac_cv_func_$ac_func=yes"
15048 else
15049   echo "configure: failed program was:" >&5
15050   cat conftest.$ac_ext >&5
15051   rm -rf conftest*
15052   eval "ac_cv_func_$ac_func=no"
15053 fi
15054 rm -f conftest*
15055 fi
15056
15057 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15058   echo "$ac_t""yes" 1>&6
15059     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15060   cat >> confdefs.h <<EOF
15061 #define $ac_tr_func 1
15062 EOF
15063  
15064 else
15065   echo "$ac_t""no" 1>&6
15066 fi
15067 done
15068     
15069     fi
15070   fi
15071
15072   
15073   
15074   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
15075 echo "configure:15076: checking for modff declaration" >&5
15076   if test x${glibcpp_cv_func_modff_use+set} != xset; then
15077     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
15078   echo $ac_n "(cached) $ac_c" 1>&6
15079 else
15080   
15081       
15082       ac_ext=C
15083 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15084 ac_cpp='$CXXCPP $CPPFLAGS'
15085 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15086 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15087 cross_compiling=$ac_cv_prog_cxx_cross
15088
15089       cat > conftest.$ac_ext <<EOF
15090 #line 15091 "configure"
15091 #include "confdefs.h"
15092 #include <math.h>
15093 int main() {
15094  modff(0, 0);
15095 ; return 0; }
15096 EOF
15097 if { (eval echo configure:15098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15098   rm -rf conftest*
15099   glibcpp_cv_func_modff_use=yes
15100 else
15101   echo "configure: failed program was:" >&5
15102   cat conftest.$ac_ext >&5
15103   rm -rf conftest*
15104   glibcpp_cv_func_modff_use=no
15105 fi
15106 rm -f conftest*
15107       ac_ext=c
15108 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15109 ac_cpp='$CPP $CPPFLAGS'
15110 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15111 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15112 cross_compiling=$ac_cv_prog_cc_cross
15113
15114     
15115 fi
15116
15117   fi
15118   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
15119
15120   if test x$glibcpp_cv_func_modff_use = x"yes"; then
15121     for ac_func in modff
15122 do
15123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15124 echo "configure:15125: checking for $ac_func" >&5
15125 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15126   echo $ac_n "(cached) $ac_c" 1>&6
15127 else
15128   cat > conftest.$ac_ext <<EOF
15129 #line 15130 "configure"
15130 #include "confdefs.h"
15131 /* System header to define __stub macros and hopefully few prototypes,
15132     which can conflict with char $ac_func(); below.  */
15133 #include <assert.h>
15134 /* Override any gcc2 internal prototype to avoid an error.  */
15135 /* We use char because int might match the return type of a gcc2
15136     builtin and then its argument prototype would still apply.  */
15137 char $ac_func();
15138
15139 int main() {
15140
15141 /* The GNU C library defines this for functions which it implements
15142     to always fail with ENOSYS.  Some functions are actually named
15143     something starting with __ and the normal name is an alias.  */
15144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15145 choke me
15146 #else
15147 $ac_func();
15148 #endif
15149
15150 ; return 0; }
15151 EOF
15152 if { (eval echo configure:15153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15153   rm -rf conftest*
15154   eval "ac_cv_func_$ac_func=yes"
15155 else
15156   echo "configure: failed program was:" >&5
15157   cat conftest.$ac_ext >&5
15158   rm -rf conftest*
15159   eval "ac_cv_func_$ac_func=no"
15160 fi
15161 rm -f conftest*
15162 fi
15163
15164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15165   echo "$ac_t""yes" 1>&6
15166     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15167   cat >> confdefs.h <<EOF
15168 #define $ac_tr_func 1
15169 EOF
15170  
15171 else
15172   echo "$ac_t""no" 1>&6
15173 fi
15174 done
15175     
15176   else
15177     
15178   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15179 echo "configure:15180: checking for _modff declaration" >&5
15180   if test x${glibcpp_cv_func__modff_use+set} != xset; then
15181     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
15182   echo $ac_n "(cached) $ac_c" 1>&6
15183 else
15184   
15185       
15186       ac_ext=C
15187 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15188 ac_cpp='$CXXCPP $CPPFLAGS'
15189 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15190 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15191 cross_compiling=$ac_cv_prog_cxx_cross
15192
15193       cat > conftest.$ac_ext <<EOF
15194 #line 15195 "configure"
15195 #include "confdefs.h"
15196 #include <math.h>
15197 int main() {
15198  _modff(0, 0);
15199 ; return 0; }
15200 EOF
15201 if { (eval echo configure:15202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15202   rm -rf conftest*
15203   glibcpp_cv_func__modff_use=yes
15204 else
15205   echo "configure: failed program was:" >&5
15206   cat conftest.$ac_ext >&5
15207   rm -rf conftest*
15208   glibcpp_cv_func__modff_use=no
15209 fi
15210 rm -f conftest*
15211       ac_ext=c
15212 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15213 ac_cpp='$CPP $CPPFLAGS'
15214 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15215 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15216 cross_compiling=$ac_cv_prog_cc_cross
15217
15218     
15219 fi
15220
15221   fi
15222   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
15223
15224     if test x$glibcpp_cv_func__modff_use = x"yes"; then
15225       for ac_func in _modff
15226 do
15227 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15228 echo "configure:15229: checking for $ac_func" >&5
15229 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15230   echo $ac_n "(cached) $ac_c" 1>&6
15231 else
15232   cat > conftest.$ac_ext <<EOF
15233 #line 15234 "configure"
15234 #include "confdefs.h"
15235 /* System header to define __stub macros and hopefully few prototypes,
15236     which can conflict with char $ac_func(); below.  */
15237 #include <assert.h>
15238 /* Override any gcc2 internal prototype to avoid an error.  */
15239 /* We use char because int might match the return type of a gcc2
15240     builtin and then its argument prototype would still apply.  */
15241 char $ac_func();
15242
15243 int main() {
15244
15245 /* The GNU C library defines this for functions which it implements
15246     to always fail with ENOSYS.  Some functions are actually named
15247     something starting with __ and the normal name is an alias.  */
15248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15249 choke me
15250 #else
15251 $ac_func();
15252 #endif
15253
15254 ; return 0; }
15255 EOF
15256 if { (eval echo configure:15257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15257   rm -rf conftest*
15258   eval "ac_cv_func_$ac_func=yes"
15259 else
15260   echo "configure: failed program was:" >&5
15261   cat conftest.$ac_ext >&5
15262   rm -rf conftest*
15263   eval "ac_cv_func_$ac_func=no"
15264 fi
15265 rm -f conftest*
15266 fi
15267
15268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15269   echo "$ac_t""yes" 1>&6
15270     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15271   cat >> confdefs.h <<EOF
15272 #define $ac_tr_func 1
15273 EOF
15274  
15275 else
15276   echo "$ac_t""no" 1>&6
15277 fi
15278 done
15279     
15280     fi
15281   fi
15282
15283   
15284   
15285   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15286 echo "configure:15287: checking for powf declaration" >&5
15287   if test x${glibcpp_cv_func_powf_use+set} != xset; then
15288     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
15289   echo $ac_n "(cached) $ac_c" 1>&6
15290 else
15291   
15292       
15293       ac_ext=C
15294 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15295 ac_cpp='$CXXCPP $CPPFLAGS'
15296 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15297 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15298 cross_compiling=$ac_cv_prog_cxx_cross
15299
15300       cat > conftest.$ac_ext <<EOF
15301 #line 15302 "configure"
15302 #include "confdefs.h"
15303 #include <math.h>
15304 int main() {
15305  powf(0, 0);
15306 ; return 0; }
15307 EOF
15308 if { (eval echo configure:15309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15309   rm -rf conftest*
15310   glibcpp_cv_func_powf_use=yes
15311 else
15312   echo "configure: failed program was:" >&5
15313   cat conftest.$ac_ext >&5
15314   rm -rf conftest*
15315   glibcpp_cv_func_powf_use=no
15316 fi
15317 rm -f conftest*
15318       ac_ext=c
15319 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15320 ac_cpp='$CPP $CPPFLAGS'
15321 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15322 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15323 cross_compiling=$ac_cv_prog_cc_cross
15324
15325     
15326 fi
15327
15328   fi
15329   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
15330
15331   if test x$glibcpp_cv_func_powf_use = x"yes"; then
15332     for ac_func in powf
15333 do
15334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15335 echo "configure:15336: checking for $ac_func" >&5
15336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15337   echo $ac_n "(cached) $ac_c" 1>&6
15338 else
15339   cat > conftest.$ac_ext <<EOF
15340 #line 15341 "configure"
15341 #include "confdefs.h"
15342 /* System header to define __stub macros and hopefully few prototypes,
15343     which can conflict with char $ac_func(); below.  */
15344 #include <assert.h>
15345 /* Override any gcc2 internal prototype to avoid an error.  */
15346 /* We use char because int might match the return type of a gcc2
15347     builtin and then its argument prototype would still apply.  */
15348 char $ac_func();
15349
15350 int main() {
15351
15352 /* The GNU C library defines this for functions which it implements
15353     to always fail with ENOSYS.  Some functions are actually named
15354     something starting with __ and the normal name is an alias.  */
15355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15356 choke me
15357 #else
15358 $ac_func();
15359 #endif
15360
15361 ; return 0; }
15362 EOF
15363 if { (eval echo configure:15364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15364   rm -rf conftest*
15365   eval "ac_cv_func_$ac_func=yes"
15366 else
15367   echo "configure: failed program was:" >&5
15368   cat conftest.$ac_ext >&5
15369   rm -rf conftest*
15370   eval "ac_cv_func_$ac_func=no"
15371 fi
15372 rm -f conftest*
15373 fi
15374
15375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15376   echo "$ac_t""yes" 1>&6
15377     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15378   cat >> confdefs.h <<EOF
15379 #define $ac_tr_func 1
15380 EOF
15381  
15382 else
15383   echo "$ac_t""no" 1>&6
15384 fi
15385 done
15386     
15387   else
15388     
15389   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15390 echo "configure:15391: checking for _powf declaration" >&5
15391   if test x${glibcpp_cv_func__powf_use+set} != xset; then
15392     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
15393   echo $ac_n "(cached) $ac_c" 1>&6
15394 else
15395   
15396       
15397       ac_ext=C
15398 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15399 ac_cpp='$CXXCPP $CPPFLAGS'
15400 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15401 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15402 cross_compiling=$ac_cv_prog_cxx_cross
15403
15404       cat > conftest.$ac_ext <<EOF
15405 #line 15406 "configure"
15406 #include "confdefs.h"
15407 #include <math.h>
15408 int main() {
15409  _powf(0, 0);
15410 ; return 0; }
15411 EOF
15412 if { (eval echo configure:15413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15413   rm -rf conftest*
15414   glibcpp_cv_func__powf_use=yes
15415 else
15416   echo "configure: failed program was:" >&5
15417   cat conftest.$ac_ext >&5
15418   rm -rf conftest*
15419   glibcpp_cv_func__powf_use=no
15420 fi
15421 rm -f conftest*
15422       ac_ext=c
15423 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15424 ac_cpp='$CPP $CPPFLAGS'
15425 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15426 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15427 cross_compiling=$ac_cv_prog_cc_cross
15428
15429     
15430 fi
15431
15432   fi
15433   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
15434
15435     if test x$glibcpp_cv_func__powf_use = x"yes"; then
15436       for ac_func in _powf
15437 do
15438 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15439 echo "configure:15440: checking for $ac_func" >&5
15440 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15441   echo $ac_n "(cached) $ac_c" 1>&6
15442 else
15443   cat > conftest.$ac_ext <<EOF
15444 #line 15445 "configure"
15445 #include "confdefs.h"
15446 /* System header to define __stub macros and hopefully few prototypes,
15447     which can conflict with char $ac_func(); below.  */
15448 #include <assert.h>
15449 /* Override any gcc2 internal prototype to avoid an error.  */
15450 /* We use char because int might match the return type of a gcc2
15451     builtin and then its argument prototype would still apply.  */
15452 char $ac_func();
15453
15454 int main() {
15455
15456 /* The GNU C library defines this for functions which it implements
15457     to always fail with ENOSYS.  Some functions are actually named
15458     something starting with __ and the normal name is an alias.  */
15459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15460 choke me
15461 #else
15462 $ac_func();
15463 #endif
15464
15465 ; return 0; }
15466 EOF
15467 if { (eval echo configure:15468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15468   rm -rf conftest*
15469   eval "ac_cv_func_$ac_func=yes"
15470 else
15471   echo "configure: failed program was:" >&5
15472   cat conftest.$ac_ext >&5
15473   rm -rf conftest*
15474   eval "ac_cv_func_$ac_func=no"
15475 fi
15476 rm -f conftest*
15477 fi
15478
15479 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15480   echo "$ac_t""yes" 1>&6
15481     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15482   cat >> confdefs.h <<EOF
15483 #define $ac_tr_func 1
15484 EOF
15485  
15486 else
15487   echo "$ac_t""no" 1>&6
15488 fi
15489 done
15490     
15491     fi
15492   fi
15493
15494   
15495   
15496   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15497 echo "configure:15498: checking for sqrtf declaration" >&5
15498   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
15499     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
15500   echo $ac_n "(cached) $ac_c" 1>&6
15501 else
15502   
15503       
15504       ac_ext=C
15505 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15506 ac_cpp='$CXXCPP $CPPFLAGS'
15507 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15508 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15509 cross_compiling=$ac_cv_prog_cxx_cross
15510
15511       cat > conftest.$ac_ext <<EOF
15512 #line 15513 "configure"
15513 #include "confdefs.h"
15514 #include <math.h>
15515                       #ifdef HAVE_IEEEFP_H
15516                       #include <ieeefp.h>
15517                       #endif
15518                      
15519 int main() {
15520  sqrtf(0);
15521 ; return 0; }
15522 EOF
15523 if { (eval echo configure:15524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15524   rm -rf conftest*
15525   glibcpp_cv_func_sqrtf_use=yes
15526 else
15527   echo "configure: failed program was:" >&5
15528   cat conftest.$ac_ext >&5
15529   rm -rf conftest*
15530   glibcpp_cv_func_sqrtf_use=no
15531 fi
15532 rm -f conftest*
15533       ac_ext=c
15534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15535 ac_cpp='$CPP $CPPFLAGS'
15536 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15537 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15538 cross_compiling=$ac_cv_prog_cc_cross
15539
15540     
15541 fi
15542
15543   fi
15544   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
15545
15546   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
15547     for ac_func in sqrtf
15548 do
15549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15550 echo "configure:15551: checking for $ac_func" >&5
15551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15552   echo $ac_n "(cached) $ac_c" 1>&6
15553 else
15554   cat > conftest.$ac_ext <<EOF
15555 #line 15556 "configure"
15556 #include "confdefs.h"
15557 /* System header to define __stub macros and hopefully few prototypes,
15558     which can conflict with char $ac_func(); below.  */
15559 #include <assert.h>
15560 /* Override any gcc2 internal prototype to avoid an error.  */
15561 /* We use char because int might match the return type of a gcc2
15562     builtin and then its argument prototype would still apply.  */
15563 char $ac_func();
15564
15565 int main() {
15566
15567 /* The GNU C library defines this for functions which it implements
15568     to always fail with ENOSYS.  Some functions are actually named
15569     something starting with __ and the normal name is an alias.  */
15570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15571 choke me
15572 #else
15573 $ac_func();
15574 #endif
15575
15576 ; return 0; }
15577 EOF
15578 if { (eval echo configure:15579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15579   rm -rf conftest*
15580   eval "ac_cv_func_$ac_func=yes"
15581 else
15582   echo "configure: failed program was:" >&5
15583   cat conftest.$ac_ext >&5
15584   rm -rf conftest*
15585   eval "ac_cv_func_$ac_func=no"
15586 fi
15587 rm -f conftest*
15588 fi
15589
15590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15591   echo "$ac_t""yes" 1>&6
15592     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15593   cat >> confdefs.h <<EOF
15594 #define $ac_tr_func 1
15595 EOF
15596  
15597 else
15598   echo "$ac_t""no" 1>&6
15599 fi
15600 done
15601     
15602   else
15603     
15604   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15605 echo "configure:15606: checking for _sqrtf declaration" >&5
15606   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
15607     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
15608   echo $ac_n "(cached) $ac_c" 1>&6
15609 else
15610   
15611       
15612       ac_ext=C
15613 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15614 ac_cpp='$CXXCPP $CPPFLAGS'
15615 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15616 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15617 cross_compiling=$ac_cv_prog_cxx_cross
15618
15619       cat > conftest.$ac_ext <<EOF
15620 #line 15621 "configure"
15621 #include "confdefs.h"
15622 #include <math.h>
15623                       #ifdef HAVE_IEEEFP_H
15624                       #include <ieeefp.h>
15625                       #endif
15626                      
15627 int main() {
15628  _sqrtf(0);
15629 ; return 0; }
15630 EOF
15631 if { (eval echo configure:15632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15632   rm -rf conftest*
15633   glibcpp_cv_func__sqrtf_use=yes
15634 else
15635   echo "configure: failed program was:" >&5
15636   cat conftest.$ac_ext >&5
15637   rm -rf conftest*
15638   glibcpp_cv_func__sqrtf_use=no
15639 fi
15640 rm -f conftest*
15641       ac_ext=c
15642 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15643 ac_cpp='$CPP $CPPFLAGS'
15644 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15645 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15646 cross_compiling=$ac_cv_prog_cc_cross
15647
15648     
15649 fi
15650
15651   fi
15652   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
15653
15654     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
15655       for ac_func in _sqrtf
15656 do
15657 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15658 echo "configure:15659: checking for $ac_func" >&5
15659 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15660   echo $ac_n "(cached) $ac_c" 1>&6
15661 else
15662   cat > conftest.$ac_ext <<EOF
15663 #line 15664 "configure"
15664 #include "confdefs.h"
15665 /* System header to define __stub macros and hopefully few prototypes,
15666     which can conflict with char $ac_func(); below.  */
15667 #include <assert.h>
15668 /* Override any gcc2 internal prototype to avoid an error.  */
15669 /* We use char because int might match the return type of a gcc2
15670     builtin and then its argument prototype would still apply.  */
15671 char $ac_func();
15672
15673 int main() {
15674
15675 /* The GNU C library defines this for functions which it implements
15676     to always fail with ENOSYS.  Some functions are actually named
15677     something starting with __ and the normal name is an alias.  */
15678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15679 choke me
15680 #else
15681 $ac_func();
15682 #endif
15683
15684 ; return 0; }
15685 EOF
15686 if { (eval echo configure:15687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15687   rm -rf conftest*
15688   eval "ac_cv_func_$ac_func=yes"
15689 else
15690   echo "configure: failed program was:" >&5
15691   cat conftest.$ac_ext >&5
15692   rm -rf conftest*
15693   eval "ac_cv_func_$ac_func=no"
15694 fi
15695 rm -f conftest*
15696 fi
15697
15698 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15699   echo "$ac_t""yes" 1>&6
15700     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15701   cat >> confdefs.h <<EOF
15702 #define $ac_tr_func 1
15703 EOF
15704  
15705 else
15706   echo "$ac_t""no" 1>&6
15707 fi
15708 done
15709     
15710     fi
15711   fi
15712
15713   
15714   
15715   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15716 echo "configure:15717: checking for sincosf declaration" >&5
15717   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
15718     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
15719   echo $ac_n "(cached) $ac_c" 1>&6
15720 else
15721   
15722       
15723       ac_ext=C
15724 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15725 ac_cpp='$CXXCPP $CPPFLAGS'
15726 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15727 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15728 cross_compiling=$ac_cv_prog_cxx_cross
15729
15730       cat > conftest.$ac_ext <<EOF
15731 #line 15732 "configure"
15732 #include "confdefs.h"
15733 #include <math.h>
15734 int main() {
15735  sincosf(0, 0, 0);
15736 ; return 0; }
15737 EOF
15738 if { (eval echo configure:15739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15739   rm -rf conftest*
15740   glibcpp_cv_func_sincosf_use=yes
15741 else
15742   echo "configure: failed program was:" >&5
15743   cat conftest.$ac_ext >&5
15744   rm -rf conftest*
15745   glibcpp_cv_func_sincosf_use=no
15746 fi
15747 rm -f conftest*
15748       ac_ext=c
15749 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15750 ac_cpp='$CPP $CPPFLAGS'
15751 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15752 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15753 cross_compiling=$ac_cv_prog_cc_cross
15754
15755     
15756 fi
15757
15758   fi
15759   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
15760
15761   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
15762     for ac_func in sincosf
15763 do
15764 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15765 echo "configure:15766: checking for $ac_func" >&5
15766 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15767   echo $ac_n "(cached) $ac_c" 1>&6
15768 else
15769   cat > conftest.$ac_ext <<EOF
15770 #line 15771 "configure"
15771 #include "confdefs.h"
15772 /* System header to define __stub macros and hopefully few prototypes,
15773     which can conflict with char $ac_func(); below.  */
15774 #include <assert.h>
15775 /* Override any gcc2 internal prototype to avoid an error.  */
15776 /* We use char because int might match the return type of a gcc2
15777     builtin and then its argument prototype would still apply.  */
15778 char $ac_func();
15779
15780 int main() {
15781
15782 /* The GNU C library defines this for functions which it implements
15783     to always fail with ENOSYS.  Some functions are actually named
15784     something starting with __ and the normal name is an alias.  */
15785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15786 choke me
15787 #else
15788 $ac_func();
15789 #endif
15790
15791 ; return 0; }
15792 EOF
15793 if { (eval echo configure:15794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15794   rm -rf conftest*
15795   eval "ac_cv_func_$ac_func=yes"
15796 else
15797   echo "configure: failed program was:" >&5
15798   cat conftest.$ac_ext >&5
15799   rm -rf conftest*
15800   eval "ac_cv_func_$ac_func=no"
15801 fi
15802 rm -f conftest*
15803 fi
15804
15805 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15806   echo "$ac_t""yes" 1>&6
15807     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15808   cat >> confdefs.h <<EOF
15809 #define $ac_tr_func 1
15810 EOF
15811  
15812 else
15813   echo "$ac_t""no" 1>&6
15814 fi
15815 done
15816     
15817   else
15818     
15819   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15820 echo "configure:15821: checking for _sincosf declaration" >&5
15821   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
15822     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
15823   echo $ac_n "(cached) $ac_c" 1>&6
15824 else
15825   
15826       
15827       ac_ext=C
15828 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15829 ac_cpp='$CXXCPP $CPPFLAGS'
15830 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15831 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15832 cross_compiling=$ac_cv_prog_cxx_cross
15833
15834       cat > conftest.$ac_ext <<EOF
15835 #line 15836 "configure"
15836 #include "confdefs.h"
15837 #include <math.h>
15838 int main() {
15839  _sincosf(0, 0, 0);
15840 ; return 0; }
15841 EOF
15842 if { (eval echo configure:15843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15843   rm -rf conftest*
15844   glibcpp_cv_func__sincosf_use=yes
15845 else
15846   echo "configure: failed program was:" >&5
15847   cat conftest.$ac_ext >&5
15848   rm -rf conftest*
15849   glibcpp_cv_func__sincosf_use=no
15850 fi
15851 rm -f conftest*
15852       ac_ext=c
15853 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15854 ac_cpp='$CPP $CPPFLAGS'
15855 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15856 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15857 cross_compiling=$ac_cv_prog_cc_cross
15858
15859     
15860 fi
15861
15862   fi
15863   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
15864
15865     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
15866       for ac_func in _sincosf
15867 do
15868 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15869 echo "configure:15870: checking for $ac_func" >&5
15870 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15871   echo $ac_n "(cached) $ac_c" 1>&6
15872 else
15873   cat > conftest.$ac_ext <<EOF
15874 #line 15875 "configure"
15875 #include "confdefs.h"
15876 /* System header to define __stub macros and hopefully few prototypes,
15877     which can conflict with char $ac_func(); below.  */
15878 #include <assert.h>
15879 /* Override any gcc2 internal prototype to avoid an error.  */
15880 /* We use char because int might match the return type of a gcc2
15881     builtin and then its argument prototype would still apply.  */
15882 char $ac_func();
15883
15884 int main() {
15885
15886 /* The GNU C library defines this for functions which it implements
15887     to always fail with ENOSYS.  Some functions are actually named
15888     something starting with __ and the normal name is an alias.  */
15889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15890 choke me
15891 #else
15892 $ac_func();
15893 #endif
15894
15895 ; return 0; }
15896 EOF
15897 if { (eval echo configure:15898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15898   rm -rf conftest*
15899   eval "ac_cv_func_$ac_func=yes"
15900 else
15901   echo "configure: failed program was:" >&5
15902   cat conftest.$ac_ext >&5
15903   rm -rf conftest*
15904   eval "ac_cv_func_$ac_func=no"
15905 fi
15906 rm -f conftest*
15907 fi
15908
15909 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15910   echo "$ac_t""yes" 1>&6
15911     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15912   cat >> confdefs.h <<EOF
15913 #define $ac_tr_func 1
15914 EOF
15915  
15916 else
15917   echo "$ac_t""no" 1>&6
15918 fi
15919 done
15920     
15921     fi
15922   fi
15923
15924   
15925   
15926   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
15927 echo "configure:15928: checking for finitef declaration" >&5
15928   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
15929     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
15930   echo $ac_n "(cached) $ac_c" 1>&6
15931 else
15932   
15933       
15934       ac_ext=C
15935 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15936 ac_cpp='$CXXCPP $CPPFLAGS'
15937 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15938 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15939 cross_compiling=$ac_cv_prog_cxx_cross
15940
15941       cat > conftest.$ac_ext <<EOF
15942 #line 15943 "configure"
15943 #include "confdefs.h"
15944 #include <math.h>
15945                       #ifdef HAVE_IEEEFP_H
15946                       #include <ieeefp.h>
15947                       #endif
15948                      
15949 int main() {
15950  finitef(0);
15951 ; return 0; }
15952 EOF
15953 if { (eval echo configure:15954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15954   rm -rf conftest*
15955   glibcpp_cv_func_finitef_use=yes
15956 else
15957   echo "configure: failed program was:" >&5
15958   cat conftest.$ac_ext >&5
15959   rm -rf conftest*
15960   glibcpp_cv_func_finitef_use=no
15961 fi
15962 rm -f conftest*
15963       ac_ext=c
15964 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15965 ac_cpp='$CPP $CPPFLAGS'
15966 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15967 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15968 cross_compiling=$ac_cv_prog_cc_cross
15969
15970     
15971 fi
15972
15973   fi
15974   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
15975
15976   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
15977     for ac_func in finitef
15978 do
15979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15980 echo "configure:15981: checking for $ac_func" >&5
15981 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15982   echo $ac_n "(cached) $ac_c" 1>&6
15983 else
15984   cat > conftest.$ac_ext <<EOF
15985 #line 15986 "configure"
15986 #include "confdefs.h"
15987 /* System header to define __stub macros and hopefully few prototypes,
15988     which can conflict with char $ac_func(); below.  */
15989 #include <assert.h>
15990 /* Override any gcc2 internal prototype to avoid an error.  */
15991 /* We use char because int might match the return type of a gcc2
15992     builtin and then its argument prototype would still apply.  */
15993 char $ac_func();
15994
15995 int main() {
15996
15997 /* The GNU C library defines this for functions which it implements
15998     to always fail with ENOSYS.  Some functions are actually named
15999     something starting with __ and the normal name is an alias.  */
16000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16001 choke me
16002 #else
16003 $ac_func();
16004 #endif
16005
16006 ; return 0; }
16007 EOF
16008 if { (eval echo configure:16009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16009   rm -rf conftest*
16010   eval "ac_cv_func_$ac_func=yes"
16011 else
16012   echo "configure: failed program was:" >&5
16013   cat conftest.$ac_ext >&5
16014   rm -rf conftest*
16015   eval "ac_cv_func_$ac_func=no"
16016 fi
16017 rm -f conftest*
16018 fi
16019
16020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16021   echo "$ac_t""yes" 1>&6
16022     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16023   cat >> confdefs.h <<EOF
16024 #define $ac_tr_func 1
16025 EOF
16026  
16027 else
16028   echo "$ac_t""no" 1>&6
16029 fi
16030 done
16031     
16032   else
16033     
16034   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
16035 echo "configure:16036: checking for _finitef declaration" >&5
16036   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
16037     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
16038   echo $ac_n "(cached) $ac_c" 1>&6
16039 else
16040   
16041       
16042       ac_ext=C
16043 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16044 ac_cpp='$CXXCPP $CPPFLAGS'
16045 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16046 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16047 cross_compiling=$ac_cv_prog_cxx_cross
16048
16049       cat > conftest.$ac_ext <<EOF
16050 #line 16051 "configure"
16051 #include "confdefs.h"
16052 #include <math.h>
16053                       #ifdef HAVE_IEEEFP_H
16054                       #include <ieeefp.h>
16055                       #endif
16056                      
16057 int main() {
16058  _finitef(0);
16059 ; return 0; }
16060 EOF
16061 if { (eval echo configure:16062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16062   rm -rf conftest*
16063   glibcpp_cv_func__finitef_use=yes
16064 else
16065   echo "configure: failed program was:" >&5
16066   cat conftest.$ac_ext >&5
16067   rm -rf conftest*
16068   glibcpp_cv_func__finitef_use=no
16069 fi
16070 rm -f conftest*
16071       ac_ext=c
16072 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16073 ac_cpp='$CPP $CPPFLAGS'
16074 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16075 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16076 cross_compiling=$ac_cv_prog_cc_cross
16077
16078     
16079 fi
16080
16081   fi
16082   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
16083
16084     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
16085       for ac_func in _finitef
16086 do
16087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16088 echo "configure:16089: checking for $ac_func" >&5
16089 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16090   echo $ac_n "(cached) $ac_c" 1>&6
16091 else
16092   cat > conftest.$ac_ext <<EOF
16093 #line 16094 "configure"
16094 #include "confdefs.h"
16095 /* System header to define __stub macros and hopefully few prototypes,
16096     which can conflict with char $ac_func(); below.  */
16097 #include <assert.h>
16098 /* Override any gcc2 internal prototype to avoid an error.  */
16099 /* We use char because int might match the return type of a gcc2
16100     builtin and then its argument prototype would still apply.  */
16101 char $ac_func();
16102
16103 int main() {
16104
16105 /* The GNU C library defines this for functions which it implements
16106     to always fail with ENOSYS.  Some functions are actually named
16107     something starting with __ and the normal name is an alias.  */
16108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16109 choke me
16110 #else
16111 $ac_func();
16112 #endif
16113
16114 ; return 0; }
16115 EOF
16116 if { (eval echo configure:16117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16117   rm -rf conftest*
16118   eval "ac_cv_func_$ac_func=yes"
16119 else
16120   echo "configure: failed program was:" >&5
16121   cat conftest.$ac_ext >&5
16122   rm -rf conftest*
16123   eval "ac_cv_func_$ac_func=no"
16124 fi
16125 rm -f conftest*
16126 fi
16127
16128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16129   echo "$ac_t""yes" 1>&6
16130     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16131   cat >> confdefs.h <<EOF
16132 #define $ac_tr_func 1
16133 EOF
16134  
16135 else
16136   echo "$ac_t""no" 1>&6
16137 fi
16138 done
16139     
16140     fi
16141   fi
16142
16143
16144     
16145   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16146 echo "configure:16147: checking for long double trig functions" >&5
16147   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
16148   echo $ac_n "(cached) $ac_c" 1>&6
16149 else
16150   
16151     
16152     ac_ext=C
16153 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16154 ac_cpp='$CXXCPP $CPPFLAGS'
16155 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16156 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16157 cross_compiling=$ac_cv_prog_cxx_cross
16158
16159     cat > conftest.$ac_ext <<EOF
16160 #line 16161 "configure"
16161 #include "confdefs.h"
16162 #include <math.h>
16163 int main() {
16164  `for x in acosl asinl atanl \
16165                                           cosl sinl tanl \
16166                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
16167 ; return 0; }
16168 EOF
16169 if { (eval echo configure:16170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16170   rm -rf conftest*
16171   glibcpp_cv_func_long_double_trig_use=yes
16172 else
16173   echo "configure: failed program was:" >&5
16174   cat conftest.$ac_ext >&5
16175   rm -rf conftest*
16176   glibcpp_cv_func_long_double_trig_use=no
16177 fi
16178 rm -f conftest*
16179     ac_ext=c
16180 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16181 ac_cpp='$CPP $CPPFLAGS'
16182 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16183 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16184 cross_compiling=$ac_cv_prog_cc_cross
16185
16186 fi
16187
16188   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
16189   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
16190     for ac_func in acosl asinl atanl \
16191                                           cosl sinl tanl \
16192                                           coshl sinhl tanhl
16193 do
16194 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16195 echo "configure:16196: checking for $ac_func" >&5
16196 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16197   echo $ac_n "(cached) $ac_c" 1>&6
16198 else
16199   cat > conftest.$ac_ext <<EOF
16200 #line 16201 "configure"
16201 #include "confdefs.h"
16202 /* System header to define __stub macros and hopefully few prototypes,
16203     which can conflict with char $ac_func(); below.  */
16204 #include <assert.h>
16205 /* Override any gcc2 internal prototype to avoid an error.  */
16206 /* We use char because int might match the return type of a gcc2
16207     builtin and then its argument prototype would still apply.  */
16208 char $ac_func();
16209
16210 int main() {
16211
16212 /* The GNU C library defines this for functions which it implements
16213     to always fail with ENOSYS.  Some functions are actually named
16214     something starting with __ and the normal name is an alias.  */
16215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16216 choke me
16217 #else
16218 $ac_func();
16219 #endif
16220
16221 ; return 0; }
16222 EOF
16223 if { (eval echo configure:16224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16224   rm -rf conftest*
16225   eval "ac_cv_func_$ac_func=yes"
16226 else
16227   echo "configure: failed program was:" >&5
16228   cat conftest.$ac_ext >&5
16229   rm -rf conftest*
16230   eval "ac_cv_func_$ac_func=no"
16231 fi
16232 rm -f conftest*
16233 fi
16234
16235 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16236   echo "$ac_t""yes" 1>&6
16237     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16238   cat >> confdefs.h <<EOF
16239 #define $ac_tr_func 1
16240 EOF
16241  
16242 else
16243   echo "$ac_t""no" 1>&6
16244 fi
16245 done
16246
16247   fi
16248
16249   
16250   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16251 echo "configure:16252: checking for long double round functions" >&5
16252   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
16253   echo $ac_n "(cached) $ac_c" 1>&6
16254 else
16255   
16256     
16257     ac_ext=C
16258 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16259 ac_cpp='$CXXCPP $CPPFLAGS'
16260 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16261 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16262 cross_compiling=$ac_cv_prog_cxx_cross
16263
16264     cat > conftest.$ac_ext <<EOF
16265 #line 16266 "configure"
16266 #include "confdefs.h"
16267 #include <math.h>
16268 int main() {
16269  `for x in ceill floorl; do echo "$x (0);"; done` 
16270 ; return 0; }
16271 EOF
16272 if { (eval echo configure:16273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16273   rm -rf conftest*
16274   glibcpp_cv_func_long_double_round_use=yes
16275 else
16276   echo "configure: failed program was:" >&5
16277   cat conftest.$ac_ext >&5
16278   rm -rf conftest*
16279   glibcpp_cv_func_long_double_round_use=no
16280 fi
16281 rm -f conftest*
16282     ac_ext=c
16283 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16284 ac_cpp='$CPP $CPPFLAGS'
16285 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16286 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16287 cross_compiling=$ac_cv_prog_cc_cross
16288
16289 fi
16290
16291   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
16292   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
16293     for ac_func in ceill floorl
16294 do
16295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16296 echo "configure:16297: checking for $ac_func" >&5
16297 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16298   echo $ac_n "(cached) $ac_c" 1>&6
16299 else
16300   cat > conftest.$ac_ext <<EOF
16301 #line 16302 "configure"
16302 #include "confdefs.h"
16303 /* System header to define __stub macros and hopefully few prototypes,
16304     which can conflict with char $ac_func(); below.  */
16305 #include <assert.h>
16306 /* Override any gcc2 internal prototype to avoid an error.  */
16307 /* We use char because int might match the return type of a gcc2
16308     builtin and then its argument prototype would still apply.  */
16309 char $ac_func();
16310
16311 int main() {
16312
16313 /* The GNU C library defines this for functions which it implements
16314     to always fail with ENOSYS.  Some functions are actually named
16315     something starting with __ and the normal name is an alias.  */
16316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16317 choke me
16318 #else
16319 $ac_func();
16320 #endif
16321
16322 ; return 0; }
16323 EOF
16324 if { (eval echo configure:16325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16325   rm -rf conftest*
16326   eval "ac_cv_func_$ac_func=yes"
16327 else
16328   echo "configure: failed program was:" >&5
16329   cat conftest.$ac_ext >&5
16330   rm -rf conftest*
16331   eval "ac_cv_func_$ac_func=no"
16332 fi
16333 rm -f conftest*
16334 fi
16335
16336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16337   echo "$ac_t""yes" 1>&6
16338     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16339   cat >> confdefs.h <<EOF
16340 #define $ac_tr_func 1
16341 EOF
16342  
16343 else
16344   echo "$ac_t""no" 1>&6
16345 fi
16346 done
16347
16348   fi
16349
16350   
16351   
16352   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16353 echo "configure:16354: checking for isnanl declaration" >&5
16354   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
16355     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
16356   echo $ac_n "(cached) $ac_c" 1>&6
16357 else
16358   
16359       
16360       ac_ext=C
16361 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16362 ac_cpp='$CXXCPP $CPPFLAGS'
16363 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16364 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16365 cross_compiling=$ac_cv_prog_cxx_cross
16366
16367       cat > conftest.$ac_ext <<EOF
16368 #line 16369 "configure"
16369 #include "confdefs.h"
16370 #include <math.h>
16371                       #ifdef HAVE_IEEEFP_H
16372                       #include <ieeefp.h>
16373                       #endif
16374                      
16375 int main() {
16376  isnanl(0);
16377 ; return 0; }
16378 EOF
16379 if { (eval echo configure:16380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16380   rm -rf conftest*
16381   glibcpp_cv_func_isnanl_use=yes
16382 else
16383   echo "configure: failed program was:" >&5
16384   cat conftest.$ac_ext >&5
16385   rm -rf conftest*
16386   glibcpp_cv_func_isnanl_use=no
16387 fi
16388 rm -f conftest*
16389       ac_ext=c
16390 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16391 ac_cpp='$CPP $CPPFLAGS'
16392 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16393 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16394 cross_compiling=$ac_cv_prog_cc_cross
16395
16396     
16397 fi
16398
16399   fi
16400   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
16401
16402   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
16403     for ac_func in isnanl
16404 do
16405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16406 echo "configure:16407: checking for $ac_func" >&5
16407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16408   echo $ac_n "(cached) $ac_c" 1>&6
16409 else
16410   cat > conftest.$ac_ext <<EOF
16411 #line 16412 "configure"
16412 #include "confdefs.h"
16413 /* System header to define __stub macros and hopefully few prototypes,
16414     which can conflict with char $ac_func(); below.  */
16415 #include <assert.h>
16416 /* Override any gcc2 internal prototype to avoid an error.  */
16417 /* We use char because int might match the return type of a gcc2
16418     builtin and then its argument prototype would still apply.  */
16419 char $ac_func();
16420
16421 int main() {
16422
16423 /* The GNU C library defines this for functions which it implements
16424     to always fail with ENOSYS.  Some functions are actually named
16425     something starting with __ and the normal name is an alias.  */
16426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16427 choke me
16428 #else
16429 $ac_func();
16430 #endif
16431
16432 ; return 0; }
16433 EOF
16434 if { (eval echo configure:16435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16435   rm -rf conftest*
16436   eval "ac_cv_func_$ac_func=yes"
16437 else
16438   echo "configure: failed program was:" >&5
16439   cat conftest.$ac_ext >&5
16440   rm -rf conftest*
16441   eval "ac_cv_func_$ac_func=no"
16442 fi
16443 rm -f conftest*
16444 fi
16445
16446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16447   echo "$ac_t""yes" 1>&6
16448     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16449   cat >> confdefs.h <<EOF
16450 #define $ac_tr_func 1
16451 EOF
16452  
16453 else
16454   echo "$ac_t""no" 1>&6
16455 fi
16456 done
16457     
16458   else
16459     
16460   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16461 echo "configure:16462: checking for _isnanl declaration" >&5
16462   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
16463     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
16464   echo $ac_n "(cached) $ac_c" 1>&6
16465 else
16466   
16467       
16468       ac_ext=C
16469 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16470 ac_cpp='$CXXCPP $CPPFLAGS'
16471 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16472 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16473 cross_compiling=$ac_cv_prog_cxx_cross
16474
16475       cat > conftest.$ac_ext <<EOF
16476 #line 16477 "configure"
16477 #include "confdefs.h"
16478 #include <math.h>
16479                       #ifdef HAVE_IEEEFP_H
16480                       #include <ieeefp.h>
16481                       #endif
16482                      
16483 int main() {
16484  _isnanl(0);
16485 ; return 0; }
16486 EOF
16487 if { (eval echo configure:16488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16488   rm -rf conftest*
16489   glibcpp_cv_func__isnanl_use=yes
16490 else
16491   echo "configure: failed program was:" >&5
16492   cat conftest.$ac_ext >&5
16493   rm -rf conftest*
16494   glibcpp_cv_func__isnanl_use=no
16495 fi
16496 rm -f conftest*
16497       ac_ext=c
16498 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16499 ac_cpp='$CPP $CPPFLAGS'
16500 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16501 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16502 cross_compiling=$ac_cv_prog_cc_cross
16503
16504     
16505 fi
16506
16507   fi
16508   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
16509
16510     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
16511       for ac_func in _isnanl
16512 do
16513 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16514 echo "configure:16515: checking for $ac_func" >&5
16515 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16516   echo $ac_n "(cached) $ac_c" 1>&6
16517 else
16518   cat > conftest.$ac_ext <<EOF
16519 #line 16520 "configure"
16520 #include "confdefs.h"
16521 /* System header to define __stub macros and hopefully few prototypes,
16522     which can conflict with char $ac_func(); below.  */
16523 #include <assert.h>
16524 /* Override any gcc2 internal prototype to avoid an error.  */
16525 /* We use char because int might match the return type of a gcc2
16526     builtin and then its argument prototype would still apply.  */
16527 char $ac_func();
16528
16529 int main() {
16530
16531 /* The GNU C library defines this for functions which it implements
16532     to always fail with ENOSYS.  Some functions are actually named
16533     something starting with __ and the normal name is an alias.  */
16534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16535 choke me
16536 #else
16537 $ac_func();
16538 #endif
16539
16540 ; return 0; }
16541 EOF
16542 if { (eval echo configure:16543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16543   rm -rf conftest*
16544   eval "ac_cv_func_$ac_func=yes"
16545 else
16546   echo "configure: failed program was:" >&5
16547   cat conftest.$ac_ext >&5
16548   rm -rf conftest*
16549   eval "ac_cv_func_$ac_func=no"
16550 fi
16551 rm -f conftest*
16552 fi
16553
16554 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16555   echo "$ac_t""yes" 1>&6
16556     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16557   cat >> confdefs.h <<EOF
16558 #define $ac_tr_func 1
16559 EOF
16560  
16561 else
16562   echo "$ac_t""no" 1>&6
16563 fi
16564 done
16565     
16566     fi
16567   fi
16568
16569   
16570   
16571   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16572 echo "configure:16573: checking for isinfl declaration" >&5
16573   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
16574     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
16575   echo $ac_n "(cached) $ac_c" 1>&6
16576 else
16577   
16578       
16579       ac_ext=C
16580 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16581 ac_cpp='$CXXCPP $CPPFLAGS'
16582 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16583 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16584 cross_compiling=$ac_cv_prog_cxx_cross
16585
16586       cat > conftest.$ac_ext <<EOF
16587 #line 16588 "configure"
16588 #include "confdefs.h"
16589 #include <math.h>
16590                       #ifdef HAVE_IEEEFP_H
16591                       #include <ieeefp.h>
16592                       #endif
16593                      
16594 int main() {
16595  isinfl(0);
16596 ; return 0; }
16597 EOF
16598 if { (eval echo configure:16599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16599   rm -rf conftest*
16600   glibcpp_cv_func_isinfl_use=yes
16601 else
16602   echo "configure: failed program was:" >&5
16603   cat conftest.$ac_ext >&5
16604   rm -rf conftest*
16605   glibcpp_cv_func_isinfl_use=no
16606 fi
16607 rm -f conftest*
16608       ac_ext=c
16609 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16610 ac_cpp='$CPP $CPPFLAGS'
16611 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16612 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16613 cross_compiling=$ac_cv_prog_cc_cross
16614
16615     
16616 fi
16617
16618   fi
16619   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
16620
16621   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
16622     for ac_func in isinfl
16623 do
16624 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16625 echo "configure:16626: checking for $ac_func" >&5
16626 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16627   echo $ac_n "(cached) $ac_c" 1>&6
16628 else
16629   cat > conftest.$ac_ext <<EOF
16630 #line 16631 "configure"
16631 #include "confdefs.h"
16632 /* System header to define __stub macros and hopefully few prototypes,
16633     which can conflict with char $ac_func(); below.  */
16634 #include <assert.h>
16635 /* Override any gcc2 internal prototype to avoid an error.  */
16636 /* We use char because int might match the return type of a gcc2
16637     builtin and then its argument prototype would still apply.  */
16638 char $ac_func();
16639
16640 int main() {
16641
16642 /* The GNU C library defines this for functions which it implements
16643     to always fail with ENOSYS.  Some functions are actually named
16644     something starting with __ and the normal name is an alias.  */
16645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16646 choke me
16647 #else
16648 $ac_func();
16649 #endif
16650
16651 ; return 0; }
16652 EOF
16653 if { (eval echo configure:16654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16654   rm -rf conftest*
16655   eval "ac_cv_func_$ac_func=yes"
16656 else
16657   echo "configure: failed program was:" >&5
16658   cat conftest.$ac_ext >&5
16659   rm -rf conftest*
16660   eval "ac_cv_func_$ac_func=no"
16661 fi
16662 rm -f conftest*
16663 fi
16664
16665 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16666   echo "$ac_t""yes" 1>&6
16667     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16668   cat >> confdefs.h <<EOF
16669 #define $ac_tr_func 1
16670 EOF
16671  
16672 else
16673   echo "$ac_t""no" 1>&6
16674 fi
16675 done
16676     
16677   else
16678     
16679   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16680 echo "configure:16681: checking for _isinfl declaration" >&5
16681   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
16682     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
16683   echo $ac_n "(cached) $ac_c" 1>&6
16684 else
16685   
16686       
16687       ac_ext=C
16688 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16689 ac_cpp='$CXXCPP $CPPFLAGS'
16690 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16691 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16692 cross_compiling=$ac_cv_prog_cxx_cross
16693
16694       cat > conftest.$ac_ext <<EOF
16695 #line 16696 "configure"
16696 #include "confdefs.h"
16697 #include <math.h>
16698                       #ifdef HAVE_IEEEFP_H
16699                       #include <ieeefp.h>
16700                       #endif
16701                      
16702 int main() {
16703  _isinfl(0);
16704 ; return 0; }
16705 EOF
16706 if { (eval echo configure:16707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16707   rm -rf conftest*
16708   glibcpp_cv_func__isinfl_use=yes
16709 else
16710   echo "configure: failed program was:" >&5
16711   cat conftest.$ac_ext >&5
16712   rm -rf conftest*
16713   glibcpp_cv_func__isinfl_use=no
16714 fi
16715 rm -f conftest*
16716       ac_ext=c
16717 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16718 ac_cpp='$CPP $CPPFLAGS'
16719 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16720 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16721 cross_compiling=$ac_cv_prog_cc_cross
16722
16723     
16724 fi
16725
16726   fi
16727   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
16728
16729     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
16730       for ac_func in _isinfl
16731 do
16732 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16733 echo "configure:16734: checking for $ac_func" >&5
16734 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16735   echo $ac_n "(cached) $ac_c" 1>&6
16736 else
16737   cat > conftest.$ac_ext <<EOF
16738 #line 16739 "configure"
16739 #include "confdefs.h"
16740 /* System header to define __stub macros and hopefully few prototypes,
16741     which can conflict with char $ac_func(); below.  */
16742 #include <assert.h>
16743 /* Override any gcc2 internal prototype to avoid an error.  */
16744 /* We use char because int might match the return type of a gcc2
16745     builtin and then its argument prototype would still apply.  */
16746 char $ac_func();
16747
16748 int main() {
16749
16750 /* The GNU C library defines this for functions which it implements
16751     to always fail with ENOSYS.  Some functions are actually named
16752     something starting with __ and the normal name is an alias.  */
16753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16754 choke me
16755 #else
16756 $ac_func();
16757 #endif
16758
16759 ; return 0; }
16760 EOF
16761 if { (eval echo configure:16762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16762   rm -rf conftest*
16763   eval "ac_cv_func_$ac_func=yes"
16764 else
16765   echo "configure: failed program was:" >&5
16766   cat conftest.$ac_ext >&5
16767   rm -rf conftest*
16768   eval "ac_cv_func_$ac_func=no"
16769 fi
16770 rm -f conftest*
16771 fi
16772
16773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16774   echo "$ac_t""yes" 1>&6
16775     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16776   cat >> confdefs.h <<EOF
16777 #define $ac_tr_func 1
16778 EOF
16779  
16780 else
16781   echo "$ac_t""no" 1>&6
16782 fi
16783 done
16784     
16785     fi
16786   fi
16787
16788   
16789   
16790   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16791 echo "configure:16792: checking for copysignl declaration" >&5
16792   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
16793     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
16794   echo $ac_n "(cached) $ac_c" 1>&6
16795 else
16796   
16797       
16798       ac_ext=C
16799 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16800 ac_cpp='$CXXCPP $CPPFLAGS'
16801 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16802 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16803 cross_compiling=$ac_cv_prog_cxx_cross
16804
16805       cat > conftest.$ac_ext <<EOF
16806 #line 16807 "configure"
16807 #include "confdefs.h"
16808 #include <math.h>
16809 int main() {
16810  copysignl(0, 0);
16811 ; return 0; }
16812 EOF
16813 if { (eval echo configure:16814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16814   rm -rf conftest*
16815   glibcpp_cv_func_copysignl_use=yes
16816 else
16817   echo "configure: failed program was:" >&5
16818   cat conftest.$ac_ext >&5
16819   rm -rf conftest*
16820   glibcpp_cv_func_copysignl_use=no
16821 fi
16822 rm -f conftest*
16823       ac_ext=c
16824 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16825 ac_cpp='$CPP $CPPFLAGS'
16826 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16827 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16828 cross_compiling=$ac_cv_prog_cc_cross
16829
16830     
16831 fi
16832
16833   fi
16834   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
16835
16836   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
16837     for ac_func in copysignl
16838 do
16839 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16840 echo "configure:16841: checking for $ac_func" >&5
16841 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16842   echo $ac_n "(cached) $ac_c" 1>&6
16843 else
16844   cat > conftest.$ac_ext <<EOF
16845 #line 16846 "configure"
16846 #include "confdefs.h"
16847 /* System header to define __stub macros and hopefully few prototypes,
16848     which can conflict with char $ac_func(); below.  */
16849 #include <assert.h>
16850 /* Override any gcc2 internal prototype to avoid an error.  */
16851 /* We use char because int might match the return type of a gcc2
16852     builtin and then its argument prototype would still apply.  */
16853 char $ac_func();
16854
16855 int main() {
16856
16857 /* The GNU C library defines this for functions which it implements
16858     to always fail with ENOSYS.  Some functions are actually named
16859     something starting with __ and the normal name is an alias.  */
16860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16861 choke me
16862 #else
16863 $ac_func();
16864 #endif
16865
16866 ; return 0; }
16867 EOF
16868 if { (eval echo configure:16869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16869   rm -rf conftest*
16870   eval "ac_cv_func_$ac_func=yes"
16871 else
16872   echo "configure: failed program was:" >&5
16873   cat conftest.$ac_ext >&5
16874   rm -rf conftest*
16875   eval "ac_cv_func_$ac_func=no"
16876 fi
16877 rm -f conftest*
16878 fi
16879
16880 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16881   echo "$ac_t""yes" 1>&6
16882     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16883   cat >> confdefs.h <<EOF
16884 #define $ac_tr_func 1
16885 EOF
16886  
16887 else
16888   echo "$ac_t""no" 1>&6
16889 fi
16890 done
16891     
16892   else
16893     
16894   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
16895 echo "configure:16896: checking for _copysignl declaration" >&5
16896   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
16897     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
16898   echo $ac_n "(cached) $ac_c" 1>&6
16899 else
16900   
16901       
16902       ac_ext=C
16903 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16904 ac_cpp='$CXXCPP $CPPFLAGS'
16905 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16906 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16907 cross_compiling=$ac_cv_prog_cxx_cross
16908
16909       cat > conftest.$ac_ext <<EOF
16910 #line 16911 "configure"
16911 #include "confdefs.h"
16912 #include <math.h>
16913 int main() {
16914  _copysignl(0, 0);
16915 ; return 0; }
16916 EOF
16917 if { (eval echo configure:16918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16918   rm -rf conftest*
16919   glibcpp_cv_func__copysignl_use=yes
16920 else
16921   echo "configure: failed program was:" >&5
16922   cat conftest.$ac_ext >&5
16923   rm -rf conftest*
16924   glibcpp_cv_func__copysignl_use=no
16925 fi
16926 rm -f conftest*
16927       ac_ext=c
16928 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16929 ac_cpp='$CPP $CPPFLAGS'
16930 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16931 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16932 cross_compiling=$ac_cv_prog_cc_cross
16933
16934     
16935 fi
16936
16937   fi
16938   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
16939
16940     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
16941       for ac_func in _copysignl
16942 do
16943 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16944 echo "configure:16945: checking for $ac_func" >&5
16945 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16946   echo $ac_n "(cached) $ac_c" 1>&6
16947 else
16948   cat > conftest.$ac_ext <<EOF
16949 #line 16950 "configure"
16950 #include "confdefs.h"
16951 /* System header to define __stub macros and hopefully few prototypes,
16952     which can conflict with char $ac_func(); below.  */
16953 #include <assert.h>
16954 /* Override any gcc2 internal prototype to avoid an error.  */
16955 /* We use char because int might match the return type of a gcc2
16956     builtin and then its argument prototype would still apply.  */
16957 char $ac_func();
16958
16959 int main() {
16960
16961 /* The GNU C library defines this for functions which it implements
16962     to always fail with ENOSYS.  Some functions are actually named
16963     something starting with __ and the normal name is an alias.  */
16964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16965 choke me
16966 #else
16967 $ac_func();
16968 #endif
16969
16970 ; return 0; }
16971 EOF
16972 if { (eval echo configure:16973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16973   rm -rf conftest*
16974   eval "ac_cv_func_$ac_func=yes"
16975 else
16976   echo "configure: failed program was:" >&5
16977   cat conftest.$ac_ext >&5
16978   rm -rf conftest*
16979   eval "ac_cv_func_$ac_func=no"
16980 fi
16981 rm -f conftest*
16982 fi
16983
16984 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16985   echo "$ac_t""yes" 1>&6
16986     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16987   cat >> confdefs.h <<EOF
16988 #define $ac_tr_func 1
16989 EOF
16990  
16991 else
16992   echo "$ac_t""no" 1>&6
16993 fi
16994 done
16995     
16996     fi
16997   fi
16998
16999   
17000   
17001   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
17002 echo "configure:17003: checking for atan2l declaration" >&5
17003   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
17004     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
17005   echo $ac_n "(cached) $ac_c" 1>&6
17006 else
17007   
17008       
17009       ac_ext=C
17010 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17011 ac_cpp='$CXXCPP $CPPFLAGS'
17012 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17013 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17014 cross_compiling=$ac_cv_prog_cxx_cross
17015
17016       cat > conftest.$ac_ext <<EOF
17017 #line 17018 "configure"
17018 #include "confdefs.h"
17019 #include <math.h>
17020 int main() {
17021  atan2l(0, 0);
17022 ; return 0; }
17023 EOF
17024 if { (eval echo configure:17025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17025   rm -rf conftest*
17026   glibcpp_cv_func_atan2l_use=yes
17027 else
17028   echo "configure: failed program was:" >&5
17029   cat conftest.$ac_ext >&5
17030   rm -rf conftest*
17031   glibcpp_cv_func_atan2l_use=no
17032 fi
17033 rm -f conftest*
17034       ac_ext=c
17035 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17036 ac_cpp='$CPP $CPPFLAGS'
17037 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17038 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17039 cross_compiling=$ac_cv_prog_cc_cross
17040
17041     
17042 fi
17043
17044   fi
17045   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
17046
17047   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
17048     for ac_func in atan2l
17049 do
17050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17051 echo "configure:17052: checking for $ac_func" >&5
17052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17053   echo $ac_n "(cached) $ac_c" 1>&6
17054 else
17055   cat > conftest.$ac_ext <<EOF
17056 #line 17057 "configure"
17057 #include "confdefs.h"
17058 /* System header to define __stub macros and hopefully few prototypes,
17059     which can conflict with char $ac_func(); below.  */
17060 #include <assert.h>
17061 /* Override any gcc2 internal prototype to avoid an error.  */
17062 /* We use char because int might match the return type of a gcc2
17063     builtin and then its argument prototype would still apply.  */
17064 char $ac_func();
17065
17066 int main() {
17067
17068 /* The GNU C library defines this for functions which it implements
17069     to always fail with ENOSYS.  Some functions are actually named
17070     something starting with __ and the normal name is an alias.  */
17071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17072 choke me
17073 #else
17074 $ac_func();
17075 #endif
17076
17077 ; return 0; }
17078 EOF
17079 if { (eval echo configure:17080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17080   rm -rf conftest*
17081   eval "ac_cv_func_$ac_func=yes"
17082 else
17083   echo "configure: failed program was:" >&5
17084   cat conftest.$ac_ext >&5
17085   rm -rf conftest*
17086   eval "ac_cv_func_$ac_func=no"
17087 fi
17088 rm -f conftest*
17089 fi
17090
17091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17092   echo "$ac_t""yes" 1>&6
17093     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17094   cat >> confdefs.h <<EOF
17095 #define $ac_tr_func 1
17096 EOF
17097  
17098 else
17099   echo "$ac_t""no" 1>&6
17100 fi
17101 done
17102     
17103   else
17104     
17105   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17106 echo "configure:17107: checking for _atan2l declaration" >&5
17107   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
17108     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
17109   echo $ac_n "(cached) $ac_c" 1>&6
17110 else
17111   
17112       
17113       ac_ext=C
17114 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17115 ac_cpp='$CXXCPP $CPPFLAGS'
17116 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17117 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17118 cross_compiling=$ac_cv_prog_cxx_cross
17119
17120       cat > conftest.$ac_ext <<EOF
17121 #line 17122 "configure"
17122 #include "confdefs.h"
17123 #include <math.h>
17124 int main() {
17125  _atan2l(0, 0);
17126 ; return 0; }
17127 EOF
17128 if { (eval echo configure:17129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17129   rm -rf conftest*
17130   glibcpp_cv_func__atan2l_use=yes
17131 else
17132   echo "configure: failed program was:" >&5
17133   cat conftest.$ac_ext >&5
17134   rm -rf conftest*
17135   glibcpp_cv_func__atan2l_use=no
17136 fi
17137 rm -f conftest*
17138       ac_ext=c
17139 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17140 ac_cpp='$CPP $CPPFLAGS'
17141 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17142 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17143 cross_compiling=$ac_cv_prog_cc_cross
17144
17145     
17146 fi
17147
17148   fi
17149   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
17150
17151     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
17152       for ac_func in _atan2l
17153 do
17154 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17155 echo "configure:17156: checking for $ac_func" >&5
17156 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17157   echo $ac_n "(cached) $ac_c" 1>&6
17158 else
17159   cat > conftest.$ac_ext <<EOF
17160 #line 17161 "configure"
17161 #include "confdefs.h"
17162 /* System header to define __stub macros and hopefully few prototypes,
17163     which can conflict with char $ac_func(); below.  */
17164 #include <assert.h>
17165 /* Override any gcc2 internal prototype to avoid an error.  */
17166 /* We use char because int might match the return type of a gcc2
17167     builtin and then its argument prototype would still apply.  */
17168 char $ac_func();
17169
17170 int main() {
17171
17172 /* The GNU C library defines this for functions which it implements
17173     to always fail with ENOSYS.  Some functions are actually named
17174     something starting with __ and the normal name is an alias.  */
17175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17176 choke me
17177 #else
17178 $ac_func();
17179 #endif
17180
17181 ; return 0; }
17182 EOF
17183 if { (eval echo configure:17184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17184   rm -rf conftest*
17185   eval "ac_cv_func_$ac_func=yes"
17186 else
17187   echo "configure: failed program was:" >&5
17188   cat conftest.$ac_ext >&5
17189   rm -rf conftest*
17190   eval "ac_cv_func_$ac_func=no"
17191 fi
17192 rm -f conftest*
17193 fi
17194
17195 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17196   echo "$ac_t""yes" 1>&6
17197     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17198   cat >> confdefs.h <<EOF
17199 #define $ac_tr_func 1
17200 EOF
17201  
17202 else
17203   echo "$ac_t""no" 1>&6
17204 fi
17205 done
17206     
17207     fi
17208   fi
17209
17210   
17211   
17212   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17213 echo "configure:17214: checking for expl declaration" >&5
17214   if test x${glibcpp_cv_func_expl_use+set} != xset; then
17215     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
17216   echo $ac_n "(cached) $ac_c" 1>&6
17217 else
17218   
17219       
17220       ac_ext=C
17221 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17222 ac_cpp='$CXXCPP $CPPFLAGS'
17223 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17224 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17225 cross_compiling=$ac_cv_prog_cxx_cross
17226
17227       cat > conftest.$ac_ext <<EOF
17228 #line 17229 "configure"
17229 #include "confdefs.h"
17230 #include <math.h>
17231                       #ifdef HAVE_IEEEFP_H
17232                       #include <ieeefp.h>
17233                       #endif
17234                      
17235 int main() {
17236  expl(0);
17237 ; return 0; }
17238 EOF
17239 if { (eval echo configure:17240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17240   rm -rf conftest*
17241   glibcpp_cv_func_expl_use=yes
17242 else
17243   echo "configure: failed program was:" >&5
17244   cat conftest.$ac_ext >&5
17245   rm -rf conftest*
17246   glibcpp_cv_func_expl_use=no
17247 fi
17248 rm -f conftest*
17249       ac_ext=c
17250 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17251 ac_cpp='$CPP $CPPFLAGS'
17252 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17253 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17254 cross_compiling=$ac_cv_prog_cc_cross
17255
17256     
17257 fi
17258
17259   fi
17260   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
17261
17262   if test x$glibcpp_cv_func_expl_use = x"yes"; then
17263     for ac_func in expl
17264 do
17265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17266 echo "configure:17267: checking for $ac_func" >&5
17267 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17268   echo $ac_n "(cached) $ac_c" 1>&6
17269 else
17270   cat > conftest.$ac_ext <<EOF
17271 #line 17272 "configure"
17272 #include "confdefs.h"
17273 /* System header to define __stub macros and hopefully few prototypes,
17274     which can conflict with char $ac_func(); below.  */
17275 #include <assert.h>
17276 /* Override any gcc2 internal prototype to avoid an error.  */
17277 /* We use char because int might match the return type of a gcc2
17278     builtin and then its argument prototype would still apply.  */
17279 char $ac_func();
17280
17281 int main() {
17282
17283 /* The GNU C library defines this for functions which it implements
17284     to always fail with ENOSYS.  Some functions are actually named
17285     something starting with __ and the normal name is an alias.  */
17286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17287 choke me
17288 #else
17289 $ac_func();
17290 #endif
17291
17292 ; return 0; }
17293 EOF
17294 if { (eval echo configure:17295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17295   rm -rf conftest*
17296   eval "ac_cv_func_$ac_func=yes"
17297 else
17298   echo "configure: failed program was:" >&5
17299   cat conftest.$ac_ext >&5
17300   rm -rf conftest*
17301   eval "ac_cv_func_$ac_func=no"
17302 fi
17303 rm -f conftest*
17304 fi
17305
17306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17307   echo "$ac_t""yes" 1>&6
17308     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17309   cat >> confdefs.h <<EOF
17310 #define $ac_tr_func 1
17311 EOF
17312  
17313 else
17314   echo "$ac_t""no" 1>&6
17315 fi
17316 done
17317     
17318   else
17319     
17320   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17321 echo "configure:17322: checking for _expl declaration" >&5
17322   if test x${glibcpp_cv_func__expl_use+set} != xset; then
17323     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
17324   echo $ac_n "(cached) $ac_c" 1>&6
17325 else
17326   
17327       
17328       ac_ext=C
17329 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17330 ac_cpp='$CXXCPP $CPPFLAGS'
17331 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17332 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17333 cross_compiling=$ac_cv_prog_cxx_cross
17334
17335       cat > conftest.$ac_ext <<EOF
17336 #line 17337 "configure"
17337 #include "confdefs.h"
17338 #include <math.h>
17339                       #ifdef HAVE_IEEEFP_H
17340                       #include <ieeefp.h>
17341                       #endif
17342                      
17343 int main() {
17344  _expl(0);
17345 ; return 0; }
17346 EOF
17347 if { (eval echo configure:17348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17348   rm -rf conftest*
17349   glibcpp_cv_func__expl_use=yes
17350 else
17351   echo "configure: failed program was:" >&5
17352   cat conftest.$ac_ext >&5
17353   rm -rf conftest*
17354   glibcpp_cv_func__expl_use=no
17355 fi
17356 rm -f conftest*
17357       ac_ext=c
17358 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17359 ac_cpp='$CPP $CPPFLAGS'
17360 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17361 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17362 cross_compiling=$ac_cv_prog_cc_cross
17363
17364     
17365 fi
17366
17367   fi
17368   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
17369
17370     if test x$glibcpp_cv_func__expl_use = x"yes"; then
17371       for ac_func in _expl
17372 do
17373 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17374 echo "configure:17375: checking for $ac_func" >&5
17375 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17376   echo $ac_n "(cached) $ac_c" 1>&6
17377 else
17378   cat > conftest.$ac_ext <<EOF
17379 #line 17380 "configure"
17380 #include "confdefs.h"
17381 /* System header to define __stub macros and hopefully few prototypes,
17382     which can conflict with char $ac_func(); below.  */
17383 #include <assert.h>
17384 /* Override any gcc2 internal prototype to avoid an error.  */
17385 /* We use char because int might match the return type of a gcc2
17386     builtin and then its argument prototype would still apply.  */
17387 char $ac_func();
17388
17389 int main() {
17390
17391 /* The GNU C library defines this for functions which it implements
17392     to always fail with ENOSYS.  Some functions are actually named
17393     something starting with __ and the normal name is an alias.  */
17394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17395 choke me
17396 #else
17397 $ac_func();
17398 #endif
17399
17400 ; return 0; }
17401 EOF
17402 if { (eval echo configure:17403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17403   rm -rf conftest*
17404   eval "ac_cv_func_$ac_func=yes"
17405 else
17406   echo "configure: failed program was:" >&5
17407   cat conftest.$ac_ext >&5
17408   rm -rf conftest*
17409   eval "ac_cv_func_$ac_func=no"
17410 fi
17411 rm -f conftest*
17412 fi
17413
17414 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17415   echo "$ac_t""yes" 1>&6
17416     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17417   cat >> confdefs.h <<EOF
17418 #define $ac_tr_func 1
17419 EOF
17420  
17421 else
17422   echo "$ac_t""no" 1>&6
17423 fi
17424 done
17425     
17426     fi
17427   fi
17428
17429   
17430   
17431   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17432 echo "configure:17433: checking for fabsl declaration" >&5
17433   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
17434     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
17435   echo $ac_n "(cached) $ac_c" 1>&6
17436 else
17437   
17438       
17439       ac_ext=C
17440 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17441 ac_cpp='$CXXCPP $CPPFLAGS'
17442 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17443 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17444 cross_compiling=$ac_cv_prog_cxx_cross
17445
17446       cat > conftest.$ac_ext <<EOF
17447 #line 17448 "configure"
17448 #include "confdefs.h"
17449 #include <math.h>
17450                       #ifdef HAVE_IEEEFP_H
17451                       #include <ieeefp.h>
17452                       #endif
17453                      
17454 int main() {
17455  fabsl(0);
17456 ; return 0; }
17457 EOF
17458 if { (eval echo configure:17459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17459   rm -rf conftest*
17460   glibcpp_cv_func_fabsl_use=yes
17461 else
17462   echo "configure: failed program was:" >&5
17463   cat conftest.$ac_ext >&5
17464   rm -rf conftest*
17465   glibcpp_cv_func_fabsl_use=no
17466 fi
17467 rm -f conftest*
17468       ac_ext=c
17469 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17470 ac_cpp='$CPP $CPPFLAGS'
17471 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17472 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17473 cross_compiling=$ac_cv_prog_cc_cross
17474
17475     
17476 fi
17477
17478   fi
17479   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
17480
17481   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
17482     for ac_func in fabsl
17483 do
17484 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17485 echo "configure:17486: checking for $ac_func" >&5
17486 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17487   echo $ac_n "(cached) $ac_c" 1>&6
17488 else
17489   cat > conftest.$ac_ext <<EOF
17490 #line 17491 "configure"
17491 #include "confdefs.h"
17492 /* System header to define __stub macros and hopefully few prototypes,
17493     which can conflict with char $ac_func(); below.  */
17494 #include <assert.h>
17495 /* Override any gcc2 internal prototype to avoid an error.  */
17496 /* We use char because int might match the return type of a gcc2
17497     builtin and then its argument prototype would still apply.  */
17498 char $ac_func();
17499
17500 int main() {
17501
17502 /* The GNU C library defines this for functions which it implements
17503     to always fail with ENOSYS.  Some functions are actually named
17504     something starting with __ and the normal name is an alias.  */
17505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17506 choke me
17507 #else
17508 $ac_func();
17509 #endif
17510
17511 ; return 0; }
17512 EOF
17513 if { (eval echo configure:17514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17514   rm -rf conftest*
17515   eval "ac_cv_func_$ac_func=yes"
17516 else
17517   echo "configure: failed program was:" >&5
17518   cat conftest.$ac_ext >&5
17519   rm -rf conftest*
17520   eval "ac_cv_func_$ac_func=no"
17521 fi
17522 rm -f conftest*
17523 fi
17524
17525 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17526   echo "$ac_t""yes" 1>&6
17527     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17528   cat >> confdefs.h <<EOF
17529 #define $ac_tr_func 1
17530 EOF
17531  
17532 else
17533   echo "$ac_t""no" 1>&6
17534 fi
17535 done
17536     
17537   else
17538     
17539   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17540 echo "configure:17541: checking for _fabsl declaration" >&5
17541   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
17542     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
17543   echo $ac_n "(cached) $ac_c" 1>&6
17544 else
17545   
17546       
17547       ac_ext=C
17548 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17549 ac_cpp='$CXXCPP $CPPFLAGS'
17550 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17551 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17552 cross_compiling=$ac_cv_prog_cxx_cross
17553
17554       cat > conftest.$ac_ext <<EOF
17555 #line 17556 "configure"
17556 #include "confdefs.h"
17557 #include <math.h>
17558                       #ifdef HAVE_IEEEFP_H
17559                       #include <ieeefp.h>
17560                       #endif
17561                      
17562 int main() {
17563  _fabsl(0);
17564 ; return 0; }
17565 EOF
17566 if { (eval echo configure:17567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17567   rm -rf conftest*
17568   glibcpp_cv_func__fabsl_use=yes
17569 else
17570   echo "configure: failed program was:" >&5
17571   cat conftest.$ac_ext >&5
17572   rm -rf conftest*
17573   glibcpp_cv_func__fabsl_use=no
17574 fi
17575 rm -f conftest*
17576       ac_ext=c
17577 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17578 ac_cpp='$CPP $CPPFLAGS'
17579 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17580 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17581 cross_compiling=$ac_cv_prog_cc_cross
17582
17583     
17584 fi
17585
17586   fi
17587   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
17588
17589     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
17590       for ac_func in _fabsl
17591 do
17592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17593 echo "configure:17594: checking for $ac_func" >&5
17594 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17595   echo $ac_n "(cached) $ac_c" 1>&6
17596 else
17597   cat > conftest.$ac_ext <<EOF
17598 #line 17599 "configure"
17599 #include "confdefs.h"
17600 /* System header to define __stub macros and hopefully few prototypes,
17601     which can conflict with char $ac_func(); below.  */
17602 #include <assert.h>
17603 /* Override any gcc2 internal prototype to avoid an error.  */
17604 /* We use char because int might match the return type of a gcc2
17605     builtin and then its argument prototype would still apply.  */
17606 char $ac_func();
17607
17608 int main() {
17609
17610 /* The GNU C library defines this for functions which it implements
17611     to always fail with ENOSYS.  Some functions are actually named
17612     something starting with __ and the normal name is an alias.  */
17613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17614 choke me
17615 #else
17616 $ac_func();
17617 #endif
17618
17619 ; return 0; }
17620 EOF
17621 if { (eval echo configure:17622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17622   rm -rf conftest*
17623   eval "ac_cv_func_$ac_func=yes"
17624 else
17625   echo "configure: failed program was:" >&5
17626   cat conftest.$ac_ext >&5
17627   rm -rf conftest*
17628   eval "ac_cv_func_$ac_func=no"
17629 fi
17630 rm -f conftest*
17631 fi
17632
17633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17634   echo "$ac_t""yes" 1>&6
17635     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17636   cat >> confdefs.h <<EOF
17637 #define $ac_tr_func 1
17638 EOF
17639  
17640 else
17641   echo "$ac_t""no" 1>&6
17642 fi
17643 done
17644     
17645     fi
17646   fi
17647
17648   
17649   
17650   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17651 echo "configure:17652: checking for fmodl declaration" >&5
17652   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
17653     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
17654   echo $ac_n "(cached) $ac_c" 1>&6
17655 else
17656   
17657       
17658       ac_ext=C
17659 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17660 ac_cpp='$CXXCPP $CPPFLAGS'
17661 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17662 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17663 cross_compiling=$ac_cv_prog_cxx_cross
17664
17665       cat > conftest.$ac_ext <<EOF
17666 #line 17667 "configure"
17667 #include "confdefs.h"
17668 #include <math.h>
17669 int main() {
17670  fmodl(0, 0);
17671 ; return 0; }
17672 EOF
17673 if { (eval echo configure:17674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17674   rm -rf conftest*
17675   glibcpp_cv_func_fmodl_use=yes
17676 else
17677   echo "configure: failed program was:" >&5
17678   cat conftest.$ac_ext >&5
17679   rm -rf conftest*
17680   glibcpp_cv_func_fmodl_use=no
17681 fi
17682 rm -f conftest*
17683       ac_ext=c
17684 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17685 ac_cpp='$CPP $CPPFLAGS'
17686 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17687 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17688 cross_compiling=$ac_cv_prog_cc_cross
17689
17690     
17691 fi
17692
17693   fi
17694   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
17695
17696   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
17697     for ac_func in fmodl
17698 do
17699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17700 echo "configure:17701: checking for $ac_func" >&5
17701 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17702   echo $ac_n "(cached) $ac_c" 1>&6
17703 else
17704   cat > conftest.$ac_ext <<EOF
17705 #line 17706 "configure"
17706 #include "confdefs.h"
17707 /* System header to define __stub macros and hopefully few prototypes,
17708     which can conflict with char $ac_func(); below.  */
17709 #include <assert.h>
17710 /* Override any gcc2 internal prototype to avoid an error.  */
17711 /* We use char because int might match the return type of a gcc2
17712     builtin and then its argument prototype would still apply.  */
17713 char $ac_func();
17714
17715 int main() {
17716
17717 /* The GNU C library defines this for functions which it implements
17718     to always fail with ENOSYS.  Some functions are actually named
17719     something starting with __ and the normal name is an alias.  */
17720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17721 choke me
17722 #else
17723 $ac_func();
17724 #endif
17725
17726 ; return 0; }
17727 EOF
17728 if { (eval echo configure:17729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17729   rm -rf conftest*
17730   eval "ac_cv_func_$ac_func=yes"
17731 else
17732   echo "configure: failed program was:" >&5
17733   cat conftest.$ac_ext >&5
17734   rm -rf conftest*
17735   eval "ac_cv_func_$ac_func=no"
17736 fi
17737 rm -f conftest*
17738 fi
17739
17740 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17741   echo "$ac_t""yes" 1>&6
17742     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17743   cat >> confdefs.h <<EOF
17744 #define $ac_tr_func 1
17745 EOF
17746  
17747 else
17748   echo "$ac_t""no" 1>&6
17749 fi
17750 done
17751     
17752   else
17753     
17754   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17755 echo "configure:17756: checking for _fmodl declaration" >&5
17756   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
17757     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
17758   echo $ac_n "(cached) $ac_c" 1>&6
17759 else
17760   
17761       
17762       ac_ext=C
17763 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17764 ac_cpp='$CXXCPP $CPPFLAGS'
17765 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17766 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17767 cross_compiling=$ac_cv_prog_cxx_cross
17768
17769       cat > conftest.$ac_ext <<EOF
17770 #line 17771 "configure"
17771 #include "confdefs.h"
17772 #include <math.h>
17773 int main() {
17774  _fmodl(0, 0);
17775 ; return 0; }
17776 EOF
17777 if { (eval echo configure:17778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17778   rm -rf conftest*
17779   glibcpp_cv_func__fmodl_use=yes
17780 else
17781   echo "configure: failed program was:" >&5
17782   cat conftest.$ac_ext >&5
17783   rm -rf conftest*
17784   glibcpp_cv_func__fmodl_use=no
17785 fi
17786 rm -f conftest*
17787       ac_ext=c
17788 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17789 ac_cpp='$CPP $CPPFLAGS'
17790 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17791 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17792 cross_compiling=$ac_cv_prog_cc_cross
17793
17794     
17795 fi
17796
17797   fi
17798   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
17799
17800     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
17801       for ac_func in _fmodl
17802 do
17803 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17804 echo "configure:17805: checking for $ac_func" >&5
17805 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17806   echo $ac_n "(cached) $ac_c" 1>&6
17807 else
17808   cat > conftest.$ac_ext <<EOF
17809 #line 17810 "configure"
17810 #include "confdefs.h"
17811 /* System header to define __stub macros and hopefully few prototypes,
17812     which can conflict with char $ac_func(); below.  */
17813 #include <assert.h>
17814 /* Override any gcc2 internal prototype to avoid an error.  */
17815 /* We use char because int might match the return type of a gcc2
17816     builtin and then its argument prototype would still apply.  */
17817 char $ac_func();
17818
17819 int main() {
17820
17821 /* The GNU C library defines this for functions which it implements
17822     to always fail with ENOSYS.  Some functions are actually named
17823     something starting with __ and the normal name is an alias.  */
17824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17825 choke me
17826 #else
17827 $ac_func();
17828 #endif
17829
17830 ; return 0; }
17831 EOF
17832 if { (eval echo configure:17833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17833   rm -rf conftest*
17834   eval "ac_cv_func_$ac_func=yes"
17835 else
17836   echo "configure: failed program was:" >&5
17837   cat conftest.$ac_ext >&5
17838   rm -rf conftest*
17839   eval "ac_cv_func_$ac_func=no"
17840 fi
17841 rm -f conftest*
17842 fi
17843
17844 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17845   echo "$ac_t""yes" 1>&6
17846     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17847   cat >> confdefs.h <<EOF
17848 #define $ac_tr_func 1
17849 EOF
17850  
17851 else
17852   echo "$ac_t""no" 1>&6
17853 fi
17854 done
17855     
17856     fi
17857   fi
17858
17859   
17860   
17861   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
17862 echo "configure:17863: checking for frexpl declaration" >&5
17863   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
17864     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
17865   echo $ac_n "(cached) $ac_c" 1>&6
17866 else
17867   
17868       
17869       ac_ext=C
17870 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17871 ac_cpp='$CXXCPP $CPPFLAGS'
17872 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17873 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17874 cross_compiling=$ac_cv_prog_cxx_cross
17875
17876       cat > conftest.$ac_ext <<EOF
17877 #line 17878 "configure"
17878 #include "confdefs.h"
17879 #include <math.h>
17880 int main() {
17881  frexpl(0, 0);
17882 ; return 0; }
17883 EOF
17884 if { (eval echo configure:17885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17885   rm -rf conftest*
17886   glibcpp_cv_func_frexpl_use=yes
17887 else
17888   echo "configure: failed program was:" >&5
17889   cat conftest.$ac_ext >&5
17890   rm -rf conftest*
17891   glibcpp_cv_func_frexpl_use=no
17892 fi
17893 rm -f conftest*
17894       ac_ext=c
17895 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17896 ac_cpp='$CPP $CPPFLAGS'
17897 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17898 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17899 cross_compiling=$ac_cv_prog_cc_cross
17900
17901     
17902 fi
17903
17904   fi
17905   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
17906
17907   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
17908     for ac_func in frexpl
17909 do
17910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17911 echo "configure:17912: checking for $ac_func" >&5
17912 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17913   echo $ac_n "(cached) $ac_c" 1>&6
17914 else
17915   cat > conftest.$ac_ext <<EOF
17916 #line 17917 "configure"
17917 #include "confdefs.h"
17918 /* System header to define __stub macros and hopefully few prototypes,
17919     which can conflict with char $ac_func(); below.  */
17920 #include <assert.h>
17921 /* Override any gcc2 internal prototype to avoid an error.  */
17922 /* We use char because int might match the return type of a gcc2
17923     builtin and then its argument prototype would still apply.  */
17924 char $ac_func();
17925
17926 int main() {
17927
17928 /* The GNU C library defines this for functions which it implements
17929     to always fail with ENOSYS.  Some functions are actually named
17930     something starting with __ and the normal name is an alias.  */
17931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17932 choke me
17933 #else
17934 $ac_func();
17935 #endif
17936
17937 ; return 0; }
17938 EOF
17939 if { (eval echo configure:17940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17940   rm -rf conftest*
17941   eval "ac_cv_func_$ac_func=yes"
17942 else
17943   echo "configure: failed program was:" >&5
17944   cat conftest.$ac_ext >&5
17945   rm -rf conftest*
17946   eval "ac_cv_func_$ac_func=no"
17947 fi
17948 rm -f conftest*
17949 fi
17950
17951 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17952   echo "$ac_t""yes" 1>&6
17953     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17954   cat >> confdefs.h <<EOF
17955 #define $ac_tr_func 1
17956 EOF
17957  
17958 else
17959   echo "$ac_t""no" 1>&6
17960 fi
17961 done
17962     
17963   else
17964     
17965   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
17966 echo "configure:17967: checking for _frexpl declaration" >&5
17967   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
17968     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
17969   echo $ac_n "(cached) $ac_c" 1>&6
17970 else
17971   
17972       
17973       ac_ext=C
17974 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17975 ac_cpp='$CXXCPP $CPPFLAGS'
17976 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17977 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17978 cross_compiling=$ac_cv_prog_cxx_cross
17979
17980       cat > conftest.$ac_ext <<EOF
17981 #line 17982 "configure"
17982 #include "confdefs.h"
17983 #include <math.h>
17984 int main() {
17985  _frexpl(0, 0);
17986 ; return 0; }
17987 EOF
17988 if { (eval echo configure:17989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17989   rm -rf conftest*
17990   glibcpp_cv_func__frexpl_use=yes
17991 else
17992   echo "configure: failed program was:" >&5
17993   cat conftest.$ac_ext >&5
17994   rm -rf conftest*
17995   glibcpp_cv_func__frexpl_use=no
17996 fi
17997 rm -f conftest*
17998       ac_ext=c
17999 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18000 ac_cpp='$CPP $CPPFLAGS'
18001 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18002 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18003 cross_compiling=$ac_cv_prog_cc_cross
18004
18005     
18006 fi
18007
18008   fi
18009   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
18010
18011     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
18012       for ac_func in _frexpl
18013 do
18014 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18015 echo "configure:18016: checking for $ac_func" >&5
18016 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18017   echo $ac_n "(cached) $ac_c" 1>&6
18018 else
18019   cat > conftest.$ac_ext <<EOF
18020 #line 18021 "configure"
18021 #include "confdefs.h"
18022 /* System header to define __stub macros and hopefully few prototypes,
18023     which can conflict with char $ac_func(); below.  */
18024 #include <assert.h>
18025 /* Override any gcc2 internal prototype to avoid an error.  */
18026 /* We use char because int might match the return type of a gcc2
18027     builtin and then its argument prototype would still apply.  */
18028 char $ac_func();
18029
18030 int main() {
18031
18032 /* The GNU C library defines this for functions which it implements
18033     to always fail with ENOSYS.  Some functions are actually named
18034     something starting with __ and the normal name is an alias.  */
18035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18036 choke me
18037 #else
18038 $ac_func();
18039 #endif
18040
18041 ; return 0; }
18042 EOF
18043 if { (eval echo configure:18044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18044   rm -rf conftest*
18045   eval "ac_cv_func_$ac_func=yes"
18046 else
18047   echo "configure: failed program was:" >&5
18048   cat conftest.$ac_ext >&5
18049   rm -rf conftest*
18050   eval "ac_cv_func_$ac_func=no"
18051 fi
18052 rm -f conftest*
18053 fi
18054
18055 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18056   echo "$ac_t""yes" 1>&6
18057     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18058   cat >> confdefs.h <<EOF
18059 #define $ac_tr_func 1
18060 EOF
18061  
18062 else
18063   echo "$ac_t""no" 1>&6
18064 fi
18065 done
18066     
18067     fi
18068   fi
18069
18070   
18071   
18072   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
18073 echo "configure:18074: checking for hypotl declaration" >&5
18074   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
18075     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
18076   echo $ac_n "(cached) $ac_c" 1>&6
18077 else
18078   
18079       
18080       ac_ext=C
18081 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18082 ac_cpp='$CXXCPP $CPPFLAGS'
18083 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18084 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18085 cross_compiling=$ac_cv_prog_cxx_cross
18086
18087       cat > conftest.$ac_ext <<EOF
18088 #line 18089 "configure"
18089 #include "confdefs.h"
18090 #include <math.h>
18091 int main() {
18092  hypotl(0, 0);
18093 ; return 0; }
18094 EOF
18095 if { (eval echo configure:18096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18096   rm -rf conftest*
18097   glibcpp_cv_func_hypotl_use=yes
18098 else
18099   echo "configure: failed program was:" >&5
18100   cat conftest.$ac_ext >&5
18101   rm -rf conftest*
18102   glibcpp_cv_func_hypotl_use=no
18103 fi
18104 rm -f conftest*
18105       ac_ext=c
18106 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18107 ac_cpp='$CPP $CPPFLAGS'
18108 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18109 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18110 cross_compiling=$ac_cv_prog_cc_cross
18111
18112     
18113 fi
18114
18115   fi
18116   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
18117
18118   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
18119     for ac_func in hypotl
18120 do
18121 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18122 echo "configure:18123: checking for $ac_func" >&5
18123 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18124   echo $ac_n "(cached) $ac_c" 1>&6
18125 else
18126   cat > conftest.$ac_ext <<EOF
18127 #line 18128 "configure"
18128 #include "confdefs.h"
18129 /* System header to define __stub macros and hopefully few prototypes,
18130     which can conflict with char $ac_func(); below.  */
18131 #include <assert.h>
18132 /* Override any gcc2 internal prototype to avoid an error.  */
18133 /* We use char because int might match the return type of a gcc2
18134     builtin and then its argument prototype would still apply.  */
18135 char $ac_func();
18136
18137 int main() {
18138
18139 /* The GNU C library defines this for functions which it implements
18140     to always fail with ENOSYS.  Some functions are actually named
18141     something starting with __ and the normal name is an alias.  */
18142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18143 choke me
18144 #else
18145 $ac_func();
18146 #endif
18147
18148 ; return 0; }
18149 EOF
18150 if { (eval echo configure:18151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18151   rm -rf conftest*
18152   eval "ac_cv_func_$ac_func=yes"
18153 else
18154   echo "configure: failed program was:" >&5
18155   cat conftest.$ac_ext >&5
18156   rm -rf conftest*
18157   eval "ac_cv_func_$ac_func=no"
18158 fi
18159 rm -f conftest*
18160 fi
18161
18162 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18163   echo "$ac_t""yes" 1>&6
18164     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18165   cat >> confdefs.h <<EOF
18166 #define $ac_tr_func 1
18167 EOF
18168  
18169 else
18170   echo "$ac_t""no" 1>&6
18171 fi
18172 done
18173     
18174   else
18175     
18176   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18177 echo "configure:18178: checking for _hypotl declaration" >&5
18178   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
18179     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
18180   echo $ac_n "(cached) $ac_c" 1>&6
18181 else
18182   
18183       
18184       ac_ext=C
18185 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18186 ac_cpp='$CXXCPP $CPPFLAGS'
18187 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18188 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18189 cross_compiling=$ac_cv_prog_cxx_cross
18190
18191       cat > conftest.$ac_ext <<EOF
18192 #line 18193 "configure"
18193 #include "confdefs.h"
18194 #include <math.h>
18195 int main() {
18196  _hypotl(0, 0);
18197 ; return 0; }
18198 EOF
18199 if { (eval echo configure:18200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18200   rm -rf conftest*
18201   glibcpp_cv_func__hypotl_use=yes
18202 else
18203   echo "configure: failed program was:" >&5
18204   cat conftest.$ac_ext >&5
18205   rm -rf conftest*
18206   glibcpp_cv_func__hypotl_use=no
18207 fi
18208 rm -f conftest*
18209       ac_ext=c
18210 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18211 ac_cpp='$CPP $CPPFLAGS'
18212 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18213 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18214 cross_compiling=$ac_cv_prog_cc_cross
18215
18216     
18217 fi
18218
18219   fi
18220   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
18221
18222     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
18223       for ac_func in _hypotl
18224 do
18225 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18226 echo "configure:18227: checking for $ac_func" >&5
18227 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18228   echo $ac_n "(cached) $ac_c" 1>&6
18229 else
18230   cat > conftest.$ac_ext <<EOF
18231 #line 18232 "configure"
18232 #include "confdefs.h"
18233 /* System header to define __stub macros and hopefully few prototypes,
18234     which can conflict with char $ac_func(); below.  */
18235 #include <assert.h>
18236 /* Override any gcc2 internal prototype to avoid an error.  */
18237 /* We use char because int might match the return type of a gcc2
18238     builtin and then its argument prototype would still apply.  */
18239 char $ac_func();
18240
18241 int main() {
18242
18243 /* The GNU C library defines this for functions which it implements
18244     to always fail with ENOSYS.  Some functions are actually named
18245     something starting with __ and the normal name is an alias.  */
18246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18247 choke me
18248 #else
18249 $ac_func();
18250 #endif
18251
18252 ; return 0; }
18253 EOF
18254 if { (eval echo configure:18255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18255   rm -rf conftest*
18256   eval "ac_cv_func_$ac_func=yes"
18257 else
18258   echo "configure: failed program was:" >&5
18259   cat conftest.$ac_ext >&5
18260   rm -rf conftest*
18261   eval "ac_cv_func_$ac_func=no"
18262 fi
18263 rm -f conftest*
18264 fi
18265
18266 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18267   echo "$ac_t""yes" 1>&6
18268     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18269   cat >> confdefs.h <<EOF
18270 #define $ac_tr_func 1
18271 EOF
18272  
18273 else
18274   echo "$ac_t""no" 1>&6
18275 fi
18276 done
18277     
18278     fi
18279   fi
18280
18281   
18282   
18283   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18284 echo "configure:18285: checking for ldexpl declaration" >&5
18285   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
18286     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
18287   echo $ac_n "(cached) $ac_c" 1>&6
18288 else
18289   
18290       
18291       ac_ext=C
18292 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18293 ac_cpp='$CXXCPP $CPPFLAGS'
18294 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18295 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18296 cross_compiling=$ac_cv_prog_cxx_cross
18297
18298       cat > conftest.$ac_ext <<EOF
18299 #line 18300 "configure"
18300 #include "confdefs.h"
18301 #include <math.h>
18302 int main() {
18303  ldexpl(0, 0);
18304 ; return 0; }
18305 EOF
18306 if { (eval echo configure:18307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18307   rm -rf conftest*
18308   glibcpp_cv_func_ldexpl_use=yes
18309 else
18310   echo "configure: failed program was:" >&5
18311   cat conftest.$ac_ext >&5
18312   rm -rf conftest*
18313   glibcpp_cv_func_ldexpl_use=no
18314 fi
18315 rm -f conftest*
18316       ac_ext=c
18317 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18318 ac_cpp='$CPP $CPPFLAGS'
18319 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18320 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18321 cross_compiling=$ac_cv_prog_cc_cross
18322
18323     
18324 fi
18325
18326   fi
18327   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
18328
18329   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
18330     for ac_func in ldexpl
18331 do
18332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18333 echo "configure:18334: checking for $ac_func" >&5
18334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18335   echo $ac_n "(cached) $ac_c" 1>&6
18336 else
18337   cat > conftest.$ac_ext <<EOF
18338 #line 18339 "configure"
18339 #include "confdefs.h"
18340 /* System header to define __stub macros and hopefully few prototypes,
18341     which can conflict with char $ac_func(); below.  */
18342 #include <assert.h>
18343 /* Override any gcc2 internal prototype to avoid an error.  */
18344 /* We use char because int might match the return type of a gcc2
18345     builtin and then its argument prototype would still apply.  */
18346 char $ac_func();
18347
18348 int main() {
18349
18350 /* The GNU C library defines this for functions which it implements
18351     to always fail with ENOSYS.  Some functions are actually named
18352     something starting with __ and the normal name is an alias.  */
18353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18354 choke me
18355 #else
18356 $ac_func();
18357 #endif
18358
18359 ; return 0; }
18360 EOF
18361 if { (eval echo configure:18362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18362   rm -rf conftest*
18363   eval "ac_cv_func_$ac_func=yes"
18364 else
18365   echo "configure: failed program was:" >&5
18366   cat conftest.$ac_ext >&5
18367   rm -rf conftest*
18368   eval "ac_cv_func_$ac_func=no"
18369 fi
18370 rm -f conftest*
18371 fi
18372
18373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18374   echo "$ac_t""yes" 1>&6
18375     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18376   cat >> confdefs.h <<EOF
18377 #define $ac_tr_func 1
18378 EOF
18379  
18380 else
18381   echo "$ac_t""no" 1>&6
18382 fi
18383 done
18384     
18385   else
18386     
18387   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18388 echo "configure:18389: checking for _ldexpl declaration" >&5
18389   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
18390     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
18391   echo $ac_n "(cached) $ac_c" 1>&6
18392 else
18393   
18394       
18395       ac_ext=C
18396 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18397 ac_cpp='$CXXCPP $CPPFLAGS'
18398 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18399 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18400 cross_compiling=$ac_cv_prog_cxx_cross
18401
18402       cat > conftest.$ac_ext <<EOF
18403 #line 18404 "configure"
18404 #include "confdefs.h"
18405 #include <math.h>
18406 int main() {
18407  _ldexpl(0, 0);
18408 ; return 0; }
18409 EOF
18410 if { (eval echo configure:18411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18411   rm -rf conftest*
18412   glibcpp_cv_func__ldexpl_use=yes
18413 else
18414   echo "configure: failed program was:" >&5
18415   cat conftest.$ac_ext >&5
18416   rm -rf conftest*
18417   glibcpp_cv_func__ldexpl_use=no
18418 fi
18419 rm -f conftest*
18420       ac_ext=c
18421 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18422 ac_cpp='$CPP $CPPFLAGS'
18423 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18424 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18425 cross_compiling=$ac_cv_prog_cc_cross
18426
18427     
18428 fi
18429
18430   fi
18431   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
18432
18433     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
18434       for ac_func in _ldexpl
18435 do
18436 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18437 echo "configure:18438: checking for $ac_func" >&5
18438 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18439   echo $ac_n "(cached) $ac_c" 1>&6
18440 else
18441   cat > conftest.$ac_ext <<EOF
18442 #line 18443 "configure"
18443 #include "confdefs.h"
18444 /* System header to define __stub macros and hopefully few prototypes,
18445     which can conflict with char $ac_func(); below.  */
18446 #include <assert.h>
18447 /* Override any gcc2 internal prototype to avoid an error.  */
18448 /* We use char because int might match the return type of a gcc2
18449     builtin and then its argument prototype would still apply.  */
18450 char $ac_func();
18451
18452 int main() {
18453
18454 /* The GNU C library defines this for functions which it implements
18455     to always fail with ENOSYS.  Some functions are actually named
18456     something starting with __ and the normal name is an alias.  */
18457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18458 choke me
18459 #else
18460 $ac_func();
18461 #endif
18462
18463 ; return 0; }
18464 EOF
18465 if { (eval echo configure:18466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18466   rm -rf conftest*
18467   eval "ac_cv_func_$ac_func=yes"
18468 else
18469   echo "configure: failed program was:" >&5
18470   cat conftest.$ac_ext >&5
18471   rm -rf conftest*
18472   eval "ac_cv_func_$ac_func=no"
18473 fi
18474 rm -f conftest*
18475 fi
18476
18477 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18478   echo "$ac_t""yes" 1>&6
18479     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18480   cat >> confdefs.h <<EOF
18481 #define $ac_tr_func 1
18482 EOF
18483  
18484 else
18485   echo "$ac_t""no" 1>&6
18486 fi
18487 done
18488     
18489     fi
18490   fi
18491
18492   
18493   
18494   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18495 echo "configure:18496: checking for logl declaration" >&5
18496   if test x${glibcpp_cv_func_logl_use+set} != xset; then
18497     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
18498   echo $ac_n "(cached) $ac_c" 1>&6
18499 else
18500   
18501       
18502       ac_ext=C
18503 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18504 ac_cpp='$CXXCPP $CPPFLAGS'
18505 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18506 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18507 cross_compiling=$ac_cv_prog_cxx_cross
18508
18509       cat > conftest.$ac_ext <<EOF
18510 #line 18511 "configure"
18511 #include "confdefs.h"
18512 #include <math.h>
18513                       #ifdef HAVE_IEEEFP_H
18514                       #include <ieeefp.h>
18515                       #endif
18516                      
18517 int main() {
18518  logl(0);
18519 ; return 0; }
18520 EOF
18521 if { (eval echo configure:18522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18522   rm -rf conftest*
18523   glibcpp_cv_func_logl_use=yes
18524 else
18525   echo "configure: failed program was:" >&5
18526   cat conftest.$ac_ext >&5
18527   rm -rf conftest*
18528   glibcpp_cv_func_logl_use=no
18529 fi
18530 rm -f conftest*
18531       ac_ext=c
18532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18533 ac_cpp='$CPP $CPPFLAGS'
18534 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18535 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18536 cross_compiling=$ac_cv_prog_cc_cross
18537
18538     
18539 fi
18540
18541   fi
18542   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
18543
18544   if test x$glibcpp_cv_func_logl_use = x"yes"; then
18545     for ac_func in logl
18546 do
18547 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18548 echo "configure:18549: checking for $ac_func" >&5
18549 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18550   echo $ac_n "(cached) $ac_c" 1>&6
18551 else
18552   cat > conftest.$ac_ext <<EOF
18553 #line 18554 "configure"
18554 #include "confdefs.h"
18555 /* System header to define __stub macros and hopefully few prototypes,
18556     which can conflict with char $ac_func(); below.  */
18557 #include <assert.h>
18558 /* Override any gcc2 internal prototype to avoid an error.  */
18559 /* We use char because int might match the return type of a gcc2
18560     builtin and then its argument prototype would still apply.  */
18561 char $ac_func();
18562
18563 int main() {
18564
18565 /* The GNU C library defines this for functions which it implements
18566     to always fail with ENOSYS.  Some functions are actually named
18567     something starting with __ and the normal name is an alias.  */
18568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18569 choke me
18570 #else
18571 $ac_func();
18572 #endif
18573
18574 ; return 0; }
18575 EOF
18576 if { (eval echo configure:18577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18577   rm -rf conftest*
18578   eval "ac_cv_func_$ac_func=yes"
18579 else
18580   echo "configure: failed program was:" >&5
18581   cat conftest.$ac_ext >&5
18582   rm -rf conftest*
18583   eval "ac_cv_func_$ac_func=no"
18584 fi
18585 rm -f conftest*
18586 fi
18587
18588 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18589   echo "$ac_t""yes" 1>&6
18590     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18591   cat >> confdefs.h <<EOF
18592 #define $ac_tr_func 1
18593 EOF
18594  
18595 else
18596   echo "$ac_t""no" 1>&6
18597 fi
18598 done
18599     
18600   else
18601     
18602   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18603 echo "configure:18604: checking for _logl declaration" >&5
18604   if test x${glibcpp_cv_func__logl_use+set} != xset; then
18605     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
18606   echo $ac_n "(cached) $ac_c" 1>&6
18607 else
18608   
18609       
18610       ac_ext=C
18611 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18612 ac_cpp='$CXXCPP $CPPFLAGS'
18613 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18614 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18615 cross_compiling=$ac_cv_prog_cxx_cross
18616
18617       cat > conftest.$ac_ext <<EOF
18618 #line 18619 "configure"
18619 #include "confdefs.h"
18620 #include <math.h>
18621                       #ifdef HAVE_IEEEFP_H
18622                       #include <ieeefp.h>
18623                       #endif
18624                      
18625 int main() {
18626  _logl(0);
18627 ; return 0; }
18628 EOF
18629 if { (eval echo configure:18630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18630   rm -rf conftest*
18631   glibcpp_cv_func__logl_use=yes
18632 else
18633   echo "configure: failed program was:" >&5
18634   cat conftest.$ac_ext >&5
18635   rm -rf conftest*
18636   glibcpp_cv_func__logl_use=no
18637 fi
18638 rm -f conftest*
18639       ac_ext=c
18640 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18641 ac_cpp='$CPP $CPPFLAGS'
18642 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18643 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18644 cross_compiling=$ac_cv_prog_cc_cross
18645
18646     
18647 fi
18648
18649   fi
18650   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
18651
18652     if test x$glibcpp_cv_func__logl_use = x"yes"; then
18653       for ac_func in _logl
18654 do
18655 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18656 echo "configure:18657: checking for $ac_func" >&5
18657 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18658   echo $ac_n "(cached) $ac_c" 1>&6
18659 else
18660   cat > conftest.$ac_ext <<EOF
18661 #line 18662 "configure"
18662 #include "confdefs.h"
18663 /* System header to define __stub macros and hopefully few prototypes,
18664     which can conflict with char $ac_func(); below.  */
18665 #include <assert.h>
18666 /* Override any gcc2 internal prototype to avoid an error.  */
18667 /* We use char because int might match the return type of a gcc2
18668     builtin and then its argument prototype would still apply.  */
18669 char $ac_func();
18670
18671 int main() {
18672
18673 /* The GNU C library defines this for functions which it implements
18674     to always fail with ENOSYS.  Some functions are actually named
18675     something starting with __ and the normal name is an alias.  */
18676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18677 choke me
18678 #else
18679 $ac_func();
18680 #endif
18681
18682 ; return 0; }
18683 EOF
18684 if { (eval echo configure:18685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18685   rm -rf conftest*
18686   eval "ac_cv_func_$ac_func=yes"
18687 else
18688   echo "configure: failed program was:" >&5
18689   cat conftest.$ac_ext >&5
18690   rm -rf conftest*
18691   eval "ac_cv_func_$ac_func=no"
18692 fi
18693 rm -f conftest*
18694 fi
18695
18696 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18697   echo "$ac_t""yes" 1>&6
18698     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18699   cat >> confdefs.h <<EOF
18700 #define $ac_tr_func 1
18701 EOF
18702  
18703 else
18704   echo "$ac_t""no" 1>&6
18705 fi
18706 done
18707     
18708     fi
18709   fi
18710
18711   
18712   
18713   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18714 echo "configure:18715: checking for log10l declaration" >&5
18715   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
18716     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
18717   echo $ac_n "(cached) $ac_c" 1>&6
18718 else
18719   
18720       
18721       ac_ext=C
18722 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18723 ac_cpp='$CXXCPP $CPPFLAGS'
18724 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18725 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18726 cross_compiling=$ac_cv_prog_cxx_cross
18727
18728       cat > conftest.$ac_ext <<EOF
18729 #line 18730 "configure"
18730 #include "confdefs.h"
18731 #include <math.h>
18732                       #ifdef HAVE_IEEEFP_H
18733                       #include <ieeefp.h>
18734                       #endif
18735                      
18736 int main() {
18737  log10l(0);
18738 ; return 0; }
18739 EOF
18740 if { (eval echo configure:18741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18741   rm -rf conftest*
18742   glibcpp_cv_func_log10l_use=yes
18743 else
18744   echo "configure: failed program was:" >&5
18745   cat conftest.$ac_ext >&5
18746   rm -rf conftest*
18747   glibcpp_cv_func_log10l_use=no
18748 fi
18749 rm -f conftest*
18750       ac_ext=c
18751 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18752 ac_cpp='$CPP $CPPFLAGS'
18753 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18754 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18755 cross_compiling=$ac_cv_prog_cc_cross
18756
18757     
18758 fi
18759
18760   fi
18761   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
18762
18763   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
18764     for ac_func in log10l
18765 do
18766 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18767 echo "configure:18768: checking for $ac_func" >&5
18768 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18769   echo $ac_n "(cached) $ac_c" 1>&6
18770 else
18771   cat > conftest.$ac_ext <<EOF
18772 #line 18773 "configure"
18773 #include "confdefs.h"
18774 /* System header to define __stub macros and hopefully few prototypes,
18775     which can conflict with char $ac_func(); below.  */
18776 #include <assert.h>
18777 /* Override any gcc2 internal prototype to avoid an error.  */
18778 /* We use char because int might match the return type of a gcc2
18779     builtin and then its argument prototype would still apply.  */
18780 char $ac_func();
18781
18782 int main() {
18783
18784 /* The GNU C library defines this for functions which it implements
18785     to always fail with ENOSYS.  Some functions are actually named
18786     something starting with __ and the normal name is an alias.  */
18787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18788 choke me
18789 #else
18790 $ac_func();
18791 #endif
18792
18793 ; return 0; }
18794 EOF
18795 if { (eval echo configure:18796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18796   rm -rf conftest*
18797   eval "ac_cv_func_$ac_func=yes"
18798 else
18799   echo "configure: failed program was:" >&5
18800   cat conftest.$ac_ext >&5
18801   rm -rf conftest*
18802   eval "ac_cv_func_$ac_func=no"
18803 fi
18804 rm -f conftest*
18805 fi
18806
18807 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18808   echo "$ac_t""yes" 1>&6
18809     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18810   cat >> confdefs.h <<EOF
18811 #define $ac_tr_func 1
18812 EOF
18813  
18814 else
18815   echo "$ac_t""no" 1>&6
18816 fi
18817 done
18818     
18819   else
18820     
18821   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18822 echo "configure:18823: checking for _log10l declaration" >&5
18823   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
18824     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
18825   echo $ac_n "(cached) $ac_c" 1>&6
18826 else
18827   
18828       
18829       ac_ext=C
18830 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18831 ac_cpp='$CXXCPP $CPPFLAGS'
18832 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18833 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18834 cross_compiling=$ac_cv_prog_cxx_cross
18835
18836       cat > conftest.$ac_ext <<EOF
18837 #line 18838 "configure"
18838 #include "confdefs.h"
18839 #include <math.h>
18840                       #ifdef HAVE_IEEEFP_H
18841                       #include <ieeefp.h>
18842                       #endif
18843                      
18844 int main() {
18845  _log10l(0);
18846 ; return 0; }
18847 EOF
18848 if { (eval echo configure:18849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18849   rm -rf conftest*
18850   glibcpp_cv_func__log10l_use=yes
18851 else
18852   echo "configure: failed program was:" >&5
18853   cat conftest.$ac_ext >&5
18854   rm -rf conftest*
18855   glibcpp_cv_func__log10l_use=no
18856 fi
18857 rm -f conftest*
18858       ac_ext=c
18859 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18860 ac_cpp='$CPP $CPPFLAGS'
18861 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18862 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18863 cross_compiling=$ac_cv_prog_cc_cross
18864
18865     
18866 fi
18867
18868   fi
18869   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
18870
18871     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
18872       for ac_func in _log10l
18873 do
18874 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18875 echo "configure:18876: checking for $ac_func" >&5
18876 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18877   echo $ac_n "(cached) $ac_c" 1>&6
18878 else
18879   cat > conftest.$ac_ext <<EOF
18880 #line 18881 "configure"
18881 #include "confdefs.h"
18882 /* System header to define __stub macros and hopefully few prototypes,
18883     which can conflict with char $ac_func(); below.  */
18884 #include <assert.h>
18885 /* Override any gcc2 internal prototype to avoid an error.  */
18886 /* We use char because int might match the return type of a gcc2
18887     builtin and then its argument prototype would still apply.  */
18888 char $ac_func();
18889
18890 int main() {
18891
18892 /* The GNU C library defines this for functions which it implements
18893     to always fail with ENOSYS.  Some functions are actually named
18894     something starting with __ and the normal name is an alias.  */
18895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18896 choke me
18897 #else
18898 $ac_func();
18899 #endif
18900
18901 ; return 0; }
18902 EOF
18903 if { (eval echo configure:18904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18904   rm -rf conftest*
18905   eval "ac_cv_func_$ac_func=yes"
18906 else
18907   echo "configure: failed program was:" >&5
18908   cat conftest.$ac_ext >&5
18909   rm -rf conftest*
18910   eval "ac_cv_func_$ac_func=no"
18911 fi
18912 rm -f conftest*
18913 fi
18914
18915 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18916   echo "$ac_t""yes" 1>&6
18917     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18918   cat >> confdefs.h <<EOF
18919 #define $ac_tr_func 1
18920 EOF
18921  
18922 else
18923   echo "$ac_t""no" 1>&6
18924 fi
18925 done
18926     
18927     fi
18928   fi
18929
18930   
18931   
18932   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
18933 echo "configure:18934: checking for modfl declaration" >&5
18934   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
18935     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
18936   echo $ac_n "(cached) $ac_c" 1>&6
18937 else
18938   
18939       
18940       ac_ext=C
18941 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18942 ac_cpp='$CXXCPP $CPPFLAGS'
18943 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18944 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18945 cross_compiling=$ac_cv_prog_cxx_cross
18946
18947       cat > conftest.$ac_ext <<EOF
18948 #line 18949 "configure"
18949 #include "confdefs.h"
18950 #include <math.h>
18951 int main() {
18952  modfl(0, 0);
18953 ; return 0; }
18954 EOF
18955 if { (eval echo configure:18956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18956   rm -rf conftest*
18957   glibcpp_cv_func_modfl_use=yes
18958 else
18959   echo "configure: failed program was:" >&5
18960   cat conftest.$ac_ext >&5
18961   rm -rf conftest*
18962   glibcpp_cv_func_modfl_use=no
18963 fi
18964 rm -f conftest*
18965       ac_ext=c
18966 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18967 ac_cpp='$CPP $CPPFLAGS'
18968 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18969 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18970 cross_compiling=$ac_cv_prog_cc_cross
18971
18972     
18973 fi
18974
18975   fi
18976   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
18977
18978   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
18979     for ac_func in modfl
18980 do
18981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18982 echo "configure:18983: checking for $ac_func" >&5
18983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18984   echo $ac_n "(cached) $ac_c" 1>&6
18985 else
18986   cat > conftest.$ac_ext <<EOF
18987 #line 18988 "configure"
18988 #include "confdefs.h"
18989 /* System header to define __stub macros and hopefully few prototypes,
18990     which can conflict with char $ac_func(); below.  */
18991 #include <assert.h>
18992 /* Override any gcc2 internal prototype to avoid an error.  */
18993 /* We use char because int might match the return type of a gcc2
18994     builtin and then its argument prototype would still apply.  */
18995 char $ac_func();
18996
18997 int main() {
18998
18999 /* The GNU C library defines this for functions which it implements
19000     to always fail with ENOSYS.  Some functions are actually named
19001     something starting with __ and the normal name is an alias.  */
19002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19003 choke me
19004 #else
19005 $ac_func();
19006 #endif
19007
19008 ; return 0; }
19009 EOF
19010 if { (eval echo configure:19011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19011   rm -rf conftest*
19012   eval "ac_cv_func_$ac_func=yes"
19013 else
19014   echo "configure: failed program was:" >&5
19015   cat conftest.$ac_ext >&5
19016   rm -rf conftest*
19017   eval "ac_cv_func_$ac_func=no"
19018 fi
19019 rm -f conftest*
19020 fi
19021
19022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19023   echo "$ac_t""yes" 1>&6
19024     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19025   cat >> confdefs.h <<EOF
19026 #define $ac_tr_func 1
19027 EOF
19028  
19029 else
19030   echo "$ac_t""no" 1>&6
19031 fi
19032 done
19033     
19034   else
19035     
19036   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
19037 echo "configure:19038: checking for _modfl declaration" >&5
19038   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
19039     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
19040   echo $ac_n "(cached) $ac_c" 1>&6
19041 else
19042   
19043       
19044       ac_ext=C
19045 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19046 ac_cpp='$CXXCPP $CPPFLAGS'
19047 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19048 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19049 cross_compiling=$ac_cv_prog_cxx_cross
19050
19051       cat > conftest.$ac_ext <<EOF
19052 #line 19053 "configure"
19053 #include "confdefs.h"
19054 #include <math.h>
19055 int main() {
19056  _modfl(0, 0);
19057 ; return 0; }
19058 EOF
19059 if { (eval echo configure:19060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19060   rm -rf conftest*
19061   glibcpp_cv_func__modfl_use=yes
19062 else
19063   echo "configure: failed program was:" >&5
19064   cat conftest.$ac_ext >&5
19065   rm -rf conftest*
19066   glibcpp_cv_func__modfl_use=no
19067 fi
19068 rm -f conftest*
19069       ac_ext=c
19070 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19071 ac_cpp='$CPP $CPPFLAGS'
19072 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19073 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19074 cross_compiling=$ac_cv_prog_cc_cross
19075
19076     
19077 fi
19078
19079   fi
19080   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
19081
19082     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
19083       for ac_func in _modfl
19084 do
19085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19086 echo "configure:19087: checking for $ac_func" >&5
19087 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19088   echo $ac_n "(cached) $ac_c" 1>&6
19089 else
19090   cat > conftest.$ac_ext <<EOF
19091 #line 19092 "configure"
19092 #include "confdefs.h"
19093 /* System header to define __stub macros and hopefully few prototypes,
19094     which can conflict with char $ac_func(); below.  */
19095 #include <assert.h>
19096 /* Override any gcc2 internal prototype to avoid an error.  */
19097 /* We use char because int might match the return type of a gcc2
19098     builtin and then its argument prototype would still apply.  */
19099 char $ac_func();
19100
19101 int main() {
19102
19103 /* The GNU C library defines this for functions which it implements
19104     to always fail with ENOSYS.  Some functions are actually named
19105     something starting with __ and the normal name is an alias.  */
19106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19107 choke me
19108 #else
19109 $ac_func();
19110 #endif
19111
19112 ; return 0; }
19113 EOF
19114 if { (eval echo configure:19115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19115   rm -rf conftest*
19116   eval "ac_cv_func_$ac_func=yes"
19117 else
19118   echo "configure: failed program was:" >&5
19119   cat conftest.$ac_ext >&5
19120   rm -rf conftest*
19121   eval "ac_cv_func_$ac_func=no"
19122 fi
19123 rm -f conftest*
19124 fi
19125
19126 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19127   echo "$ac_t""yes" 1>&6
19128     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19129   cat >> confdefs.h <<EOF
19130 #define $ac_tr_func 1
19131 EOF
19132  
19133 else
19134   echo "$ac_t""no" 1>&6
19135 fi
19136 done
19137     
19138     fi
19139   fi
19140
19141   
19142   
19143   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19144 echo "configure:19145: checking for powl declaration" >&5
19145   if test x${glibcpp_cv_func_powl_use+set} != xset; then
19146     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
19147   echo $ac_n "(cached) $ac_c" 1>&6
19148 else
19149   
19150       
19151       ac_ext=C
19152 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19153 ac_cpp='$CXXCPP $CPPFLAGS'
19154 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19155 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19156 cross_compiling=$ac_cv_prog_cxx_cross
19157
19158       cat > conftest.$ac_ext <<EOF
19159 #line 19160 "configure"
19160 #include "confdefs.h"
19161 #include <math.h>
19162 int main() {
19163  powl(0, 0);
19164 ; return 0; }
19165 EOF
19166 if { (eval echo configure:19167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19167   rm -rf conftest*
19168   glibcpp_cv_func_powl_use=yes
19169 else
19170   echo "configure: failed program was:" >&5
19171   cat conftest.$ac_ext >&5
19172   rm -rf conftest*
19173   glibcpp_cv_func_powl_use=no
19174 fi
19175 rm -f conftest*
19176       ac_ext=c
19177 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19178 ac_cpp='$CPP $CPPFLAGS'
19179 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19180 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19181 cross_compiling=$ac_cv_prog_cc_cross
19182
19183     
19184 fi
19185
19186   fi
19187   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
19188
19189   if test x$glibcpp_cv_func_powl_use = x"yes"; then
19190     for ac_func in powl
19191 do
19192 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19193 echo "configure:19194: checking for $ac_func" >&5
19194 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19195   echo $ac_n "(cached) $ac_c" 1>&6
19196 else
19197   cat > conftest.$ac_ext <<EOF
19198 #line 19199 "configure"
19199 #include "confdefs.h"
19200 /* System header to define __stub macros and hopefully few prototypes,
19201     which can conflict with char $ac_func(); below.  */
19202 #include <assert.h>
19203 /* Override any gcc2 internal prototype to avoid an error.  */
19204 /* We use char because int might match the return type of a gcc2
19205     builtin and then its argument prototype would still apply.  */
19206 char $ac_func();
19207
19208 int main() {
19209
19210 /* The GNU C library defines this for functions which it implements
19211     to always fail with ENOSYS.  Some functions are actually named
19212     something starting with __ and the normal name is an alias.  */
19213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19214 choke me
19215 #else
19216 $ac_func();
19217 #endif
19218
19219 ; return 0; }
19220 EOF
19221 if { (eval echo configure:19222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19222   rm -rf conftest*
19223   eval "ac_cv_func_$ac_func=yes"
19224 else
19225   echo "configure: failed program was:" >&5
19226   cat conftest.$ac_ext >&5
19227   rm -rf conftest*
19228   eval "ac_cv_func_$ac_func=no"
19229 fi
19230 rm -f conftest*
19231 fi
19232
19233 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19234   echo "$ac_t""yes" 1>&6
19235     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19236   cat >> confdefs.h <<EOF
19237 #define $ac_tr_func 1
19238 EOF
19239  
19240 else
19241   echo "$ac_t""no" 1>&6
19242 fi
19243 done
19244     
19245   else
19246     
19247   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19248 echo "configure:19249: checking for _powl declaration" >&5
19249   if test x${glibcpp_cv_func__powl_use+set} != xset; then
19250     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
19251   echo $ac_n "(cached) $ac_c" 1>&6
19252 else
19253   
19254       
19255       ac_ext=C
19256 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19257 ac_cpp='$CXXCPP $CPPFLAGS'
19258 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19259 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19260 cross_compiling=$ac_cv_prog_cxx_cross
19261
19262       cat > conftest.$ac_ext <<EOF
19263 #line 19264 "configure"
19264 #include "confdefs.h"
19265 #include <math.h>
19266 int main() {
19267  _powl(0, 0);
19268 ; return 0; }
19269 EOF
19270 if { (eval echo configure:19271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19271   rm -rf conftest*
19272   glibcpp_cv_func__powl_use=yes
19273 else
19274   echo "configure: failed program was:" >&5
19275   cat conftest.$ac_ext >&5
19276   rm -rf conftest*
19277   glibcpp_cv_func__powl_use=no
19278 fi
19279 rm -f conftest*
19280       ac_ext=c
19281 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19282 ac_cpp='$CPP $CPPFLAGS'
19283 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19284 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19285 cross_compiling=$ac_cv_prog_cc_cross
19286
19287     
19288 fi
19289
19290   fi
19291   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
19292
19293     if test x$glibcpp_cv_func__powl_use = x"yes"; then
19294       for ac_func in _powl
19295 do
19296 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19297 echo "configure:19298: checking for $ac_func" >&5
19298 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19299   echo $ac_n "(cached) $ac_c" 1>&6
19300 else
19301   cat > conftest.$ac_ext <<EOF
19302 #line 19303 "configure"
19303 #include "confdefs.h"
19304 /* System header to define __stub macros and hopefully few prototypes,
19305     which can conflict with char $ac_func(); below.  */
19306 #include <assert.h>
19307 /* Override any gcc2 internal prototype to avoid an error.  */
19308 /* We use char because int might match the return type of a gcc2
19309     builtin and then its argument prototype would still apply.  */
19310 char $ac_func();
19311
19312 int main() {
19313
19314 /* The GNU C library defines this for functions which it implements
19315     to always fail with ENOSYS.  Some functions are actually named
19316     something starting with __ and the normal name is an alias.  */
19317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19318 choke me
19319 #else
19320 $ac_func();
19321 #endif
19322
19323 ; return 0; }
19324 EOF
19325 if { (eval echo configure:19326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19326   rm -rf conftest*
19327   eval "ac_cv_func_$ac_func=yes"
19328 else
19329   echo "configure: failed program was:" >&5
19330   cat conftest.$ac_ext >&5
19331   rm -rf conftest*
19332   eval "ac_cv_func_$ac_func=no"
19333 fi
19334 rm -f conftest*
19335 fi
19336
19337 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19338   echo "$ac_t""yes" 1>&6
19339     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19340   cat >> confdefs.h <<EOF
19341 #define $ac_tr_func 1
19342 EOF
19343  
19344 else
19345   echo "$ac_t""no" 1>&6
19346 fi
19347 done
19348     
19349     fi
19350   fi
19351
19352   
19353   
19354   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19355 echo "configure:19356: checking for sqrtl declaration" >&5
19356   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
19357     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
19358   echo $ac_n "(cached) $ac_c" 1>&6
19359 else
19360   
19361       
19362       ac_ext=C
19363 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19364 ac_cpp='$CXXCPP $CPPFLAGS'
19365 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19366 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19367 cross_compiling=$ac_cv_prog_cxx_cross
19368
19369       cat > conftest.$ac_ext <<EOF
19370 #line 19371 "configure"
19371 #include "confdefs.h"
19372 #include <math.h>
19373                       #ifdef HAVE_IEEEFP_H
19374                       #include <ieeefp.h>
19375                       #endif
19376                      
19377 int main() {
19378  sqrtl(0);
19379 ; return 0; }
19380 EOF
19381 if { (eval echo configure:19382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19382   rm -rf conftest*
19383   glibcpp_cv_func_sqrtl_use=yes
19384 else
19385   echo "configure: failed program was:" >&5
19386   cat conftest.$ac_ext >&5
19387   rm -rf conftest*
19388   glibcpp_cv_func_sqrtl_use=no
19389 fi
19390 rm -f conftest*
19391       ac_ext=c
19392 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19393 ac_cpp='$CPP $CPPFLAGS'
19394 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19395 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19396 cross_compiling=$ac_cv_prog_cc_cross
19397
19398     
19399 fi
19400
19401   fi
19402   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
19403
19404   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
19405     for ac_func in sqrtl
19406 do
19407 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19408 echo "configure:19409: checking for $ac_func" >&5
19409 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19410   echo $ac_n "(cached) $ac_c" 1>&6
19411 else
19412   cat > conftest.$ac_ext <<EOF
19413 #line 19414 "configure"
19414 #include "confdefs.h"
19415 /* System header to define __stub macros and hopefully few prototypes,
19416     which can conflict with char $ac_func(); below.  */
19417 #include <assert.h>
19418 /* Override any gcc2 internal prototype to avoid an error.  */
19419 /* We use char because int might match the return type of a gcc2
19420     builtin and then its argument prototype would still apply.  */
19421 char $ac_func();
19422
19423 int main() {
19424
19425 /* The GNU C library defines this for functions which it implements
19426     to always fail with ENOSYS.  Some functions are actually named
19427     something starting with __ and the normal name is an alias.  */
19428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19429 choke me
19430 #else
19431 $ac_func();
19432 #endif
19433
19434 ; return 0; }
19435 EOF
19436 if { (eval echo configure:19437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19437   rm -rf conftest*
19438   eval "ac_cv_func_$ac_func=yes"
19439 else
19440   echo "configure: failed program was:" >&5
19441   cat conftest.$ac_ext >&5
19442   rm -rf conftest*
19443   eval "ac_cv_func_$ac_func=no"
19444 fi
19445 rm -f conftest*
19446 fi
19447
19448 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19449   echo "$ac_t""yes" 1>&6
19450     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19451   cat >> confdefs.h <<EOF
19452 #define $ac_tr_func 1
19453 EOF
19454  
19455 else
19456   echo "$ac_t""no" 1>&6
19457 fi
19458 done
19459     
19460   else
19461     
19462   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19463 echo "configure:19464: checking for _sqrtl declaration" >&5
19464   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
19465     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
19466   echo $ac_n "(cached) $ac_c" 1>&6
19467 else
19468   
19469       
19470       ac_ext=C
19471 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19472 ac_cpp='$CXXCPP $CPPFLAGS'
19473 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19474 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19475 cross_compiling=$ac_cv_prog_cxx_cross
19476
19477       cat > conftest.$ac_ext <<EOF
19478 #line 19479 "configure"
19479 #include "confdefs.h"
19480 #include <math.h>
19481                       #ifdef HAVE_IEEEFP_H
19482                       #include <ieeefp.h>
19483                       #endif
19484                      
19485 int main() {
19486  _sqrtl(0);
19487 ; return 0; }
19488 EOF
19489 if { (eval echo configure:19490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19490   rm -rf conftest*
19491   glibcpp_cv_func__sqrtl_use=yes
19492 else
19493   echo "configure: failed program was:" >&5
19494   cat conftest.$ac_ext >&5
19495   rm -rf conftest*
19496   glibcpp_cv_func__sqrtl_use=no
19497 fi
19498 rm -f conftest*
19499       ac_ext=c
19500 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19501 ac_cpp='$CPP $CPPFLAGS'
19502 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19503 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19504 cross_compiling=$ac_cv_prog_cc_cross
19505
19506     
19507 fi
19508
19509   fi
19510   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
19511
19512     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
19513       for ac_func in _sqrtl
19514 do
19515 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19516 echo "configure:19517: checking for $ac_func" >&5
19517 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19518   echo $ac_n "(cached) $ac_c" 1>&6
19519 else
19520   cat > conftest.$ac_ext <<EOF
19521 #line 19522 "configure"
19522 #include "confdefs.h"
19523 /* System header to define __stub macros and hopefully few prototypes,
19524     which can conflict with char $ac_func(); below.  */
19525 #include <assert.h>
19526 /* Override any gcc2 internal prototype to avoid an error.  */
19527 /* We use char because int might match the return type of a gcc2
19528     builtin and then its argument prototype would still apply.  */
19529 char $ac_func();
19530
19531 int main() {
19532
19533 /* The GNU C library defines this for functions which it implements
19534     to always fail with ENOSYS.  Some functions are actually named
19535     something starting with __ and the normal name is an alias.  */
19536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19537 choke me
19538 #else
19539 $ac_func();
19540 #endif
19541
19542 ; return 0; }
19543 EOF
19544 if { (eval echo configure:19545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19545   rm -rf conftest*
19546   eval "ac_cv_func_$ac_func=yes"
19547 else
19548   echo "configure: failed program was:" >&5
19549   cat conftest.$ac_ext >&5
19550   rm -rf conftest*
19551   eval "ac_cv_func_$ac_func=no"
19552 fi
19553 rm -f conftest*
19554 fi
19555
19556 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19557   echo "$ac_t""yes" 1>&6
19558     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19559   cat >> confdefs.h <<EOF
19560 #define $ac_tr_func 1
19561 EOF
19562  
19563 else
19564   echo "$ac_t""no" 1>&6
19565 fi
19566 done
19567     
19568     fi
19569   fi
19570
19571   
19572   
19573   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19574 echo "configure:19575: checking for sincosl declaration" >&5
19575   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
19576     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
19577   echo $ac_n "(cached) $ac_c" 1>&6
19578 else
19579   
19580       
19581       ac_ext=C
19582 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19583 ac_cpp='$CXXCPP $CPPFLAGS'
19584 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19585 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19586 cross_compiling=$ac_cv_prog_cxx_cross
19587
19588       cat > conftest.$ac_ext <<EOF
19589 #line 19590 "configure"
19590 #include "confdefs.h"
19591 #include <math.h>
19592 int main() {
19593  sincosl(0, 0, 0);
19594 ; return 0; }
19595 EOF
19596 if { (eval echo configure:19597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19597   rm -rf conftest*
19598   glibcpp_cv_func_sincosl_use=yes
19599 else
19600   echo "configure: failed program was:" >&5
19601   cat conftest.$ac_ext >&5
19602   rm -rf conftest*
19603   glibcpp_cv_func_sincosl_use=no
19604 fi
19605 rm -f conftest*
19606       ac_ext=c
19607 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19608 ac_cpp='$CPP $CPPFLAGS'
19609 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19610 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19611 cross_compiling=$ac_cv_prog_cc_cross
19612
19613     
19614 fi
19615
19616   fi
19617   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
19618
19619   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
19620     for ac_func in sincosl
19621 do
19622 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19623 echo "configure:19624: checking for $ac_func" >&5
19624 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19625   echo $ac_n "(cached) $ac_c" 1>&6
19626 else
19627   cat > conftest.$ac_ext <<EOF
19628 #line 19629 "configure"
19629 #include "confdefs.h"
19630 /* System header to define __stub macros and hopefully few prototypes,
19631     which can conflict with char $ac_func(); below.  */
19632 #include <assert.h>
19633 /* Override any gcc2 internal prototype to avoid an error.  */
19634 /* We use char because int might match the return type of a gcc2
19635     builtin and then its argument prototype would still apply.  */
19636 char $ac_func();
19637
19638 int main() {
19639
19640 /* The GNU C library defines this for functions which it implements
19641     to always fail with ENOSYS.  Some functions are actually named
19642     something starting with __ and the normal name is an alias.  */
19643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19644 choke me
19645 #else
19646 $ac_func();
19647 #endif
19648
19649 ; return 0; }
19650 EOF
19651 if { (eval echo configure:19652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19652   rm -rf conftest*
19653   eval "ac_cv_func_$ac_func=yes"
19654 else
19655   echo "configure: failed program was:" >&5
19656   cat conftest.$ac_ext >&5
19657   rm -rf conftest*
19658   eval "ac_cv_func_$ac_func=no"
19659 fi
19660 rm -f conftest*
19661 fi
19662
19663 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19664   echo "$ac_t""yes" 1>&6
19665     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19666   cat >> confdefs.h <<EOF
19667 #define $ac_tr_func 1
19668 EOF
19669  
19670 else
19671   echo "$ac_t""no" 1>&6
19672 fi
19673 done
19674     
19675   else
19676     
19677   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19678 echo "configure:19679: checking for _sincosl declaration" >&5
19679   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
19680     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
19681   echo $ac_n "(cached) $ac_c" 1>&6
19682 else
19683   
19684       
19685       ac_ext=C
19686 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19687 ac_cpp='$CXXCPP $CPPFLAGS'
19688 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19689 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19690 cross_compiling=$ac_cv_prog_cxx_cross
19691
19692       cat > conftest.$ac_ext <<EOF
19693 #line 19694 "configure"
19694 #include "confdefs.h"
19695 #include <math.h>
19696 int main() {
19697  _sincosl(0, 0, 0);
19698 ; return 0; }
19699 EOF
19700 if { (eval echo configure:19701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19701   rm -rf conftest*
19702   glibcpp_cv_func__sincosl_use=yes
19703 else
19704   echo "configure: failed program was:" >&5
19705   cat conftest.$ac_ext >&5
19706   rm -rf conftest*
19707   glibcpp_cv_func__sincosl_use=no
19708 fi
19709 rm -f conftest*
19710       ac_ext=c
19711 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19712 ac_cpp='$CPP $CPPFLAGS'
19713 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19714 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19715 cross_compiling=$ac_cv_prog_cc_cross
19716
19717     
19718 fi
19719
19720   fi
19721   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
19722
19723     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
19724       for ac_func in _sincosl
19725 do
19726 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19727 echo "configure:19728: checking for $ac_func" >&5
19728 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19729   echo $ac_n "(cached) $ac_c" 1>&6
19730 else
19731   cat > conftest.$ac_ext <<EOF
19732 #line 19733 "configure"
19733 #include "confdefs.h"
19734 /* System header to define __stub macros and hopefully few prototypes,
19735     which can conflict with char $ac_func(); below.  */
19736 #include <assert.h>
19737 /* Override any gcc2 internal prototype to avoid an error.  */
19738 /* We use char because int might match the return type of a gcc2
19739     builtin and then its argument prototype would still apply.  */
19740 char $ac_func();
19741
19742 int main() {
19743
19744 /* The GNU C library defines this for functions which it implements
19745     to always fail with ENOSYS.  Some functions are actually named
19746     something starting with __ and the normal name is an alias.  */
19747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19748 choke me
19749 #else
19750 $ac_func();
19751 #endif
19752
19753 ; return 0; }
19754 EOF
19755 if { (eval echo configure:19756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19756   rm -rf conftest*
19757   eval "ac_cv_func_$ac_func=yes"
19758 else
19759   echo "configure: failed program was:" >&5
19760   cat conftest.$ac_ext >&5
19761   rm -rf conftest*
19762   eval "ac_cv_func_$ac_func=no"
19763 fi
19764 rm -f conftest*
19765 fi
19766
19767 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19768   echo "$ac_t""yes" 1>&6
19769     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19770   cat >> confdefs.h <<EOF
19771 #define $ac_tr_func 1
19772 EOF
19773  
19774 else
19775   echo "$ac_t""no" 1>&6
19776 fi
19777 done
19778     
19779     fi
19780   fi
19781
19782   
19783   
19784   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19785 echo "configure:19786: checking for finitel declaration" >&5
19786   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
19787     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
19788   echo $ac_n "(cached) $ac_c" 1>&6
19789 else
19790   
19791       
19792       ac_ext=C
19793 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19794 ac_cpp='$CXXCPP $CPPFLAGS'
19795 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19796 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19797 cross_compiling=$ac_cv_prog_cxx_cross
19798
19799       cat > conftest.$ac_ext <<EOF
19800 #line 19801 "configure"
19801 #include "confdefs.h"
19802 #include <math.h>
19803                       #ifdef HAVE_IEEEFP_H
19804                       #include <ieeefp.h>
19805                       #endif
19806                      
19807 int main() {
19808  finitel(0);
19809 ; return 0; }
19810 EOF
19811 if { (eval echo configure:19812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19812   rm -rf conftest*
19813   glibcpp_cv_func_finitel_use=yes
19814 else
19815   echo "configure: failed program was:" >&5
19816   cat conftest.$ac_ext >&5
19817   rm -rf conftest*
19818   glibcpp_cv_func_finitel_use=no
19819 fi
19820 rm -f conftest*
19821       ac_ext=c
19822 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19823 ac_cpp='$CPP $CPPFLAGS'
19824 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19825 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19826 cross_compiling=$ac_cv_prog_cc_cross
19827
19828     
19829 fi
19830
19831   fi
19832   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
19833
19834   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
19835     for ac_func in finitel
19836 do
19837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19838 echo "configure:19839: checking for $ac_func" >&5
19839 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19840   echo $ac_n "(cached) $ac_c" 1>&6
19841 else
19842   cat > conftest.$ac_ext <<EOF
19843 #line 19844 "configure"
19844 #include "confdefs.h"
19845 /* System header to define __stub macros and hopefully few prototypes,
19846     which can conflict with char $ac_func(); below.  */
19847 #include <assert.h>
19848 /* Override any gcc2 internal prototype to avoid an error.  */
19849 /* We use char because int might match the return type of a gcc2
19850     builtin and then its argument prototype would still apply.  */
19851 char $ac_func();
19852
19853 int main() {
19854
19855 /* The GNU C library defines this for functions which it implements
19856     to always fail with ENOSYS.  Some functions are actually named
19857     something starting with __ and the normal name is an alias.  */
19858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19859 choke me
19860 #else
19861 $ac_func();
19862 #endif
19863
19864 ; return 0; }
19865 EOF
19866 if { (eval echo configure:19867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19867   rm -rf conftest*
19868   eval "ac_cv_func_$ac_func=yes"
19869 else
19870   echo "configure: failed program was:" >&5
19871   cat conftest.$ac_ext >&5
19872   rm -rf conftest*
19873   eval "ac_cv_func_$ac_func=no"
19874 fi
19875 rm -f conftest*
19876 fi
19877
19878 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19879   echo "$ac_t""yes" 1>&6
19880     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19881   cat >> confdefs.h <<EOF
19882 #define $ac_tr_func 1
19883 EOF
19884  
19885 else
19886   echo "$ac_t""no" 1>&6
19887 fi
19888 done
19889     
19890   else
19891     
19892   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
19893 echo "configure:19894: checking for _finitel declaration" >&5
19894   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
19895     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
19896   echo $ac_n "(cached) $ac_c" 1>&6
19897 else
19898   
19899       
19900       ac_ext=C
19901 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19902 ac_cpp='$CXXCPP $CPPFLAGS'
19903 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19904 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19905 cross_compiling=$ac_cv_prog_cxx_cross
19906
19907       cat > conftest.$ac_ext <<EOF
19908 #line 19909 "configure"
19909 #include "confdefs.h"
19910 #include <math.h>
19911                       #ifdef HAVE_IEEEFP_H
19912                       #include <ieeefp.h>
19913                       #endif
19914                      
19915 int main() {
19916  _finitel(0);
19917 ; return 0; }
19918 EOF
19919 if { (eval echo configure:19920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19920   rm -rf conftest*
19921   glibcpp_cv_func__finitel_use=yes
19922 else
19923   echo "configure: failed program was:" >&5
19924   cat conftest.$ac_ext >&5
19925   rm -rf conftest*
19926   glibcpp_cv_func__finitel_use=no
19927 fi
19928 rm -f conftest*
19929       ac_ext=c
19930 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19931 ac_cpp='$CPP $CPPFLAGS'
19932 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19933 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19934 cross_compiling=$ac_cv_prog_cc_cross
19935
19936     
19937 fi
19938
19939   fi
19940   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
19941
19942     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
19943       for ac_func in _finitel
19944 do
19945 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19946 echo "configure:19947: checking for $ac_func" >&5
19947 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19948   echo $ac_n "(cached) $ac_c" 1>&6
19949 else
19950   cat > conftest.$ac_ext <<EOF
19951 #line 19952 "configure"
19952 #include "confdefs.h"
19953 /* System header to define __stub macros and hopefully few prototypes,
19954     which can conflict with char $ac_func(); below.  */
19955 #include <assert.h>
19956 /* Override any gcc2 internal prototype to avoid an error.  */
19957 /* We use char because int might match the return type of a gcc2
19958     builtin and then its argument prototype would still apply.  */
19959 char $ac_func();
19960
19961 int main() {
19962
19963 /* The GNU C library defines this for functions which it implements
19964     to always fail with ENOSYS.  Some functions are actually named
19965     something starting with __ and the normal name is an alias.  */
19966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19967 choke me
19968 #else
19969 $ac_func();
19970 #endif
19971
19972 ; return 0; }
19973 EOF
19974 if { (eval echo configure:19975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19975   rm -rf conftest*
19976   eval "ac_cv_func_$ac_func=yes"
19977 else
19978   echo "configure: failed program was:" >&5
19979   cat conftest.$ac_ext >&5
19980   rm -rf conftest*
19981   eval "ac_cv_func_$ac_func=no"
19982 fi
19983 rm -f conftest*
19984 fi
19985
19986 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19987   echo "$ac_t""yes" 1>&6
19988     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19989   cat >> confdefs.h <<EOF
19990 #define $ac_tr_func 1
19991 EOF
19992  
19993 else
19994   echo "$ac_t""no" 1>&6
19995 fi
19996 done
19997     
19998     fi
19999   fi
20000
20001
20002         
20003     
20004   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
20005 echo "configure:20006: checking for _float trig functions" >&5
20006   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
20007   echo $ac_n "(cached) $ac_c" 1>&6
20008 else
20009   
20010     
20011     ac_ext=C
20012 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20013 ac_cpp='$CXXCPP $CPPFLAGS'
20014 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20015 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20016 cross_compiling=$ac_cv_prog_cxx_cross
20017
20018     cat > conftest.$ac_ext <<EOF
20019 #line 20020 "configure"
20020 #include "confdefs.h"
20021 #include <math.h>
20022 int main() {
20023  `for x in _acosf _asinf _atanf \
20024                                           _cosf _sinf _tanf \
20025                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
20026 ; return 0; }
20027 EOF
20028 if { (eval echo configure:20029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20029   rm -rf conftest*
20030   glibcpp_cv_func__float_trig_use=yes
20031 else
20032   echo "configure: failed program was:" >&5
20033   cat conftest.$ac_ext >&5
20034   rm -rf conftest*
20035   glibcpp_cv_func__float_trig_use=no
20036 fi
20037 rm -f conftest*
20038     ac_ext=c
20039 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20040 ac_cpp='$CPP $CPPFLAGS'
20041 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20042 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20043 cross_compiling=$ac_cv_prog_cc_cross
20044
20045 fi
20046
20047   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
20048   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
20049     for ac_func in _acosf _asinf _atanf \
20050                                           _cosf _sinf _tanf \
20051                                           _coshf _sinhf _tanhf
20052 do
20053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20054 echo "configure:20055: checking for $ac_func" >&5
20055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20056   echo $ac_n "(cached) $ac_c" 1>&6
20057 else
20058   cat > conftest.$ac_ext <<EOF
20059 #line 20060 "configure"
20060 #include "confdefs.h"
20061 /* System header to define __stub macros and hopefully few prototypes,
20062     which can conflict with char $ac_func(); below.  */
20063 #include <assert.h>
20064 /* Override any gcc2 internal prototype to avoid an error.  */
20065 /* We use char because int might match the return type of a gcc2
20066     builtin and then its argument prototype would still apply.  */
20067 char $ac_func();
20068
20069 int main() {
20070
20071 /* The GNU C library defines this for functions which it implements
20072     to always fail with ENOSYS.  Some functions are actually named
20073     something starting with __ and the normal name is an alias.  */
20074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20075 choke me
20076 #else
20077 $ac_func();
20078 #endif
20079
20080 ; return 0; }
20081 EOF
20082 if { (eval echo configure:20083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20083   rm -rf conftest*
20084   eval "ac_cv_func_$ac_func=yes"
20085 else
20086   echo "configure: failed program was:" >&5
20087   cat conftest.$ac_ext >&5
20088   rm -rf conftest*
20089   eval "ac_cv_func_$ac_func=no"
20090 fi
20091 rm -f conftest*
20092 fi
20093
20094 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20095   echo "$ac_t""yes" 1>&6
20096     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20097   cat >> confdefs.h <<EOF
20098 #define $ac_tr_func 1
20099 EOF
20100  
20101 else
20102   echo "$ac_t""no" 1>&6
20103 fi
20104 done
20105
20106   fi
20107
20108   
20109   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20110 echo "configure:20111: checking for _float round functions" >&5
20111   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
20112   echo $ac_n "(cached) $ac_c" 1>&6
20113 else
20114   
20115     
20116     ac_ext=C
20117 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20118 ac_cpp='$CXXCPP $CPPFLAGS'
20119 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20120 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20121 cross_compiling=$ac_cv_prog_cxx_cross
20122
20123     cat > conftest.$ac_ext <<EOF
20124 #line 20125 "configure"
20125 #include "confdefs.h"
20126 #include <math.h>
20127 int main() {
20128  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
20129 ; return 0; }
20130 EOF
20131 if { (eval echo configure:20132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20132   rm -rf conftest*
20133   glibcpp_cv_func__float_round_use=yes
20134 else
20135   echo "configure: failed program was:" >&5
20136   cat conftest.$ac_ext >&5
20137   rm -rf conftest*
20138   glibcpp_cv_func__float_round_use=no
20139 fi
20140 rm -f conftest*
20141     ac_ext=c
20142 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20143 ac_cpp='$CPP $CPPFLAGS'
20144 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20145 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20146 cross_compiling=$ac_cv_prog_cc_cross
20147
20148 fi
20149
20150   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
20151   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
20152     for ac_func in _ceilf _floorf
20153 do
20154 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20155 echo "configure:20156: checking for $ac_func" >&5
20156 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20157   echo $ac_n "(cached) $ac_c" 1>&6
20158 else
20159   cat > conftest.$ac_ext <<EOF
20160 #line 20161 "configure"
20161 #include "confdefs.h"
20162 /* System header to define __stub macros and hopefully few prototypes,
20163     which can conflict with char $ac_func(); below.  */
20164 #include <assert.h>
20165 /* Override any gcc2 internal prototype to avoid an error.  */
20166 /* We use char because int might match the return type of a gcc2
20167     builtin and then its argument prototype would still apply.  */
20168 char $ac_func();
20169
20170 int main() {
20171
20172 /* The GNU C library defines this for functions which it implements
20173     to always fail with ENOSYS.  Some functions are actually named
20174     something starting with __ and the normal name is an alias.  */
20175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20176 choke me
20177 #else
20178 $ac_func();
20179 #endif
20180
20181 ; return 0; }
20182 EOF
20183 if { (eval echo configure:20184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20184   rm -rf conftest*
20185   eval "ac_cv_func_$ac_func=yes"
20186 else
20187   echo "configure: failed program was:" >&5
20188   cat conftest.$ac_ext >&5
20189   rm -rf conftest*
20190   eval "ac_cv_func_$ac_func=no"
20191 fi
20192 rm -f conftest*
20193 fi
20194
20195 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20196   echo "$ac_t""yes" 1>&6
20197     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20198   cat >> confdefs.h <<EOF
20199 #define $ac_tr_func 1
20200 EOF
20201  
20202 else
20203   echo "$ac_t""no" 1>&6
20204 fi
20205 done
20206
20207   fi
20208
20209
20210     
20211   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20212 echo "configure:20213: checking for _long double trig functions" >&5
20213   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
20214   echo $ac_n "(cached) $ac_c" 1>&6
20215 else
20216   
20217     
20218     ac_ext=C
20219 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20220 ac_cpp='$CXXCPP $CPPFLAGS'
20221 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20222 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20223 cross_compiling=$ac_cv_prog_cxx_cross
20224
20225     cat > conftest.$ac_ext <<EOF
20226 #line 20227 "configure"
20227 #include "confdefs.h"
20228 #include <math.h>
20229 int main() {
20230  `for x in _acosl _asinl _atanl \
20231                                           _cosl _sinl _tanl \
20232                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
20233 ; return 0; }
20234 EOF
20235 if { (eval echo configure:20236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20236   rm -rf conftest*
20237   glibcpp_cv_func__long_double_trig_use=yes
20238 else
20239   echo "configure: failed program was:" >&5
20240   cat conftest.$ac_ext >&5
20241   rm -rf conftest*
20242   glibcpp_cv_func__long_double_trig_use=no
20243 fi
20244 rm -f conftest*
20245     ac_ext=c
20246 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20247 ac_cpp='$CPP $CPPFLAGS'
20248 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20249 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20250 cross_compiling=$ac_cv_prog_cc_cross
20251
20252 fi
20253
20254   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
20255   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
20256     for ac_func in _acosl _asinl _atanl \
20257                                           _cosl _sinl _tanl \
20258                                           _coshl _sinhl _tanhl
20259 do
20260 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20261 echo "configure:20262: checking for $ac_func" >&5
20262 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20263   echo $ac_n "(cached) $ac_c" 1>&6
20264 else
20265   cat > conftest.$ac_ext <<EOF
20266 #line 20267 "configure"
20267 #include "confdefs.h"
20268 /* System header to define __stub macros and hopefully few prototypes,
20269     which can conflict with char $ac_func(); below.  */
20270 #include <assert.h>
20271 /* Override any gcc2 internal prototype to avoid an error.  */
20272 /* We use char because int might match the return type of a gcc2
20273     builtin and then its argument prototype would still apply.  */
20274 char $ac_func();
20275
20276 int main() {
20277
20278 /* The GNU C library defines this for functions which it implements
20279     to always fail with ENOSYS.  Some functions are actually named
20280     something starting with __ and the normal name is an alias.  */
20281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20282 choke me
20283 #else
20284 $ac_func();
20285 #endif
20286
20287 ; return 0; }
20288 EOF
20289 if { (eval echo configure:20290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20290   rm -rf conftest*
20291   eval "ac_cv_func_$ac_func=yes"
20292 else
20293   echo "configure: failed program was:" >&5
20294   cat conftest.$ac_ext >&5
20295   rm -rf conftest*
20296   eval "ac_cv_func_$ac_func=no"
20297 fi
20298 rm -f conftest*
20299 fi
20300
20301 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20302   echo "$ac_t""yes" 1>&6
20303     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20304   cat >> confdefs.h <<EOF
20305 #define $ac_tr_func 1
20306 EOF
20307  
20308 else
20309   echo "$ac_t""no" 1>&6
20310 fi
20311 done
20312
20313   fi
20314
20315   
20316   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20317 echo "configure:20318: checking for _long double round functions" >&5
20318   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
20319   echo $ac_n "(cached) $ac_c" 1>&6
20320 else
20321   
20322     
20323     ac_ext=C
20324 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20325 ac_cpp='$CXXCPP $CPPFLAGS'
20326 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20327 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20328 cross_compiling=$ac_cv_prog_cxx_cross
20329
20330     cat > conftest.$ac_ext <<EOF
20331 #line 20332 "configure"
20332 #include "confdefs.h"
20333 #include <math.h>
20334 int main() {
20335  `for x in _ceill _floorl; do echo "$x (0);"; done` 
20336 ; return 0; }
20337 EOF
20338 if { (eval echo configure:20339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20339   rm -rf conftest*
20340   glibcpp_cv_func__long_double_round_use=yes
20341 else
20342   echo "configure: failed program was:" >&5
20343   cat conftest.$ac_ext >&5
20344   rm -rf conftest*
20345   glibcpp_cv_func__long_double_round_use=no
20346 fi
20347 rm -f conftest*
20348     ac_ext=c
20349 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20350 ac_cpp='$CPP $CPPFLAGS'
20351 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20352 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20353 cross_compiling=$ac_cv_prog_cc_cross
20354
20355 fi
20356
20357   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
20358   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
20359     for ac_func in _ceill _floorl
20360 do
20361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20362 echo "configure:20363: checking for $ac_func" >&5
20363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20364   echo $ac_n "(cached) $ac_c" 1>&6
20365 else
20366   cat > conftest.$ac_ext <<EOF
20367 #line 20368 "configure"
20368 #include "confdefs.h"
20369 /* System header to define __stub macros and hopefully few prototypes,
20370     which can conflict with char $ac_func(); below.  */
20371 #include <assert.h>
20372 /* Override any gcc2 internal prototype to avoid an error.  */
20373 /* We use char because int might match the return type of a gcc2
20374     builtin and then its argument prototype would still apply.  */
20375 char $ac_func();
20376
20377 int main() {
20378
20379 /* The GNU C library defines this for functions which it implements
20380     to always fail with ENOSYS.  Some functions are actually named
20381     something starting with __ and the normal name is an alias.  */
20382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20383 choke me
20384 #else
20385 $ac_func();
20386 #endif
20387
20388 ; return 0; }
20389 EOF
20390 if { (eval echo configure:20391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20391   rm -rf conftest*
20392   eval "ac_cv_func_$ac_func=yes"
20393 else
20394   echo "configure: failed program was:" >&5
20395   cat conftest.$ac_ext >&5
20396   rm -rf conftest*
20397   eval "ac_cv_func_$ac_func=no"
20398 fi
20399 rm -f conftest*
20400 fi
20401
20402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20403   echo "$ac_t""yes" 1>&6
20404     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20405   cat >> confdefs.h <<EOF
20406 #define $ac_tr_func 1
20407 EOF
20408  
20409 else
20410   echo "$ac_t""no" 1>&6
20411 fi
20412 done
20413
20414   fi
20415
20416
20417   LIBS="$ac_save_LIBS"
20418   CXXFLAGS="$ac_save_CXXFLAGS"
20419
20420   
20421     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
20422 echo "configure:20423: checking for main in -lm" >&5
20423 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
20424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20425   echo $ac_n "(cached) $ac_c" 1>&6
20426 else
20427   ac_save_LIBS="$LIBS"
20428 LIBS="-lm  $LIBS"
20429 cat > conftest.$ac_ext <<EOF
20430 #line 20431 "configure"
20431 #include "confdefs.h"
20432
20433 int main() {
20434 main()
20435 ; return 0; }
20436 EOF
20437 if { (eval echo configure:20438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20438   rm -rf conftest*
20439   eval "ac_cv_lib_$ac_lib_var=yes"
20440 else
20441   echo "configure: failed program was:" >&5
20442   cat conftest.$ac_ext >&5
20443   rm -rf conftest*
20444   eval "ac_cv_lib_$ac_lib_var=no"
20445 fi
20446 rm -f conftest*
20447 LIBS="$ac_save_LIBS"
20448
20449 fi
20450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20451   echo "$ac_t""yes" 1>&6
20452     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
20453     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
20454   cat >> confdefs.h <<EOF
20455 #define $ac_tr_lib 1
20456 EOF
20457
20458   LIBS="-lm $LIBS"
20459
20460 else
20461   echo "$ac_t""no" 1>&6
20462 fi
20463
20464   for ac_func in nan copysignf
20465 do
20466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20467 echo "configure:20468: checking for $ac_func" >&5
20468 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20469   echo $ac_n "(cached) $ac_c" 1>&6
20470 else
20471   cat > conftest.$ac_ext <<EOF
20472 #line 20473 "configure"
20473 #include "confdefs.h"
20474 /* System header to define __stub macros and hopefully few prototypes,
20475     which can conflict with char $ac_func(); below.  */
20476 #include <assert.h>
20477 /* Override any gcc2 internal prototype to avoid an error.  */
20478 /* We use char because int might match the return type of a gcc2
20479     builtin and then its argument prototype would still apply.  */
20480 char $ac_func();
20481
20482 int main() {
20483
20484 /* The GNU C library defines this for functions which it implements
20485     to always fail with ENOSYS.  Some functions are actually named
20486     something starting with __ and the normal name is an alias.  */
20487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20488 choke me
20489 #else
20490 $ac_func();
20491 #endif
20492
20493 ; return 0; }
20494 EOF
20495 if { (eval echo configure:20496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20496   rm -rf conftest*
20497   eval "ac_cv_func_$ac_func=yes"
20498 else
20499   echo "configure: failed program was:" >&5
20500   cat conftest.$ac_ext >&5
20501   rm -rf conftest*
20502   eval "ac_cv_func_$ac_func=no"
20503 fi
20504 rm -f conftest*
20505 fi
20506
20507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20508   echo "$ac_t""yes" 1>&6
20509     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20510   cat >> confdefs.h <<EOF
20511 #define $ac_tr_func 1
20512 EOF
20513  
20514 else
20515   echo "$ac_t""no" 1>&6
20516 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
20517 fi
20518 done
20519
20520
20521     for ac_func in __signbit
20522 do
20523 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20524 echo "configure:20525: checking for $ac_func" >&5
20525 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20526   echo $ac_n "(cached) $ac_c" 1>&6
20527 else
20528   cat > conftest.$ac_ext <<EOF
20529 #line 20530 "configure"
20530 #include "confdefs.h"
20531 /* System header to define __stub macros and hopefully few prototypes,
20532     which can conflict with char $ac_func(); below.  */
20533 #include <assert.h>
20534 /* Override any gcc2 internal prototype to avoid an error.  */
20535 /* We use char because int might match the return type of a gcc2
20536     builtin and then its argument prototype would still apply.  */
20537 char $ac_func();
20538
20539 int main() {
20540
20541 /* The GNU C library defines this for functions which it implements
20542     to always fail with ENOSYS.  Some functions are actually named
20543     something starting with __ and the normal name is an alias.  */
20544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20545 choke me
20546 #else
20547 $ac_func();
20548 #endif
20549
20550 ; return 0; }
20551 EOF
20552 if { (eval echo configure:20553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20553   rm -rf conftest*
20554   eval "ac_cv_func_$ac_func=yes"
20555 else
20556   echo "configure: failed program was:" >&5
20557   cat conftest.$ac_ext >&5
20558   rm -rf conftest*
20559   eval "ac_cv_func_$ac_func=no"
20560 fi
20561 rm -f conftest*
20562 fi
20563
20564 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20565   echo "$ac_t""yes" 1>&6
20566     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20567   cat >> confdefs.h <<EOF
20568 #define $ac_tr_func 1
20569 EOF
20570  
20571 else
20572   echo "$ac_t""no" 1>&6
20573 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
20574 fi
20575 done
20576
20577   for ac_func in __signbitf
20578 do
20579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20580 echo "configure:20581: checking for $ac_func" >&5
20581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20582   echo $ac_n "(cached) $ac_c" 1>&6
20583 else
20584   cat > conftest.$ac_ext <<EOF
20585 #line 20586 "configure"
20586 #include "confdefs.h"
20587 /* System header to define __stub macros and hopefully few prototypes,
20588     which can conflict with char $ac_func(); below.  */
20589 #include <assert.h>
20590 /* Override any gcc2 internal prototype to avoid an error.  */
20591 /* We use char because int might match the return type of a gcc2
20592     builtin and then its argument prototype would still apply.  */
20593 char $ac_func();
20594
20595 int main() {
20596
20597 /* The GNU C library defines this for functions which it implements
20598     to always fail with ENOSYS.  Some functions are actually named
20599     something starting with __ and the normal name is an alias.  */
20600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20601 choke me
20602 #else
20603 $ac_func();
20604 #endif
20605
20606 ; return 0; }
20607 EOF
20608 if { (eval echo configure:20609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20609   rm -rf conftest*
20610   eval "ac_cv_func_$ac_func=yes"
20611 else
20612   echo "configure: failed program was:" >&5
20613   cat conftest.$ac_ext >&5
20614   rm -rf conftest*
20615   eval "ac_cv_func_$ac_func=no"
20616 fi
20617 rm -f conftest*
20618 fi
20619
20620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20621   echo "$ac_t""yes" 1>&6
20622     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20623   cat >> confdefs.h <<EOF
20624 #define $ac_tr_func 1
20625 EOF
20626  
20627 else
20628   echo "$ac_t""no" 1>&6
20629 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
20630 fi
20631 done
20632
20633
20634           if test x$ac_cv_func_copysignl = x"yes"; then
20635     for ac_func in __signbitl
20636 do
20637 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20638 echo "configure:20639: checking for $ac_func" >&5
20639 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20640   echo $ac_n "(cached) $ac_c" 1>&6
20641 else
20642   cat > conftest.$ac_ext <<EOF
20643 #line 20644 "configure"
20644 #include "confdefs.h"
20645 /* System header to define __stub macros and hopefully few prototypes,
20646     which can conflict with char $ac_func(); below.  */
20647 #include <assert.h>
20648 /* Override any gcc2 internal prototype to avoid an error.  */
20649 /* We use char because int might match the return type of a gcc2
20650     builtin and then its argument prototype would still apply.  */
20651 char $ac_func();
20652
20653 int main() {
20654
20655 /* The GNU C library defines this for functions which it implements
20656     to always fail with ENOSYS.  Some functions are actually named
20657     something starting with __ and the normal name is an alias.  */
20658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20659 choke me
20660 #else
20661 $ac_func();
20662 #endif
20663
20664 ; return 0; }
20665 EOF
20666 if { (eval echo configure:20667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20667   rm -rf conftest*
20668   eval "ac_cv_func_$ac_func=yes"
20669 else
20670   echo "configure: failed program was:" >&5
20671   cat conftest.$ac_ext >&5
20672   rm -rf conftest*
20673   eval "ac_cv_func_$ac_func=no"
20674 fi
20675 rm -f conftest*
20676 fi
20677
20678 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20679   echo "$ac_t""yes" 1>&6
20680     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20681   cat >> confdefs.h <<EOF
20682 #define $ac_tr_func 1
20683 EOF
20684  
20685 else
20686   echo "$ac_t""no" 1>&6
20687 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
20688 fi
20689 done
20690
20691   fi
20692
20693   
20694
20695   
20696
20697       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
20698 echo "configure:20699: checking for mbstate_t" >&5
20699   cat > conftest.$ac_ext <<EOF
20700 #line 20701 "configure"
20701 #include "confdefs.h"
20702 #include <wchar.h>
20703 int main() {
20704 mbstate_t teststate;
20705 ; return 0; }
20706 EOF
20707 if { (eval echo configure:20708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20708   rm -rf conftest*
20709   have_mbstate_t=yes
20710 else
20711   echo "configure: failed program was:" >&5
20712   cat conftest.$ac_ext >&5
20713   rm -rf conftest*
20714   have_mbstate_t=no
20715 fi
20716 rm -f conftest*
20717   echo "$ac_t""$have_mbstate_t" 1>&6
20718   if test x"$have_mbstate_t" = xyes; then
20719     cat >> confdefs.h <<\EOF
20720 #define HAVE_MBSTATE_T 1
20721 EOF
20722
20723   fi
20724
20725     for ac_hdr in wchar.h
20726 do
20727 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20728 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20729 echo "configure:20730: checking for $ac_hdr" >&5
20730 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20731   echo $ac_n "(cached) $ac_c" 1>&6
20732 else
20733   cat > conftest.$ac_ext <<EOF
20734 #line 20735 "configure"
20735 #include "confdefs.h"
20736 #include <$ac_hdr>
20737 EOF
20738 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20739 { (eval echo configure:20740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20740 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20741 if test -z "$ac_err"; then
20742   rm -rf conftest*
20743   eval "ac_cv_header_$ac_safe=yes"
20744 else
20745   echo "$ac_err" >&5
20746   echo "configure: failed program was:" >&5
20747   cat conftest.$ac_ext >&5
20748   rm -rf conftest*
20749   eval "ac_cv_header_$ac_safe=no"
20750 fi
20751 rm -f conftest*
20752 fi
20753 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20754   echo "$ac_t""yes" 1>&6
20755     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20756   cat >> confdefs.h <<EOF
20757 #define $ac_tr_hdr 1
20758 EOF
20759  ac_has_wchar_h=yes
20760 else
20761   echo "$ac_t""no" 1>&6
20762 ac_has_wchar_h=no
20763 fi
20764 done
20765
20766   for ac_hdr in wctype.h
20767 do
20768 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20769 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20770 echo "configure:20771: checking for $ac_hdr" >&5
20771 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20772   echo $ac_n "(cached) $ac_c" 1>&6
20773 else
20774   cat > conftest.$ac_ext <<EOF
20775 #line 20776 "configure"
20776 #include "confdefs.h"
20777 #include <$ac_hdr>
20778 EOF
20779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20780 { (eval echo configure:20781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20781 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20782 if test -z "$ac_err"; then
20783   rm -rf conftest*
20784   eval "ac_cv_header_$ac_safe=yes"
20785 else
20786   echo "$ac_err" >&5
20787   echo "configure: failed program was:" >&5
20788   cat conftest.$ac_ext >&5
20789   rm -rf conftest*
20790   eval "ac_cv_header_$ac_safe=no"
20791 fi
20792 rm -f conftest*
20793 fi
20794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20795   echo "$ac_t""yes" 1>&6
20796     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20797   cat >> confdefs.h <<EOF
20798 #define $ac_tr_hdr 1
20799 EOF
20800  ac_has_wctype_h=yes
20801 else
20802   echo "$ac_t""no" 1>&6
20803 ac_has_wctype_h=no
20804 fi
20805 done
20806
20807   
20808     if test x"$ac_has_wchar_h" = xyes &&
20809      test x"$ac_has_wctype_h" = xyes &&
20810      test x"$enable_c_mbchar" != xno; then
20811       
20812             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
20813 echo "configure:20814: checking for WCHAR_MIN and WCHAR_MAX" >&5
20814     cat > conftest.$ac_ext <<EOF
20815 #line 20816 "configure"
20816 #include "confdefs.h"
20817 #include <wchar.h>
20818 int main() {
20819 int i = WCHAR_MIN; int j = WCHAR_MAX;
20820 ; return 0; }
20821 EOF
20822 if { (eval echo configure:20823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20823   rm -rf conftest*
20824   has_wchar_minmax=yes
20825 else
20826   echo "configure: failed program was:" >&5
20827   cat conftest.$ac_ext >&5
20828   rm -rf conftest*
20829   has_wchar_minmax=no
20830 fi
20831 rm -f conftest*
20832     echo "$ac_t""$has_wchar_minmax" 1>&6
20833     
20834             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
20835 echo "configure:20836: checking for WEOF" >&5
20836     cat > conftest.$ac_ext <<EOF
20837 #line 20838 "configure"
20838 #include "confdefs.h"
20839
20840       #include <wchar.h>
20841       #include <stddef.h>
20842 int main() {
20843 wint_t i = WEOF;
20844 ; return 0; }
20845 EOF
20846 if { (eval echo configure:20847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20847   rm -rf conftest*
20848   has_weof=yes
20849 else
20850   echo "configure: failed program was:" >&5
20851   cat conftest.$ac_ext >&5
20852   rm -rf conftest*
20853   has_weof=no
20854 fi
20855 rm -f conftest*
20856     echo "$ac_t""$has_weof" 1>&6
20857   
20858         ac_wfuncs=yes
20859     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
20860 do
20861 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20862 echo "configure:20863: checking for $ac_func" >&5
20863 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20864   echo $ac_n "(cached) $ac_c" 1>&6
20865 else
20866   cat > conftest.$ac_ext <<EOF
20867 #line 20868 "configure"
20868 #include "confdefs.h"
20869 /* System header to define __stub macros and hopefully few prototypes,
20870     which can conflict with char $ac_func(); below.  */
20871 #include <assert.h>
20872 /* Override any gcc2 internal prototype to avoid an error.  */
20873 /* We use char because int might match the return type of a gcc2
20874     builtin and then its argument prototype would still apply.  */
20875 char $ac_func();
20876
20877 int main() {
20878
20879 /* The GNU C library defines this for functions which it implements
20880     to always fail with ENOSYS.  Some functions are actually named
20881     something starting with __ and the normal name is an alias.  */
20882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20883 choke me
20884 #else
20885 $ac_func();
20886 #endif
20887
20888 ; return 0; }
20889 EOF
20890 if { (eval echo configure:20891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20891   rm -rf conftest*
20892   eval "ac_cv_func_$ac_func=yes"
20893 else
20894   echo "configure: failed program was:" >&5
20895   cat conftest.$ac_ext >&5
20896   rm -rf conftest*
20897   eval "ac_cv_func_$ac_func=no"
20898 fi
20899 rm -f conftest*
20900 fi
20901
20902 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20903   echo "$ac_t""yes" 1>&6
20904     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20905   cat >> confdefs.h <<EOF
20906 #define $ac_tr_func 1
20907 EOF
20908  
20909 else
20910   echo "$ac_t""no" 1>&6
20911 \
20912     ac_wfuncs=no
20913 fi
20914 done
20915
20916   
20917         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
20918     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
20919     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
20920     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
20921     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
20922     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
20923 do
20924 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20925 echo "configure:20926: checking for $ac_func" >&5
20926 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20927   echo $ac_n "(cached) $ac_c" 1>&6
20928 else
20929   cat > conftest.$ac_ext <<EOF
20930 #line 20931 "configure"
20931 #include "confdefs.h"
20932 /* System header to define __stub macros and hopefully few prototypes,
20933     which can conflict with char $ac_func(); below.  */
20934 #include <assert.h>
20935 /* Override any gcc2 internal prototype to avoid an error.  */
20936 /* We use char because int might match the return type of a gcc2
20937     builtin and then its argument prototype would still apply.  */
20938 char $ac_func();
20939
20940 int main() {
20941
20942 /* The GNU C library defines this for functions which it implements
20943     to always fail with ENOSYS.  Some functions are actually named
20944     something starting with __ and the normal name is an alias.  */
20945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20946 choke me
20947 #else
20948 $ac_func();
20949 #endif
20950
20951 ; return 0; }
20952 EOF
20953 if { (eval echo configure:20954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20954   rm -rf conftest*
20955   eval "ac_cv_func_$ac_func=yes"
20956 else
20957   echo "configure: failed program was:" >&5
20958   cat conftest.$ac_ext >&5
20959   rm -rf conftest*
20960   eval "ac_cv_func_$ac_func=no"
20961 fi
20962 rm -f conftest*
20963 fi
20964
20965 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20966   echo "$ac_t""yes" 1>&6
20967     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20968   cat >> confdefs.h <<EOF
20969 #define $ac_tr_func 1
20970 EOF
20971  
20972 else
20973   echo "$ac_t""no" 1>&6
20974 \
20975     ac_wfuncs=no
20976 fi
20977 done
20978
20979
20980     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
20981 echo "configure:20982: checking for ISO C99 wchar_t support" >&5
20982     if test x"$has_weof" = xyes &&
20983        test x"$has_wchar_minmax" = xyes &&
20984        test x"$ac_wfuncs" = xyes; then
20985       ac_isoC99_wchar_t=yes
20986     else
20987       ac_isoC99_wchar_t=no
20988     fi
20989     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
20990   
20991             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
20992 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
20993 echo "configure:20994: checking for iconv.h" >&5
20994 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20995   echo $ac_n "(cached) $ac_c" 1>&6
20996 else
20997   cat > conftest.$ac_ext <<EOF
20998 #line 20999 "configure"
20999 #include "confdefs.h"
21000 #include <iconv.h>
21001 EOF
21002 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21003 { (eval echo configure:21004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21004 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21005 if test -z "$ac_err"; then
21006   rm -rf conftest*
21007   eval "ac_cv_header_$ac_safe=yes"
21008 else
21009   echo "$ac_err" >&5
21010   echo "configure: failed program was:" >&5
21011   cat conftest.$ac_ext >&5
21012   rm -rf conftest*
21013   eval "ac_cv_header_$ac_safe=no"
21014 fi
21015 rm -f conftest*
21016 fi
21017 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21018   echo "$ac_t""yes" 1>&6
21019   ac_has_iconv_h=yes
21020 else
21021   echo "$ac_t""no" 1>&6
21022 ac_has_iconv_h=no
21023 fi
21024
21025     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
21026 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
21027 echo "configure:21028: checking for langinfo.h" >&5
21028 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21029   echo $ac_n "(cached) $ac_c" 1>&6
21030 else
21031   cat > conftest.$ac_ext <<EOF
21032 #line 21033 "configure"
21033 #include "confdefs.h"
21034 #include <langinfo.h>
21035 EOF
21036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21037 { (eval echo configure:21038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21039 if test -z "$ac_err"; then
21040   rm -rf conftest*
21041   eval "ac_cv_header_$ac_safe=yes"
21042 else
21043   echo "$ac_err" >&5
21044   echo "configure: failed program was:" >&5
21045   cat conftest.$ac_ext >&5
21046   rm -rf conftest*
21047   eval "ac_cv_header_$ac_safe=no"
21048 fi
21049 rm -f conftest*
21050 fi
21051 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21052   echo "$ac_t""yes" 1>&6
21053   ac_has_langinfo_h=yes
21054 else
21055   echo "$ac_t""no" 1>&6
21056 ac_has_langinfo_h=no
21057 fi
21058
21059
21060         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
21061 echo "configure:21062: checking for iconv in -liconv" >&5
21062 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
21063 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21064   echo $ac_n "(cached) $ac_c" 1>&6
21065 else
21066   ac_save_LIBS="$LIBS"
21067 LIBS="-liconv  $LIBS"
21068 cat > conftest.$ac_ext <<EOF
21069 #line 21070 "configure"
21070 #include "confdefs.h"
21071 /* Override any gcc2 internal prototype to avoid an error.  */
21072 /* We use char because int might match the return type of a gcc2
21073     builtin and then its argument prototype would still apply.  */
21074 char iconv();
21075
21076 int main() {
21077 iconv()
21078 ; return 0; }
21079 EOF
21080 if { (eval echo configure:21081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21081   rm -rf conftest*
21082   eval "ac_cv_lib_$ac_lib_var=yes"
21083 else
21084   echo "configure: failed program was:" >&5
21085   cat conftest.$ac_ext >&5
21086   rm -rf conftest*
21087   eval "ac_cv_lib_$ac_lib_var=no"
21088 fi
21089 rm -f conftest*
21090 LIBS="$ac_save_LIBS"
21091
21092 fi
21093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21094   echo "$ac_t""yes" 1>&6
21095   libiconv="-liconv"
21096 else
21097   echo "$ac_t""no" 1>&6
21098 fi
21099
21100     ac_save_LIBS="$LIBS"
21101     LIBS="$LIBS $libiconv"
21102
21103     for ac_func in iconv_open iconv_close iconv nl_langinfo
21104 do
21105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21106 echo "configure:21107: checking for $ac_func" >&5
21107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21108   echo $ac_n "(cached) $ac_c" 1>&6
21109 else
21110   cat > conftest.$ac_ext <<EOF
21111 #line 21112 "configure"
21112 #include "confdefs.h"
21113 /* System header to define __stub macros and hopefully few prototypes,
21114     which can conflict with char $ac_func(); below.  */
21115 #include <assert.h>
21116 /* Override any gcc2 internal prototype to avoid an error.  */
21117 /* We use char because int might match the return type of a gcc2
21118     builtin and then its argument prototype would still apply.  */
21119 char $ac_func();
21120
21121 int main() {
21122
21123 /* The GNU C library defines this for functions which it implements
21124     to always fail with ENOSYS.  Some functions are actually named
21125     something starting with __ and the normal name is an alias.  */
21126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21127 choke me
21128 #else
21129 $ac_func();
21130 #endif
21131
21132 ; return 0; }
21133 EOF
21134 if { (eval echo configure:21135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21135   rm -rf conftest*
21136   eval "ac_cv_func_$ac_func=yes"
21137 else
21138   echo "configure: failed program was:" >&5
21139   cat conftest.$ac_ext >&5
21140   rm -rf conftest*
21141   eval "ac_cv_func_$ac_func=no"
21142 fi
21143 rm -f conftest*
21144 fi
21145
21146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21147   echo "$ac_t""yes" 1>&6
21148     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21149   cat >> confdefs.h <<EOF
21150 #define $ac_tr_func 1
21151 EOF
21152  \
21153     ac_XPG2funcs=yes
21154 else
21155   echo "$ac_t""no" 1>&6
21156 ac_XPG2funcs=no
21157 fi
21158 done
21159
21160   
21161     LIBS="$ac_save_LIBS"
21162
21163     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
21164 echo "configure:21165: checking for XPG2 wchar_t support" >&5
21165     if test x"$ac_has_iconv_h" = xyes &&
21166        test x"$ac_has_langinfo_h" = xyes &&
21167        test x"$ac_XPG2funcs" = xyes; then
21168       ac_XPG2_wchar_t=yes
21169     else
21170       ac_XPG2_wchar_t=no
21171     fi
21172     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
21173   
21174             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
21175 echo "configure:21176: checking for enabled wchar_t specializations" >&5
21176     if test x"$ac_isoC99_wchar_t" = xyes &&
21177        test x"$ac_XPG2_wchar_t" = xyes; then
21178       cat >> confdefs.h <<\EOF
21179 #define _GLIBCPP_USE_WCHAR_T 1
21180 EOF
21181
21182       echo "$ac_t"""yes"" 1>&6
21183     else
21184       echo "$ac_t"""no"" 1>&6
21185     fi
21186   else
21187         echo "configure: warning: wchar_t support disabled." 1>&2
21188   fi
21189
21190   
21191   ac_test_CXXFLAGS="${CXXFLAGS+set}"
21192   ac_save_CXXFLAGS="$CXXFLAGS"
21193   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
21194
21195   
21196   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
21197 echo "configure:21198: checking for strtold declaration" >&5
21198   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
21199     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
21200   echo $ac_n "(cached) $ac_c" 1>&6
21201 else
21202   
21203       
21204       ac_ext=C
21205 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21206 ac_cpp='$CXXCPP $CPPFLAGS'
21207 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21208 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21209 cross_compiling=$ac_cv_prog_cxx_cross
21210
21211       cat > conftest.$ac_ext <<EOF
21212 #line 21213 "configure"
21213 #include "confdefs.h"
21214 #include <stdlib.h>
21215 int main() {
21216  strtold(0, 0);
21217 ; return 0; }
21218 EOF
21219 if { (eval echo configure:21220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21220   rm -rf conftest*
21221   glibcpp_cv_func_strtold_use=yes
21222 else
21223   echo "configure: failed program was:" >&5
21224   cat conftest.$ac_ext >&5
21225   rm -rf conftest*
21226   glibcpp_cv_func_strtold_use=no
21227 fi
21228 rm -f conftest*
21229       ac_ext=c
21230 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21231 ac_cpp='$CPP $CPPFLAGS'
21232 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21233 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21234 cross_compiling=$ac_cv_prog_cc_cross
21235
21236     
21237 fi
21238
21239   fi
21240   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
21241   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
21242     for ac_func in strtold
21243 do
21244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21245 echo "configure:21246: checking for $ac_func" >&5
21246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21247   echo $ac_n "(cached) $ac_c" 1>&6
21248 else
21249   cat > conftest.$ac_ext <<EOF
21250 #line 21251 "configure"
21251 #include "confdefs.h"
21252 /* System header to define __stub macros and hopefully few prototypes,
21253     which can conflict with char $ac_func(); below.  */
21254 #include <assert.h>
21255 /* Override any gcc2 internal prototype to avoid an error.  */
21256 /* We use char because int might match the return type of a gcc2
21257     builtin and then its argument prototype would still apply.  */
21258 char $ac_func();
21259
21260 int main() {
21261
21262 /* The GNU C library defines this for functions which it implements
21263     to always fail with ENOSYS.  Some functions are actually named
21264     something starting with __ and the normal name is an alias.  */
21265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21266 choke me
21267 #else
21268 $ac_func();
21269 #endif
21270
21271 ; return 0; }
21272 EOF
21273 if { (eval echo configure:21274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21274   rm -rf conftest*
21275   eval "ac_cv_func_$ac_func=yes"
21276 else
21277   echo "configure: failed program was:" >&5
21278   cat conftest.$ac_ext >&5
21279   rm -rf conftest*
21280   eval "ac_cv_func_$ac_func=no"
21281 fi
21282 rm -f conftest*
21283 fi
21284
21285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21286   echo "$ac_t""yes" 1>&6
21287     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21288   cat >> confdefs.h <<EOF
21289 #define $ac_tr_func 1
21290 EOF
21291  
21292 else
21293   echo "$ac_t""no" 1>&6
21294 fi
21295 done
21296     
21297   fi
21298
21299   
21300   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
21301 echo "configure:21302: checking for strtof declaration" >&5
21302   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
21303     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
21304   echo $ac_n "(cached) $ac_c" 1>&6
21305 else
21306   
21307       
21308       ac_ext=C
21309 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21310 ac_cpp='$CXXCPP $CPPFLAGS'
21311 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21312 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21313 cross_compiling=$ac_cv_prog_cxx_cross
21314
21315       cat > conftest.$ac_ext <<EOF
21316 #line 21317 "configure"
21317 #include "confdefs.h"
21318 #include <stdlib.h>
21319 int main() {
21320  strtof(0, 0);
21321 ; return 0; }
21322 EOF
21323 if { (eval echo configure:21324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21324   rm -rf conftest*
21325   glibcpp_cv_func_strtof_use=yes
21326 else
21327   echo "configure: failed program was:" >&5
21328   cat conftest.$ac_ext >&5
21329   rm -rf conftest*
21330   glibcpp_cv_func_strtof_use=no
21331 fi
21332 rm -f conftest*
21333       ac_ext=c
21334 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21335 ac_cpp='$CPP $CPPFLAGS'
21336 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21337 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21338 cross_compiling=$ac_cv_prog_cc_cross
21339
21340     
21341 fi
21342
21343   fi
21344   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
21345   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
21346     for ac_func in strtof
21347 do
21348 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21349 echo "configure:21350: checking for $ac_func" >&5
21350 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21351   echo $ac_n "(cached) $ac_c" 1>&6
21352 else
21353   cat > conftest.$ac_ext <<EOF
21354 #line 21355 "configure"
21355 #include "confdefs.h"
21356 /* System header to define __stub macros and hopefully few prototypes,
21357     which can conflict with char $ac_func(); below.  */
21358 #include <assert.h>
21359 /* Override any gcc2 internal prototype to avoid an error.  */
21360 /* We use char because int might match the return type of a gcc2
21361     builtin and then its argument prototype would still apply.  */
21362 char $ac_func();
21363
21364 int main() {
21365
21366 /* The GNU C library defines this for functions which it implements
21367     to always fail with ENOSYS.  Some functions are actually named
21368     something starting with __ and the normal name is an alias.  */
21369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21370 choke me
21371 #else
21372 $ac_func();
21373 #endif
21374
21375 ; return 0; }
21376 EOF
21377 if { (eval echo configure:21378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21378   rm -rf conftest*
21379   eval "ac_cv_func_$ac_func=yes"
21380 else
21381   echo "configure: failed program was:" >&5
21382   cat conftest.$ac_ext >&5
21383   rm -rf conftest*
21384   eval "ac_cv_func_$ac_func=no"
21385 fi
21386 rm -f conftest*
21387 fi
21388
21389 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21390   echo "$ac_t""yes" 1>&6
21391     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21392   cat >> confdefs.h <<EOF
21393 #define $ac_tr_func 1
21394 EOF
21395  
21396 else
21397   echo "$ac_t""no" 1>&6
21398 fi
21399 done
21400     
21401   fi
21402
21403   for ac_func in drand48
21404 do
21405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21406 echo "configure:21407: checking for $ac_func" >&5
21407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21408   echo $ac_n "(cached) $ac_c" 1>&6
21409 else
21410   cat > conftest.$ac_ext <<EOF
21411 #line 21412 "configure"
21412 #include "confdefs.h"
21413 /* System header to define __stub macros and hopefully few prototypes,
21414     which can conflict with char $ac_func(); below.  */
21415 #include <assert.h>
21416 /* Override any gcc2 internal prototype to avoid an error.  */
21417 /* We use char because int might match the return type of a gcc2
21418     builtin and then its argument prototype would still apply.  */
21419 char $ac_func();
21420
21421 int main() {
21422
21423 /* The GNU C library defines this for functions which it implements
21424     to always fail with ENOSYS.  Some functions are actually named
21425     something starting with __ and the normal name is an alias.  */
21426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21427 choke me
21428 #else
21429 $ac_func();
21430 #endif
21431
21432 ; return 0; }
21433 EOF
21434 if { (eval echo configure:21435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21435   rm -rf conftest*
21436   eval "ac_cv_func_$ac_func=yes"
21437 else
21438   echo "configure: failed program was:" >&5
21439   cat conftest.$ac_ext >&5
21440   rm -rf conftest*
21441   eval "ac_cv_func_$ac_func=no"
21442 fi
21443 rm -f conftest*
21444 fi
21445
21446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21447   echo "$ac_t""yes" 1>&6
21448     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21449   cat >> confdefs.h <<EOF
21450 #define $ac_tr_func 1
21451 EOF
21452  
21453 else
21454   echo "$ac_t""no" 1>&6
21455 fi
21456 done
21457
21458
21459   CXXFLAGS="$ac_save_CXXFLAGS"
21460
21461   
21462   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
21463 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
21464 echo "configure:21465: checking for locale.h" >&5
21465 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21466   echo $ac_n "(cached) $ac_c" 1>&6
21467 else
21468   cat > conftest.$ac_ext <<EOF
21469 #line 21470 "configure"
21470 #include "confdefs.h"
21471 #include <locale.h>
21472 EOF
21473 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21474 { (eval echo configure:21475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21475 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21476 if test -z "$ac_err"; then
21477   rm -rf conftest*
21478   eval "ac_cv_header_$ac_safe=yes"
21479 else
21480   echo "$ac_err" >&5
21481   echo "configure: failed program was:" >&5
21482   cat conftest.$ac_ext >&5
21483   rm -rf conftest*
21484   eval "ac_cv_header_$ac_safe=no"
21485 fi
21486 rm -f conftest*
21487 fi
21488 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21489   echo "$ac_t""yes" 1>&6
21490   
21491     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
21492 echo "configure:21493: checking for LC_MESSAGES" >&5
21493 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
21494   echo $ac_n "(cached) $ac_c" 1>&6
21495 else
21496   cat > conftest.$ac_ext <<EOF
21497 #line 21498 "configure"
21498 #include "confdefs.h"
21499 #include <locale.h>
21500 int main() {
21501 return LC_MESSAGES
21502 ; return 0; }
21503 EOF
21504 if { (eval echo configure:21505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21505   rm -rf conftest*
21506   ac_cv_val_LC_MESSAGES=yes
21507 else
21508   echo "configure: failed program was:" >&5
21509   cat conftest.$ac_ext >&5
21510   rm -rf conftest*
21511   ac_cv_val_LC_MESSAGES=no
21512 fi
21513 rm -f conftest*
21514 fi
21515
21516 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
21517     if test $ac_cv_val_LC_MESSAGES = yes; then
21518       cat >> confdefs.h <<\EOF
21519 #define HAVE_LC_MESSAGES 1
21520 EOF
21521
21522     fi
21523   
21524 else
21525   echo "$ac_t""no" 1>&6
21526 fi
21527
21528
21529
21530   cat > conftest.$ac_ext <<EOF
21531 #line 21532 "configure"
21532 #include "confdefs.h"
21533
21534   #include <setjmp.h>
21535   
21536 int main() {
21537 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
21538 ; return 0; }
21539 EOF
21540 if { (eval echo configure:21541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21541   rm -rf conftest*
21542   cat >> confdefs.h <<\EOF
21543 #define HAVE_SIGSETJMP 1
21544 EOF
21545
21546   
21547 else
21548   echo "configure: failed program was:" >&5
21549   cat conftest.$ac_ext >&5
21550 fi
21551 rm -f conftest*
21552
21553   for ac_hdr in unistd.h
21554 do
21555 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21556 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21557 echo "configure:21558: checking for $ac_hdr" >&5
21558 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21559   echo $ac_n "(cached) $ac_c" 1>&6
21560 else
21561   cat > conftest.$ac_ext <<EOF
21562 #line 21563 "configure"
21563 #include "confdefs.h"
21564 #include <$ac_hdr>
21565 EOF
21566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21567 { (eval echo configure:21568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21568 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21569 if test -z "$ac_err"; then
21570   rm -rf conftest*
21571   eval "ac_cv_header_$ac_safe=yes"
21572 else
21573   echo "$ac_err" >&5
21574   echo "configure: failed program was:" >&5
21575   cat conftest.$ac_ext >&5
21576   rm -rf conftest*
21577   eval "ac_cv_header_$ac_safe=no"
21578 fi
21579 rm -f conftest*
21580 fi
21581 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21582   echo "$ac_t""yes" 1>&6
21583     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21584   cat >> confdefs.h <<EOF
21585 #define $ac_tr_hdr 1
21586 EOF
21587  
21588 else
21589   echo "$ac_t""no" 1>&6
21590 fi
21591 done
21592
21593 for ac_func in getpagesize
21594 do
21595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21596 echo "configure:21597: checking for $ac_func" >&5
21597 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21598   echo $ac_n "(cached) $ac_c" 1>&6
21599 else
21600   cat > conftest.$ac_ext <<EOF
21601 #line 21602 "configure"
21602 #include "confdefs.h"
21603 /* System header to define __stub macros and hopefully few prototypes,
21604     which can conflict with char $ac_func(); below.  */
21605 #include <assert.h>
21606 /* Override any gcc2 internal prototype to avoid an error.  */
21607 /* We use char because int might match the return type of a gcc2
21608     builtin and then its argument prototype would still apply.  */
21609 char $ac_func();
21610
21611 int main() {
21612
21613 /* The GNU C library defines this for functions which it implements
21614     to always fail with ENOSYS.  Some functions are actually named
21615     something starting with __ and the normal name is an alias.  */
21616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21617 choke me
21618 #else
21619 $ac_func();
21620 #endif
21621
21622 ; return 0; }
21623 EOF
21624 if { (eval echo configure:21625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21625   rm -rf conftest*
21626   eval "ac_cv_func_$ac_func=yes"
21627 else
21628   echo "configure: failed program was:" >&5
21629   cat conftest.$ac_ext >&5
21630   rm -rf conftest*
21631   eval "ac_cv_func_$ac_func=no"
21632 fi
21633 rm -f conftest*
21634 fi
21635
21636 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21637   echo "$ac_t""yes" 1>&6
21638     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21639   cat >> confdefs.h <<EOF
21640 #define $ac_tr_func 1
21641 EOF
21642  
21643 else
21644   echo "$ac_t""no" 1>&6
21645 fi
21646 done
21647
21648 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
21649 echo "configure:21650: checking for working mmap" >&5
21650 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
21651   echo $ac_n "(cached) $ac_c" 1>&6
21652 else
21653   if test "$cross_compiling" = yes; then
21654   ac_cv_func_mmap_fixed_mapped=no
21655 else
21656   cat > conftest.$ac_ext <<EOF
21657 #line 21658 "configure"
21658 #include "confdefs.h"
21659
21660 /* Thanks to Mike Haertel and Jim Avera for this test.
21661    Here is a matrix of mmap possibilities:
21662         mmap private not fixed
21663         mmap private fixed at somewhere currently unmapped
21664         mmap private fixed at somewhere already mapped
21665         mmap shared not fixed
21666         mmap shared fixed at somewhere currently unmapped
21667         mmap shared fixed at somewhere already mapped
21668    For private mappings, we should verify that changes cannot be read()
21669    back from the file, nor mmap's back from the file at a different
21670    address.  (There have been systems where private was not correctly
21671    implemented like the infamous i386 svr4.0, and systems where the
21672    VM page cache was not coherent with the filesystem buffer cache
21673    like early versions of FreeBSD and possibly contemporary NetBSD.)
21674    For shared mappings, we should conversely verify that changes get
21675    propogated back to all the places they're supposed to be.
21676
21677    Grep wants private fixed already mapped.
21678    The main things grep needs to know about mmap are:
21679    * does it exist and is it safe to write into the mmap'd area
21680    * how to use it (BSD variants)  */
21681 #include <sys/types.h>
21682 #include <fcntl.h>
21683 #include <sys/mman.h>
21684
21685 /* This mess was copied from the GNU getpagesize.h.  */
21686 #ifndef HAVE_GETPAGESIZE
21687 # ifdef HAVE_UNISTD_H
21688 #  include <unistd.h>
21689 # endif
21690
21691 /* Assume that all systems that can run configure have sys/param.h.  */
21692 # ifndef HAVE_SYS_PARAM_H
21693 #  define HAVE_SYS_PARAM_H 1
21694 # endif
21695
21696 # ifdef _SC_PAGESIZE
21697 #  define getpagesize() sysconf(_SC_PAGESIZE)
21698 # else /* no _SC_PAGESIZE */
21699 #  ifdef HAVE_SYS_PARAM_H
21700 #   include <sys/param.h>
21701 #   ifdef EXEC_PAGESIZE
21702 #    define getpagesize() EXEC_PAGESIZE
21703 #   else /* no EXEC_PAGESIZE */
21704 #    ifdef NBPG
21705 #     define getpagesize() NBPG * CLSIZE
21706 #     ifndef CLSIZE
21707 #      define CLSIZE 1
21708 #     endif /* no CLSIZE */
21709 #    else /* no NBPG */
21710 #     ifdef NBPC
21711 #      define getpagesize() NBPC
21712 #     else /* no NBPC */
21713 #      ifdef PAGESIZE
21714 #       define getpagesize() PAGESIZE
21715 #      endif /* PAGESIZE */
21716 #     endif /* no NBPC */
21717 #    endif /* no NBPG */
21718 #   endif /* no EXEC_PAGESIZE */
21719 #  else /* no HAVE_SYS_PARAM_H */
21720 #   define getpagesize() 8192   /* punt totally */
21721 #  endif /* no HAVE_SYS_PARAM_H */
21722 # endif /* no _SC_PAGESIZE */
21723
21724 #endif /* no HAVE_GETPAGESIZE */
21725
21726 #ifdef __cplusplus
21727 extern "C" { void *malloc(unsigned); }
21728 #else
21729 char *malloc();
21730 #endif
21731
21732 int
21733 main()
21734 {
21735         char *data, *data2, *data3;
21736         int i, pagesize;
21737         int fd;
21738
21739         pagesize = getpagesize();
21740
21741         /*
21742          * First, make a file with some known garbage in it.
21743          */
21744         data = malloc(pagesize);
21745         if (!data)
21746                 exit(1);
21747         for (i = 0; i < pagesize; ++i)
21748                 *(data + i) = rand();
21749         umask(0);
21750         fd = creat("conftestmmap", 0600);
21751         if (fd < 0)
21752                 exit(1);
21753         if (write(fd, data, pagesize) != pagesize)
21754                 exit(1);
21755         close(fd);
21756
21757         /*
21758          * Next, try to mmap the file at a fixed address which
21759          * already has something else allocated at it.  If we can,
21760          * also make sure that we see the same garbage.
21761          */
21762         fd = open("conftestmmap", O_RDWR);
21763         if (fd < 0)
21764                 exit(1);
21765         data2 = malloc(2 * pagesize);
21766         if (!data2)
21767                 exit(1);
21768         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21769         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
21770             MAP_PRIVATE | MAP_FIXED, fd, 0L))
21771                 exit(1);
21772         for (i = 0; i < pagesize; ++i)
21773                 if (*(data + i) != *(data2 + i))
21774                         exit(1);
21775
21776         /*
21777          * Finally, make sure that changes to the mapped area
21778          * do not percolate back to the file as seen by read().
21779          * (This is a bug on some variants of i386 svr4.0.)
21780          */
21781         for (i = 0; i < pagesize; ++i)
21782                 *(data2 + i) = *(data2 + i) + 1;
21783         data3 = malloc(pagesize);
21784         if (!data3)
21785                 exit(1);
21786         if (read(fd, data3, pagesize) != pagesize)
21787                 exit(1);
21788         for (i = 0; i < pagesize; ++i)
21789                 if (*(data + i) != *(data3 + i))
21790                         exit(1);
21791         close(fd);
21792         unlink("conftestmmap");
21793         exit(0);
21794 }
21795
21796 EOF
21797 if { (eval echo configure:21798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21798 then
21799   ac_cv_func_mmap_fixed_mapped=yes
21800 else
21801   echo "configure: failed program was:" >&5
21802   cat conftest.$ac_ext >&5
21803   rm -fr conftest*
21804   ac_cv_func_mmap_fixed_mapped=no
21805 fi
21806 rm -fr conftest*
21807 fi
21808
21809 fi
21810
21811 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
21812 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21813   cat >> confdefs.h <<\EOF
21814 #define HAVE_MMAP 1
21815 EOF
21816
21817 fi
21818
21819
21820   # Establish limits on memory usage during 'make check'
21821   
21822   
21823   setrlimit_have_headers=yes
21824   for ac_hdr in unistd.h sys/time.h sys/resource.h
21825 do
21826 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21827 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21828 echo "configure:21829: checking for $ac_hdr" >&5
21829 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21830   echo $ac_n "(cached) $ac_c" 1>&6
21831 else
21832   cat > conftest.$ac_ext <<EOF
21833 #line 21834 "configure"
21834 #include "confdefs.h"
21835 #include <$ac_hdr>
21836 EOF
21837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21838 { (eval echo configure:21839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21840 if test -z "$ac_err"; then
21841   rm -rf conftest*
21842   eval "ac_cv_header_$ac_safe=yes"
21843 else
21844   echo "$ac_err" >&5
21845   echo "configure: failed program was:" >&5
21846   cat conftest.$ac_ext >&5
21847   rm -rf conftest*
21848   eval "ac_cv_header_$ac_safe=no"
21849 fi
21850 rm -f conftest*
21851 fi
21852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21853   echo "$ac_t""yes" 1>&6
21854     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21855   cat >> confdefs.h <<EOF
21856 #define $ac_tr_hdr 1
21857 EOF
21858  
21859 else
21860   echo "$ac_t""no" 1>&6
21861 setrlimit_have_headers=no
21862 fi
21863 done
21864
21865   # If don't have the headers, then we can't run the tests now, and we
21866   # won't be seeing any of these during testsuite compilation.
21867   if test $setrlimit_have_headers = yes; then
21868     # Can't do these in a loop, else the resulting syntax is wrong.
21869     
21870   cat > conftest.$ac_ext <<EOF
21871 #line 21872 "configure"
21872 #include "confdefs.h"
21873 #include <unistd.h>
21874                   #include <sys/time.h>
21875                   #include <sys/resource.h>
21876                  
21877 int main() {
21878  int f = RLIMIT_DATA ; 
21879 ; return 0; }
21880 EOF
21881 if { (eval echo configure:21882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21882   rm -rf conftest*
21883   glibcpp_mresult=1
21884 else
21885   echo "configure: failed program was:" >&5
21886   cat conftest.$ac_ext >&5
21887   rm -rf conftest*
21888   glibcpp_mresult=0
21889 fi
21890 rm -f conftest*
21891   cat >> confdefs.h <<EOF
21892 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
21893 EOF
21894
21895
21896     
21897   cat > conftest.$ac_ext <<EOF
21898 #line 21899 "configure"
21899 #include "confdefs.h"
21900 #include <unistd.h>
21901                   #include <sys/time.h>
21902                   #include <sys/resource.h>
21903                  
21904 int main() {
21905  int f = RLIMIT_RSS ; 
21906 ; return 0; }
21907 EOF
21908 if { (eval echo configure:21909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21909   rm -rf conftest*
21910   glibcpp_mresult=1
21911 else
21912   echo "configure: failed program was:" >&5
21913   cat conftest.$ac_ext >&5
21914   rm -rf conftest*
21915   glibcpp_mresult=0
21916 fi
21917 rm -f conftest*
21918   cat >> confdefs.h <<EOF
21919 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
21920 EOF
21921
21922
21923     
21924   cat > conftest.$ac_ext <<EOF
21925 #line 21926 "configure"
21926 #include "confdefs.h"
21927 #include <unistd.h>
21928                   #include <sys/time.h>
21929                   #include <sys/resource.h>
21930                  
21931 int main() {
21932  int f = RLIMIT_VMEM ; 
21933 ; return 0; }
21934 EOF
21935 if { (eval echo configure:21936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21936   rm -rf conftest*
21937   glibcpp_mresult=1
21938 else
21939   echo "configure: failed program was:" >&5
21940   cat conftest.$ac_ext >&5
21941   rm -rf conftest*
21942   glibcpp_mresult=0
21943 fi
21944 rm -f conftest*
21945   cat >> confdefs.h <<EOF
21946 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
21947 EOF
21948
21949
21950     
21951   cat > conftest.$ac_ext <<EOF
21952 #line 21953 "configure"
21953 #include "confdefs.h"
21954 #include <unistd.h>
21955                   #include <sys/time.h>
21956                   #include <sys/resource.h>
21957                  
21958 int main() {
21959  int f = RLIMIT_AS ; 
21960 ; return 0; }
21961 EOF
21962 if { (eval echo configure:21963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21963   rm -rf conftest*
21964   glibcpp_mresult=1
21965 else
21966   echo "configure: failed program was:" >&5
21967   cat conftest.$ac_ext >&5
21968   rm -rf conftest*
21969   glibcpp_mresult=0
21970 fi
21971 rm -f conftest*
21972   cat >> confdefs.h <<EOF
21973 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
21974 EOF
21975
21976
21977
21978     # Check for rlimit, setrlimit.
21979     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
21980   echo $ac_n "(cached) $ac_c" 1>&6
21981 else
21982   
21983       cat > conftest.$ac_ext <<EOF
21984 #line 21985 "configure"
21985 #include "confdefs.h"
21986 #include <unistd.h>
21987                   #include <sys/time.h>
21988                   #include <sys/resource.h>
21989                      
21990 int main() {
21991  struct rlimit r; setrlimit(0, &r);
21992 ; return 0; }
21993 EOF
21994 if { (eval echo configure:21995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21995   rm -rf conftest*
21996   ac_setrlimit=yes
21997 else
21998   echo "configure: failed program was:" >&5
21999   cat conftest.$ac_ext >&5
22000   rm -rf conftest*
22001   ac_setrlimit=no
22002 fi
22003 rm -f conftest*
22004     
22005 fi
22006
22007   fi
22008
22009   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
22010 echo "configure:22011: checking for testsuite memory limit support" >&5
22011   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
22012     ac_mem_limits=yes
22013     cat >> confdefs.h <<\EOF
22014 #define _GLIBCPP_MEM_LIMITS 1
22015 EOF
22016
22017   else
22018     ac_mem_limits=no
22019   fi
22020   echo "$ac_t""$ac_mem_limits" 1>&6
22021
22022
22023   # Look for setenv, so that extended locale tests can be performed.
22024   
22025   echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
22026 echo "configure:22027: checking for setenv declaration" >&5
22027   if test x${glibcpp_cv_func_setenv_use+set} != xset; then
22028     if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
22029   echo $ac_n "(cached) $ac_c" 1>&6
22030 else
22031   
22032       
22033       ac_ext=C
22034 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22035 ac_cpp='$CXXCPP $CPPFLAGS'
22036 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22037 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22038 cross_compiling=$ac_cv_prog_cxx_cross
22039
22040       cat > conftest.$ac_ext <<EOF
22041 #line 22042 "configure"
22042 #include "confdefs.h"
22043 #include <stdlib.h>
22044 int main() {
22045  setenv(0, 0, 0);
22046 ; return 0; }
22047 EOF
22048 if { (eval echo configure:22049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22049   rm -rf conftest*
22050   glibcpp_cv_func_setenv_use=yes
22051 else
22052   echo "configure: failed program was:" >&5
22053   cat conftest.$ac_ext >&5
22054   rm -rf conftest*
22055   glibcpp_cv_func_setenv_use=no
22056 fi
22057 rm -f conftest*
22058       ac_ext=c
22059 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22060 ac_cpp='$CPP $CPPFLAGS'
22061 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22062 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22063 cross_compiling=$ac_cv_prog_cc_cross
22064
22065     
22066 fi
22067
22068   fi
22069   echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
22070   if test x$glibcpp_cv_func_setenv_use = x"yes"; then
22071     for ac_func in setenv
22072 do
22073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22074 echo "configure:22075: checking for $ac_func" >&5
22075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22076   echo $ac_n "(cached) $ac_c" 1>&6
22077 else
22078   cat > conftest.$ac_ext <<EOF
22079 #line 22080 "configure"
22080 #include "confdefs.h"
22081 /* System header to define __stub macros and hopefully few prototypes,
22082     which can conflict with char $ac_func(); below.  */
22083 #include <assert.h>
22084 /* Override any gcc2 internal prototype to avoid an error.  */
22085 /* We use char because int might match the return type of a gcc2
22086     builtin and then its argument prototype would still apply.  */
22087 char $ac_func();
22088
22089 int main() {
22090
22091 /* The GNU C library defines this for functions which it implements
22092     to always fail with ENOSYS.  Some functions are actually named
22093     something starting with __ and the normal name is an alias.  */
22094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22095 choke me
22096 #else
22097 $ac_func();
22098 #endif
22099
22100 ; return 0; }
22101 EOF
22102 if { (eval echo configure:22103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22103   rm -rf conftest*
22104   eval "ac_cv_func_$ac_func=yes"
22105 else
22106   echo "configure: failed program was:" >&5
22107   cat conftest.$ac_ext >&5
22108   rm -rf conftest*
22109   eval "ac_cv_func_$ac_func=no"
22110 fi
22111 rm -f conftest*
22112 fi
22113
22114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22115   echo "$ac_t""yes" 1>&6
22116     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22117   cat >> confdefs.h <<EOF
22118 #define $ac_tr_func 1
22119 EOF
22120  
22121 else
22122   echo "$ac_t""no" 1>&6
22123 fi
22124 done
22125     
22126   fi
22127
22128
22129 fi
22130
22131 # This depends on the possibly-skipped linker test above.
22132 # Check whether --enable-symvers or --disable-symvers was given.
22133 if test "${enable_symvers+set}" = set; then
22134   enableval="$enable_symvers"
22135   case "$enableval" in
22136  yes) enable_symvers=yes ;;
22137  no)  enable_symvers=no ;;
22138  # other names here, just as sanity checks
22139  #gnu|sun|etcetera) enable_symvers=$enableval ;;
22140  gnu) enable_symvers=$enableval ;;
22141  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
22142  esac
22143 else
22144   enable_symvers=yes
22145 fi
22146
22147 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
22148 # don't know enough about $LD to do tricks... 
22149 if test x$enable_shared = xno || 
22150         test "x$LD" = x || 
22151         test x$glibcpp_gnu_ld_version = x; then
22152   enable_symvers=no
22153 fi
22154
22155 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
22156 if test $enable_symvers != no; then
22157   echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
22158 echo "configure:22159: checking for shared libgcc" >&5
22159   ac_save_CFLAGS="$CFLAGS"
22160   CFLAGS=' -lgcc_s'
22161   cat > conftest.$ac_ext <<EOF
22162 #line 22163 "configure"
22163 #include "confdefs.h"
22164
22165 int main() {
22166 return 0
22167 ; return 0; }
22168 EOF
22169 if { (eval echo configure:22170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22170   rm -rf conftest*
22171   glibcpp_shared_libgcc=yes
22172 else
22173   echo "configure: failed program was:" >&5
22174   cat conftest.$ac_ext >&5
22175   rm -rf conftest*
22176   glibcpp_shared_libgcc=no
22177 fi
22178 rm -f conftest*
22179   CFLAGS="$ac_save_CFLAGS"
22180   echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
22181 fi
22182
22183 # For GNU ld, we need at least this version.  It's 2.12 in the same format
22184 # as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
22185 glibcpp_min_gnu_ld_version=21200
22186
22187 # Check to see if unspecified "yes" value can win, given results
22188 # above.  
22189 if test $enable_symvers = yes ; then
22190   if test $with_gnu_ld = yes &&
22191     test $glibcpp_shared_libgcc = yes ;
22192   then
22193     if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
22194         enable_symvers=gnu
22195     else
22196       ac_test_CFLAGS="${CFLAGS+set}"
22197       ac_save_CFLAGS="$CFLAGS"
22198       CFLAGS='-shared -Wl,--version-script,conftest.map'
22199       enable_symvers=no
22200       
22201       echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
22202       
22203       cat > conftest.$ac_ext <<EOF
22204 #line 22205 "configure"
22205 #include "confdefs.h"
22206 int foo;
22207 int main() {
22208
22209 ; return 0; }
22210 EOF
22211 if { (eval echo configure:22212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22212   rm -rf conftest*
22213   enable_symvers=gnu
22214 else
22215   echo "configure: failed program was:" >&5
22216   cat conftest.$ac_ext >&5
22217 fi
22218 rm -f conftest*
22219       if test "$ac_test_CFLAGS" = set; then
22220         CFLAGS="$ac_save_CFLAGS"
22221       else
22222         # this is the suspicious part
22223         CFLAGS=''
22224       fi
22225       rm -f conftest.map
22226     fi
22227   else
22228     # just fail for now
22229     enable_symvers=no
22230   fi
22231 fi
22232
22233 case $enable_symvers in
22234   no)
22235       LINKER_MAP=config/linker-map.dummy
22236       ;;
22237   gnu)
22238       LINKER_MAP=config/linker-map.gnu
22239       ;;
22240 esac
22241
22242
22243
22244
22245 if test $enable_symvers != no; then
22246   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
22247   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
22248 else
22249   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
22250   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
22251 fi
22252 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
22253 echo "configure:22254: checking versioning on shared library symbols" >&5
22254 echo "$ac_t""$enable_symvers" 1>&6
22255
22256
22257 # Propagate the target-specific source directories through the build chain.
22258 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH and
22259 # CPULIMITSH [might] use it, and they only get used here.)
22260 OS_INC_SRCDIR=config/${os_include_dir}/bits
22261 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}/bits
22262 CPU_LIMITS_INC_SRCDIR=config/${CPULIMITSH}/bits
22263
22264
22265
22266
22267 # Set up cross-compile flags
22268   
22269
22270 if test "$CANADIAN" = yes; then
22271   CANADIAN_TRUE=
22272   CANADIAN_FALSE='#'
22273 else
22274   CANADIAN_TRUE='#'
22275   CANADIAN_FALSE=
22276 fi
22277  
22278 cat > confcache <<\EOF
22279 # This file is a shell script that caches the results of configure
22280 # tests run on this system so they can be shared between configure
22281 # scripts and configure runs.  It is not useful on other systems.
22282 # If it contains results you don't want to keep, you may remove or edit it.
22283 #
22284 # By default, configure uses ./config.cache as the cache file,
22285 # creating it if it does not exist already.  You can give configure
22286 # the --cache-file=FILE option to use a different cache file; that is
22287 # what configure does when it calls configure scripts in
22288 # subdirectories, so they share the cache.
22289 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22290 # config.status only pays attention to the cache file if you give it the
22291 # --recheck option to rerun configure.
22292 #
22293 EOF
22294 # The following way of writing the cache mishandles newlines in values,
22295 # but we know of no workaround that is simple, portable, and efficient.
22296 # So, don't put newlines in cache variables' values.
22297 # Ultrix sh set writes to stderr and can't be redirected directly,
22298 # and sets the high bit in the cache file unless we assign to the vars.
22299 (set) 2>&1 |
22300   case `(ac_space=' '; set | grep ac_space) 2>&1` in
22301   *ac_space=\ *)
22302     # `set' does not quote correctly, so add quotes (double-quote substitution
22303     # turns \\\\ into \\, and sed turns \\ into \).
22304     sed -n \
22305       -e "s/'/'\\\\''/g" \
22306       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22307     ;;
22308   *)
22309     # `set' quotes correctly as required by POSIX, so do not add quotes.
22310     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22311     ;;
22312   esac >> confcache
22313 if cmp -s $cache_file confcache; then
22314   :
22315 else
22316   if test -w $cache_file; then
22317     echo "updating cache $cache_file"
22318     cat confcache > $cache_file
22319   else
22320     echo "not updating unwritable cache $cache_file"
22321   fi
22322 fi
22323 rm -f confcache
22324
22325
22326 if test "${multilib}" = "yes"; then
22327   multilib_arg="--enable-multilib"
22328 else
22329   multilib_arg=
22330 fi
22331
22332 # Needed so that g++ can find the correct include subdir automatically.
22333 INTERFACE=v3
22334
22335 # Export all the install information
22336
22337 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
22338 # exported correctly in GLIBCPP_CONFIGURE.
22339 glibcpp_toolexecdir=no
22340 glibcpp_toolexeclibdir=no
22341 glibcpp_prefixdir=${prefix}
22342
22343 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
22344 echo "configure:22345: checking for interface version number" >&5
22345 libstdcxx_interface=$INTERFACE
22346 echo "$ac_t""$libstdcxx_interface" 1>&6
22347
22348 # Process the option --with-gxx-include-dir=<path to include-files directory>
22349 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
22350 echo "configure:22351: checking for --with-gxx-include-dir" >&5
22351 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
22352 if test "${with_gxx_include_dir+set}" = set; then
22353   withval="$with_gxx_include_dir"
22354   case "${withval}" in
22355   yes)
22356     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
22357     gxx_include_dir=no
22358     ;;
22359   no)
22360     gxx_include_dir=no
22361     ;;
22362   *)
22363     gxx_include_dir=${withval}
22364     ;;
22365 esac
22366 else
22367   gxx_include_dir=no
22368 fi
22369
22370 echo "$ac_t""$gxx_include_dir" 1>&6
22371
22372 # Process the option "--enable-version-specific-runtime-libs"
22373 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
22374 echo "configure:22375: checking for --enable-version-specific-runtime-libs" >&5
22375 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
22376 if test "${enable_version_specific_runtime_libs+set}" = set; then
22377   enableval="$enable_version_specific_runtime_libs"
22378   case "$enableval" in
22379  yes) version_specific_libs=yes ;;
22380  no)  version_specific_libs=no ;;
22381  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
22382  esac
22383 else
22384   version_specific_libs=no
22385 fi
22386 # Option set, now we can test it.
22387 echo "$ac_t""$version_specific_libs" 1>&6
22388
22389 if test $version_specific_libs = yes; then
22390   # Need the gcc compiler version to know where to install libraries
22391   # and header files if --enable-version-specific-runtime-libs option
22392   # is selected.
22393     gcc_version_trigger=${srcdir}/../gcc/version.c
22394   gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
22395   gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
22396   if test x"$gxx_include_dir" = x"no"; then
22397     gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
22398   fi
22399   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22400   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
22401   fi
22402
22403 # Default case for install directory for include files.
22404 if test $version_specific_libs = no &&
22405    test $gxx_include_dir = no; then
22406   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
22407 fi
22408
22409 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
22410 # Install a library built with a cross compiler in tooldir, not libdir.
22411 if test x"$glibcpp_toolexecdir" = x"no"; then 
22412   if test -n "$with_cross_host" &&
22413      test x"$with_cross_host" != x"no"; then
22414     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
22415     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
22416   else
22417     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22418     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
22419   fi
22420 fi
22421
22422 echo $ac_n "checking for install location""... $ac_c" 1>&6
22423 echo "configure:22424: checking for install location" >&5
22424 echo "$ac_t""$gxx_include_dir" 1>&6
22425
22426
22427
22428
22429
22430
22431
22432 # Export all the include and flag information to makefiles.
22433
22434   # Root level of the build directory include sources.
22435   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
22436
22437   # Passed down for canadian crosses.
22438   if test x"$CANADIAN" = xyes; then
22439     TOPLEVEL_INCLUDES='-I$(includedir)'
22440   fi
22441
22442   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
22443
22444   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
22445
22446   if test x"$need_libio" = xyes; then
22447     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
22448     
22449   fi
22450
22451   # Now, export this to all the little Makefiles....
22452   
22453   
22454   
22455   
22456
22457
22458   # Optimization flags that are probably a good idea for thrill-seekers. Just
22459   # uncomment the lines below and make, everything else is ready to go... 
22460   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
22461   OPTIMIZE_CXXFLAGS=
22462   
22463
22464   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
22465   
22466
22467
22468 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
22469    grep "enable shared" > /dev/null; then
22470   LIBSUPCXX_PICFLAGS=-prefer-pic
22471 else
22472   LIBSUPCXX_PICFLAGS=
22473 fi
22474
22475
22476 # Generate the various Makefiles, include files, and scripts.
22477 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
22478 # and libsupc++/Makefile.am so that multilib installs will end up
22479 # installed in the correct place. To work around this not being passed
22480 # down from config-ml.in -> top_srcdir/Makefile.am ->
22481 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
22482 trap '' 1 2 15
22483 cat > confcache <<\EOF
22484 # This file is a shell script that caches the results of configure
22485 # tests run on this system so they can be shared between configure
22486 # scripts and configure runs.  It is not useful on other systems.
22487 # If it contains results you don't want to keep, you may remove or edit it.
22488 #
22489 # By default, configure uses ./config.cache as the cache file,
22490 # creating it if it does not exist already.  You can give configure
22491 # the --cache-file=FILE option to use a different cache file; that is
22492 # what configure does when it calls configure scripts in
22493 # subdirectories, so they share the cache.
22494 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22495 # config.status only pays attention to the cache file if you give it the
22496 # --recheck option to rerun configure.
22497 #
22498 EOF
22499 # The following way of writing the cache mishandles newlines in values,
22500 # but we know of no workaround that is simple, portable, and efficient.
22501 # So, don't put newlines in cache variables' values.
22502 # Ultrix sh set writes to stderr and can't be redirected directly,
22503 # and sets the high bit in the cache file unless we assign to the vars.
22504 (set) 2>&1 |
22505   case `(ac_space=' '; set | grep ac_space) 2>&1` in
22506   *ac_space=\ *)
22507     # `set' does not quote correctly, so add quotes (double-quote substitution
22508     # turns \\\\ into \\, and sed turns \\ into \).
22509     sed -n \
22510       -e "s/'/'\\\\''/g" \
22511       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22512     ;;
22513   *)
22514     # `set' quotes correctly as required by POSIX, so do not add quotes.
22515     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22516     ;;
22517   esac >> confcache
22518 if cmp -s $cache_file confcache; then
22519   :
22520 else
22521   if test -w $cache_file; then
22522     echo "updating cache $cache_file"
22523     cat confcache > $cache_file
22524   else
22525     echo "not updating unwritable cache $cache_file"
22526   fi
22527 fi
22528 rm -f confcache
22529
22530 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22531
22532 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22533 # Let make expand exec_prefix.
22534 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22535
22536 # Any assignment to VPATH causes Sun make to only execute
22537 # the first set of double-colon rules, so remove it if not needed.
22538 # If there is a colon in the path, we need to keep it.
22539 if test "x$srcdir" = x.; then
22540   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
22541 fi
22542
22543 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22544
22545 DEFS=-DHAVE_CONFIG_H
22546
22547 # Without the "./", some shells look in PATH for config.status.
22548 : ${CONFIG_STATUS=./config.status}
22549
22550 echo creating $CONFIG_STATUS
22551 rm -f $CONFIG_STATUS
22552 cat > $CONFIG_STATUS <<EOF
22553 #! /bin/sh
22554 # Generated automatically by configure.
22555 # Run this file to recreate the current configuration.
22556 # This directory was configured as follows,
22557 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22558 #
22559 # $0 $ac_configure_args
22560 #
22561 # Compiler output produced by configure, useful for debugging
22562 # configure, is in ./config.log if it exists.
22563
22564 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22565 for ac_option
22566 do
22567   case "\$ac_option" in
22568   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22569     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22570     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22571   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22572     echo "$CONFIG_STATUS generated by autoconf version 2.13"
22573     exit 0 ;;
22574   -help | --help | --hel | --he | --h)
22575     echo "\$ac_cs_usage"; exit 0 ;;
22576   *) echo "\$ac_cs_usage"; exit 1 ;;
22577   esac
22578 done
22579
22580 ac_given_srcdir=$srcdir
22581 ac_given_INSTALL="$INSTALL"
22582
22583 trap 'rm -fr `echo "Makefile \
22584     include/Makefile src/Makefile \
22585     libmath/Makefile libio/Makefile libsupc++/Makefile \
22586     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22587 EOF
22588 cat >> $CONFIG_STATUS <<EOF
22589
22590 # Protect against being on the right side of a sed subst in config.status.
22591 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22592  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22593 $ac_vpsub
22594 $extrasub
22595 s%@SHELL@%$SHELL%g
22596 s%@CFLAGS@%$CFLAGS%g
22597 s%@CPPFLAGS@%$CPPFLAGS%g
22598 s%@CXXFLAGS@%$CXXFLAGS%g
22599 s%@FFLAGS@%$FFLAGS%g
22600 s%@DEFS@%$DEFS%g
22601 s%@LDFLAGS@%$LDFLAGS%g
22602 s%@LIBS@%$LIBS%g
22603 s%@exec_prefix@%$exec_prefix%g
22604 s%@prefix@%$prefix%g
22605 s%@program_transform_name@%$program_transform_name%g
22606 s%@bindir@%$bindir%g
22607 s%@sbindir@%$sbindir%g
22608 s%@libexecdir@%$libexecdir%g
22609 s%@datadir@%$datadir%g
22610 s%@sysconfdir@%$sysconfdir%g
22611 s%@sharedstatedir@%$sharedstatedir%g
22612 s%@localstatedir@%$localstatedir%g
22613 s%@libdir@%$libdir%g
22614 s%@includedir@%$includedir%g
22615 s%@oldincludedir@%$oldincludedir%g
22616 s%@infodir@%$infodir%g
22617 s%@mandir@%$mandir%g
22618 s%@PACKAGE@%$PACKAGE%g
22619 s%@release_VERSION@%$release_VERSION%g
22620 s%@libtool_VERSION@%$libtool_VERSION%g
22621 s%@host@%$host%g
22622 s%@host_alias@%$host_alias%g
22623 s%@host_cpu@%$host_cpu%g
22624 s%@host_vendor@%$host_vendor%g
22625 s%@host_os@%$host_os%g
22626 s%@target@%$target%g
22627 s%@target_alias@%$target_alias%g
22628 s%@target_cpu@%$target_cpu%g
22629 s%@target_vendor@%$target_vendor%g
22630 s%@target_os@%$target_os%g
22631 s%@build@%$build%g
22632 s%@build_alias@%$build_alias%g
22633 s%@build_cpu@%$build_cpu%g
22634 s%@build_vendor@%$build_vendor%g
22635 s%@build_os@%$build_os%g
22636 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22637 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22638 s%@INSTALL_DATA@%$INSTALL_DATA%g
22639 s%@VERSION@%$VERSION%g
22640 s%@ACLOCAL@%$ACLOCAL%g
22641 s%@AUTOCONF@%$AUTOCONF%g
22642 s%@AUTOMAKE@%$AUTOMAKE%g
22643 s%@AUTOHEADER@%$AUTOHEADER%g
22644 s%@MAKEINFO@%$MAKEINFO%g
22645 s%@SET_MAKE@%$SET_MAKE%g
22646 s%@toplevel_srcdir@%$toplevel_srcdir%g
22647 s%@glibcpp_builddir@%$glibcpp_builddir%g
22648 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
22649 s%@AWK@%$AWK%g
22650 s%@LN_S@%$LN_S%g
22651 s%@glibcpp_basedir@%$glibcpp_basedir%g
22652 s%@CC@%$CC%g
22653 s%@glibcpp_CXX@%$glibcpp_CXX%g
22654 s%@AS@%$AS%g
22655 s%@AR@%$AR%g
22656 s%@RANLIB@%$RANLIB%g
22657 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
22658 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
22659 s%@MAINT@%$MAINT%g
22660 s%@EXEEXT@%$EXEEXT%g
22661 s%@OBJEXT@%$OBJEXT%g
22662 s%@STRIP@%$STRIP%g
22663 s%@LIBTOOL@%$LIBTOOL%g
22664 s%@CXXCPP@%$CXXCPP%g
22665 s%@enable_shared@%$enable_shared%g
22666 s%@enable_static@%$enable_static%g
22667 s%@ifGNUmake@%$ifGNUmake%g
22668 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
22669 s%@CPP@%$CPP%g
22670 s%@CSTDIO_H@%$CSTDIO_H%g
22671 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
22672 s%@CCODECVT_C@%$CCODECVT_C%g
22673 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
22674 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
22675 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
22676 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
22677 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
22678 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
22679 s%@libio_la@%$libio_la%g
22680 s%@check_msgfmt@%$check_msgfmt%g
22681 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
22682 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
22683 s%@glibcpp_localedir@%$glibcpp_localedir%g
22684 s%@USE_NLS@%$USE_NLS%g
22685 s%@CLOCALE_H@%$CLOCALE_H%g
22686 s%@CCODECVT_H@%$CCODECVT_H%g
22687 s%@CMESSAGES_H@%$CMESSAGES_H%g
22688 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
22689 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
22690 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
22691 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
22692 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
22693 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
22694 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
22695 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
22696 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
22697 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
22698 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
22699 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
22700 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
22701 s%@WERROR@%$WERROR%g
22702 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
22703 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
22704 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
22705 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
22706 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
22707 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
22708 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
22709 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
22710 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
22711 s%@gxx_include_dir@%$gxx_include_dir%g
22712 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
22713 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
22714 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
22715 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
22716 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
22717 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
22718 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
22719 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
22720 s%@WARN_FLAGS@%$WARN_FLAGS%g
22721 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
22722
22723 CEOF
22724 EOF
22725
22726 cat >> $CONFIG_STATUS <<\EOF
22727
22728 # Split the substitutions into bite-sized pieces for seds with
22729 # small command number limits, like on Digital OSF/1 and HP-UX.
22730 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22731 ac_file=1 # Number of current file.
22732 ac_beg=1 # First line for current file.
22733 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22734 ac_more_lines=:
22735 ac_sed_cmds=""
22736 while $ac_more_lines; do
22737   if test $ac_beg -gt 1; then
22738     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22739   else
22740     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22741   fi
22742   if test ! -s conftest.s$ac_file; then
22743     ac_more_lines=false
22744     rm -f conftest.s$ac_file
22745   else
22746     if test -z "$ac_sed_cmds"; then
22747       ac_sed_cmds="sed -f conftest.s$ac_file"
22748     else
22749       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22750     fi
22751     ac_file=`expr $ac_file + 1`
22752     ac_beg=$ac_end
22753     ac_end=`expr $ac_end + $ac_max_sed_cmds`
22754   fi
22755 done
22756 if test -z "$ac_sed_cmds"; then
22757   ac_sed_cmds=cat
22758 fi
22759 EOF
22760
22761 cat >> $CONFIG_STATUS <<EOF
22762
22763 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
22764     include/Makefile src/Makefile \
22765     libmath/Makefile libio/Makefile libsupc++/Makefile \
22766     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
22767 EOF
22768 cat >> $CONFIG_STATUS <<\EOF
22769 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22770   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22771   case "$ac_file" in
22772   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22773        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22774   *) ac_file_in="${ac_file}.in" ;;
22775   esac
22776
22777   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22778
22779   # Remove last slash and all that follows it.  Not all systems have dirname.
22780   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22781   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22782     # The file is in a subdirectory.
22783     test ! -d "$ac_dir" && mkdir "$ac_dir"
22784     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22785     # A "../" for each directory in $ac_dir_suffix.
22786     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22787   else
22788     ac_dir_suffix= ac_dots=
22789   fi
22790
22791   case "$ac_given_srcdir" in
22792   .)  srcdir=.
22793       if test -z "$ac_dots"; then top_srcdir=.
22794       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22795   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22796   *) # Relative path.
22797     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22798     top_srcdir="$ac_dots$ac_given_srcdir" ;;
22799   esac
22800
22801   case "$ac_given_INSTALL" in
22802   [/$]*) INSTALL="$ac_given_INSTALL" ;;
22803   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22804   esac
22805
22806   echo creating "$ac_file"
22807   rm -f "$ac_file"
22808   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22809   case "$ac_file" in
22810   *Makefile*) ac_comsub="1i\\
22811 # $configure_input" ;;
22812   *) ac_comsub= ;;
22813   esac
22814
22815   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22816   sed -e "$ac_comsub
22817 s%@configure_input@%$configure_input%g
22818 s%@srcdir@%$srcdir%g
22819 s%@top_srcdir@%$top_srcdir%g
22820 s%@INSTALL@%$INSTALL%g
22821 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22822 fi; done
22823 rm -f conftest.s*
22824
22825 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22826 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22827 #
22828 # ac_d sets the value in "#define NAME VALUE" lines.
22829 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
22830 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
22831 ac_dC='\3'
22832 ac_dD='%g'
22833 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22834 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22835 ac_uB='\([      ]\)%\1#\2define\3'
22836 ac_uC=' '
22837 ac_uD='\4%g'
22838 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22839 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22840 ac_eB='$%\1#\2define\3'
22841 ac_eC=' '
22842 ac_eD='%g'
22843
22844 if test "${CONFIG_HEADERS+set}" != set; then
22845 EOF
22846 cat >> $CONFIG_STATUS <<EOF
22847   CONFIG_HEADERS="config.h"
22848 EOF
22849 cat >> $CONFIG_STATUS <<\EOF
22850 fi
22851 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22852   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22853   case "$ac_file" in
22854   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22855        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22856   *) ac_file_in="${ac_file}.in" ;;
22857   esac
22858
22859   echo creating $ac_file
22860
22861   rm -f conftest.frag conftest.in conftest.out
22862   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22863   cat $ac_file_inputs > conftest.in
22864
22865 EOF
22866
22867 # Transform confdefs.h into a sed script conftest.vals that substitutes
22868 # the proper values into config.h.in to produce config.h.  And first:
22869 # Protect against being on the right side of a sed subst in config.status.
22870 # Protect against being in an unquoted here document in config.status.
22871 rm -f conftest.vals
22872 cat > conftest.hdr <<\EOF
22873 s/[\\&%]/\\&/g
22874 s%[\\$`]%\\&%g
22875 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22876 s%ac_d%ac_u%gp
22877 s%ac_u%ac_e%gp
22878 EOF
22879 sed -n -f conftest.hdr confdefs.h > conftest.vals
22880 rm -f conftest.hdr
22881
22882 # This sed command replaces #undef with comments.  This is necessary, for
22883 # example, in the case of _POSIX_SOURCE, which is predefined and required
22884 # on some systems where configure will not decide to define it.
22885 cat >> conftest.vals <<\EOF
22886 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22887 EOF
22888
22889 # Break up conftest.vals because some shells have a limit on
22890 # the size of here documents, and old seds have small limits too.
22891
22892 rm -f conftest.tail
22893 while :
22894 do
22895   ac_lines=`grep -c . conftest.vals`
22896   # grep -c gives empty output for an empty file on some AIX systems.
22897   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22898   # Write a limited-size here document to conftest.frag.
22899   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22900   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22901   echo 'CEOF
22902   sed -f conftest.frag conftest.in > conftest.out
22903   rm -f conftest.in
22904   mv conftest.out conftest.in
22905 ' >> $CONFIG_STATUS
22906   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22907   rm -f conftest.vals
22908   mv conftest.tail conftest.vals
22909 done
22910 rm -f conftest.vals
22911
22912 cat >> $CONFIG_STATUS <<\EOF
22913   rm -f conftest.frag conftest.h
22914   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
22915   cat conftest.in >> conftest.h
22916   rm -f conftest.in
22917   if cmp -s $ac_file conftest.h 2>/dev/null; then
22918     echo "$ac_file is unchanged"
22919     rm -f conftest.h
22920   else
22921     # Remove last slash and all that follows it.  Not all systems have dirname.
22922       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22923       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22924       # The file is in a subdirectory.
22925       test ! -d "$ac_dir" && mkdir "$ac_dir"
22926     fi
22927     rm -f $ac_file
22928     mv conftest.h $ac_file
22929   fi
22930 fi; done
22931
22932 EOF
22933
22934 cat >> $CONFIG_STATUS <<EOF
22935 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $LINKER_MAP"
22936 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"
22937 EOF
22938
22939 cat >> $CONFIG_STATUS <<\EOF
22940 srcdir=$ac_given_srcdir
22941 while test -n "$ac_sources"; do
22942   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22943   set $ac_sources; ac_source=$1; shift; ac_sources=$*
22944
22945   echo "linking $srcdir/$ac_source to $ac_dest"
22946
22947   if test ! -r $srcdir/$ac_source; then
22948     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
22949   fi
22950   rm -f $ac_dest
22951
22952   # Make relative symlinks.
22953   # Remove last slash and all that follows it.  Not all systems have dirname.
22954   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
22955   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
22956     # The dest file is in a subdirectory.
22957     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
22958     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
22959     # A "../" for each directory in $ac_dest_dir_suffix.
22960     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
22961   else
22962     ac_dest_dir_suffix= ac_dots=
22963   fi
22964
22965   case "$srcdir" in
22966   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
22967   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
22968   esac
22969
22970   # Make a symlink if possible; otherwise try a hard link.
22971   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22972     ln $srcdir/$ac_source $ac_dest; then :
22973   else
22974     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
22975   fi
22976 done
22977 EOF
22978 cat >> $CONFIG_STATUS <<EOF
22979
22980 srcdir=${srcdir}
22981 host=${host}
22982 target=${target}
22983 with_multisubdir=${with_multisubdir}
22984 ac_configure_args="${multilib_arg} ${ac_configure_args}"
22985 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
22986 glibcpp_basedir=${glibcpp_basedir}
22987 CC="${CC}"
22988 CXX="${CXX}"
22989
22990 EOF
22991 cat >> $CONFIG_STATUS <<\EOF
22992 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
22993 if test -n "$CONFIG_FILES"; then
22994   LD="${ORIGINAL_LD_FOR_MULTILIBS}"
22995   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
22996   grep '^MULTISUBDIR =' Makefile >> src/Makefile
22997   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
22998 fi
22999 chmod +x mkcheck
23000 chmod +x testsuite_flags
23001
23002 exit 0
23003 EOF
23004 chmod +x $CONFIG_STATUS
23005 rm -fr confdefs* $ac_clean_files
23006 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
23007
23008
23009
23010 # Sanity checking & User-visible messages.
23011 # Checks down here, otherwise they get scrolled off before
23012 # the user will notice.
23013
23014 # Trying to get more people to read documentation.  Possibly remove
23015 # check and warn all the time. There is no "informational" AC_MSG_
23016 # macro, so these are going to be printed even when --quiet/--silent
23017 # is given.
23018 if test ! -f stamp-sanity-warned; then
23019   touch stamp-sanity-warned
23020   echo ""
23021   echo "Please make certain that you read the installation information here:"
23022   echo "  faster => ${srcdir}/docs/html/install.html"
23023   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
23024   echo ""
23025   echo "and the configuration information here:"
23026   echo "  faster => ${srcdir}/docs/html/configopts.html"
23027   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
23028   echo ""
23029   echo "before proceeding with ${_cv_gnu_make_command}."
23030   echo ""
23031 fi